flowsrv.pb.go 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.28.0
  4. // protoc v3.19.4
  5. // source: pb/flowsrv.proto
  6. package pb
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. structpb "google.golang.org/protobuf/types/known/structpb"
  11. reflect "reflect"
  12. sync "sync"
  13. )
  14. const (
  15. // Verify that this generated code is sufficiently up-to-date.
  16. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  17. // Verify that runtime/protoimpl is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  19. )
  20. type ConnectType int32
  21. const (
  22. ConnectType_PLAYER ConnectType = 0
  23. ConnectType_CS ConnectType = 1
  24. )
  25. // Enum value maps for ConnectType.
  26. var (
  27. ConnectType_name = map[int32]string{
  28. 0: "PLAYER",
  29. 1: "CS",
  30. }
  31. ConnectType_value = map[string]int32{
  32. "PLAYER": 0,
  33. "CS": 1,
  34. }
  35. )
  36. func (x ConnectType) Enum() *ConnectType {
  37. p := new(ConnectType)
  38. *p = x
  39. return p
  40. }
  41. func (x ConnectType) String() string {
  42. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  43. }
  44. func (ConnectType) Descriptor() protoreflect.EnumDescriptor {
  45. return file_pb_flowsrv_proto_enumTypes[0].Descriptor()
  46. }
  47. func (ConnectType) Type() protoreflect.EnumType {
  48. return &file_pb_flowsrv_proto_enumTypes[0]
  49. }
  50. func (x ConnectType) Number() protoreflect.EnumNumber {
  51. return protoreflect.EnumNumber(x)
  52. }
  53. // Deprecated: Use ConnectType.Descriptor instead.
  54. func (ConnectType) EnumDescriptor() ([]byte, []int) {
  55. return file_pb_flowsrv_proto_rawDescGZIP(), []int{0}
  56. }
  57. type CommandReq struct {
  58. state protoimpl.MessageState
  59. sizeCache protoimpl.SizeCache
  60. unknownFields protoimpl.UnknownFields
  61. Type ConnectType `protobuf:"varint,1,opt,name=type,proto3,enum=pb.ConnectType" json:"type,omitempty"`
  62. AccessToken string `protobuf:"bytes,2,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
  63. }
  64. func (x *CommandReq) Reset() {
  65. *x = CommandReq{}
  66. if protoimpl.UnsafeEnabled {
  67. mi := &file_pb_flowsrv_proto_msgTypes[0]
  68. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  69. ms.StoreMessageInfo(mi)
  70. }
  71. }
  72. func (x *CommandReq) String() string {
  73. return protoimpl.X.MessageStringOf(x)
  74. }
  75. func (*CommandReq) ProtoMessage() {}
  76. func (x *CommandReq) ProtoReflect() protoreflect.Message {
  77. mi := &file_pb_flowsrv_proto_msgTypes[0]
  78. if protoimpl.UnsafeEnabled && x != nil {
  79. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  80. if ms.LoadMessageInfo() == nil {
  81. ms.StoreMessageInfo(mi)
  82. }
  83. return ms
  84. }
  85. return mi.MessageOf(x)
  86. }
  87. // Deprecated: Use CommandReq.ProtoReflect.Descriptor instead.
  88. func (*CommandReq) Descriptor() ([]byte, []int) {
  89. return file_pb_flowsrv_proto_rawDescGZIP(), []int{0}
  90. }
  91. func (x *CommandReq) GetType() ConnectType {
  92. if x != nil {
  93. return x.Type
  94. }
  95. return ConnectType_PLAYER
  96. }
  97. func (x *CommandReq) GetAccessToken() string {
  98. if x != nil {
  99. return x.AccessToken
  100. }
  101. return ""
  102. }
  103. type CommandResp struct {
  104. state protoimpl.MessageState
  105. sizeCache protoimpl.SizeCache
  106. unknownFields protoimpl.UnknownFields
  107. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
  108. Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
  109. Data *structpb.Struct `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
  110. }
  111. func (x *CommandResp) Reset() {
  112. *x = CommandResp{}
  113. if protoimpl.UnsafeEnabled {
  114. mi := &file_pb_flowsrv_proto_msgTypes[1]
  115. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  116. ms.StoreMessageInfo(mi)
  117. }
  118. }
  119. func (x *CommandResp) String() string {
  120. return protoimpl.X.MessageStringOf(x)
  121. }
  122. func (*CommandResp) ProtoMessage() {}
  123. func (x *CommandResp) ProtoReflect() protoreflect.Message {
  124. mi := &file_pb_flowsrv_proto_msgTypes[1]
  125. if protoimpl.UnsafeEnabled && x != nil {
  126. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  127. if ms.LoadMessageInfo() == nil {
  128. ms.StoreMessageInfo(mi)
  129. }
  130. return ms
  131. }
  132. return mi.MessageOf(x)
  133. }
  134. // Deprecated: Use CommandResp.ProtoReflect.Descriptor instead.
  135. func (*CommandResp) Descriptor() ([]byte, []int) {
  136. return file_pb_flowsrv_proto_rawDescGZIP(), []int{1}
  137. }
  138. func (x *CommandResp) GetCode() int64 {
  139. if x != nil {
  140. return x.Code
  141. }
  142. return 0
  143. }
  144. func (x *CommandResp) GetMsg() string {
  145. if x != nil {
  146. return x.Msg
  147. }
  148. return ""
  149. }
  150. func (x *CommandResp) GetData() *structpb.Struct {
  151. if x != nil {
  152. return x.Data
  153. }
  154. return nil
  155. }
  156. var File_pb_flowsrv_proto protoreflect.FileDescriptor
  157. var file_pb_flowsrv_proto_rawDesc = []byte{
  158. 0x0a, 0x10, 0x70, 0x62, 0x2f, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x72, 0x76, 0x2e, 0x70, 0x72, 0x6f,
  159. 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70,
  160. 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70,
  161. 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x54, 0x0a, 0x0a, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52,
  162. 0x65, 0x71, 0x12, 0x23, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e,
  163. 0x32, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x54, 0x79, 0x70,
  164. 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73,
  165. 0x73, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61,
  166. 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x60, 0x0a, 0x0b, 0x43, 0x6f,
  167. 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64,
  168. 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a,
  169. 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x12,
  170. 0x2b, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e,
  171. 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
  172. 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x2a, 0x21, 0x0a, 0x0b,
  173. 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0a, 0x0a, 0x06, 0x50,
  174. 0x4c, 0x41, 0x59, 0x45, 0x52, 0x10, 0x00, 0x12, 0x06, 0x0a, 0x02, 0x43, 0x53, 0x10, 0x01, 0x32,
  175. 0x66, 0x0a, 0x07, 0x46, 0x6c, 0x6f, 0x77, 0x73, 0x72, 0x76, 0x12, 0x2c, 0x0a, 0x07, 0x63, 0x6f,
  176. 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x12, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61,
  177. 0x6e, 0x64, 0x52, 0x65, 0x71, 0x1a, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61,
  178. 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x30, 0x01, 0x12, 0x2d, 0x0a, 0x0a, 0x64, 0x69, 0x73, 0x63,
  179. 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x12, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x6d, 0x6d,
  180. 0x61, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x1a, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x6d, 0x6d,
  181. 0x61, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62,
  182. 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  183. }
  184. var (
  185. file_pb_flowsrv_proto_rawDescOnce sync.Once
  186. file_pb_flowsrv_proto_rawDescData = file_pb_flowsrv_proto_rawDesc
  187. )
  188. func file_pb_flowsrv_proto_rawDescGZIP() []byte {
  189. file_pb_flowsrv_proto_rawDescOnce.Do(func() {
  190. file_pb_flowsrv_proto_rawDescData = protoimpl.X.CompressGZIP(file_pb_flowsrv_proto_rawDescData)
  191. })
  192. return file_pb_flowsrv_proto_rawDescData
  193. }
  194. var file_pb_flowsrv_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  195. var file_pb_flowsrv_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  196. var file_pb_flowsrv_proto_goTypes = []interface{}{
  197. (ConnectType)(0), // 0: pb.ConnectType
  198. (*CommandReq)(nil), // 1: pb.CommandReq
  199. (*CommandResp)(nil), // 2: pb.CommandResp
  200. (*structpb.Struct)(nil), // 3: google.protobuf.Struct
  201. }
  202. var file_pb_flowsrv_proto_depIdxs = []int32{
  203. 0, // 0: pb.CommandReq.type:type_name -> pb.ConnectType
  204. 3, // 1: pb.CommandResp.data:type_name -> google.protobuf.Struct
  205. 1, // 2: pb.Flowsrv.connect:input_type -> pb.CommandReq
  206. 1, // 3: pb.Flowsrv.disconnect:input_type -> pb.CommandReq
  207. 2, // 4: pb.Flowsrv.connect:output_type -> pb.CommandResp
  208. 2, // 5: pb.Flowsrv.disconnect:output_type -> pb.CommandResp
  209. 4, // [4:6] is the sub-list for method output_type
  210. 2, // [2:4] is the sub-list for method input_type
  211. 2, // [2:2] is the sub-list for extension type_name
  212. 2, // [2:2] is the sub-list for extension extendee
  213. 0, // [0:2] is the sub-list for field type_name
  214. }
  215. func init() { file_pb_flowsrv_proto_init() }
  216. func file_pb_flowsrv_proto_init() {
  217. if File_pb_flowsrv_proto != nil {
  218. return
  219. }
  220. if !protoimpl.UnsafeEnabled {
  221. file_pb_flowsrv_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  222. switch v := v.(*CommandReq); i {
  223. case 0:
  224. return &v.state
  225. case 1:
  226. return &v.sizeCache
  227. case 2:
  228. return &v.unknownFields
  229. default:
  230. return nil
  231. }
  232. }
  233. file_pb_flowsrv_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  234. switch v := v.(*CommandResp); i {
  235. case 0:
  236. return &v.state
  237. case 1:
  238. return &v.sizeCache
  239. case 2:
  240. return &v.unknownFields
  241. default:
  242. return nil
  243. }
  244. }
  245. }
  246. type x struct{}
  247. out := protoimpl.TypeBuilder{
  248. File: protoimpl.DescBuilder{
  249. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  250. RawDescriptor: file_pb_flowsrv_proto_rawDesc,
  251. NumEnums: 1,
  252. NumMessages: 2,
  253. NumExtensions: 0,
  254. NumServices: 1,
  255. },
  256. GoTypes: file_pb_flowsrv_proto_goTypes,
  257. DependencyIndexes: file_pb_flowsrv_proto_depIdxs,
  258. EnumInfos: file_pb_flowsrv_proto_enumTypes,
  259. MessageInfos: file_pb_flowsrv_proto_msgTypes,
  260. }.Build()
  261. File_pb_flowsrv_proto = out.File
  262. file_pb_flowsrv_proto_rawDesc = nil
  263. file_pb_flowsrv_proto_goTypes = nil
  264. file_pb_flowsrv_proto_depIdxs = nil
  265. }