From 463cd829138d0de5e4c39300b946bc0090691889 Mon Sep 17 00:00:00 2001 From: Dan Gillespie Date: Wed, 28 Feb 2024 09:22:06 -0500 Subject: [PATCH] add actor --- api/multiparty/prompt/v1/prompt.pb.go | 440 +++++++++++------- api/multiparty/prompt/v1/prompt.proto | 22 +- .../api/multiparty/prompt/v1/prompt_pb2.py | 48 +- .../api/multiparty/prompt/v1/prompt_pb2.pyi | 43 +- 4 files changed, 351 insertions(+), 202 deletions(-) diff --git a/api/multiparty/prompt/v1/prompt.pb.go b/api/multiparty/prompt/v1/prompt.pb.go index 5d1d860..6621754 100644 --- a/api/multiparty/prompt/v1/prompt.pb.go +++ b/api/multiparty/prompt/v1/prompt.pb.go @@ -85,7 +85,7 @@ func (x Prompt_Status) Number() protoreflect.EnumNumber { // Deprecated: Use Prompt_Status.Descriptor instead. func (Prompt_Status) EnumDescriptor() ([]byte, []int) { - return file_multiparty_prompt_v1_prompt_proto_rawDescGZIP(), []int{1, 0} + return file_multiparty_prompt_v1_prompt_proto_rawDescGZIP(), []int{2, 0} } type Meta struct { @@ -167,6 +167,69 @@ func (x *Meta) GetUpdated() *timestamppb.Timestamp { return nil } +type Resource struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` + Meta *Meta `protobuf:"bytes,2,opt,name=meta,proto3" json:"meta,omitempty"` + Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` +} + +func (x *Resource) Reset() { + *x = Resource{} + if protoimpl.UnsafeEnabled { + mi := &file_multiparty_prompt_v1_prompt_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Resource) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Resource) ProtoMessage() {} + +func (x *Resource) ProtoReflect() protoreflect.Message { + mi := &file_multiparty_prompt_v1_prompt_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 Resource.ProtoReflect.Descriptor instead. +func (*Resource) Descriptor() ([]byte, []int) { + return file_multiparty_prompt_v1_prompt_proto_rawDescGZIP(), []int{1} +} + +func (x *Resource) GetKind() string { + if x != nil { + return x.Kind + } + return "" +} + +func (x *Resource) GetMeta() *Meta { + if x != nil { + return x.Meta + } + return nil +} + +func (x *Resource) GetEmail() string { + if x != nil { + return x.Email + } + return "" +} + type Prompt struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -174,18 +237,19 @@ type Prompt struct { Meta *Meta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` - Status Prompt_Status `protobuf:"varint,3,opt,name=status,proto3,enum=multiparty.prompt.v1.Prompt_Status" json:"status,omitempty"` - In *structpb.Value `protobuf:"bytes,4,opt,name=in,proto3" json:"in,omitempty"` - // jsonSchema = 5; - Value *structpb.Value `protobuf:"bytes,6,opt,name=value,proto3" json:"value,omitempty"` - // uiSchema = 7; - Replies []*Reply `protobuf:"bytes,8,rep,name=replies,proto3" json:"replies,omitempty"` + Actor *Resource `protobuf:"bytes,3,opt,name=actor,proto3" json:"actor,omitempty"` + Status Prompt_Status `protobuf:"varint,4,opt,name=status,proto3,enum=multiparty.prompt.v1.Prompt_Status" json:"status,omitempty"` + In *structpb.Value `protobuf:"bytes,5,opt,name=in,proto3" json:"in,omitempty"` + // jsonSchema = 6; + Value *structpb.Value `protobuf:"bytes,7,opt,name=value,proto3" json:"value,omitempty"` + // uiSchema = 8; + Replies []*Reply `protobuf:"bytes,9,rep,name=replies,proto3" json:"replies,omitempty"` } func (x *Prompt) Reset() { *x = Prompt{} if protoimpl.UnsafeEnabled { - mi := &file_multiparty_prompt_v1_prompt_proto_msgTypes[1] + mi := &file_multiparty_prompt_v1_prompt_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -198,7 +262,7 @@ func (x *Prompt) String() string { func (*Prompt) ProtoMessage() {} func (x *Prompt) ProtoReflect() protoreflect.Message { - mi := &file_multiparty_prompt_v1_prompt_proto_msgTypes[1] + mi := &file_multiparty_prompt_v1_prompt_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -211,7 +275,7 @@ func (x *Prompt) ProtoReflect() protoreflect.Message { // Deprecated: Use Prompt.ProtoReflect.Descriptor instead. func (*Prompt) Descriptor() ([]byte, []int) { - return file_multiparty_prompt_v1_prompt_proto_rawDescGZIP(), []int{1} + return file_multiparty_prompt_v1_prompt_proto_rawDescGZIP(), []int{2} } func (x *Prompt) GetMeta() *Meta { @@ -228,6 +292,13 @@ func (x *Prompt) GetTitle() string { return "" } +func (x *Prompt) GetActor() *Resource { + if x != nil { + return x.Actor + } + return nil +} + func (x *Prompt) GetStatus() Prompt_Status { if x != nil { return x.Status @@ -261,16 +332,17 @@ type Reply struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Meta *Meta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` - PromptName string `protobuf:"bytes,2,opt,name=prompt_name,json=promptName,proto3" json:"prompt_name,omitempty"` + Meta *Meta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` + PromptName string `protobuf:"bytes,2,opt,name=prompt_name,json=promptName,proto3" json:"prompt_name,omitempty"` + Actor *Resource `protobuf:"bytes,3,opt,name=actor,proto3" json:"actor,omitempty"` // value matches the schema of the prompt - Value *structpb.Value `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` + Value *structpb.Value `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"` } func (x *Reply) Reset() { *x = Reply{} if protoimpl.UnsafeEnabled { - mi := &file_multiparty_prompt_v1_prompt_proto_msgTypes[2] + mi := &file_multiparty_prompt_v1_prompt_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -283,7 +355,7 @@ func (x *Reply) String() string { func (*Reply) ProtoMessage() {} func (x *Reply) ProtoReflect() protoreflect.Message { - mi := &file_multiparty_prompt_v1_prompt_proto_msgTypes[2] + mi := &file_multiparty_prompt_v1_prompt_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -296,7 +368,7 @@ func (x *Reply) ProtoReflect() protoreflect.Message { // Deprecated: Use Reply.ProtoReflect.Descriptor instead. func (*Reply) Descriptor() ([]byte, []int) { - return file_multiparty_prompt_v1_prompt_proto_rawDescGZIP(), []int{2} + return file_multiparty_prompt_v1_prompt_proto_rawDescGZIP(), []int{3} } func (x *Reply) GetMeta() *Meta { @@ -313,6 +385,13 @@ func (x *Reply) GetPromptName() string { return "" } +func (x *Reply) GetActor() *Resource { + if x != nil { + return x.Actor + } + return nil +} + func (x *Reply) GetValue() *structpb.Value { if x != nil { return x.Value @@ -333,7 +412,7 @@ type CreatePromptRequest struct { func (x *CreatePromptRequest) Reset() { *x = CreatePromptRequest{} if protoimpl.UnsafeEnabled { - mi := &file_multiparty_prompt_v1_prompt_proto_msgTypes[3] + mi := &file_multiparty_prompt_v1_prompt_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -346,7 +425,7 @@ func (x *CreatePromptRequest) String() string { func (*CreatePromptRequest) ProtoMessage() {} func (x *CreatePromptRequest) ProtoReflect() protoreflect.Message { - mi := &file_multiparty_prompt_v1_prompt_proto_msgTypes[3] + mi := &file_multiparty_prompt_v1_prompt_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -359,7 +438,7 @@ func (x *CreatePromptRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use CreatePromptRequest.ProtoReflect.Descriptor instead. func (*CreatePromptRequest) Descriptor() ([]byte, []int) { - return file_multiparty_prompt_v1_prompt_proto_rawDescGZIP(), []int{3} + return file_multiparty_prompt_v1_prompt_proto_rawDescGZIP(), []int{4} } func (x *CreatePromptRequest) GetSpaceName() string { @@ -387,7 +466,7 @@ type CreatePromptResponse struct { func (x *CreatePromptResponse) Reset() { *x = CreatePromptResponse{} if protoimpl.UnsafeEnabled { - mi := &file_multiparty_prompt_v1_prompt_proto_msgTypes[4] + mi := &file_multiparty_prompt_v1_prompt_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -400,7 +479,7 @@ func (x *CreatePromptResponse) String() string { func (*CreatePromptResponse) ProtoMessage() {} func (x *CreatePromptResponse) ProtoReflect() protoreflect.Message { - mi := &file_multiparty_prompt_v1_prompt_proto_msgTypes[4] + mi := &file_multiparty_prompt_v1_prompt_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -413,7 +492,7 @@ func (x *CreatePromptResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use CreatePromptResponse.ProtoReflect.Descriptor instead. func (*CreatePromptResponse) Descriptor() ([]byte, []int) { - return file_multiparty_prompt_v1_prompt_proto_rawDescGZIP(), []int{4} + return file_multiparty_prompt_v1_prompt_proto_rawDescGZIP(), []int{5} } func (x *CreatePromptResponse) GetPrompt() *Prompt { @@ -434,7 +513,7 @@ type ListPromptsRequest struct { func (x *ListPromptsRequest) Reset() { *x = ListPromptsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_multiparty_prompt_v1_prompt_proto_msgTypes[5] + mi := &file_multiparty_prompt_v1_prompt_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -447,7 +526,7 @@ func (x *ListPromptsRequest) String() string { func (*ListPromptsRequest) ProtoMessage() {} func (x *ListPromptsRequest) ProtoReflect() protoreflect.Message { - mi := &file_multiparty_prompt_v1_prompt_proto_msgTypes[5] + mi := &file_multiparty_prompt_v1_prompt_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -460,7 +539,7 @@ func (x *ListPromptsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListPromptsRequest.ProtoReflect.Descriptor instead. func (*ListPromptsRequest) Descriptor() ([]byte, []int) { - return file_multiparty_prompt_v1_prompt_proto_rawDescGZIP(), []int{5} + return file_multiparty_prompt_v1_prompt_proto_rawDescGZIP(), []int{6} } func (x *ListPromptsRequest) GetSpaceName() string { @@ -481,7 +560,7 @@ type ListPromptsResponse struct { func (x *ListPromptsResponse) Reset() { *x = ListPromptsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_multiparty_prompt_v1_prompt_proto_msgTypes[6] + mi := &file_multiparty_prompt_v1_prompt_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -494,7 +573,7 @@ func (x *ListPromptsResponse) String() string { func (*ListPromptsResponse) ProtoMessage() {} func (x *ListPromptsResponse) ProtoReflect() protoreflect.Message { - mi := &file_multiparty_prompt_v1_prompt_proto_msgTypes[6] + mi := &file_multiparty_prompt_v1_prompt_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -507,7 +586,7 @@ func (x *ListPromptsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListPromptsResponse.ProtoReflect.Descriptor instead. func (*ListPromptsResponse) Descriptor() ([]byte, []int) { - return file_multiparty_prompt_v1_prompt_proto_rawDescGZIP(), []int{6} + return file_multiparty_prompt_v1_prompt_proto_rawDescGZIP(), []int{7} } func (x *ListPromptsResponse) GetPrompts() []*Prompt { @@ -529,7 +608,7 @@ type GetPromptRequest struct { func (x *GetPromptRequest) Reset() { *x = GetPromptRequest{} if protoimpl.UnsafeEnabled { - mi := &file_multiparty_prompt_v1_prompt_proto_msgTypes[7] + mi := &file_multiparty_prompt_v1_prompt_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -542,7 +621,7 @@ func (x *GetPromptRequest) String() string { func (*GetPromptRequest) ProtoMessage() {} func (x *GetPromptRequest) ProtoReflect() protoreflect.Message { - mi := &file_multiparty_prompt_v1_prompt_proto_msgTypes[7] + mi := &file_multiparty_prompt_v1_prompt_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -555,7 +634,7 @@ func (x *GetPromptRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetPromptRequest.ProtoReflect.Descriptor instead. func (*GetPromptRequest) Descriptor() ([]byte, []int) { - return file_multiparty_prompt_v1_prompt_proto_rawDescGZIP(), []int{7} + return file_multiparty_prompt_v1_prompt_proto_rawDescGZIP(), []int{8} } func (x *GetPromptRequest) GetSpaceName() string { @@ -583,7 +662,7 @@ type GetPromptResponse struct { func (x *GetPromptResponse) Reset() { *x = GetPromptResponse{} if protoimpl.UnsafeEnabled { - mi := &file_multiparty_prompt_v1_prompt_proto_msgTypes[8] + mi := &file_multiparty_prompt_v1_prompt_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -596,7 +675,7 @@ func (x *GetPromptResponse) String() string { func (*GetPromptResponse) ProtoMessage() {} func (x *GetPromptResponse) ProtoReflect() protoreflect.Message { - mi := &file_multiparty_prompt_v1_prompt_proto_msgTypes[8] + mi := &file_multiparty_prompt_v1_prompt_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -609,7 +688,7 @@ func (x *GetPromptResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetPromptResponse.ProtoReflect.Descriptor instead. func (*GetPromptResponse) Descriptor() ([]byte, []int) { - return file_multiparty_prompt_v1_prompt_proto_rawDescGZIP(), []int{8} + return file_multiparty_prompt_v1_prompt_proto_rawDescGZIP(), []int{9} } func (x *GetPromptResponse) GetPrompt() *Prompt { @@ -633,7 +712,7 @@ type CreateReplyRequest struct { func (x *CreateReplyRequest) Reset() { *x = CreateReplyRequest{} if protoimpl.UnsafeEnabled { - mi := &file_multiparty_prompt_v1_prompt_proto_msgTypes[9] + mi := &file_multiparty_prompt_v1_prompt_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -646,7 +725,7 @@ func (x *CreateReplyRequest) String() string { func (*CreateReplyRequest) ProtoMessage() {} func (x *CreateReplyRequest) ProtoReflect() protoreflect.Message { - mi := &file_multiparty_prompt_v1_prompt_proto_msgTypes[9] + mi := &file_multiparty_prompt_v1_prompt_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -659,7 +738,7 @@ func (x *CreateReplyRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateReplyRequest.ProtoReflect.Descriptor instead. func (*CreateReplyRequest) Descriptor() ([]byte, []int) { - return file_multiparty_prompt_v1_prompt_proto_rawDescGZIP(), []int{9} + return file_multiparty_prompt_v1_prompt_proto_rawDescGZIP(), []int{10} } func (x *CreateReplyRequest) GetSpaceName() string { @@ -694,7 +773,7 @@ type CreateReplyResponse struct { func (x *CreateReplyResponse) Reset() { *x = CreateReplyResponse{} if protoimpl.UnsafeEnabled { - mi := &file_multiparty_prompt_v1_prompt_proto_msgTypes[10] + mi := &file_multiparty_prompt_v1_prompt_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -707,7 +786,7 @@ func (x *CreateReplyResponse) String() string { func (*CreateReplyResponse) ProtoMessage() {} func (x *CreateReplyResponse) ProtoReflect() protoreflect.Message { - mi := &file_multiparty_prompt_v1_prompt_proto_msgTypes[10] + mi := &file_multiparty_prompt_v1_prompt_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -720,7 +799,7 @@ func (x *CreateReplyResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateReplyResponse.ProtoReflect.Descriptor instead. func (*CreateReplyResponse) Descriptor() ([]byte, []int) { - return file_multiparty_prompt_v1_prompt_proto_rawDescGZIP(), []int{10} + return file_multiparty_prompt_v1_prompt_proto_rawDescGZIP(), []int{11} } func (x *CreateReplyResponse) GetReply() *Reply { @@ -752,94 +831,107 @@ var file_multiparty_prompt_v1_prompt_proto_rawDesc = []byte{ 0x74, 0x65, 0x64, 0x12, 0x34, 0x0a, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, - 0x52, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x22, 0xd0, 0x02, 0x0a, 0x06, 0x50, 0x72, - 0x6f, 0x6d, 0x70, 0x74, 0x12, 0x2e, 0x0a, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x61, 0x72, 0x74, 0x79, 0x2e, - 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x52, 0x04, - 0x6d, 0x65, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x3b, 0x0a, 0x06, 0x73, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x6d, 0x75, 0x6c, + 0x52, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x22, 0x64, 0x0a, 0x08, 0x52, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x12, 0x2e, 0x0a, 0x04, 0x6d, 0x65, 0x74, + 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x70, + 0x61, 0x72, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, + 0x65, 0x74, 0x61, 0x52, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, + 0x69, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x22, + 0x86, 0x03, 0x0a, 0x06, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x12, 0x2e, 0x0a, 0x04, 0x6d, 0x65, + 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6d, 0x75, 0x6c, 0x74, 0x69, + 0x70, 0x61, 0x72, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2e, 0x76, 0x31, 0x2e, + 0x4d, 0x65, 0x74, 0x61, 0x52, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, + 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, + 0x12, 0x34, 0x0a, 0x05, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1e, 0x2e, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x61, 0x72, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, + 0x6d, 0x70, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, + 0x05, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x3b, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x61, + 0x72, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, + 0x6f, 0x6d, 0x70, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x12, 0x26, 0x0a, 0x02, 0x69, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x02, 0x69, 0x6e, 0x12, 0x2c, 0x0a, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x35, 0x0a, 0x07, 0x72, 0x65, 0x70, + 0x6c, 0x69, 0x65, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x61, 0x72, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2e, 0x76, - 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, - 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x26, 0x0a, 0x02, 0x69, 0x6e, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x02, 0x69, 0x6e, 0x12, - 0x2c, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x35, 0x0a, - 0x07, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x65, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, - 0x2e, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x61, 0x72, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x6d, - 0x70, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x52, 0x07, 0x72, 0x65, 0x70, - 0x6c, 0x69, 0x65, 0x73, 0x22, 0x36, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0b, - 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x4f, - 0x50, 0x45, 0x4e, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x43, 0x4c, 0x4f, 0x53, 0x45, 0x44, 0x10, - 0x02, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x03, 0x22, 0x86, 0x01, 0x0a, - 0x05, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x2e, 0x0a, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x61, 0x72, 0x74, - 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x74, 0x61, - 0x52, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, - 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x72, 0x6f, - 0x6d, 0x70, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2c, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x6a, 0x0a, 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, - 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, - 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x09, 0x73, 0x70, 0x61, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x34, 0x0a, 0x06, 0x70, - 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x6d, 0x75, + 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x52, 0x07, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x65, 0x73, + 0x22, 0x36, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, + 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x4f, 0x50, 0x45, 0x4e, 0x10, + 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x43, 0x4c, 0x4f, 0x53, 0x45, 0x44, 0x10, 0x02, 0x12, 0x09, 0x0a, + 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x03, 0x22, 0xbc, 0x01, 0x0a, 0x05, 0x52, 0x65, 0x70, + 0x6c, 0x79, 0x12, 0x2e, 0x0a, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1a, 0x2e, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x61, 0x72, 0x74, 0x79, 0x2e, 0x70, 0x72, + 0x6f, 0x6d, 0x70, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x52, 0x04, 0x6d, 0x65, + 0x74, 0x61, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x5f, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x4e, + 0x61, 0x6d, 0x65, 0x12, 0x34, 0x0a, 0x05, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x61, 0x72, 0x74, 0x79, 0x2e, + 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x52, 0x05, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x2c, 0x0a, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x6a, 0x0a, 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, + 0x0a, 0x0a, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x73, 0x70, 0x61, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x34, 0x0a, + 0x06, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, + 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x61, 0x72, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x70, + 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x52, 0x06, 0x70, 0x72, 0x6f, + 0x6d, 0x70, 0x74, 0x22, 0x4c, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, + 0x6d, 0x70, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x06, 0x70, + 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x61, 0x72, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x52, 0x06, 0x70, 0x72, 0x6f, 0x6d, 0x70, - 0x74, 0x22, 0x4c, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6d, 0x70, - 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x06, 0x70, 0x72, 0x6f, - 0x6d, 0x70, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x6d, 0x75, 0x6c, 0x74, - 0x69, 0x70, 0x61, 0x72, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2e, 0x76, 0x31, - 0x2e, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x52, 0x06, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x22, - 0x33, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x70, 0x61, 0x63, 0x65, - 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x4d, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6d, - 0x70, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x07, 0x70, - 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x6d, - 0x75, 0x6c, 0x74, 0x69, 0x70, 0x61, 0x72, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, - 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6d, - 0x70, 0x74, 0x73, 0x22, 0x45, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, + 0x74, 0x22, 0x33, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x70, 0x61, - 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x49, 0x0a, 0x11, 0x47, 0x65, - 0x74, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x34, 0x0a, 0x06, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1c, 0x2e, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x61, 0x72, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, - 0x6d, 0x70, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x52, 0x06, 0x70, - 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x22, 0x87, 0x01, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x52, 0x65, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, - 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x09, 0x73, 0x70, 0x61, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x70, - 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x31, 0x0a, 0x05, - 0x72, 0x65, 0x70, 0x6c, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x6d, 0x75, - 0x6c, 0x74, 0x69, 0x70, 0x61, 0x72, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2e, - 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x52, 0x05, 0x72, 0x65, 0x70, 0x6c, 0x79, 0x22, - 0x48, 0x0a, 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x31, 0x0a, 0x05, 0x72, 0x65, 0x70, 0x6c, 0x79, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x61, 0x72, - 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, - 0x6c, 0x79, 0x52, 0x05, 0x72, 0x65, 0x70, 0x6c, 0x79, 0x42, 0xdf, 0x01, 0x0a, 0x18, 0x63, 0x6f, - 0x6d, 0x2e, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x61, 0x72, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, - 0x6d, 0x70, 0x74, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x50, 0x72, - 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x44, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x61, 0x72, 0x74, - 0x79, 0x2e, 0x61, 0x69, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x61, - 0x72, 0x74, 0x79, 0x2f, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x75, - 0x6c, 0x74, 0x69, 0x70, 0x61, 0x72, 0x74, 0x79, 0x2f, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2f, - 0x76, 0x31, 0x3b, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4d, 0x50, - 0x58, 0xaa, 0x02, 0x14, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x61, 0x72, 0x74, 0x79, 0x2e, 0x50, - 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x14, 0x4d, 0x75, 0x6c, 0x74, 0x69, - 0x70, 0x61, 0x72, 0x74, 0x79, 0x5c, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x5c, 0x56, 0x31, 0xe2, - 0x02, 0x20, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x61, 0x72, 0x74, 0x79, 0x5c, 0x50, 0x72, 0x6f, - 0x6d, 0x70, 0x74, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0xea, 0x02, 0x16, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x61, 0x72, 0x74, 0x79, 0x3a, - 0x3a, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, + 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x4d, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, + 0x6f, 0x6d, 0x70, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, + 0x07, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, + 0x2e, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x61, 0x72, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x6d, + 0x70, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x52, 0x07, 0x70, 0x72, + 0x6f, 0x6d, 0x70, 0x74, 0x73, 0x22, 0x45, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6d, + 0x70, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x70, 0x61, + 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x49, 0x0a, 0x11, + 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x34, 0x0a, 0x06, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1c, 0x2e, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x61, 0x72, 0x74, 0x79, 0x2e, 0x70, + 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x52, + 0x06, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x22, 0x87, 0x01, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, + 0x0a, 0x0a, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x73, 0x70, 0x61, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, + 0x0b, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x31, + 0x0a, 0x05, 0x72, 0x65, 0x70, 0x6c, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, + 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x61, 0x72, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x70, + 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x52, 0x05, 0x72, 0x65, 0x70, 0x6c, + 0x79, 0x22, 0x48, 0x0a, 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x79, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x31, 0x0a, 0x05, 0x72, 0x65, 0x70, 0x6c, + 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x70, + 0x61, 0x72, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x52, + 0x65, 0x70, 0x6c, 0x79, 0x52, 0x05, 0x72, 0x65, 0x70, 0x6c, 0x79, 0x42, 0xdf, 0x01, 0x0a, 0x18, + 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x61, 0x72, 0x74, 0x79, 0x2e, 0x70, + 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, + 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x44, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x61, + 0x72, 0x74, 0x79, 0x2e, 0x61, 0x69, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x75, 0x6c, 0x74, 0x69, + 0x70, 0x61, 0x72, 0x74, 0x79, 0x2f, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2f, 0x76, 0x31, 0x2f, + 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x61, 0x72, 0x74, 0x79, 0x2f, 0x70, 0x72, 0x6f, 0x6d, 0x70, + 0x74, 0x2f, 0x76, 0x31, 0x3b, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x76, 0x31, 0xa2, 0x02, 0x03, + 0x4d, 0x50, 0x58, 0xaa, 0x02, 0x14, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x61, 0x72, 0x74, 0x79, + 0x2e, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x14, 0x4d, 0x75, 0x6c, + 0x74, 0x69, 0x70, 0x61, 0x72, 0x74, 0x79, 0x5c, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x5c, 0x56, + 0x31, 0xe2, 0x02, 0x20, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x61, 0x72, 0x74, 0x79, 0x5c, 0x50, + 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x16, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x61, 0x72, 0x74, + 0x79, 0x3a, 0x3a, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -855,44 +947,48 @@ func file_multiparty_prompt_v1_prompt_proto_rawDescGZIP() []byte { } var file_multiparty_prompt_v1_prompt_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_multiparty_prompt_v1_prompt_proto_msgTypes = make([]protoimpl.MessageInfo, 11) +var file_multiparty_prompt_v1_prompt_proto_msgTypes = make([]protoimpl.MessageInfo, 12) var file_multiparty_prompt_v1_prompt_proto_goTypes = []interface{}{ (Prompt_Status)(0), // 0: multiparty.prompt.v1.Prompt.Status (*Meta)(nil), // 1: multiparty.prompt.v1.Meta - (*Prompt)(nil), // 2: multiparty.prompt.v1.Prompt - (*Reply)(nil), // 3: multiparty.prompt.v1.Reply - (*CreatePromptRequest)(nil), // 4: multiparty.prompt.v1.CreatePromptRequest - (*CreatePromptResponse)(nil), // 5: multiparty.prompt.v1.CreatePromptResponse - (*ListPromptsRequest)(nil), // 6: multiparty.prompt.v1.ListPromptsRequest - (*ListPromptsResponse)(nil), // 7: multiparty.prompt.v1.ListPromptsResponse - (*GetPromptRequest)(nil), // 8: multiparty.prompt.v1.GetPromptRequest - (*GetPromptResponse)(nil), // 9: multiparty.prompt.v1.GetPromptResponse - (*CreateReplyRequest)(nil), // 10: multiparty.prompt.v1.CreateReplyRequest - (*CreateReplyResponse)(nil), // 11: multiparty.prompt.v1.CreateReplyResponse - (*timestamppb.Timestamp)(nil), // 12: google.protobuf.Timestamp - (*structpb.Value)(nil), // 13: google.protobuf.Value + (*Resource)(nil), // 2: multiparty.prompt.v1.Resource + (*Prompt)(nil), // 3: multiparty.prompt.v1.Prompt + (*Reply)(nil), // 4: multiparty.prompt.v1.Reply + (*CreatePromptRequest)(nil), // 5: multiparty.prompt.v1.CreatePromptRequest + (*CreatePromptResponse)(nil), // 6: multiparty.prompt.v1.CreatePromptResponse + (*ListPromptsRequest)(nil), // 7: multiparty.prompt.v1.ListPromptsRequest + (*ListPromptsResponse)(nil), // 8: multiparty.prompt.v1.ListPromptsResponse + (*GetPromptRequest)(nil), // 9: multiparty.prompt.v1.GetPromptRequest + (*GetPromptResponse)(nil), // 10: multiparty.prompt.v1.GetPromptResponse + (*CreateReplyRequest)(nil), // 11: multiparty.prompt.v1.CreateReplyRequest + (*CreateReplyResponse)(nil), // 12: multiparty.prompt.v1.CreateReplyResponse + (*timestamppb.Timestamp)(nil), // 13: google.protobuf.Timestamp + (*structpb.Value)(nil), // 14: google.protobuf.Value } var file_multiparty_prompt_v1_prompt_proto_depIdxs = []int32{ - 12, // 0: multiparty.prompt.v1.Meta.created:type_name -> google.protobuf.Timestamp - 12, // 1: multiparty.prompt.v1.Meta.updated:type_name -> google.protobuf.Timestamp - 1, // 2: multiparty.prompt.v1.Prompt.meta:type_name -> multiparty.prompt.v1.Meta - 0, // 3: multiparty.prompt.v1.Prompt.status:type_name -> multiparty.prompt.v1.Prompt.Status - 13, // 4: multiparty.prompt.v1.Prompt.in:type_name -> google.protobuf.Value - 13, // 5: multiparty.prompt.v1.Prompt.value:type_name -> google.protobuf.Value - 3, // 6: multiparty.prompt.v1.Prompt.replies:type_name -> multiparty.prompt.v1.Reply - 1, // 7: multiparty.prompt.v1.Reply.meta:type_name -> multiparty.prompt.v1.Meta - 13, // 8: multiparty.prompt.v1.Reply.value:type_name -> google.protobuf.Value - 2, // 9: multiparty.prompt.v1.CreatePromptRequest.prompt:type_name -> multiparty.prompt.v1.Prompt - 2, // 10: multiparty.prompt.v1.CreatePromptResponse.prompt:type_name -> multiparty.prompt.v1.Prompt - 2, // 11: multiparty.prompt.v1.ListPromptsResponse.prompts:type_name -> multiparty.prompt.v1.Prompt - 2, // 12: multiparty.prompt.v1.GetPromptResponse.prompt:type_name -> multiparty.prompt.v1.Prompt - 3, // 13: multiparty.prompt.v1.CreateReplyRequest.reply:type_name -> multiparty.prompt.v1.Reply - 3, // 14: multiparty.prompt.v1.CreateReplyResponse.reply:type_name -> multiparty.prompt.v1.Reply - 15, // [15:15] is the sub-list for method output_type - 15, // [15:15] is the sub-list for method input_type - 15, // [15:15] is the sub-list for extension type_name - 15, // [15:15] is the sub-list for extension extendee - 0, // [0:15] is the sub-list for field type_name + 13, // 0: multiparty.prompt.v1.Meta.created:type_name -> google.protobuf.Timestamp + 13, // 1: multiparty.prompt.v1.Meta.updated:type_name -> google.protobuf.Timestamp + 1, // 2: multiparty.prompt.v1.Resource.meta:type_name -> multiparty.prompt.v1.Meta + 1, // 3: multiparty.prompt.v1.Prompt.meta:type_name -> multiparty.prompt.v1.Meta + 2, // 4: multiparty.prompt.v1.Prompt.actor:type_name -> multiparty.prompt.v1.Resource + 0, // 5: multiparty.prompt.v1.Prompt.status:type_name -> multiparty.prompt.v1.Prompt.Status + 14, // 6: multiparty.prompt.v1.Prompt.in:type_name -> google.protobuf.Value + 14, // 7: multiparty.prompt.v1.Prompt.value:type_name -> google.protobuf.Value + 4, // 8: multiparty.prompt.v1.Prompt.replies:type_name -> multiparty.prompt.v1.Reply + 1, // 9: multiparty.prompt.v1.Reply.meta:type_name -> multiparty.prompt.v1.Meta + 2, // 10: multiparty.prompt.v1.Reply.actor:type_name -> multiparty.prompt.v1.Resource + 14, // 11: multiparty.prompt.v1.Reply.value:type_name -> google.protobuf.Value + 3, // 12: multiparty.prompt.v1.CreatePromptRequest.prompt:type_name -> multiparty.prompt.v1.Prompt + 3, // 13: multiparty.prompt.v1.CreatePromptResponse.prompt:type_name -> multiparty.prompt.v1.Prompt + 3, // 14: multiparty.prompt.v1.ListPromptsResponse.prompts:type_name -> multiparty.prompt.v1.Prompt + 3, // 15: multiparty.prompt.v1.GetPromptResponse.prompt:type_name -> multiparty.prompt.v1.Prompt + 4, // 16: multiparty.prompt.v1.CreateReplyRequest.reply:type_name -> multiparty.prompt.v1.Reply + 4, // 17: multiparty.prompt.v1.CreateReplyResponse.reply:type_name -> multiparty.prompt.v1.Reply + 18, // [18:18] is the sub-list for method output_type + 18, // [18:18] is the sub-list for method input_type + 18, // [18:18] is the sub-list for extension type_name + 18, // [18:18] is the sub-list for extension extendee + 0, // [0:18] is the sub-list for field type_name } func init() { file_multiparty_prompt_v1_prompt_proto_init() } @@ -914,7 +1010,7 @@ func file_multiparty_prompt_v1_prompt_proto_init() { } } file_multiparty_prompt_v1_prompt_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Prompt); i { + switch v := v.(*Resource); i { case 0: return &v.state case 1: @@ -926,7 +1022,7 @@ func file_multiparty_prompt_v1_prompt_proto_init() { } } file_multiparty_prompt_v1_prompt_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Reply); i { + switch v := v.(*Prompt); i { case 0: return &v.state case 1: @@ -938,7 +1034,7 @@ func file_multiparty_prompt_v1_prompt_proto_init() { } } file_multiparty_prompt_v1_prompt_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreatePromptRequest); i { + switch v := v.(*Reply); i { case 0: return &v.state case 1: @@ -950,7 +1046,7 @@ func file_multiparty_prompt_v1_prompt_proto_init() { } } file_multiparty_prompt_v1_prompt_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreatePromptResponse); i { + switch v := v.(*CreatePromptRequest); i { case 0: return &v.state case 1: @@ -962,7 +1058,7 @@ func file_multiparty_prompt_v1_prompt_proto_init() { } } file_multiparty_prompt_v1_prompt_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListPromptsRequest); i { + switch v := v.(*CreatePromptResponse); i { case 0: return &v.state case 1: @@ -974,7 +1070,7 @@ func file_multiparty_prompt_v1_prompt_proto_init() { } } file_multiparty_prompt_v1_prompt_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListPromptsResponse); i { + switch v := v.(*ListPromptsRequest); i { case 0: return &v.state case 1: @@ -986,7 +1082,7 @@ func file_multiparty_prompt_v1_prompt_proto_init() { } } file_multiparty_prompt_v1_prompt_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetPromptRequest); i { + switch v := v.(*ListPromptsResponse); i { case 0: return &v.state case 1: @@ -998,7 +1094,7 @@ func file_multiparty_prompt_v1_prompt_proto_init() { } } file_multiparty_prompt_v1_prompt_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetPromptResponse); i { + switch v := v.(*GetPromptRequest); i { case 0: return &v.state case 1: @@ -1010,7 +1106,7 @@ func file_multiparty_prompt_v1_prompt_proto_init() { } } file_multiparty_prompt_v1_prompt_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateReplyRequest); i { + switch v := v.(*GetPromptResponse); i { case 0: return &v.state case 1: @@ -1022,6 +1118,18 @@ func file_multiparty_prompt_v1_prompt_proto_init() { } } file_multiparty_prompt_v1_prompt_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateReplyRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_multiparty_prompt_v1_prompt_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CreateReplyResponse); i { case 0: return &v.state @@ -1040,7 +1148,7 @@ func file_multiparty_prompt_v1_prompt_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_multiparty_prompt_v1_prompt_proto_rawDesc, NumEnums: 1, - NumMessages: 11, + NumMessages: 12, NumExtensions: 0, NumServices: 0, }, diff --git a/api/multiparty/prompt/v1/prompt.proto b/api/multiparty/prompt/v1/prompt.proto index ecd1193..0f0e4e8 100644 --- a/api/multiparty/prompt/v1/prompt.proto +++ b/api/multiparty/prompt/v1/prompt.proto @@ -29,6 +29,12 @@ message Meta { google.protobuf.Timestamp updated = 5; } +message Resource { + string kind = 1; + Meta meta = 2; + string email = 3; +} + message Prompt { enum Status { UNKNOWN = 0; @@ -38,19 +44,21 @@ message Prompt { } Meta meta = 1; string title = 2; - Status status = 3; - google.protobuf.Value in = 4; - // jsonSchema = 5; - google.protobuf.Value value = 6; - // uiSchema = 7; - repeated Reply replies = 8; + Resource actor = 3; + Status status = 4; + google.protobuf.Value in = 5; + // jsonSchema = 6; + google.protobuf.Value value = 7; + // uiSchema = 8; + repeated Reply replies = 9; } message Reply { Meta meta = 1; string prompt_name = 2; + Resource actor = 3; // value matches the schema of the prompt - google.protobuf.Value value = 3; + google.protobuf.Value value = 4; } // Prompts diff --git a/clients/python/multiparty/api/multiparty/prompt/v1/prompt_pb2.py b/clients/python/multiparty/api/multiparty/prompt/v1/prompt_pb2.py index 4a51feb..00ccb41 100644 --- a/clients/python/multiparty/api/multiparty/prompt/v1/prompt_pb2.py +++ b/clients/python/multiparty/api/multiparty/prompt/v1/prompt_pb2.py @@ -16,7 +16,7 @@ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!multiparty/prompt/v1/prompt.proto\x12\x14multiparty.prompt.v1\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xbe\x01\n\x04Meta\x12\x14\n\x05space\x18\x01 \x01(\tR\x05space\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12 \n\x0b\x64\x65scription\x18\x03 \x01(\tR\x0b\x64\x65scription\x12\x34\n\x07\x63reated\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x07\x63reated\x12\x34\n\x07updated\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x07updated\"\xd0\x02\n\x06Prompt\x12.\n\x04meta\x18\x01 \x01(\x0b\x32\x1a.multiparty.prompt.v1.MetaR\x04meta\x12\x14\n\x05title\x18\x02 \x01(\tR\x05title\x12;\n\x06status\x18\x03 \x01(\x0e\x32#.multiparty.prompt.v1.Prompt.StatusR\x06status\x12&\n\x02in\x18\x04 \x01(\x0b\x32\x16.google.protobuf.ValueR\x02in\x12,\n\x05value\x18\x06 \x01(\x0b\x32\x16.google.protobuf.ValueR\x05value\x12\x35\n\x07replies\x18\x08 \x03(\x0b\x32\x1b.multiparty.prompt.v1.ReplyR\x07replies\"6\n\x06Status\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x08\n\x04OPEN\x10\x01\x12\n\n\x06\x43LOSED\x10\x02\x12\t\n\x05\x45RROR\x10\x03\"\x86\x01\n\x05Reply\x12.\n\x04meta\x18\x01 \x01(\x0b\x32\x1a.multiparty.prompt.v1.MetaR\x04meta\x12\x1f\n\x0bprompt_name\x18\x02 \x01(\tR\npromptName\x12,\n\x05value\x18\x03 \x01(\x0b\x32\x16.google.protobuf.ValueR\x05value\"j\n\x13\x43reatePromptRequest\x12\x1d\n\nspace_name\x18\x01 \x01(\tR\tspaceName\x12\x34\n\x06prompt\x18\x02 \x01(\x0b\x32\x1c.multiparty.prompt.v1.PromptR\x06prompt\"L\n\x14\x43reatePromptResponse\x12\x34\n\x06prompt\x18\x01 \x01(\x0b\x32\x1c.multiparty.prompt.v1.PromptR\x06prompt\"3\n\x12ListPromptsRequest\x12\x1d\n\nspace_name\x18\x01 \x01(\tR\tspaceName\"M\n\x13ListPromptsResponse\x12\x36\n\x07prompts\x18\x01 \x03(\x0b\x32\x1c.multiparty.prompt.v1.PromptR\x07prompts\"E\n\x10GetPromptRequest\x12\x1d\n\nspace_name\x18\x01 \x01(\tR\tspaceName\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\"I\n\x11GetPromptResponse\x12\x34\n\x06prompt\x18\x01 \x01(\x0b\x32\x1c.multiparty.prompt.v1.PromptR\x06prompt\"\x87\x01\n\x12\x43reateReplyRequest\x12\x1d\n\nspace_name\x18\x01 \x01(\tR\tspaceName\x12\x1f\n\x0bprompt_name\x18\x02 \x01(\tR\npromptName\x12\x31\n\x05reply\x18\x03 \x01(\x0b\x32\x1b.multiparty.prompt.v1.ReplyR\x05reply\"H\n\x13\x43reateReplyResponse\x12\x31\n\x05reply\x18\x01 \x01(\x0b\x32\x1b.multiparty.prompt.v1.ReplyR\x05replyB\xdf\x01\n\x18\x63om.multiparty.prompt.v1B\x0bPromptProtoP\x01ZDmultiparty.ai/api/multiparty/prompt/v1/multiparty/prompt/v1;promptv1\xa2\x02\x03MPX\xaa\x02\x14Multiparty.Prompt.V1\xca\x02\x14Multiparty\\Prompt\\V1\xe2\x02 Multiparty\\Prompt\\V1\\GPBMetadata\xea\x02\x16Multiparty::Prompt::V1b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!multiparty/prompt/v1/prompt.proto\x12\x14multiparty.prompt.v1\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xbe\x01\n\x04Meta\x12\x14\n\x05space\x18\x01 \x01(\tR\x05space\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12 \n\x0b\x64\x65scription\x18\x03 \x01(\tR\x0b\x64\x65scription\x12\x34\n\x07\x63reated\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x07\x63reated\x12\x34\n\x07updated\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x07updated\"d\n\x08Resource\x12\x12\n\x04kind\x18\x01 \x01(\tR\x04kind\x12.\n\x04meta\x18\x02 \x01(\x0b\x32\x1a.multiparty.prompt.v1.MetaR\x04meta\x12\x14\n\x05\x65mail\x18\x03 \x01(\tR\x05\x65mail\"\x86\x03\n\x06Prompt\x12.\n\x04meta\x18\x01 \x01(\x0b\x32\x1a.multiparty.prompt.v1.MetaR\x04meta\x12\x14\n\x05title\x18\x02 \x01(\tR\x05title\x12\x34\n\x05\x61\x63tor\x18\x03 \x01(\x0b\x32\x1e.multiparty.prompt.v1.ResourceR\x05\x61\x63tor\x12;\n\x06status\x18\x04 \x01(\x0e\x32#.multiparty.prompt.v1.Prompt.StatusR\x06status\x12&\n\x02in\x18\x05 \x01(\x0b\x32\x16.google.protobuf.ValueR\x02in\x12,\n\x05value\x18\x07 \x01(\x0b\x32\x16.google.protobuf.ValueR\x05value\x12\x35\n\x07replies\x18\t \x03(\x0b\x32\x1b.multiparty.prompt.v1.ReplyR\x07replies\"6\n\x06Status\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x08\n\x04OPEN\x10\x01\x12\n\n\x06\x43LOSED\x10\x02\x12\t\n\x05\x45RROR\x10\x03\"\xbc\x01\n\x05Reply\x12.\n\x04meta\x18\x01 \x01(\x0b\x32\x1a.multiparty.prompt.v1.MetaR\x04meta\x12\x1f\n\x0bprompt_name\x18\x02 \x01(\tR\npromptName\x12\x34\n\x05\x61\x63tor\x18\x03 \x01(\x0b\x32\x1e.multiparty.prompt.v1.ResourceR\x05\x61\x63tor\x12,\n\x05value\x18\x04 \x01(\x0b\x32\x16.google.protobuf.ValueR\x05value\"j\n\x13\x43reatePromptRequest\x12\x1d\n\nspace_name\x18\x01 \x01(\tR\tspaceName\x12\x34\n\x06prompt\x18\x02 \x01(\x0b\x32\x1c.multiparty.prompt.v1.PromptR\x06prompt\"L\n\x14\x43reatePromptResponse\x12\x34\n\x06prompt\x18\x01 \x01(\x0b\x32\x1c.multiparty.prompt.v1.PromptR\x06prompt\"3\n\x12ListPromptsRequest\x12\x1d\n\nspace_name\x18\x01 \x01(\tR\tspaceName\"M\n\x13ListPromptsResponse\x12\x36\n\x07prompts\x18\x01 \x03(\x0b\x32\x1c.multiparty.prompt.v1.PromptR\x07prompts\"E\n\x10GetPromptRequest\x12\x1d\n\nspace_name\x18\x01 \x01(\tR\tspaceName\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\"I\n\x11GetPromptResponse\x12\x34\n\x06prompt\x18\x01 \x01(\x0b\x32\x1c.multiparty.prompt.v1.PromptR\x06prompt\"\x87\x01\n\x12\x43reateReplyRequest\x12\x1d\n\nspace_name\x18\x01 \x01(\tR\tspaceName\x12\x1f\n\x0bprompt_name\x18\x02 \x01(\tR\npromptName\x12\x31\n\x05reply\x18\x03 \x01(\x0b\x32\x1b.multiparty.prompt.v1.ReplyR\x05reply\"H\n\x13\x43reateReplyResponse\x12\x31\n\x05reply\x18\x01 \x01(\x0b\x32\x1b.multiparty.prompt.v1.ReplyR\x05replyB\xdf\x01\n\x18\x63om.multiparty.prompt.v1B\x0bPromptProtoP\x01ZDmultiparty.ai/api/multiparty/prompt/v1/multiparty/prompt/v1;promptv1\xa2\x02\x03MPX\xaa\x02\x14Multiparty.Prompt.V1\xca\x02\x14Multiparty\\Prompt\\V1\xe2\x02 Multiparty\\Prompt\\V1\\GPBMetadata\xea\x02\x16Multiparty::Prompt::V1b\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -26,26 +26,28 @@ _globals['DESCRIPTOR']._serialized_options = b'\n\030com.multiparty.prompt.v1B\013PromptProtoP\001ZDmultiparty.ai/api/multiparty/prompt/v1/multiparty/prompt/v1;promptv1\242\002\003MPX\252\002\024Multiparty.Prompt.V1\312\002\024Multiparty\\Prompt\\V1\342\002 Multiparty\\Prompt\\V1\\GPBMetadata\352\002\026Multiparty::Prompt::V1' _globals['_META']._serialized_start=123 _globals['_META']._serialized_end=313 - _globals['_PROMPT']._serialized_start=316 - _globals['_PROMPT']._serialized_end=652 - _globals['_PROMPT_STATUS']._serialized_start=598 - _globals['_PROMPT_STATUS']._serialized_end=652 - _globals['_REPLY']._serialized_start=655 - _globals['_REPLY']._serialized_end=789 - _globals['_CREATEPROMPTREQUEST']._serialized_start=791 - _globals['_CREATEPROMPTREQUEST']._serialized_end=897 - _globals['_CREATEPROMPTRESPONSE']._serialized_start=899 - _globals['_CREATEPROMPTRESPONSE']._serialized_end=975 - _globals['_LISTPROMPTSREQUEST']._serialized_start=977 - _globals['_LISTPROMPTSREQUEST']._serialized_end=1028 - _globals['_LISTPROMPTSRESPONSE']._serialized_start=1030 - _globals['_LISTPROMPTSRESPONSE']._serialized_end=1107 - _globals['_GETPROMPTREQUEST']._serialized_start=1109 - _globals['_GETPROMPTREQUEST']._serialized_end=1178 - _globals['_GETPROMPTRESPONSE']._serialized_start=1180 - _globals['_GETPROMPTRESPONSE']._serialized_end=1253 - _globals['_CREATEREPLYREQUEST']._serialized_start=1256 - _globals['_CREATEREPLYREQUEST']._serialized_end=1391 - _globals['_CREATEREPLYRESPONSE']._serialized_start=1393 - _globals['_CREATEREPLYRESPONSE']._serialized_end=1465 + _globals['_RESOURCE']._serialized_start=315 + _globals['_RESOURCE']._serialized_end=415 + _globals['_PROMPT']._serialized_start=418 + _globals['_PROMPT']._serialized_end=808 + _globals['_PROMPT_STATUS']._serialized_start=754 + _globals['_PROMPT_STATUS']._serialized_end=808 + _globals['_REPLY']._serialized_start=811 + _globals['_REPLY']._serialized_end=999 + _globals['_CREATEPROMPTREQUEST']._serialized_start=1001 + _globals['_CREATEPROMPTREQUEST']._serialized_end=1107 + _globals['_CREATEPROMPTRESPONSE']._serialized_start=1109 + _globals['_CREATEPROMPTRESPONSE']._serialized_end=1185 + _globals['_LISTPROMPTSREQUEST']._serialized_start=1187 + _globals['_LISTPROMPTSREQUEST']._serialized_end=1238 + _globals['_LISTPROMPTSRESPONSE']._serialized_start=1240 + _globals['_LISTPROMPTSRESPONSE']._serialized_end=1317 + _globals['_GETPROMPTREQUEST']._serialized_start=1319 + _globals['_GETPROMPTREQUEST']._serialized_end=1388 + _globals['_GETPROMPTRESPONSE']._serialized_start=1390 + _globals['_GETPROMPTRESPONSE']._serialized_end=1463 + _globals['_CREATEREPLYREQUEST']._serialized_start=1466 + _globals['_CREATEREPLYREQUEST']._serialized_end=1601 + _globals['_CREATEREPLYRESPONSE']._serialized_start=1603 + _globals['_CREATEREPLYRESPONSE']._serialized_end=1675 # @@protoc_insertion_point(module_scope) diff --git a/clients/python/multiparty/api/multiparty/prompt/v1/prompt_pb2.pyi b/clients/python/multiparty/api/multiparty/prompt/v1/prompt_pb2.pyi index 120cce3..0bff15b 100644 --- a/clients/python/multiparty/api/multiparty/prompt/v1/prompt_pb2.pyi +++ b/clients/python/multiparty/api/multiparty/prompt/v1/prompt_pb2.pyi @@ -63,6 +63,29 @@ class Meta(google.protobuf.message.Message): global___Meta = Meta +@typing_extensions.final +class Resource(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KIND_FIELD_NUMBER: builtins.int + META_FIELD_NUMBER: builtins.int + EMAIL_FIELD_NUMBER: builtins.int + kind: builtins.str + @property + def meta(self) -> global___Meta: ... + email: builtins.str + def __init__( + self, + *, + kind: builtins.str = ..., + meta: global___Meta | None = ..., + email: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["meta", b"meta"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["email", b"email", "kind", b"kind", "meta", b"meta"]) -> None: ... + +global___Resource = Resource + @typing_extensions.final class Prompt(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -86,6 +109,7 @@ class Prompt(google.protobuf.message.Message): META_FIELD_NUMBER: builtins.int TITLE_FIELD_NUMBER: builtins.int + ACTOR_FIELD_NUMBER: builtins.int STATUS_FIELD_NUMBER: builtins.int IN_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int @@ -93,24 +117,27 @@ class Prompt(google.protobuf.message.Message): @property def meta(self) -> global___Meta: ... title: builtins.str + @property + def actor(self) -> global___Resource: ... status: global___Prompt.Status.ValueType @property def value(self) -> google.protobuf.struct_pb2.Value: - """jsonSchema = 5;""" + """jsonSchema = 6;""" @property def replies(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Reply]: - """uiSchema = 7;""" + """uiSchema = 8;""" def __init__( self, *, meta: global___Meta | None = ..., title: builtins.str = ..., + actor: global___Resource | None = ..., status: global___Prompt.Status.ValueType = ..., value: google.protobuf.struct_pb2.Value | None = ..., replies: collections.abc.Iterable[global___Reply] | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["in", b"in", "meta", b"meta", "value", b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["in", b"in", "meta", b"meta", "replies", b"replies", "status", b"status", "title", b"title", "value", b"value"]) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["actor", b"actor", "in", b"in", "meta", b"meta", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["actor", b"actor", "in", b"in", "meta", b"meta", "replies", b"replies", "status", b"status", "title", b"title", "value", b"value"]) -> None: ... global___Prompt = Prompt @@ -120,11 +147,14 @@ class Reply(google.protobuf.message.Message): META_FIELD_NUMBER: builtins.int PROMPT_NAME_FIELD_NUMBER: builtins.int + ACTOR_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int @property def meta(self) -> global___Meta: ... prompt_name: builtins.str @property + def actor(self) -> global___Resource: ... + @property def value(self) -> google.protobuf.struct_pb2.Value: """value matches the schema of the prompt""" def __init__( @@ -132,10 +162,11 @@ class Reply(google.protobuf.message.Message): *, meta: global___Meta | None = ..., prompt_name: builtins.str = ..., + actor: global___Resource | None = ..., value: google.protobuf.struct_pb2.Value | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["meta", b"meta", "value", b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["meta", b"meta", "prompt_name", b"prompt_name", "value", b"value"]) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["actor", b"actor", "meta", b"meta", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["actor", b"actor", "meta", b"meta", "prompt_name", b"prompt_name", "value", b"value"]) -> None: ... global___Reply = Reply