diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 1a90f1f..f7e015f 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -1,10 +1,5 @@ name: Generate docs -on: - # Trigger the workflow on push or pull request, - # but only for the main branch - push: - branches: - - master +on: [push] jobs: docs: @@ -65,6 +60,7 @@ jobs: go run cmd/docgen/main.go . - name: Deploy + if: github.ref == 'refs/heads/master' uses: s0/git-publish-subdir-action@develop env: REPO: self @@ -82,6 +78,7 @@ jobs: # publish to github first under micro/services # .npmrc has settings for it - uses: JS-DevTools/npm-publish@v1 + if: github.ref == 'refs/heads/master' with: access: public package: services/clients/ts/package.json @@ -95,6 +92,7 @@ jobs: sed -i 's/micro/m3o/g' clients/ts/package.json - uses: JS-DevTools/npm-publish@v1 + if: github.ref == 'refs/heads/master' with: access: public package: services/clients/ts/package.json diff --git a/cmd/docgen/main.go b/cmd/docgen/main.go index 7a1bc99..5d1be33 100644 --- a/cmd/docgen/main.go +++ b/cmd/docgen/main.go @@ -259,37 +259,39 @@ func saveSpec(originalMarkDown []byte, contentDir, serviceName string, spec *ope func schemaToMap(spec *openapi3.SchemaRef, schemas map[string]*openapi3.SchemaRef) map[string]interface{} { var recurse func(props map[string]*openapi3.SchemaRef) map[string]interface{} + getAtomic := func(v *openapi3.SchemaRef) interface{} { + switch v.Value.Type { + case "string": + if len(v.Value.Description) > 0 { + return strings.Replace(v.Value.Description, "\n", ".", -1) + } else { + return v.Value.Type + } + case "number": + return 1 + case "boolean": + return true + } + return "UNKOWN TYPE " + v.Value.Type + } recurse = func(props map[string]*openapi3.SchemaRef) map[string]interface{} { ret := map[string]interface{}{} for k, v := range props { k = strcase.SnakeCase(k) - //v.Value. + if v.Value.Type == "object" { - // @todo identify what is a slice and what is not! - // currently the openapi converter messes this up - // see redoc html output ret[k] = recurse(v.Value.Properties) continue } if v.Value.Type == "array" { - // @todo identify what is a slice and what is not! - // currently the openapi converter messes this up - // see redoc html output - ret[k] = []interface{}{recurse(v.Value.Properties)} + if v.Value.Items.Value.Type != "object" { + ret[k] = []interface{}{getAtomic(v.Value.Items)} + } else { + ret[k] = []interface{}{recurse(v.Value.Items.Value.Properties)} + } continue } - switch v.Value.Type { - case "string": - if len(v.Value.Description) > 0 { - ret[k] = strings.Replace(v.Value.Description, "\n", ".", -1) - } else { - ret[k] = v.Value.Type - } - case "number": - ret[k] = 1 - case "boolean": - ret[k] = true - } + ret[k] = getAtomic(v) } return ret diff --git a/cmd/tsgen/main.go b/cmd/tsgen/main.go index ffcf64f..8856900 100644 --- a/cmd/tsgen/main.go +++ b/cmd/tsgen/main.go @@ -10,7 +10,6 @@ import ( "os/exec" "path/filepath" "strings" - "text/template" "github.com/Masterminds/semver/v3" "github.com/getkin/kin-openapi/openapi3" @@ -172,144 +171,6 @@ func main() { } } -type specType struct { - name string - tag string - includeReadme bool - filePostFix string - titlePostFix string - template string -} - -var specTypes = []specType{ - { - name: "default markdown", - tag: "Readme", - filePostFix: ".md", - template: defTempl, - includeReadme: true, - }, -} - -func saveFile(tsDir string, serviceName string, spec *openapi3.Swagger) error { - for _, v := range specTypes { - fmt.Println("Processing ", v.name) - contentFile := filepath.Join(tsDir, serviceName+".ts") - fi, err := os.OpenFile(contentFile, os.O_APPEND|os.O_WRONLY|os.O_CREATE, 0777) - if err != nil { - return err - } - tmpl, err := template.New("test").Funcs(template.FuncMap{ - "toLower": func(s string) string { - return strings.ToLower(s) - }, - "params": func(p openapi3.Parameters) string { - ls := "" - for _, v := range p { - //if v.Value.In == "body" { - bs, _ := v.MarshalJSON() - ls += string(bs) + ", " - //} - } - return ls - }, - // @todo should take SpecRef here not RequestBodyRef - "schemaJSON": func(prepend int, ref string) string { - for k, v := range spec.Components.Schemas { - // ie. #/components/requestBodies/PostsSaveRequest contains - // SaveRequest, can't see any other way to correlate - if strings.HasSuffix(ref, k) { - bs, _ := json.MarshalIndent(schemaToMap(v, spec.Components.Schemas), "", strings.Repeat(" ", prepend)+" ") - // last line wont get prepended so we fix that here - parts := strings.Split(string(bs), "\n") - // skip if it's only 1 line, ie it's '{}' - if len(parts) <= 1 { - return string(bs) - } - parts[len(parts)-1] = parts[len(parts)-1] - return strings.Join(parts, "\n") - } - } - - return "Schema related to " + ref + " not found" - - }, - "schemaDescription": func(ref string) string { - for k, v := range spec.Components.Schemas { - // ie. #/components/requestBodies/PostsSaveRequest contains - // SaveRequest, can't see any other way to correlate - if strings.HasSuffix(ref, k) { - return v.Value.Description - } - } - - return "Schema related to " + ref + " not found" - }, - // turn chat/Chat/History - // to Chat History - "titleize": func(s string) string { - parts := strings.Split(s, "/") - if len(parts) > 2 { - return strings.Join(parts[2:], " ") - } - return strings.Join(parts, " ") - }, - "firstResponseRef": func(rs openapi3.Responses) string { - return rs.Get(200).Ref - }, - }).Parse(v.template) - if err != nil { - panic(err) - } - err = tmpl.Execute(fi, spec) - if err != nil { - return err - } - } - return nil -} - -func schemaToMap(spec *openapi3.SchemaRef, schemas map[string]*openapi3.SchemaRef) map[string]interface{} { - var recurse func(props map[string]*openapi3.SchemaRef) map[string]interface{} - - recurse = func(props map[string]*openapi3.SchemaRef) map[string]interface{} { - ret := map[string]interface{}{} - for k, v := range props { - k = strcase.SnakeCase(k) - //v.Value. - if v.Value.Type == "object" { - // @todo identify what is a slice and what is not! - // currently the openapi converter messes this up - // see redoc html output - ret[k] = recurse(v.Value.Properties) - continue - } - if v.Value.Type == "array" { - // @todo identify what is a slice and what is not! - // currently the openapi converter messes this up - // see redoc html output - ret[k] = []interface{}{recurse(v.Value.Properties)} - continue - } - switch v.Value.Type { - case "string": - if len(v.Value.Description) > 0 { - ret[k] = strings.Replace(v.Value.Description, "\n", ".", -1) - } else { - ret[k] = v.Value.Type - } - case "number": - ret[k] = 1 - case "boolean": - ret[k] = true - } - - } - return ret - } - return recurse(spec.Value.Properties) -} - func schemaToTs(title string, spec *openapi3.SchemaRef) string { var recurse func(props map[string]*openapi3.SchemaRef, level int) string @@ -356,12 +217,6 @@ func schemaToTs(title string, spec *openapi3.SchemaRef) string { return "export interface " + title + " {\n" + recurse(spec.Value.Properties, 1) + "}" } -const defTempl = ` -import { components } from './{{ .Info.Title | toLower }}_schema'; - -export interface types extends components {}; -` - // CopyFile copies a file from src to dst. If src and dst files exist, and are // the same, then return success. Otherise, attempt to create a hard link // between the two files. If that fail, copy the file contents from src to dst. diff --git a/posts/proto/posts.pb.go b/posts/proto/posts.pb.go index 028d476..d33ccee 100644 --- a/posts/proto/posts.pb.go +++ b/posts/proto/posts.pb.go @@ -145,87 +145,103 @@ func (x *Post) GetImage() string { } type IndexRequest struct { - Limit int64 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"` - Offset int64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Limit int64 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"` + Offset int64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` } -func (m *IndexRequest) Reset() { *m = IndexRequest{} } -func (m *IndexRequest) String() string { return proto.CompactTextString(m) } -func (*IndexRequest) ProtoMessage() {} +func (x *IndexRequest) Reset() { + *x = IndexRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_posts_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *IndexRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*IndexRequest) ProtoMessage() {} + +func (x *IndexRequest) ProtoReflect() protoreflect.Message { + mi := &file_proto_posts_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 IndexRequest.ProtoReflect.Descriptor instead. func (*IndexRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e93dc7d934d9dc10, []int{1} + return file_proto_posts_proto_rawDescGZIP(), []int{1} } -func (m *IndexRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_IndexRequest.Unmarshal(m, b) -} -func (m *IndexRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_IndexRequest.Marshal(b, m, deterministic) -} -func (m *IndexRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_IndexRequest.Merge(m, src) -} -func (m *IndexRequest) XXX_Size() int { - return xxx_messageInfo_IndexRequest.Size(m) -} -func (m *IndexRequest) XXX_DiscardUnknown() { - xxx_messageInfo_IndexRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_IndexRequest proto.InternalMessageInfo - -func (m *IndexRequest) GetLimit() int64 { - if m != nil { - return m.Limit +func (x *IndexRequest) GetLimit() int64 { + if x != nil { + return x.Limit } return 0 } -func (m *IndexRequest) GetOffset() int64 { - if m != nil { - return m.Offset +func (x *IndexRequest) GetOffset() int64 { + if x != nil { + return x.Offset } return 0 } type IndexResponse struct { - Posts []*Post `protobuf:"bytes,1,rep,name=posts,proto3" json:"posts,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Posts []*Post `protobuf:"bytes,1,rep,name=posts,proto3" json:"posts,omitempty"` } -func (m *IndexResponse) Reset() { *m = IndexResponse{} } -func (m *IndexResponse) String() string { return proto.CompactTextString(m) } -func (*IndexResponse) ProtoMessage() {} +func (x *IndexResponse) Reset() { + *x = IndexResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_posts_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *IndexResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*IndexResponse) ProtoMessage() {} + +func (x *IndexResponse) ProtoReflect() protoreflect.Message { + mi := &file_proto_posts_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 IndexResponse.ProtoReflect.Descriptor instead. func (*IndexResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e93dc7d934d9dc10, []int{2} + return file_proto_posts_proto_rawDescGZIP(), []int{2} } -func (m *IndexResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_IndexResponse.Unmarshal(m, b) -} -func (m *IndexResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_IndexResponse.Marshal(b, m, deterministic) -} -func (m *IndexResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_IndexResponse.Merge(m, src) -} -func (m *IndexResponse) XXX_Size() int { - return xxx_messageInfo_IndexResponse.Size(m) -} -func (m *IndexResponse) XXX_DiscardUnknown() { - xxx_messageInfo_IndexResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_IndexResponse proto.InternalMessageInfo - -func (m *IndexResponse) GetPosts() []*Post { - if m != nil { - return m.Posts +func (x *IndexResponse) GetPosts() []*Post { + if x != nil { + return x.Posts } return nil } @@ -233,7 +249,6 @@ func (m *IndexResponse) GetPosts() []*Post { // Query posts. Acts as a listing when no id or slug provided. // Gets a single post by id or slug if any of them provided. type QueryRequest struct { -<<<<<<< HEAD state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -248,27 +263,10 @@ type QueryRequest struct { func (x *QueryRequest) Reset() { *x = QueryRequest{} if protoimpl.UnsafeEnabled { - mi := &file_proto_posts_proto_msgTypes[1] + mi := &file_proto_posts_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } -======= - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Slug string `protobuf:"bytes,2,opt,name=slug,proto3" json:"slug,omitempty"` - Tag string `protobuf:"bytes,3,opt,name=tag,proto3" json:"tag,omitempty"` - Offset int64 `protobuf:"varint,4,opt,name=offset,proto3" json:"offset,omitempty"` - Limit int64 `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *QueryRequest) Reset() { *m = QueryRequest{} } -func (m *QueryRequest) String() string { return proto.CompactTextString(m) } -func (*QueryRequest) ProtoMessage() {} -func (*QueryRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e93dc7d934d9dc10, []int{3} ->>>>>>> master } func (x *QueryRequest) String() string { @@ -278,7 +276,7 @@ func (x *QueryRequest) String() string { func (*QueryRequest) ProtoMessage() {} func (x *QueryRequest) ProtoReflect() protoreflect.Message { - mi := &file_proto_posts_proto_msgTypes[1] + mi := &file_proto_posts_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -291,7 +289,7 @@ func (x *QueryRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use QueryRequest.ProtoReflect.Descriptor instead. func (*QueryRequest) Descriptor() ([]byte, []int) { - return file_proto_posts_proto_rawDescGZIP(), []int{1} + return file_proto_posts_proto_rawDescGZIP(), []int{3} } func (x *QueryRequest) GetId() string { @@ -334,21 +332,13 @@ type QueryResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields -<<<<<<< HEAD Posts []*Post `protobuf:"bytes,1,rep,name=posts,proto3" json:"posts,omitempty"` -======= -func (m *QueryResponse) Reset() { *m = QueryResponse{} } -func (m *QueryResponse) String() string { return proto.CompactTextString(m) } -func (*QueryResponse) ProtoMessage() {} -func (*QueryResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e93dc7d934d9dc10, []int{4} ->>>>>>> master } func (x *QueryResponse) Reset() { *x = QueryResponse{} if protoimpl.UnsafeEnabled { - mi := &file_proto_posts_proto_msgTypes[2] + mi := &file_proto_posts_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -361,7 +351,7 @@ func (x *QueryResponse) String() string { func (*QueryResponse) ProtoMessage() {} func (x *QueryResponse) ProtoReflect() protoreflect.Message { - mi := &file_proto_posts_proto_msgTypes[2] + mi := &file_proto_posts_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -374,7 +364,7 @@ func (x *QueryResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use QueryResponse.ProtoReflect.Descriptor instead. func (*QueryResponse) Descriptor() ([]byte, []int) { - return file_proto_posts_proto_rawDescGZIP(), []int{2} + return file_proto_posts_proto_rawDescGZIP(), []int{4} } func (x *QueryResponse) GetPosts() []*Post { @@ -401,21 +391,13 @@ type SaveRequest struct { Image string `protobuf:"bytes,8,opt,name=image,proto3" json:"image,omitempty"` } -<<<<<<< HEAD func (x *SaveRequest) Reset() { *x = SaveRequest{} if protoimpl.UnsafeEnabled { - mi := &file_proto_posts_proto_msgTypes[3] + mi := &file_proto_posts_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } -======= -func (m *SaveRequest) Reset() { *m = SaveRequest{} } -func (m *SaveRequest) String() string { return proto.CompactTextString(m) } -func (*SaveRequest) ProtoMessage() {} -func (*SaveRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e93dc7d934d9dc10, []int{5} ->>>>>>> master } func (x *SaveRequest) String() string { @@ -425,7 +407,7 @@ func (x *SaveRequest) String() string { func (*SaveRequest) ProtoMessage() {} func (x *SaveRequest) ProtoReflect() protoreflect.Message { - mi := &file_proto_posts_proto_msgTypes[3] + mi := &file_proto_posts_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -438,7 +420,7 @@ func (x *SaveRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use SaveRequest.ProtoReflect.Descriptor instead. func (*SaveRequest) Descriptor() ([]byte, []int) { - return file_proto_posts_proto_rawDescGZIP(), []int{3} + return file_proto_posts_proto_rawDescGZIP(), []int{5} } func (x *SaveRequest) GetId() string { @@ -502,21 +484,13 @@ type SaveResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields -<<<<<<< HEAD Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` -======= -func (m *SaveResponse) Reset() { *m = SaveResponse{} } -func (m *SaveResponse) String() string { return proto.CompactTextString(m) } -func (*SaveResponse) ProtoMessage() {} -func (*SaveResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e93dc7d934d9dc10, []int{6} ->>>>>>> master } func (x *SaveResponse) Reset() { *x = SaveResponse{} if protoimpl.UnsafeEnabled { - mi := &file_proto_posts_proto_msgTypes[4] + mi := &file_proto_posts_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -529,7 +503,7 @@ func (x *SaveResponse) String() string { func (*SaveResponse) ProtoMessage() {} func (x *SaveResponse) ProtoReflect() protoreflect.Message { - mi := &file_proto_posts_proto_msgTypes[4] + mi := &file_proto_posts_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -542,7 +516,7 @@ func (x *SaveResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use SaveResponse.ProtoReflect.Descriptor instead. func (*SaveResponse) Descriptor() ([]byte, []int) { - return file_proto_posts_proto_rawDescGZIP(), []int{4} + return file_proto_posts_proto_rawDescGZIP(), []int{6} } func (x *SaveResponse) GetId() string { @@ -557,21 +531,13 @@ type DeleteRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields -<<<<<<< HEAD Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` -======= -func (m *DeleteRequest) Reset() { *m = DeleteRequest{} } -func (m *DeleteRequest) String() string { return proto.CompactTextString(m) } -func (*DeleteRequest) ProtoMessage() {} -func (*DeleteRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e93dc7d934d9dc10, []int{7} ->>>>>>> master } func (x *DeleteRequest) Reset() { *x = DeleteRequest{} if protoimpl.UnsafeEnabled { - mi := &file_proto_posts_proto_msgTypes[5] + mi := &file_proto_posts_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -584,7 +550,7 @@ func (x *DeleteRequest) String() string { func (*DeleteRequest) ProtoMessage() {} func (x *DeleteRequest) ProtoReflect() protoreflect.Message { - mi := &file_proto_posts_proto_msgTypes[5] + mi := &file_proto_posts_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -597,7 +563,7 @@ func (x *DeleteRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead. func (*DeleteRequest) Descriptor() ([]byte, []int) { - return file_proto_posts_proto_rawDescGZIP(), []int{5} + return file_proto_posts_proto_rawDescGZIP(), []int{7} } func (x *DeleteRequest) GetId() string { @@ -616,7 +582,7 @@ type DeleteResponse struct { func (x *DeleteResponse) Reset() { *x = DeleteResponse{} if protoimpl.UnsafeEnabled { - mi := &file_proto_posts_proto_msgTypes[6] + mi := &file_proto_posts_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -629,7 +595,7 @@ func (x *DeleteResponse) String() string { func (*DeleteResponse) ProtoMessage() {} func (x *DeleteResponse) ProtoReflect() protoreflect.Message { - mi := &file_proto_posts_proto_msgTypes[6] + mi := &file_proto_posts_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -642,8 +608,7 @@ func (x *DeleteResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead. func (*DeleteResponse) Descriptor() ([]byte, []int) { -<<<<<<< HEAD - return file_proto_posts_proto_rawDescGZIP(), []int{6} + return file_proto_posts_proto_rawDescGZIP(), []int{8} } var File_proto_posts_proto protoreflect.FileDescriptor @@ -671,52 +636,62 @@ var file_proto_posts_proto_rawDesc = []byte{ 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, 0x72, 0x0a, 0x0c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, - 0x64, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x6c, 0x75, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x73, 0x6c, 0x75, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, - 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, - 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, - 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x22, 0x32, 0x0a, 0x0d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x21, 0x0a, 0x05, 0x70, 0x6f, 0x73, 0x74, 0x73, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x6f, 0x73, 0x74, 0x73, 0x2e, 0x50, 0x6f, - 0x73, 0x74, 0x52, 0x05, 0x70, 0x6f, 0x73, 0x74, 0x73, 0x22, 0xa4, 0x02, 0x0a, 0x0b, 0x53, 0x61, - 0x76, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, - 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, - 0x12, 0x0a, 0x04, 0x73, 0x6c, 0x75, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x73, - 0x6c, 0x75, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x1c, 0x0a, - 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, - 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x74, - 0x61, 0x67, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x12, - 0x3c, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x07, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x20, 0x2e, 0x70, 0x6f, 0x73, 0x74, 0x73, 0x2e, 0x53, 0x61, 0x76, 0x65, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, - 0x74, 0x72, 0x79, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x14, 0x0a, - 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x69, 0x6d, - 0x61, 0x67, 0x65, 0x1a, 0x3b, 0x0a, 0x0d, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 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, 0x1e, 0x0a, 0x0c, 0x53, 0x61, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, - 0x22, 0x1f, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, - 0x64, 0x22, 0x10, 0x0a, 0x0e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x32, 0xa9, 0x01, 0x0a, 0x05, 0x50, 0x6f, 0x73, 0x74, 0x73, 0x12, 0x34, 0x0a, - 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x13, 0x2e, 0x70, 0x6f, 0x73, 0x74, 0x73, 0x2e, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x70, 0x6f, - 0x73, 0x74, 0x73, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x00, 0x12, 0x31, 0x0a, 0x04, 0x53, 0x61, 0x76, 0x65, 0x12, 0x12, 0x2e, 0x70, 0x6f, - 0x73, 0x74, 0x73, 0x2e, 0x53, 0x61, 0x76, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x13, 0x2e, 0x70, 0x6f, 0x73, 0x74, 0x73, 0x2e, 0x53, 0x61, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x37, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, - 0x12, 0x14, 0x2e, 0x70, 0x6f, 0x73, 0x74, 0x73, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x70, 0x6f, 0x73, 0x74, 0x73, 0x2e, 0x44, - 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x01, 0x22, 0x3c, 0x0a, 0x0c, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, + 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x22, + 0x32, 0x0a, 0x0d, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x21, 0x0a, 0x05, 0x70, 0x6f, 0x73, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x0b, 0x2e, 0x70, 0x6f, 0x73, 0x74, 0x73, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x52, 0x05, 0x70, 0x6f, + 0x73, 0x74, 0x73, 0x22, 0x72, 0x0a, 0x0c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x6c, 0x75, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x73, 0x6c, 0x75, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, + 0x73, 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, + 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x22, 0x32, 0x0a, 0x0d, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x21, 0x0a, 0x05, 0x70, 0x6f, 0x73, 0x74, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x6f, 0x73, 0x74, 0x73, 0x2e, + 0x50, 0x6f, 0x73, 0x74, 0x52, 0x05, 0x70, 0x6f, 0x73, 0x74, 0x73, 0x22, 0xa4, 0x02, 0x0a, 0x0b, + 0x53, 0x61, 0x76, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, + 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, + 0x65, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x6c, 0x75, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x73, 0x6c, 0x75, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, + 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x12, 0x0a, + 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, + 0x73, 0x12, 0x3c, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x07, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x70, 0x6f, 0x73, 0x74, 0x73, 0x2e, 0x53, 0x61, 0x76, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, + 0x14, 0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x69, 0x6d, 0x61, 0x67, 0x65, 0x1a, 0x3b, 0x0a, 0x0d, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 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, 0x1e, 0x0a, 0x0c, 0x53, 0x61, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, + 0x69, 0x64, 0x22, 0x1f, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x02, 0x69, 0x64, 0x22, 0x10, 0x0a, 0x0e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xdf, 0x01, 0x0a, 0x05, 0x50, 0x6f, 0x73, 0x74, 0x73, 0x12, + 0x34, 0x0a, 0x05, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x13, 0x2e, 0x70, 0x6f, 0x73, 0x74, 0x73, + 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, + 0x70, 0x6f, 0x73, 0x74, 0x73, 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x34, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x13, + 0x2e, 0x70, 0x6f, 0x73, 0x74, 0x73, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x70, 0x6f, 0x73, 0x74, 0x73, 0x2e, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x31, 0x0a, 0x04, 0x53, + 0x61, 0x76, 0x65, 0x12, 0x12, 0x2e, 0x70, 0x6f, 0x73, 0x74, 0x73, 0x2e, 0x53, 0x61, 0x76, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x70, 0x6f, 0x73, 0x74, 0x73, 0x2e, + 0x53, 0x61, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x37, + 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x14, 0x2e, 0x70, 0x6f, 0x73, 0x74, 0x73, + 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, + 0x2e, 0x70, 0x6f, 0x73, 0x74, 0x73, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -731,33 +706,38 @@ func file_proto_posts_proto_rawDescGZIP() []byte { return file_proto_posts_proto_rawDescData } -var file_proto_posts_proto_msgTypes = make([]protoimpl.MessageInfo, 9) +var file_proto_posts_proto_msgTypes = make([]protoimpl.MessageInfo, 11) var file_proto_posts_proto_goTypes = []interface{}{ (*Post)(nil), // 0: posts.Post - (*QueryRequest)(nil), // 1: posts.QueryRequest - (*QueryResponse)(nil), // 2: posts.QueryResponse - (*SaveRequest)(nil), // 3: posts.SaveRequest - (*SaveResponse)(nil), // 4: posts.SaveResponse - (*DeleteRequest)(nil), // 5: posts.DeleteRequest - (*DeleteResponse)(nil), // 6: posts.DeleteResponse - nil, // 7: posts.Post.MetadataEntry - nil, // 8: posts.SaveRequest.MetadataEntry + (*IndexRequest)(nil), // 1: posts.IndexRequest + (*IndexResponse)(nil), // 2: posts.IndexResponse + (*QueryRequest)(nil), // 3: posts.QueryRequest + (*QueryResponse)(nil), // 4: posts.QueryResponse + (*SaveRequest)(nil), // 5: posts.SaveRequest + (*SaveResponse)(nil), // 6: posts.SaveResponse + (*DeleteRequest)(nil), // 7: posts.DeleteRequest + (*DeleteResponse)(nil), // 8: posts.DeleteResponse + nil, // 9: posts.Post.MetadataEntry + nil, // 10: posts.SaveRequest.MetadataEntry } var file_proto_posts_proto_depIdxs = []int32{ - 7, // 0: posts.Post.metadata:type_name -> posts.Post.MetadataEntry - 0, // 1: posts.QueryResponse.posts:type_name -> posts.Post - 8, // 2: posts.SaveRequest.metadata:type_name -> posts.SaveRequest.MetadataEntry - 1, // 3: posts.Posts.Query:input_type -> posts.QueryRequest - 3, // 4: posts.Posts.Save:input_type -> posts.SaveRequest - 5, // 5: posts.Posts.Delete:input_type -> posts.DeleteRequest - 2, // 6: posts.Posts.Query:output_type -> posts.QueryResponse - 4, // 7: posts.Posts.Save:output_type -> posts.SaveResponse - 6, // 8: posts.Posts.Delete:output_type -> posts.DeleteResponse - 6, // [6:9] is the sub-list for method output_type - 3, // [3:6] is the sub-list for method input_type - 3, // [3:3] is the sub-list for extension type_name - 3, // [3:3] is the sub-list for extension extendee - 0, // [0:3] is the sub-list for field type_name + 9, // 0: posts.Post.metadata:type_name -> posts.Post.MetadataEntry + 0, // 1: posts.IndexResponse.posts:type_name -> posts.Post + 0, // 2: posts.QueryResponse.posts:type_name -> posts.Post + 10, // 3: posts.SaveRequest.metadata:type_name -> posts.SaveRequest.MetadataEntry + 1, // 4: posts.Posts.Index:input_type -> posts.IndexRequest + 3, // 5: posts.Posts.Query:input_type -> posts.QueryRequest + 5, // 6: posts.Posts.Save:input_type -> posts.SaveRequest + 7, // 7: posts.Posts.Delete:input_type -> posts.DeleteRequest + 2, // 8: posts.Posts.Index:output_type -> posts.IndexResponse + 4, // 9: posts.Posts.Query:output_type -> posts.QueryResponse + 6, // 10: posts.Posts.Save:output_type -> posts.SaveResponse + 8, // 11: posts.Posts.Delete:output_type -> posts.DeleteResponse + 8, // [8:12] is the sub-list for method output_type + 4, // [4:8] is the sub-list for method input_type + 4, // [4:4] is the sub-list for extension type_name + 4, // [4:4] is the sub-list for extension extendee + 0, // [0:4] is the sub-list for field type_name } func init() { file_proto_posts_proto_init() } @@ -779,7 +759,7 @@ func file_proto_posts_proto_init() { } } file_proto_posts_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryRequest); i { + switch v := v.(*IndexRequest); i { case 0: return &v.state case 1: @@ -791,7 +771,7 @@ func file_proto_posts_proto_init() { } } file_proto_posts_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryResponse); i { + switch v := v.(*IndexResponse); i { case 0: return &v.state case 1: @@ -803,7 +783,7 @@ func file_proto_posts_proto_init() { } } file_proto_posts_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SaveRequest); i { + switch v := v.(*QueryRequest); i { case 0: return &v.state case 1: @@ -815,7 +795,7 @@ func file_proto_posts_proto_init() { } } file_proto_posts_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SaveResponse); i { + switch v := v.(*QueryResponse); i { case 0: return &v.state case 1: @@ -827,7 +807,7 @@ func file_proto_posts_proto_init() { } } file_proto_posts_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteRequest); i { + switch v := v.(*SaveRequest); i { case 0: return &v.state case 1: @@ -839,6 +819,30 @@ func file_proto_posts_proto_init() { } } file_proto_posts_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SaveResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_posts_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_posts_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DeleteResponse); i { case 0: return &v.state @@ -857,7 +861,7 @@ func file_proto_posts_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_proto_posts_proto_rawDesc, NumEnums: 0, - NumMessages: 9, + NumMessages: 11, NumExtensions: 0, NumServices: 1, }, @@ -869,76 +873,4 @@ func file_proto_posts_proto_init() { file_proto_posts_proto_rawDesc = nil file_proto_posts_proto_goTypes = nil file_proto_posts_proto_depIdxs = nil -======= - return fileDescriptor_e93dc7d934d9dc10, []int{8} -} - -func (m *DeleteResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DeleteResponse.Unmarshal(m, b) -} -func (m *DeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DeleteResponse.Marshal(b, m, deterministic) -} -func (m *DeleteResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeleteResponse.Merge(m, src) -} -func (m *DeleteResponse) XXX_Size() int { - return xxx_messageInfo_DeleteResponse.Size(m) -} -func (m *DeleteResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DeleteResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_DeleteResponse proto.InternalMessageInfo - -func init() { - proto.RegisterType((*Post)(nil), "posts.Post") - proto.RegisterMapType((map[string]string)(nil), "posts.Post.MetadataEntry") - proto.RegisterType((*IndexRequest)(nil), "posts.IndexRequest") - proto.RegisterType((*IndexResponse)(nil), "posts.IndexResponse") - proto.RegisterType((*QueryRequest)(nil), "posts.QueryRequest") - proto.RegisterType((*QueryResponse)(nil), "posts.QueryResponse") - proto.RegisterType((*SaveRequest)(nil), "posts.SaveRequest") - proto.RegisterMapType((map[string]string)(nil), "posts.SaveRequest.MetadataEntry") - proto.RegisterType((*SaveResponse)(nil), "posts.SaveResponse") - proto.RegisterType((*DeleteRequest)(nil), "posts.DeleteRequest") - proto.RegisterType((*DeleteResponse)(nil), "posts.DeleteResponse") -} - -func init() { proto.RegisterFile("proto/posts.proto", fileDescriptor_e93dc7d934d9dc10) } - -var fileDescriptor_e93dc7d934d9dc10 = []byte{ - // 496 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0x4b, 0x8e, 0xd3, 0x40, - 0x10, 0x1d, 0x7f, 0x93, 0x54, 0x92, 0x51, 0xe8, 0x0c, 0xa8, 0xb1, 0x10, 0x18, 0xaf, 0xb2, 0x0a, - 0x22, 0x80, 0x40, 0x30, 0x4b, 0x58, 0xb0, 0x40, 0x02, 0x73, 0x82, 0x06, 0xf7, 0x04, 0x0b, 0xff, - 0x70, 0x97, 0x47, 0xe4, 0x3e, 0x1c, 0x85, 0x7b, 0x70, 0x15, 0xd4, 0x1f, 0x7b, 0xda, 0x41, 0x23, - 0x66, 0x31, 0xbb, 0x7e, 0xd5, 0x7e, 0x5d, 0xef, 0x55, 0x3d, 0x19, 0xee, 0x34, 0x6d, 0x8d, 0xf5, - 0x93, 0xa6, 0x16, 0x28, 0xb6, 0xea, 0x4c, 0x02, 0x05, 0x92, 0xdf, 0x2e, 0xf8, 0x1f, 0x6b, 0x81, - 0xe4, 0x14, 0xdc, 0x3c, 0xa3, 0x4e, 0xec, 0x6c, 0x66, 0xa9, 0x9b, 0x67, 0xe4, 0x0c, 0x02, 0xcc, - 0xb1, 0xe0, 0xd4, 0x55, 0x25, 0x0d, 0x08, 0x01, 0x5f, 0x14, 0xdd, 0x9e, 0x7a, 0xaa, 0xa8, 0xce, - 0x84, 0xc2, 0xe4, 0x6b, 0x5d, 0x21, 0xaf, 0x90, 0xfa, 0xaa, 0xdc, 0x43, 0x75, 0xd3, 0x72, 0x86, - 0x3c, 0xa3, 0x41, 0xec, 0x6c, 0xbc, 0xb4, 0x87, 0xf2, 0xa6, 0x6b, 0x32, 0x75, 0x13, 0xea, 0x1b, - 0x03, 0xc9, 0x3d, 0x08, 0x59, 0x87, 0xdf, 0xea, 0x96, 0x4e, 0xd4, 0x63, 0x06, 0xc9, 0xce, 0xc8, - 0xf6, 0x82, 0x4e, 0x63, 0x4f, 0x76, 0x96, 0x67, 0xf2, 0x02, 0xa6, 0x25, 0x47, 0x96, 0x31, 0x64, - 0x74, 0x16, 0x7b, 0x9b, 0xf9, 0xee, 0xfe, 0x56, 0x7b, 0x94, 0x96, 0xb6, 0x1f, 0xcc, 0xdd, 0xbb, - 0x0a, 0xdb, 0x43, 0x3a, 0x7c, 0x2a, 0xad, 0xe5, 0x25, 0xdb, 0x73, 0xba, 0xd6, 0xd6, 0x14, 0x88, - 0xde, 0xc0, 0x72, 0x44, 0x20, 0x2b, 0xf0, 0xbe, 0xf3, 0x83, 0x19, 0x89, 0x3c, 0x4a, 0xe2, 0x25, - 0x2b, 0xba, 0x61, 0x26, 0x0a, 0xbc, 0x76, 0x5f, 0x39, 0xc9, 0x39, 0x2c, 0xde, 0x57, 0x19, 0xff, - 0x99, 0xf2, 0x1f, 0x1d, 0x17, 0x28, 0xbf, 0x2c, 0xf2, 0x32, 0x47, 0xc5, 0xf6, 0x52, 0x0d, 0xa4, - 0xb7, 0xfa, 0xe2, 0x42, 0x70, 0x54, 0x0f, 0x78, 0xa9, 0x41, 0xc9, 0x0e, 0x96, 0x86, 0x2d, 0x9a, - 0xba, 0x12, 0x9c, 0x3c, 0x06, 0xbd, 0x1e, 0xea, 0x28, 0x57, 0x73, 0xcb, 0x55, 0x6a, 0x16, 0xd7, - 0xc2, 0xe2, 0x53, 0xc7, 0xdb, 0x43, 0xdf, 0xf1, 0x78, 0x7f, 0xfd, 0xa6, 0x5c, 0x6b, 0x53, 0x2b, - 0xf0, 0x90, 0xf5, 0xcb, 0x93, 0x47, 0x4b, 0x91, 0x6f, 0x2b, 0xba, 0xd2, 0x1f, 0x58, 0xfa, 0xa5, - 0x4e, 0xd3, 0xf3, 0xe6, 0x3a, 0x7f, 0xb9, 0x30, 0xff, 0xcc, 0x2e, 0xf9, 0x75, 0x3a, 0x6f, 0x23, - 0x67, 0x0f, 0x60, 0x86, 0x79, 0xc9, 0x05, 0xb2, 0xb2, 0x31, 0x8a, 0xaf, 0x0a, 0x43, 0x72, 0x42, - 0x2b, 0x39, 0xe7, 0x56, 0x72, 0x26, 0x4a, 0x7b, 0x6c, 0xb4, 0x5b, 0x5a, 0xff, 0x1f, 0xa0, 0xe9, - 0xad, 0x05, 0xe8, 0x21, 0x2c, 0x74, 0x67, 0x33, 0xd9, 0xa3, 0x31, 0x25, 0x8f, 0x60, 0xf9, 0x96, - 0x17, 0x1c, 0xaf, 0x9b, 0x63, 0xb2, 0x82, 0xd3, 0xfe, 0x03, 0xfd, 0xc4, 0xee, 0x8f, 0x03, 0x81, - 0xdc, 0x84, 0x20, 0xcf, 0x21, 0x50, 0xf9, 0x22, 0x6b, 0x63, 0xd2, 0xce, 0x6a, 0x74, 0x36, 0x2e, - 0x6a, 0x76, 0x72, 0x22, 0x59, 0x6a, 0xdb, 0x03, 0xcb, 0xce, 0xdb, 0xc0, 0x1a, 0x05, 0x22, 0x39, - 0x21, 0x4f, 0xc1, 0x97, 0x46, 0x08, 0xf9, 0x77, 0x9e, 0xd1, 0x7a, 0x54, 0x1b, 0x28, 0x2f, 0x21, - 0xd4, 0xd2, 0x49, 0xff, 0xe8, 0xc8, 0x6a, 0x74, 0xf7, 0xa8, 0xda, 0x13, 0xbf, 0x84, 0xea, 0x57, - 0xf6, 0xec, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xa7, 0xee, 0x3f, 0xc4, 0xdf, 0x04, 0x00, 0x00, ->>>>>>> master } diff --git a/threads/proto/threads.pb.go b/threads/proto/threads.pb.go index 6827d63..b3bdfb5 100644 --- a/threads/proto/threads.pb.go +++ b/threads/proto/threads.pb.go @@ -1,911 +1,1465 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.6.1 // source: proto/threads.proto package threads import ( - fmt "fmt" proto "github.com/golang/protobuf/proto" timestamp "github.com/golang/protobuf/ptypes/timestamp" wrappers "github.com/golang/protobuf/ptypes/wrappers" - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +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) +) -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 type Conversation struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - GroupId string `protobuf:"bytes,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` - Topic string `protobuf:"bytes,3,opt,name=topic,proto3" json:"topic,omitempty"` - CreatedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + GroupId string `protobuf:"bytes,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` + Topic string `protobuf:"bytes,3,opt,name=topic,proto3" json:"topic,omitempty"` + CreatedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` } -func (m *Conversation) Reset() { *m = Conversation{} } -func (m *Conversation) String() string { return proto.CompactTextString(m) } -func (*Conversation) ProtoMessage() {} +func (x *Conversation) Reset() { + *x = Conversation{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_threads_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Conversation) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Conversation) ProtoMessage() {} + +func (x *Conversation) ProtoReflect() protoreflect.Message { + mi := &file_proto_threads_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 Conversation.ProtoReflect.Descriptor instead. func (*Conversation) Descriptor() ([]byte, []int) { - return fileDescriptor_78fcd0275ccaea0d, []int{0} + return file_proto_threads_proto_rawDescGZIP(), []int{0} } -func (m *Conversation) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Conversation.Unmarshal(m, b) -} -func (m *Conversation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Conversation.Marshal(b, m, deterministic) -} -func (m *Conversation) XXX_Merge(src proto.Message) { - xxx_messageInfo_Conversation.Merge(m, src) -} -func (m *Conversation) XXX_Size() int { - return xxx_messageInfo_Conversation.Size(m) -} -func (m *Conversation) XXX_DiscardUnknown() { - xxx_messageInfo_Conversation.DiscardUnknown(m) -} - -var xxx_messageInfo_Conversation proto.InternalMessageInfo - -func (m *Conversation) GetId() string { - if m != nil { - return m.Id +func (x *Conversation) GetId() string { + if x != nil { + return x.Id } return "" } -func (m *Conversation) GetGroupId() string { - if m != nil { - return m.GroupId +func (x *Conversation) GetGroupId() string { + if x != nil { + return x.GroupId } return "" } -func (m *Conversation) GetTopic() string { - if m != nil { - return m.Topic +func (x *Conversation) GetTopic() string { + if x != nil { + return x.Topic } return "" } -func (m *Conversation) GetCreatedAt() *timestamp.Timestamp { - if m != nil { - return m.CreatedAt +func (x *Conversation) GetCreatedAt() *timestamp.Timestamp { + if x != nil { + return x.CreatedAt } return nil } type Message struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - AuthorId string `protobuf:"bytes,2,opt,name=author_id,json=authorId,proto3" json:"author_id,omitempty"` - ConversationId string `protobuf:"bytes,3,opt,name=conversation_id,json=conversationId,proto3" json:"conversation_id,omitempty"` - Text string `protobuf:"bytes,4,opt,name=text,proto3" json:"text,omitempty"` - SentAt *timestamp.Timestamp `protobuf:"bytes,5,opt,name=sent_at,json=sentAt,proto3" json:"sent_at,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + AuthorId string `protobuf:"bytes,2,opt,name=author_id,json=authorId,proto3" json:"author_id,omitempty"` + ConversationId string `protobuf:"bytes,3,opt,name=conversation_id,json=conversationId,proto3" json:"conversation_id,omitempty"` + Text string `protobuf:"bytes,4,opt,name=text,proto3" json:"text,omitempty"` + SentAt *timestamp.Timestamp `protobuf:"bytes,5,opt,name=sent_at,json=sentAt,proto3" json:"sent_at,omitempty"` } -func (m *Message) Reset() { *m = Message{} } -func (m *Message) String() string { return proto.CompactTextString(m) } -func (*Message) ProtoMessage() {} +func (x *Message) Reset() { + *x = Message{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_threads_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Message) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Message) ProtoMessage() {} + +func (x *Message) ProtoReflect() protoreflect.Message { + mi := &file_proto_threads_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 Message.ProtoReflect.Descriptor instead. func (*Message) Descriptor() ([]byte, []int) { - return fileDescriptor_78fcd0275ccaea0d, []int{1} + return file_proto_threads_proto_rawDescGZIP(), []int{1} } -func (m *Message) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Message.Unmarshal(m, b) -} -func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Message.Marshal(b, m, deterministic) -} -func (m *Message) XXX_Merge(src proto.Message) { - xxx_messageInfo_Message.Merge(m, src) -} -func (m *Message) XXX_Size() int { - return xxx_messageInfo_Message.Size(m) -} -func (m *Message) XXX_DiscardUnknown() { - xxx_messageInfo_Message.DiscardUnknown(m) -} - -var xxx_messageInfo_Message proto.InternalMessageInfo - -func (m *Message) GetId() string { - if m != nil { - return m.Id +func (x *Message) GetId() string { + if x != nil { + return x.Id } return "" } -func (m *Message) GetAuthorId() string { - if m != nil { - return m.AuthorId +func (x *Message) GetAuthorId() string { + if x != nil { + return x.AuthorId } return "" } -func (m *Message) GetConversationId() string { - if m != nil { - return m.ConversationId +func (x *Message) GetConversationId() string { + if x != nil { + return x.ConversationId } return "" } -func (m *Message) GetText() string { - if m != nil { - return m.Text +func (x *Message) GetText() string { + if x != nil { + return x.Text } return "" } -func (m *Message) GetSentAt() *timestamp.Timestamp { - if m != nil { - return m.SentAt +func (x *Message) GetSentAt() *timestamp.Timestamp { + if x != nil { + return x.SentAt } return nil } type CreateConversationRequest struct { - GroupId string `protobuf:"bytes,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` - Topic string `protobuf:"bytes,2,opt,name=topic,proto3" json:"topic,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + GroupId string `protobuf:"bytes,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` + Topic string `protobuf:"bytes,2,opt,name=topic,proto3" json:"topic,omitempty"` } -func (m *CreateConversationRequest) Reset() { *m = CreateConversationRequest{} } -func (m *CreateConversationRequest) String() string { return proto.CompactTextString(m) } -func (*CreateConversationRequest) ProtoMessage() {} +func (x *CreateConversationRequest) Reset() { + *x = CreateConversationRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_threads_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateConversationRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateConversationRequest) ProtoMessage() {} + +func (x *CreateConversationRequest) ProtoReflect() protoreflect.Message { + mi := &file_proto_threads_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 CreateConversationRequest.ProtoReflect.Descriptor instead. func (*CreateConversationRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78fcd0275ccaea0d, []int{2} + return file_proto_threads_proto_rawDescGZIP(), []int{2} } -func (m *CreateConversationRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CreateConversationRequest.Unmarshal(m, b) -} -func (m *CreateConversationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CreateConversationRequest.Marshal(b, m, deterministic) -} -func (m *CreateConversationRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateConversationRequest.Merge(m, src) -} -func (m *CreateConversationRequest) XXX_Size() int { - return xxx_messageInfo_CreateConversationRequest.Size(m) -} -func (m *CreateConversationRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CreateConversationRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_CreateConversationRequest proto.InternalMessageInfo - -func (m *CreateConversationRequest) GetGroupId() string { - if m != nil { - return m.GroupId +func (x *CreateConversationRequest) GetGroupId() string { + if x != nil { + return x.GroupId } return "" } -func (m *CreateConversationRequest) GetTopic() string { - if m != nil { - return m.Topic +func (x *CreateConversationRequest) GetTopic() string { + if x != nil { + return x.Topic } return "" } type CreateConversationResponse struct { - Conversation *Conversation `protobuf:"bytes,1,opt,name=conversation,proto3" json:"conversation,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Conversation *Conversation `protobuf:"bytes,1,opt,name=conversation,proto3" json:"conversation,omitempty"` } -func (m *CreateConversationResponse) Reset() { *m = CreateConversationResponse{} } -func (m *CreateConversationResponse) String() string { return proto.CompactTextString(m) } -func (*CreateConversationResponse) ProtoMessage() {} +func (x *CreateConversationResponse) Reset() { + *x = CreateConversationResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_threads_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateConversationResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateConversationResponse) ProtoMessage() {} + +func (x *CreateConversationResponse) ProtoReflect() protoreflect.Message { + mi := &file_proto_threads_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 CreateConversationResponse.ProtoReflect.Descriptor instead. func (*CreateConversationResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78fcd0275ccaea0d, []int{3} + return file_proto_threads_proto_rawDescGZIP(), []int{3} } -func (m *CreateConversationResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CreateConversationResponse.Unmarshal(m, b) -} -func (m *CreateConversationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CreateConversationResponse.Marshal(b, m, deterministic) -} -func (m *CreateConversationResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateConversationResponse.Merge(m, src) -} -func (m *CreateConversationResponse) XXX_Size() int { - return xxx_messageInfo_CreateConversationResponse.Size(m) -} -func (m *CreateConversationResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CreateConversationResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_CreateConversationResponse proto.InternalMessageInfo - -func (m *CreateConversationResponse) GetConversation() *Conversation { - if m != nil { - return m.Conversation +func (x *CreateConversationResponse) GetConversation() *Conversation { + if x != nil { + return x.Conversation } return nil } type ReadConversationRequest struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - GroupId *wrappers.StringValue `protobuf:"bytes,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + GroupId *wrappers.StringValue `protobuf:"bytes,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` } -func (m *ReadConversationRequest) Reset() { *m = ReadConversationRequest{} } -func (m *ReadConversationRequest) String() string { return proto.CompactTextString(m) } -func (*ReadConversationRequest) ProtoMessage() {} +func (x *ReadConversationRequest) Reset() { + *x = ReadConversationRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_threads_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ReadConversationRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ReadConversationRequest) ProtoMessage() {} + +func (x *ReadConversationRequest) ProtoReflect() protoreflect.Message { + mi := &file_proto_threads_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 ReadConversationRequest.ProtoReflect.Descriptor instead. func (*ReadConversationRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78fcd0275ccaea0d, []int{4} + return file_proto_threads_proto_rawDescGZIP(), []int{4} } -func (m *ReadConversationRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ReadConversationRequest.Unmarshal(m, b) -} -func (m *ReadConversationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ReadConversationRequest.Marshal(b, m, deterministic) -} -func (m *ReadConversationRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReadConversationRequest.Merge(m, src) -} -func (m *ReadConversationRequest) XXX_Size() int { - return xxx_messageInfo_ReadConversationRequest.Size(m) -} -func (m *ReadConversationRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ReadConversationRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ReadConversationRequest proto.InternalMessageInfo - -func (m *ReadConversationRequest) GetId() string { - if m != nil { - return m.Id +func (x *ReadConversationRequest) GetId() string { + if x != nil { + return x.Id } return "" } -func (m *ReadConversationRequest) GetGroupId() *wrappers.StringValue { - if m != nil { - return m.GroupId +func (x *ReadConversationRequest) GetGroupId() *wrappers.StringValue { + if x != nil { + return x.GroupId } return nil } type ReadConversationResponse struct { - Conversation *Conversation `protobuf:"bytes,1,opt,name=conversation,proto3" json:"conversation,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Conversation *Conversation `protobuf:"bytes,1,opt,name=conversation,proto3" json:"conversation,omitempty"` } -func (m *ReadConversationResponse) Reset() { *m = ReadConversationResponse{} } -func (m *ReadConversationResponse) String() string { return proto.CompactTextString(m) } -func (*ReadConversationResponse) ProtoMessage() {} +func (x *ReadConversationResponse) Reset() { + *x = ReadConversationResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_threads_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ReadConversationResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ReadConversationResponse) ProtoMessage() {} + +func (x *ReadConversationResponse) ProtoReflect() protoreflect.Message { + mi := &file_proto_threads_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 ReadConversationResponse.ProtoReflect.Descriptor instead. func (*ReadConversationResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78fcd0275ccaea0d, []int{5} + return file_proto_threads_proto_rawDescGZIP(), []int{5} } -func (m *ReadConversationResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ReadConversationResponse.Unmarshal(m, b) -} -func (m *ReadConversationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ReadConversationResponse.Marshal(b, m, deterministic) -} -func (m *ReadConversationResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReadConversationResponse.Merge(m, src) -} -func (m *ReadConversationResponse) XXX_Size() int { - return xxx_messageInfo_ReadConversationResponse.Size(m) -} -func (m *ReadConversationResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ReadConversationResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ReadConversationResponse proto.InternalMessageInfo - -func (m *ReadConversationResponse) GetConversation() *Conversation { - if m != nil { - return m.Conversation +func (x *ReadConversationResponse) GetConversation() *Conversation { + if x != nil { + return x.Conversation } return nil } type ListConversationsRequest struct { - GroupId string `protobuf:"bytes,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + GroupId string `protobuf:"bytes,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` } -func (m *ListConversationsRequest) Reset() { *m = ListConversationsRequest{} } -func (m *ListConversationsRequest) String() string { return proto.CompactTextString(m) } -func (*ListConversationsRequest) ProtoMessage() {} +func (x *ListConversationsRequest) Reset() { + *x = ListConversationsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_threads_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListConversationsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListConversationsRequest) ProtoMessage() {} + +func (x *ListConversationsRequest) ProtoReflect() protoreflect.Message { + mi := &file_proto_threads_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 ListConversationsRequest.ProtoReflect.Descriptor instead. func (*ListConversationsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78fcd0275ccaea0d, []int{6} + return file_proto_threads_proto_rawDescGZIP(), []int{6} } -func (m *ListConversationsRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListConversationsRequest.Unmarshal(m, b) -} -func (m *ListConversationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListConversationsRequest.Marshal(b, m, deterministic) -} -func (m *ListConversationsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListConversationsRequest.Merge(m, src) -} -func (m *ListConversationsRequest) XXX_Size() int { - return xxx_messageInfo_ListConversationsRequest.Size(m) -} -func (m *ListConversationsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ListConversationsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ListConversationsRequest proto.InternalMessageInfo - -func (m *ListConversationsRequest) GetGroupId() string { - if m != nil { - return m.GroupId +func (x *ListConversationsRequest) GetGroupId() string { + if x != nil { + return x.GroupId } return "" } type ListConversationsResponse struct { - Conversations []*Conversation `protobuf:"bytes,1,rep,name=conversations,proto3" json:"conversations,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Conversations []*Conversation `protobuf:"bytes,1,rep,name=conversations,proto3" json:"conversations,omitempty"` } -func (m *ListConversationsResponse) Reset() { *m = ListConversationsResponse{} } -func (m *ListConversationsResponse) String() string { return proto.CompactTextString(m) } -func (*ListConversationsResponse) ProtoMessage() {} +func (x *ListConversationsResponse) Reset() { + *x = ListConversationsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_threads_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListConversationsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListConversationsResponse) ProtoMessage() {} + +func (x *ListConversationsResponse) ProtoReflect() protoreflect.Message { + mi := &file_proto_threads_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 ListConversationsResponse.ProtoReflect.Descriptor instead. func (*ListConversationsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78fcd0275ccaea0d, []int{7} + return file_proto_threads_proto_rawDescGZIP(), []int{7} } -func (m *ListConversationsResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListConversationsResponse.Unmarshal(m, b) -} -func (m *ListConversationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListConversationsResponse.Marshal(b, m, deterministic) -} -func (m *ListConversationsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListConversationsResponse.Merge(m, src) -} -func (m *ListConversationsResponse) XXX_Size() int { - return xxx_messageInfo_ListConversationsResponse.Size(m) -} -func (m *ListConversationsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ListConversationsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ListConversationsResponse proto.InternalMessageInfo - -func (m *ListConversationsResponse) GetConversations() []*Conversation { - if m != nil { - return m.Conversations +func (x *ListConversationsResponse) GetConversations() []*Conversation { + if x != nil { + return x.Conversations } return nil } type UpdateConversationRequest struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Topic string `protobuf:"bytes,2,opt,name=topic,proto3" json:"topic,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Topic string `protobuf:"bytes,2,opt,name=topic,proto3" json:"topic,omitempty"` } -func (m *UpdateConversationRequest) Reset() { *m = UpdateConversationRequest{} } -func (m *UpdateConversationRequest) String() string { return proto.CompactTextString(m) } -func (*UpdateConversationRequest) ProtoMessage() {} +func (x *UpdateConversationRequest) Reset() { + *x = UpdateConversationRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_threads_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateConversationRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateConversationRequest) ProtoMessage() {} + +func (x *UpdateConversationRequest) ProtoReflect() protoreflect.Message { + mi := &file_proto_threads_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 UpdateConversationRequest.ProtoReflect.Descriptor instead. func (*UpdateConversationRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78fcd0275ccaea0d, []int{8} + return file_proto_threads_proto_rawDescGZIP(), []int{8} } -func (m *UpdateConversationRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UpdateConversationRequest.Unmarshal(m, b) -} -func (m *UpdateConversationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UpdateConversationRequest.Marshal(b, m, deterministic) -} -func (m *UpdateConversationRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateConversationRequest.Merge(m, src) -} -func (m *UpdateConversationRequest) XXX_Size() int { - return xxx_messageInfo_UpdateConversationRequest.Size(m) -} -func (m *UpdateConversationRequest) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateConversationRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_UpdateConversationRequest proto.InternalMessageInfo - -func (m *UpdateConversationRequest) GetId() string { - if m != nil { - return m.Id +func (x *UpdateConversationRequest) GetId() string { + if x != nil { + return x.Id } return "" } -func (m *UpdateConversationRequest) GetTopic() string { - if m != nil { - return m.Topic +func (x *UpdateConversationRequest) GetTopic() string { + if x != nil { + return x.Topic } return "" } type UpdateConversationResponse struct { - Conversation *Conversation `protobuf:"bytes,1,opt,name=conversation,proto3" json:"conversation,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Conversation *Conversation `protobuf:"bytes,1,opt,name=conversation,proto3" json:"conversation,omitempty"` } -func (m *UpdateConversationResponse) Reset() { *m = UpdateConversationResponse{} } -func (m *UpdateConversationResponse) String() string { return proto.CompactTextString(m) } -func (*UpdateConversationResponse) ProtoMessage() {} +func (x *UpdateConversationResponse) Reset() { + *x = UpdateConversationResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_threads_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateConversationResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateConversationResponse) ProtoMessage() {} + +func (x *UpdateConversationResponse) ProtoReflect() protoreflect.Message { + mi := &file_proto_threads_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 UpdateConversationResponse.ProtoReflect.Descriptor instead. func (*UpdateConversationResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78fcd0275ccaea0d, []int{9} + return file_proto_threads_proto_rawDescGZIP(), []int{9} } -func (m *UpdateConversationResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UpdateConversationResponse.Unmarshal(m, b) -} -func (m *UpdateConversationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UpdateConversationResponse.Marshal(b, m, deterministic) -} -func (m *UpdateConversationResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateConversationResponse.Merge(m, src) -} -func (m *UpdateConversationResponse) XXX_Size() int { - return xxx_messageInfo_UpdateConversationResponse.Size(m) -} -func (m *UpdateConversationResponse) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateConversationResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_UpdateConversationResponse proto.InternalMessageInfo - -func (m *UpdateConversationResponse) GetConversation() *Conversation { - if m != nil { - return m.Conversation +func (x *UpdateConversationResponse) GetConversation() *Conversation { + if x != nil { + return x.Conversation } return nil } type DeleteConversationRequest struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` } -func (m *DeleteConversationRequest) Reset() { *m = DeleteConversationRequest{} } -func (m *DeleteConversationRequest) String() string { return proto.CompactTextString(m) } -func (*DeleteConversationRequest) ProtoMessage() {} +func (x *DeleteConversationRequest) Reset() { + *x = DeleteConversationRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_threads_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DeleteConversationRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteConversationRequest) ProtoMessage() {} + +func (x *DeleteConversationRequest) ProtoReflect() protoreflect.Message { + mi := &file_proto_threads_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 DeleteConversationRequest.ProtoReflect.Descriptor instead. func (*DeleteConversationRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78fcd0275ccaea0d, []int{10} + return file_proto_threads_proto_rawDescGZIP(), []int{10} } -func (m *DeleteConversationRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DeleteConversationRequest.Unmarshal(m, b) -} -func (m *DeleteConversationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DeleteConversationRequest.Marshal(b, m, deterministic) -} -func (m *DeleteConversationRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeleteConversationRequest.Merge(m, src) -} -func (m *DeleteConversationRequest) XXX_Size() int { - return xxx_messageInfo_DeleteConversationRequest.Size(m) -} -func (m *DeleteConversationRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DeleteConversationRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_DeleteConversationRequest proto.InternalMessageInfo - -func (m *DeleteConversationRequest) GetId() string { - if m != nil { - return m.Id +func (x *DeleteConversationRequest) GetId() string { + if x != nil { + return x.Id } return "" } type DeleteConversationResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *DeleteConversationResponse) Reset() { *m = DeleteConversationResponse{} } -func (m *DeleteConversationResponse) String() string { return proto.CompactTextString(m) } -func (*DeleteConversationResponse) ProtoMessage() {} +func (x *DeleteConversationResponse) Reset() { + *x = DeleteConversationResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_threads_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DeleteConversationResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteConversationResponse) ProtoMessage() {} + +func (x *DeleteConversationResponse) ProtoReflect() protoreflect.Message { + mi := &file_proto_threads_proto_msgTypes[11] + 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 DeleteConversationResponse.ProtoReflect.Descriptor instead. func (*DeleteConversationResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78fcd0275ccaea0d, []int{11} + return file_proto_threads_proto_rawDescGZIP(), []int{11} } -func (m *DeleteConversationResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DeleteConversationResponse.Unmarshal(m, b) -} -func (m *DeleteConversationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DeleteConversationResponse.Marshal(b, m, deterministic) -} -func (m *DeleteConversationResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeleteConversationResponse.Merge(m, src) -} -func (m *DeleteConversationResponse) XXX_Size() int { - return xxx_messageInfo_DeleteConversationResponse.Size(m) -} -func (m *DeleteConversationResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DeleteConversationResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_DeleteConversationResponse proto.InternalMessageInfo - type CreateMessageRequest struct { - ConversationId string `protobuf:"bytes,1,opt,name=conversation_id,json=conversationId,proto3" json:"conversation_id,omitempty"` - AuthorId string `protobuf:"bytes,2,opt,name=author_id,json=authorId,proto3" json:"author_id,omitempty"` - Text string `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ConversationId string `protobuf:"bytes,1,opt,name=conversation_id,json=conversationId,proto3" json:"conversation_id,omitempty"` + AuthorId string `protobuf:"bytes,2,opt,name=author_id,json=authorId,proto3" json:"author_id,omitempty"` + Text string `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"` } -func (m *CreateMessageRequest) Reset() { *m = CreateMessageRequest{} } -func (m *CreateMessageRequest) String() string { return proto.CompactTextString(m) } -func (*CreateMessageRequest) ProtoMessage() {} +func (x *CreateMessageRequest) Reset() { + *x = CreateMessageRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_threads_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateMessageRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateMessageRequest) ProtoMessage() {} + +func (x *CreateMessageRequest) ProtoReflect() protoreflect.Message { + mi := &file_proto_threads_proto_msgTypes[12] + 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 CreateMessageRequest.ProtoReflect.Descriptor instead. func (*CreateMessageRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78fcd0275ccaea0d, []int{12} + return file_proto_threads_proto_rawDescGZIP(), []int{12} } -func (m *CreateMessageRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CreateMessageRequest.Unmarshal(m, b) -} -func (m *CreateMessageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CreateMessageRequest.Marshal(b, m, deterministic) -} -func (m *CreateMessageRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateMessageRequest.Merge(m, src) -} -func (m *CreateMessageRequest) XXX_Size() int { - return xxx_messageInfo_CreateMessageRequest.Size(m) -} -func (m *CreateMessageRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CreateMessageRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_CreateMessageRequest proto.InternalMessageInfo - -func (m *CreateMessageRequest) GetConversationId() string { - if m != nil { - return m.ConversationId +func (x *CreateMessageRequest) GetConversationId() string { + if x != nil { + return x.ConversationId } return "" } -func (m *CreateMessageRequest) GetAuthorId() string { - if m != nil { - return m.AuthorId +func (x *CreateMessageRequest) GetAuthorId() string { + if x != nil { + return x.AuthorId } return "" } -func (m *CreateMessageRequest) GetText() string { - if m != nil { - return m.Text +func (x *CreateMessageRequest) GetText() string { + if x != nil { + return x.Text } return "" } type CreateMessageResponse struct { - Message *Message `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Message *Message `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` } -func (m *CreateMessageResponse) Reset() { *m = CreateMessageResponse{} } -func (m *CreateMessageResponse) String() string { return proto.CompactTextString(m) } -func (*CreateMessageResponse) ProtoMessage() {} +func (x *CreateMessageResponse) Reset() { + *x = CreateMessageResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_threads_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateMessageResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateMessageResponse) ProtoMessage() {} + +func (x *CreateMessageResponse) ProtoReflect() protoreflect.Message { + mi := &file_proto_threads_proto_msgTypes[13] + 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 CreateMessageResponse.ProtoReflect.Descriptor instead. func (*CreateMessageResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78fcd0275ccaea0d, []int{13} + return file_proto_threads_proto_rawDescGZIP(), []int{13} } -func (m *CreateMessageResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CreateMessageResponse.Unmarshal(m, b) -} -func (m *CreateMessageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CreateMessageResponse.Marshal(b, m, deterministic) -} -func (m *CreateMessageResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateMessageResponse.Merge(m, src) -} -func (m *CreateMessageResponse) XXX_Size() int { - return xxx_messageInfo_CreateMessageResponse.Size(m) -} -func (m *CreateMessageResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CreateMessageResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_CreateMessageResponse proto.InternalMessageInfo - -func (m *CreateMessageResponse) GetMessage() *Message { - if m != nil { - return m.Message +func (x *CreateMessageResponse) GetMessage() *Message { + if x != nil { + return x.Message } return nil } type ListMessagesRequest struct { - ConversationId string `protobuf:"bytes,1,opt,name=conversation_id,json=conversationId,proto3" json:"conversation_id,omitempty"` - SentBefore *timestamp.Timestamp `protobuf:"bytes,2,opt,name=sent_before,json=sentBefore,proto3" json:"sent_before,omitempty"` - Limit *wrappers.Int32Value `protobuf:"bytes,3,opt,name=limit,proto3" json:"limit,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ConversationId string `protobuf:"bytes,1,opt,name=conversation_id,json=conversationId,proto3" json:"conversation_id,omitempty"` + SentBefore *timestamp.Timestamp `protobuf:"bytes,2,opt,name=sent_before,json=sentBefore,proto3" json:"sent_before,omitempty"` + Limit *wrappers.Int32Value `protobuf:"bytes,3,opt,name=limit,proto3" json:"limit,omitempty"` } -func (m *ListMessagesRequest) Reset() { *m = ListMessagesRequest{} } -func (m *ListMessagesRequest) String() string { return proto.CompactTextString(m) } -func (*ListMessagesRequest) ProtoMessage() {} +func (x *ListMessagesRequest) Reset() { + *x = ListMessagesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_threads_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListMessagesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListMessagesRequest) ProtoMessage() {} + +func (x *ListMessagesRequest) ProtoReflect() protoreflect.Message { + mi := &file_proto_threads_proto_msgTypes[14] + 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 ListMessagesRequest.ProtoReflect.Descriptor instead. func (*ListMessagesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78fcd0275ccaea0d, []int{14} + return file_proto_threads_proto_rawDescGZIP(), []int{14} } -func (m *ListMessagesRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListMessagesRequest.Unmarshal(m, b) -} -func (m *ListMessagesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListMessagesRequest.Marshal(b, m, deterministic) -} -func (m *ListMessagesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListMessagesRequest.Merge(m, src) -} -func (m *ListMessagesRequest) XXX_Size() int { - return xxx_messageInfo_ListMessagesRequest.Size(m) -} -func (m *ListMessagesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ListMessagesRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ListMessagesRequest proto.InternalMessageInfo - -func (m *ListMessagesRequest) GetConversationId() string { - if m != nil { - return m.ConversationId +func (x *ListMessagesRequest) GetConversationId() string { + if x != nil { + return x.ConversationId } return "" } -func (m *ListMessagesRequest) GetSentBefore() *timestamp.Timestamp { - if m != nil { - return m.SentBefore +func (x *ListMessagesRequest) GetSentBefore() *timestamp.Timestamp { + if x != nil { + return x.SentBefore } return nil } -func (m *ListMessagesRequest) GetLimit() *wrappers.Int32Value { - if m != nil { - return m.Limit +func (x *ListMessagesRequest) GetLimit() *wrappers.Int32Value { + if x != nil { + return x.Limit } return nil } type ListMessagesResponse struct { - Messages []*Message `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Messages []*Message `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"` } -func (m *ListMessagesResponse) Reset() { *m = ListMessagesResponse{} } -func (m *ListMessagesResponse) String() string { return proto.CompactTextString(m) } -func (*ListMessagesResponse) ProtoMessage() {} +func (x *ListMessagesResponse) Reset() { + *x = ListMessagesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_threads_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListMessagesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListMessagesResponse) ProtoMessage() {} + +func (x *ListMessagesResponse) ProtoReflect() protoreflect.Message { + mi := &file_proto_threads_proto_msgTypes[15] + 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 ListMessagesResponse.ProtoReflect.Descriptor instead. func (*ListMessagesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78fcd0275ccaea0d, []int{15} + return file_proto_threads_proto_rawDescGZIP(), []int{15} } -func (m *ListMessagesResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListMessagesResponse.Unmarshal(m, b) -} -func (m *ListMessagesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListMessagesResponse.Marshal(b, m, deterministic) -} -func (m *ListMessagesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListMessagesResponse.Merge(m, src) -} -func (m *ListMessagesResponse) XXX_Size() int { - return xxx_messageInfo_ListMessagesResponse.Size(m) -} -func (m *ListMessagesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ListMessagesResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ListMessagesResponse proto.InternalMessageInfo - -func (m *ListMessagesResponse) GetMessages() []*Message { - if m != nil { - return m.Messages +func (x *ListMessagesResponse) GetMessages() []*Message { + if x != nil { + return x.Messages } return nil } type RecentMessagesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + ConversationIds []string `protobuf:"bytes,1,rep,name=conversation_ids,json=conversationIds,proto3" json:"conversation_ids,omitempty"` LimitPerConversation *wrappers.Int32Value `protobuf:"bytes,2,opt,name=limit_per_conversation,json=limitPerConversation,proto3" json:"limit_per_conversation,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` } -func (m *RecentMessagesRequest) Reset() { *m = RecentMessagesRequest{} } -func (m *RecentMessagesRequest) String() string { return proto.CompactTextString(m) } -func (*RecentMessagesRequest) ProtoMessage() {} +func (x *RecentMessagesRequest) Reset() { + *x = RecentMessagesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_threads_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RecentMessagesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RecentMessagesRequest) ProtoMessage() {} + +func (x *RecentMessagesRequest) ProtoReflect() protoreflect.Message { + mi := &file_proto_threads_proto_msgTypes[16] + 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 RecentMessagesRequest.ProtoReflect.Descriptor instead. func (*RecentMessagesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_78fcd0275ccaea0d, []int{16} + return file_proto_threads_proto_rawDescGZIP(), []int{16} } -func (m *RecentMessagesRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RecentMessagesRequest.Unmarshal(m, b) -} -func (m *RecentMessagesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RecentMessagesRequest.Marshal(b, m, deterministic) -} -func (m *RecentMessagesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RecentMessagesRequest.Merge(m, src) -} -func (m *RecentMessagesRequest) XXX_Size() int { - return xxx_messageInfo_RecentMessagesRequest.Size(m) -} -func (m *RecentMessagesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RecentMessagesRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RecentMessagesRequest proto.InternalMessageInfo - -func (m *RecentMessagesRequest) GetConversationIds() []string { - if m != nil { - return m.ConversationIds +func (x *RecentMessagesRequest) GetConversationIds() []string { + if x != nil { + return x.ConversationIds } return nil } -func (m *RecentMessagesRequest) GetLimitPerConversation() *wrappers.Int32Value { - if m != nil { - return m.LimitPerConversation +func (x *RecentMessagesRequest) GetLimitPerConversation() *wrappers.Int32Value { + if x != nil { + return x.LimitPerConversation } return nil } type RecentMessagesResponse struct { - Messages []*Message `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Messages []*Message `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"` } -func (m *RecentMessagesResponse) Reset() { *m = RecentMessagesResponse{} } -func (m *RecentMessagesResponse) String() string { return proto.CompactTextString(m) } -func (*RecentMessagesResponse) ProtoMessage() {} +func (x *RecentMessagesResponse) Reset() { + *x = RecentMessagesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_threads_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RecentMessagesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RecentMessagesResponse) ProtoMessage() {} + +func (x *RecentMessagesResponse) ProtoReflect() protoreflect.Message { + mi := &file_proto_threads_proto_msgTypes[17] + 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 RecentMessagesResponse.ProtoReflect.Descriptor instead. func (*RecentMessagesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_78fcd0275ccaea0d, []int{17} + return file_proto_threads_proto_rawDescGZIP(), []int{17} } -func (m *RecentMessagesResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RecentMessagesResponse.Unmarshal(m, b) -} -func (m *RecentMessagesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RecentMessagesResponse.Marshal(b, m, deterministic) -} -func (m *RecentMessagesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RecentMessagesResponse.Merge(m, src) -} -func (m *RecentMessagesResponse) XXX_Size() int { - return xxx_messageInfo_RecentMessagesResponse.Size(m) -} -func (m *RecentMessagesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RecentMessagesResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RecentMessagesResponse proto.InternalMessageInfo - -func (m *RecentMessagesResponse) GetMessages() []*Message { - if m != nil { - return m.Messages +func (x *RecentMessagesResponse) GetMessages() []*Message { + if x != nil { + return x.Messages } return nil } -func init() { - proto.RegisterType((*Conversation)(nil), "threads.Conversation") - proto.RegisterType((*Message)(nil), "threads.Message") - proto.RegisterType((*CreateConversationRequest)(nil), "threads.CreateConversationRequest") - proto.RegisterType((*CreateConversationResponse)(nil), "threads.CreateConversationResponse") - proto.RegisterType((*ReadConversationRequest)(nil), "threads.ReadConversationRequest") - proto.RegisterType((*ReadConversationResponse)(nil), "threads.ReadConversationResponse") - proto.RegisterType((*ListConversationsRequest)(nil), "threads.ListConversationsRequest") - proto.RegisterType((*ListConversationsResponse)(nil), "threads.ListConversationsResponse") - proto.RegisterType((*UpdateConversationRequest)(nil), "threads.UpdateConversationRequest") - proto.RegisterType((*UpdateConversationResponse)(nil), "threads.UpdateConversationResponse") - proto.RegisterType((*DeleteConversationRequest)(nil), "threads.DeleteConversationRequest") - proto.RegisterType((*DeleteConversationResponse)(nil), "threads.DeleteConversationResponse") - proto.RegisterType((*CreateMessageRequest)(nil), "threads.CreateMessageRequest") - proto.RegisterType((*CreateMessageResponse)(nil), "threads.CreateMessageResponse") - proto.RegisterType((*ListMessagesRequest)(nil), "threads.ListMessagesRequest") - proto.RegisterType((*ListMessagesResponse)(nil), "threads.ListMessagesResponse") - proto.RegisterType((*RecentMessagesRequest)(nil), "threads.RecentMessagesRequest") - proto.RegisterType((*RecentMessagesResponse)(nil), "threads.RecentMessagesResponse") +var File_proto_threads_proto protoreflect.FileDescriptor + +var file_proto_threads_proto_rawDesc = []byte{ + 0x0a, 0x13, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, 0x1a, 0x1f, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, + 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, + 0x8a, 0x01, 0x0a, 0x0c, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, + 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, + 0x6f, 0x70, 0x69, 0x63, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x70, 0x69, + 0x63, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, + 0x04, 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, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x22, 0xa8, 0x01, 0x0a, + 0x07, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, + 0x6f, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, 0x75, 0x74, + 0x68, 0x6f, 0x72, 0x49, 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, + 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x12, + 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x65, + 0x78, 0x74, 0x12, 0x33, 0x0a, 0x07, 0x73, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x74, 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, + 0x06, 0x73, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x22, 0x4c, 0x0a, 0x19, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, + 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x74, 0x6f, 0x70, 0x69, 0x63, 0x22, 0x57, 0x0a, 0x1a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, + 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x68, 0x72, 0x65, + 0x61, 0x64, 0x73, 0x2e, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x0c, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x62, + 0x0a, 0x17, 0x52, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x37, 0x0a, 0x08, 0x67, 0x72, 0x6f, + 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, + 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, + 0x49, 0x64, 0x22, 0x55, 0x0a, 0x18, 0x52, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x72, + 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, + 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x43, + 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x63, 0x6f, 0x6e, + 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x35, 0x0a, 0x18, 0x4c, 0x69, 0x73, + 0x74, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, + 0x22, 0x58, 0x0a, 0x19, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a, + 0x0d, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x43, + 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0d, 0x63, 0x6f, 0x6e, + 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x41, 0x0a, 0x19, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x22, 0x57, 0x0a, + 0x1a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x0c, 0x63, + 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x43, 0x6f, 0x6e, 0x76, + 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, + 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x2b, 0x0a, 0x19, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x02, 0x69, 0x64, 0x22, 0x1c, 0x0a, 0x1a, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x6f, 0x6e, + 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x70, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x6f, 0x6e, + 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0e, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x5f, 0x69, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x49, 0x64, 0x12, + 0x12, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, + 0x65, 0x78, 0x74, 0x22, 0x43, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x07, + 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, + 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, + 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0xae, 0x01, 0x0a, 0x13, 0x4c, 0x69, 0x73, + 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x63, 0x6f, 0x6e, 0x76, 0x65, + 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x3b, 0x0a, 0x0b, 0x73, 0x65, 0x6e, + 0x74, 0x5f, 0x62, 0x65, 0x66, 0x6f, 0x72, 0x65, 0x18, 0x02, 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, 0x0a, 0x73, 0x65, 0x6e, 0x74, + 0x42, 0x65, 0x66, 0x6f, 0x72, 0x65, 0x12, 0x31, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x22, 0x44, 0x0a, 0x14, 0x4c, 0x69, 0x73, + 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x2c, 0x0a, 0x08, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x4d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x08, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x22, + 0x95, 0x01, 0x0a, 0x15, 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x63, 0x6f, 0x6e, + 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x09, 0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x49, 0x64, 0x73, 0x12, 0x51, 0x0a, 0x16, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x5f, 0x70, 0x65, + 0x72, 0x5f, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x52, 0x14, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x50, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x76, 0x65, + 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x46, 0x0a, 0x16, 0x52, 0x65, 0x63, 0x65, 0x6e, + 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x2c, 0x0a, 0x08, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x4d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x08, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x32, + 0xcb, 0x05, 0x0a, 0x07, 0x54, 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, 0x12, 0x5d, 0x0a, 0x12, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x12, 0x22, 0x2e, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, 0x2e, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x57, 0x0a, 0x10, 0x52, 0x65, + 0x61, 0x64, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x20, + 0x2e, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x6e, + 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x21, 0x2e, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x43, + 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x5d, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, + 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x22, 0x2e, 0x74, 0x68, 0x72, 0x65, + 0x61, 0x64, 0x73, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x72, + 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, + 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6f, + 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x5d, 0x0a, 0x12, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x76, + 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x22, 0x2e, 0x74, 0x68, 0x72, 0x65, 0x61, + 0x64, 0x73, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x74, + 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x6f, 0x6e, + 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x5a, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x21, 0x2e, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, + 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x74, 0x68, 0x72, 0x65, + 0x61, 0x64, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4e, 0x0a, + 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1d, + 0x2e, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, + 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4b, 0x0a, + 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x12, 0x1c, 0x2e, + 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x74, 0x68, + 0x72, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x0e, 0x52, 0x65, + 0x63, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x12, 0x1e, 0x2e, 0x74, + 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x74, + 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x52, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x0f, 0x5a, + 0x0d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x3b, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -func init() { proto.RegisterFile("proto/threads.proto", fileDescriptor_78fcd0275ccaea0d) } +var ( + file_proto_threads_proto_rawDescOnce sync.Once + file_proto_threads_proto_rawDescData = file_proto_threads_proto_rawDesc +) -var fileDescriptor_78fcd0275ccaea0d = []byte{ - // 749 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x54, 0xdb, 0x6e, 0xd3, 0x4a, - 0x14, 0x95, 0xd3, 0xa6, 0x69, 0x76, 0x7a, 0x3b, 0xd3, 0xb4, 0xc7, 0x71, 0x6f, 0x39, 0x73, 0x1e, - 0x4e, 0x0f, 0xa0, 0x54, 0xa4, 0x42, 0xa8, 0xea, 0x53, 0x2f, 0x42, 0x8a, 0x28, 0x88, 0x9a, 0x96, - 0xa2, 0x4a, 0x55, 0xe4, 0xc4, 0xd3, 0xd4, 0x52, 0x62, 0x1b, 0xcf, 0x04, 0xf8, 0x06, 0xde, 0xf9, - 0x07, 0x9e, 0xf8, 0x11, 0x7e, 0x0a, 0x65, 0x66, 0x9c, 0x8c, 0x2f, 0x93, 0x02, 0x7d, 0xf3, 0xcc, - 0xac, 0xd9, 0x5e, 0x6b, 0xcf, 0x5e, 0x0b, 0x56, 0xc3, 0x28, 0x60, 0xc1, 0x1e, 0xbb, 0x8b, 0x88, - 0xe3, 0xd2, 0x06, 0x5f, 0xa1, 0x92, 0x5c, 0x5a, 0x3b, 0xbd, 0x20, 0xe8, 0xf5, 0xc9, 0x1e, 0xdf, - 0xee, 0x0c, 0x6f, 0xf7, 0x98, 0x37, 0x20, 0x94, 0x39, 0x83, 0x50, 0x20, 0xad, 0xed, 0x34, 0xe0, - 0x53, 0xe4, 0x84, 0x21, 0x89, 0x64, 0x25, 0xfc, 0xc5, 0x80, 0x85, 0x93, 0xc0, 0xff, 0x48, 0x22, - 0xea, 0x30, 0x2f, 0xf0, 0xd1, 0x12, 0x14, 0x3c, 0xd7, 0x34, 0xea, 0xc6, 0x6e, 0xd9, 0x2e, 0x78, - 0x2e, 0xaa, 0xc1, 0x7c, 0x2f, 0x0a, 0x86, 0x61, 0xdb, 0x73, 0xcd, 0x02, 0xdf, 0x2d, 0xf1, 0x75, - 0xcb, 0x45, 0x55, 0x28, 0xb2, 0x20, 0xf4, 0xba, 0xe6, 0x0c, 0xdf, 0x17, 0x0b, 0x74, 0x00, 0xd0, - 0x8d, 0x88, 0xc3, 0x88, 0xdb, 0x76, 0x98, 0x39, 0x5b, 0x37, 0x76, 0x2b, 0x4d, 0xab, 0x21, 0x68, - 0x34, 0x62, 0x1a, 0x8d, 0x8b, 0x98, 0xa7, 0x5d, 0x96, 0xe8, 0x23, 0x86, 0xbf, 0x19, 0x50, 0x7a, - 0x45, 0x28, 0x75, 0x7a, 0x24, 0xc3, 0x63, 0x03, 0xca, 0xce, 0x90, 0xdd, 0x05, 0xd1, 0x84, 0xc8, - 0xbc, 0xd8, 0x68, 0xb9, 0xe8, 0x3f, 0x58, 0xee, 0x2a, 0x22, 0x46, 0x10, 0xc1, 0x69, 0x49, 0xdd, - 0x6e, 0xb9, 0x08, 0xc1, 0x2c, 0x23, 0x9f, 0x05, 0xad, 0xb2, 0xcd, 0xbf, 0xd1, 0x3e, 0x94, 0x28, - 0xf1, 0xd9, 0x88, 0x6d, 0xf1, 0x5e, 0xb6, 0x73, 0x23, 0xe8, 0x11, 0xc3, 0x67, 0x50, 0x3b, 0xe1, - 0xbc, 0xd5, 0xe6, 0xd9, 0xe4, 0xc3, 0x90, 0x50, 0x96, 0xe8, 0x99, 0xa1, 0xe9, 0x59, 0x41, 0xe9, - 0x19, 0xbe, 0x02, 0x2b, 0xaf, 0x1a, 0x0d, 0x03, 0x9f, 0x12, 0x74, 0x00, 0x0b, 0xaa, 0x0c, 0x5e, - 0xb2, 0xd2, 0x5c, 0x6b, 0xc4, 0x33, 0x91, 0xb8, 0x94, 0x80, 0xe2, 0x0e, 0xfc, 0x6d, 0x13, 0xc7, - 0xcd, 0x23, 0x99, 0x6e, 0xf0, 0xf3, 0xd4, 0x43, 0x57, 0x9a, 0x9b, 0x99, 0x3e, 0xbc, 0x65, 0x91, - 0xe7, 0xf7, 0xde, 0x39, 0xfd, 0x21, 0x19, 0x4b, 0xc2, 0x97, 0x60, 0x66, 0xff, 0xf1, 0x70, 0xea, - 0xcf, 0xc0, 0x3c, 0xf3, 0x28, 0x53, 0x11, 0xf4, 0xfe, 0x06, 0xe3, 0xf7, 0x50, 0xcb, 0xb9, 0x26, - 0xe9, 0x1c, 0xc2, 0xa2, 0xfa, 0x0f, 0x6a, 0x1a, 0xf5, 0x19, 0x3d, 0x9f, 0x24, 0x16, 0x1f, 0x41, - 0xed, 0x32, 0x74, 0x35, 0x4f, 0x9e, 0xee, 0xa6, 0xf6, 0x9d, 0xf3, 0x4a, 0x3c, 0xbc, 0x59, 0x8f, - 0xa1, 0x76, 0x4a, 0xfa, 0xe4, 0x97, 0xb8, 0xe1, 0x4d, 0xb0, 0xf2, 0xc0, 0x82, 0x05, 0x0e, 0xa1, - 0x2a, 0x66, 0x51, 0x3a, 0x31, 0xae, 0x92, 0xe3, 0x31, 0x23, 0xd7, 0x63, 0x53, 0x9d, 0x1a, 0x1b, - 0x70, 0x66, 0x62, 0x40, 0x7c, 0x02, 0x6b, 0xa9, 0x3f, 0xca, 0x86, 0x3c, 0x82, 0xd2, 0x40, 0x6c, - 0xc9, 0x5e, 0xac, 0x8c, 0x7b, 0x11, 0x43, 0x63, 0x00, 0xfe, 0x6e, 0xc0, 0xea, 0xe8, 0xe1, 0xe5, - 0x01, 0xfd, 0x6d, 0xda, 0x87, 0x50, 0xe1, 0x31, 0xd0, 0x21, 0xb7, 0x41, 0x44, 0xa4, 0x05, 0xa6, - 0x45, 0x01, 0x8c, 0xe0, 0xc7, 0x1c, 0x8d, 0x9e, 0x42, 0xb1, 0xef, 0x0d, 0x3c, 0xa1, 0xab, 0xd2, - 0xdc, 0xc8, 0x5c, 0x6b, 0xf9, 0x6c, 0xbf, 0x29, 0x8c, 0x23, 0x90, 0xf8, 0x14, 0xaa, 0x49, 0xbe, - 0x52, 0xf4, 0x13, 0x98, 0x97, 0x9a, 0xe2, 0xf1, 0xcc, 0xaa, 0x1e, 0x23, 0xf0, 0x57, 0x03, 0xd6, - 0x6c, 0xd2, 0x25, 0x7e, 0x46, 0xf8, 0xff, 0xb0, 0x92, 0x12, 0x2e, 0xea, 0x95, 0xed, 0xe5, 0xa4, - 0x72, 0x8a, 0xce, 0x61, 0x9d, 0x73, 0x6a, 0x87, 0x24, 0x6a, 0x27, 0x46, 0xb0, 0x70, 0xbf, 0x9c, - 0x2a, 0xbf, 0xfa, 0x86, 0x44, 0xea, 0x34, 0xe1, 0x17, 0xb0, 0x9e, 0xa6, 0xf5, 0x27, 0xfa, 0x9a, - 0x3f, 0x8a, 0x50, 0xba, 0x10, 0xa7, 0xe8, 0x06, 0x50, 0x36, 0x25, 0x11, 0x9e, 0xf8, 0x43, 0x17, - 0xc8, 0xd6, 0xbf, 0x53, 0x31, 0x92, 0xd8, 0x15, 0xac, 0xa4, 0x73, 0x0c, 0xd5, 0xc7, 0x17, 0x35, - 0x31, 0x6a, 0xfd, 0x33, 0x05, 0x21, 0x0b, 0xdf, 0x00, 0xca, 0xba, 0x5e, 0xe1, 0xad, 0x4d, 0x15, - 0x85, 0xf7, 0x94, 0xd8, 0xb8, 0x01, 0x94, 0xb5, 0xb3, 0x52, 0x5e, 0x1b, 0x0c, 0x4a, 0x79, 0x7d, - 0x1e, 0xa0, 0x6b, 0xf8, 0x2b, 0x13, 0xa8, 0x68, 0xa2, 0x5a, 0x97, 0xd1, 0x16, 0x9e, 0x06, 0x91, - 0xb5, 0x5f, 0xc3, 0x62, 0xc2, 0xf9, 0x68, 0x2b, 0xf5, 0x50, 0xc9, 0x0c, 0xb2, 0xb6, 0x75, 0xc7, - 0xb2, 0xde, 0x4b, 0x58, 0x50, 0x3d, 0x85, 0x36, 0x13, 0x1c, 0x52, 0x0e, 0xb1, 0xb6, 0x34, 0xa7, - 0xb2, 0xd8, 0x39, 0x2c, 0x25, 0x47, 0x18, 0x6d, 0x2b, 0x6f, 0x9d, 0x63, 0x39, 0x6b, 0x47, 0x7b, - 0x2e, 0x4a, 0x1e, 0x2f, 0x5f, 0x2f, 0x72, 0x0b, 0x1d, 0x4a, 0x5c, 0x67, 0x8e, 0x2f, 0xf7, 0x7f, - 0x06, 0x00, 0x00, 0xff, 0xff, 0x8c, 0xab, 0xc6, 0xc8, 0xe6, 0x09, 0x00, 0x00, +func file_proto_threads_proto_rawDescGZIP() []byte { + file_proto_threads_proto_rawDescOnce.Do(func() { + file_proto_threads_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_threads_proto_rawDescData) + }) + return file_proto_threads_proto_rawDescData +} + +var file_proto_threads_proto_msgTypes = make([]protoimpl.MessageInfo, 18) +var file_proto_threads_proto_goTypes = []interface{}{ + (*Conversation)(nil), // 0: threads.Conversation + (*Message)(nil), // 1: threads.Message + (*CreateConversationRequest)(nil), // 2: threads.CreateConversationRequest + (*CreateConversationResponse)(nil), // 3: threads.CreateConversationResponse + (*ReadConversationRequest)(nil), // 4: threads.ReadConversationRequest + (*ReadConversationResponse)(nil), // 5: threads.ReadConversationResponse + (*ListConversationsRequest)(nil), // 6: threads.ListConversationsRequest + (*ListConversationsResponse)(nil), // 7: threads.ListConversationsResponse + (*UpdateConversationRequest)(nil), // 8: threads.UpdateConversationRequest + (*UpdateConversationResponse)(nil), // 9: threads.UpdateConversationResponse + (*DeleteConversationRequest)(nil), // 10: threads.DeleteConversationRequest + (*DeleteConversationResponse)(nil), // 11: threads.DeleteConversationResponse + (*CreateMessageRequest)(nil), // 12: threads.CreateMessageRequest + (*CreateMessageResponse)(nil), // 13: threads.CreateMessageResponse + (*ListMessagesRequest)(nil), // 14: threads.ListMessagesRequest + (*ListMessagesResponse)(nil), // 15: threads.ListMessagesResponse + (*RecentMessagesRequest)(nil), // 16: threads.RecentMessagesRequest + (*RecentMessagesResponse)(nil), // 17: threads.RecentMessagesResponse + (*timestamp.Timestamp)(nil), // 18: google.protobuf.Timestamp + (*wrappers.StringValue)(nil), // 19: google.protobuf.StringValue + (*wrappers.Int32Value)(nil), // 20: google.protobuf.Int32Value +} +var file_proto_threads_proto_depIdxs = []int32{ + 18, // 0: threads.Conversation.created_at:type_name -> google.protobuf.Timestamp + 18, // 1: threads.Message.sent_at:type_name -> google.protobuf.Timestamp + 0, // 2: threads.CreateConversationResponse.conversation:type_name -> threads.Conversation + 19, // 3: threads.ReadConversationRequest.group_id:type_name -> google.protobuf.StringValue + 0, // 4: threads.ReadConversationResponse.conversation:type_name -> threads.Conversation + 0, // 5: threads.ListConversationsResponse.conversations:type_name -> threads.Conversation + 0, // 6: threads.UpdateConversationResponse.conversation:type_name -> threads.Conversation + 1, // 7: threads.CreateMessageResponse.message:type_name -> threads.Message + 18, // 8: threads.ListMessagesRequest.sent_before:type_name -> google.protobuf.Timestamp + 20, // 9: threads.ListMessagesRequest.limit:type_name -> google.protobuf.Int32Value + 1, // 10: threads.ListMessagesResponse.messages:type_name -> threads.Message + 20, // 11: threads.RecentMessagesRequest.limit_per_conversation:type_name -> google.protobuf.Int32Value + 1, // 12: threads.RecentMessagesResponse.messages:type_name -> threads.Message + 2, // 13: threads.Threads.CreateConversation:input_type -> threads.CreateConversationRequest + 4, // 14: threads.Threads.ReadConversation:input_type -> threads.ReadConversationRequest + 8, // 15: threads.Threads.UpdateConversation:input_type -> threads.UpdateConversationRequest + 10, // 16: threads.Threads.DeleteConversation:input_type -> threads.DeleteConversationRequest + 6, // 17: threads.Threads.ListConversations:input_type -> threads.ListConversationsRequest + 12, // 18: threads.Threads.CreateMessage:input_type -> threads.CreateMessageRequest + 14, // 19: threads.Threads.ListMessages:input_type -> threads.ListMessagesRequest + 16, // 20: threads.Threads.RecentMessages:input_type -> threads.RecentMessagesRequest + 3, // 21: threads.Threads.CreateConversation:output_type -> threads.CreateConversationResponse + 5, // 22: threads.Threads.ReadConversation:output_type -> threads.ReadConversationResponse + 9, // 23: threads.Threads.UpdateConversation:output_type -> threads.UpdateConversationResponse + 11, // 24: threads.Threads.DeleteConversation:output_type -> threads.DeleteConversationResponse + 7, // 25: threads.Threads.ListConversations:output_type -> threads.ListConversationsResponse + 13, // 26: threads.Threads.CreateMessage:output_type -> threads.CreateMessageResponse + 15, // 27: threads.Threads.ListMessages:output_type -> threads.ListMessagesResponse + 17, // 28: threads.Threads.RecentMessages:output_type -> threads.RecentMessagesResponse + 21, // [21:29] is the sub-list for method output_type + 13, // [13:21] is the sub-list for method input_type + 13, // [13:13] is the sub-list for extension type_name + 13, // [13:13] is the sub-list for extension extendee + 0, // [0:13] is the sub-list for field type_name +} + +func init() { file_proto_threads_proto_init() } +func file_proto_threads_proto_init() { + if File_proto_threads_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_proto_threads_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Conversation); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_threads_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Message); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_threads_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateConversationRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_threads_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateConversationResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_threads_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReadConversationRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_threads_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReadConversationResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_threads_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListConversationsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_threads_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListConversationsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_threads_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateConversationRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_threads_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateConversationResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_threads_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteConversationRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_threads_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteConversationResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_threads_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateMessageRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_threads_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateMessageResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_threads_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListMessagesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_threads_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListMessagesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_threads_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RecentMessagesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_threads_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RecentMessagesResponse); 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_proto_threads_proto_rawDesc, + NumEnums: 0, + NumMessages: 18, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_proto_threads_proto_goTypes, + DependencyIndexes: file_proto_threads_proto_depIdxs, + MessageInfos: file_proto_threads_proto_msgTypes, + }.Build() + File_proto_threads_proto = out.File + file_proto_threads_proto_rawDesc = nil + file_proto_threads_proto_goTypes = nil + file_proto_threads_proto_depIdxs = nil }