From 32d10ab29ddef3f8b049f273a5192b5a4d56201b Mon Sep 17 00:00:00 2001 From: Nikolai Rodionov Date: Fri, 3 May 2024 17:08:20 +0200 Subject: [PATCH] Add application api --- pkg/applications/applications_v1.pb.go | 1092 +++++++++++++++++++ pkg/applications/applications_v1_grpc.pb.go | 274 +++++ proto | 2 +- 3 files changed, 1367 insertions(+), 1 deletion(-) create mode 100644 pkg/applications/applications_v1.pb.go create mode 100644 pkg/applications/applications_v1_grpc.pb.go diff --git a/pkg/applications/applications_v1.pb.go b/pkg/applications/applications_v1.pb.go new file mode 100644 index 0000000..e0f6281 --- /dev/null +++ b/pkg/applications/applications_v1.pb.go @@ -0,0 +1,1092 @@ +/// This file has messages for describing applications + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v4.24.4 +// source: applications/applications_v1.proto + +package applications + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + emptypb "google.golang.org/protobuf/types/known/emptypb" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type OwnerId struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // UUID of a user that is creating an environemnt +} + +func (x *OwnerId) Reset() { + *x = OwnerId{} + if protoimpl.UnsafeEnabled { + mi := &file_applications_applications_v1_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OwnerId) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OwnerId) ProtoMessage() {} + +func (x *OwnerId) ProtoReflect() protoreflect.Message { + mi := &file_applications_applications_v1_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OwnerId.ProtoReflect.Descriptor instead. +func (*OwnerId) Descriptor() ([]byte, []int) { + return file_applications_applications_v1_proto_rawDescGZIP(), []int{0} +} + +func (x *OwnerId) GetUuid() string { + if x != nil { + return x.Uuid + } + return "" +} + +type Token struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // Token that should be used to create an environment +} + +func (x *Token) Reset() { + *x = Token{} + if protoimpl.UnsafeEnabled { + mi := &file_applications_applications_v1_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Token) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Token) ProtoMessage() {} + +func (x *Token) ProtoReflect() protoreflect.Message { + mi := &file_applications_applications_v1_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Token.ProtoReflect.Descriptor instead. +func (*Token) Descriptor() ([]byte, []int) { + return file_applications_applications_v1_proto_rawDescGZIP(), []int{1} +} + +func (x *Token) GetToken() string { + if x != nil { + return x.Token + } + return "" +} + +type CreateOptions struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Metadata *ApplicationMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` + Spec *ApplicationSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` + OwnerId *OwnerId `protobuf:"bytes,3,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` + Token *Token `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"` +} + +func (x *CreateOptions) Reset() { + *x = CreateOptions{} + if protoimpl.UnsafeEnabled { + mi := &file_applications_applications_v1_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateOptions) ProtoMessage() {} + +func (x *CreateOptions) ProtoReflect() protoreflect.Message { + mi := &file_applications_applications_v1_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateOptions.ProtoReflect.Descriptor instead. +func (*CreateOptions) Descriptor() ([]byte, []int) { + return file_applications_applications_v1_proto_rawDescGZIP(), []int{2} +} + +func (x *CreateOptions) GetMetadata() *ApplicationMetadata { + if x != nil { + return x.Metadata + } + return nil +} + +func (x *CreateOptions) GetSpec() *ApplicationSpec { + if x != nil { + return x.Spec + } + return nil +} + +func (x *CreateOptions) GetOwnerId() *OwnerId { + if x != nil { + return x.OwnerId + } + return nil +} + +func (x *CreateOptions) GetToken() *Token { + if x != nil { + return x.Token + } + return nil +} + +type UpdateOptions struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id *ApplicationId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Metadata *ApplicationMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` + Spec *ApplicationSpec `protobuf:"bytes,3,opt,name=spec,proto3" json:"spec,omitempty"` + OwnerId *OwnerId `protobuf:"bytes,4,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` + Token *Token `protobuf:"bytes,5,opt,name=token,proto3" json:"token,omitempty"` +} + +func (x *UpdateOptions) Reset() { + *x = UpdateOptions{} + if protoimpl.UnsafeEnabled { + mi := &file_applications_applications_v1_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateOptions) ProtoMessage() {} + +func (x *UpdateOptions) ProtoReflect() protoreflect.Message { + mi := &file_applications_applications_v1_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdateOptions.ProtoReflect.Descriptor instead. +func (*UpdateOptions) Descriptor() ([]byte, []int) { + return file_applications_applications_v1_proto_rawDescGZIP(), []int{3} +} + +func (x *UpdateOptions) GetId() *ApplicationId { + if x != nil { + return x.Id + } + return nil +} + +func (x *UpdateOptions) GetMetadata() *ApplicationMetadata { + if x != nil { + return x.Metadata + } + return nil +} + +func (x *UpdateOptions) GetSpec() *ApplicationSpec { + if x != nil { + return x.Spec + } + return nil +} + +func (x *UpdateOptions) GetOwnerId() *OwnerId { + if x != nil { + return x.OwnerId + } + return nil +} + +func (x *UpdateOptions) GetToken() *Token { + if x != nil { + return x.Token + } + return nil +} + +type DeleteOptions struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id *ApplicationId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Metadata *ApplicationMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` + OwnerId *OwnerId `protobuf:"bytes,3,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` + Token *Token `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"` +} + +func (x *DeleteOptions) Reset() { + *x = DeleteOptions{} + if protoimpl.UnsafeEnabled { + mi := &file_applications_applications_v1_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DeleteOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteOptions) ProtoMessage() {} + +func (x *DeleteOptions) ProtoReflect() protoreflect.Message { + mi := &file_applications_applications_v1_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DeleteOptions.ProtoReflect.Descriptor instead. +func (*DeleteOptions) Descriptor() ([]byte, []int) { + return file_applications_applications_v1_proto_rawDescGZIP(), []int{4} +} + +func (x *DeleteOptions) GetId() *ApplicationId { + if x != nil { + return x.Id + } + return nil +} + +func (x *DeleteOptions) GetMetadata() *ApplicationMetadata { + if x != nil { + return x.Metadata + } + return nil +} + +func (x *DeleteOptions) GetOwnerId() *OwnerId { + if x != nil { + return x.OwnerId + } + return nil +} + +func (x *DeleteOptions) GetToken() *Token { + if x != nil { + return x.Token + } + return nil +} + +type GetOptions struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id *ApplicationId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Metadata *ApplicationMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` + OwnerId *OwnerId `protobuf:"bytes,3,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` + Token *Token `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"` +} + +func (x *GetOptions) Reset() { + *x = GetOptions{} + if protoimpl.UnsafeEnabled { + mi := &file_applications_applications_v1_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetOptions) ProtoMessage() {} + +func (x *GetOptions) ProtoReflect() protoreflect.Message { + mi := &file_applications_applications_v1_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetOptions.ProtoReflect.Descriptor instead. +func (*GetOptions) Descriptor() ([]byte, []int) { + return file_applications_applications_v1_proto_rawDescGZIP(), []int{5} +} + +func (x *GetOptions) GetId() *ApplicationId { + if x != nil { + return x.Id + } + return nil +} + +func (x *GetOptions) GetMetadata() *ApplicationMetadata { + if x != nil { + return x.Metadata + } + return nil +} + +func (x *GetOptions) GetOwnerId() *OwnerId { + if x != nil { + return x.OwnerId + } + return nil +} + +func (x *GetOptions) GetToken() *Token { + if x != nil { + return x.Token + } + return nil +} + +type ListOptions struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Metadata *ApplicationMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` + OwnerId *OwnerId `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` + Token *Token `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` +} + +func (x *ListOptions) Reset() { + *x = ListOptions{} + if protoimpl.UnsafeEnabled { + mi := &file_applications_applications_v1_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListOptions) ProtoMessage() {} + +func (x *ListOptions) ProtoReflect() protoreflect.Message { + mi := &file_applications_applications_v1_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListOptions.ProtoReflect.Descriptor instead. +func (*ListOptions) Descriptor() ([]byte, []int) { + return file_applications_applications_v1_proto_rawDescGZIP(), []int{6} +} + +func (x *ListOptions) GetMetadata() *ApplicationMetadata { + if x != nil { + return x.Metadata + } + return nil +} + +func (x *ListOptions) GetOwnerId() *OwnerId { + if x != nil { + return x.OwnerId + } + return nil +} + +func (x *ListOptions) GetToken() *Token { + if x != nil { + return x.Token + } + return nil +} + +type ApplicationId struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` +} + +func (x *ApplicationId) Reset() { + *x = ApplicationId{} + if protoimpl.UnsafeEnabled { + mi := &file_applications_applications_v1_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ApplicationId) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ApplicationId) ProtoMessage() {} + +func (x *ApplicationId) ProtoReflect() protoreflect.Message { + mi := &file_applications_applications_v1_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ApplicationId.ProtoReflect.Descriptor instead. +func (*ApplicationId) Descriptor() ([]byte, []int) { + return file_applications_applications_v1_proto_rawDescGZIP(), []int{7} +} + +func (x *ApplicationId) GetUuid() string { + if x != nil { + return x.Uuid + } + return "" +} + +type ApplicationMetadata struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (x *ApplicationMetadata) Reset() { + *x = ApplicationMetadata{} + if protoimpl.UnsafeEnabled { + mi := &file_applications_applications_v1_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ApplicationMetadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ApplicationMetadata) ProtoMessage() {} + +func (x *ApplicationMetadata) ProtoReflect() protoreflect.Message { + mi := &file_applications_applications_v1_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ApplicationMetadata.ProtoReflect.Descriptor instead. +func (*ApplicationMetadata) Descriptor() ([]byte, []int) { + return file_applications_applications_v1_proto_rawDescGZIP(), []int{8} +} + +func (x *ApplicationMetadata) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *ApplicationMetadata) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +type ApplicationSpec struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Application string `protobuf:"bytes,1,opt,name=application,proto3" json:"application,omitempty"` + Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` + EnvironemntId string `protobuf:"bytes,3,opt,name=environemnt_id,json=environemntId,proto3" json:"environemnt_id,omitempty"` + Config map[string]string `protobuf:"bytes,4,rep,name=config,proto3" json:"config,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + RawConfig string `protobuf:"bytes,5,opt,name=raw_config,json=rawConfig,proto3" json:"raw_config,omitempty"` +} + +func (x *ApplicationSpec) Reset() { + *x = ApplicationSpec{} + if protoimpl.UnsafeEnabled { + mi := &file_applications_applications_v1_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ApplicationSpec) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ApplicationSpec) ProtoMessage() {} + +func (x *ApplicationSpec) ProtoReflect() protoreflect.Message { + mi := &file_applications_applications_v1_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ApplicationSpec.ProtoReflect.Descriptor instead. +func (*ApplicationSpec) Descriptor() ([]byte, []int) { + return file_applications_applications_v1_proto_rawDescGZIP(), []int{9} +} + +func (x *ApplicationSpec) GetApplication() string { + if x != nil { + return x.Application + } + return "" +} + +func (x *ApplicationSpec) GetVersion() string { + if x != nil { + return x.Version + } + return "" +} + +func (x *ApplicationSpec) GetEnvironemntId() string { + if x != nil { + return x.EnvironemntId + } + return "" +} + +func (x *ApplicationSpec) GetConfig() map[string]string { + if x != nil { + return x.Config + } + return nil +} + +func (x *ApplicationSpec) GetRawConfig() string { + if x != nil { + return x.RawConfig + } + return "" +} + +type ApplicationFull struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Metadata *ApplicationMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` + Spec *ApplicationSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` + Id *ApplicationId `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *ApplicationFull) Reset() { + *x = ApplicationFull{} + if protoimpl.UnsafeEnabled { + mi := &file_applications_applications_v1_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ApplicationFull) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ApplicationFull) ProtoMessage() {} + +func (x *ApplicationFull) ProtoReflect() protoreflect.Message { + mi := &file_applications_applications_v1_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ApplicationFull.ProtoReflect.Descriptor instead. +func (*ApplicationFull) Descriptor() ([]byte, []int) { + return file_applications_applications_v1_proto_rawDescGZIP(), []int{10} +} + +func (x *ApplicationFull) GetMetadata() *ApplicationMetadata { + if x != nil { + return x.Metadata + } + return nil +} + +func (x *ApplicationFull) GetSpec() *ApplicationSpec { + if x != nil { + return x.Spec + } + return nil +} + +func (x *ApplicationFull) GetId() *ApplicationId { + if x != nil { + return x.Id + } + return nil +} + +var File_applications_applications_v1_proto protoreflect.FileDescriptor + +var file_applications_applications_v1_proto_rawDesc = []byte{ + 0x0a, 0x22, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, + 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x5f, 0x76, 0x31, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, + 0x1d, 0x0a, 0x07, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x75, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x75, 0x69, 0x64, 0x22, 0x1d, + 0x0a, 0x05, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xde, 0x01, + 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, + 0x3d, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x21, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x31, + 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x61, + 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x41, 0x70, 0x70, 0x6c, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x70, 0x65, 0x63, 0x52, 0x04, 0x73, 0x70, 0x65, + 0x63, 0x12, 0x30, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x2e, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, + 0x72, 0x49, 0x64, 0x12, 0x29, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x8b, + 0x02, 0x0a, 0x0d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x12, 0x2b, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x61, + 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x41, 0x70, 0x70, 0x6c, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3d, 0x0a, + 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x21, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x41, + 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x31, 0x0a, 0x04, + 0x73, 0x70, 0x65, 0x63, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x61, 0x70, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x70, 0x65, 0x63, 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, 0x12, + 0x30, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x15, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x2e, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, + 0x64, 0x12, 0x29, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x13, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, + 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xd8, 0x01, 0x0a, + 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x2b, + 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x61, 0x70, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3d, 0x0a, 0x08, 0x6d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, + 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x41, 0x70, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x30, 0x0a, 0x08, 0x6f, 0x77, + 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x61, + 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x4f, 0x77, 0x6e, 0x65, + 0x72, 0x49, 0x64, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x12, 0x29, 0x0a, 0x05, + 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x61, 0x70, + 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, + 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xd5, 0x01, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x4f, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x2b, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x52, + 0x02, 0x69, 0x64, 0x12, 0x3d, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x12, 0x30, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x2e, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x52, 0x07, 0x6f, 0x77, 0x6e, + 0x65, 0x72, 0x49, 0x64, 0x12, 0x29, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, + 0xa9, 0x01, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, + 0x3d, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x21, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x30, + 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x15, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, + 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, + 0x12, 0x29, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x13, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x54, + 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x23, 0x0a, 0x0d, 0x41, + 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, + 0x75, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x75, 0x69, 0x64, + 0x22, 0x4b, 0x0a, 0x13, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, + 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x91, 0x02, + 0x0a, 0x0f, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x70, 0x65, + 0x63, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x25, 0x0a, + 0x0e, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x65, 0x6d, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x65, 0x6d, + 0x6e, 0x74, 0x49, 0x64, 0x12, 0x41, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x04, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, + 0x70, 0x65, 0x63, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, + 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x61, 0x77, 0x5f, 0x63, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x61, 0x77, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x39, 0x0a, 0x0b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, + 0x01, 0x22, 0xb0, 0x01, 0x0a, 0x0f, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x46, 0x75, 0x6c, 0x6c, 0x12, 0x3d, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x12, 0x31, 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x70, 0x65, + 0x63, 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, 0x12, 0x2b, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, + 0x52, 0x02, 0x69, 0x64, 0x32, 0xe7, 0x02, 0x0a, 0x0c, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x46, 0x0a, 0x06, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, + 0x1b, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x1d, 0x2e, 0x61, + 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x41, 0x70, 0x70, 0x6c, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x75, 0x6c, 0x6c, 0x22, 0x00, 0x12, 0x46, 0x0a, + 0x06, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x1b, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x1d, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, + 0x75, 0x6c, 0x6c, 0x22, 0x00, 0x12, 0x3f, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, + 0x1b, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x44, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x16, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, + 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x12, 0x40, 0x0a, 0x03, 0x47, 0x65, 0x74, 0x12, 0x18, 0x2e, + 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x47, 0x65, 0x74, + 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x1d, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x46, 0x75, 0x6c, 0x6c, 0x22, 0x00, 0x12, 0x44, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, + 0x12, 0x19, 0x2e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, + 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x1d, 0x2e, 0x61, 0x70, + 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x75, 0x6c, 0x6c, 0x22, 0x00, 0x30, 0x01, 0x42, 0x48, + 0x5a, 0x46, 0x67, 0x69, 0x74, 0x2e, 0x62, 0x61, 0x64, 0x68, 0x6f, 0x75, 0x73, 0x65, 0x70, 0x6c, + 0x61, 0x6e, 0x74, 0x73, 0x2e, 0x6e, 0x65, 0x74, 0x2f, 0x73, 0x6f, 0x66, 0x74, 0x70, 0x6c, 0x61, + 0x79, 0x65, 0x72, 0x2f, 0x73, 0x6f, 0x66, 0x74, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2d, 0x67, + 0x6f, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x61, 0x70, 0x70, 0x6c, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_applications_applications_v1_proto_rawDescOnce sync.Once + file_applications_applications_v1_proto_rawDescData = file_applications_applications_v1_proto_rawDesc +) + +func file_applications_applications_v1_proto_rawDescGZIP() []byte { + file_applications_applications_v1_proto_rawDescOnce.Do(func() { + file_applications_applications_v1_proto_rawDescData = protoimpl.X.CompressGZIP(file_applications_applications_v1_proto_rawDescData) + }) + return file_applications_applications_v1_proto_rawDescData +} + +var file_applications_applications_v1_proto_msgTypes = make([]protoimpl.MessageInfo, 12) +var file_applications_applications_v1_proto_goTypes = []interface{}{ + (*OwnerId)(nil), // 0: applications.OwnerId + (*Token)(nil), // 1: applications.Token + (*CreateOptions)(nil), // 2: applications.CreateOptions + (*UpdateOptions)(nil), // 3: applications.UpdateOptions + (*DeleteOptions)(nil), // 4: applications.DeleteOptions + (*GetOptions)(nil), // 5: applications.GetOptions + (*ListOptions)(nil), // 6: applications.ListOptions + (*ApplicationId)(nil), // 7: applications.ApplicationId + (*ApplicationMetadata)(nil), // 8: applications.ApplicationMetadata + (*ApplicationSpec)(nil), // 9: applications.ApplicationSpec + (*ApplicationFull)(nil), // 10: applications.ApplicationFull + nil, // 11: applications.ApplicationSpec.ConfigEntry + (*emptypb.Empty)(nil), // 12: google.protobuf.Empty +} +var file_applications_applications_v1_proto_depIdxs = []int32{ + 8, // 0: applications.CreateOptions.metadata:type_name -> applications.ApplicationMetadata + 9, // 1: applications.CreateOptions.spec:type_name -> applications.ApplicationSpec + 0, // 2: applications.CreateOptions.owner_id:type_name -> applications.OwnerId + 1, // 3: applications.CreateOptions.token:type_name -> applications.Token + 7, // 4: applications.UpdateOptions.id:type_name -> applications.ApplicationId + 8, // 5: applications.UpdateOptions.metadata:type_name -> applications.ApplicationMetadata + 9, // 6: applications.UpdateOptions.spec:type_name -> applications.ApplicationSpec + 0, // 7: applications.UpdateOptions.owner_id:type_name -> applications.OwnerId + 1, // 8: applications.UpdateOptions.token:type_name -> applications.Token + 7, // 9: applications.DeleteOptions.id:type_name -> applications.ApplicationId + 8, // 10: applications.DeleteOptions.metadata:type_name -> applications.ApplicationMetadata + 0, // 11: applications.DeleteOptions.owner_id:type_name -> applications.OwnerId + 1, // 12: applications.DeleteOptions.token:type_name -> applications.Token + 7, // 13: applications.GetOptions.id:type_name -> applications.ApplicationId + 8, // 14: applications.GetOptions.metadata:type_name -> applications.ApplicationMetadata + 0, // 15: applications.GetOptions.owner_id:type_name -> applications.OwnerId + 1, // 16: applications.GetOptions.token:type_name -> applications.Token + 8, // 17: applications.ListOptions.metadata:type_name -> applications.ApplicationMetadata + 0, // 18: applications.ListOptions.owner_id:type_name -> applications.OwnerId + 1, // 19: applications.ListOptions.token:type_name -> applications.Token + 11, // 20: applications.ApplicationSpec.config:type_name -> applications.ApplicationSpec.ConfigEntry + 8, // 21: applications.ApplicationFull.metadata:type_name -> applications.ApplicationMetadata + 9, // 22: applications.ApplicationFull.spec:type_name -> applications.ApplicationSpec + 7, // 23: applications.ApplicationFull.id:type_name -> applications.ApplicationId + 2, // 24: applications.Applications.Create:input_type -> applications.CreateOptions + 3, // 25: applications.Applications.Update:input_type -> applications.UpdateOptions + 4, // 26: applications.Applications.Delete:input_type -> applications.DeleteOptions + 5, // 27: applications.Applications.Get:input_type -> applications.GetOptions + 6, // 28: applications.Applications.List:input_type -> applications.ListOptions + 10, // 29: applications.Applications.Create:output_type -> applications.ApplicationFull + 10, // 30: applications.Applications.Update:output_type -> applications.ApplicationFull + 12, // 31: applications.Applications.Delete:output_type -> google.protobuf.Empty + 10, // 32: applications.Applications.Get:output_type -> applications.ApplicationFull + 10, // 33: applications.Applications.List:output_type -> applications.ApplicationFull + 29, // [29:34] is the sub-list for method output_type + 24, // [24:29] is the sub-list for method input_type + 24, // [24:24] is the sub-list for extension type_name + 24, // [24:24] is the sub-list for extension extendee + 0, // [0:24] is the sub-list for field type_name +} + +func init() { file_applications_applications_v1_proto_init() } +func file_applications_applications_v1_proto_init() { + if File_applications_applications_v1_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_applications_applications_v1_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OwnerId); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_applications_applications_v1_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Token); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_applications_applications_v1_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateOptions); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_applications_applications_v1_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateOptions); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_applications_applications_v1_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteOptions); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_applications_applications_v1_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetOptions); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_applications_applications_v1_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListOptions); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_applications_applications_v1_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ApplicationId); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_applications_applications_v1_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ApplicationMetadata); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_applications_applications_v1_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ApplicationSpec); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_applications_applications_v1_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ApplicationFull); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_applications_applications_v1_proto_rawDesc, + NumEnums: 0, + NumMessages: 12, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_applications_applications_v1_proto_goTypes, + DependencyIndexes: file_applications_applications_v1_proto_depIdxs, + MessageInfos: file_applications_applications_v1_proto_msgTypes, + }.Build() + File_applications_applications_v1_proto = out.File + file_applications_applications_v1_proto_rawDesc = nil + file_applications_applications_v1_proto_goTypes = nil + file_applications_applications_v1_proto_depIdxs = nil +} diff --git a/pkg/applications/applications_v1_grpc.pb.go b/pkg/applications/applications_v1_grpc.pb.go new file mode 100644 index 0000000..1cb2dcf --- /dev/null +++ b/pkg/applications/applications_v1_grpc.pb.go @@ -0,0 +1,274 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. + +package applications + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + emptypb "google.golang.org/protobuf/types/known/emptypb" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// ApplicationsClient is the client API for Applications service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type ApplicationsClient interface { + Create(ctx context.Context, in *CreateOptions, opts ...grpc.CallOption) (*ApplicationFull, error) + Update(ctx context.Context, in *UpdateOptions, opts ...grpc.CallOption) (*ApplicationFull, error) + Delete(ctx context.Context, in *DeleteOptions, opts ...grpc.CallOption) (*emptypb.Empty, error) + Get(ctx context.Context, in *GetOptions, opts ...grpc.CallOption) (*ApplicationFull, error) + List(ctx context.Context, in *ListOptions, opts ...grpc.CallOption) (Applications_ListClient, error) +} + +type applicationsClient struct { + cc grpc.ClientConnInterface +} + +func NewApplicationsClient(cc grpc.ClientConnInterface) ApplicationsClient { + return &applicationsClient{cc} +} + +func (c *applicationsClient) Create(ctx context.Context, in *CreateOptions, opts ...grpc.CallOption) (*ApplicationFull, error) { + out := new(ApplicationFull) + err := c.cc.Invoke(ctx, "/applications.Applications/Create", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *applicationsClient) Update(ctx context.Context, in *UpdateOptions, opts ...grpc.CallOption) (*ApplicationFull, error) { + out := new(ApplicationFull) + err := c.cc.Invoke(ctx, "/applications.Applications/Update", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *applicationsClient) Delete(ctx context.Context, in *DeleteOptions, opts ...grpc.CallOption) (*emptypb.Empty, error) { + out := new(emptypb.Empty) + err := c.cc.Invoke(ctx, "/applications.Applications/Delete", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *applicationsClient) Get(ctx context.Context, in *GetOptions, opts ...grpc.CallOption) (*ApplicationFull, error) { + out := new(ApplicationFull) + err := c.cc.Invoke(ctx, "/applications.Applications/Get", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *applicationsClient) List(ctx context.Context, in *ListOptions, opts ...grpc.CallOption) (Applications_ListClient, error) { + stream, err := c.cc.NewStream(ctx, &Applications_ServiceDesc.Streams[0], "/applications.Applications/List", opts...) + if err != nil { + return nil, err + } + x := &applicationsListClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type Applications_ListClient interface { + Recv() (*ApplicationFull, error) + grpc.ClientStream +} + +type applicationsListClient struct { + grpc.ClientStream +} + +func (x *applicationsListClient) Recv() (*ApplicationFull, error) { + m := new(ApplicationFull) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// ApplicationsServer is the server API for Applications service. +// All implementations must embed UnimplementedApplicationsServer +// for forward compatibility +type ApplicationsServer interface { + Create(context.Context, *CreateOptions) (*ApplicationFull, error) + Update(context.Context, *UpdateOptions) (*ApplicationFull, error) + Delete(context.Context, *DeleteOptions) (*emptypb.Empty, error) + Get(context.Context, *GetOptions) (*ApplicationFull, error) + List(*ListOptions, Applications_ListServer) error + mustEmbedUnimplementedApplicationsServer() +} + +// UnimplementedApplicationsServer must be embedded to have forward compatible implementations. +type UnimplementedApplicationsServer struct { +} + +func (UnimplementedApplicationsServer) Create(context.Context, *CreateOptions) (*ApplicationFull, error) { + return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") +} +func (UnimplementedApplicationsServer) Update(context.Context, *UpdateOptions) (*ApplicationFull, error) { + return nil, status.Errorf(codes.Unimplemented, "method Update not implemented") +} +func (UnimplementedApplicationsServer) Delete(context.Context, *DeleteOptions) (*emptypb.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") +} +func (UnimplementedApplicationsServer) Get(context.Context, *GetOptions) (*ApplicationFull, error) { + return nil, status.Errorf(codes.Unimplemented, "method Get not implemented") +} +func (UnimplementedApplicationsServer) List(*ListOptions, Applications_ListServer) error { + return status.Errorf(codes.Unimplemented, "method List not implemented") +} +func (UnimplementedApplicationsServer) mustEmbedUnimplementedApplicationsServer() {} + +// UnsafeApplicationsServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to ApplicationsServer will +// result in compilation errors. +type UnsafeApplicationsServer interface { + mustEmbedUnimplementedApplicationsServer() +} + +func RegisterApplicationsServer(s grpc.ServiceRegistrar, srv ApplicationsServer) { + s.RegisterService(&Applications_ServiceDesc, srv) +} + +func _Applications_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateOptions) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ApplicationsServer).Create(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/applications.Applications/Create", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ApplicationsServer).Create(ctx, req.(*CreateOptions)) + } + return interceptor(ctx, in, info, handler) +} + +func _Applications_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateOptions) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ApplicationsServer).Update(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/applications.Applications/Update", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ApplicationsServer).Update(ctx, req.(*UpdateOptions)) + } + return interceptor(ctx, in, info, handler) +} + +func _Applications_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteOptions) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ApplicationsServer).Delete(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/applications.Applications/Delete", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ApplicationsServer).Delete(ctx, req.(*DeleteOptions)) + } + return interceptor(ctx, in, info, handler) +} + +func _Applications_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetOptions) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ApplicationsServer).Get(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/applications.Applications/Get", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ApplicationsServer).Get(ctx, req.(*GetOptions)) + } + return interceptor(ctx, in, info, handler) +} + +func _Applications_List_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(ListOptions) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(ApplicationsServer).List(m, &applicationsListServer{stream}) +} + +type Applications_ListServer interface { + Send(*ApplicationFull) error + grpc.ServerStream +} + +type applicationsListServer struct { + grpc.ServerStream +} + +func (x *applicationsListServer) Send(m *ApplicationFull) error { + return x.ServerStream.SendMsg(m) +} + +// Applications_ServiceDesc is the grpc.ServiceDesc for Applications service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var Applications_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "applications.Applications", + HandlerType: (*ApplicationsServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Create", + Handler: _Applications_Create_Handler, + }, + { + MethodName: "Update", + Handler: _Applications_Update_Handler, + }, + { + MethodName: "Delete", + Handler: _Applications_Delete_Handler, + }, + { + MethodName: "Get", + Handler: _Applications_Get_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "List", + Handler: _Applications_List_Handler, + ServerStreams: true, + }, + }, + Metadata: "applications/applications_v1.proto", +} diff --git a/proto b/proto index bd6c5ff..4face81 160000 --- a/proto +++ b/proto @@ -1 +1 @@ -Subproject commit bd6c5ffb2b7d46aa4dc7fee0601fec62bda28b2a +Subproject commit 4face818c72e8e26eb3bd385770857d9a8098d5f