flowsrv.pb.go 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  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. _ "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 CommandReq struct {
  21. state protoimpl.MessageState
  22. sizeCache protoimpl.SizeCache
  23. unknownFields protoimpl.UnknownFields
  24. Type int64 `protobuf:"varint,1,opt,name=type,proto3" json:"type,omitempty"`
  25. AccessToken string `protobuf:"bytes,2,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
  26. }
  27. func (x *CommandReq) Reset() {
  28. *x = CommandReq{}
  29. if protoimpl.UnsafeEnabled {
  30. mi := &file_pb_flowsrv_proto_msgTypes[0]
  31. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  32. ms.StoreMessageInfo(mi)
  33. }
  34. }
  35. func (x *CommandReq) String() string {
  36. return protoimpl.X.MessageStringOf(x)
  37. }
  38. func (*CommandReq) ProtoMessage() {}
  39. func (x *CommandReq) ProtoReflect() protoreflect.Message {
  40. mi := &file_pb_flowsrv_proto_msgTypes[0]
  41. if protoimpl.UnsafeEnabled && x != nil {
  42. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  43. if ms.LoadMessageInfo() == nil {
  44. ms.StoreMessageInfo(mi)
  45. }
  46. return ms
  47. }
  48. return mi.MessageOf(x)
  49. }
  50. // Deprecated: Use CommandReq.ProtoReflect.Descriptor instead.
  51. func (*CommandReq) Descriptor() ([]byte, []int) {
  52. return file_pb_flowsrv_proto_rawDescGZIP(), []int{0}
  53. }
  54. func (x *CommandReq) GetType() int64 {
  55. if x != nil {
  56. return x.Type
  57. }
  58. return 0
  59. }
  60. func (x *CommandReq) GetAccessToken() string {
  61. if x != nil {
  62. return x.AccessToken
  63. }
  64. return ""
  65. }
  66. type CommandResp struct {
  67. state protoimpl.MessageState
  68. sizeCache protoimpl.SizeCache
  69. unknownFields protoimpl.UnknownFields
  70. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
  71. Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
  72. Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
  73. }
  74. func (x *CommandResp) Reset() {
  75. *x = CommandResp{}
  76. if protoimpl.UnsafeEnabled {
  77. mi := &file_pb_flowsrv_proto_msgTypes[1]
  78. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  79. ms.StoreMessageInfo(mi)
  80. }
  81. }
  82. func (x *CommandResp) String() string {
  83. return protoimpl.X.MessageStringOf(x)
  84. }
  85. func (*CommandResp) ProtoMessage() {}
  86. func (x *CommandResp) ProtoReflect() protoreflect.Message {
  87. mi := &file_pb_flowsrv_proto_msgTypes[1]
  88. if protoimpl.UnsafeEnabled && x != nil {
  89. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  90. if ms.LoadMessageInfo() == nil {
  91. ms.StoreMessageInfo(mi)
  92. }
  93. return ms
  94. }
  95. return mi.MessageOf(x)
  96. }
  97. // Deprecated: Use CommandResp.ProtoReflect.Descriptor instead.
  98. func (*CommandResp) Descriptor() ([]byte, []int) {
  99. return file_pb_flowsrv_proto_rawDescGZIP(), []int{1}
  100. }
  101. func (x *CommandResp) GetCode() int64 {
  102. if x != nil {
  103. return x.Code
  104. }
  105. return 0
  106. }
  107. func (x *CommandResp) GetMsg() string {
  108. if x != nil {
  109. return x.Msg
  110. }
  111. return ""
  112. }
  113. func (x *CommandResp) GetData() []byte {
  114. if x != nil {
  115. return x.Data
  116. }
  117. return nil
  118. }
  119. var File_pb_flowsrv_proto protoreflect.FileDescriptor
  120. var file_pb_flowsrv_proto_rawDesc = []byte{
  121. 0x0a, 0x10, 0x70, 0x62, 0x2f, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x72, 0x76, 0x2e, 0x70, 0x72, 0x6f,
  122. 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70,
  123. 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70,
  124. 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x43, 0x0a, 0x0a, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52,
  125. 0x65, 0x71, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
  126. 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73,
  127. 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63,
  128. 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x47, 0x0a, 0x0b, 0x43, 0x6f, 0x6d,
  129. 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65,
  130. 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03,
  131. 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x12, 0x12,
  132. 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61,
  133. 0x74, 0x61, 0x32, 0x66, 0x0a, 0x07, 0x46, 0x6c, 0x6f, 0x77, 0x73, 0x72, 0x76, 0x12, 0x2c, 0x0a,
  134. 0x07, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x12, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f,
  135. 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x1a, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f,
  136. 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x30, 0x01, 0x12, 0x2d, 0x0a, 0x0a, 0x64,
  137. 0x69, 0x73, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x12, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x43,
  138. 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x1a, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x43,
  139. 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f,
  140. 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  141. }
  142. var (
  143. file_pb_flowsrv_proto_rawDescOnce sync.Once
  144. file_pb_flowsrv_proto_rawDescData = file_pb_flowsrv_proto_rawDesc
  145. )
  146. func file_pb_flowsrv_proto_rawDescGZIP() []byte {
  147. file_pb_flowsrv_proto_rawDescOnce.Do(func() {
  148. file_pb_flowsrv_proto_rawDescData = protoimpl.X.CompressGZIP(file_pb_flowsrv_proto_rawDescData)
  149. })
  150. return file_pb_flowsrv_proto_rawDescData
  151. }
  152. var file_pb_flowsrv_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  153. var file_pb_flowsrv_proto_goTypes = []interface{}{
  154. (*CommandReq)(nil), // 0: pb.CommandReq
  155. (*CommandResp)(nil), // 1: pb.CommandResp
  156. }
  157. var file_pb_flowsrv_proto_depIdxs = []int32{
  158. 0, // 0: pb.Flowsrv.connect:input_type -> pb.CommandReq
  159. 0, // 1: pb.Flowsrv.disconnect:input_type -> pb.CommandReq
  160. 1, // 2: pb.Flowsrv.connect:output_type -> pb.CommandResp
  161. 1, // 3: pb.Flowsrv.disconnect:output_type -> pb.CommandResp
  162. 2, // [2:4] is the sub-list for method output_type
  163. 0, // [0:2] is the sub-list for method input_type
  164. 0, // [0:0] is the sub-list for extension type_name
  165. 0, // [0:0] is the sub-list for extension extendee
  166. 0, // [0:0] is the sub-list for field type_name
  167. }
  168. func init() { file_pb_flowsrv_proto_init() }
  169. func file_pb_flowsrv_proto_init() {
  170. if File_pb_flowsrv_proto != nil {
  171. return
  172. }
  173. if !protoimpl.UnsafeEnabled {
  174. file_pb_flowsrv_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  175. switch v := v.(*CommandReq); i {
  176. case 0:
  177. return &v.state
  178. case 1:
  179. return &v.sizeCache
  180. case 2:
  181. return &v.unknownFields
  182. default:
  183. return nil
  184. }
  185. }
  186. file_pb_flowsrv_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  187. switch v := v.(*CommandResp); i {
  188. case 0:
  189. return &v.state
  190. case 1:
  191. return &v.sizeCache
  192. case 2:
  193. return &v.unknownFields
  194. default:
  195. return nil
  196. }
  197. }
  198. }
  199. type x struct{}
  200. out := protoimpl.TypeBuilder{
  201. File: protoimpl.DescBuilder{
  202. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  203. RawDescriptor: file_pb_flowsrv_proto_rawDesc,
  204. NumEnums: 0,
  205. NumMessages: 2,
  206. NumExtensions: 0,
  207. NumServices: 1,
  208. },
  209. GoTypes: file_pb_flowsrv_proto_goTypes,
  210. DependencyIndexes: file_pb_flowsrv_proto_depIdxs,
  211. MessageInfos: file_pb_flowsrv_proto_msgTypes,
  212. }.Build()
  213. File_pb_flowsrv_proto = out.File
  214. file_pb_flowsrv_proto_rawDesc = nil
  215. file_pb_flowsrv_proto_goTypes = nil
  216. file_pb_flowsrv_proto_depIdxs = nil
  217. }