com.google.cloud.telcoautomation.v1alpha1.stub.GrpcTelcoAutomationStub Maven / Gradle / Ivy
Show all versions of google-cloud-telcoautomation 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.telcoautomation.v1alpha1.stub;
import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListBlueprintRevisionsPagedResponse;
import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListBlueprintsPagedResponse;
import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListDeploymentRevisionsPagedResponse;
import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListDeploymentsPagedResponse;
import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListEdgeSlmsPagedResponse;
import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListHydratedDeploymentsPagedResponse;
import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListLocationsPagedResponse;
import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListOrchestrationClustersPagedResponse;
import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.ListPublicBlueprintsPagedResponse;
import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.SearchBlueprintRevisionsPagedResponse;
import static com.google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient.SearchDeploymentRevisionsPagedResponse;
import com.google.api.core.BetaApi;
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.location.GetLocationRequest;
import com.google.cloud.location.ListLocationsRequest;
import com.google.cloud.location.ListLocationsResponse;
import com.google.cloud.location.Location;
import com.google.cloud.telcoautomation.v1alpha1.ApplyDeploymentRequest;
import com.google.cloud.telcoautomation.v1alpha1.ApplyHydratedDeploymentRequest;
import com.google.cloud.telcoautomation.v1alpha1.ApproveBlueprintRequest;
import com.google.cloud.telcoautomation.v1alpha1.Blueprint;
import com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusRequest;
import com.google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse;
import com.google.cloud.telcoautomation.v1alpha1.CreateBlueprintRequest;
import com.google.cloud.telcoautomation.v1alpha1.CreateDeploymentRequest;
import com.google.cloud.telcoautomation.v1alpha1.CreateEdgeSlmRequest;
import com.google.cloud.telcoautomation.v1alpha1.CreateOrchestrationClusterRequest;
import com.google.cloud.telcoautomation.v1alpha1.DeleteBlueprintRequest;
import com.google.cloud.telcoautomation.v1alpha1.DeleteEdgeSlmRequest;
import com.google.cloud.telcoautomation.v1alpha1.DeleteOrchestrationClusterRequest;
import com.google.cloud.telcoautomation.v1alpha1.Deployment;
import com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesRequest;
import com.google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse;
import com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesRequest;
import com.google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse;
import com.google.cloud.telcoautomation.v1alpha1.EdgeSlm;
import com.google.cloud.telcoautomation.v1alpha1.GetBlueprintRequest;
import com.google.cloud.telcoautomation.v1alpha1.GetDeploymentRequest;
import com.google.cloud.telcoautomation.v1alpha1.GetEdgeSlmRequest;
import com.google.cloud.telcoautomation.v1alpha1.GetHydratedDeploymentRequest;
import com.google.cloud.telcoautomation.v1alpha1.GetOrchestrationClusterRequest;
import com.google.cloud.telcoautomation.v1alpha1.GetPublicBlueprintRequest;
import com.google.cloud.telcoautomation.v1alpha1.HydratedDeployment;
import com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsRequest;
import com.google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse;
import com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsRequest;
import com.google.cloud.telcoautomation.v1alpha1.ListBlueprintsResponse;
import com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsRequest;
import com.google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse;
import com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsRequest;
import com.google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponse;
import com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsRequest;
import com.google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsResponse;
import com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsRequest;
import com.google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse;
import com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersRequest;
import com.google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersResponse;
import com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsRequest;
import com.google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsResponse;
import com.google.cloud.telcoautomation.v1alpha1.OperationMetadata;
import com.google.cloud.telcoautomation.v1alpha1.OrchestrationCluster;
import com.google.cloud.telcoautomation.v1alpha1.ProposeBlueprintRequest;
import com.google.cloud.telcoautomation.v1alpha1.PublicBlueprint;
import com.google.cloud.telcoautomation.v1alpha1.RejectBlueprintRequest;
import com.google.cloud.telcoautomation.v1alpha1.RemoveDeploymentRequest;
import com.google.cloud.telcoautomation.v1alpha1.RollbackDeploymentRequest;
import com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsRequest;
import com.google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse;
import com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsRequest;
import com.google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse;
import com.google.cloud.telcoautomation.v1alpha1.UpdateBlueprintRequest;
import com.google.cloud.telcoautomation.v1alpha1.UpdateDeploymentRequest;
import com.google.cloud.telcoautomation.v1alpha1.UpdateHydratedDeploymentRequest;
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 TelcoAutomation service API.
*
* This class is for advanced usage and reflects the underlying API directly.
*/
@BetaApi
@Generated("by gapic-generator-java")
public class GrpcTelcoAutomationStub extends TelcoAutomationStub {
private static final MethodDescriptor<
ListOrchestrationClustersRequest, ListOrchestrationClustersResponse>
listOrchestrationClustersMethodDescriptor =
MethodDescriptor
.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.telcoautomation.v1alpha1.TelcoAutomation/ListOrchestrationClusters")
.setRequestMarshaller(
ProtoUtils.marshaller(ListOrchestrationClustersRequest.getDefaultInstance()))
.setResponseMarshaller(
ProtoUtils.marshaller(ListOrchestrationClustersResponse.getDefaultInstance()))
.build();
private static final MethodDescriptor
getOrchestrationClusterMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.telcoautomation.v1alpha1.TelcoAutomation/GetOrchestrationCluster")
.setRequestMarshaller(
ProtoUtils.marshaller(GetOrchestrationClusterRequest.getDefaultInstance()))
.setResponseMarshaller(
ProtoUtils.marshaller(OrchestrationCluster.getDefaultInstance()))
.build();
private static final MethodDescriptor
createOrchestrationClusterMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.telcoautomation.v1alpha1.TelcoAutomation/CreateOrchestrationCluster")
.setRequestMarshaller(
ProtoUtils.marshaller(CreateOrchestrationClusterRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor
deleteOrchestrationClusterMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.telcoautomation.v1alpha1.TelcoAutomation/DeleteOrchestrationCluster")
.setRequestMarshaller(
ProtoUtils.marshaller(DeleteOrchestrationClusterRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor
listEdgeSlmsMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.telcoautomation.v1alpha1.TelcoAutomation/ListEdgeSlms")
.setRequestMarshaller(ProtoUtils.marshaller(ListEdgeSlmsRequest.getDefaultInstance()))
.setResponseMarshaller(
ProtoUtils.marshaller(ListEdgeSlmsResponse.getDefaultInstance()))
.build();
private static final MethodDescriptor getEdgeSlmMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.telcoautomation.v1alpha1.TelcoAutomation/GetEdgeSlm")
.setRequestMarshaller(ProtoUtils.marshaller(GetEdgeSlmRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(EdgeSlm.getDefaultInstance()))
.build();
private static final MethodDescriptor
createEdgeSlmMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.telcoautomation.v1alpha1.TelcoAutomation/CreateEdgeSlm")
.setRequestMarshaller(
ProtoUtils.marshaller(CreateEdgeSlmRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor
deleteEdgeSlmMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.telcoautomation.v1alpha1.TelcoAutomation/DeleteEdgeSlm")
.setRequestMarshaller(
ProtoUtils.marshaller(DeleteEdgeSlmRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor
createBlueprintMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.telcoautomation.v1alpha1.TelcoAutomation/CreateBlueprint")
.setRequestMarshaller(
ProtoUtils.marshaller(CreateBlueprintRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Blueprint.getDefaultInstance()))
.build();
private static final MethodDescriptor
updateBlueprintMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.telcoautomation.v1alpha1.TelcoAutomation/UpdateBlueprint")
.setRequestMarshaller(
ProtoUtils.marshaller(UpdateBlueprintRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Blueprint.getDefaultInstance()))
.build();
private static final MethodDescriptor
getBlueprintMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.telcoautomation.v1alpha1.TelcoAutomation/GetBlueprint")
.setRequestMarshaller(ProtoUtils.marshaller(GetBlueprintRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Blueprint.getDefaultInstance()))
.build();
private static final MethodDescriptor
deleteBlueprintMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.telcoautomation.v1alpha1.TelcoAutomation/DeleteBlueprint")
.setRequestMarshaller(
ProtoUtils.marshaller(DeleteBlueprintRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance()))
.build();
private static final MethodDescriptor
listBlueprintsMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.telcoautomation.v1alpha1.TelcoAutomation/ListBlueprints")
.setRequestMarshaller(
ProtoUtils.marshaller(ListBlueprintsRequest.getDefaultInstance()))
.setResponseMarshaller(
ProtoUtils.marshaller(ListBlueprintsResponse.getDefaultInstance()))
.build();
private static final MethodDescriptor
approveBlueprintMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.telcoautomation.v1alpha1.TelcoAutomation/ApproveBlueprint")
.setRequestMarshaller(
ProtoUtils.marshaller(ApproveBlueprintRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Blueprint.getDefaultInstance()))
.build();
private static final MethodDescriptor
proposeBlueprintMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.telcoautomation.v1alpha1.TelcoAutomation/ProposeBlueprint")
.setRequestMarshaller(
ProtoUtils.marshaller(ProposeBlueprintRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Blueprint.getDefaultInstance()))
.build();
private static final MethodDescriptor
rejectBlueprintMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.telcoautomation.v1alpha1.TelcoAutomation/RejectBlueprint")
.setRequestMarshaller(
ProtoUtils.marshaller(RejectBlueprintRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Blueprint.getDefaultInstance()))
.build();
private static final MethodDescriptor<
ListBlueprintRevisionsRequest, ListBlueprintRevisionsResponse>
listBlueprintRevisionsMethodDescriptor =
MethodDescriptor
.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.telcoautomation.v1alpha1.TelcoAutomation/ListBlueprintRevisions")
.setRequestMarshaller(
ProtoUtils.marshaller(ListBlueprintRevisionsRequest.getDefaultInstance()))
.setResponseMarshaller(
ProtoUtils.marshaller(ListBlueprintRevisionsResponse.getDefaultInstance()))
.build();
private static final MethodDescriptor<
SearchBlueprintRevisionsRequest, SearchBlueprintRevisionsResponse>
searchBlueprintRevisionsMethodDescriptor =
MethodDescriptor
.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.telcoautomation.v1alpha1.TelcoAutomation/SearchBlueprintRevisions")
.setRequestMarshaller(
ProtoUtils.marshaller(SearchBlueprintRevisionsRequest.getDefaultInstance()))
.setResponseMarshaller(
ProtoUtils.marshaller(SearchBlueprintRevisionsResponse.getDefaultInstance()))
.build();
private static final MethodDescriptor<
SearchDeploymentRevisionsRequest, SearchDeploymentRevisionsResponse>
searchDeploymentRevisionsMethodDescriptor =
MethodDescriptor
.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.telcoautomation.v1alpha1.TelcoAutomation/SearchDeploymentRevisions")
.setRequestMarshaller(
ProtoUtils.marshaller(SearchDeploymentRevisionsRequest.getDefaultInstance()))
.setResponseMarshaller(
ProtoUtils.marshaller(SearchDeploymentRevisionsResponse.getDefaultInstance()))
.build();
private static final MethodDescriptor<
DiscardBlueprintChangesRequest, DiscardBlueprintChangesResponse>
discardBlueprintChangesMethodDescriptor =
MethodDescriptor
.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.telcoautomation.v1alpha1.TelcoAutomation/DiscardBlueprintChanges")
.setRequestMarshaller(
ProtoUtils.marshaller(DiscardBlueprintChangesRequest.getDefaultInstance()))
.setResponseMarshaller(
ProtoUtils.marshaller(DiscardBlueprintChangesResponse.getDefaultInstance()))
.build();
private static final MethodDescriptor
listPublicBlueprintsMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.telcoautomation.v1alpha1.TelcoAutomation/ListPublicBlueprints")
.setRequestMarshaller(
ProtoUtils.marshaller(ListPublicBlueprintsRequest.getDefaultInstance()))
.setResponseMarshaller(
ProtoUtils.marshaller(ListPublicBlueprintsResponse.getDefaultInstance()))
.build();
private static final MethodDescriptor
getPublicBlueprintMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.telcoautomation.v1alpha1.TelcoAutomation/GetPublicBlueprint")
.setRequestMarshaller(
ProtoUtils.marshaller(GetPublicBlueprintRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(PublicBlueprint.getDefaultInstance()))
.build();
private static final MethodDescriptor
createDeploymentMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.telcoautomation.v1alpha1.TelcoAutomation/CreateDeployment")
.setRequestMarshaller(
ProtoUtils.marshaller(CreateDeploymentRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Deployment.getDefaultInstance()))
.build();
private static final MethodDescriptor
updateDeploymentMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.telcoautomation.v1alpha1.TelcoAutomation/UpdateDeployment")
.setRequestMarshaller(
ProtoUtils.marshaller(UpdateDeploymentRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Deployment.getDefaultInstance()))
.build();
private static final MethodDescriptor
getDeploymentMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.telcoautomation.v1alpha1.TelcoAutomation/GetDeployment")
.setRequestMarshaller(
ProtoUtils.marshaller(GetDeploymentRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Deployment.getDefaultInstance()))
.build();
private static final MethodDescriptor
removeDeploymentMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.telcoautomation.v1alpha1.TelcoAutomation/RemoveDeployment")
.setRequestMarshaller(
ProtoUtils.marshaller(RemoveDeploymentRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance()))
.build();
private static final MethodDescriptor
listDeploymentsMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.telcoautomation.v1alpha1.TelcoAutomation/ListDeployments")
.setRequestMarshaller(
ProtoUtils.marshaller(ListDeploymentsRequest.getDefaultInstance()))
.setResponseMarshaller(
ProtoUtils.marshaller(ListDeploymentsResponse.getDefaultInstance()))
.build();
private static final MethodDescriptor<
ListDeploymentRevisionsRequest, ListDeploymentRevisionsResponse>
listDeploymentRevisionsMethodDescriptor =
MethodDescriptor
.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.telcoautomation.v1alpha1.TelcoAutomation/ListDeploymentRevisions")
.setRequestMarshaller(
ProtoUtils.marshaller(ListDeploymentRevisionsRequest.getDefaultInstance()))
.setResponseMarshaller(
ProtoUtils.marshaller(ListDeploymentRevisionsResponse.getDefaultInstance()))
.build();
private static final MethodDescriptor<
DiscardDeploymentChangesRequest, DiscardDeploymentChangesResponse>
discardDeploymentChangesMethodDescriptor =
MethodDescriptor
.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.telcoautomation.v1alpha1.TelcoAutomation/DiscardDeploymentChanges")
.setRequestMarshaller(
ProtoUtils.marshaller(DiscardDeploymentChangesRequest.getDefaultInstance()))
.setResponseMarshaller(
ProtoUtils.marshaller(DiscardDeploymentChangesResponse.getDefaultInstance()))
.build();
private static final MethodDescriptor
applyDeploymentMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.telcoautomation.v1alpha1.TelcoAutomation/ApplyDeployment")
.setRequestMarshaller(
ProtoUtils.marshaller(ApplyDeploymentRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Deployment.getDefaultInstance()))
.build();
private static final MethodDescriptor<
ComputeDeploymentStatusRequest, ComputeDeploymentStatusResponse>
computeDeploymentStatusMethodDescriptor =
MethodDescriptor
.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.telcoautomation.v1alpha1.TelcoAutomation/ComputeDeploymentStatus")
.setRequestMarshaller(
ProtoUtils.marshaller(ComputeDeploymentStatusRequest.getDefaultInstance()))
.setResponseMarshaller(
ProtoUtils.marshaller(ComputeDeploymentStatusResponse.getDefaultInstance()))
.build();
private static final MethodDescriptor
rollbackDeploymentMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.telcoautomation.v1alpha1.TelcoAutomation/RollbackDeployment")
.setRequestMarshaller(
ProtoUtils.marshaller(RollbackDeploymentRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Deployment.getDefaultInstance()))
.build();
private static final MethodDescriptor
getHydratedDeploymentMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.telcoautomation.v1alpha1.TelcoAutomation/GetHydratedDeployment")
.setRequestMarshaller(
ProtoUtils.marshaller(GetHydratedDeploymentRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(HydratedDeployment.getDefaultInstance()))
.build();
private static final MethodDescriptor<
ListHydratedDeploymentsRequest, ListHydratedDeploymentsResponse>
listHydratedDeploymentsMethodDescriptor =
MethodDescriptor
.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.telcoautomation.v1alpha1.TelcoAutomation/ListHydratedDeployments")
.setRequestMarshaller(
ProtoUtils.marshaller(ListHydratedDeploymentsRequest.getDefaultInstance()))
.setResponseMarshaller(
ProtoUtils.marshaller(ListHydratedDeploymentsResponse.getDefaultInstance()))
.build();
private static final MethodDescriptor
updateHydratedDeploymentMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.telcoautomation.v1alpha1.TelcoAutomation/UpdateHydratedDeployment")
.setRequestMarshaller(
ProtoUtils.marshaller(UpdateHydratedDeploymentRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(HydratedDeployment.getDefaultInstance()))
.build();
private static final MethodDescriptor
applyHydratedDeploymentMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.telcoautomation.v1alpha1.TelcoAutomation/ApplyHydratedDeployment")
.setRequestMarshaller(
ProtoUtils.marshaller(ApplyHydratedDeploymentRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(HydratedDeployment.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
listOrchestrationClustersCallable;
private final UnaryCallable<
ListOrchestrationClustersRequest, ListOrchestrationClustersPagedResponse>
listOrchestrationClustersPagedCallable;
private final UnaryCallable
getOrchestrationClusterCallable;
private final UnaryCallable
createOrchestrationClusterCallable;
private final OperationCallable<
CreateOrchestrationClusterRequest, OrchestrationCluster, OperationMetadata>
createOrchestrationClusterOperationCallable;
private final UnaryCallable
deleteOrchestrationClusterCallable;
private final OperationCallable
deleteOrchestrationClusterOperationCallable;
private final UnaryCallable listEdgeSlmsCallable;
private final UnaryCallable
listEdgeSlmsPagedCallable;
private final UnaryCallable getEdgeSlmCallable;
private final UnaryCallable createEdgeSlmCallable;
private final OperationCallable
createEdgeSlmOperationCallable;
private final UnaryCallable deleteEdgeSlmCallable;
private final OperationCallable
deleteEdgeSlmOperationCallable;
private final UnaryCallable createBlueprintCallable;
private final UnaryCallable updateBlueprintCallable;
private final UnaryCallable getBlueprintCallable;
private final UnaryCallable deleteBlueprintCallable;
private final UnaryCallable listBlueprintsCallable;
private final UnaryCallable
listBlueprintsPagedCallable;
private final UnaryCallable approveBlueprintCallable;
private final UnaryCallable proposeBlueprintCallable;
private final UnaryCallable rejectBlueprintCallable;
private final UnaryCallable
listBlueprintRevisionsCallable;
private final UnaryCallable
listBlueprintRevisionsPagedCallable;
private final UnaryCallable
searchBlueprintRevisionsCallable;
private final UnaryCallable<
SearchBlueprintRevisionsRequest, SearchBlueprintRevisionsPagedResponse>
searchBlueprintRevisionsPagedCallable;
private final UnaryCallable
searchDeploymentRevisionsCallable;
private final UnaryCallable<
SearchDeploymentRevisionsRequest, SearchDeploymentRevisionsPagedResponse>
searchDeploymentRevisionsPagedCallable;
private final UnaryCallable
discardBlueprintChangesCallable;
private final UnaryCallable
listPublicBlueprintsCallable;
private final UnaryCallable
listPublicBlueprintsPagedCallable;
private final UnaryCallable
getPublicBlueprintCallable;
private final UnaryCallable createDeploymentCallable;
private final UnaryCallable updateDeploymentCallable;
private final UnaryCallable getDeploymentCallable;
private final UnaryCallable removeDeploymentCallable;
private final UnaryCallable
listDeploymentsCallable;
private final UnaryCallable
listDeploymentsPagedCallable;
private final UnaryCallable
listDeploymentRevisionsCallable;
private final UnaryCallable
listDeploymentRevisionsPagedCallable;
private final UnaryCallable
discardDeploymentChangesCallable;
private final UnaryCallable applyDeploymentCallable;
private final UnaryCallable
computeDeploymentStatusCallable;
private final UnaryCallable rollbackDeploymentCallable;
private final UnaryCallable
getHydratedDeploymentCallable;
private final UnaryCallable
listHydratedDeploymentsCallable;
private final UnaryCallable
listHydratedDeploymentsPagedCallable;
private final UnaryCallable
updateHydratedDeploymentCallable;
private final UnaryCallable
applyHydratedDeploymentCallable;
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 GrpcTelcoAutomationStub create(TelcoAutomationStubSettings settings)
throws IOException {
return new GrpcTelcoAutomationStub(settings, ClientContext.create(settings));
}
public static final GrpcTelcoAutomationStub create(ClientContext clientContext)
throws IOException {
return new GrpcTelcoAutomationStub(
TelcoAutomationStubSettings.newBuilder().build(), clientContext);
}
public static final GrpcTelcoAutomationStub create(
ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException {
return new GrpcTelcoAutomationStub(
TelcoAutomationStubSettings.newBuilder().build(), clientContext, callableFactory);
}
/**
* Constructs an instance of GrpcTelcoAutomationStub, 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 GrpcTelcoAutomationStub(
TelcoAutomationStubSettings settings, ClientContext clientContext) throws IOException {
this(settings, clientContext, new GrpcTelcoAutomationCallableFactory());
}
/**
* Constructs an instance of GrpcTelcoAutomationStub, 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 GrpcTelcoAutomationStub(
TelcoAutomationStubSettings settings,
ClientContext clientContext,
GrpcStubCallableFactory callableFactory)
throws IOException {
this.callableFactory = callableFactory;
this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory);
GrpcCallSettings
listOrchestrationClustersTransportSettings =
GrpcCallSettings
.newBuilder()
.setMethodDescriptor(listOrchestrationClustersMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings
getOrchestrationClusterTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(getOrchestrationClusterMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings
createOrchestrationClusterTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(createOrchestrationClusterMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings
deleteOrchestrationClusterTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(deleteOrchestrationClusterMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings listEdgeSlmsTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(listEdgeSlmsMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings getEdgeSlmTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(getEdgeSlmMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings createEdgeSlmTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(createEdgeSlmMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings deleteEdgeSlmTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(deleteEdgeSlmMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings createBlueprintTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(createBlueprintMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings updateBlueprintTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(updateBlueprintMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("blueprint.name", String.valueOf(request.getBlueprint().getName()));
return builder.build();
})
.build();
GrpcCallSettings getBlueprintTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(getBlueprintMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings deleteBlueprintTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(deleteBlueprintMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings
listBlueprintsTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(listBlueprintsMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings approveBlueprintTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(approveBlueprintMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings proposeBlueprintTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(proposeBlueprintMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings rejectBlueprintTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(rejectBlueprintMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings
listBlueprintRevisionsTransportSettings =
GrpcCallSettings
.newBuilder()
.setMethodDescriptor(listBlueprintRevisionsMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings
searchBlueprintRevisionsTransportSettings =
GrpcCallSettings
.newBuilder()
.setMethodDescriptor(searchBlueprintRevisionsMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings
searchDeploymentRevisionsTransportSettings =
GrpcCallSettings
.newBuilder()
.setMethodDescriptor(searchDeploymentRevisionsMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings
discardBlueprintChangesTransportSettings =
GrpcCallSettings
.newBuilder()
.setMethodDescriptor(discardBlueprintChangesMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings
listPublicBlueprintsTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(listPublicBlueprintsMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings
getPublicBlueprintTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(getPublicBlueprintMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings createDeploymentTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(createDeploymentMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings updateDeploymentTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(updateDeploymentMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("deployment.name", String.valueOf(request.getDeployment().getName()));
return builder.build();
})
.build();
GrpcCallSettings getDeploymentTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(getDeploymentMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings removeDeploymentTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(removeDeploymentMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings
listDeploymentsTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(listDeploymentsMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings
listDeploymentRevisionsTransportSettings =
GrpcCallSettings
.newBuilder()
.setMethodDescriptor(listDeploymentRevisionsMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings
discardDeploymentChangesTransportSettings =
GrpcCallSettings
.newBuilder()
.setMethodDescriptor(discardDeploymentChangesMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings applyDeploymentTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(applyDeploymentMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings
computeDeploymentStatusTransportSettings =
GrpcCallSettings
.newBuilder()
.setMethodDescriptor(computeDeploymentStatusMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings rollbackDeploymentTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(rollbackDeploymentMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings
getHydratedDeploymentTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(getHydratedDeploymentMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings
listHydratedDeploymentsTransportSettings =
GrpcCallSettings
.newBuilder()
.setMethodDescriptor(listHydratedDeploymentsMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings
updateHydratedDeploymentTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(updateHydratedDeploymentMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add(
"hydrated_deployment.name",
String.valueOf(request.getHydratedDeployment().getName()));
return builder.build();
})
.build();
GrpcCallSettings
applyHydratedDeploymentTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(applyHydratedDeploymentMethodDescriptor)
.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.listOrchestrationClustersCallable =
callableFactory.createUnaryCallable(
listOrchestrationClustersTransportSettings,
settings.listOrchestrationClustersSettings(),
clientContext);
this.listOrchestrationClustersPagedCallable =
callableFactory.createPagedCallable(
listOrchestrationClustersTransportSettings,
settings.listOrchestrationClustersSettings(),
clientContext);
this.getOrchestrationClusterCallable =
callableFactory.createUnaryCallable(
getOrchestrationClusterTransportSettings,
settings.getOrchestrationClusterSettings(),
clientContext);
this.createOrchestrationClusterCallable =
callableFactory.createUnaryCallable(
createOrchestrationClusterTransportSettings,
settings.createOrchestrationClusterSettings(),
clientContext);
this.createOrchestrationClusterOperationCallable =
callableFactory.createOperationCallable(
createOrchestrationClusterTransportSettings,
settings.createOrchestrationClusterOperationSettings(),
clientContext,
operationsStub);
this.deleteOrchestrationClusterCallable =
callableFactory.createUnaryCallable(
deleteOrchestrationClusterTransportSettings,
settings.deleteOrchestrationClusterSettings(),
clientContext);
this.deleteOrchestrationClusterOperationCallable =
callableFactory.createOperationCallable(
deleteOrchestrationClusterTransportSettings,
settings.deleteOrchestrationClusterOperationSettings(),
clientContext,
operationsStub);
this.listEdgeSlmsCallable =
callableFactory.createUnaryCallable(
listEdgeSlmsTransportSettings, settings.listEdgeSlmsSettings(), clientContext);
this.listEdgeSlmsPagedCallable =
callableFactory.createPagedCallable(
listEdgeSlmsTransportSettings, settings.listEdgeSlmsSettings(), clientContext);
this.getEdgeSlmCallable =
callableFactory.createUnaryCallable(
getEdgeSlmTransportSettings, settings.getEdgeSlmSettings(), clientContext);
this.createEdgeSlmCallable =
callableFactory.createUnaryCallable(
createEdgeSlmTransportSettings, settings.createEdgeSlmSettings(), clientContext);
this.createEdgeSlmOperationCallable =
callableFactory.createOperationCallable(
createEdgeSlmTransportSettings,
settings.createEdgeSlmOperationSettings(),
clientContext,
operationsStub);
this.deleteEdgeSlmCallable =
callableFactory.createUnaryCallable(
deleteEdgeSlmTransportSettings, settings.deleteEdgeSlmSettings(), clientContext);
this.deleteEdgeSlmOperationCallable =
callableFactory.createOperationCallable(
deleteEdgeSlmTransportSettings,
settings.deleteEdgeSlmOperationSettings(),
clientContext,
operationsStub);
this.createBlueprintCallable =
callableFactory.createUnaryCallable(
createBlueprintTransportSettings, settings.createBlueprintSettings(), clientContext);
this.updateBlueprintCallable =
callableFactory.createUnaryCallable(
updateBlueprintTransportSettings, settings.updateBlueprintSettings(), clientContext);
this.getBlueprintCallable =
callableFactory.createUnaryCallable(
getBlueprintTransportSettings, settings.getBlueprintSettings(), clientContext);
this.deleteBlueprintCallable =
callableFactory.createUnaryCallable(
deleteBlueprintTransportSettings, settings.deleteBlueprintSettings(), clientContext);
this.listBlueprintsCallable =
callableFactory.createUnaryCallable(
listBlueprintsTransportSettings, settings.listBlueprintsSettings(), clientContext);
this.listBlueprintsPagedCallable =
callableFactory.createPagedCallable(
listBlueprintsTransportSettings, settings.listBlueprintsSettings(), clientContext);
this.approveBlueprintCallable =
callableFactory.createUnaryCallable(
approveBlueprintTransportSettings, settings.approveBlueprintSettings(), clientContext);
this.proposeBlueprintCallable =
callableFactory.createUnaryCallable(
proposeBlueprintTransportSettings, settings.proposeBlueprintSettings(), clientContext);
this.rejectBlueprintCallable =
callableFactory.createUnaryCallable(
rejectBlueprintTransportSettings, settings.rejectBlueprintSettings(), clientContext);
this.listBlueprintRevisionsCallable =
callableFactory.createUnaryCallable(
listBlueprintRevisionsTransportSettings,
settings.listBlueprintRevisionsSettings(),
clientContext);
this.listBlueprintRevisionsPagedCallable =
callableFactory.createPagedCallable(
listBlueprintRevisionsTransportSettings,
settings.listBlueprintRevisionsSettings(),
clientContext);
this.searchBlueprintRevisionsCallable =
callableFactory.createUnaryCallable(
searchBlueprintRevisionsTransportSettings,
settings.searchBlueprintRevisionsSettings(),
clientContext);
this.searchBlueprintRevisionsPagedCallable =
callableFactory.createPagedCallable(
searchBlueprintRevisionsTransportSettings,
settings.searchBlueprintRevisionsSettings(),
clientContext);
this.searchDeploymentRevisionsCallable =
callableFactory.createUnaryCallable(
searchDeploymentRevisionsTransportSettings,
settings.searchDeploymentRevisionsSettings(),
clientContext);
this.searchDeploymentRevisionsPagedCallable =
callableFactory.createPagedCallable(
searchDeploymentRevisionsTransportSettings,
settings.searchDeploymentRevisionsSettings(),
clientContext);
this.discardBlueprintChangesCallable =
callableFactory.createUnaryCallable(
discardBlueprintChangesTransportSettings,
settings.discardBlueprintChangesSettings(),
clientContext);
this.listPublicBlueprintsCallable =
callableFactory.createUnaryCallable(
listPublicBlueprintsTransportSettings,
settings.listPublicBlueprintsSettings(),
clientContext);
this.listPublicBlueprintsPagedCallable =
callableFactory.createPagedCallable(
listPublicBlueprintsTransportSettings,
settings.listPublicBlueprintsSettings(),
clientContext);
this.getPublicBlueprintCallable =
callableFactory.createUnaryCallable(
getPublicBlueprintTransportSettings,
settings.getPublicBlueprintSettings(),
clientContext);
this.createDeploymentCallable =
callableFactory.createUnaryCallable(
createDeploymentTransportSettings, settings.createDeploymentSettings(), clientContext);
this.updateDeploymentCallable =
callableFactory.createUnaryCallable(
updateDeploymentTransportSettings, settings.updateDeploymentSettings(), clientContext);
this.getDeploymentCallable =
callableFactory.createUnaryCallable(
getDeploymentTransportSettings, settings.getDeploymentSettings(), clientContext);
this.removeDeploymentCallable =
callableFactory.createUnaryCallable(
removeDeploymentTransportSettings, settings.removeDeploymentSettings(), clientContext);
this.listDeploymentsCallable =
callableFactory.createUnaryCallable(
listDeploymentsTransportSettings, settings.listDeploymentsSettings(), clientContext);
this.listDeploymentsPagedCallable =
callableFactory.createPagedCallable(
listDeploymentsTransportSettings, settings.listDeploymentsSettings(), clientContext);
this.listDeploymentRevisionsCallable =
callableFactory.createUnaryCallable(
listDeploymentRevisionsTransportSettings,
settings.listDeploymentRevisionsSettings(),
clientContext);
this.listDeploymentRevisionsPagedCallable =
callableFactory.createPagedCallable(
listDeploymentRevisionsTransportSettings,
settings.listDeploymentRevisionsSettings(),
clientContext);
this.discardDeploymentChangesCallable =
callableFactory.createUnaryCallable(
discardDeploymentChangesTransportSettings,
settings.discardDeploymentChangesSettings(),
clientContext);
this.applyDeploymentCallable =
callableFactory.createUnaryCallable(
applyDeploymentTransportSettings, settings.applyDeploymentSettings(), clientContext);
this.computeDeploymentStatusCallable =
callableFactory.createUnaryCallable(
computeDeploymentStatusTransportSettings,
settings.computeDeploymentStatusSettings(),
clientContext);
this.rollbackDeploymentCallable =
callableFactory.createUnaryCallable(
rollbackDeploymentTransportSettings,
settings.rollbackDeploymentSettings(),
clientContext);
this.getHydratedDeploymentCallable =
callableFactory.createUnaryCallable(
getHydratedDeploymentTransportSettings,
settings.getHydratedDeploymentSettings(),
clientContext);
this.listHydratedDeploymentsCallable =
callableFactory.createUnaryCallable(
listHydratedDeploymentsTransportSettings,
settings.listHydratedDeploymentsSettings(),
clientContext);
this.listHydratedDeploymentsPagedCallable =
callableFactory.createPagedCallable(
listHydratedDeploymentsTransportSettings,
settings.listHydratedDeploymentsSettings(),
clientContext);
this.updateHydratedDeploymentCallable =
callableFactory.createUnaryCallable(
updateHydratedDeploymentTransportSettings,
settings.updateHydratedDeploymentSettings(),
clientContext);
this.applyHydratedDeploymentCallable =
callableFactory.createUnaryCallable(
applyHydratedDeploymentTransportSettings,
settings.applyHydratedDeploymentSettings(),
clientContext);
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
listOrchestrationClustersCallable() {
return listOrchestrationClustersCallable;
}
@Override
public UnaryCallable
listOrchestrationClustersPagedCallable() {
return listOrchestrationClustersPagedCallable;
}
@Override
public UnaryCallable
getOrchestrationClusterCallable() {
return getOrchestrationClusterCallable;
}
@Override
public UnaryCallable
createOrchestrationClusterCallable() {
return createOrchestrationClusterCallable;
}
@Override
public OperationCallable<
CreateOrchestrationClusterRequest, OrchestrationCluster, OperationMetadata>
createOrchestrationClusterOperationCallable() {
return createOrchestrationClusterOperationCallable;
}
@Override
public UnaryCallable
deleteOrchestrationClusterCallable() {
return deleteOrchestrationClusterCallable;
}
@Override
public OperationCallable
deleteOrchestrationClusterOperationCallable() {
return deleteOrchestrationClusterOperationCallable;
}
@Override
public UnaryCallable listEdgeSlmsCallable() {
return listEdgeSlmsCallable;
}
@Override
public UnaryCallable listEdgeSlmsPagedCallable() {
return listEdgeSlmsPagedCallable;
}
@Override
public UnaryCallable getEdgeSlmCallable() {
return getEdgeSlmCallable;
}
@Override
public UnaryCallable createEdgeSlmCallable() {
return createEdgeSlmCallable;
}
@Override
public OperationCallable
createEdgeSlmOperationCallable() {
return createEdgeSlmOperationCallable;
}
@Override
public UnaryCallable deleteEdgeSlmCallable() {
return deleteEdgeSlmCallable;
}
@Override
public OperationCallable
deleteEdgeSlmOperationCallable() {
return deleteEdgeSlmOperationCallable;
}
@Override
public UnaryCallable createBlueprintCallable() {
return createBlueprintCallable;
}
@Override
public UnaryCallable updateBlueprintCallable() {
return updateBlueprintCallable;
}
@Override
public UnaryCallable getBlueprintCallable() {
return getBlueprintCallable;
}
@Override
public UnaryCallable deleteBlueprintCallable() {
return deleteBlueprintCallable;
}
@Override
public UnaryCallable listBlueprintsCallable() {
return listBlueprintsCallable;
}
@Override
public UnaryCallable
listBlueprintsPagedCallable() {
return listBlueprintsPagedCallable;
}
@Override
public UnaryCallable approveBlueprintCallable() {
return approveBlueprintCallable;
}
@Override
public UnaryCallable proposeBlueprintCallable() {
return proposeBlueprintCallable;
}
@Override
public UnaryCallable rejectBlueprintCallable() {
return rejectBlueprintCallable;
}
@Override
public UnaryCallable
listBlueprintRevisionsCallable() {
return listBlueprintRevisionsCallable;
}
@Override
public UnaryCallable
listBlueprintRevisionsPagedCallable() {
return listBlueprintRevisionsPagedCallable;
}
@Override
public UnaryCallable
searchBlueprintRevisionsCallable() {
return searchBlueprintRevisionsCallable;
}
@Override
public UnaryCallable
searchBlueprintRevisionsPagedCallable() {
return searchBlueprintRevisionsPagedCallable;
}
@Override
public UnaryCallable
searchDeploymentRevisionsCallable() {
return searchDeploymentRevisionsCallable;
}
@Override
public UnaryCallable
searchDeploymentRevisionsPagedCallable() {
return searchDeploymentRevisionsPagedCallable;
}
@Override
public UnaryCallable
discardBlueprintChangesCallable() {
return discardBlueprintChangesCallable;
}
@Override
public UnaryCallable
listPublicBlueprintsCallable() {
return listPublicBlueprintsCallable;
}
@Override
public UnaryCallable
listPublicBlueprintsPagedCallable() {
return listPublicBlueprintsPagedCallable;
}
@Override
public UnaryCallable getPublicBlueprintCallable() {
return getPublicBlueprintCallable;
}
@Override
public UnaryCallable createDeploymentCallable() {
return createDeploymentCallable;
}
@Override
public UnaryCallable updateDeploymentCallable() {
return updateDeploymentCallable;
}
@Override
public UnaryCallable getDeploymentCallable() {
return getDeploymentCallable;
}
@Override
public UnaryCallable removeDeploymentCallable() {
return removeDeploymentCallable;
}
@Override
public UnaryCallable listDeploymentsCallable() {
return listDeploymentsCallable;
}
@Override
public UnaryCallable
listDeploymentsPagedCallable() {
return listDeploymentsPagedCallable;
}
@Override
public UnaryCallable
listDeploymentRevisionsCallable() {
return listDeploymentRevisionsCallable;
}
@Override
public UnaryCallable
listDeploymentRevisionsPagedCallable() {
return listDeploymentRevisionsPagedCallable;
}
@Override
public UnaryCallable
discardDeploymentChangesCallable() {
return discardDeploymentChangesCallable;
}
@Override
public UnaryCallable applyDeploymentCallable() {
return applyDeploymentCallable;
}
@Override
public UnaryCallable
computeDeploymentStatusCallable() {
return computeDeploymentStatusCallable;
}
@Override
public UnaryCallable rollbackDeploymentCallable() {
return rollbackDeploymentCallable;
}
@Override
public UnaryCallable
getHydratedDeploymentCallable() {
return getHydratedDeploymentCallable;
}
@Override
public UnaryCallable
listHydratedDeploymentsCallable() {
return listHydratedDeploymentsCallable;
}
@Override
public UnaryCallable
listHydratedDeploymentsPagedCallable() {
return listHydratedDeploymentsPagedCallable;
}
@Override
public UnaryCallable
updateHydratedDeploymentCallable() {
return updateHydratedDeploymentCallable;
}
@Override
public UnaryCallable
applyHydratedDeploymentCallable() {
return applyHydratedDeploymentCallable;
}
@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);
}
}