chat.pb.go 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.26.0-devel
  4. // protoc v3.15.8
  5. // source: chat.proto
  6. package chat
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. reflect "reflect"
  11. sync "sync"
  12. )
  13. const (
  14. // Verify that this generated code is sufficiently up-to-date.
  15. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  16. // Verify that runtime/protoimpl is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  18. )
  19. type CheckUserPartnerIsRelationshipRequest struct {
  20. state protoimpl.MessageState
  21. sizeCache protoimpl.SizeCache
  22. unknownFields protoimpl.UnknownFields
  23. PartnerID string `protobuf:"bytes,1,opt,name=partnerID,proto3" json:"partnerID"`
  24. UserID string `protobuf:"bytes,2,opt,name=userID,proto3" json:"userID"`
  25. }
  26. func (x *CheckUserPartnerIsRelationshipRequest) Reset() {
  27. *x = CheckUserPartnerIsRelationshipRequest{}
  28. if protoimpl.UnsafeEnabled {
  29. mi := &file_chat_proto_msgTypes[0]
  30. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  31. ms.StoreMessageInfo(mi)
  32. }
  33. }
  34. func (x *CheckUserPartnerIsRelationshipRequest) String() string {
  35. return protoimpl.X.MessageStringOf(x)
  36. }
  37. func (*CheckUserPartnerIsRelationshipRequest) ProtoMessage() {}
  38. func (x *CheckUserPartnerIsRelationshipRequest) ProtoReflect() protoreflect.Message {
  39. mi := &file_chat_proto_msgTypes[0]
  40. if protoimpl.UnsafeEnabled && x != nil {
  41. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  42. if ms.LoadMessageInfo() == nil {
  43. ms.StoreMessageInfo(mi)
  44. }
  45. return ms
  46. }
  47. return mi.MessageOf(x)
  48. }
  49. // Deprecated: Use CheckUserPartnerIsRelationshipRequest.ProtoReflect.Descriptor instead.
  50. func (*CheckUserPartnerIsRelationshipRequest) Descriptor() ([]byte, []int) {
  51. return file_chat_proto_rawDescGZIP(), []int{0}
  52. }
  53. func (x *CheckUserPartnerIsRelationshipRequest) GetPartnerID() string {
  54. if x != nil {
  55. return x.PartnerID
  56. }
  57. return ""
  58. }
  59. func (x *CheckUserPartnerIsRelationshipRequest) GetUserID() string {
  60. if x != nil {
  61. return x.UserID
  62. }
  63. return ""
  64. }
  65. type CheckUserPartnerIsRelationshipReply struct {
  66. state protoimpl.MessageState
  67. sizeCache protoimpl.SizeCache
  68. unknownFields protoimpl.UnknownFields
  69. IsBuildRelationship bool `protobuf:"varint,1,opt,name=isBuildRelationship,proto3" json:"isBuildRelationship"`
  70. RoomId int64 `protobuf:"varint,2,opt,name=roomId,proto3" json:"roomId"`
  71. }
  72. func (x *CheckUserPartnerIsRelationshipReply) Reset() {
  73. *x = CheckUserPartnerIsRelationshipReply{}
  74. if protoimpl.UnsafeEnabled {
  75. mi := &file_chat_proto_msgTypes[1]
  76. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  77. ms.StoreMessageInfo(mi)
  78. }
  79. }
  80. func (x *CheckUserPartnerIsRelationshipReply) String() string {
  81. return protoimpl.X.MessageStringOf(x)
  82. }
  83. func (*CheckUserPartnerIsRelationshipReply) ProtoMessage() {}
  84. func (x *CheckUserPartnerIsRelationshipReply) ProtoReflect() protoreflect.Message {
  85. mi := &file_chat_proto_msgTypes[1]
  86. if protoimpl.UnsafeEnabled && x != nil {
  87. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  88. if ms.LoadMessageInfo() == nil {
  89. ms.StoreMessageInfo(mi)
  90. }
  91. return ms
  92. }
  93. return mi.MessageOf(x)
  94. }
  95. // Deprecated: Use CheckUserPartnerIsRelationshipReply.ProtoReflect.Descriptor instead.
  96. func (*CheckUserPartnerIsRelationshipReply) Descriptor() ([]byte, []int) {
  97. return file_chat_proto_rawDescGZIP(), []int{1}
  98. }
  99. func (x *CheckUserPartnerIsRelationshipReply) GetIsBuildRelationship() bool {
  100. if x != nil {
  101. return x.IsBuildRelationship
  102. }
  103. return false
  104. }
  105. func (x *CheckUserPartnerIsRelationshipReply) GetRoomId() int64 {
  106. if x != nil {
  107. return x.RoomId
  108. }
  109. return 0
  110. }
  111. var File_chat_proto protoreflect.FileDescriptor
  112. var file_chat_proto_rawDesc = []byte{
  113. 0x0a, 0x0a, 0x63, 0x68, 0x61, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x61, 0x70,
  114. 0x69, 0x2e, 0x63, 0x68, 0x61, 0x74, 0x22, 0x5d, 0x0a, 0x25, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x55,
  115. 0x73, 0x65, 0x72, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x49, 0x73, 0x52, 0x65, 0x6c, 0x61,
  116. 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
  117. 0x1c, 0x0a, 0x09, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01,
  118. 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x49, 0x44, 0x12, 0x16, 0x0a,
  119. 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75,
  120. 0x73, 0x65, 0x72, 0x49, 0x44, 0x22, 0x6f, 0x0a, 0x23, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x55, 0x73,
  121. 0x65, 0x72, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x49, 0x73, 0x52, 0x65, 0x6c, 0x61, 0x74,
  122. 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x30, 0x0a, 0x13,
  123. 0x69, 0x73, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73,
  124. 0x68, 0x69, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x69, 0x73, 0x42, 0x75, 0x69,
  125. 0x6c, 0x64, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x12, 0x16,
  126. 0x0a, 0x06, 0x72, 0x6f, 0x6f, 0x6d, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06,
  127. 0x72, 0x6f, 0x6f, 0x6d, 0x49, 0x64, 0x32, 0x89, 0x01, 0x0a, 0x04, 0x43, 0x68, 0x61, 0x74, 0x12,
  128. 0x80, 0x01, 0x0a, 0x1e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x55, 0x73, 0x65, 0x72, 0x50, 0x61, 0x72,
  129. 0x74, 0x6e, 0x65, 0x72, 0x49, 0x73, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68,
  130. 0x69, 0x70, 0x12, 0x2f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x68, 0x61, 0x74, 0x2e, 0x43, 0x68,
  131. 0x65, 0x63, 0x6b, 0x55, 0x73, 0x65, 0x72, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x49, 0x73,
  132. 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x52, 0x65, 0x71, 0x75,
  133. 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x68, 0x61, 0x74, 0x2e, 0x43,
  134. 0x68, 0x65, 0x63, 0x6b, 0x55, 0x73, 0x65, 0x72, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x49,
  135. 0x73, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x52, 0x65, 0x70,
  136. 0x6c, 0x79, 0x42, 0x3d, 0x0a, 0x08, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x68, 0x61, 0x74, 0x50, 0x01,
  137. 0x5a, 0x2f, 0x67, 0x69, 0x74, 0x2e, 0x69, 0x6b, 0x75, 0x62, 0x61, 0x6e, 0x2e, 0x63, 0x6f, 0x6d,
  138. 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x70, 0x77, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  139. 0x62, 0x75, 0x66, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x68, 0x61, 0x74, 0x3b, 0x63, 0x68, 0x61,
  140. 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  141. }
  142. var (
  143. file_chat_proto_rawDescOnce sync.Once
  144. file_chat_proto_rawDescData = file_chat_proto_rawDesc
  145. )
  146. func file_chat_proto_rawDescGZIP() []byte {
  147. file_chat_proto_rawDescOnce.Do(func() {
  148. file_chat_proto_rawDescData = protoimpl.X.CompressGZIP(file_chat_proto_rawDescData)
  149. })
  150. return file_chat_proto_rawDescData
  151. }
  152. var file_chat_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  153. var file_chat_proto_goTypes = []interface{}{
  154. (*CheckUserPartnerIsRelationshipRequest)(nil), // 0: api.chat.CheckUserPartnerIsRelationshipRequest
  155. (*CheckUserPartnerIsRelationshipReply)(nil), // 1: api.chat.CheckUserPartnerIsRelationshipReply
  156. }
  157. var file_chat_proto_depIdxs = []int32{
  158. 0, // 0: api.chat.Chat.CheckUserPartnerIsRelationship:input_type -> api.chat.CheckUserPartnerIsRelationshipRequest
  159. 1, // 1: api.chat.Chat.CheckUserPartnerIsRelationship:output_type -> api.chat.CheckUserPartnerIsRelationshipReply
  160. 1, // [1:2] is the sub-list for method output_type
  161. 0, // [0:1] is the sub-list for method input_type
  162. 0, // [0:0] is the sub-list for extension type_name
  163. 0, // [0:0] is the sub-list for extension extendee
  164. 0, // [0:0] is the sub-list for field type_name
  165. }
  166. func init() { file_chat_proto_init() }
  167. func file_chat_proto_init() {
  168. if File_chat_proto != nil {
  169. return
  170. }
  171. if !protoimpl.UnsafeEnabled {
  172. file_chat_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  173. switch v := v.(*CheckUserPartnerIsRelationshipRequest); i {
  174. case 0:
  175. return &v.state
  176. case 1:
  177. return &v.sizeCache
  178. case 2:
  179. return &v.unknownFields
  180. default:
  181. return nil
  182. }
  183. }
  184. file_chat_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  185. switch v := v.(*CheckUserPartnerIsRelationshipReply); i {
  186. case 0:
  187. return &v.state
  188. case 1:
  189. return &v.sizeCache
  190. case 2:
  191. return &v.unknownFields
  192. default:
  193. return nil
  194. }
  195. }
  196. }
  197. type x struct{}
  198. out := protoimpl.TypeBuilder{
  199. File: protoimpl.DescBuilder{
  200. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  201. RawDescriptor: file_chat_proto_rawDesc,
  202. NumEnums: 0,
  203. NumMessages: 2,
  204. NumExtensions: 0,
  205. NumServices: 1,
  206. },
  207. GoTypes: file_chat_proto_goTypes,
  208. DependencyIndexes: file_chat_proto_depIdxs,
  209. MessageInfos: file_chat_proto_msgTypes,
  210. }.Build()
  211. File_chat_proto = out.File
  212. file_chat_proto_rawDesc = nil
  213. file_chat_proto_goTypes = nil
  214. file_chat_proto_depIdxs = nil
  215. }