com.google.cloud.apigateway.v1.stub.GrpcApiGatewayServiceStub Maven / Gradle / Ivy
Show all versions of google-cloud-api-gateway Show documentation
/*
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.cloud.apigateway.v1.stub;
import static com.google.cloud.apigateway.v1.ApiGatewayServiceClient.ListApiConfigsPagedResponse;
import static com.google.cloud.apigateway.v1.ApiGatewayServiceClient.ListApisPagedResponse;
import static com.google.cloud.apigateway.v1.ApiGatewayServiceClient.ListGatewaysPagedResponse;
import com.google.api.gax.core.BackgroundResource;
import com.google.api.gax.core.BackgroundResourceAggregation;
import com.google.api.gax.grpc.GrpcCallSettings;
import com.google.api.gax.grpc.GrpcStubCallableFactory;
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.OperationCallable;
import com.google.api.gax.rpc.RequestParamsBuilder;
import com.google.api.gax.rpc.UnaryCallable;
import com.google.cloud.apigateway.v1.Api;
import com.google.cloud.apigateway.v1.ApiConfig;
import com.google.cloud.apigateway.v1.CreateApiConfigRequest;
import com.google.cloud.apigateway.v1.CreateApiRequest;
import com.google.cloud.apigateway.v1.CreateGatewayRequest;
import com.google.cloud.apigateway.v1.DeleteApiConfigRequest;
import com.google.cloud.apigateway.v1.DeleteApiRequest;
import com.google.cloud.apigateway.v1.DeleteGatewayRequest;
import com.google.cloud.apigateway.v1.Gateway;
import com.google.cloud.apigateway.v1.GetApiConfigRequest;
import com.google.cloud.apigateway.v1.GetApiRequest;
import com.google.cloud.apigateway.v1.GetGatewayRequest;
import com.google.cloud.apigateway.v1.ListApiConfigsRequest;
import com.google.cloud.apigateway.v1.ListApiConfigsResponse;
import com.google.cloud.apigateway.v1.ListApisRequest;
import com.google.cloud.apigateway.v1.ListApisResponse;
import com.google.cloud.apigateway.v1.ListGatewaysRequest;
import com.google.cloud.apigateway.v1.ListGatewaysResponse;
import com.google.cloud.apigateway.v1.OperationMetadata;
import com.google.cloud.apigateway.v1.UpdateApiConfigRequest;
import com.google.cloud.apigateway.v1.UpdateApiRequest;
import com.google.cloud.apigateway.v1.UpdateGatewayRequest;
import com.google.longrunning.Operation;
import com.google.longrunning.stub.GrpcOperationsStub;
import com.google.protobuf.Empty;
import io.grpc.MethodDescriptor;
import io.grpc.protobuf.ProtoUtils;
import java.io.IOException;
import java.util.concurrent.TimeUnit;
import javax.annotation.Generated;
// AUTO-GENERATED DOCUMENTATION AND CLASS.
/**
* gRPC stub implementation for the ApiGatewayService service API.
*
* This class is for advanced usage and reflects the underlying API directly.
*/
@Generated("by gapic-generator-java")
public class GrpcApiGatewayServiceStub extends ApiGatewayServiceStub {
private static final MethodDescriptor
listGatewaysMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.apigateway.v1.ApiGatewayService/ListGateways")
.setRequestMarshaller(ProtoUtils.marshaller(ListGatewaysRequest.getDefaultInstance()))
.setResponseMarshaller(
ProtoUtils.marshaller(ListGatewaysResponse.getDefaultInstance()))
.build();
private static final MethodDescriptor getGatewayMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.apigateway.v1.ApiGatewayService/GetGateway")
.setRequestMarshaller(ProtoUtils.marshaller(GetGatewayRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Gateway.getDefaultInstance()))
.build();
private static final MethodDescriptor
createGatewayMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.apigateway.v1.ApiGatewayService/CreateGateway")
.setRequestMarshaller(
ProtoUtils.marshaller(CreateGatewayRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor
updateGatewayMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.apigateway.v1.ApiGatewayService/UpdateGateway")
.setRequestMarshaller(
ProtoUtils.marshaller(UpdateGatewayRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor
deleteGatewayMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.apigateway.v1.ApiGatewayService/DeleteGateway")
.setRequestMarshaller(
ProtoUtils.marshaller(DeleteGatewayRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor
listApisMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.apigateway.v1.ApiGatewayService/ListApis")
.setRequestMarshaller(ProtoUtils.marshaller(ListApisRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(ListApisResponse.getDefaultInstance()))
.build();
private static final MethodDescriptor getApiMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.apigateway.v1.ApiGatewayService/GetApi")
.setRequestMarshaller(ProtoUtils.marshaller(GetApiRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Api.getDefaultInstance()))
.build();
private static final MethodDescriptor createApiMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.apigateway.v1.ApiGatewayService/CreateApi")
.setRequestMarshaller(ProtoUtils.marshaller(CreateApiRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor updateApiMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.apigateway.v1.ApiGatewayService/UpdateApi")
.setRequestMarshaller(ProtoUtils.marshaller(UpdateApiRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor deleteApiMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.apigateway.v1.ApiGatewayService/DeleteApi")
.setRequestMarshaller(ProtoUtils.marshaller(DeleteApiRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor
listApiConfigsMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.apigateway.v1.ApiGatewayService/ListApiConfigs")
.setRequestMarshaller(
ProtoUtils.marshaller(ListApiConfigsRequest.getDefaultInstance()))
.setResponseMarshaller(
ProtoUtils.marshaller(ListApiConfigsResponse.getDefaultInstance()))
.build();
private static final MethodDescriptor
getApiConfigMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.apigateway.v1.ApiGatewayService/GetApiConfig")
.setRequestMarshaller(ProtoUtils.marshaller(GetApiConfigRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(ApiConfig.getDefaultInstance()))
.build();
private static final MethodDescriptor
createApiConfigMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.apigateway.v1.ApiGatewayService/CreateApiConfig")
.setRequestMarshaller(
ProtoUtils.marshaller(CreateApiConfigRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor
updateApiConfigMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.apigateway.v1.ApiGatewayService/UpdateApiConfig")
.setRequestMarshaller(
ProtoUtils.marshaller(UpdateApiConfigRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor
deleteApiConfigMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.apigateway.v1.ApiGatewayService/DeleteApiConfig")
.setRequestMarshaller(
ProtoUtils.marshaller(DeleteApiConfigRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private final UnaryCallable listGatewaysCallable;
private final UnaryCallable
listGatewaysPagedCallable;
private final UnaryCallable getGatewayCallable;
private final UnaryCallable createGatewayCallable;
private final OperationCallable
createGatewayOperationCallable;
private final UnaryCallable updateGatewayCallable;
private final OperationCallable
updateGatewayOperationCallable;
private final UnaryCallable deleteGatewayCallable;
private final OperationCallable
deleteGatewayOperationCallable;
private final UnaryCallable listApisCallable;
private final UnaryCallable listApisPagedCallable;
private final UnaryCallable getApiCallable;
private final UnaryCallable createApiCallable;
private final OperationCallable
createApiOperationCallable;
private final UnaryCallable updateApiCallable;
private final OperationCallable
updateApiOperationCallable;
private final UnaryCallable deleteApiCallable;
private final OperationCallable
deleteApiOperationCallable;
private final UnaryCallable listApiConfigsCallable;
private final UnaryCallable
listApiConfigsPagedCallable;
private final UnaryCallable getApiConfigCallable;
private final UnaryCallable createApiConfigCallable;
private final OperationCallable
createApiConfigOperationCallable;
private final UnaryCallable updateApiConfigCallable;
private final OperationCallable
updateApiConfigOperationCallable;
private final UnaryCallable deleteApiConfigCallable;
private final OperationCallable
deleteApiConfigOperationCallable;
private final BackgroundResource backgroundResources;
private final GrpcOperationsStub operationsStub;
private final GrpcStubCallableFactory callableFactory;
public static final GrpcApiGatewayServiceStub create(ApiGatewayServiceStubSettings settings)
throws IOException {
return new GrpcApiGatewayServiceStub(settings, ClientContext.create(settings));
}
public static final GrpcApiGatewayServiceStub create(ClientContext clientContext)
throws IOException {
return new GrpcApiGatewayServiceStub(
ApiGatewayServiceStubSettings.newBuilder().build(), clientContext);
}
public static final GrpcApiGatewayServiceStub create(
ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException {
return new GrpcApiGatewayServiceStub(
ApiGatewayServiceStubSettings.newBuilder().build(), clientContext, callableFactory);
}
/**
* Constructs an instance of GrpcApiGatewayServiceStub, using the given settings. This is
* protected so that it is easy to make a subclass, but otherwise, the static factory methods
* should be preferred.
*/
protected GrpcApiGatewayServiceStub(
ApiGatewayServiceStubSettings settings, ClientContext clientContext) throws IOException {
this(settings, clientContext, new GrpcApiGatewayServiceCallableFactory());
}
/**
* Constructs an instance of GrpcApiGatewayServiceStub, using the given settings. This is
* protected so that it is easy to make a subclass, but otherwise, the static factory methods
* should be preferred.
*/
protected GrpcApiGatewayServiceStub(
ApiGatewayServiceStubSettings settings,
ClientContext clientContext,
GrpcStubCallableFactory callableFactory)
throws IOException {
this.callableFactory = callableFactory;
this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory);
GrpcCallSettings listGatewaysTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(listGatewaysMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings getGatewayTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(getGatewayMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings createGatewayTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(createGatewayMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings updateGatewayTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(updateGatewayMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("gateway.name", String.valueOf(request.getGateway().getName()));
return builder.build();
})
.build();
GrpcCallSettings deleteGatewayTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(deleteGatewayMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings listApisTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(listApisMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings getApiTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(getApiMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings createApiTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(createApiMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings updateApiTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(updateApiMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("api.name", String.valueOf(request.getApi().getName()));
return builder.build();
})
.build();
GrpcCallSettings deleteApiTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(deleteApiMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings
listApiConfigsTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(listApiConfigsMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings getApiConfigTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(getApiConfigMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings createApiConfigTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(createApiConfigMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings updateApiConfigTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(updateApiConfigMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("api_config.name", String.valueOf(request.getApiConfig().getName()));
return builder.build();
})
.build();
GrpcCallSettings deleteApiConfigTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(deleteApiConfigMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
this.listGatewaysCallable =
callableFactory.createUnaryCallable(
listGatewaysTransportSettings, settings.listGatewaysSettings(), clientContext);
this.listGatewaysPagedCallable =
callableFactory.createPagedCallable(
listGatewaysTransportSettings, settings.listGatewaysSettings(), clientContext);
this.getGatewayCallable =
callableFactory.createUnaryCallable(
getGatewayTransportSettings, settings.getGatewaySettings(), clientContext);
this.createGatewayCallable =
callableFactory.createUnaryCallable(
createGatewayTransportSettings, settings.createGatewaySettings(), clientContext);
this.createGatewayOperationCallable =
callableFactory.createOperationCallable(
createGatewayTransportSettings,
settings.createGatewayOperationSettings(),
clientContext,
operationsStub);
this.updateGatewayCallable =
callableFactory.createUnaryCallable(
updateGatewayTransportSettings, settings.updateGatewaySettings(), clientContext);
this.updateGatewayOperationCallable =
callableFactory.createOperationCallable(
updateGatewayTransportSettings,
settings.updateGatewayOperationSettings(),
clientContext,
operationsStub);
this.deleteGatewayCallable =
callableFactory.createUnaryCallable(
deleteGatewayTransportSettings, settings.deleteGatewaySettings(), clientContext);
this.deleteGatewayOperationCallable =
callableFactory.createOperationCallable(
deleteGatewayTransportSettings,
settings.deleteGatewayOperationSettings(),
clientContext,
operationsStub);
this.listApisCallable =
callableFactory.createUnaryCallable(
listApisTransportSettings, settings.listApisSettings(), clientContext);
this.listApisPagedCallable =
callableFactory.createPagedCallable(
listApisTransportSettings, settings.listApisSettings(), clientContext);
this.getApiCallable =
callableFactory.createUnaryCallable(
getApiTransportSettings, settings.getApiSettings(), clientContext);
this.createApiCallable =
callableFactory.createUnaryCallable(
createApiTransportSettings, settings.createApiSettings(), clientContext);
this.createApiOperationCallable =
callableFactory.createOperationCallable(
createApiTransportSettings,
settings.createApiOperationSettings(),
clientContext,
operationsStub);
this.updateApiCallable =
callableFactory.createUnaryCallable(
updateApiTransportSettings, settings.updateApiSettings(), clientContext);
this.updateApiOperationCallable =
callableFactory.createOperationCallable(
updateApiTransportSettings,
settings.updateApiOperationSettings(),
clientContext,
operationsStub);
this.deleteApiCallable =
callableFactory.createUnaryCallable(
deleteApiTransportSettings, settings.deleteApiSettings(), clientContext);
this.deleteApiOperationCallable =
callableFactory.createOperationCallable(
deleteApiTransportSettings,
settings.deleteApiOperationSettings(),
clientContext,
operationsStub);
this.listApiConfigsCallable =
callableFactory.createUnaryCallable(
listApiConfigsTransportSettings, settings.listApiConfigsSettings(), clientContext);
this.listApiConfigsPagedCallable =
callableFactory.createPagedCallable(
listApiConfigsTransportSettings, settings.listApiConfigsSettings(), clientContext);
this.getApiConfigCallable =
callableFactory.createUnaryCallable(
getApiConfigTransportSettings, settings.getApiConfigSettings(), clientContext);
this.createApiConfigCallable =
callableFactory.createUnaryCallable(
createApiConfigTransportSettings, settings.createApiConfigSettings(), clientContext);
this.createApiConfigOperationCallable =
callableFactory.createOperationCallable(
createApiConfigTransportSettings,
settings.createApiConfigOperationSettings(),
clientContext,
operationsStub);
this.updateApiConfigCallable =
callableFactory.createUnaryCallable(
updateApiConfigTransportSettings, settings.updateApiConfigSettings(), clientContext);
this.updateApiConfigOperationCallable =
callableFactory.createOperationCallable(
updateApiConfigTransportSettings,
settings.updateApiConfigOperationSettings(),
clientContext,
operationsStub);
this.deleteApiConfigCallable =
callableFactory.createUnaryCallable(
deleteApiConfigTransportSettings, settings.deleteApiConfigSettings(), clientContext);
this.deleteApiConfigOperationCallable =
callableFactory.createOperationCallable(
deleteApiConfigTransportSettings,
settings.deleteApiConfigOperationSettings(),
clientContext,
operationsStub);
this.backgroundResources =
new BackgroundResourceAggregation(clientContext.getBackgroundResources());
}
public GrpcOperationsStub getOperationsStub() {
return operationsStub;
}
@Override
public UnaryCallable listGatewaysCallable() {
return listGatewaysCallable;
}
@Override
public UnaryCallable listGatewaysPagedCallable() {
return listGatewaysPagedCallable;
}
@Override
public UnaryCallable getGatewayCallable() {
return getGatewayCallable;
}
@Override
public UnaryCallable createGatewayCallable() {
return createGatewayCallable;
}
@Override
public OperationCallable
createGatewayOperationCallable() {
return createGatewayOperationCallable;
}
@Override
public UnaryCallable updateGatewayCallable() {
return updateGatewayCallable;
}
@Override
public OperationCallable
updateGatewayOperationCallable() {
return updateGatewayOperationCallable;
}
@Override
public UnaryCallable deleteGatewayCallable() {
return deleteGatewayCallable;
}
@Override
public OperationCallable
deleteGatewayOperationCallable() {
return deleteGatewayOperationCallable;
}
@Override
public UnaryCallable listApisCallable() {
return listApisCallable;
}
@Override
public UnaryCallable listApisPagedCallable() {
return listApisPagedCallable;
}
@Override
public UnaryCallable getApiCallable() {
return getApiCallable;
}
@Override
public UnaryCallable createApiCallable() {
return createApiCallable;
}
@Override
public OperationCallable createApiOperationCallable() {
return createApiOperationCallable;
}
@Override
public UnaryCallable updateApiCallable() {
return updateApiCallable;
}
@Override
public OperationCallable updateApiOperationCallable() {
return updateApiOperationCallable;
}
@Override
public UnaryCallable deleteApiCallable() {
return deleteApiCallable;
}
@Override
public OperationCallable
deleteApiOperationCallable() {
return deleteApiOperationCallable;
}
@Override
public UnaryCallable listApiConfigsCallable() {
return listApiConfigsCallable;
}
@Override
public UnaryCallable
listApiConfigsPagedCallable() {
return listApiConfigsPagedCallable;
}
@Override
public UnaryCallable getApiConfigCallable() {
return getApiConfigCallable;
}
@Override
public UnaryCallable createApiConfigCallable() {
return createApiConfigCallable;
}
@Override
public OperationCallable
createApiConfigOperationCallable() {
return createApiConfigOperationCallable;
}
@Override
public UnaryCallable updateApiConfigCallable() {
return updateApiConfigCallable;
}
@Override
public OperationCallable
updateApiConfigOperationCallable() {
return updateApiConfigOperationCallable;
}
@Override
public UnaryCallable deleteApiConfigCallable() {
return deleteApiConfigCallable;
}
@Override
public OperationCallable
deleteApiConfigOperationCallable() {
return deleteApiConfigOperationCallable;
}
@Override
public final void close() {
try {
backgroundResources.close();
} catch (RuntimeException e) {
throw e;
} catch (Exception e) {
throw new IllegalStateException("Failed to close resource", e);
}
}
@Override
public void shutdown() {
backgroundResources.shutdown();
}
@Override
public boolean isShutdown() {
return backgroundResources.isShutdown();
}
@Override
public boolean isTerminated() {
return backgroundResources.isTerminated();
}
@Override
public void shutdownNow() {
backgroundResources.shutdownNow();
}
@Override
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException {
return backgroundResources.awaitTermination(duration, unit);
}
}