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

com.google.cloud.migrationcenter.v1.stub.GrpcMigrationCenterStub Maven / Gradle / Ivy

Go to download

Migration Center API Google Cloud Migration Center is a unified platform that helps you accelerate your end-to-end cloud journey from your current on-premises or cloud environments to Google Cloud

There is a newer version: 0.36.0
Show newest version
/*
 * 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.newBuilder() .setMethodDescriptor(listPreferenceSetsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings getPreferenceSetTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getPreferenceSetMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings createPreferenceSetTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createPreferenceSetMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings updatePreferenceSetTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updatePreferenceSetMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add( "preference_set.name", String.valueOf(request.getPreferenceSet().getName())); return builder.build(); }) .build(); GrpcCallSettings deletePreferenceSetTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deletePreferenceSetMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings getSettingsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getSettingsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings updateSettingsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateSettingsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("settings.name", String.valueOf(request.getSettings().getName())); return builder.build(); }) .build(); GrpcCallSettings createReportConfigTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createReportConfigMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings getReportConfigTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getReportConfigMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings listReportConfigsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listReportConfigsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings deleteReportConfigTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteReportConfigMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings createReportTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createReportMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings getReportTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getReportMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings listReportsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listReportsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings deleteReportTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteReportMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listLocationsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings getLocationTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getLocationMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); this.listAssetsCallable = callableFactory.createUnaryCallable( listAssetsTransportSettings, settings.listAssetsSettings(), clientContext); this.listAssetsPagedCallable = callableFactory.createPagedCallable( listAssetsTransportSettings, settings.listAssetsSettings(), clientContext); this.getAssetCallable = callableFactory.createUnaryCallable( getAssetTransportSettings, settings.getAssetSettings(), clientContext); this.updateAssetCallable = callableFactory.createUnaryCallable( updateAssetTransportSettings, settings.updateAssetSettings(), clientContext); this.batchUpdateAssetsCallable = callableFactory.createUnaryCallable( batchUpdateAssetsTransportSettings, settings.batchUpdateAssetsSettings(), clientContext); this.deleteAssetCallable = callableFactory.createUnaryCallable( deleteAssetTransportSettings, settings.deleteAssetSettings(), clientContext); this.batchDeleteAssetsCallable = callableFactory.createUnaryCallable( batchDeleteAssetsTransportSettings, settings.batchDeleteAssetsSettings(), clientContext); this.reportAssetFramesCallable = callableFactory.createUnaryCallable( reportAssetFramesTransportSettings, settings.reportAssetFramesSettings(), clientContext); this.aggregateAssetsValuesCallable = callableFactory.createUnaryCallable( aggregateAssetsValuesTransportSettings, settings.aggregateAssetsValuesSettings(), clientContext); this.createImportJobCallable = callableFactory.createUnaryCallable( createImportJobTransportSettings, settings.createImportJobSettings(), clientContext); this.createImportJobOperationCallable = callableFactory.createOperationCallable( createImportJobTransportSettings, settings.createImportJobOperationSettings(), clientContext, operationsStub); this.listImportJobsCallable = callableFactory.createUnaryCallable( listImportJobsTransportSettings, settings.listImportJobsSettings(), clientContext); this.listImportJobsPagedCallable = callableFactory.createPagedCallable( listImportJobsTransportSettings, settings.listImportJobsSettings(), clientContext); this.getImportJobCallable = callableFactory.createUnaryCallable( getImportJobTransportSettings, settings.getImportJobSettings(), clientContext); this.deleteImportJobCallable = callableFactory.createUnaryCallable( deleteImportJobTransportSettings, settings.deleteImportJobSettings(), clientContext); this.deleteImportJobOperationCallable = callableFactory.createOperationCallable( deleteImportJobTransportSettings, settings.deleteImportJobOperationSettings(), clientContext, operationsStub); this.updateImportJobCallable = callableFactory.createUnaryCallable( updateImportJobTransportSettings, settings.updateImportJobSettings(), clientContext); this.updateImportJobOperationCallable = callableFactory.createOperationCallable( updateImportJobTransportSettings, settings.updateImportJobOperationSettings(), clientContext, operationsStub); this.validateImportJobCallable = callableFactory.createUnaryCallable( validateImportJobTransportSettings, settings.validateImportJobSettings(), clientContext); this.validateImportJobOperationCallable = callableFactory.createOperationCallable( validateImportJobTransportSettings, settings.validateImportJobOperationSettings(), clientContext, operationsStub); this.runImportJobCallable = callableFactory.createUnaryCallable( runImportJobTransportSettings, settings.runImportJobSettings(), clientContext); this.runImportJobOperationCallable = callableFactory.createOperationCallable( runImportJobTransportSettings, settings.runImportJobOperationSettings(), clientContext, operationsStub); this.getImportDataFileCallable = callableFactory.createUnaryCallable( getImportDataFileTransportSettings, settings.getImportDataFileSettings(), clientContext); this.listImportDataFilesCallable = callableFactory.createUnaryCallable( listImportDataFilesTransportSettings, settings.listImportDataFilesSettings(), clientContext); this.listImportDataFilesPagedCallable = callableFactory.createPagedCallable( listImportDataFilesTransportSettings, settings.listImportDataFilesSettings(), clientContext); this.createImportDataFileCallable = callableFactory.createUnaryCallable( createImportDataFileTransportSettings, settings.createImportDataFileSettings(), clientContext); this.createImportDataFileOperationCallable = callableFactory.createOperationCallable( createImportDataFileTransportSettings, settings.createImportDataFileOperationSettings(), clientContext, operationsStub); this.deleteImportDataFileCallable = callableFactory.createUnaryCallable( deleteImportDataFileTransportSettings, settings.deleteImportDataFileSettings(), clientContext); this.deleteImportDataFileOperationCallable = callableFactory.createOperationCallable( deleteImportDataFileTransportSettings, settings.deleteImportDataFileOperationSettings(), clientContext, operationsStub); this.listGroupsCallable = callableFactory.createUnaryCallable( listGroupsTransportSettings, settings.listGroupsSettings(), clientContext); this.listGroupsPagedCallable = callableFactory.createPagedCallable( listGroupsTransportSettings, settings.listGroupsSettings(), clientContext); this.getGroupCallable = callableFactory.createUnaryCallable( getGroupTransportSettings, settings.getGroupSettings(), clientContext); this.createGroupCallable = callableFactory.createUnaryCallable( createGroupTransportSettings, settings.createGroupSettings(), clientContext); this.createGroupOperationCallable = callableFactory.createOperationCallable( createGroupTransportSettings, settings.createGroupOperationSettings(), clientContext, operationsStub); this.updateGroupCallable = callableFactory.createUnaryCallable( updateGroupTransportSettings, settings.updateGroupSettings(), clientContext); this.updateGroupOperationCallable = callableFactory.createOperationCallable( updateGroupTransportSettings, settings.updateGroupOperationSettings(), clientContext, operationsStub); this.deleteGroupCallable = callableFactory.createUnaryCallable( deleteGroupTransportSettings, settings.deleteGroupSettings(), clientContext); this.deleteGroupOperationCallable = callableFactory.createOperationCallable( deleteGroupTransportSettings, settings.deleteGroupOperationSettings(), clientContext, operationsStub); this.addAssetsToGroupCallable = callableFactory.createUnaryCallable( addAssetsToGroupTransportSettings, settings.addAssetsToGroupSettings(), clientContext); this.addAssetsToGroupOperationCallable = callableFactory.createOperationCallable( addAssetsToGroupTransportSettings, settings.addAssetsToGroupOperationSettings(), clientContext, operationsStub); this.removeAssetsFromGroupCallable = callableFactory.createUnaryCallable( removeAssetsFromGroupTransportSettings, settings.removeAssetsFromGroupSettings(), clientContext); this.removeAssetsFromGroupOperationCallable = callableFactory.createOperationCallable( removeAssetsFromGroupTransportSettings, settings.removeAssetsFromGroupOperationSettings(), clientContext, operationsStub); this.listErrorFramesCallable = callableFactory.createUnaryCallable( listErrorFramesTransportSettings, settings.listErrorFramesSettings(), clientContext); this.listErrorFramesPagedCallable = callableFactory.createPagedCallable( listErrorFramesTransportSettings, settings.listErrorFramesSettings(), clientContext); this.getErrorFrameCallable = callableFactory.createUnaryCallable( getErrorFrameTransportSettings, settings.getErrorFrameSettings(), clientContext); this.listSourcesCallable = callableFactory.createUnaryCallable( listSourcesTransportSettings, settings.listSourcesSettings(), clientContext); this.listSourcesPagedCallable = callableFactory.createPagedCallable( listSourcesTransportSettings, settings.listSourcesSettings(), clientContext); this.getSourceCallable = callableFactory.createUnaryCallable( getSourceTransportSettings, settings.getSourceSettings(), clientContext); this.createSourceCallable = callableFactory.createUnaryCallable( createSourceTransportSettings, settings.createSourceSettings(), clientContext); this.createSourceOperationCallable = callableFactory.createOperationCallable( createSourceTransportSettings, settings.createSourceOperationSettings(), clientContext, operationsStub); this.updateSourceCallable = callableFactory.createUnaryCallable( updateSourceTransportSettings, settings.updateSourceSettings(), clientContext); this.updateSourceOperationCallable = callableFactory.createOperationCallable( updateSourceTransportSettings, settings.updateSourceOperationSettings(), clientContext, operationsStub); this.deleteSourceCallable = callableFactory.createUnaryCallable( deleteSourceTransportSettings, settings.deleteSourceSettings(), clientContext); this.deleteSourceOperationCallable = callableFactory.createOperationCallable( deleteSourceTransportSettings, settings.deleteSourceOperationSettings(), clientContext, operationsStub); this.listPreferenceSetsCallable = callableFactory.createUnaryCallable( listPreferenceSetsTransportSettings, settings.listPreferenceSetsSettings(), clientContext); this.listPreferenceSetsPagedCallable = callableFactory.createPagedCallable( listPreferenceSetsTransportSettings, settings.listPreferenceSetsSettings(), clientContext); this.getPreferenceSetCallable = callableFactory.createUnaryCallable( getPreferenceSetTransportSettings, settings.getPreferenceSetSettings(), clientContext); this.createPreferenceSetCallable = callableFactory.createUnaryCallable( createPreferenceSetTransportSettings, settings.createPreferenceSetSettings(), clientContext); this.createPreferenceSetOperationCallable = callableFactory.createOperationCallable( createPreferenceSetTransportSettings, settings.createPreferenceSetOperationSettings(), clientContext, operationsStub); this.updatePreferenceSetCallable = callableFactory.createUnaryCallable( updatePreferenceSetTransportSettings, settings.updatePreferenceSetSettings(), clientContext); this.updatePreferenceSetOperationCallable = callableFactory.createOperationCallable( updatePreferenceSetTransportSettings, settings.updatePreferenceSetOperationSettings(), clientContext, operationsStub); this.deletePreferenceSetCallable = callableFactory.createUnaryCallable( deletePreferenceSetTransportSettings, settings.deletePreferenceSetSettings(), clientContext); this.deletePreferenceSetOperationCallable = callableFactory.createOperationCallable( deletePreferenceSetTransportSettings, settings.deletePreferenceSetOperationSettings(), clientContext, operationsStub); this.getSettingsCallable = callableFactory.createUnaryCallable( getSettingsTransportSettings, settings.getSettingsSettings(), clientContext); this.updateSettingsCallable = callableFactory.createUnaryCallable( updateSettingsTransportSettings, settings.updateSettingsSettings(), clientContext); this.updateSettingsOperationCallable = callableFactory.createOperationCallable( updateSettingsTransportSettings, settings.updateSettingsOperationSettings(), clientContext, operationsStub); this.createReportConfigCallable = callableFactory.createUnaryCallable( createReportConfigTransportSettings, settings.createReportConfigSettings(), clientContext); this.createReportConfigOperationCallable = callableFactory.createOperationCallable( createReportConfigTransportSettings, settings.createReportConfigOperationSettings(), clientContext, operationsStub); this.getReportConfigCallable = callableFactory.createUnaryCallable( getReportConfigTransportSettings, settings.getReportConfigSettings(), clientContext); this.listReportConfigsCallable = callableFactory.createUnaryCallable( listReportConfigsTransportSettings, settings.listReportConfigsSettings(), clientContext); this.listReportConfigsPagedCallable = callableFactory.createPagedCallable( listReportConfigsTransportSettings, settings.listReportConfigsSettings(), clientContext); this.deleteReportConfigCallable = callableFactory.createUnaryCallable( deleteReportConfigTransportSettings, settings.deleteReportConfigSettings(), clientContext); this.deleteReportConfigOperationCallable = callableFactory.createOperationCallable( deleteReportConfigTransportSettings, settings.deleteReportConfigOperationSettings(), clientContext, operationsStub); this.createReportCallable = callableFactory.createUnaryCallable( createReportTransportSettings, settings.createReportSettings(), clientContext); this.createReportOperationCallable = callableFactory.createOperationCallable( createReportTransportSettings, settings.createReportOperationSettings(), clientContext, operationsStub); this.getReportCallable = callableFactory.createUnaryCallable( getReportTransportSettings, settings.getReportSettings(), clientContext); this.listReportsCallable = callableFactory.createUnaryCallable( listReportsTransportSettings, settings.listReportsSettings(), clientContext); this.listReportsPagedCallable = callableFactory.createPagedCallable( listReportsTransportSettings, settings.listReportsSettings(), clientContext); this.deleteReportCallable = callableFactory.createUnaryCallable( deleteReportTransportSettings, settings.deleteReportSettings(), clientContext); this.deleteReportOperationCallable = callableFactory.createOperationCallable( deleteReportTransportSettings, settings.deleteReportOperationSettings(), clientContext, operationsStub); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); this.listLocationsPagedCallable = callableFactory.createPagedCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); this.getLocationCallable = callableFactory.createUnaryCallable( getLocationTransportSettings, settings.getLocationSettings(), clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); } public GrpcOperationsStub getOperationsStub() { return operationsStub; } @Override public UnaryCallable listAssetsCallable() { return listAssetsCallable; } @Override public UnaryCallable listAssetsPagedCallable() { return listAssetsPagedCallable; } @Override public UnaryCallable getAssetCallable() { return getAssetCallable; } @Override public UnaryCallable updateAssetCallable() { return updateAssetCallable; } @Override public UnaryCallable batchUpdateAssetsCallable() { return batchUpdateAssetsCallable; } @Override public UnaryCallable deleteAssetCallable() { return deleteAssetCallable; } @Override public UnaryCallable batchDeleteAssetsCallable() { return batchDeleteAssetsCallable; } @Override public UnaryCallable reportAssetFramesCallable() { return reportAssetFramesCallable; } @Override public UnaryCallable aggregateAssetsValuesCallable() { return aggregateAssetsValuesCallable; } @Override public UnaryCallable createImportJobCallable() { return createImportJobCallable; } @Override public OperationCallable createImportJobOperationCallable() { return createImportJobOperationCallable; } @Override public UnaryCallable listImportJobsCallable() { return listImportJobsCallable; } @Override public UnaryCallable listImportJobsPagedCallable() { return listImportJobsPagedCallable; } @Override public UnaryCallable getImportJobCallable() { return getImportJobCallable; } @Override public UnaryCallable deleteImportJobCallable() { return deleteImportJobCallable; } @Override public OperationCallable deleteImportJobOperationCallable() { return deleteImportJobOperationCallable; } @Override public UnaryCallable updateImportJobCallable() { return updateImportJobCallable; } @Override public OperationCallable updateImportJobOperationCallable() { return updateImportJobOperationCallable; } @Override public UnaryCallable validateImportJobCallable() { return validateImportJobCallable; } @Override public OperationCallable validateImportJobOperationCallable() { return validateImportJobOperationCallable; } @Override public UnaryCallable runImportJobCallable() { return runImportJobCallable; } @Override public OperationCallable runImportJobOperationCallable() { return runImportJobOperationCallable; } @Override public UnaryCallable getImportDataFileCallable() { return getImportDataFileCallable; } @Override public UnaryCallable listImportDataFilesCallable() { return listImportDataFilesCallable; } @Override public UnaryCallable listImportDataFilesPagedCallable() { return listImportDataFilesPagedCallable; } @Override public UnaryCallable createImportDataFileCallable() { return createImportDataFileCallable; } @Override public OperationCallable createImportDataFileOperationCallable() { return createImportDataFileOperationCallable; } @Override public UnaryCallable deleteImportDataFileCallable() { return deleteImportDataFileCallable; } @Override public OperationCallable deleteImportDataFileOperationCallable() { return deleteImportDataFileOperationCallable; } @Override public UnaryCallable listGroupsCallable() { return listGroupsCallable; } @Override public UnaryCallable listGroupsPagedCallable() { return listGroupsPagedCallable; } @Override public UnaryCallable getGroupCallable() { return getGroupCallable; } @Override public UnaryCallable createGroupCallable() { return createGroupCallable; } @Override public OperationCallable createGroupOperationCallable() { return createGroupOperationCallable; } @Override public UnaryCallable updateGroupCallable() { return updateGroupCallable; } @Override public OperationCallable updateGroupOperationCallable() { return updateGroupOperationCallable; } @Override public UnaryCallable deleteGroupCallable() { return deleteGroupCallable; } @Override public OperationCallable deleteGroupOperationCallable() { return deleteGroupOperationCallable; } @Override public UnaryCallable addAssetsToGroupCallable() { return addAssetsToGroupCallable; } @Override public OperationCallable addAssetsToGroupOperationCallable() { return addAssetsToGroupOperationCallable; } @Override public UnaryCallable removeAssetsFromGroupCallable() { return removeAssetsFromGroupCallable; } @Override public OperationCallable removeAssetsFromGroupOperationCallable() { return removeAssetsFromGroupOperationCallable; } @Override public UnaryCallable listErrorFramesCallable() { return listErrorFramesCallable; } @Override public UnaryCallable listErrorFramesPagedCallable() { return listErrorFramesPagedCallable; } @Override public UnaryCallable getErrorFrameCallable() { return getErrorFrameCallable; } @Override public UnaryCallable listSourcesCallable() { return listSourcesCallable; } @Override public UnaryCallable listSourcesPagedCallable() { return listSourcesPagedCallable; } @Override public UnaryCallable getSourceCallable() { return getSourceCallable; } @Override public UnaryCallable createSourceCallable() { return createSourceCallable; } @Override public OperationCallable createSourceOperationCallable() { return createSourceOperationCallable; } @Override public UnaryCallable updateSourceCallable() { return updateSourceCallable; } @Override public OperationCallable updateSourceOperationCallable() { return updateSourceOperationCallable; } @Override public UnaryCallable deleteSourceCallable() { return deleteSourceCallable; } @Override public OperationCallable deleteSourceOperationCallable() { return deleteSourceOperationCallable; } @Override public UnaryCallable listPreferenceSetsCallable() { return listPreferenceSetsCallable; } @Override public UnaryCallable listPreferenceSetsPagedCallable() { return listPreferenceSetsPagedCallable; } @Override public UnaryCallable getPreferenceSetCallable() { return getPreferenceSetCallable; } @Override public UnaryCallable createPreferenceSetCallable() { return createPreferenceSetCallable; } @Override public OperationCallable createPreferenceSetOperationCallable() { return createPreferenceSetOperationCallable; } @Override public UnaryCallable updatePreferenceSetCallable() { return updatePreferenceSetCallable; } @Override public OperationCallable updatePreferenceSetOperationCallable() { return updatePreferenceSetOperationCallable; } @Override public UnaryCallable deletePreferenceSetCallable() { return deletePreferenceSetCallable; } @Override public OperationCallable deletePreferenceSetOperationCallable() { return deletePreferenceSetOperationCallable; } @Override public UnaryCallable getSettingsCallable() { return getSettingsCallable; } @Override public UnaryCallable updateSettingsCallable() { return updateSettingsCallable; } @Override public OperationCallable updateSettingsOperationCallable() { return updateSettingsOperationCallable; } @Override public UnaryCallable createReportConfigCallable() { return createReportConfigCallable; } @Override public OperationCallable createReportConfigOperationCallable() { return createReportConfigOperationCallable; } @Override public UnaryCallable getReportConfigCallable() { return getReportConfigCallable; } @Override public UnaryCallable listReportConfigsCallable() { return listReportConfigsCallable; } @Override public UnaryCallable listReportConfigsPagedCallable() { return listReportConfigsPagedCallable; } @Override public UnaryCallable deleteReportConfigCallable() { return deleteReportConfigCallable; } @Override public OperationCallable deleteReportConfigOperationCallable() { return deleteReportConfigOperationCallable; } @Override public UnaryCallable createReportCallable() { return createReportCallable; } @Override public OperationCallable createReportOperationCallable() { return createReportOperationCallable; } @Override public UnaryCallable getReportCallable() { return getReportCallable; } @Override public UnaryCallable listReportsCallable() { return listReportsCallable; } @Override public UnaryCallable listReportsPagedCallable() { return listReportsPagedCallable; } @Override public UnaryCallable deleteReportCallable() { return deleteReportCallable; } @Override public OperationCallable deleteReportOperationCallable() { return deleteReportOperationCallable; } @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; } @Override public UnaryCallable listLocationsPagedCallable() { return listLocationsPagedCallable; } @Override public UnaryCallable getLocationCallable() { return getLocationCallable; } @Override public final void close() { try { backgroundResources.close(); } catch (RuntimeException e) { throw e; } catch (Exception e) { throw new IllegalStateException("Failed to close resource", e); } } @Override public void shutdown() { backgroundResources.shutdown(); } @Override public boolean isShutdown() { return backgroundResources.isShutdown(); } @Override public boolean isTerminated() { return backgroundResources.isTerminated(); } @Override public void shutdownNow() { backgroundResources.shutdownNow(); } @Override public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { return backgroundResources.awaitTermination(duration, unit); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy