flowsrv.pb.go 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  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 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 *structpb.Struct `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() *structpb.Struct {
  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, 0x60, 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, 0x2b,
  132. 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67,
  133. 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53,
  134. 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x32, 0x66, 0x0a, 0x07, 0x46,
  135. 0x6c, 0x6f, 0x77, 0x73, 0x72, 0x76, 0x12, 0x2c, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63,
  136. 0x74, 0x12, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x65,
  137. 0x71, 0x1a, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x65,
  138. 0x73, 0x70, 0x30, 0x01, 0x12, 0x2d, 0x0a, 0x0a, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x6e, 0x6e, 0x65,
  139. 0x63, 0x74, 0x12, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52,
  140. 0x65, 0x71, 0x1a, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52,
  141. 0x65, 0x73, 0x70, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f,
  142. 0x74, 0x6f, 0x33,
  143. }
  144. var (
  145. file_pb_flowsrv_proto_rawDescOnce sync.Once
  146. file_pb_flowsrv_proto_rawDescData = file_pb_flowsrv_proto_rawDesc
  147. )
  148. func file_pb_flowsrv_proto_rawDescGZIP() []byte {
  149. file_pb_flowsrv_proto_rawDescOnce.Do(func() {
  150. file_pb_flowsrv_proto_rawDescData = protoimpl.X.CompressGZIP(file_pb_flowsrv_proto_rawDescData)
  151. })
  152. return file_pb_flowsrv_proto_rawDescData
  153. }
  154. var file_pb_flowsrv_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  155. var file_pb_flowsrv_proto_goTypes = []interface{}{
  156. (*CommandReq)(nil), // 0: pb.CommandReq
  157. (*CommandResp)(nil), // 1: pb.CommandResp
  158. (*structpb.Struct)(nil), // 2: google.protobuf.Struct
  159. }
  160. var file_pb_flowsrv_proto_depIdxs = []int32{
  161. 2, // 0: pb.CommandResp.data:type_name -> google.protobuf.Struct
  162. 0, // 1: pb.Flowsrv.connect:input_type -> pb.CommandReq
  163. 0, // 2: pb.Flowsrv.disconnect:input_type -> pb.CommandReq
  164. 1, // 3: pb.Flowsrv.connect:output_type -> pb.CommandResp
  165. 1, // 4: pb.Flowsrv.disconnect:output_type -> pb.CommandResp
  166. 3, // [3:5] is the sub-list for method output_type
  167. 1, // [1:3] is the sub-list for method input_type
  168. 1, // [1:1] is the sub-list for extension type_name
  169. 1, // [1:1] is the sub-list for extension extendee
  170. 0, // [0:1] is the sub-list for field type_name
  171. }
  172. func init() { file_pb_flowsrv_proto_init() }
  173. func file_pb_flowsrv_proto_init() {
  174. if File_pb_flowsrv_proto != nil {
  175. return
  176. }
  177. if !protoimpl.UnsafeEnabled {
  178. file_pb_flowsrv_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  179. switch v := v.(*CommandReq); i {
  180. case 0:
  181. return &v.state
  182. case 1:
  183. return &v.sizeCache
  184. case 2:
  185. return &v.unknownFields
  186. default:
  187. return nil
  188. }
  189. }
  190. file_pb_flowsrv_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  191. switch v := v.(*CommandResp); i {
  192. case 0:
  193. return &v.state
  194. case 1:
  195. return &v.sizeCache
  196. case 2:
  197. return &v.unknownFields
  198. default:
  199. return nil
  200. }
  201. }
  202. }
  203. type x struct{}
  204. out := protoimpl.TypeBuilder{
  205. File: protoimpl.DescBuilder{
  206. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  207. RawDescriptor: file_pb_flowsrv_proto_rawDesc,
  208. NumEnums: 0,
  209. NumMessages: 2,
  210. NumExtensions: 0,
  211. NumServices: 1,
  212. },
  213. GoTypes: file_pb_flowsrv_proto_goTypes,
  214. DependencyIndexes: file_pb_flowsrv_proto_depIdxs,
  215. MessageInfos: file_pb_flowsrv_proto_msgTypes,
  216. }.Build()
  217. File_pb_flowsrv_proto = out.File
  218. file_pb_flowsrv_proto_rawDesc = nil
  219. file_pb_flowsrv_proto_goTypes = nil
  220. file_pb_flowsrv_proto_depIdxs = nil
  221. }