| 1 |
// Copyright 2025 Google LLC |
| 2 |
// |
| 3 |
// Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 |
// you may not use this file except in compliance with the License. |
| 5 |
// You may obtain a copy of the License at |
| 6 |
// |
| 7 |
// http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
// |
| 9 |
// Unless required by applicable law or agreed to in writing, software |
| 10 |
// distributed under the License is distributed on an "AS IS" BASIS, |
| 11 |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 |
// See the License for the specific language governing permissions and |
| 13 |
// limitations under the License. |
| 14 |
|
| 15 |
// Code generated by protoc-gen-go-grpc. DO NOT EDIT. |
| 16 |
// versions: |
| 17 |
// - protoc-gen-go-grpc v1.3.0 |
| 18 |
// - protoc v4.25.7 |
| 19 |
// source: google/cloud/apigateway/v1/apigateway_service.proto |
| 20 |
|
| 21 |
package apigatewaypb |
| 22 |
|
| 23 |
import ( |
| 24 |
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb" |
| 25 |
context "context" |
| 26 |
grpc "google.golang.org/grpc" |
| 27 |
codes "google.golang.org/grpc/codes" |
| 28 |
status "google.golang.org/grpc/status" |
| 29 |
) |
| 30 |
|
| 31 |
// This is a compile-time assertion to ensure that this generated file |
| 32 |
// is compatible with the grpc package it is being compiled against. |
| 33 |
// Requires gRPC-Go v1.32.0 or later. |
| 34 |
const _ = grpc.SupportPackageIsVersion7 |
| 35 |
|
| 36 |
const ( |
| 37 |
ApiGatewayService_ListGateways_FullMethodName = "/google.cloud.apigateway.v1.ApiGatewayService/ListGateways" |
| 38 |
ApiGatewayService_GetGateway_FullMethodName = "/google.cloud.apigateway.v1.ApiGatewayService/GetGateway" |
| 39 |
ApiGatewayService_CreateGateway_FullMethodName = "/google.cloud.apigateway.v1.ApiGatewayService/CreateGateway" |
| 40 |
ApiGatewayService_UpdateGateway_FullMethodName = "/google.cloud.apigateway.v1.ApiGatewayService/UpdateGateway" |
| 41 |
ApiGatewayService_DeleteGateway_FullMethodName = "/google.cloud.apigateway.v1.ApiGatewayService/DeleteGateway" |
| 42 |
ApiGatewayService_ListApis_FullMethodName = "/google.cloud.apigateway.v1.ApiGatewayService/ListApis" |
| 43 |
ApiGatewayService_GetApi_FullMethodName = "/google.cloud.apigateway.v1.ApiGatewayService/GetApi" |
| 44 |
ApiGatewayService_CreateApi_FullMethodName = "/google.cloud.apigateway.v1.ApiGatewayService/CreateApi" |
| 45 |
ApiGatewayService_UpdateApi_FullMethodName = "/google.cloud.apigateway.v1.ApiGatewayService/UpdateApi" |
| 46 |
ApiGatewayService_DeleteApi_FullMethodName = "/google.cloud.apigateway.v1.ApiGatewayService/DeleteApi" |
| 47 |
ApiGatewayService_ListApiConfigs_FullMethodName = "/google.cloud.apigateway.v1.ApiGatewayService/ListApiConfigs" |
| 48 |
ApiGatewayService_GetApiConfig_FullMethodName = "/google.cloud.apigateway.v1.ApiGatewayService/GetApiConfig" |
| 49 |
ApiGatewayService_CreateApiConfig_FullMethodName = "/google.cloud.apigateway.v1.ApiGatewayService/CreateApiConfig" |
| 50 |
ApiGatewayService_UpdateApiConfig_FullMethodName = "/google.cloud.apigateway.v1.ApiGatewayService/UpdateApiConfig" |
| 51 |
ApiGatewayService_DeleteApiConfig_FullMethodName = "/google.cloud.apigateway.v1.ApiGatewayService/DeleteApiConfig" |
| 52 |
) |
| 53 |
|
| 54 |
// ApiGatewayServiceClient is the client API for ApiGatewayService service. |
| 55 |
// |
| 56 |
// 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. |
| 57 |
type ApiGatewayServiceClient interface { |
| 58 |
// Lists Gateways in a given project and location. |
| 59 |
ListGateways(ctx context.Context, in *ListGatewaysRequest, opts ...grpc.CallOption) (*ListGatewaysResponse, error) |
| 60 |
// Gets details of a single Gateway. |
| 61 |
GetGateway(ctx context.Context, in *GetGatewayRequest, opts ...grpc.CallOption) (*Gateway, error) |
| 62 |
// Creates a new Gateway in a given project and location. |
| 63 |
CreateGateway(ctx context.Context, in *CreateGatewayRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 64 |
// Updates the parameters of a single Gateway. |
| 65 |
UpdateGateway(ctx context.Context, in *UpdateGatewayRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 66 |
// Deletes a single Gateway. |
| 67 |
DeleteGateway(ctx context.Context, in *DeleteGatewayRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 68 |
// Lists Apis in a given project and location. |
| 69 |
ListApis(ctx context.Context, in *ListApisRequest, opts ...grpc.CallOption) (*ListApisResponse, error) |
| 70 |
// Gets details of a single Api. |
| 71 |
GetApi(ctx context.Context, in *GetApiRequest, opts ...grpc.CallOption) (*Api, error) |
| 72 |
// Creates a new Api in a given project and location. |
| 73 |
CreateApi(ctx context.Context, in *CreateApiRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 74 |
// Updates the parameters of a single Api. |
| 75 |
UpdateApi(ctx context.Context, in *UpdateApiRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 76 |
// Deletes a single Api. |
| 77 |
DeleteApi(ctx context.Context, in *DeleteApiRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 78 |
// Lists ApiConfigs in a given project and location. |
| 79 |
ListApiConfigs(ctx context.Context, in *ListApiConfigsRequest, opts ...grpc.CallOption) (*ListApiConfigsResponse, error) |
| 80 |
// Gets details of a single ApiConfig. |
| 81 |
GetApiConfig(ctx context.Context, in *GetApiConfigRequest, opts ...grpc.CallOption) (*ApiConfig, error) |
| 82 |
// Creates a new ApiConfig in a given project and location. |
| 83 |
CreateApiConfig(ctx context.Context, in *CreateApiConfigRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 84 |
// Updates the parameters of a single ApiConfig. |
| 85 |
UpdateApiConfig(ctx context.Context, in *UpdateApiConfigRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 86 |
// Deletes a single ApiConfig. |
| 87 |
DeleteApiConfig(ctx context.Context, in *DeleteApiConfigRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 88 |
} |
| 89 |
|
| 90 |
type apiGatewayServiceClient struct { |
| 91 |
cc grpc.ClientConnInterface |
| 92 |
} |
| 93 |
|
| 94 |
func NewApiGatewayServiceClient(cc grpc.ClientConnInterface) ApiGatewayServiceClient { |
| 95 |
return &apiGatewayServiceClient{cc} |
| 96 |
} |
| 97 |
|
| 98 |
func (c *apiGatewayServiceClient) ListGateways(ctx context.Context, in *ListGatewaysRequest, opts ...grpc.CallOption) (*ListGatewaysResponse, error) { |
| 99 |
out := new(ListGatewaysResponse) |
| 100 |
err := c.cc.Invoke(ctx, ApiGatewayService_ListGateways_FullMethodName, in, out, opts...) |
| 101 |
if err != nil { |
| 102 |
return nil, err |
| 103 |
} |
| 104 |
return out, nil |
| 105 |
} |
| 106 |
|
| 107 |
func (c *apiGatewayServiceClient) GetGateway(ctx context.Context, in *GetGatewayRequest, opts ...grpc.CallOption) (*Gateway, error) { |
| 108 |
out := new(Gateway) |
| 109 |
err := c.cc.Invoke(ctx, ApiGatewayService_GetGateway_FullMethodName, in, out, opts...) |
| 110 |
if err != nil { |
| 111 |
return nil, err |
| 112 |
} |
| 113 |
return out, nil |
| 114 |
} |
| 115 |
|
| 116 |
func (c *apiGatewayServiceClient) CreateGateway(ctx context.Context, in *CreateGatewayRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 117 |
out := new(longrunningpb.Operation) |
| 118 |
err := c.cc.Invoke(ctx, ApiGatewayService_CreateGateway_FullMethodName, in, out, opts...) |
| 119 |
if err != nil { |
| 120 |
return nil, err |
| 121 |
} |
| 122 |
return out, nil |
| 123 |
} |
| 124 |
|
| 125 |
func (c *apiGatewayServiceClient) UpdateGateway(ctx context.Context, in *UpdateGatewayRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 126 |
out := new(longrunningpb.Operation) |
| 127 |
err := c.cc.Invoke(ctx, ApiGatewayService_UpdateGateway_FullMethodName, in, out, opts...) |
| 128 |
if err != nil { |
| 129 |
return nil, err |
| 130 |
} |
| 131 |
return out, nil |
| 132 |
} |
| 133 |
|
| 134 |
func (c *apiGatewayServiceClient) DeleteGateway(ctx context.Context, in *DeleteGatewayRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 135 |
out := new(longrunningpb.Operation) |
| 136 |
err := c.cc.Invoke(ctx, ApiGatewayService_DeleteGateway_FullMethodName, in, out, opts...) |
| 137 |
if err != nil { |
| 138 |
return nil, err |
| 139 |
} |
| 140 |
return out, nil |
| 141 |
} |
| 142 |
|
| 143 |
func (c *apiGatewayServiceClient) ListApis(ctx context.Context, in *ListApisRequest, opts ...grpc.CallOption) (*ListApisResponse, error) { |
| 144 |
out := new(ListApisResponse) |
| 145 |
err := c.cc.Invoke(ctx, ApiGatewayService_ListApis_FullMethodName, in, out, opts...) |
| 146 |
if err != nil { |
| 147 |
return nil, err |
| 148 |
} |
| 149 |
return out, nil |
| 150 |
} |
| 151 |
|
| 152 |
func (c *apiGatewayServiceClient) GetApi(ctx context.Context, in *GetApiRequest, opts ...grpc.CallOption) (*Api, error) { |
| 153 |
out := new(Api) |
| 154 |
err := c.cc.Invoke(ctx, ApiGatewayService_GetApi_FullMethodName, in, out, opts...) |
| 155 |
if err != nil { |
| 156 |
return nil, err |
| 157 |
} |
| 158 |
return out, nil |
| 159 |
} |
| 160 |
|
| 161 |
func (c *apiGatewayServiceClient) CreateApi(ctx context.Context, in *CreateApiRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 162 |
out := new(longrunningpb.Operation) |
| 163 |
err := c.cc.Invoke(ctx, ApiGatewayService_CreateApi_FullMethodName, in, out, opts...) |
| 164 |
if err != nil { |
| 165 |
return nil, err |
| 166 |
} |
| 167 |
return out, nil |
| 168 |
} |
| 169 |
|
| 170 |
func (c *apiGatewayServiceClient) UpdateApi(ctx context.Context, in *UpdateApiRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 171 |
out := new(longrunningpb.Operation) |
| 172 |
err := c.cc.Invoke(ctx, ApiGatewayService_UpdateApi_FullMethodName, in, out, opts...) |
| 173 |
if err != nil { |
| 174 |
return nil, err |
| 175 |
} |
| 176 |
return out, nil |
| 177 |
} |
| 178 |
|
| 179 |
func (c *apiGatewayServiceClient) DeleteApi(ctx context.Context, in *DeleteApiRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 180 |
out := new(longrunningpb.Operation) |
| 181 |
err := c.cc.Invoke(ctx, ApiGatewayService_DeleteApi_FullMethodName, in, out, opts...) |
| 182 |
if err != nil { |
| 183 |
return nil, err |
| 184 |
} |
| 185 |
return out, nil |
| 186 |
} |
| 187 |
|
| 188 |
func (c *apiGatewayServiceClient) ListApiConfigs(ctx context.Context, in *ListApiConfigsRequest, opts ...grpc.CallOption) (*ListApiConfigsResponse, error) { |
| 189 |
out := new(ListApiConfigsResponse) |
| 190 |
err := c.cc.Invoke(ctx, ApiGatewayService_ListApiConfigs_FullMethodName, in, out, opts...) |
| 191 |
if err != nil { |
| 192 |
return nil, err |
| 193 |
} |
| 194 |
return out, nil |
| 195 |
} |
| 196 |
|
| 197 |
func (c *apiGatewayServiceClient) GetApiConfig(ctx context.Context, in *GetApiConfigRequest, opts ...grpc.CallOption) (*ApiConfig, error) { |
| 198 |
out := new(ApiConfig) |
| 199 |
err := c.cc.Invoke(ctx, ApiGatewayService_GetApiConfig_FullMethodName, in, out, opts...) |
| 200 |
if err != nil { |
| 201 |
return nil, err |
| 202 |
} |
| 203 |
return out, nil |
| 204 |
} |
| 205 |
|
| 206 |
func (c *apiGatewayServiceClient) CreateApiConfig(ctx context.Context, in *CreateApiConfigRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 207 |
out := new(longrunningpb.Operation) |
| 208 |
err := c.cc.Invoke(ctx, ApiGatewayService_CreateApiConfig_FullMethodName, in, out, opts...) |
| 209 |
if err != nil { |
| 210 |
return nil, err |
| 211 |
} |
| 212 |
return out, nil |
| 213 |
} |
| 214 |
|
| 215 |
func (c *apiGatewayServiceClient) UpdateApiConfig(ctx context.Context, in *UpdateApiConfigRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 216 |
out := new(longrunningpb.Operation) |
| 217 |
err := c.cc.Invoke(ctx, ApiGatewayService_UpdateApiConfig_FullMethodName, in, out, opts...) |
| 218 |
if err != nil { |
| 219 |
return nil, err |
| 220 |
} |
| 221 |
return out, nil |
| 222 |
} |
| 223 |
|
| 224 |
func (c *apiGatewayServiceClient) DeleteApiConfig(ctx context.Context, in *DeleteApiConfigRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 225 |
out := new(longrunningpb.Operation) |
| 226 |
err := c.cc.Invoke(ctx, ApiGatewayService_DeleteApiConfig_FullMethodName, in, out, opts...) |
| 227 |
if err != nil { |
| 228 |
return nil, err |
| 229 |
} |
| 230 |
return out, nil |
| 231 |
} |
| 232 |
|
| 233 |
// ApiGatewayServiceServer is the server API for ApiGatewayService service. |
| 234 |
// All implementations should embed UnimplementedApiGatewayServiceServer |
| 235 |
// for forward compatibility |
| 236 |
type ApiGatewayServiceServer interface { |
| 237 |
// Lists Gateways in a given project and location. |
| 238 |
ListGateways(context.Context, *ListGatewaysRequest) (*ListGatewaysResponse, error) |
| 239 |
// Gets details of a single Gateway. |
| 240 |
GetGateway(context.Context, *GetGatewayRequest) (*Gateway, error) |
| 241 |
// Creates a new Gateway in a given project and location. |
| 242 |
CreateGateway(context.Context, *CreateGatewayRequest) (*longrunningpb.Operation, error) |
| 243 |
// Updates the parameters of a single Gateway. |
| 244 |
UpdateGateway(context.Context, *UpdateGatewayRequest) (*longrunningpb.Operation, error) |
| 245 |
// Deletes a single Gateway. |
| 246 |
DeleteGateway(context.Context, *DeleteGatewayRequest) (*longrunningpb.Operation, error) |
| 247 |
// Lists Apis in a given project and location. |
| 248 |
ListApis(context.Context, *ListApisRequest) (*ListApisResponse, error) |
| 249 |
// Gets details of a single Api. |
| 250 |
GetApi(context.Context, *GetApiRequest) (*Api, error) |
| 251 |
// Creates a new Api in a given project and location. |
| 252 |
CreateApi(context.Context, *CreateApiRequest) (*longrunningpb.Operation, error) |
| 253 |
// Updates the parameters of a single Api. |
| 254 |
UpdateApi(context.Context, *UpdateApiRequest) (*longrunningpb.Operation, error) |
| 255 |
// Deletes a single Api. |
| 256 |
DeleteApi(context.Context, *DeleteApiRequest) (*longrunningpb.Operation, error) |
| 257 |
// Lists ApiConfigs in a given project and location. |
| 258 |
ListApiConfigs(context.Context, *ListApiConfigsRequest) (*ListApiConfigsResponse, error) |
| 259 |
// Gets details of a single ApiConfig. |
| 260 |
GetApiConfig(context.Context, *GetApiConfigRequest) (*ApiConfig, error) |
| 261 |
// Creates a new ApiConfig in a given project and location. |
| 262 |
CreateApiConfig(context.Context, *CreateApiConfigRequest) (*longrunningpb.Operation, error) |
| 263 |
// Updates the parameters of a single ApiConfig. |
| 264 |
UpdateApiConfig(context.Context, *UpdateApiConfigRequest) (*longrunningpb.Operation, error) |
| 265 |
// Deletes a single ApiConfig. |
| 266 |
DeleteApiConfig(context.Context, *DeleteApiConfigRequest) (*longrunningpb.Operation, error) |
| 267 |
} |
| 268 |
|
| 269 |
// UnimplementedApiGatewayServiceServer should be embedded to have forward compatible implementations. |
| 270 |
type UnimplementedApiGatewayServiceServer struct { |
| 271 |
} |
| 272 |
|
| 273 |
func (UnimplementedApiGatewayServiceServer) ListGateways(context.Context, *ListGatewaysRequest) (*ListGatewaysResponse, error) { |
| 274 |
return nil, status.Errorf(codes.Unimplemented, "method ListGateways not implemented") |
| 275 |
} |
| 276 |
func (UnimplementedApiGatewayServiceServer) GetGateway(context.Context, *GetGatewayRequest) (*Gateway, error) { |
| 277 |
return nil, status.Errorf(codes.Unimplemented, "method GetGateway not implemented") |
| 278 |
} |
| 279 |
func (UnimplementedApiGatewayServiceServer) CreateGateway(context.Context, *CreateGatewayRequest) (*longrunningpb.Operation, error) { |
| 280 |
return nil, status.Errorf(codes.Unimplemented, "method CreateGateway not implemented") |
| 281 |
} |
| 282 |
func (UnimplementedApiGatewayServiceServer) UpdateGateway(context.Context, *UpdateGatewayRequest) (*longrunningpb.Operation, error) { |
| 283 |
return nil, status.Errorf(codes.Unimplemented, "method UpdateGateway not implemented") |
| 284 |
} |
| 285 |
func (UnimplementedApiGatewayServiceServer) DeleteGateway(context.Context, *DeleteGatewayRequest) (*longrunningpb.Operation, error) { |
| 286 |
return nil, status.Errorf(codes.Unimplemented, "method DeleteGateway not implemented") |
| 287 |
} |
| 288 |
func (UnimplementedApiGatewayServiceServer) ListApis(context.Context, *ListApisRequest) (*ListApisResponse, error) { |
| 289 |
return nil, status.Errorf(codes.Unimplemented, "method ListApis not implemented") |
| 290 |
} |
| 291 |
func (UnimplementedApiGatewayServiceServer) GetApi(context.Context, *GetApiRequest) (*Api, error) { |
| 292 |
return nil, status.Errorf(codes.Unimplemented, "method GetApi not implemented") |
| 293 |
} |
| 294 |
func (UnimplementedApiGatewayServiceServer) CreateApi(context.Context, *CreateApiRequest) (*longrunningpb.Operation, error) { |
| 295 |
return nil, status.Errorf(codes.Unimplemented, "method CreateApi not implemented") |
| 296 |
} |
| 297 |
func (UnimplementedApiGatewayServiceServer) UpdateApi(context.Context, *UpdateApiRequest) (*longrunningpb.Operation, error) { |
| 298 |
return nil, status.Errorf(codes.Unimplemented, "method UpdateApi not implemented") |
| 299 |
} |
| 300 |
func (UnimplementedApiGatewayServiceServer) DeleteApi(context.Context, *DeleteApiRequest) (*longrunningpb.Operation, error) { |
| 301 |
return nil, status.Errorf(codes.Unimplemented, "method DeleteApi not implemented") |
| 302 |
} |
| 303 |
func (UnimplementedApiGatewayServiceServer) ListApiConfigs(context.Context, *ListApiConfigsRequest) (*ListApiConfigsResponse, error) { |
| 304 |
return nil, status.Errorf(codes.Unimplemented, "method ListApiConfigs not implemented") |
| 305 |
} |
| 306 |
func (UnimplementedApiGatewayServiceServer) GetApiConfig(context.Context, *GetApiConfigRequest) (*ApiConfig, error) { |
| 307 |
return nil, status.Errorf(codes.Unimplemented, "method GetApiConfig not implemented") |
| 308 |
} |
| 309 |
func (UnimplementedApiGatewayServiceServer) CreateApiConfig(context.Context, *CreateApiConfigRequest) (*longrunningpb.Operation, error) { |
| 310 |
return nil, status.Errorf(codes.Unimplemented, "method CreateApiConfig not implemented") |
| 311 |
} |
| 312 |
func (UnimplementedApiGatewayServiceServer) UpdateApiConfig(context.Context, *UpdateApiConfigRequest) (*longrunningpb.Operation, error) { |
| 313 |
return nil, status.Errorf(codes.Unimplemented, "method UpdateApiConfig not implemented") |
| 314 |
} |
| 315 |
func (UnimplementedApiGatewayServiceServer) DeleteApiConfig(context.Context, *DeleteApiConfigRequest) (*longrunningpb.Operation, error) { |
| 316 |
return nil, status.Errorf(codes.Unimplemented, "method DeleteApiConfig not implemented") |
| 317 |
} |
| 318 |
|
| 319 |
// UnsafeApiGatewayServiceServer may be embedded to opt out of forward compatibility for this service. |
| 320 |
// Use of this interface is not recommended, as added methods to ApiGatewayServiceServer will |
| 321 |
// result in compilation errors. |
| 322 |
type UnsafeApiGatewayServiceServer interface { |
| 323 |
mustEmbedUnimplementedApiGatewayServiceServer() |
| 324 |
} |
| 325 |
|
| 326 |
func RegisterApiGatewayServiceServer(s grpc.ServiceRegistrar, srv ApiGatewayServiceServer) { |
| 327 |
s.RegisterService(&ApiGatewayService_ServiceDesc, srv) |
| 328 |
} |
| 329 |
|
| 330 |
func _ApiGatewayService_ListGateways_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 331 |
in := new(ListGatewaysRequest) |
| 332 |
if err := dec(in); err != nil { |
| 333 |
return nil, err |
| 334 |
} |
| 335 |
if interceptor == nil { |
| 336 |
return srv.(ApiGatewayServiceServer).ListGateways(ctx, in) |
| 337 |
} |
| 338 |
info := &grpc.UnaryServerInfo{ |
| 339 |
Server: srv, |
| 340 |
FullMethod: ApiGatewayService_ListGateways_FullMethodName, |
| 341 |
} |
| 342 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 343 |
return srv.(ApiGatewayServiceServer).ListGateways(ctx, req.(*ListGatewaysRequest)) |
| 344 |
} |
| 345 |
return interceptor(ctx, in, info, handler) |
| 346 |
} |
| 347 |
|
| 348 |
func _ApiGatewayService_GetGateway_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 349 |
in := new(GetGatewayRequest) |
| 350 |
if err := dec(in); err != nil { |
| 351 |
return nil, err |
| 352 |
} |
| 353 |
if interceptor == nil { |
| 354 |
return srv.(ApiGatewayServiceServer).GetGateway(ctx, in) |
| 355 |
} |
| 356 |
info := &grpc.UnaryServerInfo{ |
| 357 |
Server: srv, |
| 358 |
FullMethod: ApiGatewayService_GetGateway_FullMethodName, |
| 359 |
} |
| 360 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 361 |
return srv.(ApiGatewayServiceServer).GetGateway(ctx, req.(*GetGatewayRequest)) |
| 362 |
} |
| 363 |
return interceptor(ctx, in, info, handler) |
| 364 |
} |
| 365 |
|
| 366 |
func _ApiGatewayService_CreateGateway_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 367 |
in := new(CreateGatewayRequest) |
| 368 |
if err := dec(in); err != nil { |
| 369 |
return nil, err |
| 370 |
} |
| 371 |
if interceptor == nil { |
| 372 |
return srv.(ApiGatewayServiceServer).CreateGateway(ctx, in) |
| 373 |
} |
| 374 |
info := &grpc.UnaryServerInfo{ |
| 375 |
Server: srv, |
| 376 |
FullMethod: ApiGatewayService_CreateGateway_FullMethodName, |
| 377 |
} |
| 378 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 379 |
return srv.(ApiGatewayServiceServer).CreateGateway(ctx, req.(*CreateGatewayRequest)) |
| 380 |
} |
| 381 |
return interceptor(ctx, in, info, handler) |
| 382 |
} |
| 383 |
|
| 384 |
func _ApiGatewayService_UpdateGateway_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 385 |
in := new(UpdateGatewayRequest) |
| 386 |
if err := dec(in); err != nil { |
| 387 |
return nil, err |
| 388 |
} |
| 389 |
if interceptor == nil { |
| 390 |
return srv.(ApiGatewayServiceServer).UpdateGateway(ctx, in) |
| 391 |
} |
| 392 |
info := &grpc.UnaryServerInfo{ |
| 393 |
Server: srv, |
| 394 |
FullMethod: ApiGatewayService_UpdateGateway_FullMethodName, |
| 395 |
} |
| 396 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 397 |
return srv.(ApiGatewayServiceServer).UpdateGateway(ctx, req.(*UpdateGatewayRequest)) |
| 398 |
} |
| 399 |
return interceptor(ctx, in, info, handler) |
| 400 |
} |
| 401 |
|
| 402 |
func _ApiGatewayService_DeleteGateway_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 403 |
in := new(DeleteGatewayRequest) |
| 404 |
if err := dec(in); err != nil { |
| 405 |
return nil, err |
| 406 |
} |
| 407 |
if interceptor == nil { |
| 408 |
return srv.(ApiGatewayServiceServer).DeleteGateway(ctx, in) |
| 409 |
} |
| 410 |
info := &grpc.UnaryServerInfo{ |
| 411 |
Server: srv, |
| 412 |
FullMethod: ApiGatewayService_DeleteGateway_FullMethodName, |
| 413 |
} |
| 414 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 415 |
return srv.(ApiGatewayServiceServer).DeleteGateway(ctx, req.(*DeleteGatewayRequest)) |
| 416 |
} |
| 417 |
return interceptor(ctx, in, info, handler) |
| 418 |
} |
| 419 |
|
| 420 |
func _ApiGatewayService_ListApis_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 421 |
in := new(ListApisRequest) |
| 422 |
if err := dec(in); err != nil { |
| 423 |
return nil, err |
| 424 |
} |
| 425 |
if interceptor == nil { |
| 426 |
return srv.(ApiGatewayServiceServer).ListApis(ctx, in) |
| 427 |
} |
| 428 |
info := &grpc.UnaryServerInfo{ |
| 429 |
Server: srv, |
| 430 |
FullMethod: ApiGatewayService_ListApis_FullMethodName, |
| 431 |
} |
| 432 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 433 |
return srv.(ApiGatewayServiceServer).ListApis(ctx, req.(*ListApisRequest)) |
| 434 |
} |
| 435 |
return interceptor(ctx, in, info, handler) |
| 436 |
} |
| 437 |
|
| 438 |
func _ApiGatewayService_GetApi_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 439 |
in := new(GetApiRequest) |
| 440 |
if err := dec(in); err != nil { |
| 441 |
return nil, err |
| 442 |
} |
| 443 |
if interceptor == nil { |
| 444 |
return srv.(ApiGatewayServiceServer).GetApi(ctx, in) |
| 445 |
} |
| 446 |
info := &grpc.UnaryServerInfo{ |
| 447 |
Server: srv, |
| 448 |
FullMethod: ApiGatewayService_GetApi_FullMethodName, |
| 449 |
} |
| 450 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 451 |
return srv.(ApiGatewayServiceServer).GetApi(ctx, req.(*GetApiRequest)) |
| 452 |
} |
| 453 |
return interceptor(ctx, in, info, handler) |
| 454 |
} |
| 455 |
|
| 456 |
func _ApiGatewayService_CreateApi_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 457 |
in := new(CreateApiRequest) |
| 458 |
if err := dec(in); err != nil { |
| 459 |
return nil, err |
| 460 |
} |
| 461 |
if interceptor == nil { |
| 462 |
return srv.(ApiGatewayServiceServer).CreateApi(ctx, in) |
| 463 |
} |
| 464 |
info := &grpc.UnaryServerInfo{ |
| 465 |
Server: srv, |
| 466 |
FullMethod: ApiGatewayService_CreateApi_FullMethodName, |
| 467 |
} |
| 468 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 469 |
return srv.(ApiGatewayServiceServer).CreateApi(ctx, req.(*CreateApiRequest)) |
| 470 |
} |
| 471 |
return interceptor(ctx, in, info, handler) |
| 472 |
} |
| 473 |
|
| 474 |
func _ApiGatewayService_UpdateApi_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 475 |
in := new(UpdateApiRequest) |
| 476 |
if err := dec(in); err != nil { |
| 477 |
return nil, err |
| 478 |
} |
| 479 |
if interceptor == nil { |
| 480 |
return srv.(ApiGatewayServiceServer).UpdateApi(ctx, in) |
| 481 |
} |
| 482 |
info := &grpc.UnaryServerInfo{ |
| 483 |
Server: srv, |
| 484 |
FullMethod: ApiGatewayService_UpdateApi_FullMethodName, |
| 485 |
} |
| 486 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 487 |
return srv.(ApiGatewayServiceServer).UpdateApi(ctx, req.(*UpdateApiRequest)) |
| 488 |
} |
| 489 |
return interceptor(ctx, in, info, handler) |
| 490 |
} |
| 491 |
|
| 492 |
func _ApiGatewayService_DeleteApi_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 493 |
in := new(DeleteApiRequest) |
| 494 |
if err := dec(in); err != nil { |
| 495 |
return nil, err |
| 496 |
} |
| 497 |
if interceptor == nil { |
| 498 |
return srv.(ApiGatewayServiceServer).DeleteApi(ctx, in) |
| 499 |
} |
| 500 |
info := &grpc.UnaryServerInfo{ |
| 501 |
Server: srv, |
| 502 |
FullMethod: ApiGatewayService_DeleteApi_FullMethodName, |
| 503 |
} |
| 504 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 505 |
return srv.(ApiGatewayServiceServer).DeleteApi(ctx, req.(*DeleteApiRequest)) |
| 506 |
} |
| 507 |
return interceptor(ctx, in, info, handler) |
| 508 |
} |
| 509 |
|
| 510 |
func _ApiGatewayService_ListApiConfigs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 511 |
in := new(ListApiConfigsRequest) |
| 512 |
if err := dec(in); err != nil { |
| 513 |
return nil, err |
| 514 |
} |
| 515 |
if interceptor == nil { |
| 516 |
return srv.(ApiGatewayServiceServer).ListApiConfigs(ctx, in) |
| 517 |
} |
| 518 |
info := &grpc.UnaryServerInfo{ |
| 519 |
Server: srv, |
| 520 |
FullMethod: ApiGatewayService_ListApiConfigs_FullMethodName, |
| 521 |
} |
| 522 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 523 |
return srv.(ApiGatewayServiceServer).ListApiConfigs(ctx, req.(*ListApiConfigsRequest)) |
| 524 |
} |
| 525 |
return interceptor(ctx, in, info, handler) |
| 526 |
} |
| 527 |
|
| 528 |
func _ApiGatewayService_GetApiConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 529 |
in := new(GetApiConfigRequest) |
| 530 |
if err := dec(in); err != nil { |
| 531 |
return nil, err |
| 532 |
} |
| 533 |
if interceptor == nil { |
| 534 |
return srv.(ApiGatewayServiceServer).GetApiConfig(ctx, in) |
| 535 |
} |
| 536 |
info := &grpc.UnaryServerInfo{ |
| 537 |
Server: srv, |
| 538 |
FullMethod: ApiGatewayService_GetApiConfig_FullMethodName, |
| 539 |
} |
| 540 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 541 |
return srv.(ApiGatewayServiceServer).GetApiConfig(ctx, req.(*GetApiConfigRequest)) |
| 542 |
} |
| 543 |
return interceptor(ctx, in, info, handler) |
| 544 |
} |
| 545 |
|
| 546 |
func _ApiGatewayService_CreateApiConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 547 |
in := new(CreateApiConfigRequest) |
| 548 |
if err := dec(in); err != nil { |
| 549 |
return nil, err |
| 550 |
} |
| 551 |
if interceptor == nil { |
| 552 |
return srv.(ApiGatewayServiceServer).CreateApiConfig(ctx, in) |
| 553 |
} |
| 554 |
info := &grpc.UnaryServerInfo{ |
| 555 |
Server: srv, |
| 556 |
FullMethod: ApiGatewayService_CreateApiConfig_FullMethodName, |
| 557 |
} |
| 558 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 559 |
return srv.(ApiGatewayServiceServer).CreateApiConfig(ctx, req.(*CreateApiConfigRequest)) |
| 560 |
} |
| 561 |
return interceptor(ctx, in, info, handler) |
| 562 |
} |
| 563 |
|
| 564 |
func _ApiGatewayService_UpdateApiConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 565 |
in := new(UpdateApiConfigRequest) |
| 566 |
if err := dec(in); err != nil { |
| 567 |
return nil, err |
| 568 |
} |
| 569 |
if interceptor == nil { |
| 570 |
return srv.(ApiGatewayServiceServer).UpdateApiConfig(ctx, in) |
| 571 |
} |
| 572 |
info := &grpc.UnaryServerInfo{ |
| 573 |
Server: srv, |
| 574 |
FullMethod: ApiGatewayService_UpdateApiConfig_FullMethodName, |
| 575 |
} |
| 576 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 577 |
return srv.(ApiGatewayServiceServer).UpdateApiConfig(ctx, req.(*UpdateApiConfigRequest)) |
| 578 |
} |
| 579 |
return interceptor(ctx, in, info, handler) |
| 580 |
} |
| 581 |
|
| 582 |
func _ApiGatewayService_DeleteApiConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 583 |
in := new(DeleteApiConfigRequest) |
| 584 |
if err := dec(in); err != nil { |
| 585 |
return nil, err |
| 586 |
} |
| 587 |
if interceptor == nil { |
| 588 |
return srv.(ApiGatewayServiceServer).DeleteApiConfig(ctx, in) |
| 589 |
} |
| 590 |
info := &grpc.UnaryServerInfo{ |
| 591 |
Server: srv, |
| 592 |
FullMethod: ApiGatewayService_DeleteApiConfig_FullMethodName, |
| 593 |
} |
| 594 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 595 |
return srv.(ApiGatewayServiceServer).DeleteApiConfig(ctx, req.(*DeleteApiConfigRequest)) |
| 596 |
} |
| 597 |
return interceptor(ctx, in, info, handler) |
| 598 |
} |
| 599 |
|
| 600 |
// ApiGatewayService_ServiceDesc is the grpc.ServiceDesc for ApiGatewayService service. |
| 601 |
// It's only intended for direct use with grpc.RegisterService, |
| 602 |
// and not to be introspected or modified (even as a copy) |
| 603 |
var ApiGatewayService_ServiceDesc = grpc.ServiceDesc{ |
| 604 |
ServiceName: "google.cloud.apigateway.v1.ApiGatewayService", |
| 605 |
HandlerType: (*ApiGatewayServiceServer)(nil), |
| 606 |
Methods: []grpc.MethodDesc{ |
| 607 |
{ |
| 608 |
MethodName: "ListGateways", |
| 609 |
Handler: _ApiGatewayService_ListGateways_Handler, |
| 610 |
}, |
| 611 |
{ |
| 612 |
MethodName: "GetGateway", |
| 613 |
Handler: _ApiGatewayService_GetGateway_Handler, |
| 614 |
}, |
| 615 |
{ |
| 616 |
MethodName: "CreateGateway", |
| 617 |
Handler: _ApiGatewayService_CreateGateway_Handler, |
| 618 |
}, |
| 619 |
{ |
| 620 |
MethodName: "UpdateGateway", |
| 621 |
Handler: _ApiGatewayService_UpdateGateway_Handler, |
| 622 |
}, |
| 623 |
{ |
| 624 |
MethodName: "DeleteGateway", |
| 625 |
Handler: _ApiGatewayService_DeleteGateway_Handler, |
| 626 |
}, |
| 627 |
{ |
| 628 |
MethodName: "ListApis", |
| 629 |
Handler: _ApiGatewayService_ListApis_Handler, |
| 630 |
}, |
| 631 |
{ |
| 632 |
MethodName: "GetApi", |
| 633 |
Handler: _ApiGatewayService_GetApi_Handler, |
| 634 |
}, |
| 635 |
{ |
| 636 |
MethodName: "CreateApi", |
| 637 |
Handler: _ApiGatewayService_CreateApi_Handler, |
| 638 |
}, |
| 639 |
{ |
| 640 |
MethodName: "UpdateApi", |
| 641 |
Handler: _ApiGatewayService_UpdateApi_Handler, |
| 642 |
}, |
| 643 |
{ |
| 644 |
MethodName: "DeleteApi", |
| 645 |
Handler: _ApiGatewayService_DeleteApi_Handler, |
| 646 |
}, |
| 647 |
{ |
| 648 |
MethodName: "ListApiConfigs", |
| 649 |
Handler: _ApiGatewayService_ListApiConfigs_Handler, |
| 650 |
}, |
| 651 |
{ |
| 652 |
MethodName: "GetApiConfig", |
| 653 |
Handler: _ApiGatewayService_GetApiConfig_Handler, |
| 654 |
}, |
| 655 |
{ |
| 656 |
MethodName: "CreateApiConfig", |
| 657 |
Handler: _ApiGatewayService_CreateApiConfig_Handler, |
| 658 |
}, |
| 659 |
{ |
| 660 |
MethodName: "UpdateApiConfig", |
| 661 |
Handler: _ApiGatewayService_UpdateApiConfig_Handler, |
| 662 |
}, |
| 663 |
{ |
| 664 |
MethodName: "DeleteApiConfig", |
| 665 |
Handler: _ApiGatewayService_DeleteApiConfig_Handler, |
| 666 |
}, |
| 667 |
}, |
| 668 |
Streams: []grpc.StreamDesc{}, |
| 669 |
Metadata: "google/cloud/apigateway/v1/apigateway_service.proto", |
| 670 |
} |