com.google.cloud.certificatemanager.v1.stub.GrpcCertificateManagerStub Maven / Gradle / Ivy
Show all versions of google-cloud-certificate-manager 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.certificatemanager.v1.stub;
import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificateIssuanceConfigsPagedResponse;
import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificateMapEntriesPagedResponse;
import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificateMapsPagedResponse;
import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificatesPagedResponse;
import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListDnsAuthorizationsPagedResponse;
import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListLocationsPagedResponse;
import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListTrustConfigsPagedResponse;
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.certificatemanager.v1.Certificate;
import com.google.cloud.certificatemanager.v1.CertificateIssuanceConfig;
import com.google.cloud.certificatemanager.v1.CertificateMap;
import com.google.cloud.certificatemanager.v1.CertificateMapEntry;
import com.google.cloud.certificatemanager.v1.CreateCertificateIssuanceConfigRequest;
import com.google.cloud.certificatemanager.v1.CreateCertificateMapEntryRequest;
import com.google.cloud.certificatemanager.v1.CreateCertificateMapRequest;
import com.google.cloud.certificatemanager.v1.CreateCertificateRequest;
import com.google.cloud.certificatemanager.v1.CreateDnsAuthorizationRequest;
import com.google.cloud.certificatemanager.v1.CreateTrustConfigRequest;
import com.google.cloud.certificatemanager.v1.DeleteCertificateIssuanceConfigRequest;
import com.google.cloud.certificatemanager.v1.DeleteCertificateMapEntryRequest;
import com.google.cloud.certificatemanager.v1.DeleteCertificateMapRequest;
import com.google.cloud.certificatemanager.v1.DeleteCertificateRequest;
import com.google.cloud.certificatemanager.v1.DeleteDnsAuthorizationRequest;
import com.google.cloud.certificatemanager.v1.DeleteTrustConfigRequest;
import com.google.cloud.certificatemanager.v1.DnsAuthorization;
import com.google.cloud.certificatemanager.v1.GetCertificateIssuanceConfigRequest;
import com.google.cloud.certificatemanager.v1.GetCertificateMapEntryRequest;
import com.google.cloud.certificatemanager.v1.GetCertificateMapRequest;
import com.google.cloud.certificatemanager.v1.GetCertificateRequest;
import com.google.cloud.certificatemanager.v1.GetDnsAuthorizationRequest;
import com.google.cloud.certificatemanager.v1.GetTrustConfigRequest;
import com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsRequest;
import com.google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse;
import com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesRequest;
import com.google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse;
import com.google.cloud.certificatemanager.v1.ListCertificateMapsRequest;
import com.google.cloud.certificatemanager.v1.ListCertificateMapsResponse;
import com.google.cloud.certificatemanager.v1.ListCertificatesRequest;
import com.google.cloud.certificatemanager.v1.ListCertificatesResponse;
import com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsRequest;
import com.google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse;
import com.google.cloud.certificatemanager.v1.ListTrustConfigsRequest;
import com.google.cloud.certificatemanager.v1.ListTrustConfigsResponse;
import com.google.cloud.certificatemanager.v1.OperationMetadata;
import com.google.cloud.certificatemanager.v1.TrustConfig;
import com.google.cloud.certificatemanager.v1.UpdateCertificateMapEntryRequest;
import com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest;
import com.google.cloud.certificatemanager.v1.UpdateCertificateRequest;
import com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest;
import com.google.cloud.certificatemanager.v1.UpdateTrustConfigRequest;
import com.google.cloud.location.GetLocationRequest;
import com.google.cloud.location.ListLocationsRequest;
import com.google.cloud.location.ListLocationsResponse;
import com.google.cloud.location.Location;
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 CertificateManager service API.
*
* This class is for advanced usage and reflects the underlying API directly.
*/
@Generated("by gapic-generator-java")
public class GrpcCertificateManagerStub extends CertificateManagerStub {
private static final MethodDescriptor
listCertificatesMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.certificatemanager.v1.CertificateManager/ListCertificates")
.setRequestMarshaller(
ProtoUtils.marshaller(ListCertificatesRequest.getDefaultInstance()))
.setResponseMarshaller(
ProtoUtils.marshaller(ListCertificatesResponse.getDefaultInstance()))
.build();
private static final MethodDescriptor
getCertificateMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.certificatemanager.v1.CertificateManager/GetCertificate")
.setRequestMarshaller(
ProtoUtils.marshaller(GetCertificateRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Certificate.getDefaultInstance()))
.build();
private static final MethodDescriptor
createCertificateMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.certificatemanager.v1.CertificateManager/CreateCertificate")
.setRequestMarshaller(
ProtoUtils.marshaller(CreateCertificateRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor
updateCertificateMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.certificatemanager.v1.CertificateManager/UpdateCertificate")
.setRequestMarshaller(
ProtoUtils.marshaller(UpdateCertificateRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor
deleteCertificateMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.certificatemanager.v1.CertificateManager/DeleteCertificate")
.setRequestMarshaller(
ProtoUtils.marshaller(DeleteCertificateRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor
listCertificateMapsMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.certificatemanager.v1.CertificateManager/ListCertificateMaps")
.setRequestMarshaller(
ProtoUtils.marshaller(ListCertificateMapsRequest.getDefaultInstance()))
.setResponseMarshaller(
ProtoUtils.marshaller(ListCertificateMapsResponse.getDefaultInstance()))
.build();
private static final MethodDescriptor
getCertificateMapMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.certificatemanager.v1.CertificateManager/GetCertificateMap")
.setRequestMarshaller(
ProtoUtils.marshaller(GetCertificateMapRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(CertificateMap.getDefaultInstance()))
.build();
private static final MethodDescriptor
createCertificateMapMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.certificatemanager.v1.CertificateManager/CreateCertificateMap")
.setRequestMarshaller(
ProtoUtils.marshaller(CreateCertificateMapRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor
updateCertificateMapMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.certificatemanager.v1.CertificateManager/UpdateCertificateMap")
.setRequestMarshaller(
ProtoUtils.marshaller(UpdateCertificateMapRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor
deleteCertificateMapMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.certificatemanager.v1.CertificateManager/DeleteCertificateMap")
.setRequestMarshaller(
ProtoUtils.marshaller(DeleteCertificateMapRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor<
ListCertificateMapEntriesRequest, ListCertificateMapEntriesResponse>
listCertificateMapEntriesMethodDescriptor =
MethodDescriptor
.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.certificatemanager.v1.CertificateManager/ListCertificateMapEntries")
.setRequestMarshaller(
ProtoUtils.marshaller(ListCertificateMapEntriesRequest.getDefaultInstance()))
.setResponseMarshaller(
ProtoUtils.marshaller(ListCertificateMapEntriesResponse.getDefaultInstance()))
.build();
private static final MethodDescriptor
getCertificateMapEntryMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.certificatemanager.v1.CertificateManager/GetCertificateMapEntry")
.setRequestMarshaller(
ProtoUtils.marshaller(GetCertificateMapEntryRequest.getDefaultInstance()))
.setResponseMarshaller(
ProtoUtils.marshaller(CertificateMapEntry.getDefaultInstance()))
.build();
private static final MethodDescriptor
createCertificateMapEntryMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.certificatemanager.v1.CertificateManager/CreateCertificateMapEntry")
.setRequestMarshaller(
ProtoUtils.marshaller(CreateCertificateMapEntryRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor
updateCertificateMapEntryMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.certificatemanager.v1.CertificateManager/UpdateCertificateMapEntry")
.setRequestMarshaller(
ProtoUtils.marshaller(UpdateCertificateMapEntryRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor
deleteCertificateMapEntryMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.certificatemanager.v1.CertificateManager/DeleteCertificateMapEntry")
.setRequestMarshaller(
ProtoUtils.marshaller(DeleteCertificateMapEntryRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor
listDnsAuthorizationsMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.certificatemanager.v1.CertificateManager/ListDnsAuthorizations")
.setRequestMarshaller(
ProtoUtils.marshaller(ListDnsAuthorizationsRequest.getDefaultInstance()))
.setResponseMarshaller(
ProtoUtils.marshaller(ListDnsAuthorizationsResponse.getDefaultInstance()))
.build();
private static final MethodDescriptor
getDnsAuthorizationMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.certificatemanager.v1.CertificateManager/GetDnsAuthorization")
.setRequestMarshaller(
ProtoUtils.marshaller(GetDnsAuthorizationRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(DnsAuthorization.getDefaultInstance()))
.build();
private static final MethodDescriptor
createDnsAuthorizationMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.certificatemanager.v1.CertificateManager/CreateDnsAuthorization")
.setRequestMarshaller(
ProtoUtils.marshaller(CreateDnsAuthorizationRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor
updateDnsAuthorizationMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.certificatemanager.v1.CertificateManager/UpdateDnsAuthorization")
.setRequestMarshaller(
ProtoUtils.marshaller(UpdateDnsAuthorizationRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor
deleteDnsAuthorizationMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.certificatemanager.v1.CertificateManager/DeleteDnsAuthorization")
.setRequestMarshaller(
ProtoUtils.marshaller(DeleteDnsAuthorizationRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor<
ListCertificateIssuanceConfigsRequest, ListCertificateIssuanceConfigsResponse>
listCertificateIssuanceConfigsMethodDescriptor =
MethodDescriptor
.
newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.certificatemanager.v1.CertificateManager/ListCertificateIssuanceConfigs")
.setRequestMarshaller(
ProtoUtils.marshaller(ListCertificateIssuanceConfigsRequest.getDefaultInstance()))
.setResponseMarshaller(
ProtoUtils.marshaller(
ListCertificateIssuanceConfigsResponse.getDefaultInstance()))
.build();
private static final MethodDescriptor<
GetCertificateIssuanceConfigRequest, CertificateIssuanceConfig>
getCertificateIssuanceConfigMethodDescriptor =
MethodDescriptor
.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.certificatemanager.v1.CertificateManager/GetCertificateIssuanceConfig")
.setRequestMarshaller(
ProtoUtils.marshaller(GetCertificateIssuanceConfigRequest.getDefaultInstance()))
.setResponseMarshaller(
ProtoUtils.marshaller(CertificateIssuanceConfig.getDefaultInstance()))
.build();
private static final MethodDescriptor
createCertificateIssuanceConfigMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.certificatemanager.v1.CertificateManager/CreateCertificateIssuanceConfig")
.setRequestMarshaller(
ProtoUtils.marshaller(
CreateCertificateIssuanceConfigRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor
deleteCertificateIssuanceConfigMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.certificatemanager.v1.CertificateManager/DeleteCertificateIssuanceConfig")
.setRequestMarshaller(
ProtoUtils.marshaller(
DeleteCertificateIssuanceConfigRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor
listTrustConfigsMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.certificatemanager.v1.CertificateManager/ListTrustConfigs")
.setRequestMarshaller(
ProtoUtils.marshaller(ListTrustConfigsRequest.getDefaultInstance()))
.setResponseMarshaller(
ProtoUtils.marshaller(ListTrustConfigsResponse.getDefaultInstance()))
.build();
private static final MethodDescriptor
getTrustConfigMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.certificatemanager.v1.CertificateManager/GetTrustConfig")
.setRequestMarshaller(
ProtoUtils.marshaller(GetTrustConfigRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(TrustConfig.getDefaultInstance()))
.build();
private static final MethodDescriptor
createTrustConfigMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.certificatemanager.v1.CertificateManager/CreateTrustConfig")
.setRequestMarshaller(
ProtoUtils.marshaller(CreateTrustConfigRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor
updateTrustConfigMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.certificatemanager.v1.CertificateManager/UpdateTrustConfig")
.setRequestMarshaller(
ProtoUtils.marshaller(UpdateTrustConfigRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor
deleteTrustConfigMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.certificatemanager.v1.CertificateManager/DeleteTrustConfig")
.setRequestMarshaller(
ProtoUtils.marshaller(DeleteTrustConfigRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor
listLocationsMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.location.Locations/ListLocations")
.setRequestMarshaller(
ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance()))
.setResponseMarshaller(
ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance()))
.build();
private static final MethodDescriptor getLocationMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.location.Locations/GetLocation")
.setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance()))
.build();
private final UnaryCallable
listCertificatesCallable;
private final UnaryCallable
listCertificatesPagedCallable;
private final UnaryCallable getCertificateCallable;
private final UnaryCallable createCertificateCallable;
private final OperationCallable
createCertificateOperationCallable;
private final UnaryCallable updateCertificateCallable;
private final OperationCallable
updateCertificateOperationCallable;
private final UnaryCallable deleteCertificateCallable;
private final OperationCallable
deleteCertificateOperationCallable;
private final UnaryCallable
listCertificateMapsCallable;
private final UnaryCallable
listCertificateMapsPagedCallable;
private final UnaryCallable getCertificateMapCallable;
private final UnaryCallable createCertificateMapCallable;
private final OperationCallable
createCertificateMapOperationCallable;
private final UnaryCallable updateCertificateMapCallable;
private final OperationCallable
updateCertificateMapOperationCallable;
private final UnaryCallable deleteCertificateMapCallable;
private final OperationCallable
deleteCertificateMapOperationCallable;
private final UnaryCallable
listCertificateMapEntriesCallable;
private final UnaryCallable<
ListCertificateMapEntriesRequest, ListCertificateMapEntriesPagedResponse>
listCertificateMapEntriesPagedCallable;
private final UnaryCallable
getCertificateMapEntryCallable;
private final UnaryCallable
createCertificateMapEntryCallable;
private final OperationCallable<
CreateCertificateMapEntryRequest, CertificateMapEntry, OperationMetadata>
createCertificateMapEntryOperationCallable;
private final UnaryCallable
updateCertificateMapEntryCallable;
private final OperationCallable<
UpdateCertificateMapEntryRequest, CertificateMapEntry, OperationMetadata>
updateCertificateMapEntryOperationCallable;
private final UnaryCallable
deleteCertificateMapEntryCallable;
private final OperationCallable
deleteCertificateMapEntryOperationCallable;
private final UnaryCallable
listDnsAuthorizationsCallable;
private final UnaryCallable
listDnsAuthorizationsPagedCallable;
private final UnaryCallable
getDnsAuthorizationCallable;
private final UnaryCallable
createDnsAuthorizationCallable;
private final OperationCallable<
CreateDnsAuthorizationRequest, DnsAuthorization, OperationMetadata>
createDnsAuthorizationOperationCallable;
private final UnaryCallable
updateDnsAuthorizationCallable;
private final OperationCallable<
UpdateDnsAuthorizationRequest, DnsAuthorization, OperationMetadata>
updateDnsAuthorizationOperationCallable;
private final UnaryCallable
deleteDnsAuthorizationCallable;
private final OperationCallable
deleteDnsAuthorizationOperationCallable;
private final UnaryCallable<
ListCertificateIssuanceConfigsRequest, ListCertificateIssuanceConfigsResponse>
listCertificateIssuanceConfigsCallable;
private final UnaryCallable<
ListCertificateIssuanceConfigsRequest, ListCertificateIssuanceConfigsPagedResponse>
listCertificateIssuanceConfigsPagedCallable;
private final UnaryCallable
getCertificateIssuanceConfigCallable;
private final UnaryCallable
createCertificateIssuanceConfigCallable;
private final OperationCallable<
CreateCertificateIssuanceConfigRequest, CertificateIssuanceConfig, OperationMetadata>
createCertificateIssuanceConfigOperationCallable;
private final UnaryCallable
deleteCertificateIssuanceConfigCallable;
private final OperationCallable
deleteCertificateIssuanceConfigOperationCallable;
private final UnaryCallable
listTrustConfigsCallable;
private final UnaryCallable
listTrustConfigsPagedCallable;
private final UnaryCallable getTrustConfigCallable;
private final UnaryCallable createTrustConfigCallable;
private final OperationCallable
createTrustConfigOperationCallable;
private final UnaryCallable updateTrustConfigCallable;
private final OperationCallable
updateTrustConfigOperationCallable;
private final UnaryCallable deleteTrustConfigCallable;
private final OperationCallable
deleteTrustConfigOperationCallable;
private final UnaryCallable listLocationsCallable;
private final UnaryCallable
listLocationsPagedCallable;
private final UnaryCallable getLocationCallable;
private final BackgroundResource backgroundResources;
private final GrpcOperationsStub operationsStub;
private final GrpcStubCallableFactory callableFactory;
public static final GrpcCertificateManagerStub create(CertificateManagerStubSettings settings)
throws IOException {
return new GrpcCertificateManagerStub(settings, ClientContext.create(settings));
}
public static final GrpcCertificateManagerStub create(ClientContext clientContext)
throws IOException {
return new GrpcCertificateManagerStub(
CertificateManagerStubSettings.newBuilder().build(), clientContext);
}
public static final GrpcCertificateManagerStub create(
ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException {
return new GrpcCertificateManagerStub(
CertificateManagerStubSettings.newBuilder().build(), clientContext, callableFactory);
}
/**
* Constructs an instance of GrpcCertificateManagerStub, 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 GrpcCertificateManagerStub(
CertificateManagerStubSettings settings, ClientContext clientContext) throws IOException {
this(settings, clientContext, new GrpcCertificateManagerCallableFactory());
}
/**
* Constructs an instance of GrpcCertificateManagerStub, 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 GrpcCertificateManagerStub(
CertificateManagerStubSettings settings,
ClientContext clientContext,
GrpcStubCallableFactory callableFactory)
throws IOException {
this.callableFactory = callableFactory;
this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory);
GrpcCallSettings
listCertificatesTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(listCertificatesMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings getCertificateTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(getCertificateMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings createCertificateTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(createCertificateMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings updateCertificateTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(updateCertificateMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add(
"certificate.name", String.valueOf(request.getCertificate().getName()));
return builder.build();
})
.build();
GrpcCallSettings deleteCertificateTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(deleteCertificateMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings
listCertificateMapsTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(listCertificateMapsMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings getCertificateMapTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(getCertificateMapMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings createCertificateMapTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(createCertificateMapMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings updateCertificateMapTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(updateCertificateMapMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add(
"certificate_map.name",
String.valueOf(request.getCertificateMap().getName()));
return builder.build();
})
.build();
GrpcCallSettings deleteCertificateMapTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(deleteCertificateMapMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings
listCertificateMapEntriesTransportSettings =
GrpcCallSettings
.newBuilder()
.setMethodDescriptor(listCertificateMapEntriesMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings
getCertificateMapEntryTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(getCertificateMapEntryMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings
createCertificateMapEntryTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(createCertificateMapEntryMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings
updateCertificateMapEntryTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(updateCertificateMapEntryMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add(
"certificate_map_entry.name",
String.valueOf(request.getCertificateMapEntry().getName()));
return builder.build();
})
.build();
GrpcCallSettings
deleteCertificateMapEntryTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(deleteCertificateMapEntryMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings
listDnsAuthorizationsTransportSettings =
GrpcCallSettings
.newBuilder()
.setMethodDescriptor(listDnsAuthorizationsMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings
getDnsAuthorizationTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(getDnsAuthorizationMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings
createDnsAuthorizationTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(createDnsAuthorizationMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings
updateDnsAuthorizationTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(updateDnsAuthorizationMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add(
"dns_authorization.name",
String.valueOf(request.getDnsAuthorization().getName()));
return builder.build();
})
.build();
GrpcCallSettings
deleteDnsAuthorizationTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(deleteDnsAuthorizationMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings
listCertificateIssuanceConfigsTransportSettings =
GrpcCallSettings
.
newBuilder()
.setMethodDescriptor(listCertificateIssuanceConfigsMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings
getCertificateIssuanceConfigTransportSettings =
GrpcCallSettings
.newBuilder()
.setMethodDescriptor(getCertificateIssuanceConfigMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings
createCertificateIssuanceConfigTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(createCertificateIssuanceConfigMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings
deleteCertificateIssuanceConfigTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(deleteCertificateIssuanceConfigMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings
listTrustConfigsTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(listTrustConfigsMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings getTrustConfigTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(getTrustConfigMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings createTrustConfigTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(createTrustConfigMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings updateTrustConfigTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(updateTrustConfigMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add(
"trust_config.name", String.valueOf(request.getTrustConfig().getName()));
return builder.build();
})
.build();
GrpcCallSettings deleteTrustConfigTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(deleteTrustConfigMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings listLocationsTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(listLocationsMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings getLocationTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(getLocationMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
this.listCertificatesCallable =
callableFactory.createUnaryCallable(
listCertificatesTransportSettings, settings.listCertificatesSettings(), clientContext);
this.listCertificatesPagedCallable =
callableFactory.createPagedCallable(
listCertificatesTransportSettings, settings.listCertificatesSettings(), clientContext);
this.getCertificateCallable =
callableFactory.createUnaryCallable(
getCertificateTransportSettings, settings.getCertificateSettings(), clientContext);
this.createCertificateCallable =
callableFactory.createUnaryCallable(
createCertificateTransportSettings,
settings.createCertificateSettings(),
clientContext);
this.createCertificateOperationCallable =
callableFactory.createOperationCallable(
createCertificateTransportSettings,
settings.createCertificateOperationSettings(),
clientContext,
operationsStub);
this.updateCertificateCallable =
callableFactory.createUnaryCallable(
updateCertificateTransportSettings,
settings.updateCertificateSettings(),
clientContext);
this.updateCertificateOperationCallable =
callableFactory.createOperationCallable(
updateCertificateTransportSettings,
settings.updateCertificateOperationSettings(),
clientContext,
operationsStub);
this.deleteCertificateCallable =
callableFactory.createUnaryCallable(
deleteCertificateTransportSettings,
settings.deleteCertificateSettings(),
clientContext);
this.deleteCertificateOperationCallable =
callableFactory.createOperationCallable(
deleteCertificateTransportSettings,
settings.deleteCertificateOperationSettings(),
clientContext,
operationsStub);
this.listCertificateMapsCallable =
callableFactory.createUnaryCallable(
listCertificateMapsTransportSettings,
settings.listCertificateMapsSettings(),
clientContext);
this.listCertificateMapsPagedCallable =
callableFactory.createPagedCallable(
listCertificateMapsTransportSettings,
settings.listCertificateMapsSettings(),
clientContext);
this.getCertificateMapCallable =
callableFactory.createUnaryCallable(
getCertificateMapTransportSettings,
settings.getCertificateMapSettings(),
clientContext);
this.createCertificateMapCallable =
callableFactory.createUnaryCallable(
createCertificateMapTransportSettings,
settings.createCertificateMapSettings(),
clientContext);
this.createCertificateMapOperationCallable =
callableFactory.createOperationCallable(
createCertificateMapTransportSettings,
settings.createCertificateMapOperationSettings(),
clientContext,
operationsStub);
this.updateCertificateMapCallable =
callableFactory.createUnaryCallable(
updateCertificateMapTransportSettings,
settings.updateCertificateMapSettings(),
clientContext);
this.updateCertificateMapOperationCallable =
callableFactory.createOperationCallable(
updateCertificateMapTransportSettings,
settings.updateCertificateMapOperationSettings(),
clientContext,
operationsStub);
this.deleteCertificateMapCallable =
callableFactory.createUnaryCallable(
deleteCertificateMapTransportSettings,
settings.deleteCertificateMapSettings(),
clientContext);
this.deleteCertificateMapOperationCallable =
callableFactory.createOperationCallable(
deleteCertificateMapTransportSettings,
settings.deleteCertificateMapOperationSettings(),
clientContext,
operationsStub);
this.listCertificateMapEntriesCallable =
callableFactory.createUnaryCallable(
listCertificateMapEntriesTransportSettings,
settings.listCertificateMapEntriesSettings(),
clientContext);
this.listCertificateMapEntriesPagedCallable =
callableFactory.createPagedCallable(
listCertificateMapEntriesTransportSettings,
settings.listCertificateMapEntriesSettings(),
clientContext);
this.getCertificateMapEntryCallable =
callableFactory.createUnaryCallable(
getCertificateMapEntryTransportSettings,
settings.getCertificateMapEntrySettings(),
clientContext);
this.createCertificateMapEntryCallable =
callableFactory.createUnaryCallable(
createCertificateMapEntryTransportSettings,
settings.createCertificateMapEntrySettings(),
clientContext);
this.createCertificateMapEntryOperationCallable =
callableFactory.createOperationCallable(
createCertificateMapEntryTransportSettings,
settings.createCertificateMapEntryOperationSettings(),
clientContext,
operationsStub);
this.updateCertificateMapEntryCallable =
callableFactory.createUnaryCallable(
updateCertificateMapEntryTransportSettings,
settings.updateCertificateMapEntrySettings(),
clientContext);
this.updateCertificateMapEntryOperationCallable =
callableFactory.createOperationCallable(
updateCertificateMapEntryTransportSettings,
settings.updateCertificateMapEntryOperationSettings(),
clientContext,
operationsStub);
this.deleteCertificateMapEntryCallable =
callableFactory.createUnaryCallable(
deleteCertificateMapEntryTransportSettings,
settings.deleteCertificateMapEntrySettings(),
clientContext);
this.deleteCertificateMapEntryOperationCallable =
callableFactory.createOperationCallable(
deleteCertificateMapEntryTransportSettings,
settings.deleteCertificateMapEntryOperationSettings(),
clientContext,
operationsStub);
this.listDnsAuthorizationsCallable =
callableFactory.createUnaryCallable(
listDnsAuthorizationsTransportSettings,
settings.listDnsAuthorizationsSettings(),
clientContext);
this.listDnsAuthorizationsPagedCallable =
callableFactory.createPagedCallable(
listDnsAuthorizationsTransportSettings,
settings.listDnsAuthorizationsSettings(),
clientContext);
this.getDnsAuthorizationCallable =
callableFactory.createUnaryCallable(
getDnsAuthorizationTransportSettings,
settings.getDnsAuthorizationSettings(),
clientContext);
this.createDnsAuthorizationCallable =
callableFactory.createUnaryCallable(
createDnsAuthorizationTransportSettings,
settings.createDnsAuthorizationSettings(),
clientContext);
this.createDnsAuthorizationOperationCallable =
callableFactory.createOperationCallable(
createDnsAuthorizationTransportSettings,
settings.createDnsAuthorizationOperationSettings(),
clientContext,
operationsStub);
this.updateDnsAuthorizationCallable =
callableFactory.createUnaryCallable(
updateDnsAuthorizationTransportSettings,
settings.updateDnsAuthorizationSettings(),
clientContext);
this.updateDnsAuthorizationOperationCallable =
callableFactory.createOperationCallable(
updateDnsAuthorizationTransportSettings,
settings.updateDnsAuthorizationOperationSettings(),
clientContext,
operationsStub);
this.deleteDnsAuthorizationCallable =
callableFactory.createUnaryCallable(
deleteDnsAuthorizationTransportSettings,
settings.deleteDnsAuthorizationSettings(),
clientContext);
this.deleteDnsAuthorizationOperationCallable =
callableFactory.createOperationCallable(
deleteDnsAuthorizationTransportSettings,
settings.deleteDnsAuthorizationOperationSettings(),
clientContext,
operationsStub);
this.listCertificateIssuanceConfigsCallable =
callableFactory.createUnaryCallable(
listCertificateIssuanceConfigsTransportSettings,
settings.listCertificateIssuanceConfigsSettings(),
clientContext);
this.listCertificateIssuanceConfigsPagedCallable =
callableFactory.createPagedCallable(
listCertificateIssuanceConfigsTransportSettings,
settings.listCertificateIssuanceConfigsSettings(),
clientContext);
this.getCertificateIssuanceConfigCallable =
callableFactory.createUnaryCallable(
getCertificateIssuanceConfigTransportSettings,
settings.getCertificateIssuanceConfigSettings(),
clientContext);
this.createCertificateIssuanceConfigCallable =
callableFactory.createUnaryCallable(
createCertificateIssuanceConfigTransportSettings,
settings.createCertificateIssuanceConfigSettings(),
clientContext);
this.createCertificateIssuanceConfigOperationCallable =
callableFactory.createOperationCallable(
createCertificateIssuanceConfigTransportSettings,
settings.createCertificateIssuanceConfigOperationSettings(),
clientContext,
operationsStub);
this.deleteCertificateIssuanceConfigCallable =
callableFactory.createUnaryCallable(
deleteCertificateIssuanceConfigTransportSettings,
settings.deleteCertificateIssuanceConfigSettings(),
clientContext);
this.deleteCertificateIssuanceConfigOperationCallable =
callableFactory.createOperationCallable(
deleteCertificateIssuanceConfigTransportSettings,
settings.deleteCertificateIssuanceConfigOperationSettings(),
clientContext,
operationsStub);
this.listTrustConfigsCallable =
callableFactory.createUnaryCallable(
listTrustConfigsTransportSettings, settings.listTrustConfigsSettings(), clientContext);
this.listTrustConfigsPagedCallable =
callableFactory.createPagedCallable(
listTrustConfigsTransportSettings, settings.listTrustConfigsSettings(), clientContext);
this.getTrustConfigCallable =
callableFactory.createUnaryCallable(
getTrustConfigTransportSettings, settings.getTrustConfigSettings(), clientContext);
this.createTrustConfigCallable =
callableFactory.createUnaryCallable(
createTrustConfigTransportSettings,
settings.createTrustConfigSettings(),
clientContext);
this.createTrustConfigOperationCallable =
callableFactory.createOperationCallable(
createTrustConfigTransportSettings,
settings.createTrustConfigOperationSettings(),
clientContext,
operationsStub);
this.updateTrustConfigCallable =
callableFactory.createUnaryCallable(
updateTrustConfigTransportSettings,
settings.updateTrustConfigSettings(),
clientContext);
this.updateTrustConfigOperationCallable =
callableFactory.createOperationCallable(
updateTrustConfigTransportSettings,
settings.updateTrustConfigOperationSettings(),
clientContext,
operationsStub);
this.deleteTrustConfigCallable =
callableFactory.createUnaryCallable(
deleteTrustConfigTransportSettings,
settings.deleteTrustConfigSettings(),
clientContext);
this.deleteTrustConfigOperationCallable =
callableFactory.createOperationCallable(
deleteTrustConfigTransportSettings,
settings.deleteTrustConfigOperationSettings(),
clientContext,
operationsStub);
this.listLocationsCallable =
callableFactory.createUnaryCallable(
listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
this.listLocationsPagedCallable =
callableFactory.createPagedCallable(
listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
this.getLocationCallable =
callableFactory.createUnaryCallable(
getLocationTransportSettings, settings.getLocationSettings(), clientContext);
this.backgroundResources =
new BackgroundResourceAggregation(clientContext.getBackgroundResources());
}
public GrpcOperationsStub getOperationsStub() {
return operationsStub;
}
@Override
public UnaryCallable
listCertificatesCallable() {
return listCertificatesCallable;
}
@Override
public UnaryCallable
listCertificatesPagedCallable() {
return listCertificatesPagedCallable;
}
@Override
public UnaryCallable getCertificateCallable() {
return getCertificateCallable;
}
@Override
public UnaryCallable createCertificateCallable() {
return createCertificateCallable;
}
@Override
public OperationCallable
createCertificateOperationCallable() {
return createCertificateOperationCallable;
}
@Override
public UnaryCallable updateCertificateCallable() {
return updateCertificateCallable;
}
@Override
public OperationCallable
updateCertificateOperationCallable() {
return updateCertificateOperationCallable;
}
@Override
public UnaryCallable deleteCertificateCallable() {
return deleteCertificateCallable;
}
@Override
public OperationCallable
deleteCertificateOperationCallable() {
return deleteCertificateOperationCallable;
}
@Override
public UnaryCallable
listCertificateMapsCallable() {
return listCertificateMapsCallable;
}
@Override
public UnaryCallable
listCertificateMapsPagedCallable() {
return listCertificateMapsPagedCallable;
}
@Override
public UnaryCallable getCertificateMapCallable() {
return getCertificateMapCallable;
}
@Override
public UnaryCallable createCertificateMapCallable() {
return createCertificateMapCallable;
}
@Override
public OperationCallable
createCertificateMapOperationCallable() {
return createCertificateMapOperationCallable;
}
@Override
public UnaryCallable updateCertificateMapCallable() {
return updateCertificateMapCallable;
}
@Override
public OperationCallable
updateCertificateMapOperationCallable() {
return updateCertificateMapOperationCallable;
}
@Override
public UnaryCallable deleteCertificateMapCallable() {
return deleteCertificateMapCallable;
}
@Override
public OperationCallable
deleteCertificateMapOperationCallable() {
return deleteCertificateMapOperationCallable;
}
@Override
public UnaryCallable
listCertificateMapEntriesCallable() {
return listCertificateMapEntriesCallable;
}
@Override
public UnaryCallable
listCertificateMapEntriesPagedCallable() {
return listCertificateMapEntriesPagedCallable;
}
@Override
public UnaryCallable
getCertificateMapEntryCallable() {
return getCertificateMapEntryCallable;
}
@Override
public UnaryCallable
createCertificateMapEntryCallable() {
return createCertificateMapEntryCallable;
}
@Override
public OperationCallable
createCertificateMapEntryOperationCallable() {
return createCertificateMapEntryOperationCallable;
}
@Override
public UnaryCallable
updateCertificateMapEntryCallable() {
return updateCertificateMapEntryCallable;
}
@Override
public OperationCallable
updateCertificateMapEntryOperationCallable() {
return updateCertificateMapEntryOperationCallable;
}
@Override
public UnaryCallable
deleteCertificateMapEntryCallable() {
return deleteCertificateMapEntryCallable;
}
@Override
public OperationCallable
deleteCertificateMapEntryOperationCallable() {
return deleteCertificateMapEntryOperationCallable;
}
@Override
public UnaryCallable
listDnsAuthorizationsCallable() {
return listDnsAuthorizationsCallable;
}
@Override
public UnaryCallable
listDnsAuthorizationsPagedCallable() {
return listDnsAuthorizationsPagedCallable;
}
@Override
public UnaryCallable getDnsAuthorizationCallable() {
return getDnsAuthorizationCallable;
}
@Override
public UnaryCallable createDnsAuthorizationCallable() {
return createDnsAuthorizationCallable;
}
@Override
public OperationCallable
createDnsAuthorizationOperationCallable() {
return createDnsAuthorizationOperationCallable;
}
@Override
public UnaryCallable updateDnsAuthorizationCallable() {
return updateDnsAuthorizationCallable;
}
@Override
public OperationCallable
updateDnsAuthorizationOperationCallable() {
return updateDnsAuthorizationOperationCallable;
}
@Override
public UnaryCallable deleteDnsAuthorizationCallable() {
return deleteDnsAuthorizationCallable;
}
@Override
public OperationCallable
deleteDnsAuthorizationOperationCallable() {
return deleteDnsAuthorizationOperationCallable;
}
@Override
public UnaryCallable<
ListCertificateIssuanceConfigsRequest, ListCertificateIssuanceConfigsResponse>
listCertificateIssuanceConfigsCallable() {
return listCertificateIssuanceConfigsCallable;
}
@Override
public UnaryCallable<
ListCertificateIssuanceConfigsRequest, ListCertificateIssuanceConfigsPagedResponse>
listCertificateIssuanceConfigsPagedCallable() {
return listCertificateIssuanceConfigsPagedCallable;
}
@Override
public UnaryCallable
getCertificateIssuanceConfigCallable() {
return getCertificateIssuanceConfigCallable;
}
@Override
public UnaryCallable
createCertificateIssuanceConfigCallable() {
return createCertificateIssuanceConfigCallable;
}
@Override
public OperationCallable<
CreateCertificateIssuanceConfigRequest, CertificateIssuanceConfig, OperationMetadata>
createCertificateIssuanceConfigOperationCallable() {
return createCertificateIssuanceConfigOperationCallable;
}
@Override
public UnaryCallable
deleteCertificateIssuanceConfigCallable() {
return deleteCertificateIssuanceConfigCallable;
}
@Override
public OperationCallable
deleteCertificateIssuanceConfigOperationCallable() {
return deleteCertificateIssuanceConfigOperationCallable;
}
@Override
public UnaryCallable
listTrustConfigsCallable() {
return listTrustConfigsCallable;
}
@Override
public UnaryCallable
listTrustConfigsPagedCallable() {
return listTrustConfigsPagedCallable;
}
@Override
public UnaryCallable getTrustConfigCallable() {
return getTrustConfigCallable;
}
@Override
public UnaryCallable createTrustConfigCallable() {
return createTrustConfigCallable;
}
@Override
public OperationCallable
createTrustConfigOperationCallable() {
return createTrustConfigOperationCallable;
}
@Override
public UnaryCallable updateTrustConfigCallable() {
return updateTrustConfigCallable;
}
@Override
public OperationCallable
updateTrustConfigOperationCallable() {
return updateTrustConfigOperationCallable;
}
@Override
public UnaryCallable deleteTrustConfigCallable() {
return deleteTrustConfigCallable;
}
@Override
public OperationCallable
deleteTrustConfigOperationCallable() {
return deleteTrustConfigOperationCallable;
}
@Override
public UnaryCallable listLocationsCallable() {
return listLocationsCallable;
}
@Override
public UnaryCallable
listLocationsPagedCallable() {
return listLocationsPagedCallable;
}
@Override
public UnaryCallable getLocationCallable() {
return getLocationCallable;
}
@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);
}
}