github.com/jlmucb/cloudproxy@v0.0.0-20170830161738-b5aa0b619bc4/go/util/protorpc/protorpc.pb.go (about)

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