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

com.google.cloud.visionai.v1.stub.GrpcLiveVideoAnalyticsStub Maven / Gradle / Ivy

/*
 * 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.visionai.v1.stub;

import static com.google.cloud.visionai.v1.LiveVideoAnalyticsClient.ListAnalysesPagedResponse;
import static com.google.cloud.visionai.v1.LiveVideoAnalyticsClient.ListOperatorsPagedResponse;
import static com.google.cloud.visionai.v1.LiveVideoAnalyticsClient.ListProcessesPagedResponse;
import static com.google.cloud.visionai.v1.LiveVideoAnalyticsClient.ListPublicOperatorsPagedResponse;

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.visionai.v1.Analysis;
import com.google.cloud.visionai.v1.BatchRunProcessRequest;
import com.google.cloud.visionai.v1.BatchRunProcessResponse;
import com.google.cloud.visionai.v1.CreateAnalysisRequest;
import com.google.cloud.visionai.v1.CreateOperatorRequest;
import com.google.cloud.visionai.v1.CreateProcessRequest;
import com.google.cloud.visionai.v1.DeleteAnalysisRequest;
import com.google.cloud.visionai.v1.DeleteOperatorRequest;
import com.google.cloud.visionai.v1.DeleteProcessRequest;
import com.google.cloud.visionai.v1.GetAnalysisRequest;
import com.google.cloud.visionai.v1.GetOperatorRequest;
import com.google.cloud.visionai.v1.GetProcessRequest;
import com.google.cloud.visionai.v1.ListAnalysesRequest;
import com.google.cloud.visionai.v1.ListAnalysesResponse;
import com.google.cloud.visionai.v1.ListOperatorsRequest;
import com.google.cloud.visionai.v1.ListOperatorsResponse;
import com.google.cloud.visionai.v1.ListProcessesRequest;
import com.google.cloud.visionai.v1.ListProcessesResponse;
import com.google.cloud.visionai.v1.ListPublicOperatorsRequest;
import com.google.cloud.visionai.v1.ListPublicOperatorsResponse;
import com.google.cloud.visionai.v1.OperationMetadata;
import com.google.cloud.visionai.v1.Operator;
import com.google.cloud.visionai.v1.Process;
import com.google.cloud.visionai.v1.ResolveOperatorInfoRequest;
import com.google.cloud.visionai.v1.ResolveOperatorInfoResponse;
import com.google.cloud.visionai.v1.UpdateAnalysisRequest;
import com.google.cloud.visionai.v1.UpdateOperatorRequest;
import com.google.cloud.visionai.v1.UpdateProcessRequest;
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 LiveVideoAnalytics service API.
 *
 * 

This class is for advanced usage and reflects the underlying API directly. */ @Generated("by gapic-generator-java") public class GrpcLiveVideoAnalyticsStub extends LiveVideoAnalyticsStub { private static final MethodDescriptor listPublicOperatorsMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.LiveVideoAnalytics/ListPublicOperators") .setRequestMarshaller( ProtoUtils.marshaller(ListPublicOperatorsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListPublicOperatorsResponse.getDefaultInstance())) .build(); private static final MethodDescriptor resolveOperatorInfoMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.LiveVideoAnalytics/ResolveOperatorInfo") .setRequestMarshaller( ProtoUtils.marshaller(ResolveOperatorInfoRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ResolveOperatorInfoResponse.getDefaultInstance())) .build(); private static final MethodDescriptor listOperatorsMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.LiveVideoAnalytics/ListOperators") .setRequestMarshaller( ProtoUtils.marshaller(ListOperatorsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListOperatorsResponse.getDefaultInstance())) .build(); private static final MethodDescriptor getOperatorMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.LiveVideoAnalytics/GetOperator") .setRequestMarshaller(ProtoUtils.marshaller(GetOperatorRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operator.getDefaultInstance())) .build(); private static final MethodDescriptor createOperatorMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.LiveVideoAnalytics/CreateOperator") .setRequestMarshaller( ProtoUtils.marshaller(CreateOperatorRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor updateOperatorMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.LiveVideoAnalytics/UpdateOperator") .setRequestMarshaller( ProtoUtils.marshaller(UpdateOperatorRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor deleteOperatorMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.LiveVideoAnalytics/DeleteOperator") .setRequestMarshaller( ProtoUtils.marshaller(DeleteOperatorRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor listAnalysesMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.LiveVideoAnalytics/ListAnalyses") .setRequestMarshaller(ProtoUtils.marshaller(ListAnalysesRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListAnalysesResponse.getDefaultInstance())) .build(); private static final MethodDescriptor getAnalysisMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.LiveVideoAnalytics/GetAnalysis") .setRequestMarshaller(ProtoUtils.marshaller(GetAnalysisRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Analysis.getDefaultInstance())) .build(); private static final MethodDescriptor createAnalysisMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.LiveVideoAnalytics/CreateAnalysis") .setRequestMarshaller( ProtoUtils.marshaller(CreateAnalysisRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor updateAnalysisMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.LiveVideoAnalytics/UpdateAnalysis") .setRequestMarshaller( ProtoUtils.marshaller(UpdateAnalysisRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor deleteAnalysisMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.LiveVideoAnalytics/DeleteAnalysis") .setRequestMarshaller( ProtoUtils.marshaller(DeleteAnalysisRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor listProcessesMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.LiveVideoAnalytics/ListProcesses") .setRequestMarshaller( ProtoUtils.marshaller(ListProcessesRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListProcessesResponse.getDefaultInstance())) .build(); private static final MethodDescriptor getProcessMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.LiveVideoAnalytics/GetProcess") .setRequestMarshaller(ProtoUtils.marshaller(GetProcessRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Process.getDefaultInstance())) .build(); private static final MethodDescriptor createProcessMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.LiveVideoAnalytics/CreateProcess") .setRequestMarshaller( ProtoUtils.marshaller(CreateProcessRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor updateProcessMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.LiveVideoAnalytics/UpdateProcess") .setRequestMarshaller( ProtoUtils.marshaller(UpdateProcessRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor deleteProcessMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.LiveVideoAnalytics/DeleteProcess") .setRequestMarshaller( ProtoUtils.marshaller(DeleteProcessRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor batchRunProcessMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.LiveVideoAnalytics/BatchRunProcess") .setRequestMarshaller( ProtoUtils.marshaller(BatchRunProcessRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private final UnaryCallable listPublicOperatorsCallable; private final UnaryCallable listPublicOperatorsPagedCallable; private final UnaryCallable resolveOperatorInfoCallable; private final UnaryCallable listOperatorsCallable; private final UnaryCallable listOperatorsPagedCallable; private final UnaryCallable getOperatorCallable; private final UnaryCallable createOperatorCallable; private final OperationCallable createOperatorOperationCallable; private final UnaryCallable updateOperatorCallable; private final OperationCallable updateOperatorOperationCallable; private final UnaryCallable deleteOperatorCallable; private final OperationCallable deleteOperatorOperationCallable; private final UnaryCallable listAnalysesCallable; private final UnaryCallable listAnalysesPagedCallable; private final UnaryCallable getAnalysisCallable; private final UnaryCallable createAnalysisCallable; private final OperationCallable createAnalysisOperationCallable; private final UnaryCallable updateAnalysisCallable; private final OperationCallable updateAnalysisOperationCallable; private final UnaryCallable deleteAnalysisCallable; private final OperationCallable deleteAnalysisOperationCallable; private final UnaryCallable listProcessesCallable; private final UnaryCallable listProcessesPagedCallable; private final UnaryCallable getProcessCallable; private final UnaryCallable createProcessCallable; private final OperationCallable createProcessOperationCallable; private final UnaryCallable updateProcessCallable; private final OperationCallable updateProcessOperationCallable; private final UnaryCallable deleteProcessCallable; private final OperationCallable deleteProcessOperationCallable; private final UnaryCallable batchRunProcessCallable; private final OperationCallable< BatchRunProcessRequest, BatchRunProcessResponse, OperationMetadata> batchRunProcessOperationCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; private final GrpcStubCallableFactory callableFactory; public static final GrpcLiveVideoAnalyticsStub create(LiveVideoAnalyticsStubSettings settings) throws IOException { return new GrpcLiveVideoAnalyticsStub(settings, ClientContext.create(settings)); } public static final GrpcLiveVideoAnalyticsStub create(ClientContext clientContext) throws IOException { return new GrpcLiveVideoAnalyticsStub( LiveVideoAnalyticsStubSettings.newBuilder().build(), clientContext); } public static final GrpcLiveVideoAnalyticsStub create( ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { return new GrpcLiveVideoAnalyticsStub( LiveVideoAnalyticsStubSettings.newBuilder().build(), clientContext, callableFactory); } /** * Constructs an instance of GrpcLiveVideoAnalyticsStub, 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 GrpcLiveVideoAnalyticsStub( LiveVideoAnalyticsStubSettings settings, ClientContext clientContext) throws IOException { this(settings, clientContext, new GrpcLiveVideoAnalyticsCallableFactory()); } /** * Constructs an instance of GrpcLiveVideoAnalyticsStub, 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 GrpcLiveVideoAnalyticsStub( LiveVideoAnalyticsStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); GrpcCallSettings listPublicOperatorsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listPublicOperatorsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings resolveOperatorInfoTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(resolveOperatorInfoMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings listOperatorsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listOperatorsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings getOperatorTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getOperatorMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings createOperatorTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createOperatorMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings updateOperatorTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateOperatorMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("operator.name", String.valueOf(request.getOperator().getName())); return builder.build(); }) .build(); GrpcCallSettings deleteOperatorTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteOperatorMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings listAnalysesTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listAnalysesMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings getAnalysisTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getAnalysisMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings createAnalysisTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createAnalysisMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings updateAnalysisTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateAnalysisMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("analysis.name", String.valueOf(request.getAnalysis().getName())); return builder.build(); }) .build(); GrpcCallSettings deleteAnalysisTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteAnalysisMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings listProcessesTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listProcessesMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings getProcessTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getProcessMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings createProcessTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createProcessMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings updateProcessTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateProcessMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("process.name", String.valueOf(request.getProcess().getName())); return builder.build(); }) .build(); GrpcCallSettings deleteProcessTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteProcessMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings batchRunProcessTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(batchRunProcessMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); this.listPublicOperatorsCallable = callableFactory.createUnaryCallable( listPublicOperatorsTransportSettings, settings.listPublicOperatorsSettings(), clientContext); this.listPublicOperatorsPagedCallable = callableFactory.createPagedCallable( listPublicOperatorsTransportSettings, settings.listPublicOperatorsSettings(), clientContext); this.resolveOperatorInfoCallable = callableFactory.createUnaryCallable( resolveOperatorInfoTransportSettings, settings.resolveOperatorInfoSettings(), clientContext); this.listOperatorsCallable = callableFactory.createUnaryCallable( listOperatorsTransportSettings, settings.listOperatorsSettings(), clientContext); this.listOperatorsPagedCallable = callableFactory.createPagedCallable( listOperatorsTransportSettings, settings.listOperatorsSettings(), clientContext); this.getOperatorCallable = callableFactory.createUnaryCallable( getOperatorTransportSettings, settings.getOperatorSettings(), clientContext); this.createOperatorCallable = callableFactory.createUnaryCallable( createOperatorTransportSettings, settings.createOperatorSettings(), clientContext); this.createOperatorOperationCallable = callableFactory.createOperationCallable( createOperatorTransportSettings, settings.createOperatorOperationSettings(), clientContext, operationsStub); this.updateOperatorCallable = callableFactory.createUnaryCallable( updateOperatorTransportSettings, settings.updateOperatorSettings(), clientContext); this.updateOperatorOperationCallable = callableFactory.createOperationCallable( updateOperatorTransportSettings, settings.updateOperatorOperationSettings(), clientContext, operationsStub); this.deleteOperatorCallable = callableFactory.createUnaryCallable( deleteOperatorTransportSettings, settings.deleteOperatorSettings(), clientContext); this.deleteOperatorOperationCallable = callableFactory.createOperationCallable( deleteOperatorTransportSettings, settings.deleteOperatorOperationSettings(), clientContext, operationsStub); this.listAnalysesCallable = callableFactory.createUnaryCallable( listAnalysesTransportSettings, settings.listAnalysesSettings(), clientContext); this.listAnalysesPagedCallable = callableFactory.createPagedCallable( listAnalysesTransportSettings, settings.listAnalysesSettings(), clientContext); this.getAnalysisCallable = callableFactory.createUnaryCallable( getAnalysisTransportSettings, settings.getAnalysisSettings(), clientContext); this.createAnalysisCallable = callableFactory.createUnaryCallable( createAnalysisTransportSettings, settings.createAnalysisSettings(), clientContext); this.createAnalysisOperationCallable = callableFactory.createOperationCallable( createAnalysisTransportSettings, settings.createAnalysisOperationSettings(), clientContext, operationsStub); this.updateAnalysisCallable = callableFactory.createUnaryCallable( updateAnalysisTransportSettings, settings.updateAnalysisSettings(), clientContext); this.updateAnalysisOperationCallable = callableFactory.createOperationCallable( updateAnalysisTransportSettings, settings.updateAnalysisOperationSettings(), clientContext, operationsStub); this.deleteAnalysisCallable = callableFactory.createUnaryCallable( deleteAnalysisTransportSettings, settings.deleteAnalysisSettings(), clientContext); this.deleteAnalysisOperationCallable = callableFactory.createOperationCallable( deleteAnalysisTransportSettings, settings.deleteAnalysisOperationSettings(), clientContext, operationsStub); this.listProcessesCallable = callableFactory.createUnaryCallable( listProcessesTransportSettings, settings.listProcessesSettings(), clientContext); this.listProcessesPagedCallable = callableFactory.createPagedCallable( listProcessesTransportSettings, settings.listProcessesSettings(), clientContext); this.getProcessCallable = callableFactory.createUnaryCallable( getProcessTransportSettings, settings.getProcessSettings(), clientContext); this.createProcessCallable = callableFactory.createUnaryCallable( createProcessTransportSettings, settings.createProcessSettings(), clientContext); this.createProcessOperationCallable = callableFactory.createOperationCallable( createProcessTransportSettings, settings.createProcessOperationSettings(), clientContext, operationsStub); this.updateProcessCallable = callableFactory.createUnaryCallable( updateProcessTransportSettings, settings.updateProcessSettings(), clientContext); this.updateProcessOperationCallable = callableFactory.createOperationCallable( updateProcessTransportSettings, settings.updateProcessOperationSettings(), clientContext, operationsStub); this.deleteProcessCallable = callableFactory.createUnaryCallable( deleteProcessTransportSettings, settings.deleteProcessSettings(), clientContext); this.deleteProcessOperationCallable = callableFactory.createOperationCallable( deleteProcessTransportSettings, settings.deleteProcessOperationSettings(), clientContext, operationsStub); this.batchRunProcessCallable = callableFactory.createUnaryCallable( batchRunProcessTransportSettings, settings.batchRunProcessSettings(), clientContext); this.batchRunProcessOperationCallable = callableFactory.createOperationCallable( batchRunProcessTransportSettings, settings.batchRunProcessOperationSettings(), clientContext, operationsStub); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); } public GrpcOperationsStub getOperationsStub() { return operationsStub; } @Override public UnaryCallable listPublicOperatorsCallable() { return listPublicOperatorsCallable; } @Override public UnaryCallable listPublicOperatorsPagedCallable() { return listPublicOperatorsPagedCallable; } @Override public UnaryCallable resolveOperatorInfoCallable() { return resolveOperatorInfoCallable; } @Override public UnaryCallable listOperatorsCallable() { return listOperatorsCallable; } @Override public UnaryCallable listOperatorsPagedCallable() { return listOperatorsPagedCallable; } @Override public UnaryCallable getOperatorCallable() { return getOperatorCallable; } @Override public UnaryCallable createOperatorCallable() { return createOperatorCallable; } @Override public OperationCallable createOperatorOperationCallable() { return createOperatorOperationCallable; } @Override public UnaryCallable updateOperatorCallable() { return updateOperatorCallable; } @Override public OperationCallable updateOperatorOperationCallable() { return updateOperatorOperationCallable; } @Override public UnaryCallable deleteOperatorCallable() { return deleteOperatorCallable; } @Override public OperationCallable deleteOperatorOperationCallable() { return deleteOperatorOperationCallable; } @Override public UnaryCallable listAnalysesCallable() { return listAnalysesCallable; } @Override public UnaryCallable listAnalysesPagedCallable() { return listAnalysesPagedCallable; } @Override public UnaryCallable getAnalysisCallable() { return getAnalysisCallable; } @Override public UnaryCallable createAnalysisCallable() { return createAnalysisCallable; } @Override public OperationCallable createAnalysisOperationCallable() { return createAnalysisOperationCallable; } @Override public UnaryCallable updateAnalysisCallable() { return updateAnalysisCallable; } @Override public OperationCallable updateAnalysisOperationCallable() { return updateAnalysisOperationCallable; } @Override public UnaryCallable deleteAnalysisCallable() { return deleteAnalysisCallable; } @Override public OperationCallable deleteAnalysisOperationCallable() { return deleteAnalysisOperationCallable; } @Override public UnaryCallable listProcessesCallable() { return listProcessesCallable; } @Override public UnaryCallable listProcessesPagedCallable() { return listProcessesPagedCallable; } @Override public UnaryCallable getProcessCallable() { return getProcessCallable; } @Override public UnaryCallable createProcessCallable() { return createProcessCallable; } @Override public OperationCallable createProcessOperationCallable() { return createProcessOperationCallable; } @Override public UnaryCallable updateProcessCallable() { return updateProcessCallable; } @Override public OperationCallable updateProcessOperationCallable() { return updateProcessOperationCallable; } @Override public UnaryCallable deleteProcessCallable() { return deleteProcessCallable; } @Override public OperationCallable deleteProcessOperationCallable() { return deleteProcessOperationCallable; } @Override public UnaryCallable batchRunProcessCallable() { return batchRunProcessCallable; } @Override public OperationCallable batchRunProcessOperationCallable() { return batchRunProcessOperationCallable; } @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