123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.28.0
- // protoc v3.19.4
- // source: pb/flowsrv.proto
- package pb
- import (
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- structpb "google.golang.org/protobuf/types/known/structpb"
- reflect "reflect"
- sync "sync"
- )
- const (
- // Verify that this generated code is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
- // Verify that runtime/protoimpl is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
- )
- type CommandReq struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Type int64 `protobuf:"varint,1,opt,name=type,proto3" json:"type,omitempty"`
- AccessToken string `protobuf:"bytes,2,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
- }
- func (x *CommandReq) Reset() {
- *x = CommandReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_pb_flowsrv_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *CommandReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*CommandReq) ProtoMessage() {}
- func (x *CommandReq) ProtoReflect() protoreflect.Message {
- mi := &file_pb_flowsrv_proto_msgTypes[0]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use CommandReq.ProtoReflect.Descriptor instead.
- func (*CommandReq) Descriptor() ([]byte, []int) {
- return file_pb_flowsrv_proto_rawDescGZIP(), []int{0}
- }
- func (x *CommandReq) GetType() int64 {
- if x != nil {
- return x.Type
- }
- return 0
- }
- func (x *CommandReq) GetAccessToken() string {
- if x != nil {
- return x.AccessToken
- }
- return ""
- }
- type CommandResp struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
- Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
- Data *structpb.Struct `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
- }
- func (x *CommandResp) Reset() {
- *x = CommandResp{}
- if protoimpl.UnsafeEnabled {
- mi := &file_pb_flowsrv_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *CommandResp) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*CommandResp) ProtoMessage() {}
- func (x *CommandResp) ProtoReflect() protoreflect.Message {
- mi := &file_pb_flowsrv_proto_msgTypes[1]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use CommandResp.ProtoReflect.Descriptor instead.
- func (*CommandResp) Descriptor() ([]byte, []int) {
- return file_pb_flowsrv_proto_rawDescGZIP(), []int{1}
- }
- func (x *CommandResp) GetCode() int64 {
- if x != nil {
- return x.Code
- }
- return 0
- }
- func (x *CommandResp) GetMsg() string {
- if x != nil {
- return x.Msg
- }
- return ""
- }
- func (x *CommandResp) GetData() *structpb.Struct {
- if x != nil {
- return x.Data
- }
- return nil
- }
- var File_pb_flowsrv_proto protoreflect.FileDescriptor
- var file_pb_flowsrv_proto_rawDesc = []byte{
- 0x0a, 0x10, 0x70, 0x62, 0x2f, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x72, 0x76, 0x2e, 0x70, 0x72, 0x6f,
- 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70,
- 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70,
- 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x43, 0x0a, 0x0a, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52,
- 0x65, 0x71, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
- 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73,
- 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63,
- 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x60, 0x0a, 0x0b, 0x43, 0x6f, 0x6d,
- 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65,
- 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03,
- 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x12, 0x2b,
- 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67,
- 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53,
- 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x32, 0x66, 0x0a, 0x07, 0x46,
- 0x6c, 0x6f, 0x77, 0x73, 0x72, 0x76, 0x12, 0x2c, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63,
- 0x74, 0x12, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x65,
- 0x71, 0x1a, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x65,
- 0x73, 0x70, 0x30, 0x01, 0x12, 0x2d, 0x0a, 0x0a, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x6e, 0x6e, 0x65,
- 0x63, 0x74, 0x12, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52,
- 0x65, 0x71, 0x1a, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52,
- 0x65, 0x73, 0x70, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f,
- 0x74, 0x6f, 0x33,
- }
- var (
- file_pb_flowsrv_proto_rawDescOnce sync.Once
- file_pb_flowsrv_proto_rawDescData = file_pb_flowsrv_proto_rawDesc
- )
- func file_pb_flowsrv_proto_rawDescGZIP() []byte {
- file_pb_flowsrv_proto_rawDescOnce.Do(func() {
- file_pb_flowsrv_proto_rawDescData = protoimpl.X.CompressGZIP(file_pb_flowsrv_proto_rawDescData)
- })
- return file_pb_flowsrv_proto_rawDescData
- }
- var file_pb_flowsrv_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
- var file_pb_flowsrv_proto_goTypes = []interface{}{
- (*CommandReq)(nil), // 0: pb.CommandReq
- (*CommandResp)(nil), // 1: pb.CommandResp
- (*structpb.Struct)(nil), // 2: google.protobuf.Struct
- }
- var file_pb_flowsrv_proto_depIdxs = []int32{
- 2, // 0: pb.CommandResp.data:type_name -> google.protobuf.Struct
- 0, // 1: pb.Flowsrv.connect:input_type -> pb.CommandReq
- 0, // 2: pb.Flowsrv.disconnect:input_type -> pb.CommandReq
- 1, // 3: pb.Flowsrv.connect:output_type -> pb.CommandResp
- 1, // 4: pb.Flowsrv.disconnect:output_type -> pb.CommandResp
- 3, // [3:5] is the sub-list for method output_type
- 1, // [1:3] is the sub-list for method input_type
- 1, // [1:1] is the sub-list for extension type_name
- 1, // [1:1] is the sub-list for extension extendee
- 0, // [0:1] is the sub-list for field type_name
- }
- func init() { file_pb_flowsrv_proto_init() }
- func file_pb_flowsrv_proto_init() {
- if File_pb_flowsrv_proto != nil {
- return
- }
- if !protoimpl.UnsafeEnabled {
- file_pb_flowsrv_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*CommandReq); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_pb_flowsrv_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*CommandResp); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- }
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: file_pb_flowsrv_proto_rawDesc,
- NumEnums: 0,
- NumMessages: 2,
- NumExtensions: 0,
- NumServices: 1,
- },
- GoTypes: file_pb_flowsrv_proto_goTypes,
- DependencyIndexes: file_pb_flowsrv_proto_depIdxs,
- MessageInfos: file_pb_flowsrv_proto_msgTypes,
- }.Build()
- File_pb_flowsrv_proto = out.File
- file_pb_flowsrv_proto_rawDesc = nil
- file_pb_flowsrv_proto_goTypes = nil
- file_pb_flowsrv_proto_depIdxs = nil
- }
|