com.google.cloud.migrationcenter.v1.stub.GrpcMigrationCenterStub Maven / Gradle / Ivy
Show all versions of google-cloud-migrationcenter 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.migrationcenter.v1.stub;
import static com.google.cloud.migrationcenter.v1.MigrationCenterClient.ListAssetsPagedResponse;
import static com.google.cloud.migrationcenter.v1.MigrationCenterClient.ListErrorFramesPagedResponse;
import static com.google.cloud.migrationcenter.v1.MigrationCenterClient.ListGroupsPagedResponse;
import static com.google.cloud.migrationcenter.v1.MigrationCenterClient.ListImportDataFilesPagedResponse;
import static com.google.cloud.migrationcenter.v1.MigrationCenterClient.ListImportJobsPagedResponse;
import static com.google.cloud.migrationcenter.v1.MigrationCenterClient.ListLocationsPagedResponse;
import static com.google.cloud.migrationcenter.v1.MigrationCenterClient.ListPreferenceSetsPagedResponse;
import static com.google.cloud.migrationcenter.v1.MigrationCenterClient.ListReportConfigsPagedResponse;
import static com.google.cloud.migrationcenter.v1.MigrationCenterClient.ListReportsPagedResponse;
import static com.google.cloud.migrationcenter.v1.MigrationCenterClient.ListSourcesPagedResponse;
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.migrationcenter.v1.AddAssetsToGroupRequest;
import com.google.cloud.migrationcenter.v1.AggregateAssetsValuesRequest;
import com.google.cloud.migrationcenter.v1.AggregateAssetsValuesResponse;
import com.google.cloud.migrationcenter.v1.Asset;
import com.google.cloud.migrationcenter.v1.BatchDeleteAssetsRequest;
import com.google.cloud.migrationcenter.v1.BatchUpdateAssetsRequest;
import com.google.cloud.migrationcenter.v1.BatchUpdateAssetsResponse;
import com.google.cloud.migrationcenter.v1.CreateGroupRequest;
import com.google.cloud.migrationcenter.v1.CreateImportDataFileRequest;
import com.google.cloud.migrationcenter.v1.CreateImportJobRequest;
import com.google.cloud.migrationcenter.v1.CreatePreferenceSetRequest;
import com.google.cloud.migrationcenter.v1.CreateReportConfigRequest;
import com.google.cloud.migrationcenter.v1.CreateReportRequest;
import com.google.cloud.migrationcenter.v1.CreateSourceRequest;
import com.google.cloud.migrationcenter.v1.DeleteAssetRequest;
import com.google.cloud.migrationcenter.v1.DeleteGroupRequest;
import com.google.cloud.migrationcenter.v1.DeleteImportDataFileRequest;
import com.google.cloud.migrationcenter.v1.DeleteImportJobRequest;
import com.google.cloud.migrationcenter.v1.DeletePreferenceSetRequest;
import com.google.cloud.migrationcenter.v1.DeleteReportConfigRequest;
import com.google.cloud.migrationcenter.v1.DeleteReportRequest;
import com.google.cloud.migrationcenter.v1.DeleteSourceRequest;
import com.google.cloud.migrationcenter.v1.ErrorFrame;
import com.google.cloud.migrationcenter.v1.GetAssetRequest;
import com.google.cloud.migrationcenter.v1.GetErrorFrameRequest;
import com.google.cloud.migrationcenter.v1.GetGroupRequest;
import com.google.cloud.migrationcenter.v1.GetImportDataFileRequest;
import com.google.cloud.migrationcenter.v1.GetImportJobRequest;
import com.google.cloud.migrationcenter.v1.GetPreferenceSetRequest;
import com.google.cloud.migrationcenter.v1.GetReportConfigRequest;
import com.google.cloud.migrationcenter.v1.GetReportRequest;
import com.google.cloud.migrationcenter.v1.GetSettingsRequest;
import com.google.cloud.migrationcenter.v1.GetSourceRequest;
import com.google.cloud.migrationcenter.v1.Group;
import com.google.cloud.migrationcenter.v1.ImportDataFile;
import com.google.cloud.migrationcenter.v1.ImportJob;
import com.google.cloud.migrationcenter.v1.ListAssetsRequest;
import com.google.cloud.migrationcenter.v1.ListAssetsResponse;
import com.google.cloud.migrationcenter.v1.ListErrorFramesRequest;
import com.google.cloud.migrationcenter.v1.ListErrorFramesResponse;
import com.google.cloud.migrationcenter.v1.ListGroupsRequest;
import com.google.cloud.migrationcenter.v1.ListGroupsResponse;
import com.google.cloud.migrationcenter.v1.ListImportDataFilesRequest;
import com.google.cloud.migrationcenter.v1.ListImportDataFilesResponse;
import com.google.cloud.migrationcenter.v1.ListImportJobsRequest;
import com.google.cloud.migrationcenter.v1.ListImportJobsResponse;
import com.google.cloud.migrationcenter.v1.ListPreferenceSetsRequest;
import com.google.cloud.migrationcenter.v1.ListPreferenceSetsResponse;
import com.google.cloud.migrationcenter.v1.ListReportConfigsRequest;
import com.google.cloud.migrationcenter.v1.ListReportConfigsResponse;
import com.google.cloud.migrationcenter.v1.ListReportsRequest;
import com.google.cloud.migrationcenter.v1.ListReportsResponse;
import com.google.cloud.migrationcenter.v1.ListSourcesRequest;
import com.google.cloud.migrationcenter.v1.ListSourcesResponse;
import com.google.cloud.migrationcenter.v1.OperationMetadata;
import com.google.cloud.migrationcenter.v1.PreferenceSet;
import com.google.cloud.migrationcenter.v1.RemoveAssetsFromGroupRequest;
import com.google.cloud.migrationcenter.v1.Report;
import com.google.cloud.migrationcenter.v1.ReportAssetFramesRequest;
import com.google.cloud.migrationcenter.v1.ReportAssetFramesResponse;
import com.google.cloud.migrationcenter.v1.ReportConfig;
import com.google.cloud.migrationcenter.v1.RunImportJobRequest;
import com.google.cloud.migrationcenter.v1.Settings;
import com.google.cloud.migrationcenter.v1.Source;
import com.google.cloud.migrationcenter.v1.UpdateAssetRequest;
import com.google.cloud.migrationcenter.v1.UpdateGroupRequest;
import com.google.cloud.migrationcenter.v1.UpdateImportJobRequest;
import com.google.cloud.migrationcenter.v1.UpdatePreferenceSetRequest;
import com.google.cloud.migrationcenter.v1.UpdateSettingsRequest;
import com.google.cloud.migrationcenter.v1.UpdateSourceRequest;
import com.google.cloud.migrationcenter.v1.ValidateImportJobRequest;
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 MigrationCenter service API.
*
* This class is for advanced usage and reflects the underlying API directly.
*/
@Generated("by gapic-generator-java")
public class GrpcMigrationCenterStub extends MigrationCenterStub {
private static final MethodDescriptor
listAssetsMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.migrationcenter.v1.MigrationCenter/ListAssets")
.setRequestMarshaller(ProtoUtils.marshaller(ListAssetsRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(ListAssetsResponse.getDefaultInstance()))
.build();
private static final MethodDescriptor getAssetMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.migrationcenter.v1.MigrationCenter/GetAsset")
.setRequestMarshaller(ProtoUtils.marshaller(GetAssetRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Asset.getDefaultInstance()))
.build();
private static final MethodDescriptor updateAssetMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.migrationcenter.v1.MigrationCenter/UpdateAsset")
.setRequestMarshaller(ProtoUtils.marshaller(UpdateAssetRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Asset.getDefaultInstance()))
.build();
private static final MethodDescriptor
batchUpdateAssetsMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.migrationcenter.v1.MigrationCenter/BatchUpdateAssets")
.setRequestMarshaller(
ProtoUtils.marshaller(BatchUpdateAssetsRequest.getDefaultInstance()))
.setResponseMarshaller(
ProtoUtils.marshaller(BatchUpdateAssetsResponse.getDefaultInstance()))
.build();
private static final MethodDescriptor deleteAssetMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.migrationcenter.v1.MigrationCenter/DeleteAsset")
.setRequestMarshaller(ProtoUtils.marshaller(DeleteAssetRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance()))
.build();
private static final MethodDescriptor
batchDeleteAssetsMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.migrationcenter.v1.MigrationCenter/BatchDeleteAssets")
.setRequestMarshaller(
ProtoUtils.marshaller(BatchDeleteAssetsRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance()))
.build();
private static final MethodDescriptor
reportAssetFramesMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.migrationcenter.v1.MigrationCenter/ReportAssetFrames")
.setRequestMarshaller(
ProtoUtils.marshaller(ReportAssetFramesRequest.getDefaultInstance()))
.setResponseMarshaller(
ProtoUtils.marshaller(ReportAssetFramesResponse.getDefaultInstance()))
.build();
private static final MethodDescriptor
aggregateAssetsValuesMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.migrationcenter.v1.MigrationCenter/AggregateAssetsValues")
.setRequestMarshaller(
ProtoUtils.marshaller(AggregateAssetsValuesRequest.getDefaultInstance()))
.setResponseMarshaller(
ProtoUtils.marshaller(AggregateAssetsValuesResponse.getDefaultInstance()))
.build();
private static final MethodDescriptor
createImportJobMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.migrationcenter.v1.MigrationCenter/CreateImportJob")
.setRequestMarshaller(
ProtoUtils.marshaller(CreateImportJobRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor
listImportJobsMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.migrationcenter.v1.MigrationCenter/ListImportJobs")
.setRequestMarshaller(
ProtoUtils.marshaller(ListImportJobsRequest.getDefaultInstance()))
.setResponseMarshaller(
ProtoUtils.marshaller(ListImportJobsResponse.getDefaultInstance()))
.build();
private static final MethodDescriptor
getImportJobMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.migrationcenter.v1.MigrationCenter/GetImportJob")
.setRequestMarshaller(ProtoUtils.marshaller(GetImportJobRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(ImportJob.getDefaultInstance()))
.build();
private static final MethodDescriptor
deleteImportJobMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.migrationcenter.v1.MigrationCenter/DeleteImportJob")
.setRequestMarshaller(
ProtoUtils.marshaller(DeleteImportJobRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor
updateImportJobMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.migrationcenter.v1.MigrationCenter/UpdateImportJob")
.setRequestMarshaller(
ProtoUtils.marshaller(UpdateImportJobRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor
validateImportJobMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.migrationcenter.v1.MigrationCenter/ValidateImportJob")
.setRequestMarshaller(
ProtoUtils.marshaller(ValidateImportJobRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor
runImportJobMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.migrationcenter.v1.MigrationCenter/RunImportJob")
.setRequestMarshaller(ProtoUtils.marshaller(RunImportJobRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor
getImportDataFileMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.migrationcenter.v1.MigrationCenter/GetImportDataFile")
.setRequestMarshaller(
ProtoUtils.marshaller(GetImportDataFileRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(ImportDataFile.getDefaultInstance()))
.build();
private static final MethodDescriptor
listImportDataFilesMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.migrationcenter.v1.MigrationCenter/ListImportDataFiles")
.setRequestMarshaller(
ProtoUtils.marshaller(ListImportDataFilesRequest.getDefaultInstance()))
.setResponseMarshaller(
ProtoUtils.marshaller(ListImportDataFilesResponse.getDefaultInstance()))
.build();
private static final MethodDescriptor
createImportDataFileMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.migrationcenter.v1.MigrationCenter/CreateImportDataFile")
.setRequestMarshaller(
ProtoUtils.marshaller(CreateImportDataFileRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor
deleteImportDataFileMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.migrationcenter.v1.MigrationCenter/DeleteImportDataFile")
.setRequestMarshaller(
ProtoUtils.marshaller(DeleteImportDataFileRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor
listGroupsMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.migrationcenter.v1.MigrationCenter/ListGroups")
.setRequestMarshaller(ProtoUtils.marshaller(ListGroupsRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(ListGroupsResponse.getDefaultInstance()))
.build();
private static final MethodDescriptor getGroupMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.migrationcenter.v1.MigrationCenter/GetGroup")
.setRequestMarshaller(ProtoUtils.marshaller(GetGroupRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Group.getDefaultInstance()))
.build();
private static final MethodDescriptor createGroupMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.migrationcenter.v1.MigrationCenter/CreateGroup")
.setRequestMarshaller(ProtoUtils.marshaller(CreateGroupRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor updateGroupMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.migrationcenter.v1.MigrationCenter/UpdateGroup")
.setRequestMarshaller(ProtoUtils.marshaller(UpdateGroupRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor deleteGroupMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.migrationcenter.v1.MigrationCenter/DeleteGroup")
.setRequestMarshaller(ProtoUtils.marshaller(DeleteGroupRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor
addAssetsToGroupMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.migrationcenter.v1.MigrationCenter/AddAssetsToGroup")
.setRequestMarshaller(
ProtoUtils.marshaller(AddAssetsToGroupRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor
removeAssetsFromGroupMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.migrationcenter.v1.MigrationCenter/RemoveAssetsFromGroup")
.setRequestMarshaller(
ProtoUtils.marshaller(RemoveAssetsFromGroupRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor
listErrorFramesMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.migrationcenter.v1.MigrationCenter/ListErrorFrames")
.setRequestMarshaller(
ProtoUtils.marshaller(ListErrorFramesRequest.getDefaultInstance()))
.setResponseMarshaller(
ProtoUtils.marshaller(ListErrorFramesResponse.getDefaultInstance()))
.build();
private static final MethodDescriptor
getErrorFrameMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.migrationcenter.v1.MigrationCenter/GetErrorFrame")
.setRequestMarshaller(
ProtoUtils.marshaller(GetErrorFrameRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(ErrorFrame.getDefaultInstance()))
.build();
private static final MethodDescriptor
listSourcesMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.migrationcenter.v1.MigrationCenter/ListSources")
.setRequestMarshaller(ProtoUtils.marshaller(ListSourcesRequest.getDefaultInstance()))
.setResponseMarshaller(
ProtoUtils.marshaller(ListSourcesResponse.getDefaultInstance()))
.build();
private static final MethodDescriptor getSourceMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.migrationcenter.v1.MigrationCenter/GetSource")
.setRequestMarshaller(ProtoUtils.marshaller(GetSourceRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Source.getDefaultInstance()))
.build();
private static final MethodDescriptor
createSourceMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.migrationcenter.v1.MigrationCenter/CreateSource")
.setRequestMarshaller(ProtoUtils.marshaller(CreateSourceRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor
updateSourceMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.migrationcenter.v1.MigrationCenter/UpdateSource")
.setRequestMarshaller(ProtoUtils.marshaller(UpdateSourceRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor
deleteSourceMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.migrationcenter.v1.MigrationCenter/DeleteSource")
.setRequestMarshaller(ProtoUtils.marshaller(DeleteSourceRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor
listPreferenceSetsMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.migrationcenter.v1.MigrationCenter/ListPreferenceSets")
.setRequestMarshaller(
ProtoUtils.marshaller(ListPreferenceSetsRequest.getDefaultInstance()))
.setResponseMarshaller(
ProtoUtils.marshaller(ListPreferenceSetsResponse.getDefaultInstance()))
.build();
private static final MethodDescriptor
getPreferenceSetMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.migrationcenter.v1.MigrationCenter/GetPreferenceSet")
.setRequestMarshaller(
ProtoUtils.marshaller(GetPreferenceSetRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(PreferenceSet.getDefaultInstance()))
.build();
private static final MethodDescriptor
createPreferenceSetMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.migrationcenter.v1.MigrationCenter/CreatePreferenceSet")
.setRequestMarshaller(
ProtoUtils.marshaller(CreatePreferenceSetRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor
updatePreferenceSetMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.migrationcenter.v1.MigrationCenter/UpdatePreferenceSet")
.setRequestMarshaller(
ProtoUtils.marshaller(UpdatePreferenceSetRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor
deletePreferenceSetMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.migrationcenter.v1.MigrationCenter/DeletePreferenceSet")
.setRequestMarshaller(
ProtoUtils.marshaller(DeletePreferenceSetRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor getSettingsMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.migrationcenter.v1.MigrationCenter/GetSettings")
.setRequestMarshaller(ProtoUtils.marshaller(GetSettingsRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Settings.getDefaultInstance()))
.build();
private static final MethodDescriptor
updateSettingsMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.migrationcenter.v1.MigrationCenter/UpdateSettings")
.setRequestMarshaller(
ProtoUtils.marshaller(UpdateSettingsRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor
createReportConfigMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.migrationcenter.v1.MigrationCenter/CreateReportConfig")
.setRequestMarshaller(
ProtoUtils.marshaller(CreateReportConfigRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor
getReportConfigMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.migrationcenter.v1.MigrationCenter/GetReportConfig")
.setRequestMarshaller(
ProtoUtils.marshaller(GetReportConfigRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(ReportConfig.getDefaultInstance()))
.build();
private static final MethodDescriptor
listReportConfigsMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.migrationcenter.v1.MigrationCenter/ListReportConfigs")
.setRequestMarshaller(
ProtoUtils.marshaller(ListReportConfigsRequest.getDefaultInstance()))
.setResponseMarshaller(
ProtoUtils.marshaller(ListReportConfigsResponse.getDefaultInstance()))
.build();
private static final MethodDescriptor
deleteReportConfigMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
"google.cloud.migrationcenter.v1.MigrationCenter/DeleteReportConfig")
.setRequestMarshaller(
ProtoUtils.marshaller(DeleteReportConfigRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor
createReportMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.migrationcenter.v1.MigrationCenter/CreateReport")
.setRequestMarshaller(ProtoUtils.marshaller(CreateReportRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor getReportMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.migrationcenter.v1.MigrationCenter/GetReport")
.setRequestMarshaller(ProtoUtils.marshaller(GetReportRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Report.getDefaultInstance()))
.build();
private static final MethodDescriptor
listReportsMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.migrationcenter.v1.MigrationCenter/ListReports")
.setRequestMarshaller(ProtoUtils.marshaller(ListReportsRequest.getDefaultInstance()))
.setResponseMarshaller(
ProtoUtils.marshaller(ListReportsResponse.getDefaultInstance()))
.build();
private static final MethodDescriptor
deleteReportMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.migrationcenter.v1.MigrationCenter/DeleteReport")
.setRequestMarshaller(ProtoUtils.marshaller(DeleteReportRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
private static final MethodDescriptor
listLocationsMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.location.Locations/ListLocations")
.setRequestMarshaller(
ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance()))
.setResponseMarshaller(
ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance()))
.build();
private static final MethodDescriptor getLocationMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
.setFullMethodName("google.cloud.location.Locations/GetLocation")
.setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance()))
.build();
private final UnaryCallable listAssetsCallable;
private final UnaryCallable listAssetsPagedCallable;
private final UnaryCallable getAssetCallable;
private final UnaryCallable updateAssetCallable;
private final UnaryCallable
batchUpdateAssetsCallable;
private final UnaryCallable deleteAssetCallable;
private final UnaryCallable batchDeleteAssetsCallable;
private final UnaryCallable
reportAssetFramesCallable;
private final UnaryCallable
aggregateAssetsValuesCallable;
private final UnaryCallable createImportJobCallable;
private final OperationCallable
createImportJobOperationCallable;
private final UnaryCallable listImportJobsCallable;
private final UnaryCallable
listImportJobsPagedCallable;
private final UnaryCallable getImportJobCallable;
private final UnaryCallable deleteImportJobCallable;
private final OperationCallable
deleteImportJobOperationCallable;
private final UnaryCallable updateImportJobCallable;
private final OperationCallable
updateImportJobOperationCallable;
private final UnaryCallable validateImportJobCallable;
private final OperationCallable
validateImportJobOperationCallable;
private final UnaryCallable runImportJobCallable;
private final OperationCallable
runImportJobOperationCallable;
private final UnaryCallable getImportDataFileCallable;
private final UnaryCallable
listImportDataFilesCallable;
private final UnaryCallable
listImportDataFilesPagedCallable;
private final UnaryCallable createImportDataFileCallable;
private final OperationCallable
createImportDataFileOperationCallable;
private final UnaryCallable deleteImportDataFileCallable;
private final OperationCallable
deleteImportDataFileOperationCallable;
private final UnaryCallable listGroupsCallable;
private final UnaryCallable listGroupsPagedCallable;
private final UnaryCallable getGroupCallable;
private final UnaryCallable createGroupCallable;
private final OperationCallable
createGroupOperationCallable;
private final UnaryCallable updateGroupCallable;
private final OperationCallable
updateGroupOperationCallable;
private final UnaryCallable deleteGroupCallable;
private final OperationCallable
deleteGroupOperationCallable;
private final UnaryCallable addAssetsToGroupCallable;
private final OperationCallable
addAssetsToGroupOperationCallable;
private final UnaryCallable
removeAssetsFromGroupCallable;
private final OperationCallable
removeAssetsFromGroupOperationCallable;
private final UnaryCallable
listErrorFramesCallable;
private final UnaryCallable
listErrorFramesPagedCallable;
private final UnaryCallable getErrorFrameCallable;
private final UnaryCallable listSourcesCallable;
private final UnaryCallable
listSourcesPagedCallable;
private final UnaryCallable getSourceCallable;
private final UnaryCallable createSourceCallable;
private final OperationCallable
createSourceOperationCallable;
private final UnaryCallable updateSourceCallable;
private final OperationCallable
updateSourceOperationCallable;
private final UnaryCallable deleteSourceCallable;
private final OperationCallable
deleteSourceOperationCallable;
private final UnaryCallable
listPreferenceSetsCallable;
private final UnaryCallable
listPreferenceSetsPagedCallable;
private final UnaryCallable getPreferenceSetCallable;
private final UnaryCallable createPreferenceSetCallable;
private final OperationCallable
createPreferenceSetOperationCallable;
private final UnaryCallable updatePreferenceSetCallable;
private final OperationCallable
updatePreferenceSetOperationCallable;
private final UnaryCallable deletePreferenceSetCallable;
private final OperationCallable
deletePreferenceSetOperationCallable;
private final UnaryCallable getSettingsCallable;
private final UnaryCallable updateSettingsCallable;
private final OperationCallable
updateSettingsOperationCallable;
private final UnaryCallable createReportConfigCallable;
private final OperationCallable
createReportConfigOperationCallable;
private final UnaryCallable getReportConfigCallable;
private final UnaryCallable
listReportConfigsCallable;
private final UnaryCallable
listReportConfigsPagedCallable;
private final UnaryCallable deleteReportConfigCallable;
private final OperationCallable
deleteReportConfigOperationCallable;
private final UnaryCallable createReportCallable;
private final OperationCallable
createReportOperationCallable;
private final UnaryCallable getReportCallable;
private final UnaryCallable listReportsCallable;
private final UnaryCallable
listReportsPagedCallable;
private final UnaryCallable deleteReportCallable;
private final OperationCallable
deleteReportOperationCallable;
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 GrpcMigrationCenterStub create(MigrationCenterStubSettings settings)
throws IOException {
return new GrpcMigrationCenterStub(settings, ClientContext.create(settings));
}
public static final GrpcMigrationCenterStub create(ClientContext clientContext)
throws IOException {
return new GrpcMigrationCenterStub(
MigrationCenterStubSettings.newBuilder().build(), clientContext);
}
public static final GrpcMigrationCenterStub create(
ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException {
return new GrpcMigrationCenterStub(
MigrationCenterStubSettings.newBuilder().build(), clientContext, callableFactory);
}
/**
* Constructs an instance of GrpcMigrationCenterStub, 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 GrpcMigrationCenterStub(
MigrationCenterStubSettings settings, ClientContext clientContext) throws IOException {
this(settings, clientContext, new GrpcMigrationCenterCallableFactory());
}
/**
* Constructs an instance of GrpcMigrationCenterStub, 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 GrpcMigrationCenterStub(
MigrationCenterStubSettings settings,
ClientContext clientContext,
GrpcStubCallableFactory callableFactory)
throws IOException {
this.callableFactory = callableFactory;
this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory);
GrpcCallSettings listAssetsTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(listAssetsMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings getAssetTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(getAssetMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings updateAssetTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(updateAssetMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("asset.name", String.valueOf(request.getAsset().getName()));
return builder.build();
})
.build();
GrpcCallSettings
batchUpdateAssetsTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(batchUpdateAssetsMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings deleteAssetTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(deleteAssetMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings batchDeleteAssetsTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(batchDeleteAssetsMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings
reportAssetFramesTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(reportAssetFramesMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings
aggregateAssetsValuesTransportSettings =
GrpcCallSettings
.newBuilder()
.setMethodDescriptor(aggregateAssetsValuesMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings createImportJobTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(createImportJobMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings
listImportJobsTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(listImportJobsMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings getImportJobTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(getImportJobMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings deleteImportJobTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(deleteImportJobMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings updateImportJobTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(updateImportJobMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("import_job.name", String.valueOf(request.getImportJob().getName()));
return builder.build();
})
.build();
GrpcCallSettings validateImportJobTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(validateImportJobMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings runImportJobTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(runImportJobMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings getImportDataFileTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(getImportDataFileMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings
listImportDataFilesTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(listImportDataFilesMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings createImportDataFileTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(createImportDataFileMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings deleteImportDataFileTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(deleteImportDataFileMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings listGroupsTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(listGroupsMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings getGroupTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(getGroupMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings createGroupTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(createGroupMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings updateGroupTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(updateGroupMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("group.name", String.valueOf(request.getGroup().getName()));
return builder.build();
})
.build();
GrpcCallSettings deleteGroupTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(deleteGroupMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings addAssetsToGroupTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(addAssetsToGroupMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("group", String.valueOf(request.getGroup()));
return builder.build();
})
.build();
GrpcCallSettings
removeAssetsFromGroupTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(removeAssetsFromGroupMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("group", String.valueOf(request.getGroup()));
return builder.build();
})
.build();
GrpcCallSettings
listErrorFramesTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(listErrorFramesMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings getErrorFrameTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(getErrorFrameMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings listSourcesTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(listSourcesMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings getSourceTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(getSourceMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings createSourceTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(createSourceMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
.build();
GrpcCallSettings updateSourceTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(updateSourceMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("source.name", String.valueOf(request.getSource().getName()));
return builder.build();
})
.build();
GrpcCallSettings deleteSourceTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(deleteSourceMethodDescriptor)
.setParamsExtractor(
request -> {
RequestParamsBuilder builder = RequestParamsBuilder.create();
builder.add("name", String.valueOf(request.getName()));
return builder.build();
})
.build();
GrpcCallSettings
listPreferenceSetsTransportSettings =
GrpcCallSettings.