flowsrv.pb.go 6.9 KB

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