com.google.cloud.aiplatform.v1beta1.stub.GrpcJobServiceStub Maven / Gradle / Ivy
Show all versions of google-cloud-aiplatform Show documentation
/*
* Copyright 2023 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.aiplatform.v1beta1.stub;
import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.ListBatchPredictionJobsPagedResponse;
import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.ListCustomJobsPagedResponse;
import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.ListDataLabelingJobsPagedResponse;
import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.ListHyperparameterTuningJobsPagedResponse;
import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.ListLocationsPagedResponse;
import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.ListModelDeploymentMonitoringJobsPagedResponse;
import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.ListNasJobsPagedResponse;
import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.ListNasTrialDetailsPagedResponse;
import static com.google.cloud.aiplatform.v1beta1.JobServiceClient.SearchModelDeploymentMonitoringStatsAnomaliesPagedResponse;
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.aiplatform.v1beta1.BatchPredictionJob;
import com.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest;
import com.google.cloud.aiplatform.v1beta1.CancelCustomJobRequest;
import com.google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest;
import com.google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest;
import com.google.cloud.aiplatform.v1beta1.CancelNasJobRequest;
import com.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest;
import com.google.cloud.aiplatform.v1beta1.CreateCustomJobRequest;
import com.google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest;
import com.google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest;
import com.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest;
import com.google.cloud.aiplatform.v1beta1.CreateNasJobRequest;
import com.google.cloud.aiplatform.v1beta1.CustomJob;
import com.google.cloud.aiplatform.v1beta1.DataLabelingJob;
import com.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest;
import com.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest;
import com.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest;
import com.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest;
import com.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest;
import com.google.cloud.aiplatform.v1beta1.DeleteNasJobRequest;
import com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata;
import com.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest;
import com.google.cloud.aiplatform.v1beta1.GetCustomJobRequest;
import com.google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest;
import com.google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest;
import com.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest;
import com.google.cloud.aiplatform.v1beta1.GetNasJobRequest;
import com.google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest;
import com.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob;
import com.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest;
import com.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse;
import com.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest;
import com.google.cloud.aiplatform.v1beta1.ListCustomJobsResponse;
import com.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest;
import com.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse;
import com.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest;
import com.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse;
import com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest;
import com.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse;
import com.google.cloud.aiplatform.v1beta1.ListNasJobsRequest;
import com.google.cloud.aiplatform.v1beta1.ListNasJobsResponse;
import com.google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest;
import com.google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse;
import com.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob;
import com.google.cloud.aiplatform.v1beta1.NasJob;
import com.google.cloud.aiplatform.v1beta1.NasTrialDetail;
import com.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest;
import com.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest;
import com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest;
import com.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse;
import com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata;
import com.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest;
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.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 JobService service API.
*
* This class is for advanced usage and reflects the underlying API directly.
*/
@BetaApi
@Generated("by gapic-generator-java")
public class GrpcJobServiceStub extends JobServiceStub {
private static final MethodDescriptor
createCustomJobMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.aiplatform.v1beta1.JobService/CreateCustomJob")
.setRequestMarshaller(
ProtoUtils.marshaller(CreateCustomJobRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(CustomJob.getDefaultInstance()))
.build();
private static final MethodDescriptor
getCustomJobMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.aiplatform.v1beta1.JobService/GetCustomJob")
.setRequestMarshaller(ProtoUtils.marshaller(GetCustomJobRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(CustomJob.getDefaultInstance()))
.build();
private static final MethodDescriptor
listCustomJobsMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.aiplatform.v1beta1.JobService/ListCustomJobs")
.setRequestMarshaller(
ProtoUtils.marshaller(ListCustomJobsRequest.getDefaultInstance()))
.setResponseMarshaller(
ProtoUtils.marshaller(ListCustomJobsResponse.getDefaultInstance()))
.build();
private static final MethodDescriptor
deleteCustomJobMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.aiplatform.v1beta1.JobService/DeleteCustomJob")
.setRequestMarshaller(
ProtoUtils.marshaller(DeleteCustomJobRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor
cancelCustomJobMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.aiplatform.v1beta1.JobService/CancelCustomJob")
.setRequestMarshaller(
ProtoUtils.marshaller(CancelCustomJobRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance()))
.build();
private static final MethodDescriptor
createDataLabelingJobMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.aiplatform.v1beta1.JobService/CreateDataLabelingJob")
.setRequestMarshaller(
ProtoUtils.marshaller(CreateDataLabelingJobRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(DataLabelingJob.getDefaultInstance()))
.build();
private static final MethodDescriptor
getDataLabelingJobMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.aiplatform.v1beta1.JobService/GetDataLabelingJob")
.setRequestMarshaller(
ProtoUtils.marshaller(GetDataLabelingJobRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(DataLabelingJob.getDefaultInstance()))
.build();
private static final MethodDescriptor
listDataLabelingJobsMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.aiplatform.v1beta1.JobService/ListDataLabelingJobs")
.setRequestMarshaller(
ProtoUtils.marshaller(ListDataLabelingJobsRequest.getDefaultInstance()))
.setResponseMarshaller(
ProtoUtils.marshaller(ListDataLabelingJobsResponse.getDefaultInstance()))
.build();
private static final MethodDescriptor
deleteDataLabelingJobMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.aiplatform.v1beta1.JobService/DeleteDataLabelingJob")
.setRequestMarshaller(
ProtoUtils.marshaller(DeleteDataLabelingJobRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor
cancelDataLabelingJobMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.aiplatform.v1beta1.JobService/CancelDataLabelingJob")
.setRequestMarshaller(
ProtoUtils.marshaller(CancelDataLabelingJobRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance()))
.build();
private static final MethodDescriptor<
CreateHyperparameterTuningJobRequest, HyperparameterTuningJob>
createHyperparameterTuningJobMethodDescriptor =
MethodDescriptor
.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.aiplatform.v1beta1.JobService/CreateHyperparameterTuningJob")
.setRequestMarshaller(
ProtoUtils.marshaller(CreateHyperparameterTuningJobRequest.getDefaultInstance()))
.setResponseMarshaller(
ProtoUtils.marshaller(HyperparameterTuningJob.getDefaultInstance()))
.build();
private static final MethodDescriptor
getHyperparameterTuningJobMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.aiplatform.v1beta1.JobService/GetHyperparameterTuningJob")
.setRequestMarshaller(
ProtoUtils.marshaller(GetHyperparameterTuningJobRequest.getDefaultInstance()))
.setResponseMarshaller(
ProtoUtils.marshaller(HyperparameterTuningJob.getDefaultInstance()))
.build();
private static final MethodDescriptor<
ListHyperparameterTuningJobsRequest, ListHyperparameterTuningJobsResponse>
listHyperparameterTuningJobsMethodDescriptor =
MethodDescriptor
.
newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.aiplatform.v1beta1.JobService/ListHyperparameterTuningJobs")
.setRequestMarshaller(
ProtoUtils.marshaller(ListHyperparameterTuningJobsRequest.getDefaultInstance()))
.setResponseMarshaller(
ProtoUtils.marshaller(ListHyperparameterTuningJobsResponse.getDefaultInstance()))
.build();
private static final MethodDescriptor
deleteHyperparameterTuningJobMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.aiplatform.v1beta1.JobService/DeleteHyperparameterTuningJob")
.setRequestMarshaller(
ProtoUtils.marshaller(DeleteHyperparameterTuningJobRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor
cancelHyperparameterTuningJobMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.aiplatform.v1beta1.JobService/CancelHyperparameterTuningJob")
.setRequestMarshaller(
ProtoUtils.marshaller(CancelHyperparameterTuningJobRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance()))
.build();
private static final MethodDescriptor createNasJobMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.aiplatform.v1beta1.JobService/CreateNasJob")
.setRequestMarshaller(ProtoUtils.marshaller(CreateNasJobRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(NasJob.getDefaultInstance()))
.build();
private static final MethodDescriptor getNasJobMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.aiplatform.v1beta1.JobService/GetNasJob")
.setRequestMarshaller(ProtoUtils.marshaller(GetNasJobRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(NasJob.getDefaultInstance()))
.build();
private static final MethodDescriptor
listNasJobsMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.aiplatform.v1beta1.JobService/ListNasJobs")
.setRequestMarshaller(ProtoUtils.marshaller(ListNasJobsRequest.getDefaultInstance()))
.setResponseMarshaller(
ProtoUtils.marshaller(ListNasJobsResponse.getDefaultInstance()))
.build();
private static final MethodDescriptor
deleteNasJobMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.aiplatform.v1beta1.JobService/DeleteNasJob")
.setRequestMarshaller(ProtoUtils.marshaller(DeleteNasJobRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor cancelNasJobMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.aiplatform.v1beta1.JobService/CancelNasJob")
.setRequestMarshaller(ProtoUtils.marshaller(CancelNasJobRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance()))
.build();
private static final MethodDescriptor
getNasTrialDetailMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.aiplatform.v1beta1.JobService/GetNasTrialDetail")
.setRequestMarshaller(
ProtoUtils.marshaller(GetNasTrialDetailRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(NasTrialDetail.getDefaultInstance()))
.build();
private static final MethodDescriptor
listNasTrialDetailsMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.aiplatform.v1beta1.JobService/ListNasTrialDetails")
.setRequestMarshaller(
ProtoUtils.marshaller(ListNasTrialDetailsRequest.getDefaultInstance()))
.setResponseMarshaller(
ProtoUtils.marshaller(ListNasTrialDetailsResponse.getDefaultInstance()))
.build();
private static final MethodDescriptor
createBatchPredictionJobMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.aiplatform.v1beta1.JobService/CreateBatchPredictionJob")
.setRequestMarshaller(
ProtoUtils.marshaller(CreateBatchPredictionJobRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(BatchPredictionJob.getDefaultInstance()))
.build();
private static final MethodDescriptor
getBatchPredictionJobMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.aiplatform.v1beta1.JobService/GetBatchPredictionJob")
.setRequestMarshaller(
ProtoUtils.marshaller(GetBatchPredictionJobRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(BatchPredictionJob.getDefaultInstance()))
.build();
private static final MethodDescriptor<
ListBatchPredictionJobsRequest, ListBatchPredictionJobsResponse>
listBatchPredictionJobsMethodDescriptor =
MethodDescriptor
.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.aiplatform.v1beta1.JobService/ListBatchPredictionJobs")
.setRequestMarshaller(
ProtoUtils.marshaller(ListBatchPredictionJobsRequest.getDefaultInstance()))
.setResponseMarshaller(
ProtoUtils.marshaller(ListBatchPredictionJobsResponse.getDefaultInstance()))
.build();
private static final MethodDescriptor
deleteBatchPredictionJobMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.aiplatform.v1beta1.JobService/DeleteBatchPredictionJob")
.setRequestMarshaller(
ProtoUtils.marshaller(DeleteBatchPredictionJobRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor
cancelBatchPredictionJobMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.aiplatform.v1beta1.JobService/CancelBatchPredictionJob")
.setRequestMarshaller(
ProtoUtils.marshaller(CancelBatchPredictionJobRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance()))
.build();
private static final MethodDescriptor<
CreateModelDeploymentMonitoringJobRequest, ModelDeploymentMonitoringJob>
createModelDeploymentMonitoringJobMethodDescriptor =
MethodDescriptor
.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.aiplatform.v1beta1.JobService/CreateModelDeploymentMonitoringJob")
.setRequestMarshaller(
ProtoUtils.marshaller(
CreateModelDeploymentMonitoringJobRequest.getDefaultInstance()))
.setResponseMarshaller(
ProtoUtils.marshaller(ModelDeploymentMonitoringJob.getDefaultInstance()))
.build();
private static final MethodDescriptor<
SearchModelDeploymentMonitoringStatsAnomaliesRequest,
SearchModelDeploymentMonitoringStatsAnomaliesResponse>
searchModelDeploymentMonitoringStatsAnomaliesMethodDescriptor =
MethodDescriptor
.
newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.aiplatform.v1beta1.JobService/SearchModelDeploymentMonitoringStatsAnomalies")
.setRequestMarshaller(
ProtoUtils.marshaller(
SearchModelDeploymentMonitoringStatsAnomaliesRequest.getDefaultInstance()))
.setResponseMarshaller(
ProtoUtils.marshaller(
SearchModelDeploymentMonitoringStatsAnomaliesResponse.getDefaultInstance()))
.build();
private static final MethodDescriptor<
GetModelDeploymentMonitoringJobRequest, ModelDeploymentMonitoringJob>
getModelDeploymentMonitoringJobMethodDescriptor =
MethodDescriptor
.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.aiplatform.v1beta1.JobService/GetModelDeploymentMonitoringJob")
.setRequestMarshaller(
ProtoUtils.marshaller(
GetModelDeploymentMonitoringJobRequest.getDefaultInstance()))
.setResponseMarshaller(
ProtoUtils.marshaller(ModelDeploymentMonitoringJob.getDefaultInstance()))
.build();
private static final MethodDescriptor<
ListModelDeploymentMonitoringJobsRequest, ListModelDeploymentMonitoringJobsResponse>
listModelDeploymentMonitoringJobsMethodDescriptor =
MethodDescriptor
.
newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.aiplatform.v1beta1.JobService/ListModelDeploymentMonitoringJobs")
.setRequestMarshaller(
ProtoUtils.marshaller(
ListModelDeploymentMonitoringJobsRequest.getDefaultInstance()))
.setResponseMarshaller(
ProtoUtils.marshaller(
ListModelDeploymentMonitoringJobsResponse.getDefaultInstance()))
.build();
private static final MethodDescriptor
updateModelDeploymentMonitoringJobMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.aiplatform.v1beta1.JobService/UpdateModelDeploymentMonitoringJob")
.setRequestMarshaller(
ProtoUtils.marshaller(
UpdateModelDeploymentMonitoringJobRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor
deleteModelDeploymentMonitoringJobMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.aiplatform.v1beta1.JobService/DeleteModelDeploymentMonitoringJob")
.setRequestMarshaller(
ProtoUtils.marshaller(
DeleteModelDeploymentMonitoringJobRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor
pauseModelDeploymentMonitoringJobMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.aiplatform.v1beta1.JobService/PauseModelDeploymentMonitoringJob")
.setRequestMarshaller(
ProtoUtils.marshaller(
PauseModelDeploymentMonitoringJobRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance()))
.build();
private static final MethodDescriptor
resumeModelDeploymentMonitoringJobMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.aiplatform.v1beta1.JobService/ResumeModelDeploymentMonitoringJob")
.setRequestMarshaller(
ProtoUtils.marshaller(
ResumeModelDeploymentMonitoringJobRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Empty.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 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 createCustomJobCallable;
private final UnaryCallable getCustomJobCallable;
private final UnaryCallable listCustomJobsCallable;
private final UnaryCallable
listCustomJobsPagedCallable;
private final UnaryCallable deleteCustomJobCallable;
private final OperationCallable
deleteCustomJobOperationCallable;
private final UnaryCallable cancelCustomJobCallable;
private final UnaryCallable
createDataLabelingJobCallable;
private final UnaryCallable
getDataLabelingJobCallable;
private final UnaryCallable
listDataLabelingJobsCallable;
private final UnaryCallable
listDataLabelingJobsPagedCallable;
private final UnaryCallable
deleteDataLabelingJobCallable;
private final OperationCallable
deleteDataLabelingJobOperationCallable;
private final UnaryCallable cancelDataLabelingJobCallable;
private final UnaryCallable
createHyperparameterTuningJobCallable;
private final UnaryCallable
getHyperparameterTuningJobCallable;
private final UnaryCallable<
ListHyperparameterTuningJobsRequest, ListHyperparameterTuningJobsResponse>
listHyperparameterTuningJobsCallable;
private final UnaryCallable<
ListHyperparameterTuningJobsRequest, ListHyperparameterTuningJobsPagedResponse>
listHyperparameterTuningJobsPagedCallable;
private final UnaryCallable
deleteHyperparameterTuningJobCallable;
private final OperationCallable<
DeleteHyperparameterTuningJobRequest, Empty, DeleteOperationMetadata>
deleteHyperparameterTuningJobOperationCallable;
private final UnaryCallable
cancelHyperparameterTuningJobCallable;
private final UnaryCallable createNasJobCallable;
private final UnaryCallable getNasJobCallable;
private final UnaryCallable listNasJobsCallable;
private final UnaryCallable
listNasJobsPagedCallable;
private final UnaryCallable deleteNasJobCallable;
private final OperationCallable
deleteNasJobOperationCallable;
private final UnaryCallable cancelNasJobCallable;
private final UnaryCallable getNasTrialDetailCallable;
private final UnaryCallable
listNasTrialDetailsCallable;
private final UnaryCallable
listNasTrialDetailsPagedCallable;
private final UnaryCallable
createBatchPredictionJobCallable;
private final UnaryCallable
getBatchPredictionJobCallable;
private final UnaryCallable
listBatchPredictionJobsCallable;
private final UnaryCallable
listBatchPredictionJobsPagedCallable;
private final UnaryCallable
deleteBatchPredictionJobCallable;
private final OperationCallable
deleteBatchPredictionJobOperationCallable;
private final UnaryCallable
cancelBatchPredictionJobCallable;
private final UnaryCallable<
CreateModelDeploymentMonitoringJobRequest, ModelDeploymentMonitoringJob>
createModelDeploymentMonitoringJobCallable;
private final UnaryCallable<
SearchModelDeploymentMonitoringStatsAnomaliesRequest,
SearchModelDeploymentMonitoringStatsAnomaliesResponse>
searchModelDeploymentMonitoringStatsAnomaliesCallable;
private final UnaryCallable<
SearchModelDeploymentMonitoringStatsAnomaliesRequest,
SearchModelDeploymentMonitoringStatsAnomaliesPagedResponse>
searchModelDeploymentMonitoringStatsAnomaliesPagedCallable;
private final UnaryCallable
getModelDeploymentMonitoringJobCallable;
private final UnaryCallable<
ListModelDeploymentMonitoringJobsRequest, ListModelDeploymentMonitoringJobsResponse>
listModelDeploymentMonitoringJobsCallable;
private final UnaryCallable<
ListModelDeploymentMonitoringJobsRequest, ListModelDeploymentMonitoringJobsPagedResponse>
listModelDeploymentMonitoringJobsPagedCallable;
private final UnaryCallable
updateModelDeploymentMonitoringJobCallable;
private final OperationCallable<
UpdateModelDeploymentMonitoringJobRequest,
ModelDeploymentMonitoringJob,
UpdateModelDeploymentMonitoringJobOperationMetadata>
updateModelDeploymentMonitoringJobOperationCallable;
private final UnaryCallable
deleteModelDeploymentMonitoringJobCallable;
private final OperationCallable<
DeleteModelDeploymentMonitoringJobRequest, Empty, DeleteOperationMetadata>
deleteModelDeploymentMonitoringJobOperationCallable;
private final UnaryCallable
pauseModelDeploymentMonitoringJobCallable;
private final UnaryCallable
resumeModelDeploymentMonitoringJobCallable;
private final UnaryCallable listLocationsCallable;
private final UnaryCallable
listLocationsPagedCallable;
private final UnaryCallable getLocationCallable;
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 GrpcJobServiceStub create(JobServiceStubSettings settings)
throws IOException {
return new GrpcJobServiceStub(settings, ClientContext.create(settings));
}
public static final GrpcJobServiceStub create(ClientContext clientContext) throws IOException {
return new GrpcJobServiceStub(JobServiceStubSettings.newBuilder().build(), clientContext);
}
public static final GrpcJobServiceStub create(
ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException {
return new GrpcJobServiceStub(
JobServiceStubSettings.newBuilder().build(), clientContext, callableFactory);
}
/**
* Constructs an instance of GrpcJobServiceStub, 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 GrpcJobServiceStub(JobServiceStubSettings settings, ClientContext clientContext)
throws IOException {
this(settings, clientContext, new GrpcJobServiceCallableFactory());
}
/**
* Constructs an instance of GrpcJobServiceStub, 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 GrpcJobServiceStub(
JobServiceStubSettings settings,
ClientContext clientContext,
GrpcStubCallableFactory callableFactory)
throws IOException {
this.callableFactory = callableFactory;
this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory);
GrpcCallSettings createCustomJobTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(createCustomJobMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings getCustomJobTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(getCustomJobMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings
listCustomJobsTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(listCustomJobsMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings deleteCustomJobTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(deleteCustomJobMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings cancelCustomJobTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(cancelCustomJobMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings
createDataLabelingJobTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(createDataLabelingJobMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings
getDataLabelingJobTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(getDataLabelingJobMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings
listDataLabelingJobsTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(listDataLabelingJobsMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings
deleteDataLabelingJobTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(deleteDataLabelingJobMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings cancelDataLabelingJobTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(cancelDataLabelingJobMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings
createHyperparameterTuningJobTransportSettings =
GrpcCallSettings
.newBuilder()
.setMethodDescriptor(createHyperparameterTuningJobMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings
getHyperparameterTuningJobTransportSettings =
GrpcCallSettings
.newBuilder()
.setMethodDescriptor(getHyperparameterTuningJobMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings
listHyperparameterTuningJobsTransportSettings =
GrpcCallSettings
.
newBuilder()
.setMethodDescriptor(listHyperparameterTuningJobsMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings
deleteHyperparameterTuningJobTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(deleteHyperparameterTuningJobMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings
cancelHyperparameterTuningJobTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(cancelHyperparameterTuningJobMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings createNasJobTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(createNasJobMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings getNasJobTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(getNasJobMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings listNasJobsTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(listNasJobsMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings deleteNasJobTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(deleteNasJobMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings cancelNasJobTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(cancelNasJobMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings getNasTrialDetailTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(getNasTrialDetailMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings
listNasTrialDetailsTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(listNasTrialDetailsMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings
createBatchPredictionJobTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(createBatchPredictionJobMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings
getBatchPredictionJobTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(getBatchPredictionJobMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings
listBatchPredictionJobsTransportSettings =
GrpcCallSettings
.newBuilder()
.setMethodDescriptor(listBatchPredictionJobsMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings
deleteBatchPredictionJobTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(deleteBatchPredictionJobMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings
cancelBatchPredictionJobTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(cancelBatchPredictionJobMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings
createModelDeploymentMonitoringJobTransportSettings =
GrpcCallSettings
.
newBuilder()
.setMethodDescriptor(createModelDeploymentMonitoringJobMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings<
SearchModelDeploymentMonitoringStatsAnomaliesRequest,
SearchModelDeploymentMonitoringStatsAnomaliesResponse>
searchModelDeploymentMonitoringStatsAnomaliesTransportSettings =
GrpcCallSettings
.
newBuilder()
.setMethodDescriptor(searchModelDeploymentMonitoringStatsAnomaliesMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add(
"model_deployment_monitoring_job",
String.valueOf(request.getModelDeploymentMonitoringJob()));
return builder.build();
})
.build();
GrpcCallSettings
getModelDeploymentMonitoringJobTransportSettings =
GrpcCallSettings
.newBuilder()
.setMethodDescriptor(getModelDeploymentMonitoringJobMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings<
ListModelDeploymentMonitoringJobsRequest, ListModelDeploymentMonitoringJobsResponse>
listModelDeploymentMonitoringJobsTransportSettings =
GrpcCallSettings
.
newBuilder()
.setMethodDescriptor(listModelDeploymentMonitoringJobsMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings
updateModelDeploymentMonitoringJobTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(updateModelDeploymentMonitoringJobMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add(
"model_deployment_monitoring_job.name",
String.valueOf(request.getModelDeploymentMonitoringJob().getName()));
return builder.build();
})
.build();
GrpcCallSettings
deleteModelDeploymentMonitoringJobTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(deleteModelDeploymentMonitoringJobMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings
pauseModelDeploymentMonitoringJobTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(pauseModelDeploymentMonitoringJobMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings
resumeModelDeploymentMonitoringJobTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(resumeModelDeploymentMonitoringJobMethodDescriptor)
.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();
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.createCustomJobCallable =
callableFactory.createUnaryCallable(
createCustomJobTransportSettings, settings.createCustomJobSettings(), clientContext);
this.getCustomJobCallable =
callableFactory.createUnaryCallable(
getCustomJobTransportSettings, settings.getCustomJobSettings(), clientContext);
this.listCustomJobsCallable =
callableFactory.createUnaryCallable(
listCustomJobsTransportSettings, settings.listCustomJobsSettings(), clientContext);
this.listCustomJobsPagedCallable =
callableFactory.createPagedCallable(
listCustomJobsTransportSettings, settings.listCustomJobsSettings(), clientContext);
this.deleteCustomJobCallable =
callableFactory.createUnaryCallable(
deleteCustomJobTransportSettings, settings.deleteCustomJobSettings(), clientContext);
this.deleteCustomJobOperationCallable =
callableFactory.createOperationCallable(
deleteCustomJobTransportSettings,
settings.deleteCustomJobOperationSettings(),
clientContext,
operationsStub);
this.cancelCustomJobCallable =
callableFactory.createUnaryCallable(
cancelCustomJobTransportSettings, settings.cancelCustomJobSettings(), clientContext);
this.createDataLabelingJobCallable =
callableFactory.createUnaryCallable(
createDataLabelingJobTransportSettings,
settings.createDataLabelingJobSettings(),
clientContext);
this.getDataLabelingJobCallable =
callableFactory.createUnaryCallable(
getDataLabelingJobTransportSettings,
settings.getDataLabelingJobSettings(),
clientContext);
this.listDataLabelingJobsCallable =
callableFactory.createUnaryCallable(
listDataLabelingJobsTransportSettings,
settings.listDataLabelingJobsSettings(),
clientContext);
this.listDataLabelingJobsPagedCallable =
callableFactory.createPagedCallable(
listDataLabelingJobsTransportSettings,
settings.listDataLabelingJobsSettings(),
clientContext);
this.deleteDataLabelingJobCallable =
callableFactory.createUnaryCallable(
deleteDataLabelingJobTransportSettings,
settings.deleteDataLabelingJobSettings(),
clientContext);
this.deleteDataLabelingJobOperationCallable =
callableFactory.createOperationCallable(
deleteDataLabelingJobTransportSettings,
settings.deleteDataLabelingJobOperationSettings(),
clientContext,
operationsStub);
this.cancelDataLabelingJobCallable =
callableFactory.createUnaryCallable(
cancelDataLabelingJobTransportSettings,
settings.cancelDataLabelingJobSettings(),
clientContext);
this.createHyperparameterTuningJobCallable =
callableFactory.createUnaryCallable(
createHyperparameterTuningJobTransportSettings,
settings.createHyperparameterTuningJobSettings(),
clientContext);
this.getHyperparameterTuningJobCallable =
callableFactory.createUnaryCallable(
getHyperparameterTuningJobTransportSettings,
settings.getHyperparameterTuningJobSettings(),
clientContext);
this.listHyperparameterTuningJobsCallable =
callableFactory.createUnaryCallable(
listHyperparameterTuningJobsTransportSettings,
settings.listHyperparameterTuningJobsSettings(),
clientContext);
this.listHyperparameterTuningJobsPagedCallable =
callableFactory.createPagedCallable(
listHyperparameterTuningJobsTransportSettings,
settings.listHyperparameterTuningJobsSettings(),
clientContext);
this.deleteHyperparameterTuningJobCallable =
callableFactory.createUnaryCallable(
deleteHyperparameterTuningJobTransportSettings,
settings.deleteHyperparameterTuningJobSettings(),
clientContext);
this.deleteHyperparameterTuningJobOperationCallable =
callableFactory.createOperationCallable(
deleteHyperparameterTuningJobTransportSettings,
settings.deleteHyperparameterTuningJobOperationSettings(),
clientContext,
operationsStub);
this.cancelHyperparameterTuningJobCallable =
callableFactory.createUnaryCallable(
cancelHyperparameterTuningJobTransportSettings,
settings.cancelHyperparameterTuningJobSettings(),
clientContext);
this.createNasJobCallable =
callableFactory.createUnaryCallable(
createNasJobTransportSettings, settings.createNasJobSettings(), clientContext);
this.getNasJobCallable =
callableFactory.createUnaryCallable(
getNasJobTransportSettings, settings.getNasJobSettings(), clientContext);
this.listNasJobsCallable =
callableFactory.createUnaryCallable(
listNasJobsTransportSettings, settings.listNasJobsSettings(), clientContext);
this.listNasJobsPagedCallable =
callableFactory.createPagedCallable(
listNasJobsTransportSettings, settings.listNasJobsSettings(), clientContext);
this.deleteNasJobCallable =
callableFactory.createUnaryCallable(
deleteNasJobTransportSettings, settings.deleteNasJobSettings(), clientContext);
this.deleteNasJobOperationCallable =
callableFactory.createOperationCallable(
deleteNasJobTransportSettings,
settings.deleteNasJobOperationSettings(),
clientContext,
operationsStub);
this.cancelNasJobCallable =
callableFactory.createUnaryCallable(
cancelNasJobTransportSettings, settings.cancelNasJobSettings(), clientContext);
this.getNasTrialDetailCallable =
callableFactory.createUnaryCallable(
getNasTrialDetailTransportSettings,
settings.getNasTrialDetailSettings(),
clientContext);
this.listNasTrialDetailsCallable =
callableFactory.createUnaryCallable(
listNasTrialDetailsTransportSettings,
settings.listNasTrialDetailsSettings(),
clientContext);
this.listNasTrialDetailsPagedCallable =
callableFactory.createPagedCallable(
listNasTrialDetailsTransportSettings,
settings.listNasTrialDetailsSettings(),
clientContext);
this.createBatchPredictionJobCallable =
callableFactory.createUnaryCallable(
createBatchPredictionJobTransportSettings,
settings.createBatchPredictionJobSettings(),
clientContext);
this.getBatchPredictionJobCallable =
callableFactory.createUnaryCallable(
getBatchPredictionJobTransportSettings,
settings.getBatchPredictionJobSettings(),
clientContext);
this.listBatchPredictionJobsCallable =
callableFactory.createUnaryCallable(
listBatchPredictionJobsTransportSettings,
settings.listBatchPredictionJobsSettings(),
clientContext);
this.listBatchPredictionJobsPagedCallable =
callableFactory.createPagedCallable(
listBatchPredictionJobsTransportSettings,
settings.listBatchPredictionJobsSettings(),
clientContext);
this.deleteBatchPredictionJobCallable =
callableFactory.createUnaryCallable(
deleteBatchPredictionJobTransportSettings,
settings.deleteBatchPredictionJobSettings(),
clientContext);
this.deleteBatchPredictionJobOperationCallable =
callableFactory.createOperationCallable(
deleteBatchPredictionJobTransportSettings,
settings.deleteBatchPredictionJobOperationSettings(),
clientContext,
operationsStub);
this.cancelBatchPredictionJobCallable =
callableFactory.createUnaryCallable(
cancelBatchPredictionJobTransportSettings,
settings.cancelBatchPredictionJobSettings(),
clientContext);
this.createModelDeploymentMonitoringJobCallable =
callableFactory.createUnaryCallable(
createModelDeploymentMonitoringJobTransportSettings,
settings.createModelDeploymentMonitoringJobSettings(),
clientContext);
this.searchModelDeploymentMonitoringStatsAnomaliesCallable =
callableFactory.createUnaryCallable(
searchModelDeploymentMonitoringStatsAnomaliesTransportSettings,
settings.searchModelDeploymentMonitoringStatsAnomaliesSettings(),
clientContext);
this.searchModelDeploymentMonitoringStatsAnomaliesPagedCallable =
callableFactory.createPagedCallable(
searchModelDeploymentMonitoringStatsAnomaliesTransportSettings,
settings.searchModelDeploymentMonitoringStatsAnomaliesSettings(),
clientContext);
this.getModelDeploymentMonitoringJobCallable =
callableFactory.createUnaryCallable(
getModelDeploymentMonitoringJobTransportSettings,
settings.getModelDeploymentMonitoringJobSettings(),
clientContext);
this.listModelDeploymentMonitoringJobsCallable =
callableFactory.createUnaryCallable(
listModelDeploymentMonitoringJobsTransportSettings,
settings.listModelDeploymentMonitoringJobsSettings(),
clientContext);
this.listModelDeploymentMonitoringJobsPagedCallable =
callableFactory.createPagedCallable(
listModelDeploymentMonitoringJobsTransportSettings,
settings.listModelDeploymentMonitoringJobsSettings(),
clientContext);
this.updateModelDeploymentMonitoringJobCallable =
callableFactory.createUnaryCallable(
updateModelDeploymentMonitoringJobTransportSettings,
settings.updateModelDeploymentMonitoringJobSettings(),
clientContext);
this.updateModelDeploymentMonitoringJobOperationCallable =
callableFactory.createOperationCallable(
updateModelDeploymentMonitoringJobTransportSettings,
settings.updateModelDeploymentMonitoringJobOperationSettings(),
clientContext,
operationsStub);
this.deleteModelDeploymentMonitoringJobCallable =
callableFactory.createUnaryCallable(
deleteModelDeploymentMonitoringJobTransportSettings,
settings.deleteModelDeploymentMonitoringJobSettings(),
clientContext);
this.deleteModelDeploymentMonitoringJobOperationCallable =
callableFactory.createOperationCallable(
deleteModelDeploymentMonitoringJobTransportSettings,
settings.deleteModelDeploymentMonitoringJobOperationSettings(),
clientContext,
operationsStub);
this.pauseModelDeploymentMonitoringJobCallable =
callableFactory.createUnaryCallable(
pauseModelDeploymentMonitoringJobTransportSettings,
settings.pauseModelDeploymentMonitoringJobSettings(),
clientContext);
this.resumeModelDeploymentMonitoringJobCallable =
callableFactory.createUnaryCallable(
resumeModelDeploymentMonitoringJobTransportSettings,
settings.resumeModelDeploymentMonitoringJobSettings(),
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.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 createCustomJobCallable() {
return createCustomJobCallable;
}
@Override
public UnaryCallable getCustomJobCallable() {
return getCustomJobCallable;
}
@Override
public UnaryCallable listCustomJobsCallable() {
return listCustomJobsCallable;
}
@Override
public UnaryCallable
listCustomJobsPagedCallable() {
return listCustomJobsPagedCallable;
}
@Override
public UnaryCallable deleteCustomJobCallable() {
return deleteCustomJobCallable;
}
@Override
public OperationCallable
deleteCustomJobOperationCallable() {
return deleteCustomJobOperationCallable;
}
@Override
public UnaryCallable cancelCustomJobCallable() {
return cancelCustomJobCallable;
}
@Override
public UnaryCallable
createDataLabelingJobCallable() {
return createDataLabelingJobCallable;
}
@Override
public UnaryCallable getDataLabelingJobCallable() {
return getDataLabelingJobCallable;
}
@Override
public UnaryCallable
listDataLabelingJobsCallable() {
return listDataLabelingJobsCallable;
}
@Override
public UnaryCallable
listDataLabelingJobsPagedCallable() {
return listDataLabelingJobsPagedCallable;
}
@Override
public UnaryCallable deleteDataLabelingJobCallable() {
return deleteDataLabelingJobCallable;
}
@Override
public OperationCallable
deleteDataLabelingJobOperationCallable() {
return deleteDataLabelingJobOperationCallable;
}
@Override
public UnaryCallable cancelDataLabelingJobCallable() {
return cancelDataLabelingJobCallable;
}
@Override
public UnaryCallable
createHyperparameterTuningJobCallable() {
return createHyperparameterTuningJobCallable;
}
@Override
public UnaryCallable
getHyperparameterTuningJobCallable() {
return getHyperparameterTuningJobCallable;
}
@Override
public UnaryCallable
listHyperparameterTuningJobsCallable() {
return listHyperparameterTuningJobsCallable;
}
@Override
public UnaryCallable<
ListHyperparameterTuningJobsRequest, ListHyperparameterTuningJobsPagedResponse>
listHyperparameterTuningJobsPagedCallable() {
return listHyperparameterTuningJobsPagedCallable;
}
@Override
public UnaryCallable
deleteHyperparameterTuningJobCallable() {
return deleteHyperparameterTuningJobCallable;
}
@Override
public OperationCallable
deleteHyperparameterTuningJobOperationCallable() {
return deleteHyperparameterTuningJobOperationCallable;
}
@Override
public UnaryCallable
cancelHyperparameterTuningJobCallable() {
return cancelHyperparameterTuningJobCallable;
}
@Override
public UnaryCallable createNasJobCallable() {
return createNasJobCallable;
}
@Override
public UnaryCallable getNasJobCallable() {
return getNasJobCallable;
}
@Override
public UnaryCallable listNasJobsCallable() {
return listNasJobsCallable;
}
@Override
public UnaryCallable listNasJobsPagedCallable() {
return listNasJobsPagedCallable;
}
@Override
public UnaryCallable deleteNasJobCallable() {
return deleteNasJobCallable;
}
@Override
public OperationCallable
deleteNasJobOperationCallable() {
return deleteNasJobOperationCallable;
}
@Override
public UnaryCallable cancelNasJobCallable() {
return cancelNasJobCallable;
}
@Override
public UnaryCallable getNasTrialDetailCallable() {
return getNasTrialDetailCallable;
}
@Override
public UnaryCallable
listNasTrialDetailsCallable() {
return listNasTrialDetailsCallable;
}
@Override
public UnaryCallable
listNasTrialDetailsPagedCallable() {
return listNasTrialDetailsPagedCallable;
}
@Override
public UnaryCallable
createBatchPredictionJobCallable() {
return createBatchPredictionJobCallable;
}
@Override
public UnaryCallable
getBatchPredictionJobCallable() {
return getBatchPredictionJobCallable;
}
@Override
public UnaryCallable
listBatchPredictionJobsCallable() {
return listBatchPredictionJobsCallable;
}
@Override
public UnaryCallable
listBatchPredictionJobsPagedCallable() {
return listBatchPredictionJobsPagedCallable;
}
@Override
public UnaryCallable
deleteBatchPredictionJobCallable() {
return deleteBatchPredictionJobCallable;
}
@Override
public OperationCallable
deleteBatchPredictionJobOperationCallable() {
return deleteBatchPredictionJobOperationCallable;
}
@Override
public UnaryCallable cancelBatchPredictionJobCallable() {
return cancelBatchPredictionJobCallable;
}
@Override
public UnaryCallable
createModelDeploymentMonitoringJobCallable() {
return createModelDeploymentMonitoringJobCallable;
}
@Override
public UnaryCallable<
SearchModelDeploymentMonitoringStatsAnomaliesRequest,
SearchModelDeploymentMonitoringStatsAnomaliesResponse>
searchModelDeploymentMonitoringStatsAnomaliesCallable() {
return searchModelDeploymentMonitoringStatsAnomaliesCallable;
}
@Override
public UnaryCallable<
SearchModelDeploymentMonitoringStatsAnomaliesRequest,
SearchModelDeploymentMonitoringStatsAnomaliesPagedResponse>
searchModelDeploymentMonitoringStatsAnomaliesPagedCallable() {
return searchModelDeploymentMonitoringStatsAnomaliesPagedCallable;
}
@Override
public UnaryCallable
getModelDeploymentMonitoringJobCallable() {
return getModelDeploymentMonitoringJobCallable;
}
@Override
public UnaryCallable<
ListModelDeploymentMonitoringJobsRequest, ListModelDeploymentMonitoringJobsResponse>
listModelDeploymentMonitoringJobsCallable() {
return listModelDeploymentMonitoringJobsCallable;
}
@Override
public UnaryCallable<
ListModelDeploymentMonitoringJobsRequest, ListModelDeploymentMonitoringJobsPagedResponse>
listModelDeploymentMonitoringJobsPagedCallable() {
return listModelDeploymentMonitoringJobsPagedCallable;
}
@Override
public UnaryCallable
updateModelDeploymentMonitoringJobCallable() {
return updateModelDeploymentMonitoringJobCallable;
}
@Override
public OperationCallable<
UpdateModelDeploymentMonitoringJobRequest,
ModelDeploymentMonitoringJob,
UpdateModelDeploymentMonitoringJobOperationMetadata>
updateModelDeploymentMonitoringJobOperationCallable() {
return updateModelDeploymentMonitoringJobOperationCallable;
}
@Override
public UnaryCallable
deleteModelDeploymentMonitoringJobCallable() {
return deleteModelDeploymentMonitoringJobCallable;
}
@Override
public OperationCallable<
DeleteModelDeploymentMonitoringJobRequest, Empty, DeleteOperationMetadata>
deleteModelDeploymentMonitoringJobOperationCallable() {
return deleteModelDeploymentMonitoringJobOperationCallable;
}
@Override
public UnaryCallable
pauseModelDeploymentMonitoringJobCallable() {
return pauseModelDeploymentMonitoringJobCallable;
}
@Override
public UnaryCallable
resumeModelDeploymentMonitoringJobCallable() {
return resumeModelDeploymentMonitoringJobCallable;
}
@Override
public UnaryCallable listLocationsCallable() {
return listLocationsCallable;
}
@Override
public UnaryCallable
listLocationsPagedCallable() {
return listLocationsPagedCallable;
}
@Override
public UnaryCallable getLocationCallable() {
return getLocationCallable;
}
@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);
}
}