1
2
3
4 package examplepb
5
6 import (
7 context "context"
8 fmt "fmt"
9 proto "github.com/golang/protobuf/proto"
10 empty "github.com/golang/protobuf/ptypes/empty"
11 wrappers "github.com/golang/protobuf/ptypes/wrappers"
12 _ "google.golang.org/genproto/googleapis/api/annotations"
13 grpc "google.golang.org/grpc"
14 codes "google.golang.org/grpc/codes"
15 status "google.golang.org/grpc/status"
16 math "math"
17 )
18
19
20 var _ = proto.Marshal
21 var _ = fmt.Errorf
22 var _ = math.Inf
23
24
25
26
27
28 const _ = proto.ProtoPackageIsVersion3
29
30 type Wrappers struct {
31 StringValue *wrappers.StringValue `protobuf:"bytes,1,opt,name=string_value,json=stringValue,proto3" json:"string_value,omitempty"`
32 Int32Value *wrappers.Int32Value `protobuf:"bytes,2,opt,name=int32_value,json=int32Value,proto3" json:"int32_value,omitempty"`
33 Int64Value *wrappers.Int64Value `protobuf:"bytes,3,opt,name=int64_value,json=int64Value,proto3" json:"int64_value,omitempty"`
34 FloatValue *wrappers.FloatValue `protobuf:"bytes,4,opt,name=float_value,json=floatValue,proto3" json:"float_value,omitempty"`
35 DoubleValue *wrappers.DoubleValue `protobuf:"bytes,5,opt,name=double_value,json=doubleValue,proto3" json:"double_value,omitempty"`
36 BoolValue *wrappers.BoolValue `protobuf:"bytes,6,opt,name=bool_value,json=boolValue,proto3" json:"bool_value,omitempty"`
37 Uint32Value *wrappers.UInt32Value `protobuf:"bytes,7,opt,name=uint32_value,json=uint32Value,proto3" json:"uint32_value,omitempty"`
38 Uint64Value *wrappers.UInt64Value `protobuf:"bytes,8,opt,name=uint64_value,json=uint64Value,proto3" json:"uint64_value,omitempty"`
39 BytesValue *wrappers.BytesValue `protobuf:"bytes,9,opt,name=bytes_value,json=bytesValue,proto3" json:"bytes_value,omitempty"`
40 XXX_NoUnkeyedLiteral struct{} `json:"-"`
41 XXX_unrecognized []byte `json:"-"`
42 XXX_sizecache int32 `json:"-"`
43 }
44
45 func (m *Wrappers) Reset() { *m = Wrappers{} }
46 func (m *Wrappers) String() string { return proto.CompactTextString(m) }
47 func (*Wrappers) ProtoMessage() {}
48 func (*Wrappers) Descriptor() ([]byte, []int) {
49 return fileDescriptor_70304970d74748a4, []int{0}
50 }
51
52 func (m *Wrappers) XXX_Unmarshal(b []byte) error {
53 return xxx_messageInfo_Wrappers.Unmarshal(m, b)
54 }
55 func (m *Wrappers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
56 return xxx_messageInfo_Wrappers.Marshal(b, m, deterministic)
57 }
58 func (m *Wrappers) XXX_Merge(src proto.Message) {
59 xxx_messageInfo_Wrappers.Merge(m, src)
60 }
61 func (m *Wrappers) XXX_Size() int {
62 return xxx_messageInfo_Wrappers.Size(m)
63 }
64 func (m *Wrappers) XXX_DiscardUnknown() {
65 xxx_messageInfo_Wrappers.DiscardUnknown(m)
66 }
67
68 var xxx_messageInfo_Wrappers proto.InternalMessageInfo
69
70 func (m *Wrappers) GetStringValue() *wrappers.StringValue {
71 if m != nil {
72 return m.StringValue
73 }
74 return nil
75 }
76
77 func (m *Wrappers) GetInt32Value() *wrappers.Int32Value {
78 if m != nil {
79 return m.Int32Value
80 }
81 return nil
82 }
83
84 func (m *Wrappers) GetInt64Value() *wrappers.Int64Value {
85 if m != nil {
86 return m.Int64Value
87 }
88 return nil
89 }
90
91 func (m *Wrappers) GetFloatValue() *wrappers.FloatValue {
92 if m != nil {
93 return m.FloatValue
94 }
95 return nil
96 }
97
98 func (m *Wrappers) GetDoubleValue() *wrappers.DoubleValue {
99 if m != nil {
100 return m.DoubleValue
101 }
102 return nil
103 }
104
105 func (m *Wrappers) GetBoolValue() *wrappers.BoolValue {
106 if m != nil {
107 return m.BoolValue
108 }
109 return nil
110 }
111
112 func (m *Wrappers) GetUint32Value() *wrappers.UInt32Value {
113 if m != nil {
114 return m.Uint32Value
115 }
116 return nil
117 }
118
119 func (m *Wrappers) GetUint64Value() *wrappers.UInt64Value {
120 if m != nil {
121 return m.Uint64Value
122 }
123 return nil
124 }
125
126 func (m *Wrappers) GetBytesValue() *wrappers.BytesValue {
127 if m != nil {
128 return m.BytesValue
129 }
130 return nil
131 }
132
133 func init() {
134 proto.RegisterType((*Wrappers)(nil), "grpc.gateway.examples.internal.examplepb.Wrappers")
135 }
136
137 func init() {
138 proto.RegisterFile("examples/internal/proto/examplepb/wrappers.proto", fileDescriptor_70304970d74748a4)
139 }
140
141 var fileDescriptor_70304970d74748a4 = []byte{
142
143 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x95, 0xdd, 0x6e, 0xd3, 0x30,
144 0x14, 0xc7, 0xd5, 0x31, 0xca, 0xea, 0x0c, 0xc6, 0x0c, 0x82, 0xcd, 0x9b, 0x00, 0xe5, 0x6a, 0xda,
145 0x85, 0x03, 0x5d, 0x55, 0x89, 0x09, 0x09, 0xa9, 0x7c, 0x48, 0xdc, 0x32, 0x8d, 0x49, 0xdc, 0x20,
146 0x67, 0x73, 0xa3, 0xa0, 0x2c, 0x8e, 0x12, 0xa7, 0xa3, 0xb7, 0xbc, 0x01, 0xe2, 0x4d, 0x78, 0x03,
147 0x9e, 0x81, 0x57, 0xe0, 0x41, 0x90, 0xbf, 0xf2, 0xd1, 0x2c, 0x47, 0x68, 0x77, 0x8e, 0xff, 0xe7,
148 0x77, 0xfe, 0xf5, 0xf1, 0x39, 0x2e, 0x7a, 0xce, 0xbf, 0xb1, 0xcb, 0x2c, 0xe1, 0x45, 0x10, 0xa7,
149 0x92, 0xe7, 0x29, 0x4b, 0x82, 0x2c, 0x17, 0x52, 0x04, 0x76, 0x3f, 0x0b, 0x83, 0xab, 0x9c, 0x65,
150 0x19, 0xcf, 0x0b, 0xaa, 0x05, 0x7c, 0x10, 0xe5, 0xd9, 0x39, 0x8d, 0x98, 0xe4, 0x57, 0x6c, 0x49,
151 0x1d, 0x4e, 0x1d, 0x4e, 0x2b, 0x90, 0xec, 0x47, 0x42, 0x44, 0x09, 0x0f, 0x58, 0x16, 0x07, 0x2c,
152 0x4d, 0x85, 0x64, 0x32, 0x16, 0xa9, 0xcd, 0x43, 0x9e, 0x58, 0x55, 0x7f, 0x85, 0xe5, 0x7c, 0xc5,
153 0x87, 0xec, 0xad, 0xea, 0xfc, 0x32, 0x93, 0x4b, 0x23, 0xfa, 0xbf, 0xd7, 0xd1, 0xc6, 0x99, 0x8d,
154 0xc7, 0xaf, 0xd1, 0x66, 0x21, 0xf3, 0x38, 0x8d, 0xbe, 0x2c, 0x58, 0x52, 0xf2, 0x9d, 0xc1, 0xb3,
155 0xc1, 0x81, 0x37, 0xde, 0xa7, 0x26, 0x01, 0x75, 0x09, 0xe8, 0x89, 0x0e, 0xfa, 0xa4, 0x62, 0x3e,
156 0x7a, 0x45, 0xfd, 0x81, 0x5f, 0x21, 0x2f, 0x4e, 0xe5, 0xd1, 0xd8, 0xf2, 0x6b, 0x9a, 0xdf, 0xeb,
157 0xf0, 0x1f, 0x54, 0x8c, 0xc1, 0x51, 0x5c, 0xad, 0x2d, 0x3d, 0x9d, 0x58, 0xfa, 0x56, 0x3f, 0x3d,
158 0x9d, 0xd4, 0xb4, 0x5d, 0x2b, 0x7a, 0x9e, 0x08, 0x26, 0x2d, 0xbd, 0xde, 0x43, 0xbf, 0x57, 0x31,
159 0x96, 0x9e, 0x57, 0x6b, 0x75, 0xf4, 0x0b, 0x51, 0x86, 0x09, 0xb7, 0xf8, 0xed, 0x9e, 0xa3, 0xbf,
160 0xd5, 0x41, 0xf6, 0xe8, 0x17, 0xf5, 0x07, 0x7e, 0x89, 0x50, 0x28, 0x44, 0x62, 0xf1, 0xa1, 0xc6,
161 0x49, 0x07, 0x9f, 0x09, 0x91, 0x18, 0x78, 0x14, 0xba, 0xa5, 0xf2, 0x2e, 0x9b, 0x65, 0xbb, 0xd3,
162 0xe3, 0x7d, 0xda, 0xa8, 0x9b, 0x57, 0x36, 0x0a, 0x67, 0x13, 0x54, 0x95, 0xdb, 0x00, 0x12, 0xb8,
163 0xd2, 0x79, 0x65, 0xbb, 0x76, 0xe1, 0x52, 0xf2, 0xc2, 0xf2, 0xa3, 0x9e, 0xda, 0xcd, 0x54, 0x8c,
164 0xad, 0x5d, 0x58, 0xad, 0xc7, 0xbf, 0x46, 0x68, 0xcb, 0xf5, 0xd0, 0x09, 0xcf, 0x17, 0xf1, 0x39,
165 0xc7, 0x3f, 0x06, 0x68, 0xf8, 0x26, 0xe7, 0x4c, 0x72, 0x3c, 0xa6, 0xff, 0xdb, 0xe8, 0xd4, 0x65,
166 0x21, 0x37, 0x60, 0xfc, 0xa7, 0xdf, 0xff, 0xfc, 0xfd, 0xb9, 0xb6, 0xeb, 0x3f, 0x0c, 0x16, 0x2f,
167 0xdc, 0xd4, 0x55, 0xb3, 0x70, 0x3c, 0x38, 0xc4, 0x5f, 0xd1, 0xb6, 0xf9, 0x49, 0x8d, 0xfe, 0xc5,
168 0x60, 0x77, 0x13, 0x50, 0xf5, 0x77, 0xb5, 0xe3, 0x03, 0xff, 0x9e, 0x72, 0x94, 0xbc, 0x90, 0x46,
169 0x54, 0x5e, 0x73, 0x74, 0xdf, 0x78, 0xd5, 0x77, 0x86, 0xa1, 0x41, 0x20, 0x90, 0xe8, 0xef, 0x68,
170 0x23, 0xec, 0xdf, 0x75, 0x46, 0x5a, 0x5b, 0xf5, 0x71, 0xb7, 0x09, 0x8d, 0x0c, 0x81, 0xc4, 0x6b,
171 0x7d, 0xa6, 0x93, 0x96, 0x4f, 0x3d, 0x3f, 0x18, 0x1a, 0x2e, 0x02, 0x89, 0x5d, 0x1f, 0xad, 0xb5,
172 0xee, 0xa8, 0x31, 0x68, 0x18, 0x1c, 0x43, 0x02, 0xaa, 0xdd, 0x3b, 0x32, 0xa2, 0xf2, 0x0a, 0xd1,
173 0x96, 0xf1, 0xaa, 0xa6, 0x12, 0x03, 0x13, 0x4b, 0x00, 0xcd, 0x7f, 0xac, 0x5d, 0xb6, 0xfd, 0x4d,
174 0xe7, 0xa2, 0xa4, 0xd6, 0x79, 0x1a, 0xc3, 0x8b, 0xc1, 0xd1, 0x26, 0xa0, 0xda, 0x3d, 0xcf, 0x69,
175 0xec, 0x7a, 0xa1, 0xe5, 0xe5, 0x9a, 0x01, 0x7c, 0x05, 0x08, 0xa8, 0x5e, 0xef, 0xb5, 0xd2, 0x0f,
176 0xf5, 0x9b, 0x80, 0xa1, 0x07, 0x83, 0x40, 0x62, 0xb7, 0x1f, 0xb4, 0xa6, 0x7c, 0xce, 0x90, 0x67,
177 0x7c, 0xde, 0xa9, 0x3f, 0x2d, 0xfc, 0xa8, 0x93, 0x45, 0xef, 0x93, 0x9e, 0xfd, 0x6e, 0x62, 0xbd,
178 0x7d, 0x3c, 0x38, 0x9c, 0x79, 0x9f, 0x47, 0xd5, 0x1b, 0x12, 0x0e, 0x35, 0x76, 0xf4, 0x2f, 0x00,
179 0x00, 0xff, 0xff, 0xfe, 0xb0, 0x38, 0x00, 0xc5, 0x07, 0x00, 0x00,
180 }
181
182
183 var _ context.Context
184 var _ grpc.ClientConnInterface
185
186
187
188 const _ = grpc.SupportPackageIsVersion6
189
190
191
192
193 type WrappersServiceClient interface {
194 Create(ctx context.Context, in *Wrappers, opts ...grpc.CallOption) (*Wrappers, error)
195 CreateStringValue(ctx context.Context, in *wrappers.StringValue, opts ...grpc.CallOption) (*wrappers.StringValue, error)
196 CreateInt32Value(ctx context.Context, in *wrappers.Int32Value, opts ...grpc.CallOption) (*wrappers.Int32Value, error)
197 CreateInt64Value(ctx context.Context, in *wrappers.Int64Value, opts ...grpc.CallOption) (*wrappers.Int64Value, error)
198 CreateFloatValue(ctx context.Context, in *wrappers.FloatValue, opts ...grpc.CallOption) (*wrappers.FloatValue, error)
199 CreateDoubleValue(ctx context.Context, in *wrappers.DoubleValue, opts ...grpc.CallOption) (*wrappers.DoubleValue, error)
200 CreateBoolValue(ctx context.Context, in *wrappers.BoolValue, opts ...grpc.CallOption) (*wrappers.BoolValue, error)
201 CreateUInt32Value(ctx context.Context, in *wrappers.UInt32Value, opts ...grpc.CallOption) (*wrappers.UInt32Value, error)
202 CreateUInt64Value(ctx context.Context, in *wrappers.UInt64Value, opts ...grpc.CallOption) (*wrappers.UInt64Value, error)
203 CreateBytesValue(ctx context.Context, in *wrappers.BytesValue, opts ...grpc.CallOption) (*wrappers.BytesValue, error)
204 CreateEmpty(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error)
205 }
206
207 type wrappersServiceClient struct {
208 cc grpc.ClientConnInterface
209 }
210
211 func NewWrappersServiceClient(cc grpc.ClientConnInterface) WrappersServiceClient {
212 return &wrappersServiceClient{cc}
213 }
214
215 func (c *wrappersServiceClient) Create(ctx context.Context, in *Wrappers, opts ...grpc.CallOption) (*Wrappers, error) {
216 out := new(Wrappers)
217 err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.WrappersService/Create", in, out, opts...)
218 if err != nil {
219 return nil, err
220 }
221 return out, nil
222 }
223
224 func (c *wrappersServiceClient) CreateStringValue(ctx context.Context, in *wrappers.StringValue, opts ...grpc.CallOption) (*wrappers.StringValue, error) {
225 out := new(wrappers.StringValue)
226 err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.WrappersService/CreateStringValue", in, out, opts...)
227 if err != nil {
228 return nil, err
229 }
230 return out, nil
231 }
232
233 func (c *wrappersServiceClient) CreateInt32Value(ctx context.Context, in *wrappers.Int32Value, opts ...grpc.CallOption) (*wrappers.Int32Value, error) {
234 out := new(wrappers.Int32Value)
235 err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.WrappersService/CreateInt32Value", in, out, opts...)
236 if err != nil {
237 return nil, err
238 }
239 return out, nil
240 }
241
242 func (c *wrappersServiceClient) CreateInt64Value(ctx context.Context, in *wrappers.Int64Value, opts ...grpc.CallOption) (*wrappers.Int64Value, error) {
243 out := new(wrappers.Int64Value)
244 err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.WrappersService/CreateInt64Value", in, out, opts...)
245 if err != nil {
246 return nil, err
247 }
248 return out, nil
249 }
250
251 func (c *wrappersServiceClient) CreateFloatValue(ctx context.Context, in *wrappers.FloatValue, opts ...grpc.CallOption) (*wrappers.FloatValue, error) {
252 out := new(wrappers.FloatValue)
253 err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.WrappersService/CreateFloatValue", in, out, opts...)
254 if err != nil {
255 return nil, err
256 }
257 return out, nil
258 }
259
260 func (c *wrappersServiceClient) CreateDoubleValue(ctx context.Context, in *wrappers.DoubleValue, opts ...grpc.CallOption) (*wrappers.DoubleValue, error) {
261 out := new(wrappers.DoubleValue)
262 err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.WrappersService/CreateDoubleValue", in, out, opts...)
263 if err != nil {
264 return nil, err
265 }
266 return out, nil
267 }
268
269 func (c *wrappersServiceClient) CreateBoolValue(ctx context.Context, in *wrappers.BoolValue, opts ...grpc.CallOption) (*wrappers.BoolValue, error) {
270 out := new(wrappers.BoolValue)
271 err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.WrappersService/CreateBoolValue", in, out, opts...)
272 if err != nil {
273 return nil, err
274 }
275 return out, nil
276 }
277
278 func (c *wrappersServiceClient) CreateUInt32Value(ctx context.Context, in *wrappers.UInt32Value, opts ...grpc.CallOption) (*wrappers.UInt32Value, error) {
279 out := new(wrappers.UInt32Value)
280 err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.WrappersService/CreateUInt32Value", in, out, opts...)
281 if err != nil {
282 return nil, err
283 }
284 return out, nil
285 }
286
287 func (c *wrappersServiceClient) CreateUInt64Value(ctx context.Context, in *wrappers.UInt64Value, opts ...grpc.CallOption) (*wrappers.UInt64Value, error) {
288 out := new(wrappers.UInt64Value)
289 err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.WrappersService/CreateUInt64Value", in, out, opts...)
290 if err != nil {
291 return nil, err
292 }
293 return out, nil
294 }
295
296 func (c *wrappersServiceClient) CreateBytesValue(ctx context.Context, in *wrappers.BytesValue, opts ...grpc.CallOption) (*wrappers.BytesValue, error) {
297 out := new(wrappers.BytesValue)
298 err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.WrappersService/CreateBytesValue", in, out, opts...)
299 if err != nil {
300 return nil, err
301 }
302 return out, nil
303 }
304
305 func (c *wrappersServiceClient) CreateEmpty(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) {
306 out := new(empty.Empty)
307 err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.WrappersService/CreateEmpty", in, out, opts...)
308 if err != nil {
309 return nil, err
310 }
311 return out, nil
312 }
313
314
315 type WrappersServiceServer interface {
316 Create(context.Context, *Wrappers) (*Wrappers, error)
317 CreateStringValue(context.Context, *wrappers.StringValue) (*wrappers.StringValue, error)
318 CreateInt32Value(context.Context, *wrappers.Int32Value) (*wrappers.Int32Value, error)
319 CreateInt64Value(context.Context, *wrappers.Int64Value) (*wrappers.Int64Value, error)
320 CreateFloatValue(context.Context, *wrappers.FloatValue) (*wrappers.FloatValue, error)
321 CreateDoubleValue(context.Context, *wrappers.DoubleValue) (*wrappers.DoubleValue, error)
322 CreateBoolValue(context.Context, *wrappers.BoolValue) (*wrappers.BoolValue, error)
323 CreateUInt32Value(context.Context, *wrappers.UInt32Value) (*wrappers.UInt32Value, error)
324 CreateUInt64Value(context.Context, *wrappers.UInt64Value) (*wrappers.UInt64Value, error)
325 CreateBytesValue(context.Context, *wrappers.BytesValue) (*wrappers.BytesValue, error)
326 CreateEmpty(context.Context, *empty.Empty) (*empty.Empty, error)
327 }
328
329
330 type UnimplementedWrappersServiceServer struct {
331 }
332
333 func (*UnimplementedWrappersServiceServer) Create(ctx context.Context, req *Wrappers) (*Wrappers, error) {
334 return nil, status.Errorf(codes.Unimplemented, "method Create not implemented")
335 }
336 func (*UnimplementedWrappersServiceServer) CreateStringValue(ctx context.Context, req *wrappers.StringValue) (*wrappers.StringValue, error) {
337 return nil, status.Errorf(codes.Unimplemented, "method CreateStringValue not implemented")
338 }
339 func (*UnimplementedWrappersServiceServer) CreateInt32Value(ctx context.Context, req *wrappers.Int32Value) (*wrappers.Int32Value, error) {
340 return nil, status.Errorf(codes.Unimplemented, "method CreateInt32Value not implemented")
341 }
342 func (*UnimplementedWrappersServiceServer) CreateInt64Value(ctx context.Context, req *wrappers.Int64Value) (*wrappers.Int64Value, error) {
343 return nil, status.Errorf(codes.Unimplemented, "method CreateInt64Value not implemented")
344 }
345 func (*UnimplementedWrappersServiceServer) CreateFloatValue(ctx context.Context, req *wrappers.FloatValue) (*wrappers.FloatValue, error) {
346 return nil, status.Errorf(codes.Unimplemented, "method CreateFloatValue not implemented")
347 }
348 func (*UnimplementedWrappersServiceServer) CreateDoubleValue(ctx context.Context, req *wrappers.DoubleValue) (*wrappers.DoubleValue, error) {
349 return nil, status.Errorf(codes.Unimplemented, "method CreateDoubleValue not implemented")
350 }
351 func (*UnimplementedWrappersServiceServer) CreateBoolValue(ctx context.Context, req *wrappers.BoolValue) (*wrappers.BoolValue, error) {
352 return nil, status.Errorf(codes.Unimplemented, "method CreateBoolValue not implemented")
353 }
354 func (*UnimplementedWrappersServiceServer) CreateUInt32Value(ctx context.Context, req *wrappers.UInt32Value) (*wrappers.UInt32Value, error) {
355 return nil, status.Errorf(codes.Unimplemented, "method CreateUInt32Value not implemented")
356 }
357 func (*UnimplementedWrappersServiceServer) CreateUInt64Value(ctx context.Context, req *wrappers.UInt64Value) (*wrappers.UInt64Value, error) {
358 return nil, status.Errorf(codes.Unimplemented, "method CreateUInt64Value not implemented")
359 }
360 func (*UnimplementedWrappersServiceServer) CreateBytesValue(ctx context.Context, req *wrappers.BytesValue) (*wrappers.BytesValue, error) {
361 return nil, status.Errorf(codes.Unimplemented, "method CreateBytesValue not implemented")
362 }
363 func (*UnimplementedWrappersServiceServer) CreateEmpty(ctx context.Context, req *empty.Empty) (*empty.Empty, error) {
364 return nil, status.Errorf(codes.Unimplemented, "method CreateEmpty not implemented")
365 }
366
367 func RegisterWrappersServiceServer(s *grpc.Server, srv WrappersServiceServer) {
368 s.RegisterService(&_WrappersService_serviceDesc, srv)
369 }
370
371 func _WrappersService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
372 in := new(Wrappers)
373 if err := dec(in); err != nil {
374 return nil, err
375 }
376 if interceptor == nil {
377 return srv.(WrappersServiceServer).Create(ctx, in)
378 }
379 info := &grpc.UnaryServerInfo{
380 Server: srv,
381 FullMethod: "/grpc.gateway.examples.internal.examplepb.WrappersService/Create",
382 }
383 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
384 return srv.(WrappersServiceServer).Create(ctx, req.(*Wrappers))
385 }
386 return interceptor(ctx, in, info, handler)
387 }
388
389 func _WrappersService_CreateStringValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
390 in := new(wrappers.StringValue)
391 if err := dec(in); err != nil {
392 return nil, err
393 }
394 if interceptor == nil {
395 return srv.(WrappersServiceServer).CreateStringValue(ctx, in)
396 }
397 info := &grpc.UnaryServerInfo{
398 Server: srv,
399 FullMethod: "/grpc.gateway.examples.internal.examplepb.WrappersService/CreateStringValue",
400 }
401 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
402 return srv.(WrappersServiceServer).CreateStringValue(ctx, req.(*wrappers.StringValue))
403 }
404 return interceptor(ctx, in, info, handler)
405 }
406
407 func _WrappersService_CreateInt32Value_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
408 in := new(wrappers.Int32Value)
409 if err := dec(in); err != nil {
410 return nil, err
411 }
412 if interceptor == nil {
413 return srv.(WrappersServiceServer).CreateInt32Value(ctx, in)
414 }
415 info := &grpc.UnaryServerInfo{
416 Server: srv,
417 FullMethod: "/grpc.gateway.examples.internal.examplepb.WrappersService/CreateInt32Value",
418 }
419 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
420 return srv.(WrappersServiceServer).CreateInt32Value(ctx, req.(*wrappers.Int32Value))
421 }
422 return interceptor(ctx, in, info, handler)
423 }
424
425 func _WrappersService_CreateInt64Value_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
426 in := new(wrappers.Int64Value)
427 if err := dec(in); err != nil {
428 return nil, err
429 }
430 if interceptor == nil {
431 return srv.(WrappersServiceServer).CreateInt64Value(ctx, in)
432 }
433 info := &grpc.UnaryServerInfo{
434 Server: srv,
435 FullMethod: "/grpc.gateway.examples.internal.examplepb.WrappersService/CreateInt64Value",
436 }
437 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
438 return srv.(WrappersServiceServer).CreateInt64Value(ctx, req.(*wrappers.Int64Value))
439 }
440 return interceptor(ctx, in, info, handler)
441 }
442
443 func _WrappersService_CreateFloatValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
444 in := new(wrappers.FloatValue)
445 if err := dec(in); err != nil {
446 return nil, err
447 }
448 if interceptor == nil {
449 return srv.(WrappersServiceServer).CreateFloatValue(ctx, in)
450 }
451 info := &grpc.UnaryServerInfo{
452 Server: srv,
453 FullMethod: "/grpc.gateway.examples.internal.examplepb.WrappersService/CreateFloatValue",
454 }
455 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
456 return srv.(WrappersServiceServer).CreateFloatValue(ctx, req.(*wrappers.FloatValue))
457 }
458 return interceptor(ctx, in, info, handler)
459 }
460
461 func _WrappersService_CreateDoubleValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
462 in := new(wrappers.DoubleValue)
463 if err := dec(in); err != nil {
464 return nil, err
465 }
466 if interceptor == nil {
467 return srv.(WrappersServiceServer).CreateDoubleValue(ctx, in)
468 }
469 info := &grpc.UnaryServerInfo{
470 Server: srv,
471 FullMethod: "/grpc.gateway.examples.internal.examplepb.WrappersService/CreateDoubleValue",
472 }
473 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
474 return srv.(WrappersServiceServer).CreateDoubleValue(ctx, req.(*wrappers.DoubleValue))
475 }
476 return interceptor(ctx, in, info, handler)
477 }
478
479 func _WrappersService_CreateBoolValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
480 in := new(wrappers.BoolValue)
481 if err := dec(in); err != nil {
482 return nil, err
483 }
484 if interceptor == nil {
485 return srv.(WrappersServiceServer).CreateBoolValue(ctx, in)
486 }
487 info := &grpc.UnaryServerInfo{
488 Server: srv,
489 FullMethod: "/grpc.gateway.examples.internal.examplepb.WrappersService/CreateBoolValue",
490 }
491 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
492 return srv.(WrappersServiceServer).CreateBoolValue(ctx, req.(*wrappers.BoolValue))
493 }
494 return interceptor(ctx, in, info, handler)
495 }
496
497 func _WrappersService_CreateUInt32Value_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
498 in := new(wrappers.UInt32Value)
499 if err := dec(in); err != nil {
500 return nil, err
501 }
502 if interceptor == nil {
503 return srv.(WrappersServiceServer).CreateUInt32Value(ctx, in)
504 }
505 info := &grpc.UnaryServerInfo{
506 Server: srv,
507 FullMethod: "/grpc.gateway.examples.internal.examplepb.WrappersService/CreateUInt32Value",
508 }
509 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
510 return srv.(WrappersServiceServer).CreateUInt32Value(ctx, req.(*wrappers.UInt32Value))
511 }
512 return interceptor(ctx, in, info, handler)
513 }
514
515 func _WrappersService_CreateUInt64Value_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
516 in := new(wrappers.UInt64Value)
517 if err := dec(in); err != nil {
518 return nil, err
519 }
520 if interceptor == nil {
521 return srv.(WrappersServiceServer).CreateUInt64Value(ctx, in)
522 }
523 info := &grpc.UnaryServerInfo{
524 Server: srv,
525 FullMethod: "/grpc.gateway.examples.internal.examplepb.WrappersService/CreateUInt64Value",
526 }
527 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
528 return srv.(WrappersServiceServer).CreateUInt64Value(ctx, req.(*wrappers.UInt64Value))
529 }
530 return interceptor(ctx, in, info, handler)
531 }
532
533 func _WrappersService_CreateBytesValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
534 in := new(wrappers.BytesValue)
535 if err := dec(in); err != nil {
536 return nil, err
537 }
538 if interceptor == nil {
539 return srv.(WrappersServiceServer).CreateBytesValue(ctx, in)
540 }
541 info := &grpc.UnaryServerInfo{
542 Server: srv,
543 FullMethod: "/grpc.gateway.examples.internal.examplepb.WrappersService/CreateBytesValue",
544 }
545 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
546 return srv.(WrappersServiceServer).CreateBytesValue(ctx, req.(*wrappers.BytesValue))
547 }
548 return interceptor(ctx, in, info, handler)
549 }
550
551 func _WrappersService_CreateEmpty_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
552 in := new(empty.Empty)
553 if err := dec(in); err != nil {
554 return nil, err
555 }
556 if interceptor == nil {
557 return srv.(WrappersServiceServer).CreateEmpty(ctx, in)
558 }
559 info := &grpc.UnaryServerInfo{
560 Server: srv,
561 FullMethod: "/grpc.gateway.examples.internal.examplepb.WrappersService/CreateEmpty",
562 }
563 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
564 return srv.(WrappersServiceServer).CreateEmpty(ctx, req.(*empty.Empty))
565 }
566 return interceptor(ctx, in, info, handler)
567 }
568
569 var _WrappersService_serviceDesc = grpc.ServiceDesc{
570 ServiceName: "grpc.gateway.examples.internal.examplepb.WrappersService",
571 HandlerType: (*WrappersServiceServer)(nil),
572 Methods: []grpc.MethodDesc{
573 {
574 MethodName: "Create",
575 Handler: _WrappersService_Create_Handler,
576 },
577 {
578 MethodName: "CreateStringValue",
579 Handler: _WrappersService_CreateStringValue_Handler,
580 },
581 {
582 MethodName: "CreateInt32Value",
583 Handler: _WrappersService_CreateInt32Value_Handler,
584 },
585 {
586 MethodName: "CreateInt64Value",
587 Handler: _WrappersService_CreateInt64Value_Handler,
588 },
589 {
590 MethodName: "CreateFloatValue",
591 Handler: _WrappersService_CreateFloatValue_Handler,
592 },
593 {
594 MethodName: "CreateDoubleValue",
595 Handler: _WrappersService_CreateDoubleValue_Handler,
596 },
597 {
598 MethodName: "CreateBoolValue",
599 Handler: _WrappersService_CreateBoolValue_Handler,
600 },
601 {
602 MethodName: "CreateUInt32Value",
603 Handler: _WrappersService_CreateUInt32Value_Handler,
604 },
605 {
606 MethodName: "CreateUInt64Value",
607 Handler: _WrappersService_CreateUInt64Value_Handler,
608 },
609 {
610 MethodName: "CreateBytesValue",
611 Handler: _WrappersService_CreateBytesValue_Handler,
612 },
613 {
614 MethodName: "CreateEmpty",
615 Handler: _WrappersService_CreateEmpty_Handler,
616 },
617 },
618 Streams: []grpc.StreamDesc{},
619 Metadata: "examples/internal/proto/examplepb/wrappers.proto",
620 }
621
View as plain text