github.com/grpc-ecosystem/grpc-gateway/v2@v2.19.1/examples/internal/proto/examplepb/a_bit_of_everything_grpc.pb.go (about) 1 // Code generated by protoc-gen-go-grpc. DO NOT EDIT. 2 // versions: 3 // - protoc-gen-go-grpc v1.2.0 4 // - protoc (unknown) 5 // source: examples/internal/proto/examplepb/a_bit_of_everything.proto 6 7 package examplepb 8 9 import ( 10 context "context" 11 oneofenum "github.com/grpc-ecosystem/grpc-gateway/v2/examples/internal/proto/oneofenum" 12 pathenum "github.com/grpc-ecosystem/grpc-gateway/v2/examples/internal/proto/pathenum" 13 sub "github.com/grpc-ecosystem/grpc-gateway/v2/examples/internal/proto/sub" 14 sub2 "github.com/grpc-ecosystem/grpc-gateway/v2/examples/internal/proto/sub2" 15 grpc "google.golang.org/grpc" 16 codes "google.golang.org/grpc/codes" 17 status "google.golang.org/grpc/status" 18 durationpb "google.golang.org/protobuf/types/known/durationpb" 19 emptypb "google.golang.org/protobuf/types/known/emptypb" 20 wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" 21 ) 22 23 // This is a compile-time assertion to ensure that this generated file 24 // is compatible with the grpc package it is being compiled against. 25 // Requires gRPC-Go v1.32.0 or later. 26 const _ = grpc.SupportPackageIsVersion7 27 28 // ABitOfEverythingServiceClient is the client API for ABitOfEverythingService service. 29 // 30 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. 31 type ABitOfEverythingServiceClient interface { 32 // Create a new ABitOfEverything 33 // 34 // This API creates a new ABitOfEverything 35 Create(ctx context.Context, in *ABitOfEverything, opts ...grpc.CallOption) (*ABitOfEverything, error) 36 CreateBody(ctx context.Context, in *ABitOfEverything, opts ...grpc.CallOption) (*ABitOfEverything, error) 37 // Create a book. 38 CreateBook(ctx context.Context, in *CreateBookRequest, opts ...grpc.CallOption) (*Book, error) 39 UpdateBook(ctx context.Context, in *UpdateBookRequest, opts ...grpc.CallOption) (*Book, error) 40 Lookup(ctx context.Context, in *sub2.IdMessage, opts ...grpc.CallOption) (*ABitOfEverything, error) 41 Custom(ctx context.Context, in *ABitOfEverything, opts ...grpc.CallOption) (*ABitOfEverything, error) 42 DoubleColon(ctx context.Context, in *ABitOfEverything, opts ...grpc.CallOption) (*ABitOfEverything, error) 43 Update(ctx context.Context, in *ABitOfEverything, opts ...grpc.CallOption) (*emptypb.Empty, error) 44 UpdateV2(ctx context.Context, in *UpdateV2Request, opts ...grpc.CallOption) (*emptypb.Empty, error) 45 Delete(ctx context.Context, in *sub2.IdMessage, opts ...grpc.CallOption) (*emptypb.Empty, error) 46 GetQuery(ctx context.Context, in *ABitOfEverything, opts ...grpc.CallOption) (*emptypb.Empty, error) 47 GetRepeatedQuery(ctx context.Context, in *ABitOfEverythingRepeated, opts ...grpc.CallOption) (*ABitOfEverythingRepeated, error) 48 // Echo allows posting a StringMessage value. 49 // 50 // It also exposes multiple bindings. 51 // 52 // This makes it useful when validating that the OpenAPI v2 API 53 // description exposes documentation correctly on all paths 54 // defined as additional_bindings in the proto. 55 Echo(ctx context.Context, in *sub.StringMessage, opts ...grpc.CallOption) (*sub.StringMessage, error) 56 DeepPathEcho(ctx context.Context, in *ABitOfEverything, opts ...grpc.CallOption) (*ABitOfEverything, error) 57 NoBindings(ctx context.Context, in *durationpb.Duration, opts ...grpc.CallOption) (*emptypb.Empty, error) 58 Timeout(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) 59 ErrorWithDetails(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) 60 GetMessageWithBody(ctx context.Context, in *MessageWithBody, opts ...grpc.CallOption) (*emptypb.Empty, error) 61 PostWithEmptyBody(ctx context.Context, in *Body, opts ...grpc.CallOption) (*emptypb.Empty, error) 62 CheckGetQueryParams(ctx context.Context, in *ABitOfEverything, opts ...grpc.CallOption) (*ABitOfEverything, error) 63 CheckNestedEnumGetQueryParams(ctx context.Context, in *ABitOfEverything, opts ...grpc.CallOption) (*ABitOfEverything, error) 64 CheckPostQueryParams(ctx context.Context, in *ABitOfEverything, opts ...grpc.CallOption) (*ABitOfEverything, error) 65 OverwriteRequestContentType(ctx context.Context, in *Body, opts ...grpc.CallOption) (*emptypb.Empty, error) 66 OverwriteResponseContentType(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*wrapperspb.StringValue, error) 67 CheckExternalPathEnum(ctx context.Context, in *pathenum.MessageWithPathEnum, opts ...grpc.CallOption) (*emptypb.Empty, error) 68 CheckExternalNestedPathEnum(ctx context.Context, in *pathenum.MessageWithNestedPathEnum, opts ...grpc.CallOption) (*emptypb.Empty, error) 69 CheckStatus(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*CheckStatusResponse, error) 70 Exists(ctx context.Context, in *ABitOfEverything, opts ...grpc.CallOption) (*emptypb.Empty, error) 71 CustomOptionsRequest(ctx context.Context, in *ABitOfEverything, opts ...grpc.CallOption) (*emptypb.Empty, error) 72 TraceRequest(ctx context.Context, in *ABitOfEverything, opts ...grpc.CallOption) (*ABitOfEverything, error) 73 PostOneofEnum(ctx context.Context, in *oneofenum.OneofEnumMessage, opts ...grpc.CallOption) (*emptypb.Empty, error) 74 PostRequiredMessageType(ctx context.Context, in *RequiredMessageTypeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) 75 } 76 77 type aBitOfEverythingServiceClient struct { 78 cc grpc.ClientConnInterface 79 } 80 81 func NewABitOfEverythingServiceClient(cc grpc.ClientConnInterface) ABitOfEverythingServiceClient { 82 return &aBitOfEverythingServiceClient{cc} 83 } 84 85 func (c *aBitOfEverythingServiceClient) Create(ctx context.Context, in *ABitOfEverything, opts ...grpc.CallOption) (*ABitOfEverything, error) { 86 out := new(ABitOfEverything) 87 err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/Create", in, out, opts...) 88 if err != nil { 89 return nil, err 90 } 91 return out, nil 92 } 93 94 func (c *aBitOfEverythingServiceClient) CreateBody(ctx context.Context, in *ABitOfEverything, opts ...grpc.CallOption) (*ABitOfEverything, error) { 95 out := new(ABitOfEverything) 96 err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/CreateBody", in, out, opts...) 97 if err != nil { 98 return nil, err 99 } 100 return out, nil 101 } 102 103 func (c *aBitOfEverythingServiceClient) CreateBook(ctx context.Context, in *CreateBookRequest, opts ...grpc.CallOption) (*Book, error) { 104 out := new(Book) 105 err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/CreateBook", in, out, opts...) 106 if err != nil { 107 return nil, err 108 } 109 return out, nil 110 } 111 112 func (c *aBitOfEverythingServiceClient) UpdateBook(ctx context.Context, in *UpdateBookRequest, opts ...grpc.CallOption) (*Book, error) { 113 out := new(Book) 114 err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/UpdateBook", in, out, opts...) 115 if err != nil { 116 return nil, err 117 } 118 return out, nil 119 } 120 121 func (c *aBitOfEverythingServiceClient) Lookup(ctx context.Context, in *sub2.IdMessage, opts ...grpc.CallOption) (*ABitOfEverything, error) { 122 out := new(ABitOfEverything) 123 err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/Lookup", in, out, opts...) 124 if err != nil { 125 return nil, err 126 } 127 return out, nil 128 } 129 130 func (c *aBitOfEverythingServiceClient) Custom(ctx context.Context, in *ABitOfEverything, opts ...grpc.CallOption) (*ABitOfEverything, error) { 131 out := new(ABitOfEverything) 132 err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/Custom", in, out, opts...) 133 if err != nil { 134 return nil, err 135 } 136 return out, nil 137 } 138 139 func (c *aBitOfEverythingServiceClient) DoubleColon(ctx context.Context, in *ABitOfEverything, opts ...grpc.CallOption) (*ABitOfEverything, error) { 140 out := new(ABitOfEverything) 141 err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/DoubleColon", in, out, opts...) 142 if err != nil { 143 return nil, err 144 } 145 return out, nil 146 } 147 148 func (c *aBitOfEverythingServiceClient) Update(ctx context.Context, in *ABitOfEverything, opts ...grpc.CallOption) (*emptypb.Empty, error) { 149 out := new(emptypb.Empty) 150 err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/Update", in, out, opts...) 151 if err != nil { 152 return nil, err 153 } 154 return out, nil 155 } 156 157 func (c *aBitOfEverythingServiceClient) UpdateV2(ctx context.Context, in *UpdateV2Request, opts ...grpc.CallOption) (*emptypb.Empty, error) { 158 out := new(emptypb.Empty) 159 err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/UpdateV2", in, out, opts...) 160 if err != nil { 161 return nil, err 162 } 163 return out, nil 164 } 165 166 func (c *aBitOfEverythingServiceClient) Delete(ctx context.Context, in *sub2.IdMessage, opts ...grpc.CallOption) (*emptypb.Empty, error) { 167 out := new(emptypb.Empty) 168 err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/Delete", in, out, opts...) 169 if err != nil { 170 return nil, err 171 } 172 return out, nil 173 } 174 175 func (c *aBitOfEverythingServiceClient) GetQuery(ctx context.Context, in *ABitOfEverything, opts ...grpc.CallOption) (*emptypb.Empty, error) { 176 out := new(emptypb.Empty) 177 err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/GetQuery", in, out, opts...) 178 if err != nil { 179 return nil, err 180 } 181 return out, nil 182 } 183 184 func (c *aBitOfEverythingServiceClient) GetRepeatedQuery(ctx context.Context, in *ABitOfEverythingRepeated, opts ...grpc.CallOption) (*ABitOfEverythingRepeated, error) { 185 out := new(ABitOfEverythingRepeated) 186 err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/GetRepeatedQuery", in, out, opts...) 187 if err != nil { 188 return nil, err 189 } 190 return out, nil 191 } 192 193 func (c *aBitOfEverythingServiceClient) Echo(ctx context.Context, in *sub.StringMessage, opts ...grpc.CallOption) (*sub.StringMessage, error) { 194 out := new(sub.StringMessage) 195 err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/Echo", in, out, opts...) 196 if err != nil { 197 return nil, err 198 } 199 return out, nil 200 } 201 202 func (c *aBitOfEverythingServiceClient) DeepPathEcho(ctx context.Context, in *ABitOfEverything, opts ...grpc.CallOption) (*ABitOfEverything, error) { 203 out := new(ABitOfEverything) 204 err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/DeepPathEcho", in, out, opts...) 205 if err != nil { 206 return nil, err 207 } 208 return out, nil 209 } 210 211 func (c *aBitOfEverythingServiceClient) NoBindings(ctx context.Context, in *durationpb.Duration, opts ...grpc.CallOption) (*emptypb.Empty, error) { 212 out := new(emptypb.Empty) 213 err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/NoBindings", in, out, opts...) 214 if err != nil { 215 return nil, err 216 } 217 return out, nil 218 } 219 220 func (c *aBitOfEverythingServiceClient) Timeout(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) { 221 out := new(emptypb.Empty) 222 err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/Timeout", in, out, opts...) 223 if err != nil { 224 return nil, err 225 } 226 return out, nil 227 } 228 229 func (c *aBitOfEverythingServiceClient) ErrorWithDetails(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) { 230 out := new(emptypb.Empty) 231 err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/ErrorWithDetails", in, out, opts...) 232 if err != nil { 233 return nil, err 234 } 235 return out, nil 236 } 237 238 func (c *aBitOfEverythingServiceClient) GetMessageWithBody(ctx context.Context, in *MessageWithBody, opts ...grpc.CallOption) (*emptypb.Empty, error) { 239 out := new(emptypb.Empty) 240 err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/GetMessageWithBody", in, out, opts...) 241 if err != nil { 242 return nil, err 243 } 244 return out, nil 245 } 246 247 func (c *aBitOfEverythingServiceClient) PostWithEmptyBody(ctx context.Context, in *Body, opts ...grpc.CallOption) (*emptypb.Empty, error) { 248 out := new(emptypb.Empty) 249 err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/PostWithEmptyBody", in, out, opts...) 250 if err != nil { 251 return nil, err 252 } 253 return out, nil 254 } 255 256 func (c *aBitOfEverythingServiceClient) CheckGetQueryParams(ctx context.Context, in *ABitOfEverything, opts ...grpc.CallOption) (*ABitOfEverything, error) { 257 out := new(ABitOfEverything) 258 err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/CheckGetQueryParams", in, out, opts...) 259 if err != nil { 260 return nil, err 261 } 262 return out, nil 263 } 264 265 func (c *aBitOfEverythingServiceClient) CheckNestedEnumGetQueryParams(ctx context.Context, in *ABitOfEverything, opts ...grpc.CallOption) (*ABitOfEverything, error) { 266 out := new(ABitOfEverything) 267 err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/CheckNestedEnumGetQueryParams", in, out, opts...) 268 if err != nil { 269 return nil, err 270 } 271 return out, nil 272 } 273 274 func (c *aBitOfEverythingServiceClient) CheckPostQueryParams(ctx context.Context, in *ABitOfEverything, opts ...grpc.CallOption) (*ABitOfEverything, error) { 275 out := new(ABitOfEverything) 276 err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/CheckPostQueryParams", in, out, opts...) 277 if err != nil { 278 return nil, err 279 } 280 return out, nil 281 } 282 283 func (c *aBitOfEverythingServiceClient) OverwriteRequestContentType(ctx context.Context, in *Body, opts ...grpc.CallOption) (*emptypb.Empty, error) { 284 out := new(emptypb.Empty) 285 err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/OverwriteRequestContentType", in, out, opts...) 286 if err != nil { 287 return nil, err 288 } 289 return out, nil 290 } 291 292 func (c *aBitOfEverythingServiceClient) OverwriteResponseContentType(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*wrapperspb.StringValue, error) { 293 out := new(wrapperspb.StringValue) 294 err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/OverwriteResponseContentType", in, out, opts...) 295 if err != nil { 296 return nil, err 297 } 298 return out, nil 299 } 300 301 func (c *aBitOfEverythingServiceClient) CheckExternalPathEnum(ctx context.Context, in *pathenum.MessageWithPathEnum, opts ...grpc.CallOption) (*emptypb.Empty, error) { 302 out := new(emptypb.Empty) 303 err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/CheckExternalPathEnum", in, out, opts...) 304 if err != nil { 305 return nil, err 306 } 307 return out, nil 308 } 309 310 func (c *aBitOfEverythingServiceClient) CheckExternalNestedPathEnum(ctx context.Context, in *pathenum.MessageWithNestedPathEnum, opts ...grpc.CallOption) (*emptypb.Empty, error) { 311 out := new(emptypb.Empty) 312 err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/CheckExternalNestedPathEnum", in, out, opts...) 313 if err != nil { 314 return nil, err 315 } 316 return out, nil 317 } 318 319 func (c *aBitOfEverythingServiceClient) CheckStatus(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*CheckStatusResponse, error) { 320 out := new(CheckStatusResponse) 321 err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/CheckStatus", in, out, opts...) 322 if err != nil { 323 return nil, err 324 } 325 return out, nil 326 } 327 328 func (c *aBitOfEverythingServiceClient) Exists(ctx context.Context, in *ABitOfEverything, opts ...grpc.CallOption) (*emptypb.Empty, error) { 329 out := new(emptypb.Empty) 330 err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/Exists", in, out, opts...) 331 if err != nil { 332 return nil, err 333 } 334 return out, nil 335 } 336 337 func (c *aBitOfEverythingServiceClient) CustomOptionsRequest(ctx context.Context, in *ABitOfEverything, opts ...grpc.CallOption) (*emptypb.Empty, error) { 338 out := new(emptypb.Empty) 339 err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/CustomOptionsRequest", in, out, opts...) 340 if err != nil { 341 return nil, err 342 } 343 return out, nil 344 } 345 346 func (c *aBitOfEverythingServiceClient) TraceRequest(ctx context.Context, in *ABitOfEverything, opts ...grpc.CallOption) (*ABitOfEverything, error) { 347 out := new(ABitOfEverything) 348 err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/TraceRequest", in, out, opts...) 349 if err != nil { 350 return nil, err 351 } 352 return out, nil 353 } 354 355 func (c *aBitOfEverythingServiceClient) PostOneofEnum(ctx context.Context, in *oneofenum.OneofEnumMessage, opts ...grpc.CallOption) (*emptypb.Empty, error) { 356 out := new(emptypb.Empty) 357 err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/PostOneofEnum", in, out, opts...) 358 if err != nil { 359 return nil, err 360 } 361 return out, nil 362 } 363 364 func (c *aBitOfEverythingServiceClient) PostRequiredMessageType(ctx context.Context, in *RequiredMessageTypeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { 365 out := new(emptypb.Empty) 366 err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/PostRequiredMessageType", in, out, opts...) 367 if err != nil { 368 return nil, err 369 } 370 return out, nil 371 } 372 373 // ABitOfEverythingServiceServer is the server API for ABitOfEverythingService service. 374 // All implementations should embed UnimplementedABitOfEverythingServiceServer 375 // for forward compatibility 376 type ABitOfEverythingServiceServer interface { 377 // Create a new ABitOfEverything 378 // 379 // This API creates a new ABitOfEverything 380 Create(context.Context, *ABitOfEverything) (*ABitOfEverything, error) 381 CreateBody(context.Context, *ABitOfEverything) (*ABitOfEverything, error) 382 // Create a book. 383 CreateBook(context.Context, *CreateBookRequest) (*Book, error) 384 UpdateBook(context.Context, *UpdateBookRequest) (*Book, error) 385 Lookup(context.Context, *sub2.IdMessage) (*ABitOfEverything, error) 386 Custom(context.Context, *ABitOfEverything) (*ABitOfEverything, error) 387 DoubleColon(context.Context, *ABitOfEverything) (*ABitOfEverything, error) 388 Update(context.Context, *ABitOfEverything) (*emptypb.Empty, error) 389 UpdateV2(context.Context, *UpdateV2Request) (*emptypb.Empty, error) 390 Delete(context.Context, *sub2.IdMessage) (*emptypb.Empty, error) 391 GetQuery(context.Context, *ABitOfEverything) (*emptypb.Empty, error) 392 GetRepeatedQuery(context.Context, *ABitOfEverythingRepeated) (*ABitOfEverythingRepeated, error) 393 // Echo allows posting a StringMessage value. 394 // 395 // It also exposes multiple bindings. 396 // 397 // This makes it useful when validating that the OpenAPI v2 API 398 // description exposes documentation correctly on all paths 399 // defined as additional_bindings in the proto. 400 Echo(context.Context, *sub.StringMessage) (*sub.StringMessage, error) 401 DeepPathEcho(context.Context, *ABitOfEverything) (*ABitOfEverything, error) 402 NoBindings(context.Context, *durationpb.Duration) (*emptypb.Empty, error) 403 Timeout(context.Context, *emptypb.Empty) (*emptypb.Empty, error) 404 ErrorWithDetails(context.Context, *emptypb.Empty) (*emptypb.Empty, error) 405 GetMessageWithBody(context.Context, *MessageWithBody) (*emptypb.Empty, error) 406 PostWithEmptyBody(context.Context, *Body) (*emptypb.Empty, error) 407 CheckGetQueryParams(context.Context, *ABitOfEverything) (*ABitOfEverything, error) 408 CheckNestedEnumGetQueryParams(context.Context, *ABitOfEverything) (*ABitOfEverything, error) 409 CheckPostQueryParams(context.Context, *ABitOfEverything) (*ABitOfEverything, error) 410 OverwriteRequestContentType(context.Context, *Body) (*emptypb.Empty, error) 411 OverwriteResponseContentType(context.Context, *emptypb.Empty) (*wrapperspb.StringValue, error) 412 CheckExternalPathEnum(context.Context, *pathenum.MessageWithPathEnum) (*emptypb.Empty, error) 413 CheckExternalNestedPathEnum(context.Context, *pathenum.MessageWithNestedPathEnum) (*emptypb.Empty, error) 414 CheckStatus(context.Context, *emptypb.Empty) (*CheckStatusResponse, error) 415 Exists(context.Context, *ABitOfEverything) (*emptypb.Empty, error) 416 CustomOptionsRequest(context.Context, *ABitOfEverything) (*emptypb.Empty, error) 417 TraceRequest(context.Context, *ABitOfEverything) (*ABitOfEverything, error) 418 PostOneofEnum(context.Context, *oneofenum.OneofEnumMessage) (*emptypb.Empty, error) 419 PostRequiredMessageType(context.Context, *RequiredMessageTypeRequest) (*emptypb.Empty, error) 420 } 421 422 // UnimplementedABitOfEverythingServiceServer should be embedded to have forward compatible implementations. 423 type UnimplementedABitOfEverythingServiceServer struct { 424 } 425 426 func (UnimplementedABitOfEverythingServiceServer) Create(context.Context, *ABitOfEverything) (*ABitOfEverything, error) { 427 return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") 428 } 429 func (UnimplementedABitOfEverythingServiceServer) CreateBody(context.Context, *ABitOfEverything) (*ABitOfEverything, error) { 430 return nil, status.Errorf(codes.Unimplemented, "method CreateBody not implemented") 431 } 432 func (UnimplementedABitOfEverythingServiceServer) CreateBook(context.Context, *CreateBookRequest) (*Book, error) { 433 return nil, status.Errorf(codes.Unimplemented, "method CreateBook not implemented") 434 } 435 func (UnimplementedABitOfEverythingServiceServer) UpdateBook(context.Context, *UpdateBookRequest) (*Book, error) { 436 return nil, status.Errorf(codes.Unimplemented, "method UpdateBook not implemented") 437 } 438 func (UnimplementedABitOfEverythingServiceServer) Lookup(context.Context, *sub2.IdMessage) (*ABitOfEverything, error) { 439 return nil, status.Errorf(codes.Unimplemented, "method Lookup not implemented") 440 } 441 func (UnimplementedABitOfEverythingServiceServer) Custom(context.Context, *ABitOfEverything) (*ABitOfEverything, error) { 442 return nil, status.Errorf(codes.Unimplemented, "method Custom not implemented") 443 } 444 func (UnimplementedABitOfEverythingServiceServer) DoubleColon(context.Context, *ABitOfEverything) (*ABitOfEverything, error) { 445 return nil, status.Errorf(codes.Unimplemented, "method DoubleColon not implemented") 446 } 447 func (UnimplementedABitOfEverythingServiceServer) Update(context.Context, *ABitOfEverything) (*emptypb.Empty, error) { 448 return nil, status.Errorf(codes.Unimplemented, "method Update not implemented") 449 } 450 func (UnimplementedABitOfEverythingServiceServer) UpdateV2(context.Context, *UpdateV2Request) (*emptypb.Empty, error) { 451 return nil, status.Errorf(codes.Unimplemented, "method UpdateV2 not implemented") 452 } 453 func (UnimplementedABitOfEverythingServiceServer) Delete(context.Context, *sub2.IdMessage) (*emptypb.Empty, error) { 454 return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") 455 } 456 func (UnimplementedABitOfEverythingServiceServer) GetQuery(context.Context, *ABitOfEverything) (*emptypb.Empty, error) { 457 return nil, status.Errorf(codes.Unimplemented, "method GetQuery not implemented") 458 } 459 func (UnimplementedABitOfEverythingServiceServer) GetRepeatedQuery(context.Context, *ABitOfEverythingRepeated) (*ABitOfEverythingRepeated, error) { 460 return nil, status.Errorf(codes.Unimplemented, "method GetRepeatedQuery not implemented") 461 } 462 func (UnimplementedABitOfEverythingServiceServer) Echo(context.Context, *sub.StringMessage) (*sub.StringMessage, error) { 463 return nil, status.Errorf(codes.Unimplemented, "method Echo not implemented") 464 } 465 func (UnimplementedABitOfEverythingServiceServer) DeepPathEcho(context.Context, *ABitOfEverything) (*ABitOfEverything, error) { 466 return nil, status.Errorf(codes.Unimplemented, "method DeepPathEcho not implemented") 467 } 468 func (UnimplementedABitOfEverythingServiceServer) NoBindings(context.Context, *durationpb.Duration) (*emptypb.Empty, error) { 469 return nil, status.Errorf(codes.Unimplemented, "method NoBindings not implemented") 470 } 471 func (UnimplementedABitOfEverythingServiceServer) Timeout(context.Context, *emptypb.Empty) (*emptypb.Empty, error) { 472 return nil, status.Errorf(codes.Unimplemented, "method Timeout not implemented") 473 } 474 func (UnimplementedABitOfEverythingServiceServer) ErrorWithDetails(context.Context, *emptypb.Empty) (*emptypb.Empty, error) { 475 return nil, status.Errorf(codes.Unimplemented, "method ErrorWithDetails not implemented") 476 } 477 func (UnimplementedABitOfEverythingServiceServer) GetMessageWithBody(context.Context, *MessageWithBody) (*emptypb.Empty, error) { 478 return nil, status.Errorf(codes.Unimplemented, "method GetMessageWithBody not implemented") 479 } 480 func (UnimplementedABitOfEverythingServiceServer) PostWithEmptyBody(context.Context, *Body) (*emptypb.Empty, error) { 481 return nil, status.Errorf(codes.Unimplemented, "method PostWithEmptyBody not implemented") 482 } 483 func (UnimplementedABitOfEverythingServiceServer) CheckGetQueryParams(context.Context, *ABitOfEverything) (*ABitOfEverything, error) { 484 return nil, status.Errorf(codes.Unimplemented, "method CheckGetQueryParams not implemented") 485 } 486 func (UnimplementedABitOfEverythingServiceServer) CheckNestedEnumGetQueryParams(context.Context, *ABitOfEverything) (*ABitOfEverything, error) { 487 return nil, status.Errorf(codes.Unimplemented, "method CheckNestedEnumGetQueryParams not implemented") 488 } 489 func (UnimplementedABitOfEverythingServiceServer) CheckPostQueryParams(context.Context, *ABitOfEverything) (*ABitOfEverything, error) { 490 return nil, status.Errorf(codes.Unimplemented, "method CheckPostQueryParams not implemented") 491 } 492 func (UnimplementedABitOfEverythingServiceServer) OverwriteRequestContentType(context.Context, *Body) (*emptypb.Empty, error) { 493 return nil, status.Errorf(codes.Unimplemented, "method OverwriteRequestContentType not implemented") 494 } 495 func (UnimplementedABitOfEverythingServiceServer) OverwriteResponseContentType(context.Context, *emptypb.Empty) (*wrapperspb.StringValue, error) { 496 return nil, status.Errorf(codes.Unimplemented, "method OverwriteResponseContentType not implemented") 497 } 498 func (UnimplementedABitOfEverythingServiceServer) CheckExternalPathEnum(context.Context, *pathenum.MessageWithPathEnum) (*emptypb.Empty, error) { 499 return nil, status.Errorf(codes.Unimplemented, "method CheckExternalPathEnum not implemented") 500 } 501 func (UnimplementedABitOfEverythingServiceServer) CheckExternalNestedPathEnum(context.Context, *pathenum.MessageWithNestedPathEnum) (*emptypb.Empty, error) { 502 return nil, status.Errorf(codes.Unimplemented, "method CheckExternalNestedPathEnum not implemented") 503 } 504 func (UnimplementedABitOfEverythingServiceServer) CheckStatus(context.Context, *emptypb.Empty) (*CheckStatusResponse, error) { 505 return nil, status.Errorf(codes.Unimplemented, "method CheckStatus not implemented") 506 } 507 func (UnimplementedABitOfEverythingServiceServer) Exists(context.Context, *ABitOfEverything) (*emptypb.Empty, error) { 508 return nil, status.Errorf(codes.Unimplemented, "method Exists not implemented") 509 } 510 func (UnimplementedABitOfEverythingServiceServer) CustomOptionsRequest(context.Context, *ABitOfEverything) (*emptypb.Empty, error) { 511 return nil, status.Errorf(codes.Unimplemented, "method CustomOptionsRequest not implemented") 512 } 513 func (UnimplementedABitOfEverythingServiceServer) TraceRequest(context.Context, *ABitOfEverything) (*ABitOfEverything, error) { 514 return nil, status.Errorf(codes.Unimplemented, "method TraceRequest not implemented") 515 } 516 func (UnimplementedABitOfEverythingServiceServer) PostOneofEnum(context.Context, *oneofenum.OneofEnumMessage) (*emptypb.Empty, error) { 517 return nil, status.Errorf(codes.Unimplemented, "method PostOneofEnum not implemented") 518 } 519 func (UnimplementedABitOfEverythingServiceServer) PostRequiredMessageType(context.Context, *RequiredMessageTypeRequest) (*emptypb.Empty, error) { 520 return nil, status.Errorf(codes.Unimplemented, "method PostRequiredMessageType not implemented") 521 } 522 523 // UnsafeABitOfEverythingServiceServer may be embedded to opt out of forward compatibility for this service. 524 // Use of this interface is not recommended, as added methods to ABitOfEverythingServiceServer will 525 // result in compilation errors. 526 type UnsafeABitOfEverythingServiceServer interface { 527 mustEmbedUnimplementedABitOfEverythingServiceServer() 528 } 529 530 func RegisterABitOfEverythingServiceServer(s grpc.ServiceRegistrar, srv ABitOfEverythingServiceServer) { 531 s.RegisterService(&ABitOfEverythingService_ServiceDesc, srv) 532 } 533 534 func _ABitOfEverythingService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 535 in := new(ABitOfEverything) 536 if err := dec(in); err != nil { 537 return nil, err 538 } 539 if interceptor == nil { 540 return srv.(ABitOfEverythingServiceServer).Create(ctx, in) 541 } 542 info := &grpc.UnaryServerInfo{ 543 Server: srv, 544 FullMethod: "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/Create", 545 } 546 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 547 return srv.(ABitOfEverythingServiceServer).Create(ctx, req.(*ABitOfEverything)) 548 } 549 return interceptor(ctx, in, info, handler) 550 } 551 552 func _ABitOfEverythingService_CreateBody_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 553 in := new(ABitOfEverything) 554 if err := dec(in); err != nil { 555 return nil, err 556 } 557 if interceptor == nil { 558 return srv.(ABitOfEverythingServiceServer).CreateBody(ctx, in) 559 } 560 info := &grpc.UnaryServerInfo{ 561 Server: srv, 562 FullMethod: "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/CreateBody", 563 } 564 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 565 return srv.(ABitOfEverythingServiceServer).CreateBody(ctx, req.(*ABitOfEverything)) 566 } 567 return interceptor(ctx, in, info, handler) 568 } 569 570 func _ABitOfEverythingService_CreateBook_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 571 in := new(CreateBookRequest) 572 if err := dec(in); err != nil { 573 return nil, err 574 } 575 if interceptor == nil { 576 return srv.(ABitOfEverythingServiceServer).CreateBook(ctx, in) 577 } 578 info := &grpc.UnaryServerInfo{ 579 Server: srv, 580 FullMethod: "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/CreateBook", 581 } 582 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 583 return srv.(ABitOfEverythingServiceServer).CreateBook(ctx, req.(*CreateBookRequest)) 584 } 585 return interceptor(ctx, in, info, handler) 586 } 587 588 func _ABitOfEverythingService_UpdateBook_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 589 in := new(UpdateBookRequest) 590 if err := dec(in); err != nil { 591 return nil, err 592 } 593 if interceptor == nil { 594 return srv.(ABitOfEverythingServiceServer).UpdateBook(ctx, in) 595 } 596 info := &grpc.UnaryServerInfo{ 597 Server: srv, 598 FullMethod: "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/UpdateBook", 599 } 600 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 601 return srv.(ABitOfEverythingServiceServer).UpdateBook(ctx, req.(*UpdateBookRequest)) 602 } 603 return interceptor(ctx, in, info, handler) 604 } 605 606 func _ABitOfEverythingService_Lookup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 607 in := new(sub2.IdMessage) 608 if err := dec(in); err != nil { 609 return nil, err 610 } 611 if interceptor == nil { 612 return srv.(ABitOfEverythingServiceServer).Lookup(ctx, in) 613 } 614 info := &grpc.UnaryServerInfo{ 615 Server: srv, 616 FullMethod: "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/Lookup", 617 } 618 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 619 return srv.(ABitOfEverythingServiceServer).Lookup(ctx, req.(*sub2.IdMessage)) 620 } 621 return interceptor(ctx, in, info, handler) 622 } 623 624 func _ABitOfEverythingService_Custom_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 625 in := new(ABitOfEverything) 626 if err := dec(in); err != nil { 627 return nil, err 628 } 629 if interceptor == nil { 630 return srv.(ABitOfEverythingServiceServer).Custom(ctx, in) 631 } 632 info := &grpc.UnaryServerInfo{ 633 Server: srv, 634 FullMethod: "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/Custom", 635 } 636 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 637 return srv.(ABitOfEverythingServiceServer).Custom(ctx, req.(*ABitOfEverything)) 638 } 639 return interceptor(ctx, in, info, handler) 640 } 641 642 func _ABitOfEverythingService_DoubleColon_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 643 in := new(ABitOfEverything) 644 if err := dec(in); err != nil { 645 return nil, err 646 } 647 if interceptor == nil { 648 return srv.(ABitOfEverythingServiceServer).DoubleColon(ctx, in) 649 } 650 info := &grpc.UnaryServerInfo{ 651 Server: srv, 652 FullMethod: "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/DoubleColon", 653 } 654 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 655 return srv.(ABitOfEverythingServiceServer).DoubleColon(ctx, req.(*ABitOfEverything)) 656 } 657 return interceptor(ctx, in, info, handler) 658 } 659 660 func _ABitOfEverythingService_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 661 in := new(ABitOfEverything) 662 if err := dec(in); err != nil { 663 return nil, err 664 } 665 if interceptor == nil { 666 return srv.(ABitOfEverythingServiceServer).Update(ctx, in) 667 } 668 info := &grpc.UnaryServerInfo{ 669 Server: srv, 670 FullMethod: "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/Update", 671 } 672 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 673 return srv.(ABitOfEverythingServiceServer).Update(ctx, req.(*ABitOfEverything)) 674 } 675 return interceptor(ctx, in, info, handler) 676 } 677 678 func _ABitOfEverythingService_UpdateV2_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 679 in := new(UpdateV2Request) 680 if err := dec(in); err != nil { 681 return nil, err 682 } 683 if interceptor == nil { 684 return srv.(ABitOfEverythingServiceServer).UpdateV2(ctx, in) 685 } 686 info := &grpc.UnaryServerInfo{ 687 Server: srv, 688 FullMethod: "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/UpdateV2", 689 } 690 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 691 return srv.(ABitOfEverythingServiceServer).UpdateV2(ctx, req.(*UpdateV2Request)) 692 } 693 return interceptor(ctx, in, info, handler) 694 } 695 696 func _ABitOfEverythingService_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 697 in := new(sub2.IdMessage) 698 if err := dec(in); err != nil { 699 return nil, err 700 } 701 if interceptor == nil { 702 return srv.(ABitOfEverythingServiceServer).Delete(ctx, in) 703 } 704 info := &grpc.UnaryServerInfo{ 705 Server: srv, 706 FullMethod: "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/Delete", 707 } 708 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 709 return srv.(ABitOfEverythingServiceServer).Delete(ctx, req.(*sub2.IdMessage)) 710 } 711 return interceptor(ctx, in, info, handler) 712 } 713 714 func _ABitOfEverythingService_GetQuery_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 715 in := new(ABitOfEverything) 716 if err := dec(in); err != nil { 717 return nil, err 718 } 719 if interceptor == nil { 720 return srv.(ABitOfEverythingServiceServer).GetQuery(ctx, in) 721 } 722 info := &grpc.UnaryServerInfo{ 723 Server: srv, 724 FullMethod: "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/GetQuery", 725 } 726 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 727 return srv.(ABitOfEverythingServiceServer).GetQuery(ctx, req.(*ABitOfEverything)) 728 } 729 return interceptor(ctx, in, info, handler) 730 } 731 732 func _ABitOfEverythingService_GetRepeatedQuery_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 733 in := new(ABitOfEverythingRepeated) 734 if err := dec(in); err != nil { 735 return nil, err 736 } 737 if interceptor == nil { 738 return srv.(ABitOfEverythingServiceServer).GetRepeatedQuery(ctx, in) 739 } 740 info := &grpc.UnaryServerInfo{ 741 Server: srv, 742 FullMethod: "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/GetRepeatedQuery", 743 } 744 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 745 return srv.(ABitOfEverythingServiceServer).GetRepeatedQuery(ctx, req.(*ABitOfEverythingRepeated)) 746 } 747 return interceptor(ctx, in, info, handler) 748 } 749 750 func _ABitOfEverythingService_Echo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 751 in := new(sub.StringMessage) 752 if err := dec(in); err != nil { 753 return nil, err 754 } 755 if interceptor == nil { 756 return srv.(ABitOfEverythingServiceServer).Echo(ctx, in) 757 } 758 info := &grpc.UnaryServerInfo{ 759 Server: srv, 760 FullMethod: "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/Echo", 761 } 762 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 763 return srv.(ABitOfEverythingServiceServer).Echo(ctx, req.(*sub.StringMessage)) 764 } 765 return interceptor(ctx, in, info, handler) 766 } 767 768 func _ABitOfEverythingService_DeepPathEcho_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 769 in := new(ABitOfEverything) 770 if err := dec(in); err != nil { 771 return nil, err 772 } 773 if interceptor == nil { 774 return srv.(ABitOfEverythingServiceServer).DeepPathEcho(ctx, in) 775 } 776 info := &grpc.UnaryServerInfo{ 777 Server: srv, 778 FullMethod: "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/DeepPathEcho", 779 } 780 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 781 return srv.(ABitOfEverythingServiceServer).DeepPathEcho(ctx, req.(*ABitOfEverything)) 782 } 783 return interceptor(ctx, in, info, handler) 784 } 785 786 func _ABitOfEverythingService_NoBindings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 787 in := new(durationpb.Duration) 788 if err := dec(in); err != nil { 789 return nil, err 790 } 791 if interceptor == nil { 792 return srv.(ABitOfEverythingServiceServer).NoBindings(ctx, in) 793 } 794 info := &grpc.UnaryServerInfo{ 795 Server: srv, 796 FullMethod: "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/NoBindings", 797 } 798 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 799 return srv.(ABitOfEverythingServiceServer).NoBindings(ctx, req.(*durationpb.Duration)) 800 } 801 return interceptor(ctx, in, info, handler) 802 } 803 804 func _ABitOfEverythingService_Timeout_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 805 in := new(emptypb.Empty) 806 if err := dec(in); err != nil { 807 return nil, err 808 } 809 if interceptor == nil { 810 return srv.(ABitOfEverythingServiceServer).Timeout(ctx, in) 811 } 812 info := &grpc.UnaryServerInfo{ 813 Server: srv, 814 FullMethod: "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/Timeout", 815 } 816 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 817 return srv.(ABitOfEverythingServiceServer).Timeout(ctx, req.(*emptypb.Empty)) 818 } 819 return interceptor(ctx, in, info, handler) 820 } 821 822 func _ABitOfEverythingService_ErrorWithDetails_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 823 in := new(emptypb.Empty) 824 if err := dec(in); err != nil { 825 return nil, err 826 } 827 if interceptor == nil { 828 return srv.(ABitOfEverythingServiceServer).ErrorWithDetails(ctx, in) 829 } 830 info := &grpc.UnaryServerInfo{ 831 Server: srv, 832 FullMethod: "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/ErrorWithDetails", 833 } 834 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 835 return srv.(ABitOfEverythingServiceServer).ErrorWithDetails(ctx, req.(*emptypb.Empty)) 836 } 837 return interceptor(ctx, in, info, handler) 838 } 839 840 func _ABitOfEverythingService_GetMessageWithBody_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 841 in := new(MessageWithBody) 842 if err := dec(in); err != nil { 843 return nil, err 844 } 845 if interceptor == nil { 846 return srv.(ABitOfEverythingServiceServer).GetMessageWithBody(ctx, in) 847 } 848 info := &grpc.UnaryServerInfo{ 849 Server: srv, 850 FullMethod: "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/GetMessageWithBody", 851 } 852 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 853 return srv.(ABitOfEverythingServiceServer).GetMessageWithBody(ctx, req.(*MessageWithBody)) 854 } 855 return interceptor(ctx, in, info, handler) 856 } 857 858 func _ABitOfEverythingService_PostWithEmptyBody_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 859 in := new(Body) 860 if err := dec(in); err != nil { 861 return nil, err 862 } 863 if interceptor == nil { 864 return srv.(ABitOfEverythingServiceServer).PostWithEmptyBody(ctx, in) 865 } 866 info := &grpc.UnaryServerInfo{ 867 Server: srv, 868 FullMethod: "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/PostWithEmptyBody", 869 } 870 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 871 return srv.(ABitOfEverythingServiceServer).PostWithEmptyBody(ctx, req.(*Body)) 872 } 873 return interceptor(ctx, in, info, handler) 874 } 875 876 func _ABitOfEverythingService_CheckGetQueryParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 877 in := new(ABitOfEverything) 878 if err := dec(in); err != nil { 879 return nil, err 880 } 881 if interceptor == nil { 882 return srv.(ABitOfEverythingServiceServer).CheckGetQueryParams(ctx, in) 883 } 884 info := &grpc.UnaryServerInfo{ 885 Server: srv, 886 FullMethod: "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/CheckGetQueryParams", 887 } 888 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 889 return srv.(ABitOfEverythingServiceServer).CheckGetQueryParams(ctx, req.(*ABitOfEverything)) 890 } 891 return interceptor(ctx, in, info, handler) 892 } 893 894 func _ABitOfEverythingService_CheckNestedEnumGetQueryParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 895 in := new(ABitOfEverything) 896 if err := dec(in); err != nil { 897 return nil, err 898 } 899 if interceptor == nil { 900 return srv.(ABitOfEverythingServiceServer).CheckNestedEnumGetQueryParams(ctx, in) 901 } 902 info := &grpc.UnaryServerInfo{ 903 Server: srv, 904 FullMethod: "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/CheckNestedEnumGetQueryParams", 905 } 906 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 907 return srv.(ABitOfEverythingServiceServer).CheckNestedEnumGetQueryParams(ctx, req.(*ABitOfEverything)) 908 } 909 return interceptor(ctx, in, info, handler) 910 } 911 912 func _ABitOfEverythingService_CheckPostQueryParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 913 in := new(ABitOfEverything) 914 if err := dec(in); err != nil { 915 return nil, err 916 } 917 if interceptor == nil { 918 return srv.(ABitOfEverythingServiceServer).CheckPostQueryParams(ctx, in) 919 } 920 info := &grpc.UnaryServerInfo{ 921 Server: srv, 922 FullMethod: "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/CheckPostQueryParams", 923 } 924 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 925 return srv.(ABitOfEverythingServiceServer).CheckPostQueryParams(ctx, req.(*ABitOfEverything)) 926 } 927 return interceptor(ctx, in, info, handler) 928 } 929 930 func _ABitOfEverythingService_OverwriteRequestContentType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 931 in := new(Body) 932 if err := dec(in); err != nil { 933 return nil, err 934 } 935 if interceptor == nil { 936 return srv.(ABitOfEverythingServiceServer).OverwriteRequestContentType(ctx, in) 937 } 938 info := &grpc.UnaryServerInfo{ 939 Server: srv, 940 FullMethod: "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/OverwriteRequestContentType", 941 } 942 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 943 return srv.(ABitOfEverythingServiceServer).OverwriteRequestContentType(ctx, req.(*Body)) 944 } 945 return interceptor(ctx, in, info, handler) 946 } 947 948 func _ABitOfEverythingService_OverwriteResponseContentType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 949 in := new(emptypb.Empty) 950 if err := dec(in); err != nil { 951 return nil, err 952 } 953 if interceptor == nil { 954 return srv.(ABitOfEverythingServiceServer).OverwriteResponseContentType(ctx, in) 955 } 956 info := &grpc.UnaryServerInfo{ 957 Server: srv, 958 FullMethod: "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/OverwriteResponseContentType", 959 } 960 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 961 return srv.(ABitOfEverythingServiceServer).OverwriteResponseContentType(ctx, req.(*emptypb.Empty)) 962 } 963 return interceptor(ctx, in, info, handler) 964 } 965 966 func _ABitOfEverythingService_CheckExternalPathEnum_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 967 in := new(pathenum.MessageWithPathEnum) 968 if err := dec(in); err != nil { 969 return nil, err 970 } 971 if interceptor == nil { 972 return srv.(ABitOfEverythingServiceServer).CheckExternalPathEnum(ctx, in) 973 } 974 info := &grpc.UnaryServerInfo{ 975 Server: srv, 976 FullMethod: "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/CheckExternalPathEnum", 977 } 978 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 979 return srv.(ABitOfEverythingServiceServer).CheckExternalPathEnum(ctx, req.(*pathenum.MessageWithPathEnum)) 980 } 981 return interceptor(ctx, in, info, handler) 982 } 983 984 func _ABitOfEverythingService_CheckExternalNestedPathEnum_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 985 in := new(pathenum.MessageWithNestedPathEnum) 986 if err := dec(in); err != nil { 987 return nil, err 988 } 989 if interceptor == nil { 990 return srv.(ABitOfEverythingServiceServer).CheckExternalNestedPathEnum(ctx, in) 991 } 992 info := &grpc.UnaryServerInfo{ 993 Server: srv, 994 FullMethod: "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/CheckExternalNestedPathEnum", 995 } 996 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 997 return srv.(ABitOfEverythingServiceServer).CheckExternalNestedPathEnum(ctx, req.(*pathenum.MessageWithNestedPathEnum)) 998 } 999 return interceptor(ctx, in, info, handler) 1000 } 1001 1002 func _ABitOfEverythingService_CheckStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1003 in := new(emptypb.Empty) 1004 if err := dec(in); err != nil { 1005 return nil, err 1006 } 1007 if interceptor == nil { 1008 return srv.(ABitOfEverythingServiceServer).CheckStatus(ctx, in) 1009 } 1010 info := &grpc.UnaryServerInfo{ 1011 Server: srv, 1012 FullMethod: "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/CheckStatus", 1013 } 1014 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1015 return srv.(ABitOfEverythingServiceServer).CheckStatus(ctx, req.(*emptypb.Empty)) 1016 } 1017 return interceptor(ctx, in, info, handler) 1018 } 1019 1020 func _ABitOfEverythingService_Exists_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1021 in := new(ABitOfEverything) 1022 if err := dec(in); err != nil { 1023 return nil, err 1024 } 1025 if interceptor == nil { 1026 return srv.(ABitOfEverythingServiceServer).Exists(ctx, in) 1027 } 1028 info := &grpc.UnaryServerInfo{ 1029 Server: srv, 1030 FullMethod: "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/Exists", 1031 } 1032 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1033 return srv.(ABitOfEverythingServiceServer).Exists(ctx, req.(*ABitOfEverything)) 1034 } 1035 return interceptor(ctx, in, info, handler) 1036 } 1037 1038 func _ABitOfEverythingService_CustomOptionsRequest_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1039 in := new(ABitOfEverything) 1040 if err := dec(in); err != nil { 1041 return nil, err 1042 } 1043 if interceptor == nil { 1044 return srv.(ABitOfEverythingServiceServer).CustomOptionsRequest(ctx, in) 1045 } 1046 info := &grpc.UnaryServerInfo{ 1047 Server: srv, 1048 FullMethod: "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/CustomOptionsRequest", 1049 } 1050 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1051 return srv.(ABitOfEverythingServiceServer).CustomOptionsRequest(ctx, req.(*ABitOfEverything)) 1052 } 1053 return interceptor(ctx, in, info, handler) 1054 } 1055 1056 func _ABitOfEverythingService_TraceRequest_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1057 in := new(ABitOfEverything) 1058 if err := dec(in); err != nil { 1059 return nil, err 1060 } 1061 if interceptor == nil { 1062 return srv.(ABitOfEverythingServiceServer).TraceRequest(ctx, in) 1063 } 1064 info := &grpc.UnaryServerInfo{ 1065 Server: srv, 1066 FullMethod: "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/TraceRequest", 1067 } 1068 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1069 return srv.(ABitOfEverythingServiceServer).TraceRequest(ctx, req.(*ABitOfEverything)) 1070 } 1071 return interceptor(ctx, in, info, handler) 1072 } 1073 1074 func _ABitOfEverythingService_PostOneofEnum_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1075 in := new(oneofenum.OneofEnumMessage) 1076 if err := dec(in); err != nil { 1077 return nil, err 1078 } 1079 if interceptor == nil { 1080 return srv.(ABitOfEverythingServiceServer).PostOneofEnum(ctx, in) 1081 } 1082 info := &grpc.UnaryServerInfo{ 1083 Server: srv, 1084 FullMethod: "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/PostOneofEnum", 1085 } 1086 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1087 return srv.(ABitOfEverythingServiceServer).PostOneofEnum(ctx, req.(*oneofenum.OneofEnumMessage)) 1088 } 1089 return interceptor(ctx, in, info, handler) 1090 } 1091 1092 func _ABitOfEverythingService_PostRequiredMessageType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1093 in := new(RequiredMessageTypeRequest) 1094 if err := dec(in); err != nil { 1095 return nil, err 1096 } 1097 if interceptor == nil { 1098 return srv.(ABitOfEverythingServiceServer).PostRequiredMessageType(ctx, in) 1099 } 1100 info := &grpc.UnaryServerInfo{ 1101 Server: srv, 1102 FullMethod: "/grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService/PostRequiredMessageType", 1103 } 1104 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1105 return srv.(ABitOfEverythingServiceServer).PostRequiredMessageType(ctx, req.(*RequiredMessageTypeRequest)) 1106 } 1107 return interceptor(ctx, in, info, handler) 1108 } 1109 1110 // ABitOfEverythingService_ServiceDesc is the grpc.ServiceDesc for ABitOfEverythingService service. 1111 // It's only intended for direct use with grpc.RegisterService, 1112 // and not to be introspected or modified (even as a copy) 1113 var ABitOfEverythingService_ServiceDesc = grpc.ServiceDesc{ 1114 ServiceName: "grpc.gateway.examples.internal.proto.examplepb.ABitOfEverythingService", 1115 HandlerType: (*ABitOfEverythingServiceServer)(nil), 1116 Methods: []grpc.MethodDesc{ 1117 { 1118 MethodName: "Create", 1119 Handler: _ABitOfEverythingService_Create_Handler, 1120 }, 1121 { 1122 MethodName: "CreateBody", 1123 Handler: _ABitOfEverythingService_CreateBody_Handler, 1124 }, 1125 { 1126 MethodName: "CreateBook", 1127 Handler: _ABitOfEverythingService_CreateBook_Handler, 1128 }, 1129 { 1130 MethodName: "UpdateBook", 1131 Handler: _ABitOfEverythingService_UpdateBook_Handler, 1132 }, 1133 { 1134 MethodName: "Lookup", 1135 Handler: _ABitOfEverythingService_Lookup_Handler, 1136 }, 1137 { 1138 MethodName: "Custom", 1139 Handler: _ABitOfEverythingService_Custom_Handler, 1140 }, 1141 { 1142 MethodName: "DoubleColon", 1143 Handler: _ABitOfEverythingService_DoubleColon_Handler, 1144 }, 1145 { 1146 MethodName: "Update", 1147 Handler: _ABitOfEverythingService_Update_Handler, 1148 }, 1149 { 1150 MethodName: "UpdateV2", 1151 Handler: _ABitOfEverythingService_UpdateV2_Handler, 1152 }, 1153 { 1154 MethodName: "Delete", 1155 Handler: _ABitOfEverythingService_Delete_Handler, 1156 }, 1157 { 1158 MethodName: "GetQuery", 1159 Handler: _ABitOfEverythingService_GetQuery_Handler, 1160 }, 1161 { 1162 MethodName: "GetRepeatedQuery", 1163 Handler: _ABitOfEverythingService_GetRepeatedQuery_Handler, 1164 }, 1165 { 1166 MethodName: "Echo", 1167 Handler: _ABitOfEverythingService_Echo_Handler, 1168 }, 1169 { 1170 MethodName: "DeepPathEcho", 1171 Handler: _ABitOfEverythingService_DeepPathEcho_Handler, 1172 }, 1173 { 1174 MethodName: "NoBindings", 1175 Handler: _ABitOfEverythingService_NoBindings_Handler, 1176 }, 1177 { 1178 MethodName: "Timeout", 1179 Handler: _ABitOfEverythingService_Timeout_Handler, 1180 }, 1181 { 1182 MethodName: "ErrorWithDetails", 1183 Handler: _ABitOfEverythingService_ErrorWithDetails_Handler, 1184 }, 1185 { 1186 MethodName: "GetMessageWithBody", 1187 Handler: _ABitOfEverythingService_GetMessageWithBody_Handler, 1188 }, 1189 { 1190 MethodName: "PostWithEmptyBody", 1191 Handler: _ABitOfEverythingService_PostWithEmptyBody_Handler, 1192 }, 1193 { 1194 MethodName: "CheckGetQueryParams", 1195 Handler: _ABitOfEverythingService_CheckGetQueryParams_Handler, 1196 }, 1197 { 1198 MethodName: "CheckNestedEnumGetQueryParams", 1199 Handler: _ABitOfEverythingService_CheckNestedEnumGetQueryParams_Handler, 1200 }, 1201 { 1202 MethodName: "CheckPostQueryParams", 1203 Handler: _ABitOfEverythingService_CheckPostQueryParams_Handler, 1204 }, 1205 { 1206 MethodName: "OverwriteRequestContentType", 1207 Handler: _ABitOfEverythingService_OverwriteRequestContentType_Handler, 1208 }, 1209 { 1210 MethodName: "OverwriteResponseContentType", 1211 Handler: _ABitOfEverythingService_OverwriteResponseContentType_Handler, 1212 }, 1213 { 1214 MethodName: "CheckExternalPathEnum", 1215 Handler: _ABitOfEverythingService_CheckExternalPathEnum_Handler, 1216 }, 1217 { 1218 MethodName: "CheckExternalNestedPathEnum", 1219 Handler: _ABitOfEverythingService_CheckExternalNestedPathEnum_Handler, 1220 }, 1221 { 1222 MethodName: "CheckStatus", 1223 Handler: _ABitOfEverythingService_CheckStatus_Handler, 1224 }, 1225 { 1226 MethodName: "Exists", 1227 Handler: _ABitOfEverythingService_Exists_Handler, 1228 }, 1229 { 1230 MethodName: "CustomOptionsRequest", 1231 Handler: _ABitOfEverythingService_CustomOptionsRequest_Handler, 1232 }, 1233 { 1234 MethodName: "TraceRequest", 1235 Handler: _ABitOfEverythingService_TraceRequest_Handler, 1236 }, 1237 { 1238 MethodName: "PostOneofEnum", 1239 Handler: _ABitOfEverythingService_PostOneofEnum_Handler, 1240 }, 1241 { 1242 MethodName: "PostRequiredMessageType", 1243 Handler: _ABitOfEverythingService_PostRequiredMessageType_Handler, 1244 }, 1245 }, 1246 Streams: []grpc.StreamDesc{}, 1247 Metadata: "examples/internal/proto/examplepb/a_bit_of_everything.proto", 1248 } 1249 1250 // CamelCaseServiceNameClient is the client API for CamelCaseServiceName service. 1251 // 1252 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. 1253 type CamelCaseServiceNameClient interface { 1254 Empty(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) 1255 } 1256 1257 type camelCaseServiceNameClient struct { 1258 cc grpc.ClientConnInterface 1259 } 1260 1261 func NewCamelCaseServiceNameClient(cc grpc.ClientConnInterface) CamelCaseServiceNameClient { 1262 return &camelCaseServiceNameClient{cc} 1263 } 1264 1265 func (c *camelCaseServiceNameClient) Empty(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) { 1266 out := new(emptypb.Empty) 1267 err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.proto.examplepb.camelCaseServiceName/Empty", in, out, opts...) 1268 if err != nil { 1269 return nil, err 1270 } 1271 return out, nil 1272 } 1273 1274 // CamelCaseServiceNameServer is the server API for CamelCaseServiceName service. 1275 // All implementations should embed UnimplementedCamelCaseServiceNameServer 1276 // for forward compatibility 1277 type CamelCaseServiceNameServer interface { 1278 Empty(context.Context, *emptypb.Empty) (*emptypb.Empty, error) 1279 } 1280 1281 // UnimplementedCamelCaseServiceNameServer should be embedded to have forward compatible implementations. 1282 type UnimplementedCamelCaseServiceNameServer struct { 1283 } 1284 1285 func (UnimplementedCamelCaseServiceNameServer) Empty(context.Context, *emptypb.Empty) (*emptypb.Empty, error) { 1286 return nil, status.Errorf(codes.Unimplemented, "method Empty not implemented") 1287 } 1288 1289 // UnsafeCamelCaseServiceNameServer may be embedded to opt out of forward compatibility for this service. 1290 // Use of this interface is not recommended, as added methods to CamelCaseServiceNameServer will 1291 // result in compilation errors. 1292 type UnsafeCamelCaseServiceNameServer interface { 1293 mustEmbedUnimplementedCamelCaseServiceNameServer() 1294 } 1295 1296 func RegisterCamelCaseServiceNameServer(s grpc.ServiceRegistrar, srv CamelCaseServiceNameServer) { 1297 s.RegisterService(&CamelCaseServiceName_ServiceDesc, srv) 1298 } 1299 1300 func _CamelCaseServiceName_Empty_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1301 in := new(emptypb.Empty) 1302 if err := dec(in); err != nil { 1303 return nil, err 1304 } 1305 if interceptor == nil { 1306 return srv.(CamelCaseServiceNameServer).Empty(ctx, in) 1307 } 1308 info := &grpc.UnaryServerInfo{ 1309 Server: srv, 1310 FullMethod: "/grpc.gateway.examples.internal.proto.examplepb.camelCaseServiceName/Empty", 1311 } 1312 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1313 return srv.(CamelCaseServiceNameServer).Empty(ctx, req.(*emptypb.Empty)) 1314 } 1315 return interceptor(ctx, in, info, handler) 1316 } 1317 1318 // CamelCaseServiceName_ServiceDesc is the grpc.ServiceDesc for CamelCaseServiceName service. 1319 // It's only intended for direct use with grpc.RegisterService, 1320 // and not to be introspected or modified (even as a copy) 1321 var CamelCaseServiceName_ServiceDesc = grpc.ServiceDesc{ 1322 ServiceName: "grpc.gateway.examples.internal.proto.examplepb.camelCaseServiceName", 1323 HandlerType: (*CamelCaseServiceNameServer)(nil), 1324 Methods: []grpc.MethodDesc{ 1325 { 1326 MethodName: "Empty", 1327 Handler: _CamelCaseServiceName_Empty_Handler, 1328 }, 1329 }, 1330 Streams: []grpc.StreamDesc{}, 1331 Metadata: "examples/internal/proto/examplepb/a_bit_of_everything.proto", 1332 } 1333 1334 // AnotherServiceWithNoBindingsClient is the client API for AnotherServiceWithNoBindings service. 1335 // 1336 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. 1337 type AnotherServiceWithNoBindingsClient interface { 1338 NoBindings(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) 1339 } 1340 1341 type anotherServiceWithNoBindingsClient struct { 1342 cc grpc.ClientConnInterface 1343 } 1344 1345 func NewAnotherServiceWithNoBindingsClient(cc grpc.ClientConnInterface) AnotherServiceWithNoBindingsClient { 1346 return &anotherServiceWithNoBindingsClient{cc} 1347 } 1348 1349 func (c *anotherServiceWithNoBindingsClient) NoBindings(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) { 1350 out := new(emptypb.Empty) 1351 err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.proto.examplepb.AnotherServiceWithNoBindings/NoBindings", in, out, opts...) 1352 if err != nil { 1353 return nil, err 1354 } 1355 return out, nil 1356 } 1357 1358 // AnotherServiceWithNoBindingsServer is the server API for AnotherServiceWithNoBindings service. 1359 // All implementations should embed UnimplementedAnotherServiceWithNoBindingsServer 1360 // for forward compatibility 1361 type AnotherServiceWithNoBindingsServer interface { 1362 NoBindings(context.Context, *emptypb.Empty) (*emptypb.Empty, error) 1363 } 1364 1365 // UnimplementedAnotherServiceWithNoBindingsServer should be embedded to have forward compatible implementations. 1366 type UnimplementedAnotherServiceWithNoBindingsServer struct { 1367 } 1368 1369 func (UnimplementedAnotherServiceWithNoBindingsServer) NoBindings(context.Context, *emptypb.Empty) (*emptypb.Empty, error) { 1370 return nil, status.Errorf(codes.Unimplemented, "method NoBindings not implemented") 1371 } 1372 1373 // UnsafeAnotherServiceWithNoBindingsServer may be embedded to opt out of forward compatibility for this service. 1374 // Use of this interface is not recommended, as added methods to AnotherServiceWithNoBindingsServer will 1375 // result in compilation errors. 1376 type UnsafeAnotherServiceWithNoBindingsServer interface { 1377 mustEmbedUnimplementedAnotherServiceWithNoBindingsServer() 1378 } 1379 1380 func RegisterAnotherServiceWithNoBindingsServer(s grpc.ServiceRegistrar, srv AnotherServiceWithNoBindingsServer) { 1381 s.RegisterService(&AnotherServiceWithNoBindings_ServiceDesc, srv) 1382 } 1383 1384 func _AnotherServiceWithNoBindings_NoBindings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1385 in := new(emptypb.Empty) 1386 if err := dec(in); err != nil { 1387 return nil, err 1388 } 1389 if interceptor == nil { 1390 return srv.(AnotherServiceWithNoBindingsServer).NoBindings(ctx, in) 1391 } 1392 info := &grpc.UnaryServerInfo{ 1393 Server: srv, 1394 FullMethod: "/grpc.gateway.examples.internal.proto.examplepb.AnotherServiceWithNoBindings/NoBindings", 1395 } 1396 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1397 return srv.(AnotherServiceWithNoBindingsServer).NoBindings(ctx, req.(*emptypb.Empty)) 1398 } 1399 return interceptor(ctx, in, info, handler) 1400 } 1401 1402 // AnotherServiceWithNoBindings_ServiceDesc is the grpc.ServiceDesc for AnotherServiceWithNoBindings service. 1403 // It's only intended for direct use with grpc.RegisterService, 1404 // and not to be introspected or modified (even as a copy) 1405 var AnotherServiceWithNoBindings_ServiceDesc = grpc.ServiceDesc{ 1406 ServiceName: "grpc.gateway.examples.internal.proto.examplepb.AnotherServiceWithNoBindings", 1407 HandlerType: (*AnotherServiceWithNoBindingsServer)(nil), 1408 Methods: []grpc.MethodDesc{ 1409 { 1410 MethodName: "NoBindings", 1411 Handler: _AnotherServiceWithNoBindings_NoBindings_Handler, 1412 }, 1413 }, 1414 Streams: []grpc.StreamDesc{}, 1415 Metadata: "examples/internal/proto/examplepb/a_bit_of_everything.proto", 1416 } 1417 1418 // SnakeEnumServiceClient is the client API for SnakeEnumService service. 1419 // 1420 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. 1421 type SnakeEnumServiceClient interface { 1422 SnakeEnum(ctx context.Context, in *SnakeEnumRequest, opts ...grpc.CallOption) (*SnakeEnumResponse, error) 1423 } 1424 1425 type snakeEnumServiceClient struct { 1426 cc grpc.ClientConnInterface 1427 } 1428 1429 func NewSnakeEnumServiceClient(cc grpc.ClientConnInterface) SnakeEnumServiceClient { 1430 return &snakeEnumServiceClient{cc} 1431 } 1432 1433 func (c *snakeEnumServiceClient) SnakeEnum(ctx context.Context, in *SnakeEnumRequest, opts ...grpc.CallOption) (*SnakeEnumResponse, error) { 1434 out := new(SnakeEnumResponse) 1435 err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.proto.examplepb.SnakeEnumService/SnakeEnum", in, out, opts...) 1436 if err != nil { 1437 return nil, err 1438 } 1439 return out, nil 1440 } 1441 1442 // SnakeEnumServiceServer is the server API for SnakeEnumService service. 1443 // All implementations should embed UnimplementedSnakeEnumServiceServer 1444 // for forward compatibility 1445 type SnakeEnumServiceServer interface { 1446 SnakeEnum(context.Context, *SnakeEnumRequest) (*SnakeEnumResponse, error) 1447 } 1448 1449 // UnimplementedSnakeEnumServiceServer should be embedded to have forward compatible implementations. 1450 type UnimplementedSnakeEnumServiceServer struct { 1451 } 1452 1453 func (UnimplementedSnakeEnumServiceServer) SnakeEnum(context.Context, *SnakeEnumRequest) (*SnakeEnumResponse, error) { 1454 return nil, status.Errorf(codes.Unimplemented, "method SnakeEnum not implemented") 1455 } 1456 1457 // UnsafeSnakeEnumServiceServer may be embedded to opt out of forward compatibility for this service. 1458 // Use of this interface is not recommended, as added methods to SnakeEnumServiceServer will 1459 // result in compilation errors. 1460 type UnsafeSnakeEnumServiceServer interface { 1461 mustEmbedUnimplementedSnakeEnumServiceServer() 1462 } 1463 1464 func RegisterSnakeEnumServiceServer(s grpc.ServiceRegistrar, srv SnakeEnumServiceServer) { 1465 s.RegisterService(&SnakeEnumService_ServiceDesc, srv) 1466 } 1467 1468 func _SnakeEnumService_SnakeEnum_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1469 in := new(SnakeEnumRequest) 1470 if err := dec(in); err != nil { 1471 return nil, err 1472 } 1473 if interceptor == nil { 1474 return srv.(SnakeEnumServiceServer).SnakeEnum(ctx, in) 1475 } 1476 info := &grpc.UnaryServerInfo{ 1477 Server: srv, 1478 FullMethod: "/grpc.gateway.examples.internal.proto.examplepb.SnakeEnumService/SnakeEnum", 1479 } 1480 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1481 return srv.(SnakeEnumServiceServer).SnakeEnum(ctx, req.(*SnakeEnumRequest)) 1482 } 1483 return interceptor(ctx, in, info, handler) 1484 } 1485 1486 // SnakeEnumService_ServiceDesc is the grpc.ServiceDesc for SnakeEnumService service. 1487 // It's only intended for direct use with grpc.RegisterService, 1488 // and not to be introspected or modified (even as a copy) 1489 var SnakeEnumService_ServiceDesc = grpc.ServiceDesc{ 1490 ServiceName: "grpc.gateway.examples.internal.proto.examplepb.SnakeEnumService", 1491 HandlerType: (*SnakeEnumServiceServer)(nil), 1492 Methods: []grpc.MethodDesc{ 1493 { 1494 MethodName: "SnakeEnum", 1495 Handler: _SnakeEnumService_SnakeEnum_Handler, 1496 }, 1497 }, 1498 Streams: []grpc.StreamDesc{}, 1499 Metadata: "examples/internal/proto/examplepb/a_bit_of_everything.proto", 1500 }