github.com/annwntech/go-micro/v2@v2.9.5/codec/protorpc/envelope.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.25.0
     4  // 	protoc        v3.13.0
     5  // source: codec/protorpc/envelope.proto
     6  
     7  package protorpc
     8  
     9  import (
    10  	proto "github.com/golang/protobuf/proto"
    11  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    12  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    13  	reflect "reflect"
    14  	sync "sync"
    15  )
    16  
    17  const (
    18  	// Verify that this generated code is sufficiently up-to-date.
    19  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    20  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    21  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    22  )
    23  
    24  // This is a compile-time assertion that a sufficiently up-to-date version
    25  // of the legacy proto package is being used.
    26  const _ = proto.ProtoPackageIsVersion4
    27  
    28  type Request struct {
    29  	state         protoimpl.MessageState
    30  	sizeCache     protoimpl.SizeCache
    31  	unknownFields protoimpl.UnknownFields
    32  
    33  	ServiceMethod string `protobuf:"bytes,1,opt,name=service_method,json=serviceMethod,proto3" json:"service_method,omitempty"`
    34  	Seq           uint64 `protobuf:"fixed64,2,opt,name=seq,proto3" json:"seq,omitempty"`
    35  }
    36  
    37  func (x *Request) Reset() {
    38  	*x = Request{}
    39  	if protoimpl.UnsafeEnabled {
    40  		mi := &file_codec_protorpc_envelope_proto_msgTypes[0]
    41  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    42  		ms.StoreMessageInfo(mi)
    43  	}
    44  }
    45  
    46  func (x *Request) String() string {
    47  	return protoimpl.X.MessageStringOf(x)
    48  }
    49  
    50  func (*Request) ProtoMessage() {}
    51  
    52  func (x *Request) ProtoReflect() protoreflect.Message {
    53  	mi := &file_codec_protorpc_envelope_proto_msgTypes[0]
    54  	if protoimpl.UnsafeEnabled && x != nil {
    55  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    56  		if ms.LoadMessageInfo() == nil {
    57  			ms.StoreMessageInfo(mi)
    58  		}
    59  		return ms
    60  	}
    61  	return mi.MessageOf(x)
    62  }
    63  
    64  // Deprecated: Use Request.ProtoReflect.Descriptor instead.
    65  func (*Request) Descriptor() ([]byte, []int) {
    66  	return file_codec_protorpc_envelope_proto_rawDescGZIP(), []int{0}
    67  }
    68  
    69  func (x *Request) GetServiceMethod() string {
    70  	if x != nil {
    71  		return x.ServiceMethod
    72  	}
    73  	return ""
    74  }
    75  
    76  func (x *Request) GetSeq() uint64 {
    77  	if x != nil {
    78  		return x.Seq
    79  	}
    80  	return 0
    81  }
    82  
    83  type Response struct {
    84  	state         protoimpl.MessageState
    85  	sizeCache     protoimpl.SizeCache
    86  	unknownFields protoimpl.UnknownFields
    87  
    88  	ServiceMethod string `protobuf:"bytes,1,opt,name=service_method,json=serviceMethod,proto3" json:"service_method,omitempty"`
    89  	Seq           uint64 `protobuf:"fixed64,2,opt,name=seq,proto3" json:"seq,omitempty"`
    90  	Error         string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
    91  }
    92  
    93  func (x *Response) Reset() {
    94  	*x = Response{}
    95  	if protoimpl.UnsafeEnabled {
    96  		mi := &file_codec_protorpc_envelope_proto_msgTypes[1]
    97  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    98  		ms.StoreMessageInfo(mi)
    99  	}
   100  }
   101  
   102  func (x *Response) String() string {
   103  	return protoimpl.X.MessageStringOf(x)
   104  }
   105  
   106  func (*Response) ProtoMessage() {}
   107  
   108  func (x *Response) ProtoReflect() protoreflect.Message {
   109  	mi := &file_codec_protorpc_envelope_proto_msgTypes[1]
   110  	if protoimpl.UnsafeEnabled && x != nil {
   111  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   112  		if ms.LoadMessageInfo() == nil {
   113  			ms.StoreMessageInfo(mi)
   114  		}
   115  		return ms
   116  	}
   117  	return mi.MessageOf(x)
   118  }
   119  
   120  // Deprecated: Use Response.ProtoReflect.Descriptor instead.
   121  func (*Response) Descriptor() ([]byte, []int) {
   122  	return file_codec_protorpc_envelope_proto_rawDescGZIP(), []int{1}
   123  }
   124  
   125  func (x *Response) GetServiceMethod() string {
   126  	if x != nil {
   127  		return x.ServiceMethod
   128  	}
   129  	return ""
   130  }
   131  
   132  func (x *Response) GetSeq() uint64 {
   133  	if x != nil {
   134  		return x.Seq
   135  	}
   136  	return 0
   137  }
   138  
   139  func (x *Response) GetError() string {
   140  	if x != nil {
   141  		return x.Error
   142  	}
   143  	return ""
   144  }
   145  
   146  var File_codec_protorpc_envelope_proto protoreflect.FileDescriptor
   147  
   148  var file_codec_protorpc_envelope_proto_rawDesc = []byte{
   149  	0x0a, 0x1d, 0x63, 0x6f, 0x64, 0x65, 0x63, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x72, 0x70, 0x63,
   150  	0x2f, 0x65, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
   151  	0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x72, 0x70, 0x63, 0x22, 0x42, 0x0a, 0x07, 0x52, 0x65, 0x71,
   152  	0x75, 0x65, 0x73, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f,
   153  	0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x65,
   154  	0x72, 0x76, 0x69, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x73,
   155  	0x65, 0x71, 0x18, 0x02, 0x20, 0x01, 0x28, 0x06, 0x52, 0x03, 0x73, 0x65, 0x71, 0x22, 0x59, 0x0a,
   156  	0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x65, 0x72,
   157  	0x76, 0x69, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
   158  	0x09, 0x52, 0x0d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64,
   159  	0x12, 0x10, 0x0a, 0x03, 0x73, 0x65, 0x71, 0x18, 0x02, 0x20, 0x01, 0x28, 0x06, 0x52, 0x03, 0x73,
   160  	0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28,
   161  	0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   162  }
   163  
   164  var (
   165  	file_codec_protorpc_envelope_proto_rawDescOnce sync.Once
   166  	file_codec_protorpc_envelope_proto_rawDescData = file_codec_protorpc_envelope_proto_rawDesc
   167  )
   168  
   169  func file_codec_protorpc_envelope_proto_rawDescGZIP() []byte {
   170  	file_codec_protorpc_envelope_proto_rawDescOnce.Do(func() {
   171  		file_codec_protorpc_envelope_proto_rawDescData = protoimpl.X.CompressGZIP(file_codec_protorpc_envelope_proto_rawDescData)
   172  	})
   173  	return file_codec_protorpc_envelope_proto_rawDescData
   174  }
   175  
   176  var file_codec_protorpc_envelope_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   177  var file_codec_protorpc_envelope_proto_goTypes = []interface{}{
   178  	(*Request)(nil),  // 0: protorpc.Request
   179  	(*Response)(nil), // 1: protorpc.Response
   180  }
   181  var file_codec_protorpc_envelope_proto_depIdxs = []int32{
   182  	0, // [0:0] is the sub-list for method output_type
   183  	0, // [0:0] is the sub-list for method input_type
   184  	0, // [0:0] is the sub-list for extension type_name
   185  	0, // [0:0] is the sub-list for extension extendee
   186  	0, // [0:0] is the sub-list for field type_name
   187  }
   188  
   189  func init() { file_codec_protorpc_envelope_proto_init() }
   190  func file_codec_protorpc_envelope_proto_init() {
   191  	if File_codec_protorpc_envelope_proto != nil {
   192  		return
   193  	}
   194  	if !protoimpl.UnsafeEnabled {
   195  		file_codec_protorpc_envelope_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   196  			switch v := v.(*Request); i {
   197  			case 0:
   198  				return &v.state
   199  			case 1:
   200  				return &v.sizeCache
   201  			case 2:
   202  				return &v.unknownFields
   203  			default:
   204  				return nil
   205  			}
   206  		}
   207  		file_codec_protorpc_envelope_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   208  			switch v := v.(*Response); i {
   209  			case 0:
   210  				return &v.state
   211  			case 1:
   212  				return &v.sizeCache
   213  			case 2:
   214  				return &v.unknownFields
   215  			default:
   216  				return nil
   217  			}
   218  		}
   219  	}
   220  	type x struct{}
   221  	out := protoimpl.TypeBuilder{
   222  		File: protoimpl.DescBuilder{
   223  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   224  			RawDescriptor: file_codec_protorpc_envelope_proto_rawDesc,
   225  			NumEnums:      0,
   226  			NumMessages:   2,
   227  			NumExtensions: 0,
   228  			NumServices:   0,
   229  		},
   230  		GoTypes:           file_codec_protorpc_envelope_proto_goTypes,
   231  		DependencyIndexes: file_codec_protorpc_envelope_proto_depIdxs,
   232  		MessageInfos:      file_codec_protorpc_envelope_proto_msgTypes,
   233  	}.Build()
   234  	File_codec_protorpc_envelope_proto = out.File
   235  	file_codec_protorpc_envelope_proto_rawDesc = nil
   236  	file_codec_protorpc_envelope_proto_goTypes = nil
   237  	file_codec_protorpc_envelope_proto_depIdxs = nil
   238  }