flowsrv.pb.go 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  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, 0x37, 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, 0x42, 0x06, 0x5a, 0x04, 0x2e,
  137. 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  138. }
  139. var (
  140. file_pb_flowsrv_proto_rawDescOnce sync.Once
  141. file_pb_flowsrv_proto_rawDescData = file_pb_flowsrv_proto_rawDesc
  142. )
  143. func file_pb_flowsrv_proto_rawDescGZIP() []byte {
  144. file_pb_flowsrv_proto_rawDescOnce.Do(func() {
  145. file_pb_flowsrv_proto_rawDescData = protoimpl.X.CompressGZIP(file_pb_flowsrv_proto_rawDescData)
  146. })
  147. return file_pb_flowsrv_proto_rawDescData
  148. }
  149. var file_pb_flowsrv_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  150. var file_pb_flowsrv_proto_goTypes = []interface{}{
  151. (*CommandReq)(nil), // 0: pb.CommandReq
  152. (*CommandResp)(nil), // 1: pb.CommandResp
  153. }
  154. var file_pb_flowsrv_proto_depIdxs = []int32{
  155. 0, // 0: pb.Flowsrv.connect:input_type -> pb.CommandReq
  156. 1, // 1: pb.Flowsrv.connect:output_type -> pb.CommandResp
  157. 1, // [1:2] is the sub-list for method output_type
  158. 0, // [0:1] is the sub-list for method input_type
  159. 0, // [0:0] is the sub-list for extension type_name
  160. 0, // [0:0] is the sub-list for extension extendee
  161. 0, // [0:0] is the sub-list for field type_name
  162. }
  163. func init() { file_pb_flowsrv_proto_init() }
  164. func file_pb_flowsrv_proto_init() {
  165. if File_pb_flowsrv_proto != nil {
  166. return
  167. }
  168. if !protoimpl.UnsafeEnabled {
  169. file_pb_flowsrv_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  170. switch v := v.(*CommandReq); i {
  171. case 0:
  172. return &v.state
  173. case 1:
  174. return &v.sizeCache
  175. case 2:
  176. return &v.unknownFields
  177. default:
  178. return nil
  179. }
  180. }
  181. file_pb_flowsrv_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  182. switch v := v.(*CommandResp); i {
  183. case 0:
  184. return &v.state
  185. case 1:
  186. return &v.sizeCache
  187. case 2:
  188. return &v.unknownFields
  189. default:
  190. return nil
  191. }
  192. }
  193. }
  194. type x struct{}
  195. out := protoimpl.TypeBuilder{
  196. File: protoimpl.DescBuilder{
  197. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  198. RawDescriptor: file_pb_flowsrv_proto_rawDesc,
  199. NumEnums: 0,
  200. NumMessages: 2,
  201. NumExtensions: 0,
  202. NumServices: 1,
  203. },
  204. GoTypes: file_pb_flowsrv_proto_goTypes,
  205. DependencyIndexes: file_pb_flowsrv_proto_depIdxs,
  206. MessageInfos: file_pb_flowsrv_proto_msgTypes,
  207. }.Build()
  208. File_pb_flowsrv_proto = out.File
  209. file_pb_flowsrv_proto_rawDesc = nil
  210. file_pb_flowsrv_proto_goTypes = nil
  211. file_pb_flowsrv_proto_depIdxs = nil
  212. }