github.com/micro/go-micro/examples@v0.0.0-20210105173217-bf4ab679e18b/template/srv/proto/example/example.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // source: proto/example/example.proto 3 4 /* 5 Package go_micro_srv_template is a generated protocol buffer package. 6 7 It is generated from these files: 8 proto/example/example.proto 9 10 It has these top-level messages: 11 Message 12 Request 13 Response 14 StreamingRequest 15 StreamingResponse 16 Ping 17 Pong 18 */ 19 package go_micro_srv_template 20 21 import proto "github.com/golang/protobuf/proto" 22 import fmt "fmt" 23 import math "math" 24 25 // Reference imports to suppress errors if they are not otherwise used. 26 var _ = proto.Marshal 27 var _ = fmt.Errorf 28 var _ = math.Inf 29 30 // This is a compile-time assertion to ensure that this generated file 31 // is compatible with the proto package it is being compiled against. 32 // A compilation error at this line likely means your copy of the 33 // proto package needs to be updated. 34 const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package 35 36 type Message struct { 37 Say string `protobuf:"bytes,1,opt,name=say" json:"say,omitempty"` 38 } 39 40 func (m *Message) Reset() { *m = Message{} } 41 func (m *Message) String() string { return proto.CompactTextString(m) } 42 func (*Message) ProtoMessage() {} 43 func (*Message) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } 44 45 func (m *Message) GetSay() string { 46 if m != nil { 47 return m.Say 48 } 49 return "" 50 } 51 52 type Request struct { 53 Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` 54 } 55 56 func (m *Request) Reset() { *m = Request{} } 57 func (m *Request) String() string { return proto.CompactTextString(m) } 58 func (*Request) ProtoMessage() {} 59 func (*Request) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } 60 61 func (m *Request) GetName() string { 62 if m != nil { 63 return m.Name 64 } 65 return "" 66 } 67 68 type Response struct { 69 Msg string `protobuf:"bytes,1,opt,name=msg" json:"msg,omitempty"` 70 } 71 72 func (m *Response) Reset() { *m = Response{} } 73 func (m *Response) String() string { return proto.CompactTextString(m) } 74 func (*Response) ProtoMessage() {} 75 func (*Response) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } 76 77 func (m *Response) GetMsg() string { 78 if m != nil { 79 return m.Msg 80 } 81 return "" 82 } 83 84 type StreamingRequest struct { 85 Count int64 `protobuf:"varint,1,opt,name=count" json:"count,omitempty"` 86 } 87 88 func (m *StreamingRequest) Reset() { *m = StreamingRequest{} } 89 func (m *StreamingRequest) String() string { return proto.CompactTextString(m) } 90 func (*StreamingRequest) ProtoMessage() {} 91 func (*StreamingRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } 92 93 func (m *StreamingRequest) GetCount() int64 { 94 if m != nil { 95 return m.Count 96 } 97 return 0 98 } 99 100 type StreamingResponse struct { 101 Count int64 `protobuf:"varint,1,opt,name=count" json:"count,omitempty"` 102 } 103 104 func (m *StreamingResponse) Reset() { *m = StreamingResponse{} } 105 func (m *StreamingResponse) String() string { return proto.CompactTextString(m) } 106 func (*StreamingResponse) ProtoMessage() {} 107 func (*StreamingResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } 108 109 func (m *StreamingResponse) GetCount() int64 { 110 if m != nil { 111 return m.Count 112 } 113 return 0 114 } 115 116 type Ping struct { 117 Stroke int64 `protobuf:"varint,1,opt,name=stroke" json:"stroke,omitempty"` 118 } 119 120 func (m *Ping) Reset() { *m = Ping{} } 121 func (m *Ping) String() string { return proto.CompactTextString(m) } 122 func (*Ping) ProtoMessage() {} 123 func (*Ping) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } 124 125 func (m *Ping) GetStroke() int64 { 126 if m != nil { 127 return m.Stroke 128 } 129 return 0 130 } 131 132 type Pong struct { 133 Stroke int64 `protobuf:"varint,1,opt,name=stroke" json:"stroke,omitempty"` 134 } 135 136 func (m *Pong) Reset() { *m = Pong{} } 137 func (m *Pong) String() string { return proto.CompactTextString(m) } 138 func (*Pong) ProtoMessage() {} 139 func (*Pong) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} } 140 141 func (m *Pong) GetStroke() int64 { 142 if m != nil { 143 return m.Stroke 144 } 145 return 0 146 } 147 148 func init() { 149 proto.RegisterType((*Message)(nil), "go.micro.srv.template.Message") 150 proto.RegisterType((*Request)(nil), "go.micro.srv.template.Request") 151 proto.RegisterType((*Response)(nil), "go.micro.srv.template.Response") 152 proto.RegisterType((*StreamingRequest)(nil), "go.micro.srv.template.StreamingRequest") 153 proto.RegisterType((*StreamingResponse)(nil), "go.micro.srv.template.StreamingResponse") 154 proto.RegisterType((*Ping)(nil), "go.micro.srv.template.Ping") 155 proto.RegisterType((*Pong)(nil), "go.micro.srv.template.Pong") 156 } 157 158 func init() { proto.RegisterFile("proto/example/example.proto", fileDescriptor0) } 159 160 var fileDescriptor0 = []byte{ 161 // 276 bytes of a gzipped FileDescriptorProto 162 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0xc1, 0x4a, 0xc4, 0x40, 163 0x0c, 0x40, 0xb7, 0xee, 0xda, 0xae, 0x39, 0xad, 0x41, 0x45, 0x5a, 0x5d, 0x65, 0x2e, 0xd6, 0xcb, 164 0xb8, 0xe8, 0x27, 0x88, 0x07, 0x05, 0x41, 0xea, 0x07, 0xc8, 0xb8, 0x84, 0xa1, 0xd8, 0x99, 0xa9, 165 0xcd, 0xac, 0xe8, 0xd1, 0x3f, 0x97, 0x4e, 0x5b, 0x10, 0xd9, 0xe2, 0xa9, 0x49, 0xdf, 0x4b, 0x48, 166 0xc2, 0x40, 0x56, 0x37, 0xce, 0xbb, 0x2b, 0xfa, 0x54, 0xa6, 0xae, 0x68, 0xf8, 0xca, 0xf0, 0x17, 167 0x0f, 0xb5, 0x93, 0xa6, 0x5c, 0x37, 0x4e, 0x72, 0xf3, 0x21, 0x3d, 0x99, 0xba, 0x52, 0x9e, 0x44, 168 0x06, 0xc9, 0x23, 0x31, 0x2b, 0x4d, 0xb8, 0x80, 0x29, 0xab, 0xaf, 0xe3, 0xe8, 0x3c, 0xca, 0xf7, 169 0x8a, 0x36, 0x14, 0xa7, 0x90, 0x14, 0xf4, 0xbe, 0x21, 0xf6, 0x88, 0x30, 0xb3, 0xca, 0x50, 0x4f, 170 0x43, 0x2c, 0x4e, 0x60, 0x5e, 0x10, 0xd7, 0xce, 0x72, 0x28, 0x36, 0xac, 0x87, 0x62, 0xc3, 0x5a, 171 0xe4, 0xb0, 0x78, 0xf6, 0x0d, 0x29, 0x53, 0x5a, 0x3d, 0x74, 0x39, 0x80, 0xdd, 0xb5, 0xdb, 0x58, 172 0x1f, 0xbc, 0x69, 0xd1, 0x25, 0xe2, 0x12, 0xf6, 0x7f, 0x99, 0x7d, 0xc3, 0xed, 0xea, 0x12, 0x66, 173 0x4f, 0xa5, 0xd5, 0x78, 0x04, 0x31, 0xfb, 0xc6, 0xbd, 0x51, 0x8f, 0xfb, 0x2c, 0x70, 0x37, 0xce, 174 0xaf, 0xbf, 0x77, 0x20, 0xb9, 0xeb, 0xee, 0x82, 0xf7, 0x30, 0xbb, 0x55, 0x55, 0x85, 0x4b, 0xb9, 175 0xf5, 0x34, 0xb2, 0x1f, 0x3a, 0x3d, 0x1b, 0xe5, 0xdd, 0xa8, 0x62, 0x82, 0x2f, 0x10, 0x77, 0x1b, 176 0xe0, 0xc5, 0x88, 0xfc, 0xf7, 0x14, 0x69, 0xfe, 0xbf, 0x38, 0xb4, 0x5f, 0x45, 0xf8, 0x00, 0xf3, 177 0x76, 0xef, 0xb0, 0x5b, 0x36, 0x52, 0xd9, 0x0a, 0xe9, 0x28, 0x74, 0x56, 0x8b, 0x49, 0x1e, 0xad, 178 0xa2, 0xd7, 0x38, 0x3c, 0x88, 0x9b, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xd7, 0xfb, 0x1a, 0x00, 179 0x2f, 0x02, 0x00, 0x00, 180 }