All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.cloud.api.servicemanagement.v1.stub.GrpcServiceManagerStub Maven / Gradle / Ivy

/*
 * 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.api.servicemanagement.v1.stub;

import static com.google.cloud.api.servicemanagement.v1.ServiceManagerClient.ListServiceConfigsPagedResponse;
import static com.google.cloud.api.servicemanagement.v1.ServiceManagerClient.ListServiceRolloutsPagedResponse;
import static com.google.cloud.api.servicemanagement.v1.ServiceManagerClient.ListServicesPagedResponse;

import com.google.api.Service;
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.api.servicemanagement.v1.CreateServiceConfigRequest;
import com.google.api.servicemanagement.v1.CreateServiceRequest;
import com.google.api.servicemanagement.v1.CreateServiceRolloutRequest;
import com.google.api.servicemanagement.v1.DeleteServiceRequest;
import com.google.api.servicemanagement.v1.GenerateConfigReportRequest;
import com.google.api.servicemanagement.v1.GenerateConfigReportResponse;
import com.google.api.servicemanagement.v1.GetServiceConfigRequest;
import com.google.api.servicemanagement.v1.GetServiceRequest;
import com.google.api.servicemanagement.v1.GetServiceRolloutRequest;
import com.google.api.servicemanagement.v1.ListServiceConfigsRequest;
import com.google.api.servicemanagement.v1.ListServiceConfigsResponse;
import com.google.api.servicemanagement.v1.ListServiceRolloutsRequest;
import com.google.api.servicemanagement.v1.ListServiceRolloutsResponse;
import com.google.api.servicemanagement.v1.ListServicesRequest;
import com.google.api.servicemanagement.v1.ListServicesResponse;
import com.google.api.servicemanagement.v1.ManagedService;
import com.google.api.servicemanagement.v1.OperationMetadata;
import com.google.api.servicemanagement.v1.Rollout;
import com.google.api.servicemanagement.v1.SubmitConfigSourceRequest;
import com.google.api.servicemanagement.v1.SubmitConfigSourceResponse;
import com.google.api.servicemanagement.v1.UndeleteServiceRequest;
import com.google.api.servicemanagement.v1.UndeleteServiceResponse;
import com.google.iam.v1.GetIamPolicyRequest;
import com.google.iam.v1.Policy;
import com.google.iam.v1.SetIamPolicyRequest;
import com.google.iam.v1.TestIamPermissionsRequest;
import com.google.iam.v1.TestIamPermissionsResponse;
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 ServiceManager service API.
 *
 * 

This class is for advanced usage and reflects the underlying API directly. */ @Generated("by gapic-generator-java") public class GrpcServiceManagerStub extends ServiceManagerStub { private static final MethodDescriptor listServicesMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.api.servicemanagement.v1.ServiceManager/ListServices") .setRequestMarshaller(ProtoUtils.marshaller(ListServicesRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListServicesResponse.getDefaultInstance())) .build(); private static final MethodDescriptor getServiceMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.api.servicemanagement.v1.ServiceManager/GetService") .setRequestMarshaller(ProtoUtils.marshaller(GetServiceRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(ManagedService.getDefaultInstance())) .build(); private static final MethodDescriptor createServiceMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.api.servicemanagement.v1.ServiceManager/CreateService") .setRequestMarshaller( ProtoUtils.marshaller(CreateServiceRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor deleteServiceMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.api.servicemanagement.v1.ServiceManager/DeleteService") .setRequestMarshaller( ProtoUtils.marshaller(DeleteServiceRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor undeleteServiceMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.api.servicemanagement.v1.ServiceManager/UndeleteService") .setRequestMarshaller( ProtoUtils.marshaller(UndeleteServiceRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor listServiceConfigsMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.api.servicemanagement.v1.ServiceManager/ListServiceConfigs") .setRequestMarshaller( ProtoUtils.marshaller(ListServiceConfigsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListServiceConfigsResponse.getDefaultInstance())) .build(); private static final MethodDescriptor getServiceConfigMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.api.servicemanagement.v1.ServiceManager/GetServiceConfig") .setRequestMarshaller( ProtoUtils.marshaller(GetServiceConfigRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Service.getDefaultInstance())) .build(); private static final MethodDescriptor createServiceConfigMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.api.servicemanagement.v1.ServiceManager/CreateServiceConfig") .setRequestMarshaller( ProtoUtils.marshaller(CreateServiceConfigRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Service.getDefaultInstance())) .build(); private static final MethodDescriptor submitConfigSourceMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.api.servicemanagement.v1.ServiceManager/SubmitConfigSource") .setRequestMarshaller( ProtoUtils.marshaller(SubmitConfigSourceRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor listServiceRolloutsMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.api.servicemanagement.v1.ServiceManager/ListServiceRollouts") .setRequestMarshaller( ProtoUtils.marshaller(ListServiceRolloutsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListServiceRolloutsResponse.getDefaultInstance())) .build(); private static final MethodDescriptor getServiceRolloutMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.api.servicemanagement.v1.ServiceManager/GetServiceRollout") .setRequestMarshaller( ProtoUtils.marshaller(GetServiceRolloutRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Rollout.getDefaultInstance())) .build(); private static final MethodDescriptor createServiceRolloutMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.api.servicemanagement.v1.ServiceManager/CreateServiceRollout") .setRequestMarshaller( ProtoUtils.marshaller(CreateServiceRolloutRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor generateConfigReportMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.api.servicemanagement.v1.ServiceManager/GenerateConfigReport") .setRequestMarshaller( ProtoUtils.marshaller(GenerateConfigReportRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(GenerateConfigReportResponse.getDefaultInstance())) .build(); private static final MethodDescriptor setIamPolicyMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy") .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) .build(); private static final MethodDescriptor getIamPolicyMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy") .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) .build(); private static final MethodDescriptor testIamPermissionsMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions") .setRequestMarshaller( ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance())) .build(); private final UnaryCallable listServicesCallable; private final UnaryCallable listServicesPagedCallable; private final UnaryCallable getServiceCallable; private final UnaryCallable createServiceCallable; private final OperationCallable createServiceOperationCallable; private final UnaryCallable deleteServiceCallable; private final OperationCallable deleteServiceOperationCallable; private final UnaryCallable undeleteServiceCallable; private final OperationCallable< UndeleteServiceRequest, UndeleteServiceResponse, OperationMetadata> undeleteServiceOperationCallable; private final UnaryCallable listServiceConfigsCallable; private final UnaryCallable listServiceConfigsPagedCallable; private final UnaryCallable getServiceConfigCallable; private final UnaryCallable createServiceConfigCallable; private final UnaryCallable submitConfigSourceCallable; private final OperationCallable< SubmitConfigSourceRequest, SubmitConfigSourceResponse, OperationMetadata> submitConfigSourceOperationCallable; private final UnaryCallable listServiceRolloutsCallable; private final UnaryCallable listServiceRolloutsPagedCallable; private final UnaryCallable getServiceRolloutCallable; private final UnaryCallable createServiceRolloutCallable; private final OperationCallable createServiceRolloutOperationCallable; private final UnaryCallable generateConfigReportCallable; private final UnaryCallable setIamPolicyCallable; private final UnaryCallable getIamPolicyCallable; private final UnaryCallable testIamPermissionsCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; private final GrpcStubCallableFactory callableFactory; public static final GrpcServiceManagerStub create(ServiceManagerStubSettings settings) throws IOException { return new GrpcServiceManagerStub(settings, ClientContext.create(settings)); } public static final GrpcServiceManagerStub create(ClientContext clientContext) throws IOException { return new GrpcServiceManagerStub( ServiceManagerStubSettings.newBuilder().build(), clientContext); } public static final GrpcServiceManagerStub create( ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { return new GrpcServiceManagerStub( ServiceManagerStubSettings.newBuilder().build(), clientContext, callableFactory); } /** * Constructs an instance of GrpcServiceManagerStub, 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 GrpcServiceManagerStub(ServiceManagerStubSettings settings, ClientContext clientContext) throws IOException { this(settings, clientContext, new GrpcServiceManagerCallableFactory()); } /** * Constructs an instance of GrpcServiceManagerStub, 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 GrpcServiceManagerStub( ServiceManagerStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); GrpcCallSettings listServicesTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listServicesMethodDescriptor) .build(); GrpcCallSettings getServiceTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getServiceMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("service_name", String.valueOf(request.getServiceName())); return builder.build(); }) .build(); GrpcCallSettings createServiceTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createServiceMethodDescriptor) .build(); GrpcCallSettings deleteServiceTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteServiceMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("service_name", String.valueOf(request.getServiceName())); return builder.build(); }) .build(); GrpcCallSettings undeleteServiceTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(undeleteServiceMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("service_name", String.valueOf(request.getServiceName())); return builder.build(); }) .build(); GrpcCallSettings listServiceConfigsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listServiceConfigsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("service_name", String.valueOf(request.getServiceName())); return builder.build(); }) .build(); GrpcCallSettings getServiceConfigTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getServiceConfigMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("config_id", String.valueOf(request.getConfigId())); builder.add("service_name", String.valueOf(request.getServiceName())); return builder.build(); }) .build(); GrpcCallSettings createServiceConfigTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createServiceConfigMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("service_name", String.valueOf(request.getServiceName())); return builder.build(); }) .build(); GrpcCallSettings submitConfigSourceTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(submitConfigSourceMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("service_name", String.valueOf(request.getServiceName())); return builder.build(); }) .build(); GrpcCallSettings listServiceRolloutsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listServiceRolloutsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("service_name", String.valueOf(request.getServiceName())); return builder.build(); }) .build(); GrpcCallSettings getServiceRolloutTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getServiceRolloutMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("rollout_id", String.valueOf(request.getRolloutId())); builder.add("service_name", String.valueOf(request.getServiceName())); return builder.build(); }) .build(); GrpcCallSettings createServiceRolloutTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createServiceRolloutMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("service_name", String.valueOf(request.getServiceName())); return builder.build(); }) .build(); GrpcCallSettings generateConfigReportTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(generateConfigReportMethodDescriptor) .build(); GrpcCallSettings setIamPolicyTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(setIamPolicyMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) .build(); GrpcCallSettings getIamPolicyTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getIamPolicyMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) .build(); GrpcCallSettings testIamPermissionsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(testIamPermissionsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("resource", String.valueOf(request.getResource())); return builder.build(); }) .build(); this.listServicesCallable = callableFactory.createUnaryCallable( listServicesTransportSettings, settings.listServicesSettings(), clientContext); this.listServicesPagedCallable = callableFactory.createPagedCallable( listServicesTransportSettings, settings.listServicesSettings(), clientContext); this.getServiceCallable = callableFactory.createUnaryCallable( getServiceTransportSettings, settings.getServiceSettings(), clientContext); this.createServiceCallable = callableFactory.createUnaryCallable( createServiceTransportSettings, settings.createServiceSettings(), clientContext); this.createServiceOperationCallable = callableFactory.createOperationCallable( createServiceTransportSettings, settings.createServiceOperationSettings(), clientContext, operationsStub); this.deleteServiceCallable = callableFactory.createUnaryCallable( deleteServiceTransportSettings, settings.deleteServiceSettings(), clientContext); this.deleteServiceOperationCallable = callableFactory.createOperationCallable( deleteServiceTransportSettings, settings.deleteServiceOperationSettings(), clientContext, operationsStub); this.undeleteServiceCallable = callableFactory.createUnaryCallable( undeleteServiceTransportSettings, settings.undeleteServiceSettings(), clientContext); this.undeleteServiceOperationCallable = callableFactory.createOperationCallable( undeleteServiceTransportSettings, settings.undeleteServiceOperationSettings(), clientContext, operationsStub); this.listServiceConfigsCallable = callableFactory.createUnaryCallable( listServiceConfigsTransportSettings, settings.listServiceConfigsSettings(), clientContext); this.listServiceConfigsPagedCallable = callableFactory.createPagedCallable( listServiceConfigsTransportSettings, settings.listServiceConfigsSettings(), clientContext); this.getServiceConfigCallable = callableFactory.createUnaryCallable( getServiceConfigTransportSettings, settings.getServiceConfigSettings(), clientContext); this.createServiceConfigCallable = callableFactory.createUnaryCallable( createServiceConfigTransportSettings, settings.createServiceConfigSettings(), clientContext); this.submitConfigSourceCallable = callableFactory.createUnaryCallable( submitConfigSourceTransportSettings, settings.submitConfigSourceSettings(), clientContext); this.submitConfigSourceOperationCallable = callableFactory.createOperationCallable( submitConfigSourceTransportSettings, settings.submitConfigSourceOperationSettings(), clientContext, operationsStub); this.listServiceRolloutsCallable = callableFactory.createUnaryCallable( listServiceRolloutsTransportSettings, settings.listServiceRolloutsSettings(), clientContext); this.listServiceRolloutsPagedCallable = callableFactory.createPagedCallable( listServiceRolloutsTransportSettings, settings.listServiceRolloutsSettings(), clientContext); this.getServiceRolloutCallable = callableFactory.createUnaryCallable( getServiceRolloutTransportSettings, settings.getServiceRolloutSettings(), clientContext); this.createServiceRolloutCallable = callableFactory.createUnaryCallable( createServiceRolloutTransportSettings, settings.createServiceRolloutSettings(), clientContext); this.createServiceRolloutOperationCallable = callableFactory.createOperationCallable( createServiceRolloutTransportSettings, settings.createServiceRolloutOperationSettings(), clientContext, operationsStub); this.generateConfigReportCallable = callableFactory.createUnaryCallable( generateConfigReportTransportSettings, settings.generateConfigReportSettings(), clientContext); this.setIamPolicyCallable = callableFactory.createUnaryCallable( setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); this.getIamPolicyCallable = callableFactory.createUnaryCallable( getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); this.testIamPermissionsCallable = callableFactory.createUnaryCallable( testIamPermissionsTransportSettings, settings.testIamPermissionsSettings(), clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); } public GrpcOperationsStub getOperationsStub() { return operationsStub; } @Override public UnaryCallable listServicesCallable() { return listServicesCallable; } @Override public UnaryCallable listServicesPagedCallable() { return listServicesPagedCallable; } @Override public UnaryCallable getServiceCallable() { return getServiceCallable; } @Override public UnaryCallable createServiceCallable() { return createServiceCallable; } @Override public OperationCallable createServiceOperationCallable() { return createServiceOperationCallable; } @Override public UnaryCallable deleteServiceCallable() { return deleteServiceCallable; } @Override public OperationCallable deleteServiceOperationCallable() { return deleteServiceOperationCallable; } @Override public UnaryCallable undeleteServiceCallable() { return undeleteServiceCallable; } @Override public OperationCallable undeleteServiceOperationCallable() { return undeleteServiceOperationCallable; } @Override public UnaryCallable listServiceConfigsCallable() { return listServiceConfigsCallable; } @Override public UnaryCallable listServiceConfigsPagedCallable() { return listServiceConfigsPagedCallable; } @Override public UnaryCallable getServiceConfigCallable() { return getServiceConfigCallable; } @Override public UnaryCallable createServiceConfigCallable() { return createServiceConfigCallable; } @Override public UnaryCallable submitConfigSourceCallable() { return submitConfigSourceCallable; } @Override public OperationCallable submitConfigSourceOperationCallable() { return submitConfigSourceOperationCallable; } @Override public UnaryCallable listServiceRolloutsCallable() { return listServiceRolloutsCallable; } @Override public UnaryCallable listServiceRolloutsPagedCallable() { return listServiceRolloutsPagedCallable; } @Override public UnaryCallable getServiceRolloutCallable() { return getServiceRolloutCallable; } @Override public UnaryCallable createServiceRolloutCallable() { return createServiceRolloutCallable; } @Override public OperationCallable createServiceRolloutOperationCallable() { return createServiceRolloutOperationCallable; } @Override public UnaryCallable generateConfigReportCallable() { return generateConfigReportCallable; } @Override public UnaryCallable setIamPolicyCallable() { return setIamPolicyCallable; } @Override public UnaryCallable getIamPolicyCallable() { return getIamPolicyCallable; } @Override public UnaryCallable testIamPermissionsCallable() { return testIamPermissionsCallable; } @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); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy