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

com.google.cloud.visionai.v1.stub.HttpJsonLiveVideoAnalyticsStub 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.HttpRule;
import com.google.api.core.InternalApi;
import com.google.api.gax.core.BackgroundResource;
import com.google.api.gax.core.BackgroundResourceAggregation;
import com.google.api.gax.httpjson.ApiMethodDescriptor;
import com.google.api.gax.httpjson.HttpJsonCallSettings;
import com.google.api.gax.httpjson.HttpJsonOperationSnapshot;
import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
import com.google.api.gax.httpjson.ProtoMessageRequestFormatter;
import com.google.api.gax.httpjson.ProtoMessageResponseParser;
import com.google.api.gax.httpjson.ProtoRestSerializer;
import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub;
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.common.collect.ImmutableMap;
import com.google.longrunning.Operation;
import com.google.protobuf.Empty;
import com.google.protobuf.TypeRegistry;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import javax.annotation.Generated;

// AUTO-GENERATED DOCUMENTATION AND CLASS.
/**
 * REST 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 HttpJsonLiveVideoAnalyticsStub extends LiveVideoAnalyticsStub { private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder() .add(Analysis.getDescriptor()) .add(Empty.getDescriptor()) .add(BatchRunProcessResponse.getDescriptor()) .add(Operator.getDescriptor()) .add(OperationMetadata.getDescriptor()) .add(Process.getDescriptor()) .build(); private static final ApiMethodDescriptor listPublicOperatorsMethodDescriptor = ApiMethodDescriptor.newBuilder() .setFullMethodName("google.cloud.visionai.v1.LiveVideoAnalytics/ListPublicOperators") .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( ProtoMessageRequestFormatter.newBuilder() .setPath( "/v1/{parent=projects/*/locations/*}:listPublicOperators", request -> { Map fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "filter", request.getFilter()); serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); serializer.putQueryParam(fields, "pageSize", request.getPageSize()); serializer.putQueryParam(fields, "pageToken", request.getPageToken()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() .setDefaultInstance(ListPublicOperatorsResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); private static final ApiMethodDescriptor resolveOperatorInfoMethodDescriptor = ApiMethodDescriptor.newBuilder() .setFullMethodName("google.cloud.visionai.v1.LiveVideoAnalytics/ResolveOperatorInfo") .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( ProtoMessageRequestFormatter.newBuilder() .setPath( "/v1/{parent=projects/*/locations/*}:resolveOperatorInfo", request -> { Map fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor( request -> ProtoRestSerializer.create() .toBody("*", request.toBuilder().clearParent().build(), true)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() .setDefaultInstance(ResolveOperatorInfoResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); private static final ApiMethodDescriptor listOperatorsMethodDescriptor = ApiMethodDescriptor.newBuilder() .setFullMethodName("google.cloud.visionai.v1.LiveVideoAnalytics/ListOperators") .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( ProtoMessageRequestFormatter.newBuilder() .setPath( "/v1/{parent=projects/*/locations/*}/operators", request -> { Map fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "filter", request.getFilter()); serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); serializer.putQueryParam(fields, "pageSize", request.getPageSize()); serializer.putQueryParam(fields, "pageToken", request.getPageToken()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() .setDefaultInstance(ListOperatorsResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); private static final ApiMethodDescriptor getOperatorMethodDescriptor = ApiMethodDescriptor.newBuilder() .setFullMethodName("google.cloud.visionai.v1.LiveVideoAnalytics/GetOperator") .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( ProtoMessageRequestFormatter.newBuilder() .setPath( "/v1/{name=projects/*/locations/*/operators/*}", request -> { Map fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "name", request.getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() .setDefaultInstance(Operator.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); private static final ApiMethodDescriptor createOperatorMethodDescriptor = ApiMethodDescriptor.newBuilder() .setFullMethodName("google.cloud.visionai.v1.LiveVideoAnalytics/CreateOperator") .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( ProtoMessageRequestFormatter.newBuilder() .setPath( "/v1/{parent=projects/*/locations/*}/operators", request -> { Map fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "operatorId", request.getOperatorId()); serializer.putQueryParam(fields, "requestId", request.getRequestId()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor( request -> ProtoRestSerializer.create() .toBody("operator", request.getOperator(), true)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() .setDefaultInstance(Operation.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .setOperationSnapshotFactory( (CreateOperatorRequest request, Operation response) -> HttpJsonOperationSnapshot.create(response)) .build(); private static final ApiMethodDescriptor updateOperatorMethodDescriptor = ApiMethodDescriptor.newBuilder() .setFullMethodName("google.cloud.visionai.v1.LiveVideoAnalytics/UpdateOperator") .setHttpMethod("PATCH") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( ProtoMessageRequestFormatter.newBuilder() .setPath( "/v1/{operator.name=projects/*/locations/*/operators/*}", request -> { Map fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam( fields, "operator.name", request.getOperator().getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "requestId", request.getRequestId()); serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor( request -> ProtoRestSerializer.create() .toBody("operator", request.getOperator(), true)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() .setDefaultInstance(Operation.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .setOperationSnapshotFactory( (UpdateOperatorRequest request, Operation response) -> HttpJsonOperationSnapshot.create(response)) .build(); private static final ApiMethodDescriptor deleteOperatorMethodDescriptor = ApiMethodDescriptor.newBuilder() .setFullMethodName("google.cloud.visionai.v1.LiveVideoAnalytics/DeleteOperator") .setHttpMethod("DELETE") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( ProtoMessageRequestFormatter.newBuilder() .setPath( "/v1/{name=projects/*/locations/*/operators/*}", request -> { Map fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "name", request.getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "requestId", request.getRequestId()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() .setDefaultInstance(Operation.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .setOperationSnapshotFactory( (DeleteOperatorRequest request, Operation response) -> HttpJsonOperationSnapshot.create(response)) .build(); private static final ApiMethodDescriptor listAnalysesMethodDescriptor = ApiMethodDescriptor.newBuilder() .setFullMethodName("google.cloud.visionai.v1.LiveVideoAnalytics/ListAnalyses") .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( ProtoMessageRequestFormatter.newBuilder() .setPath( "/v1/{parent=projects/*/locations/*/clusters/*}/analyses", request -> { Map fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "filter", request.getFilter()); serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); serializer.putQueryParam(fields, "pageSize", request.getPageSize()); serializer.putQueryParam(fields, "pageToken", request.getPageToken()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() .setDefaultInstance(ListAnalysesResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); private static final ApiMethodDescriptor getAnalysisMethodDescriptor = ApiMethodDescriptor.newBuilder() .setFullMethodName("google.cloud.visionai.v1.LiveVideoAnalytics/GetAnalysis") .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( ProtoMessageRequestFormatter.newBuilder() .setPath( "/v1/{name=projects/*/locations/*/clusters/*/analyses/*}", request -> { Map fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "name", request.getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() .setDefaultInstance(Analysis.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); private static final ApiMethodDescriptor createAnalysisMethodDescriptor = ApiMethodDescriptor.newBuilder() .setFullMethodName("google.cloud.visionai.v1.LiveVideoAnalytics/CreateAnalysis") .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( ProtoMessageRequestFormatter.newBuilder() .setPath( "/v1/{parent=projects/*/locations/*/clusters/*}/analyses", request -> { Map fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "analysisId", request.getAnalysisId()); serializer.putQueryParam(fields, "requestId", request.getRequestId()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor( request -> ProtoRestSerializer.create() .toBody("analysis", request.getAnalysis(), true)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() .setDefaultInstance(Operation.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .setOperationSnapshotFactory( (CreateAnalysisRequest request, Operation response) -> HttpJsonOperationSnapshot.create(response)) .build(); private static final ApiMethodDescriptor updateAnalysisMethodDescriptor = ApiMethodDescriptor.newBuilder() .setFullMethodName("google.cloud.visionai.v1.LiveVideoAnalytics/UpdateAnalysis") .setHttpMethod("PATCH") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( ProtoMessageRequestFormatter.newBuilder() .setPath( "/v1/{analysis.name=projects/*/locations/*/clusters/*/analyses/*}", request -> { Map fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam( fields, "analysis.name", request.getAnalysis().getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "requestId", request.getRequestId()); serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor( request -> ProtoRestSerializer.create() .toBody("analysis", request.getAnalysis(), true)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() .setDefaultInstance(Operation.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .setOperationSnapshotFactory( (UpdateAnalysisRequest request, Operation response) -> HttpJsonOperationSnapshot.create(response)) .build(); private static final ApiMethodDescriptor deleteAnalysisMethodDescriptor = ApiMethodDescriptor.newBuilder() .setFullMethodName("google.cloud.visionai.v1.LiveVideoAnalytics/DeleteAnalysis") .setHttpMethod("DELETE") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( ProtoMessageRequestFormatter.newBuilder() .setPath( "/v1/{name=projects/*/locations/*/clusters/*/analyses/*}", request -> { Map fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "name", request.getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "requestId", request.getRequestId()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() .setDefaultInstance(Operation.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .setOperationSnapshotFactory( (DeleteAnalysisRequest request, Operation response) -> HttpJsonOperationSnapshot.create(response)) .build(); private static final ApiMethodDescriptor listProcessesMethodDescriptor = ApiMethodDescriptor.newBuilder() .setFullMethodName("google.cloud.visionai.v1.LiveVideoAnalytics/ListProcesses") .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( ProtoMessageRequestFormatter.newBuilder() .setPath( "/v1/{parent=projects/*/locations/*/clusters/*}/processes", request -> { Map fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "filter", request.getFilter()); serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); serializer.putQueryParam(fields, "pageSize", request.getPageSize()); serializer.putQueryParam(fields, "pageToken", request.getPageToken()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() .setDefaultInstance(ListProcessesResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); private static final ApiMethodDescriptor getProcessMethodDescriptor = ApiMethodDescriptor.newBuilder() .setFullMethodName("google.cloud.visionai.v1.LiveVideoAnalytics/GetProcess") .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( ProtoMessageRequestFormatter.newBuilder() .setPath( "/v1/{name=projects/*/locations/*/clusters/*/processes/*}", request -> { Map fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "name", request.getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() .setDefaultInstance(Process.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); private static final ApiMethodDescriptor createProcessMethodDescriptor = ApiMethodDescriptor.newBuilder() .setFullMethodName("google.cloud.visionai.v1.LiveVideoAnalytics/CreateProcess") .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( ProtoMessageRequestFormatter.newBuilder() .setPath( "/v1/{parent=projects/*/locations/*/clusters/*}/processes", request -> { Map fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "processId", request.getProcessId()); serializer.putQueryParam(fields, "requestId", request.getRequestId()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor( request -> ProtoRestSerializer.create() .toBody("process", request.getProcess(), true)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() .setDefaultInstance(Operation.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .setOperationSnapshotFactory( (CreateProcessRequest request, Operation response) -> HttpJsonOperationSnapshot.create(response)) .build(); private static final ApiMethodDescriptor updateProcessMethodDescriptor = ApiMethodDescriptor.newBuilder() .setFullMethodName("google.cloud.visionai.v1.LiveVideoAnalytics/UpdateProcess") .setHttpMethod("PATCH") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( ProtoMessageRequestFormatter.newBuilder() .setPath( "/v1/{process.name=projects/*/locations/*/clusters/*/processes/*}", request -> { Map fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam( fields, "process.name", request.getProcess().getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "requestId", request.getRequestId()); serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor( request -> ProtoRestSerializer.create() .toBody("process", request.getProcess(), true)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() .setDefaultInstance(Operation.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .setOperationSnapshotFactory( (UpdateProcessRequest request, Operation response) -> HttpJsonOperationSnapshot.create(response)) .build(); private static final ApiMethodDescriptor deleteProcessMethodDescriptor = ApiMethodDescriptor.newBuilder() .setFullMethodName("google.cloud.visionai.v1.LiveVideoAnalytics/DeleteProcess") .setHttpMethod("DELETE") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( ProtoMessageRequestFormatter.newBuilder() .setPath( "/v1/{name=projects/*/locations/*/clusters/*/processes/*}", request -> { Map fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "name", request.getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "requestId", request.getRequestId()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() .setDefaultInstance(Operation.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .setOperationSnapshotFactory( (DeleteProcessRequest request, Operation response) -> HttpJsonOperationSnapshot.create(response)) .build(); private static final ApiMethodDescriptor batchRunProcessMethodDescriptor = ApiMethodDescriptor.newBuilder() .setFullMethodName("google.cloud.visionai.v1.LiveVideoAnalytics/BatchRunProcess") .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( ProtoMessageRequestFormatter.newBuilder() .setPath( "/v1/{parent=projects/*/locations/*/clusters/*}/processes:batchRun", request -> { Map fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor( request -> ProtoRestSerializer.create() .toBody("*", request.toBuilder().clearParent().build(), true)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() .setDefaultInstance(Operation.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .setOperationSnapshotFactory( (BatchRunProcessRequest request, Operation response) -> HttpJsonOperationSnapshot.create(response)) .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 HttpJsonOperationsStub httpJsonOperationsStub; private final HttpJsonStubCallableFactory callableFactory; public static final HttpJsonLiveVideoAnalyticsStub create(LiveVideoAnalyticsStubSettings settings) throws IOException { return new HttpJsonLiveVideoAnalyticsStub(settings, ClientContext.create(settings)); } public static final HttpJsonLiveVideoAnalyticsStub create(ClientContext clientContext) throws IOException { return new HttpJsonLiveVideoAnalyticsStub( LiveVideoAnalyticsStubSettings.newHttpJsonBuilder().build(), clientContext); } public static final HttpJsonLiveVideoAnalyticsStub create( ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { return new HttpJsonLiveVideoAnalyticsStub( LiveVideoAnalyticsStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); } /** * Constructs an instance of HttpJsonLiveVideoAnalyticsStub, 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 HttpJsonLiveVideoAnalyticsStub( LiveVideoAnalyticsStubSettings settings, ClientContext clientContext) throws IOException { this(settings, clientContext, new HttpJsonLiveVideoAnalyticsCallableFactory()); } /** * Constructs an instance of HttpJsonLiveVideoAnalyticsStub, 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 HttpJsonLiveVideoAnalyticsStub( LiveVideoAnalyticsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; this.httpJsonOperationsStub = HttpJsonOperationsStub.create( clientContext, callableFactory, typeRegistry, ImmutableMap.builder() .put( "google.longrunning.Operations.CancelOperation", HttpRule.newBuilder() .setPost("/v1/{name=projects/*/locations/*/operations/*}:cancel") .build()) .put( "google.longrunning.Operations.DeleteOperation", HttpRule.newBuilder() .setDelete("/v1/{name=projects/*/locations/*/operations/*}") .build()) .put( "google.longrunning.Operations.GetOperation", HttpRule.newBuilder() .setGet("/v1/{name=projects/*/locations/*/operations/*}") .addAdditionalBindings( HttpRule.newBuilder() .setGet("/v1/{name=projects/*/locations/*/warehouseOperations/*}") .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet( "/v1/{name=projects/*/locations/*/corpora/*/assets/*/operations/*}") .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet( "/v1/{name=projects/*/locations/*/corpora/*/collections/*/operations/*}") .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet( "/v1/{name=projects/*/locations/*/corpora/*/imageIndexes/*/operations/*}") .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet( "/v1/{name=projects/*/locations/*/corpora/*/indexes/*/operations/*}") .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet("/v1/{name=projects/*/locations/*/corpora/*/operations/*}") .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet( "/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}") .build()) .build()) .put( "google.longrunning.Operations.ListOperations", HttpRule.newBuilder() .setGet("/v1/{name=projects/*/locations/*}/operations") .build()) .build()); HttpJsonCallSettings listPublicOperatorsTransportSettings = HttpJsonCallSettings .newBuilder() .setMethodDescriptor(listPublicOperatorsMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); HttpJsonCallSettings resolveOperatorInfoTransportSettings = HttpJsonCallSettings .newBuilder() .setMethodDescriptor(resolveOperatorInfoMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); HttpJsonCallSettings listOperatorsTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(listOperatorsMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); HttpJsonCallSettings getOperatorTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(getOperatorMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); HttpJsonCallSettings createOperatorTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(createOperatorMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); HttpJsonCallSettings updateOperatorTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(updateOperatorMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("operator.name", String.valueOf(request.getOperator().getName())); return builder.build(); }) .build(); HttpJsonCallSettings deleteOperatorTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(deleteOperatorMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); HttpJsonCallSettings listAnalysesTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(listAnalysesMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); HttpJsonCallSettings getAnalysisTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(getAnalysisMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); HttpJsonCallSettings createAnalysisTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(createAnalysisMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); HttpJsonCallSettings updateAnalysisTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(updateAnalysisMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("analysis.name", String.valueOf(request.getAnalysis().getName())); return builder.build(); }) .build(); HttpJsonCallSettings deleteAnalysisTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(deleteAnalysisMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); HttpJsonCallSettings listProcessesTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(listProcessesMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); HttpJsonCallSettings getProcessTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(getProcessMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); HttpJsonCallSettings createProcessTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(createProcessMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); HttpJsonCallSettings updateProcessTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(updateProcessMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("process.name", String.valueOf(request.getProcess().getName())); return builder.build(); }) .build(); HttpJsonCallSettings deleteProcessTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(deleteProcessMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); HttpJsonCallSettings batchRunProcessTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(batchRunProcessMethodDescriptor) .setTypeRegistry(typeRegistry) .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, httpJsonOperationsStub); this.updateOperatorCallable = callableFactory.createUnaryCallable( updateOperatorTransportSettings, settings.updateOperatorSettings(), clientContext); this.updateOperatorOperationCallable = callableFactory.createOperationCallable( updateOperatorTransportSettings, settings.updateOperatorOperationSettings(), clientContext, httpJsonOperationsStub); this.deleteOperatorCallable = callableFactory.createUnaryCallable( deleteOperatorTransportSettings, settings.deleteOperatorSettings(), clientContext); this.deleteOperatorOperationCallable = callableFactory.createOperationCallable( deleteOperatorTransportSettings, settings.deleteOperatorOperationSettings(), clientContext, httpJsonOperationsStub); 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, httpJsonOperationsStub); this.updateAnalysisCallable = callableFactory.createUnaryCallable( updateAnalysisTransportSettings, settings.updateAnalysisSettings(), clientContext); this.updateAnalysisOperationCallable = callableFactory.createOperationCallable( updateAnalysisTransportSettings, settings.updateAnalysisOperationSettings(), clientContext, httpJsonOperationsStub); this.deleteAnalysisCallable = callableFactory.createUnaryCallable( deleteAnalysisTransportSettings, settings.deleteAnalysisSettings(), clientContext); this.deleteAnalysisOperationCallable = callableFactory.createOperationCallable( deleteAnalysisTransportSettings, settings.deleteAnalysisOperationSettings(), clientContext, httpJsonOperationsStub); 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, httpJsonOperationsStub); this.updateProcessCallable = callableFactory.createUnaryCallable( updateProcessTransportSettings, settings.updateProcessSettings(), clientContext); this.updateProcessOperationCallable = callableFactory.createOperationCallable( updateProcessTransportSettings, settings.updateProcessOperationSettings(), clientContext, httpJsonOperationsStub); this.deleteProcessCallable = callableFactory.createUnaryCallable( deleteProcessTransportSettings, settings.deleteProcessSettings(), clientContext); this.deleteProcessOperationCallable = callableFactory.createOperationCallable( deleteProcessTransportSettings, settings.deleteProcessOperationSettings(), clientContext, httpJsonOperationsStub); this.batchRunProcessCallable = callableFactory.createUnaryCallable( batchRunProcessTransportSettings, settings.batchRunProcessSettings(), clientContext); this.batchRunProcessOperationCallable = callableFactory.createOperationCallable( batchRunProcessTransportSettings, settings.batchRunProcessOperationSettings(), clientContext, httpJsonOperationsStub); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); } @InternalApi public static List getMethodDescriptors() { List methodDescriptors = new ArrayList<>(); methodDescriptors.add(listPublicOperatorsMethodDescriptor); methodDescriptors.add(resolveOperatorInfoMethodDescriptor); methodDescriptors.add(listOperatorsMethodDescriptor); methodDescriptors.add(getOperatorMethodDescriptor); methodDescriptors.add(createOperatorMethodDescriptor); methodDescriptors.add(updateOperatorMethodDescriptor); methodDescriptors.add(deleteOperatorMethodDescriptor); methodDescriptors.add(listAnalysesMethodDescriptor); methodDescriptors.add(getAnalysisMethodDescriptor); methodDescriptors.add(createAnalysisMethodDescriptor); methodDescriptors.add(updateAnalysisMethodDescriptor); methodDescriptors.add(deleteAnalysisMethodDescriptor); methodDescriptors.add(listProcessesMethodDescriptor); methodDescriptors.add(getProcessMethodDescriptor); methodDescriptors.add(createProcessMethodDescriptor); methodDescriptors.add(updateProcessMethodDescriptor); methodDescriptors.add(deleteProcessMethodDescriptor); methodDescriptors.add(batchRunProcessMethodDescriptor); return methodDescriptors; } public HttpJsonOperationsStub getHttpJsonOperationsStub() { return httpJsonOperationsStub; } @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