github.com/glide-im/glide@v1.6.0/im_service/proto/api.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.28.0 4 // protoc v4.23.1 5 // source: api.proto 6 7 package proto 8 9 import ( 10 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 11 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 12 reflect "reflect" 13 sync "sync" 14 ) 15 16 const ( 17 // Verify that this generated code is sufficiently up-to-date. 18 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 19 // Verify that runtime/protoimpl is sufficiently up-to-date. 20 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 21 ) 22 23 type Response_ResponseCode int32 24 25 const ( 26 Response_OK Response_ResponseCode = 0 27 Response_ERROR Response_ResponseCode = 1 28 ) 29 30 // Enum value maps for Response_ResponseCode. 31 var ( 32 Response_ResponseCode_name = map[int32]string{ 33 0: "OK", 34 1: "ERROR", 35 } 36 Response_ResponseCode_value = map[string]int32{ 37 "OK": 0, 38 "ERROR": 1, 39 } 40 ) 41 42 func (x Response_ResponseCode) Enum() *Response_ResponseCode { 43 p := new(Response_ResponseCode) 44 *p = x 45 return p 46 } 47 48 func (x Response_ResponseCode) String() string { 49 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 50 } 51 52 func (Response_ResponseCode) Descriptor() protoreflect.EnumDescriptor { 53 return file_api_proto_enumTypes[0].Descriptor() 54 } 55 56 func (Response_ResponseCode) Type() protoreflect.EnumType { 57 return &file_api_proto_enumTypes[0] 58 } 59 60 func (x Response_ResponseCode) Number() protoreflect.EnumNumber { 61 return protoreflect.EnumNumber(x) 62 } 63 64 // Deprecated: Use Response_ResponseCode.Descriptor instead. 65 func (Response_ResponseCode) EnumDescriptor() ([]byte, []int) { 66 return file_api_proto_rawDescGZIP(), []int{0, 0} 67 } 68 69 type UpdateClient_UpdateType int32 70 71 const ( 72 UpdateClient__ UpdateClient_UpdateType = 0 73 UpdateClient_UpdateID UpdateClient_UpdateType = 1 74 UpdateClient_Close UpdateClient_UpdateType = 2 75 UpdateClient_Kick UpdateClient_UpdateType = 3 76 UpdateClient_UpdateSecret UpdateClient_UpdateType = 4 77 ) 78 79 // Enum value maps for UpdateClient_UpdateType. 80 var ( 81 UpdateClient_UpdateType_name = map[int32]string{ 82 0: "_", 83 1: "UpdateID", 84 2: "Close", 85 3: "Kick", 86 4: "UpdateSecret", 87 } 88 UpdateClient_UpdateType_value = map[string]int32{ 89 "_": 0, 90 "UpdateID": 1, 91 "Close": 2, 92 "Kick": 3, 93 "UpdateSecret": 4, 94 } 95 ) 96 97 func (x UpdateClient_UpdateType) Enum() *UpdateClient_UpdateType { 98 p := new(UpdateClient_UpdateType) 99 *p = x 100 return p 101 } 102 103 func (x UpdateClient_UpdateType) String() string { 104 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 105 } 106 107 func (UpdateClient_UpdateType) Descriptor() protoreflect.EnumDescriptor { 108 return file_api_proto_enumTypes[1].Descriptor() 109 } 110 111 func (UpdateClient_UpdateType) Type() protoreflect.EnumType { 112 return &file_api_proto_enumTypes[1] 113 } 114 115 func (x UpdateClient_UpdateType) Number() protoreflect.EnumNumber { 116 return protoreflect.EnumNumber(x) 117 } 118 119 // Deprecated: Use UpdateClient_UpdateType.Descriptor instead. 120 func (UpdateClient_UpdateType) EnumDescriptor() ([]byte, []int) { 121 return file_api_proto_rawDescGZIP(), []int{1, 0} 122 } 123 124 type Response struct { 125 state protoimpl.MessageState 126 sizeCache protoimpl.SizeCache 127 unknownFields protoimpl.UnknownFields 128 129 Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` 130 Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` 131 } 132 133 func (x *Response) Reset() { 134 *x = Response{} 135 if protoimpl.UnsafeEnabled { 136 mi := &file_api_proto_msgTypes[0] 137 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 138 ms.StoreMessageInfo(mi) 139 } 140 } 141 142 func (x *Response) String() string { 143 return protoimpl.X.MessageStringOf(x) 144 } 145 146 func (*Response) ProtoMessage() {} 147 148 func (x *Response) ProtoReflect() protoreflect.Message { 149 mi := &file_api_proto_msgTypes[0] 150 if protoimpl.UnsafeEnabled && x != nil { 151 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 152 if ms.LoadMessageInfo() == nil { 153 ms.StoreMessageInfo(mi) 154 } 155 return ms 156 } 157 return mi.MessageOf(x) 158 } 159 160 // Deprecated: Use Response.ProtoReflect.Descriptor instead. 161 func (*Response) Descriptor() ([]byte, []int) { 162 return file_api_proto_rawDescGZIP(), []int{0} 163 } 164 165 func (x *Response) GetCode() int32 { 166 if x != nil { 167 return x.Code 168 } 169 return 0 170 } 171 172 func (x *Response) GetMsg() string { 173 if x != nil { 174 return x.Msg 175 } 176 return "" 177 } 178 179 type UpdateClient struct { 180 state protoimpl.MessageState 181 sizeCache protoimpl.SizeCache 182 unknownFields protoimpl.UnknownFields 183 184 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 185 Close bool `protobuf:"varint,2,opt,name=close,proto3" json:"close,omitempty"` 186 NewId string `protobuf:"bytes,3,opt,name=newId,proto3" json:"newId,omitempty"` 187 Secret string `protobuf:"bytes,4,opt,name=secret,proto3" json:"secret,omitempty"` 188 Message string `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"` 189 Type UpdateClient_UpdateType `protobuf:"varint,6,opt,name=type,proto3,enum=im_service.glide_im.github.com.UpdateClient_UpdateType" json:"type,omitempty"` 190 } 191 192 func (x *UpdateClient) Reset() { 193 *x = UpdateClient{} 194 if protoimpl.UnsafeEnabled { 195 mi := &file_api_proto_msgTypes[1] 196 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 197 ms.StoreMessageInfo(mi) 198 } 199 } 200 201 func (x *UpdateClient) String() string { 202 return protoimpl.X.MessageStringOf(x) 203 } 204 205 func (*UpdateClient) ProtoMessage() {} 206 207 func (x *UpdateClient) ProtoReflect() protoreflect.Message { 208 mi := &file_api_proto_msgTypes[1] 209 if protoimpl.UnsafeEnabled && x != nil { 210 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 211 if ms.LoadMessageInfo() == nil { 212 ms.StoreMessageInfo(mi) 213 } 214 return ms 215 } 216 return mi.MessageOf(x) 217 } 218 219 // Deprecated: Use UpdateClient.ProtoReflect.Descriptor instead. 220 func (*UpdateClient) Descriptor() ([]byte, []int) { 221 return file_api_proto_rawDescGZIP(), []int{1} 222 } 223 224 func (x *UpdateClient) GetId() string { 225 if x != nil { 226 return x.Id 227 } 228 return "" 229 } 230 231 func (x *UpdateClient) GetClose() bool { 232 if x != nil { 233 return x.Close 234 } 235 return false 236 } 237 238 func (x *UpdateClient) GetNewId() string { 239 if x != nil { 240 return x.NewId 241 } 242 return "" 243 } 244 245 func (x *UpdateClient) GetSecret() string { 246 if x != nil { 247 return x.Secret 248 } 249 return "" 250 } 251 252 func (x *UpdateClient) GetMessage() string { 253 if x != nil { 254 return x.Message 255 } 256 return "" 257 } 258 259 func (x *UpdateClient) GetType() UpdateClient_UpdateType { 260 if x != nil { 261 return x.Type 262 } 263 return UpdateClient__ 264 } 265 266 type EnqueueMessageRequest struct { 267 state protoimpl.MessageState 268 sizeCache protoimpl.SizeCache 269 unknownFields protoimpl.UnknownFields 270 271 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 272 Msg []byte `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` 273 } 274 275 func (x *EnqueueMessageRequest) Reset() { 276 *x = EnqueueMessageRequest{} 277 if protoimpl.UnsafeEnabled { 278 mi := &file_api_proto_msgTypes[2] 279 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 280 ms.StoreMessageInfo(mi) 281 } 282 } 283 284 func (x *EnqueueMessageRequest) String() string { 285 return protoimpl.X.MessageStringOf(x) 286 } 287 288 func (*EnqueueMessageRequest) ProtoMessage() {} 289 290 func (x *EnqueueMessageRequest) ProtoReflect() protoreflect.Message { 291 mi := &file_api_proto_msgTypes[2] 292 if protoimpl.UnsafeEnabled && x != nil { 293 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 294 if ms.LoadMessageInfo() == nil { 295 ms.StoreMessageInfo(mi) 296 } 297 return ms 298 } 299 return mi.MessageOf(x) 300 } 301 302 // Deprecated: Use EnqueueMessageRequest.ProtoReflect.Descriptor instead. 303 func (*EnqueueMessageRequest) Descriptor() ([]byte, []int) { 304 return file_api_proto_rawDescGZIP(), []int{2} 305 } 306 307 func (x *EnqueueMessageRequest) GetId() string { 308 if x != nil { 309 return x.Id 310 } 311 return "" 312 } 313 314 func (x *EnqueueMessageRequest) GetMsg() []byte { 315 if x != nil { 316 return x.Msg 317 } 318 return nil 319 } 320 321 var File_api_proto protoreflect.FileDescriptor 322 323 var file_api_proto_rawDesc = []byte{ 324 0x0a, 0x09, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1e, 0x69, 0x6d, 0x5f, 325 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x67, 0x6c, 0x69, 0x64, 0x65, 0x5f, 0x69, 0x6d, 326 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x22, 0x53, 0x0a, 0x08, 0x52, 327 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 328 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6d, 329 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x22, 0x21, 0x0a, 330 0x0c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x06, 0x0a, 331 0x02, 0x4f, 0x4b, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x01, 332 0x22, 0x93, 0x02, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x69, 0x65, 0x6e, 333 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 334 0x64, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 335 0x52, 0x05, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x65, 0x77, 0x49, 0x64, 336 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6e, 0x65, 0x77, 0x49, 0x64, 0x12, 0x16, 0x0a, 337 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 338 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 339 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 340 0x4b, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x37, 0x2e, 341 0x69, 0x6d, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x67, 0x6c, 0x69, 0x64, 0x65, 342 0x5f, 0x69, 0x6d, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x55, 343 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x55, 0x70, 0x64, 0x61, 344 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x48, 0x0a, 0x0a, 345 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x05, 0x0a, 0x01, 0x5f, 0x10, 346 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x44, 0x10, 0x01, 0x12, 347 0x09, 0x0a, 0x05, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x4b, 0x69, 348 0x63, 0x6b, 0x10, 0x03, 0x12, 0x10, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x65, 349 0x63, 0x72, 0x65, 0x74, 0x10, 0x04, 0x22, 0x39, 0x0a, 0x15, 0x45, 0x6e, 0x71, 0x75, 0x65, 0x75, 350 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 351 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 352 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6d, 0x73, 353 0x67, 0x42, 0x12, 0x5a, 0x10, 0x69, 0x6d, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 354 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 355 } 356 357 var ( 358 file_api_proto_rawDescOnce sync.Once 359 file_api_proto_rawDescData = file_api_proto_rawDesc 360 ) 361 362 func file_api_proto_rawDescGZIP() []byte { 363 file_api_proto_rawDescOnce.Do(func() { 364 file_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_api_proto_rawDescData) 365 }) 366 return file_api_proto_rawDescData 367 } 368 369 var file_api_proto_enumTypes = make([]protoimpl.EnumInfo, 2) 370 var file_api_proto_msgTypes = make([]protoimpl.MessageInfo, 3) 371 var file_api_proto_goTypes = []interface{}{ 372 (Response_ResponseCode)(0), // 0: im_service.glide_im.github.com.Response.ResponseCode 373 (UpdateClient_UpdateType)(0), // 1: im_service.glide_im.github.com.UpdateClient.UpdateType 374 (*Response)(nil), // 2: im_service.glide_im.github.com.Response 375 (*UpdateClient)(nil), // 3: im_service.glide_im.github.com.UpdateClient 376 (*EnqueueMessageRequest)(nil), // 4: im_service.glide_im.github.com.EnqueueMessageRequest 377 } 378 var file_api_proto_depIdxs = []int32{ 379 1, // 0: im_service.glide_im.github.com.UpdateClient.type:type_name -> im_service.glide_im.github.com.UpdateClient.UpdateType 380 1, // [1:1] is the sub-list for method output_type 381 1, // [1:1] is the sub-list for method input_type 382 1, // [1:1] is the sub-list for extension type_name 383 1, // [1:1] is the sub-list for extension extendee 384 0, // [0:1] is the sub-list for field type_name 385 } 386 387 func init() { file_api_proto_init() } 388 func file_api_proto_init() { 389 if File_api_proto != nil { 390 return 391 } 392 if !protoimpl.UnsafeEnabled { 393 file_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 394 switch v := v.(*Response); i { 395 case 0: 396 return &v.state 397 case 1: 398 return &v.sizeCache 399 case 2: 400 return &v.unknownFields 401 default: 402 return nil 403 } 404 } 405 file_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 406 switch v := v.(*UpdateClient); i { 407 case 0: 408 return &v.state 409 case 1: 410 return &v.sizeCache 411 case 2: 412 return &v.unknownFields 413 default: 414 return nil 415 } 416 } 417 file_api_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 418 switch v := v.(*EnqueueMessageRequest); i { 419 case 0: 420 return &v.state 421 case 1: 422 return &v.sizeCache 423 case 2: 424 return &v.unknownFields 425 default: 426 return nil 427 } 428 } 429 } 430 type x struct{} 431 out := protoimpl.TypeBuilder{ 432 File: protoimpl.DescBuilder{ 433 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 434 RawDescriptor: file_api_proto_rawDesc, 435 NumEnums: 2, 436 NumMessages: 3, 437 NumExtensions: 0, 438 NumServices: 0, 439 }, 440 GoTypes: file_api_proto_goTypes, 441 DependencyIndexes: file_api_proto_depIdxs, 442 EnumInfos: file_api_proto_enumTypes, 443 MessageInfos: file_api_proto_msgTypes, 444 }.Build() 445 File_api_proto = out.File 446 file_api_proto_rawDesc = nil 447 file_api_proto_goTypes = nil 448 file_api_proto_depIdxs = nil 449 }