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

com.google.cloud.dataplex.v1.stub.GrpcDataTaxonomyServiceStub Maven / Gradle / Ivy

Go to download

Cloud Dataplex provides intelligent data fabric that enables organizations to centrally manage, monitor, and govern their data across data lakes, data warehouses, and data marts with consistent controls, providing access to trusted data and powering analytics at scale.

The 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.dataplex.v1.stub;

import static com.google.cloud.dataplex.v1.DataTaxonomyServiceClient.ListDataAttributeBindingsPagedResponse;
import static com.google.cloud.dataplex.v1.DataTaxonomyServiceClient.ListDataAttributesPagedResponse;
import static com.google.cloud.dataplex.v1.DataTaxonomyServiceClient.ListDataTaxonomiesPagedResponse;
import static com.google.cloud.dataplex.v1.DataTaxonomyServiceClient.ListLocationsPagedResponse;

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.dataplex.v1.CreateDataAttributeBindingRequest;
import com.google.cloud.dataplex.v1.CreateDataAttributeRequest;
import com.google.cloud.dataplex.v1.CreateDataTaxonomyRequest;
import com.google.cloud.dataplex.v1.DataAttribute;
import com.google.cloud.dataplex.v1.DataAttributeBinding;
import com.google.cloud.dataplex.v1.DataTaxonomy;
import com.google.cloud.dataplex.v1.DeleteDataAttributeBindingRequest;
import com.google.cloud.dataplex.v1.DeleteDataAttributeRequest;
import com.google.cloud.dataplex.v1.DeleteDataTaxonomyRequest;
import com.google.cloud.dataplex.v1.GetDataAttributeBindingRequest;
import com.google.cloud.dataplex.v1.GetDataAttributeRequest;
import com.google.cloud.dataplex.v1.GetDataTaxonomyRequest;
import com.google.cloud.dataplex.v1.ListDataAttributeBindingsRequest;
import com.google.cloud.dataplex.v1.ListDataAttributeBindingsResponse;
import com.google.cloud.dataplex.v1.ListDataAttributesRequest;
import com.google.cloud.dataplex.v1.ListDataAttributesResponse;
import com.google.cloud.dataplex.v1.ListDataTaxonomiesRequest;
import com.google.cloud.dataplex.v1.ListDataTaxonomiesResponse;
import com.google.cloud.dataplex.v1.OperationMetadata;
import com.google.cloud.dataplex.v1.UpdateDataAttributeBindingRequest;
import com.google.cloud.dataplex.v1.UpdateDataAttributeRequest;
import com.google.cloud.dataplex.v1.UpdateDataTaxonomyRequest;
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.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 DataTaxonomyService service API.
 *
 * 

This class is for advanced usage and reflects the underlying API directly. */ @Generated("by gapic-generator-java") public class GrpcDataTaxonomyServiceStub extends DataTaxonomyServiceStub { private static final MethodDescriptor createDataTaxonomyMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.dataplex.v1.DataTaxonomyService/CreateDataTaxonomy") .setRequestMarshaller( ProtoUtils.marshaller(CreateDataTaxonomyRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor updateDataTaxonomyMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.dataplex.v1.DataTaxonomyService/UpdateDataTaxonomy") .setRequestMarshaller( ProtoUtils.marshaller(UpdateDataTaxonomyRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor deleteDataTaxonomyMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.dataplex.v1.DataTaxonomyService/DeleteDataTaxonomy") .setRequestMarshaller( ProtoUtils.marshaller(DeleteDataTaxonomyRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor listDataTaxonomiesMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.dataplex.v1.DataTaxonomyService/ListDataTaxonomies") .setRequestMarshaller( ProtoUtils.marshaller(ListDataTaxonomiesRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListDataTaxonomiesResponse.getDefaultInstance())) .build(); private static final MethodDescriptor getDataTaxonomyMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.dataplex.v1.DataTaxonomyService/GetDataTaxonomy") .setRequestMarshaller( ProtoUtils.marshaller(GetDataTaxonomyRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(DataTaxonomy.getDefaultInstance())) .build(); private static final MethodDescriptor createDataAttributeBindingMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.dataplex.v1.DataTaxonomyService/CreateDataAttributeBinding") .setRequestMarshaller( ProtoUtils.marshaller(CreateDataAttributeBindingRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor updateDataAttributeBindingMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.dataplex.v1.DataTaxonomyService/UpdateDataAttributeBinding") .setRequestMarshaller( ProtoUtils.marshaller(UpdateDataAttributeBindingRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor deleteDataAttributeBindingMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.dataplex.v1.DataTaxonomyService/DeleteDataAttributeBinding") .setRequestMarshaller( ProtoUtils.marshaller(DeleteDataAttributeBindingRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor< ListDataAttributeBindingsRequest, ListDataAttributeBindingsResponse> listDataAttributeBindingsMethodDescriptor = MethodDescriptor .newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.dataplex.v1.DataTaxonomyService/ListDataAttributeBindings") .setRequestMarshaller( ProtoUtils.marshaller(ListDataAttributeBindingsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListDataAttributeBindingsResponse.getDefaultInstance())) .build(); private static final MethodDescriptor getDataAttributeBindingMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.dataplex.v1.DataTaxonomyService/GetDataAttributeBinding") .setRequestMarshaller( ProtoUtils.marshaller(GetDataAttributeBindingRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(DataAttributeBinding.getDefaultInstance())) .build(); private static final MethodDescriptor createDataAttributeMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.dataplex.v1.DataTaxonomyService/CreateDataAttribute") .setRequestMarshaller( ProtoUtils.marshaller(CreateDataAttributeRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor updateDataAttributeMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.dataplex.v1.DataTaxonomyService/UpdateDataAttribute") .setRequestMarshaller( ProtoUtils.marshaller(UpdateDataAttributeRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor deleteDataAttributeMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.dataplex.v1.DataTaxonomyService/DeleteDataAttribute") .setRequestMarshaller( ProtoUtils.marshaller(DeleteDataAttributeRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor listDataAttributesMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.dataplex.v1.DataTaxonomyService/ListDataAttributes") .setRequestMarshaller( ProtoUtils.marshaller(ListDataAttributesRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListDataAttributesResponse.getDefaultInstance())) .build(); private static final MethodDescriptor getDataAttributeMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.dataplex.v1.DataTaxonomyService/GetDataAttribute") .setRequestMarshaller( ProtoUtils.marshaller(GetDataAttributeRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(DataAttribute.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 createDataTaxonomyCallable; private final OperationCallable createDataTaxonomyOperationCallable; private final UnaryCallable updateDataTaxonomyCallable; private final OperationCallable updateDataTaxonomyOperationCallable; private final UnaryCallable deleteDataTaxonomyCallable; private final OperationCallable deleteDataTaxonomyOperationCallable; private final UnaryCallable listDataTaxonomiesCallable; private final UnaryCallable listDataTaxonomiesPagedCallable; private final UnaryCallable getDataTaxonomyCallable; private final UnaryCallable createDataAttributeBindingCallable; private final OperationCallable< CreateDataAttributeBindingRequest, DataAttributeBinding, OperationMetadata> createDataAttributeBindingOperationCallable; private final UnaryCallable updateDataAttributeBindingCallable; private final OperationCallable< UpdateDataAttributeBindingRequest, DataAttributeBinding, OperationMetadata> updateDataAttributeBindingOperationCallable; private final UnaryCallable deleteDataAttributeBindingCallable; private final OperationCallable deleteDataAttributeBindingOperationCallable; private final UnaryCallable listDataAttributeBindingsCallable; private final UnaryCallable< ListDataAttributeBindingsRequest, ListDataAttributeBindingsPagedResponse> listDataAttributeBindingsPagedCallable; private final UnaryCallable getDataAttributeBindingCallable; private final UnaryCallable createDataAttributeCallable; private final OperationCallable createDataAttributeOperationCallable; private final UnaryCallable updateDataAttributeCallable; private final OperationCallable updateDataAttributeOperationCallable; private final UnaryCallable deleteDataAttributeCallable; private final OperationCallable deleteDataAttributeOperationCallable; private final UnaryCallable listDataAttributesCallable; private final UnaryCallable listDataAttributesPagedCallable; private final UnaryCallable getDataAttributeCallable; 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 GrpcDataTaxonomyServiceStub create(DataTaxonomyServiceStubSettings settings) throws IOException { return new GrpcDataTaxonomyServiceStub(settings, ClientContext.create(settings)); } public static final GrpcDataTaxonomyServiceStub create(ClientContext clientContext) throws IOException { return new GrpcDataTaxonomyServiceStub( DataTaxonomyServiceStubSettings.newBuilder().build(), clientContext); } public static final GrpcDataTaxonomyServiceStub create( ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { return new GrpcDataTaxonomyServiceStub( DataTaxonomyServiceStubSettings.newBuilder().build(), clientContext, callableFactory); } /** * Constructs an instance of GrpcDataTaxonomyServiceStub, 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 GrpcDataTaxonomyServiceStub( DataTaxonomyServiceStubSettings settings, ClientContext clientContext) throws IOException { this(settings, clientContext, new GrpcDataTaxonomyServiceCallableFactory()); } /** * Constructs an instance of GrpcDataTaxonomyServiceStub, 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 GrpcDataTaxonomyServiceStub( DataTaxonomyServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); GrpcCallSettings createDataTaxonomyTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createDataTaxonomyMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings updateDataTaxonomyTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateDataTaxonomyMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add( "data_taxonomy.name", String.valueOf(request.getDataTaxonomy().getName())); return builder.build(); }) .build(); GrpcCallSettings deleteDataTaxonomyTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteDataTaxonomyMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings listDataTaxonomiesTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listDataTaxonomiesMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings getDataTaxonomyTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getDataTaxonomyMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings createDataAttributeBindingTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createDataAttributeBindingMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings updateDataAttributeBindingTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateDataAttributeBindingMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add( "data_attribute_binding.name", String.valueOf(request.getDataAttributeBinding().getName())); return builder.build(); }) .build(); GrpcCallSettings deleteDataAttributeBindingTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteDataAttributeBindingMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings listDataAttributeBindingsTransportSettings = GrpcCallSettings .newBuilder() .setMethodDescriptor(listDataAttributeBindingsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings getDataAttributeBindingTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getDataAttributeBindingMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings createDataAttributeTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createDataAttributeMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings updateDataAttributeTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateDataAttributeMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add( "data_attribute.name", String.valueOf(request.getDataAttribute().getName())); return builder.build(); }) .build(); GrpcCallSettings deleteDataAttributeTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteDataAttributeMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings listDataAttributesTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listDataAttributesMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings getDataAttributeTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getDataAttributeMethodDescriptor) .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.createDataTaxonomyCallable = callableFactory.createUnaryCallable( createDataTaxonomyTransportSettings, settings.createDataTaxonomySettings(), clientContext); this.createDataTaxonomyOperationCallable = callableFactory.createOperationCallable( createDataTaxonomyTransportSettings, settings.createDataTaxonomyOperationSettings(), clientContext, operationsStub); this.updateDataTaxonomyCallable = callableFactory.createUnaryCallable( updateDataTaxonomyTransportSettings, settings.updateDataTaxonomySettings(), clientContext); this.updateDataTaxonomyOperationCallable = callableFactory.createOperationCallable( updateDataTaxonomyTransportSettings, settings.updateDataTaxonomyOperationSettings(), clientContext, operationsStub); this.deleteDataTaxonomyCallable = callableFactory.createUnaryCallable( deleteDataTaxonomyTransportSettings, settings.deleteDataTaxonomySettings(), clientContext); this.deleteDataTaxonomyOperationCallable = callableFactory.createOperationCallable( deleteDataTaxonomyTransportSettings, settings.deleteDataTaxonomyOperationSettings(), clientContext, operationsStub); this.listDataTaxonomiesCallable = callableFactory.createUnaryCallable( listDataTaxonomiesTransportSettings, settings.listDataTaxonomiesSettings(), clientContext); this.listDataTaxonomiesPagedCallable = callableFactory.createPagedCallable( listDataTaxonomiesTransportSettings, settings.listDataTaxonomiesSettings(), clientContext); this.getDataTaxonomyCallable = callableFactory.createUnaryCallable( getDataTaxonomyTransportSettings, settings.getDataTaxonomySettings(), clientContext); this.createDataAttributeBindingCallable = callableFactory.createUnaryCallable( createDataAttributeBindingTransportSettings, settings.createDataAttributeBindingSettings(), clientContext); this.createDataAttributeBindingOperationCallable = callableFactory.createOperationCallable( createDataAttributeBindingTransportSettings, settings.createDataAttributeBindingOperationSettings(), clientContext, operationsStub); this.updateDataAttributeBindingCallable = callableFactory.createUnaryCallable( updateDataAttributeBindingTransportSettings, settings.updateDataAttributeBindingSettings(), clientContext); this.updateDataAttributeBindingOperationCallable = callableFactory.createOperationCallable( updateDataAttributeBindingTransportSettings, settings.updateDataAttributeBindingOperationSettings(), clientContext, operationsStub); this.deleteDataAttributeBindingCallable = callableFactory.createUnaryCallable( deleteDataAttributeBindingTransportSettings, settings.deleteDataAttributeBindingSettings(), clientContext); this.deleteDataAttributeBindingOperationCallable = callableFactory.createOperationCallable( deleteDataAttributeBindingTransportSettings, settings.deleteDataAttributeBindingOperationSettings(), clientContext, operationsStub); this.listDataAttributeBindingsCallable = callableFactory.createUnaryCallable( listDataAttributeBindingsTransportSettings, settings.listDataAttributeBindingsSettings(), clientContext); this.listDataAttributeBindingsPagedCallable = callableFactory.createPagedCallable( listDataAttributeBindingsTransportSettings, settings.listDataAttributeBindingsSettings(), clientContext); this.getDataAttributeBindingCallable = callableFactory.createUnaryCallable( getDataAttributeBindingTransportSettings, settings.getDataAttributeBindingSettings(), clientContext); this.createDataAttributeCallable = callableFactory.createUnaryCallable( createDataAttributeTransportSettings, settings.createDataAttributeSettings(), clientContext); this.createDataAttributeOperationCallable = callableFactory.createOperationCallable( createDataAttributeTransportSettings, settings.createDataAttributeOperationSettings(), clientContext, operationsStub); this.updateDataAttributeCallable = callableFactory.createUnaryCallable( updateDataAttributeTransportSettings, settings.updateDataAttributeSettings(), clientContext); this.updateDataAttributeOperationCallable = callableFactory.createOperationCallable( updateDataAttributeTransportSettings, settings.updateDataAttributeOperationSettings(), clientContext, operationsStub); this.deleteDataAttributeCallable = callableFactory.createUnaryCallable( deleteDataAttributeTransportSettings, settings.deleteDataAttributeSettings(), clientContext); this.deleteDataAttributeOperationCallable = callableFactory.createOperationCallable( deleteDataAttributeTransportSettings, settings.deleteDataAttributeOperationSettings(), clientContext, operationsStub); this.listDataAttributesCallable = callableFactory.createUnaryCallable( listDataAttributesTransportSettings, settings.listDataAttributesSettings(), clientContext); this.listDataAttributesPagedCallable = callableFactory.createPagedCallable( listDataAttributesTransportSettings, settings.listDataAttributesSettings(), clientContext); this.getDataAttributeCallable = callableFactory.createUnaryCallable( getDataAttributeTransportSettings, settings.getDataAttributeSettings(), clientContext); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); this.listLocationsPagedCallable = callableFactory.createPagedCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); this.getLocationCallable = callableFactory.createUnaryCallable( getLocationTransportSettings, settings.getLocationSettings(), clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); } public GrpcOperationsStub getOperationsStub() { return operationsStub; } @Override public UnaryCallable createDataTaxonomyCallable() { return createDataTaxonomyCallable; } @Override public OperationCallable createDataTaxonomyOperationCallable() { return createDataTaxonomyOperationCallable; } @Override public UnaryCallable updateDataTaxonomyCallable() { return updateDataTaxonomyCallable; } @Override public OperationCallable updateDataTaxonomyOperationCallable() { return updateDataTaxonomyOperationCallable; } @Override public UnaryCallable deleteDataTaxonomyCallable() { return deleteDataTaxonomyCallable; } @Override public OperationCallable deleteDataTaxonomyOperationCallable() { return deleteDataTaxonomyOperationCallable; } @Override public UnaryCallable listDataTaxonomiesCallable() { return listDataTaxonomiesCallable; } @Override public UnaryCallable listDataTaxonomiesPagedCallable() { return listDataTaxonomiesPagedCallable; } @Override public UnaryCallable getDataTaxonomyCallable() { return getDataTaxonomyCallable; } @Override public UnaryCallable createDataAttributeBindingCallable() { return createDataAttributeBindingCallable; } @Override public OperationCallable< CreateDataAttributeBindingRequest, DataAttributeBinding, OperationMetadata> createDataAttributeBindingOperationCallable() { return createDataAttributeBindingOperationCallable; } @Override public UnaryCallable updateDataAttributeBindingCallable() { return updateDataAttributeBindingCallable; } @Override public OperationCallable< UpdateDataAttributeBindingRequest, DataAttributeBinding, OperationMetadata> updateDataAttributeBindingOperationCallable() { return updateDataAttributeBindingOperationCallable; } @Override public UnaryCallable deleteDataAttributeBindingCallable() { return deleteDataAttributeBindingCallable; } @Override public OperationCallable deleteDataAttributeBindingOperationCallable() { return deleteDataAttributeBindingOperationCallable; } @Override public UnaryCallable listDataAttributeBindingsCallable() { return listDataAttributeBindingsCallable; } @Override public UnaryCallable listDataAttributeBindingsPagedCallable() { return listDataAttributeBindingsPagedCallable; } @Override public UnaryCallable getDataAttributeBindingCallable() { return getDataAttributeBindingCallable; } @Override public UnaryCallable createDataAttributeCallable() { return createDataAttributeCallable; } @Override public OperationCallable createDataAttributeOperationCallable() { return createDataAttributeOperationCallable; } @Override public UnaryCallable updateDataAttributeCallable() { return updateDataAttributeCallable; } @Override public OperationCallable updateDataAttributeOperationCallable() { return updateDataAttributeOperationCallable; } @Override public UnaryCallable deleteDataAttributeCallable() { return deleteDataAttributeCallable; } @Override public OperationCallable deleteDataAttributeOperationCallable() { return deleteDataAttributeOperationCallable; } @Override public UnaryCallable listDataAttributesCallable() { return listDataAttributesCallable; } @Override public UnaryCallable listDataAttributesPagedCallable() { return listDataAttributesPagedCallable; } @Override public UnaryCallable getDataAttributeCallable() { return getDataAttributeCallable; } @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