gitee.com/liuxuezhan/go-micro-v1.18.0@v1.0.0/codec/protorpc/envelope.pb.go (about)

     1  // Code generated by protoc-gen-go.
     2  // source: envelope.proto
     3  // DO NOT EDIT!
     4  
     5  /*
     6  Package proto is a generated protocol buffer package.
     7  
     8  It is generated from these files:
     9  	envelope.proto
    10  
    11  It has these top-level messages:
    12  	Request
    13  	Response
    14  */
    15  package protorpc
    16  
    17  import proto "github.com/golang/protobuf/proto"
    18  import json "encoding/json"
    19  import math "math"
    20  
    21  // Reference proto, json, and math imports to suppress error if they are not otherwise used.
    22  var _ = proto.Marshal
    23  var _ = &json.SyntaxError{}
    24  var _ = math.Inf
    25  
    26  type Request struct {
    27  	ServiceMethod    *string `protobuf:"bytes,1,opt,name=service_method" json:"service_method,omitempty"`
    28  	Seq              *uint64 `protobuf:"fixed64,2,opt,name=seq" json:"seq,omitempty"`
    29  	XXX_unrecognized []byte  `json:"-"`
    30  }
    31  
    32  func (m *Request) Reset()         { *m = Request{} }
    33  func (m *Request) String() string { return proto.CompactTextString(m) }
    34  func (*Request) ProtoMessage()    {}
    35  
    36  func (m *Request) GetServiceMethod() string {
    37  	if m != nil && m.ServiceMethod != nil {
    38  		return *m.ServiceMethod
    39  	}
    40  	return ""
    41  }
    42  
    43  func (m *Request) GetSeq() uint64 {
    44  	if m != nil && m.Seq != nil {
    45  		return *m.Seq
    46  	}
    47  	return 0
    48  }
    49  
    50  type Response struct {
    51  	ServiceMethod    *string `protobuf:"bytes,1,opt,name=service_method" json:"service_method,omitempty"`
    52  	Seq              *uint64 `protobuf:"fixed64,2,opt,name=seq" json:"seq,omitempty"`
    53  	Error            *string `protobuf:"bytes,3,opt,name=error" json:"error,omitempty"`
    54  	XXX_unrecognized []byte  `json:"-"`
    55  }
    56  
    57  func (m *Response) Reset()         { *m = Response{} }
    58  func (m *Response) String() string { return proto.CompactTextString(m) }
    59  func (*Response) ProtoMessage()    {}
    60  
    61  func (m *Response) GetServiceMethod() string {
    62  	if m != nil && m.ServiceMethod != nil {
    63  		return *m.ServiceMethod
    64  	}
    65  	return ""
    66  }
    67  
    68  func (m *Response) GetSeq() uint64 {
    69  	if m != nil && m.Seq != nil {
    70  		return *m.Seq
    71  	}
    72  	return 0
    73  }
    74  
    75  func (m *Response) GetError() string {
    76  	if m != nil && m.Error != nil {
    77  		return *m.Error
    78  	}
    79  	return ""
    80  }
    81  
    82  func init() {
    83  }