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

com.google.cloud.visionai.v1.stub.GrpcWarehouseStub 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.WarehouseClient.ListAnnotationsPagedResponse;
import static com.google.cloud.visionai.v1.WarehouseClient.ListAssetsPagedResponse;
import static com.google.cloud.visionai.v1.WarehouseClient.ListCollectionsPagedResponse;
import static com.google.cloud.visionai.v1.WarehouseClient.ListCorporaPagedResponse;
import static com.google.cloud.visionai.v1.WarehouseClient.ListDataSchemasPagedResponse;
import static com.google.cloud.visionai.v1.WarehouseClient.ListIndexEndpointsPagedResponse;
import static com.google.cloud.visionai.v1.WarehouseClient.ListIndexesPagedResponse;
import static com.google.cloud.visionai.v1.WarehouseClient.ListSearchConfigsPagedResponse;
import static com.google.cloud.visionai.v1.WarehouseClient.ListSearchHypernymsPagedResponse;
import static com.google.cloud.visionai.v1.WarehouseClient.SearchAssetsPagedResponse;
import static com.google.cloud.visionai.v1.WarehouseClient.SearchIndexEndpointPagedResponse;
import static com.google.cloud.visionai.v1.WarehouseClient.ViewCollectionItemsPagedResponse;
import static com.google.cloud.visionai.v1.WarehouseClient.ViewIndexedAssetsPagedResponse;

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.BidiStreamingCallable;
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.AddCollectionItemRequest;
import com.google.cloud.visionai.v1.AddCollectionItemResponse;
import com.google.cloud.visionai.v1.AnalyzeAssetMetadata;
import com.google.cloud.visionai.v1.AnalyzeAssetRequest;
import com.google.cloud.visionai.v1.AnalyzeAssetResponse;
import com.google.cloud.visionai.v1.AnalyzeCorpusMetadata;
import com.google.cloud.visionai.v1.AnalyzeCorpusRequest;
import com.google.cloud.visionai.v1.AnalyzeCorpusResponse;
import com.google.cloud.visionai.v1.Annotation;
import com.google.cloud.visionai.v1.Asset;
import com.google.cloud.visionai.v1.ClipAssetRequest;
import com.google.cloud.visionai.v1.ClipAssetResponse;
import com.google.cloud.visionai.v1.Collection;
import com.google.cloud.visionai.v1.Corpus;
import com.google.cloud.visionai.v1.CreateAnnotationRequest;
import com.google.cloud.visionai.v1.CreateAssetRequest;
import com.google.cloud.visionai.v1.CreateCollectionMetadata;
import com.google.cloud.visionai.v1.CreateCollectionRequest;
import com.google.cloud.visionai.v1.CreateCorpusMetadata;
import com.google.cloud.visionai.v1.CreateCorpusRequest;
import com.google.cloud.visionai.v1.CreateDataSchemaRequest;
import com.google.cloud.visionai.v1.CreateIndexEndpointMetadata;
import com.google.cloud.visionai.v1.CreateIndexEndpointRequest;
import com.google.cloud.visionai.v1.CreateIndexMetadata;
import com.google.cloud.visionai.v1.CreateIndexRequest;
import com.google.cloud.visionai.v1.CreateSearchConfigRequest;
import com.google.cloud.visionai.v1.CreateSearchHypernymRequest;
import com.google.cloud.visionai.v1.DataSchema;
import com.google.cloud.visionai.v1.DeleteAnnotationRequest;
import com.google.cloud.visionai.v1.DeleteAssetMetadata;
import com.google.cloud.visionai.v1.DeleteAssetRequest;
import com.google.cloud.visionai.v1.DeleteCollectionMetadata;
import com.google.cloud.visionai.v1.DeleteCollectionRequest;
import com.google.cloud.visionai.v1.DeleteCorpusRequest;
import com.google.cloud.visionai.v1.DeleteDataSchemaRequest;
import com.google.cloud.visionai.v1.DeleteIndexEndpointMetadata;
import com.google.cloud.visionai.v1.DeleteIndexEndpointRequest;
import com.google.cloud.visionai.v1.DeleteIndexMetadata;
import com.google.cloud.visionai.v1.DeleteIndexRequest;
import com.google.cloud.visionai.v1.DeleteSearchConfigRequest;
import com.google.cloud.visionai.v1.DeleteSearchHypernymRequest;
import com.google.cloud.visionai.v1.DeployIndexMetadata;
import com.google.cloud.visionai.v1.DeployIndexRequest;
import com.google.cloud.visionai.v1.DeployIndexResponse;
import com.google.cloud.visionai.v1.GenerateHlsUriRequest;
import com.google.cloud.visionai.v1.GenerateHlsUriResponse;
import com.google.cloud.visionai.v1.GenerateRetrievalUrlRequest;
import com.google.cloud.visionai.v1.GenerateRetrievalUrlResponse;
import com.google.cloud.visionai.v1.GetAnnotationRequest;
import com.google.cloud.visionai.v1.GetAssetRequest;
import com.google.cloud.visionai.v1.GetCollectionRequest;
import com.google.cloud.visionai.v1.GetCorpusRequest;
import com.google.cloud.visionai.v1.GetDataSchemaRequest;
import com.google.cloud.visionai.v1.GetIndexEndpointRequest;
import com.google.cloud.visionai.v1.GetIndexRequest;
import com.google.cloud.visionai.v1.GetSearchConfigRequest;
import com.google.cloud.visionai.v1.GetSearchHypernymRequest;
import com.google.cloud.visionai.v1.ImportAssetsMetadata;
import com.google.cloud.visionai.v1.ImportAssetsRequest;
import com.google.cloud.visionai.v1.ImportAssetsResponse;
import com.google.cloud.visionai.v1.Index;
import com.google.cloud.visionai.v1.IndexAssetMetadata;
import com.google.cloud.visionai.v1.IndexAssetRequest;
import com.google.cloud.visionai.v1.IndexAssetResponse;
import com.google.cloud.visionai.v1.IndexEndpoint;
import com.google.cloud.visionai.v1.IngestAssetRequest;
import com.google.cloud.visionai.v1.IngestAssetResponse;
import com.google.cloud.visionai.v1.ListAnnotationsRequest;
import com.google.cloud.visionai.v1.ListAnnotationsResponse;
import com.google.cloud.visionai.v1.ListAssetsRequest;
import com.google.cloud.visionai.v1.ListAssetsResponse;
import com.google.cloud.visionai.v1.ListCollectionsRequest;
import com.google.cloud.visionai.v1.ListCollectionsResponse;
import com.google.cloud.visionai.v1.ListCorporaRequest;
import com.google.cloud.visionai.v1.ListCorporaResponse;
import com.google.cloud.visionai.v1.ListDataSchemasRequest;
import com.google.cloud.visionai.v1.ListDataSchemasResponse;
import com.google.cloud.visionai.v1.ListIndexEndpointsRequest;
import com.google.cloud.visionai.v1.ListIndexEndpointsResponse;
import com.google.cloud.visionai.v1.ListIndexesRequest;
import com.google.cloud.visionai.v1.ListIndexesResponse;
import com.google.cloud.visionai.v1.ListSearchConfigsRequest;
import com.google.cloud.visionai.v1.ListSearchConfigsResponse;
import com.google.cloud.visionai.v1.ListSearchHypernymsRequest;
import com.google.cloud.visionai.v1.ListSearchHypernymsResponse;
import com.google.cloud.visionai.v1.RemoveCollectionItemRequest;
import com.google.cloud.visionai.v1.RemoveCollectionItemResponse;
import com.google.cloud.visionai.v1.RemoveIndexAssetMetadata;
import com.google.cloud.visionai.v1.RemoveIndexAssetRequest;
import com.google.cloud.visionai.v1.RemoveIndexAssetResponse;
import com.google.cloud.visionai.v1.SearchAssetsRequest;
import com.google.cloud.visionai.v1.SearchAssetsResponse;
import com.google.cloud.visionai.v1.SearchConfig;
import com.google.cloud.visionai.v1.SearchHypernym;
import com.google.cloud.visionai.v1.SearchIndexEndpointRequest;
import com.google.cloud.visionai.v1.SearchIndexEndpointResponse;
import com.google.cloud.visionai.v1.UndeployIndexMetadata;
import com.google.cloud.visionai.v1.UndeployIndexRequest;
import com.google.cloud.visionai.v1.UndeployIndexResponse;
import com.google.cloud.visionai.v1.UpdateAnnotationRequest;
import com.google.cloud.visionai.v1.UpdateAssetRequest;
import com.google.cloud.visionai.v1.UpdateCollectionRequest;
import com.google.cloud.visionai.v1.UpdateCorpusRequest;
import com.google.cloud.visionai.v1.UpdateDataSchemaRequest;
import com.google.cloud.visionai.v1.UpdateIndexEndpointMetadata;
import com.google.cloud.visionai.v1.UpdateIndexEndpointRequest;
import com.google.cloud.visionai.v1.UpdateIndexMetadata;
import com.google.cloud.visionai.v1.UpdateIndexRequest;
import com.google.cloud.visionai.v1.UpdateSearchConfigRequest;
import com.google.cloud.visionai.v1.UpdateSearchHypernymRequest;
import com.google.cloud.visionai.v1.UploadAssetMetadata;
import com.google.cloud.visionai.v1.UploadAssetRequest;
import com.google.cloud.visionai.v1.UploadAssetResponse;
import com.google.cloud.visionai.v1.ViewCollectionItemsRequest;
import com.google.cloud.visionai.v1.ViewCollectionItemsResponse;
import com.google.cloud.visionai.v1.ViewIndexedAssetsRequest;
import com.google.cloud.visionai.v1.ViewIndexedAssetsResponse;
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 Warehouse service API.
 *
 * 

This class is for advanced usage and reflects the underlying API directly. */ @Generated("by gapic-generator-java") public class GrpcWarehouseStub extends WarehouseStub { private static final MethodDescriptor createAssetMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/CreateAsset") .setRequestMarshaller(ProtoUtils.marshaller(CreateAssetRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Asset.getDefaultInstance())) .build(); private static final MethodDescriptor updateAssetMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/UpdateAsset") .setRequestMarshaller(ProtoUtils.marshaller(UpdateAssetRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Asset.getDefaultInstance())) .build(); private static final MethodDescriptor getAssetMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/GetAsset") .setRequestMarshaller(ProtoUtils.marshaller(GetAssetRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Asset.getDefaultInstance())) .build(); private static final MethodDescriptor listAssetsMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/ListAssets") .setRequestMarshaller(ProtoUtils.marshaller(ListAssetsRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(ListAssetsResponse.getDefaultInstance())) .build(); private static final MethodDescriptor deleteAssetMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/DeleteAsset") .setRequestMarshaller(ProtoUtils.marshaller(DeleteAssetRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor uploadAssetMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/UploadAsset") .setRequestMarshaller(ProtoUtils.marshaller(UploadAssetRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor generateRetrievalUrlMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/GenerateRetrievalUrl") .setRequestMarshaller( ProtoUtils.marshaller(GenerateRetrievalUrlRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(GenerateRetrievalUrlResponse.getDefaultInstance())) .build(); private static final MethodDescriptor analyzeAssetMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/AnalyzeAsset") .setRequestMarshaller(ProtoUtils.marshaller(AnalyzeAssetRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor indexAssetMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/IndexAsset") .setRequestMarshaller(ProtoUtils.marshaller(IndexAssetRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor removeIndexAssetMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/RemoveIndexAsset") .setRequestMarshaller( ProtoUtils.marshaller(RemoveIndexAssetRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor viewIndexedAssetsMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/ViewIndexedAssets") .setRequestMarshaller( ProtoUtils.marshaller(ViewIndexedAssetsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ViewIndexedAssetsResponse.getDefaultInstance())) .build(); private static final MethodDescriptor createIndexMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/CreateIndex") .setRequestMarshaller(ProtoUtils.marshaller(CreateIndexRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor updateIndexMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/UpdateIndex") .setRequestMarshaller(ProtoUtils.marshaller(UpdateIndexRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor getIndexMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/GetIndex") .setRequestMarshaller(ProtoUtils.marshaller(GetIndexRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Index.getDefaultInstance())) .build(); private static final MethodDescriptor listIndexesMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/ListIndexes") .setRequestMarshaller(ProtoUtils.marshaller(ListIndexesRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListIndexesResponse.getDefaultInstance())) .build(); private static final MethodDescriptor deleteIndexMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/DeleteIndex") .setRequestMarshaller(ProtoUtils.marshaller(DeleteIndexRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor createCorpusMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/CreateCorpus") .setRequestMarshaller(ProtoUtils.marshaller(CreateCorpusRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor getCorpusMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/GetCorpus") .setRequestMarshaller(ProtoUtils.marshaller(GetCorpusRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Corpus.getDefaultInstance())) .build(); private static final MethodDescriptor updateCorpusMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/UpdateCorpus") .setRequestMarshaller(ProtoUtils.marshaller(UpdateCorpusRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Corpus.getDefaultInstance())) .build(); private static final MethodDescriptor listCorporaMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/ListCorpora") .setRequestMarshaller(ProtoUtils.marshaller(ListCorporaRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListCorporaResponse.getDefaultInstance())) .build(); private static final MethodDescriptor deleteCorpusMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/DeleteCorpus") .setRequestMarshaller(ProtoUtils.marshaller(DeleteCorpusRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) .build(); private static final MethodDescriptor analyzeCorpusMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/AnalyzeCorpus") .setRequestMarshaller( ProtoUtils.marshaller(AnalyzeCorpusRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor createDataSchemaMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/CreateDataSchema") .setRequestMarshaller( ProtoUtils.marshaller(CreateDataSchemaRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(DataSchema.getDefaultInstance())) .build(); private static final MethodDescriptor updateDataSchemaMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/UpdateDataSchema") .setRequestMarshaller( ProtoUtils.marshaller(UpdateDataSchemaRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(DataSchema.getDefaultInstance())) .build(); private static final MethodDescriptor getDataSchemaMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/GetDataSchema") .setRequestMarshaller( ProtoUtils.marshaller(GetDataSchemaRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(DataSchema.getDefaultInstance())) .build(); private static final MethodDescriptor deleteDataSchemaMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/DeleteDataSchema") .setRequestMarshaller( ProtoUtils.marshaller(DeleteDataSchemaRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) .build(); private static final MethodDescriptor listDataSchemasMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/ListDataSchemas") .setRequestMarshaller( ProtoUtils.marshaller(ListDataSchemasRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListDataSchemasResponse.getDefaultInstance())) .build(); private static final MethodDescriptor createAnnotationMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/CreateAnnotation") .setRequestMarshaller( ProtoUtils.marshaller(CreateAnnotationRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Annotation.getDefaultInstance())) .build(); private static final MethodDescriptor getAnnotationMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/GetAnnotation") .setRequestMarshaller( ProtoUtils.marshaller(GetAnnotationRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Annotation.getDefaultInstance())) .build(); private static final MethodDescriptor listAnnotationsMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/ListAnnotations") .setRequestMarshaller( ProtoUtils.marshaller(ListAnnotationsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListAnnotationsResponse.getDefaultInstance())) .build(); private static final MethodDescriptor updateAnnotationMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/UpdateAnnotation") .setRequestMarshaller( ProtoUtils.marshaller(UpdateAnnotationRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Annotation.getDefaultInstance())) .build(); private static final MethodDescriptor deleteAnnotationMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/DeleteAnnotation") .setRequestMarshaller( ProtoUtils.marshaller(DeleteAnnotationRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) .build(); private static final MethodDescriptor ingestAssetMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.BIDI_STREAMING) .setFullMethodName("google.cloud.visionai.v1.Warehouse/IngestAsset") .setRequestMarshaller(ProtoUtils.marshaller(IngestAssetRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(IngestAssetResponse.getDefaultInstance())) .build(); private static final MethodDescriptor clipAssetMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/ClipAsset") .setRequestMarshaller(ProtoUtils.marshaller(ClipAssetRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(ClipAssetResponse.getDefaultInstance())) .build(); private static final MethodDescriptor generateHlsUriMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/GenerateHlsUri") .setRequestMarshaller( ProtoUtils.marshaller(GenerateHlsUriRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(GenerateHlsUriResponse.getDefaultInstance())) .build(); private static final MethodDescriptor importAssetsMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/ImportAssets") .setRequestMarshaller(ProtoUtils.marshaller(ImportAssetsRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor createSearchConfigMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/CreateSearchConfig") .setRequestMarshaller( ProtoUtils.marshaller(CreateSearchConfigRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(SearchConfig.getDefaultInstance())) .build(); private static final MethodDescriptor updateSearchConfigMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/UpdateSearchConfig") .setRequestMarshaller( ProtoUtils.marshaller(UpdateSearchConfigRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(SearchConfig.getDefaultInstance())) .build(); private static final MethodDescriptor getSearchConfigMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/GetSearchConfig") .setRequestMarshaller( ProtoUtils.marshaller(GetSearchConfigRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(SearchConfig.getDefaultInstance())) .build(); private static final MethodDescriptor deleteSearchConfigMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/DeleteSearchConfig") .setRequestMarshaller( ProtoUtils.marshaller(DeleteSearchConfigRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) .build(); private static final MethodDescriptor listSearchConfigsMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/ListSearchConfigs") .setRequestMarshaller( ProtoUtils.marshaller(ListSearchConfigsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListSearchConfigsResponse.getDefaultInstance())) .build(); private static final MethodDescriptor createSearchHypernymMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/CreateSearchHypernym") .setRequestMarshaller( ProtoUtils.marshaller(CreateSearchHypernymRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(SearchHypernym.getDefaultInstance())) .build(); private static final MethodDescriptor updateSearchHypernymMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/UpdateSearchHypernym") .setRequestMarshaller( ProtoUtils.marshaller(UpdateSearchHypernymRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(SearchHypernym.getDefaultInstance())) .build(); private static final MethodDescriptor getSearchHypernymMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/GetSearchHypernym") .setRequestMarshaller( ProtoUtils.marshaller(GetSearchHypernymRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(SearchHypernym.getDefaultInstance())) .build(); private static final MethodDescriptor deleteSearchHypernymMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/DeleteSearchHypernym") .setRequestMarshaller( ProtoUtils.marshaller(DeleteSearchHypernymRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) .build(); private static final MethodDescriptor listSearchHypernymsMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/ListSearchHypernyms") .setRequestMarshaller( ProtoUtils.marshaller(ListSearchHypernymsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListSearchHypernymsResponse.getDefaultInstance())) .build(); private static final MethodDescriptor searchAssetsMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/SearchAssets") .setRequestMarshaller(ProtoUtils.marshaller(SearchAssetsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(SearchAssetsResponse.getDefaultInstance())) .build(); private static final MethodDescriptor searchIndexEndpointMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/SearchIndexEndpoint") .setRequestMarshaller( ProtoUtils.marshaller(SearchIndexEndpointRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(SearchIndexEndpointResponse.getDefaultInstance())) .build(); private static final MethodDescriptor createIndexEndpointMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/CreateIndexEndpoint") .setRequestMarshaller( ProtoUtils.marshaller(CreateIndexEndpointRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor getIndexEndpointMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/GetIndexEndpoint") .setRequestMarshaller( ProtoUtils.marshaller(GetIndexEndpointRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(IndexEndpoint.getDefaultInstance())) .build(); private static final MethodDescriptor listIndexEndpointsMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/ListIndexEndpoints") .setRequestMarshaller( ProtoUtils.marshaller(ListIndexEndpointsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListIndexEndpointsResponse.getDefaultInstance())) .build(); private static final MethodDescriptor updateIndexEndpointMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/UpdateIndexEndpoint") .setRequestMarshaller( ProtoUtils.marshaller(UpdateIndexEndpointRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor deleteIndexEndpointMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/DeleteIndexEndpoint") .setRequestMarshaller( ProtoUtils.marshaller(DeleteIndexEndpointRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor deployIndexMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/DeployIndex") .setRequestMarshaller(ProtoUtils.marshaller(DeployIndexRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor undeployIndexMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/UndeployIndex") .setRequestMarshaller( ProtoUtils.marshaller(UndeployIndexRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor createCollectionMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/CreateCollection") .setRequestMarshaller( ProtoUtils.marshaller(CreateCollectionRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor deleteCollectionMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/DeleteCollection") .setRequestMarshaller( ProtoUtils.marshaller(DeleteCollectionRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor getCollectionMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/GetCollection") .setRequestMarshaller( ProtoUtils.marshaller(GetCollectionRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Collection.getDefaultInstance())) .build(); private static final MethodDescriptor updateCollectionMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/UpdateCollection") .setRequestMarshaller( ProtoUtils.marshaller(UpdateCollectionRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Collection.getDefaultInstance())) .build(); private static final MethodDescriptor listCollectionsMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/ListCollections") .setRequestMarshaller( ProtoUtils.marshaller(ListCollectionsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListCollectionsResponse.getDefaultInstance())) .build(); private static final MethodDescriptor addCollectionItemMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/AddCollectionItem") .setRequestMarshaller( ProtoUtils.marshaller(AddCollectionItemRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(AddCollectionItemResponse.getDefaultInstance())) .build(); private static final MethodDescriptor removeCollectionItemMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/RemoveCollectionItem") .setRequestMarshaller( ProtoUtils.marshaller(RemoveCollectionItemRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(RemoveCollectionItemResponse.getDefaultInstance())) .build(); private static final MethodDescriptor viewCollectionItemsMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.visionai.v1.Warehouse/ViewCollectionItems") .setRequestMarshaller( ProtoUtils.marshaller(ViewCollectionItemsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ViewCollectionItemsResponse.getDefaultInstance())) .build(); private final UnaryCallable createAssetCallable; private final UnaryCallable updateAssetCallable; private final UnaryCallable getAssetCallable; private final UnaryCallable listAssetsCallable; private final UnaryCallable listAssetsPagedCallable; private final UnaryCallable deleteAssetCallable; private final OperationCallable deleteAssetOperationCallable; private final UnaryCallable uploadAssetCallable; private final OperationCallable uploadAssetOperationCallable; private final UnaryCallable generateRetrievalUrlCallable; private final UnaryCallable analyzeAssetCallable; private final OperationCallable analyzeAssetOperationCallable; private final UnaryCallable indexAssetCallable; private final OperationCallable indexAssetOperationCallable; private final UnaryCallable removeIndexAssetCallable; private final OperationCallable< RemoveIndexAssetRequest, RemoveIndexAssetResponse, RemoveIndexAssetMetadata> removeIndexAssetOperationCallable; private final UnaryCallable viewIndexedAssetsCallable; private final UnaryCallable viewIndexedAssetsPagedCallable; private final UnaryCallable createIndexCallable; private final OperationCallable createIndexOperationCallable; private final UnaryCallable updateIndexCallable; private final OperationCallable updateIndexOperationCallable; private final UnaryCallable getIndexCallable; private final UnaryCallable listIndexesCallable; private final UnaryCallable listIndexesPagedCallable; private final UnaryCallable deleteIndexCallable; private final OperationCallable deleteIndexOperationCallable; private final UnaryCallable createCorpusCallable; private final OperationCallable createCorpusOperationCallable; private final UnaryCallable getCorpusCallable; private final UnaryCallable updateCorpusCallable; private final UnaryCallable listCorporaCallable; private final UnaryCallable listCorporaPagedCallable; private final UnaryCallable deleteCorpusCallable; private final UnaryCallable analyzeCorpusCallable; private final OperationCallable< AnalyzeCorpusRequest, AnalyzeCorpusResponse, AnalyzeCorpusMetadata> analyzeCorpusOperationCallable; private final UnaryCallable createDataSchemaCallable; private final UnaryCallable updateDataSchemaCallable; private final UnaryCallable getDataSchemaCallable; private final UnaryCallable deleteDataSchemaCallable; private final UnaryCallable listDataSchemasCallable; private final UnaryCallable listDataSchemasPagedCallable; private final UnaryCallable createAnnotationCallable; private final UnaryCallable getAnnotationCallable; private final UnaryCallable listAnnotationsCallable; private final UnaryCallable listAnnotationsPagedCallable; private final UnaryCallable updateAnnotationCallable; private final UnaryCallable deleteAnnotationCallable; private final BidiStreamingCallable ingestAssetCallable; private final UnaryCallable clipAssetCallable; private final UnaryCallable generateHlsUriCallable; private final UnaryCallable importAssetsCallable; private final OperationCallable importAssetsOperationCallable; private final UnaryCallable createSearchConfigCallable; private final UnaryCallable updateSearchConfigCallable; private final UnaryCallable getSearchConfigCallable; private final UnaryCallable deleteSearchConfigCallable; private final UnaryCallable listSearchConfigsCallable; private final UnaryCallable listSearchConfigsPagedCallable; private final UnaryCallable createSearchHypernymCallable; private final UnaryCallable updateSearchHypernymCallable; private final UnaryCallable getSearchHypernymCallable; private final UnaryCallable deleteSearchHypernymCallable; private final UnaryCallable listSearchHypernymsCallable; private final UnaryCallable listSearchHypernymsPagedCallable; private final UnaryCallable searchAssetsCallable; private final UnaryCallable searchAssetsPagedCallable; private final UnaryCallable searchIndexEndpointCallable; private final UnaryCallable searchIndexEndpointPagedCallable; private final UnaryCallable createIndexEndpointCallable; private final OperationCallable< CreateIndexEndpointRequest, IndexEndpoint, CreateIndexEndpointMetadata> createIndexEndpointOperationCallable; private final UnaryCallable getIndexEndpointCallable; private final UnaryCallable listIndexEndpointsCallable; private final UnaryCallable listIndexEndpointsPagedCallable; private final UnaryCallable updateIndexEndpointCallable; private final OperationCallable< UpdateIndexEndpointRequest, IndexEndpoint, UpdateIndexEndpointMetadata> updateIndexEndpointOperationCallable; private final UnaryCallable deleteIndexEndpointCallable; private final OperationCallable deleteIndexEndpointOperationCallable; private final UnaryCallable deployIndexCallable; private final OperationCallable deployIndexOperationCallable; private final UnaryCallable undeployIndexCallable; private final OperationCallable< UndeployIndexRequest, UndeployIndexResponse, UndeployIndexMetadata> undeployIndexOperationCallable; private final UnaryCallable createCollectionCallable; private final OperationCallable createCollectionOperationCallable; private final UnaryCallable deleteCollectionCallable; private final OperationCallable deleteCollectionOperationCallable; private final UnaryCallable getCollectionCallable; private final UnaryCallable updateCollectionCallable; private final UnaryCallable listCollectionsCallable; private final UnaryCallable listCollectionsPagedCallable; private final UnaryCallable addCollectionItemCallable; private final UnaryCallable removeCollectionItemCallable; private final UnaryCallable viewCollectionItemsCallable; private final UnaryCallable viewCollectionItemsPagedCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; private final GrpcStubCallableFactory callableFactory; public static final GrpcWarehouseStub create(WarehouseStubSettings settings) throws IOException { return new GrpcWarehouseStub(settings, ClientContext.create(settings)); } public static final GrpcWarehouseStub create(ClientContext clientContext) throws IOException { return new GrpcWarehouseStub(WarehouseStubSettings.newBuilder().build(), clientContext); } public static final GrpcWarehouseStub create( ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { return new GrpcWarehouseStub( WarehouseStubSettings.newBuilder().build(), clientContext, callableFactory); } /** * Constructs an instance of GrpcWarehouseStub, 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 GrpcWarehouseStub(WarehouseStubSettings settings, ClientContext clientContext) throws IOException { this(settings, clientContext, new GrpcWarehouseCallableFactory()); } /** * Constructs an instance of GrpcWarehouseStub, 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 GrpcWarehouseStub( WarehouseStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); GrpcCallSettings createAssetTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createAssetMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings updateAssetTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateAssetMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("asset.name", String.valueOf(request.getAsset().getName())); return builder.build(); }) .build(); GrpcCallSettings getAssetTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getAssetMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings listAssetsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listAssetsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings deleteAssetTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteAssetMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings uploadAssetTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(uploadAssetMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings generateRetrievalUrlTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(generateRetrievalUrlMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings analyzeAssetTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(analyzeAssetMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings indexAssetTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(indexAssetMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings removeIndexAssetTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(removeIndexAssetMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings viewIndexedAssetsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(viewIndexedAssetsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("index", String.valueOf(request.getIndex())); return builder.build(); }) .build(); GrpcCallSettings createIndexTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createIndexMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings updateIndexTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateIndexMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("index.name", String.valueOf(request.getIndex().getName())); return builder.build(); }) .build(); GrpcCallSettings getIndexTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getIndexMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings listIndexesTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listIndexesMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings deleteIndexTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteIndexMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings createCorpusTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createCorpusMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings getCorpusTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getCorpusMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings updateCorpusTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateCorpusMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("corpus.name", String.valueOf(request.getCorpus().getName())); return builder.build(); }) .build(); GrpcCallSettings listCorporaTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listCorporaMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings deleteCorpusTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteCorpusMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings analyzeCorpusTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(analyzeCorpusMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings createDataSchemaTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createDataSchemaMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings updateDataSchemaTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateDataSchemaMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add( "data_schema.name", String.valueOf(request.getDataSchema().getName())); return builder.build(); }) .build(); GrpcCallSettings getDataSchemaTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getDataSchemaMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings deleteDataSchemaTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteDataSchemaMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings listDataSchemasTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listDataSchemasMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings createAnnotationTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createAnnotationMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings getAnnotationTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getAnnotationMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings listAnnotationsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listAnnotationsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings updateAnnotationTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateAnnotationMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("annotation.name", String.valueOf(request.getAnnotation().getName())); return builder.build(); }) .build(); GrpcCallSettings deleteAnnotationTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteAnnotationMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings ingestAssetTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(ingestAssetMethodDescriptor) .build(); GrpcCallSettings clipAssetTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(clipAssetMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings generateHlsUriTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(generateHlsUriMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings importAssetsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(importAssetsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings createSearchConfigTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createSearchConfigMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings updateSearchConfigTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateSearchConfigMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add( "search_config.name", String.valueOf(request.getSearchConfig().getName())); return builder.build(); }) .build(); GrpcCallSettings getSearchConfigTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getSearchConfigMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings deleteSearchConfigTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteSearchConfigMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings listSearchConfigsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listSearchConfigsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings createSearchHypernymTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createSearchHypernymMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings updateSearchHypernymTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateSearchHypernymMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add( "search_hypernym.name", String.valueOf(request.getSearchHypernym().getName())); return builder.build(); }) .build(); GrpcCallSettings getSearchHypernymTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getSearchHypernymMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings deleteSearchHypernymTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteSearchHypernymMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings listSearchHypernymsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listSearchHypernymsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings searchAssetsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(searchAssetsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("corpus", String.valueOf(request.getCorpus())); return builder.build(); }) .build(); GrpcCallSettings searchIndexEndpointTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(searchIndexEndpointMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("index_endpoint", String.valueOf(request.getIndexEndpoint())); return builder.build(); }) .build(); GrpcCallSettings createIndexEndpointTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createIndexEndpointMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings getIndexEndpointTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getIndexEndpointMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings listIndexEndpointsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listIndexEndpointsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings updateIndexEndpointTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateIndexEndpointMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add( "index_endpoint.name", String.valueOf(request.getIndexEndpoint().getName())); return builder.build(); }) .build(); GrpcCallSettings deleteIndexEndpointTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteIndexEndpointMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings deployIndexTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deployIndexMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("index_endpoint", String.valueOf(request.getIndexEndpoint())); return builder.build(); }) .build(); GrpcCallSettings undeployIndexTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(undeployIndexMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("index_endpoint", String.valueOf(request.getIndexEndpoint())); return builder.build(); }) .build(); GrpcCallSettings createCollectionTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createCollectionMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings deleteCollectionTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteCollectionMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings getCollectionTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getCollectionMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings updateCollectionTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateCollectionMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("collection.name", String.valueOf(request.getCollection().getName())); return builder.build(); }) .build(); GrpcCallSettings listCollectionsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listCollectionsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings addCollectionItemTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(addCollectionItemMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add( "item.collection", String.valueOf(request.getItem().getCollection())); return builder.build(); }) .build(); GrpcCallSettings removeCollectionItemTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(removeCollectionItemMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add( "item.collection", String.valueOf(request.getItem().getCollection())); return builder.build(); }) .build(); GrpcCallSettings viewCollectionItemsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(viewCollectionItemsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("collection", String.valueOf(request.getCollection())); return builder.build(); }) .build(); this.createAssetCallable = callableFactory.createUnaryCallable( createAssetTransportSettings, settings.createAssetSettings(), clientContext); this.updateAssetCallable = callableFactory.createUnaryCallable( updateAssetTransportSettings, settings.updateAssetSettings(), clientContext); this.getAssetCallable = callableFactory.createUnaryCallable( getAssetTransportSettings, settings.getAssetSettings(), clientContext); this.listAssetsCallable = callableFactory.createUnaryCallable( listAssetsTransportSettings, settings.listAssetsSettings(), clientContext); this.listAssetsPagedCallable = callableFactory.createPagedCallable( listAssetsTransportSettings, settings.listAssetsSettings(), clientContext); this.deleteAssetCallable = callableFactory.createUnaryCallable( deleteAssetTransportSettings, settings.deleteAssetSettings(), clientContext); this.deleteAssetOperationCallable = callableFactory.createOperationCallable( deleteAssetTransportSettings, settings.deleteAssetOperationSettings(), clientContext, operationsStub); this.uploadAssetCallable = callableFactory.createUnaryCallable( uploadAssetTransportSettings, settings.uploadAssetSettings(), clientContext); this.uploadAssetOperationCallable = callableFactory.createOperationCallable( uploadAssetTransportSettings, settings.uploadAssetOperationSettings(), clientContext, operationsStub); this.generateRetrievalUrlCallable = callableFactory.createUnaryCallable( generateRetrievalUrlTransportSettings, settings.generateRetrievalUrlSettings(), clientContext); this.analyzeAssetCallable = callableFactory.createUnaryCallable( analyzeAssetTransportSettings, settings.analyzeAssetSettings(), clientContext); this.analyzeAssetOperationCallable = callableFactory.createOperationCallable( analyzeAssetTransportSettings, settings.analyzeAssetOperationSettings(), clientContext, operationsStub); this.indexAssetCallable = callableFactory.createUnaryCallable( indexAssetTransportSettings, settings.indexAssetSettings(), clientContext); this.indexAssetOperationCallable = callableFactory.createOperationCallable( indexAssetTransportSettings, settings.indexAssetOperationSettings(), clientContext, operationsStub); this.removeIndexAssetCallable = callableFactory.createUnaryCallable( removeIndexAssetTransportSettings, settings.removeIndexAssetSettings(), clientContext); this.removeIndexAssetOperationCallable = callableFactory.createOperationCallable( removeIndexAssetTransportSettings, settings.removeIndexAssetOperationSettings(), clientContext, operationsStub); this.viewIndexedAssetsCallable = callableFactory.createUnaryCallable( viewIndexedAssetsTransportSettings, settings.viewIndexedAssetsSettings(), clientContext); this.viewIndexedAssetsPagedCallable = callableFactory.createPagedCallable( viewIndexedAssetsTransportSettings, settings.viewIndexedAssetsSettings(), clientContext); this.createIndexCallable = callableFactory.createUnaryCallable( createIndexTransportSettings, settings.createIndexSettings(), clientContext); this.createIndexOperationCallable = callableFactory.createOperationCallable( createIndexTransportSettings, settings.createIndexOperationSettings(), clientContext, operationsStub); this.updateIndexCallable = callableFactory.createUnaryCallable( updateIndexTransportSettings, settings.updateIndexSettings(), clientContext); this.updateIndexOperationCallable = callableFactory.createOperationCallable( updateIndexTransportSettings, settings.updateIndexOperationSettings(), clientContext, operationsStub); this.getIndexCallable = callableFactory.createUnaryCallable( getIndexTransportSettings, settings.getIndexSettings(), clientContext); this.listIndexesCallable = callableFactory.createUnaryCallable( listIndexesTransportSettings, settings.listIndexesSettings(), clientContext); this.listIndexesPagedCallable = callableFactory.createPagedCallable( listIndexesTransportSettings, settings.listIndexesSettings(), clientContext); this.deleteIndexCallable = callableFactory.createUnaryCallable( deleteIndexTransportSettings, settings.deleteIndexSettings(), clientContext); this.deleteIndexOperationCallable = callableFactory.createOperationCallable( deleteIndexTransportSettings, settings.deleteIndexOperationSettings(), clientContext, operationsStub); this.createCorpusCallable = callableFactory.createUnaryCallable( createCorpusTransportSettings, settings.createCorpusSettings(), clientContext); this.createCorpusOperationCallable = callableFactory.createOperationCallable( createCorpusTransportSettings, settings.createCorpusOperationSettings(), clientContext, operationsStub); this.getCorpusCallable = callableFactory.createUnaryCallable( getCorpusTransportSettings, settings.getCorpusSettings(), clientContext); this.updateCorpusCallable = callableFactory.createUnaryCallable( updateCorpusTransportSettings, settings.updateCorpusSettings(), clientContext); this.listCorporaCallable = callableFactory.createUnaryCallable( listCorporaTransportSettings, settings.listCorporaSettings(), clientContext); this.listCorporaPagedCallable = callableFactory.createPagedCallable( listCorporaTransportSettings, settings.listCorporaSettings(), clientContext); this.deleteCorpusCallable = callableFactory.createUnaryCallable( deleteCorpusTransportSettings, settings.deleteCorpusSettings(), clientContext); this.analyzeCorpusCallable = callableFactory.createUnaryCallable( analyzeCorpusTransportSettings, settings.analyzeCorpusSettings(), clientContext); this.analyzeCorpusOperationCallable = callableFactory.createOperationCallable( analyzeCorpusTransportSettings, settings.analyzeCorpusOperationSettings(), clientContext, operationsStub); this.createDataSchemaCallable = callableFactory.createUnaryCallable( createDataSchemaTransportSettings, settings.createDataSchemaSettings(), clientContext); this.updateDataSchemaCallable = callableFactory.createUnaryCallable( updateDataSchemaTransportSettings, settings.updateDataSchemaSettings(), clientContext); this.getDataSchemaCallable = callableFactory.createUnaryCallable( getDataSchemaTransportSettings, settings.getDataSchemaSettings(), clientContext); this.deleteDataSchemaCallable = callableFactory.createUnaryCallable( deleteDataSchemaTransportSettings, settings.deleteDataSchemaSettings(), clientContext); this.listDataSchemasCallable = callableFactory.createUnaryCallable( listDataSchemasTransportSettings, settings.listDataSchemasSettings(), clientContext); this.listDataSchemasPagedCallable = callableFactory.createPagedCallable( listDataSchemasTransportSettings, settings.listDataSchemasSettings(), clientContext); this.createAnnotationCallable = callableFactory.createUnaryCallable( createAnnotationTransportSettings, settings.createAnnotationSettings(), clientContext); this.getAnnotationCallable = callableFactory.createUnaryCallable( getAnnotationTransportSettings, settings.getAnnotationSettings(), clientContext); this.listAnnotationsCallable = callableFactory.createUnaryCallable( listAnnotationsTransportSettings, settings.listAnnotationsSettings(), clientContext); this.listAnnotationsPagedCallable = callableFactory.createPagedCallable( listAnnotationsTransportSettings, settings.listAnnotationsSettings(), clientContext); this.updateAnnotationCallable = callableFactory.createUnaryCallable( updateAnnotationTransportSettings, settings.updateAnnotationSettings(), clientContext); this.deleteAnnotationCallable = callableFactory.createUnaryCallable( deleteAnnotationTransportSettings, settings.deleteAnnotationSettings(), clientContext); this.ingestAssetCallable = callableFactory.createBidiStreamingCallable( ingestAssetTransportSettings, settings.ingestAssetSettings(), clientContext); this.clipAssetCallable = callableFactory.createUnaryCallable( clipAssetTransportSettings, settings.clipAssetSettings(), clientContext); this.generateHlsUriCallable = callableFactory.createUnaryCallable( generateHlsUriTransportSettings, settings.generateHlsUriSettings(), clientContext); this.importAssetsCallable = callableFactory.createUnaryCallable( importAssetsTransportSettings, settings.importAssetsSettings(), clientContext); this.importAssetsOperationCallable = callableFactory.createOperationCallable( importAssetsTransportSettings, settings.importAssetsOperationSettings(), clientContext, operationsStub); this.createSearchConfigCallable = callableFactory.createUnaryCallable( createSearchConfigTransportSettings, settings.createSearchConfigSettings(), clientContext); this.updateSearchConfigCallable = callableFactory.createUnaryCallable( updateSearchConfigTransportSettings, settings.updateSearchConfigSettings(), clientContext); this.getSearchConfigCallable = callableFactory.createUnaryCallable( getSearchConfigTransportSettings, settings.getSearchConfigSettings(), clientContext); this.deleteSearchConfigCallable = callableFactory.createUnaryCallable( deleteSearchConfigTransportSettings, settings.deleteSearchConfigSettings(), clientContext); this.listSearchConfigsCallable = callableFactory.createUnaryCallable( listSearchConfigsTransportSettings, settings.listSearchConfigsSettings(), clientContext); this.listSearchConfigsPagedCallable = callableFactory.createPagedCallable( listSearchConfigsTransportSettings, settings.listSearchConfigsSettings(), clientContext); this.createSearchHypernymCallable = callableFactory.createUnaryCallable( createSearchHypernymTransportSettings, settings.createSearchHypernymSettings(), clientContext); this.updateSearchHypernymCallable = callableFactory.createUnaryCallable( updateSearchHypernymTransportSettings, settings.updateSearchHypernymSettings(), clientContext); this.getSearchHypernymCallable = callableFactory.createUnaryCallable( getSearchHypernymTransportSettings, settings.getSearchHypernymSettings(), clientContext); this.deleteSearchHypernymCallable = callableFactory.createUnaryCallable( deleteSearchHypernymTransportSettings, settings.deleteSearchHypernymSettings(), clientContext); this.listSearchHypernymsCallable = callableFactory.createUnaryCallable( listSearchHypernymsTransportSettings, settings.listSearchHypernymsSettings(), clientContext); this.listSearchHypernymsPagedCallable = callableFactory.createPagedCallable( listSearchHypernymsTransportSettings, settings.listSearchHypernymsSettings(), clientContext); this.searchAssetsCallable = callableFactory.createUnaryCallable( searchAssetsTransportSettings, settings.searchAssetsSettings(), clientContext); this.searchAssetsPagedCallable = callableFactory.createPagedCallable( searchAssetsTransportSettings, settings.searchAssetsSettings(), clientContext); this.searchIndexEndpointCallable = callableFactory.createUnaryCallable( searchIndexEndpointTransportSettings, settings.searchIndexEndpointSettings(), clientContext); this.searchIndexEndpointPagedCallable = callableFactory.createPagedCallable( searchIndexEndpointTransportSettings, settings.searchIndexEndpointSettings(), clientContext); this.createIndexEndpointCallable = callableFactory.createUnaryCallable( createIndexEndpointTransportSettings, settings.createIndexEndpointSettings(), clientContext); this.createIndexEndpointOperationCallable = callableFactory.createOperationCallable( createIndexEndpointTransportSettings, settings.createIndexEndpointOperationSettings(), clientContext, operationsStub); this.getIndexEndpointCallable = callableFactory.createUnaryCallable( getIndexEndpointTransportSettings, settings.getIndexEndpointSettings(), clientContext); this.listIndexEndpointsCallable = callableFactory.createUnaryCallable( listIndexEndpointsTransportSettings, settings.listIndexEndpointsSettings(), clientContext); this.listIndexEndpointsPagedCallable = callableFactory.createPagedCallable( listIndexEndpointsTransportSettings, settings.listIndexEndpointsSettings(), clientContext); this.updateIndexEndpointCallable = callableFactory.createUnaryCallable( updateIndexEndpointTransportSettings, settings.updateIndexEndpointSettings(), clientContext); this.updateIndexEndpointOperationCallable = callableFactory.createOperationCallable( updateIndexEndpointTransportSettings, settings.updateIndexEndpointOperationSettings(), clientContext, operationsStub); this.deleteIndexEndpointCallable = callableFactory.createUnaryCallable( deleteIndexEndpointTransportSettings, settings.deleteIndexEndpointSettings(), clientContext); this.deleteIndexEndpointOperationCallable = callableFactory.createOperationCallable( deleteIndexEndpointTransportSettings, settings.deleteIndexEndpointOperationSettings(), clientContext, operationsStub); this.deployIndexCallable = callableFactory.createUnaryCallable( deployIndexTransportSettings, settings.deployIndexSettings(), clientContext); this.deployIndexOperationCallable = callableFactory.createOperationCallable( deployIndexTransportSettings, settings.deployIndexOperationSettings(), clientContext, operationsStub); this.undeployIndexCallable = callableFactory.createUnaryCallable( undeployIndexTransportSettings, settings.undeployIndexSettings(), clientContext); this.undeployIndexOperationCallable = callableFactory.createOperationCallable( undeployIndexTransportSettings, settings.undeployIndexOperationSettings(), clientContext, operationsStub); this.createCollectionCallable = callableFactory.createUnaryCallable( createCollectionTransportSettings, settings.createCollectionSettings(), clientContext); this.createCollectionOperationCallable = callableFactory.createOperationCallable( createCollectionTransportSettings, settings.createCollectionOperationSettings(), clientContext, operationsStub); this.deleteCollectionCallable = callableFactory.createUnaryCallable( deleteCollectionTransportSettings, settings.deleteCollectionSettings(), clientContext); this.deleteCollectionOperationCallable = callableFactory.createOperationCallable( deleteCollectionTransportSettings, settings.deleteCollectionOperationSettings(), clientContext, operationsStub); this.getCollectionCallable = callableFactory.createUnaryCallable( getCollectionTransportSettings, settings.getCollectionSettings(), clientContext); this.updateCollectionCallable = callableFactory.createUnaryCallable( updateCollectionTransportSettings, settings.updateCollectionSettings(), clientContext); this.listCollectionsCallable = callableFactory.createUnaryCallable( listCollectionsTransportSettings, settings.listCollectionsSettings(), clientContext); this.listCollectionsPagedCallable = callableFactory.createPagedCallable( listCollectionsTransportSettings, settings.listCollectionsSettings(), clientContext); this.addCollectionItemCallable = callableFactory.createUnaryCallable( addCollectionItemTransportSettings, settings.addCollectionItemSettings(), clientContext); this.removeCollectionItemCallable = callableFactory.createUnaryCallable( removeCollectionItemTransportSettings, settings.removeCollectionItemSettings(), clientContext); this.viewCollectionItemsCallable = callableFactory.createUnaryCallable( viewCollectionItemsTransportSettings, settings.viewCollectionItemsSettings(), clientContext); this.viewCollectionItemsPagedCallable = callableFactory.createPagedCallable( viewCollectionItemsTransportSettings, settings.viewCollectionItemsSettings(), clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); } public GrpcOperationsStub getOperationsStub() { return operationsStub; } @Override public UnaryCallable createAssetCallable() { return createAssetCallable; } @Override public UnaryCallable updateAssetCallable() { return updateAssetCallable; } @Override public UnaryCallable getAssetCallable() { return getAssetCallable; } @Override public UnaryCallable listAssetsCallable() { return listAssetsCallable; } @Override public UnaryCallable listAssetsPagedCallable() { return listAssetsPagedCallable; } @Override public UnaryCallable deleteAssetCallable() { return deleteAssetCallable; } @Override public OperationCallable deleteAssetOperationCallable() { return deleteAssetOperationCallable; } @Override public UnaryCallable uploadAssetCallable() { return uploadAssetCallable; } @Override public OperationCallable uploadAssetOperationCallable() { return uploadAssetOperationCallable; } @Override public UnaryCallable generateRetrievalUrlCallable() { return generateRetrievalUrlCallable; } @Override public UnaryCallable analyzeAssetCallable() { return analyzeAssetCallable; } @Override public OperationCallable analyzeAssetOperationCallable() { return analyzeAssetOperationCallable; } @Override public UnaryCallable indexAssetCallable() { return indexAssetCallable; } @Override public OperationCallable indexAssetOperationCallable() { return indexAssetOperationCallable; } @Override public UnaryCallable removeIndexAssetCallable() { return removeIndexAssetCallable; } @Override public OperationCallable< RemoveIndexAssetRequest, RemoveIndexAssetResponse, RemoveIndexAssetMetadata> removeIndexAssetOperationCallable() { return removeIndexAssetOperationCallable; } @Override public UnaryCallable viewIndexedAssetsCallable() { return viewIndexedAssetsCallable; } @Override public UnaryCallable viewIndexedAssetsPagedCallable() { return viewIndexedAssetsPagedCallable; } @Override public UnaryCallable createIndexCallable() { return createIndexCallable; } @Override public OperationCallable createIndexOperationCallable() { return createIndexOperationCallable; } @Override public UnaryCallable updateIndexCallable() { return updateIndexCallable; } @Override public OperationCallable updateIndexOperationCallable() { return updateIndexOperationCallable; } @Override public UnaryCallable getIndexCallable() { return getIndexCallable; } @Override public UnaryCallable listIndexesCallable() { return listIndexesCallable; } @Override public UnaryCallable listIndexesPagedCallable() { return listIndexesPagedCallable; } @Override public UnaryCallable deleteIndexCallable() { return deleteIndexCallable; } @Override public OperationCallable deleteIndexOperationCallable() { return deleteIndexOperationCallable; } @Override public UnaryCallable createCorpusCallable() { return createCorpusCallable; } @Override public OperationCallable createCorpusOperationCallable() { return createCorpusOperationCallable; } @Override public UnaryCallable getCorpusCallable() { return getCorpusCallable; } @Override public UnaryCallable updateCorpusCallable() { return updateCorpusCallable; } @Override public UnaryCallable listCorporaCallable() { return listCorporaCallable; } @Override public UnaryCallable listCorporaPagedCallable() { return listCorporaPagedCallable; } @Override public UnaryCallable deleteCorpusCallable() { return deleteCorpusCallable; } @Override public UnaryCallable analyzeCorpusCallable() { return analyzeCorpusCallable; } @Override public OperationCallable analyzeCorpusOperationCallable() { return analyzeCorpusOperationCallable; } @Override public UnaryCallable createDataSchemaCallable() { return createDataSchemaCallable; } @Override public UnaryCallable updateDataSchemaCallable() { return updateDataSchemaCallable; } @Override public UnaryCallable getDataSchemaCallable() { return getDataSchemaCallable; } @Override public UnaryCallable deleteDataSchemaCallable() { return deleteDataSchemaCallable; } @Override public UnaryCallable listDataSchemasCallable() { return listDataSchemasCallable; } @Override public UnaryCallable listDataSchemasPagedCallable() { return listDataSchemasPagedCallable; } @Override public UnaryCallable createAnnotationCallable() { return createAnnotationCallable; } @Override public UnaryCallable getAnnotationCallable() { return getAnnotationCallable; } @Override public UnaryCallable listAnnotationsCallable() { return listAnnotationsCallable; } @Override public UnaryCallable listAnnotationsPagedCallable() { return listAnnotationsPagedCallable; } @Override public UnaryCallable updateAnnotationCallable() { return updateAnnotationCallable; } @Override public UnaryCallable deleteAnnotationCallable() { return deleteAnnotationCallable; } @Override public BidiStreamingCallable ingestAssetCallable() { return ingestAssetCallable; } @Override public UnaryCallable clipAssetCallable() { return clipAssetCallable; } @Override public UnaryCallable generateHlsUriCallable() { return generateHlsUriCallable; } @Override public UnaryCallable importAssetsCallable() { return importAssetsCallable; } @Override public OperationCallable importAssetsOperationCallable() { return importAssetsOperationCallable; } @Override public UnaryCallable createSearchConfigCallable() { return createSearchConfigCallable; } @Override public UnaryCallable updateSearchConfigCallable() { return updateSearchConfigCallable; } @Override public UnaryCallable getSearchConfigCallable() { return getSearchConfigCallable; } @Override public UnaryCallable deleteSearchConfigCallable() { return deleteSearchConfigCallable; } @Override public UnaryCallable listSearchConfigsCallable() { return listSearchConfigsCallable; } @Override public UnaryCallable listSearchConfigsPagedCallable() { return listSearchConfigsPagedCallable; } @Override public UnaryCallable createSearchHypernymCallable() { return createSearchHypernymCallable; } @Override public UnaryCallable updateSearchHypernymCallable() { return updateSearchHypernymCallable; } @Override public UnaryCallable getSearchHypernymCallable() { return getSearchHypernymCallable; } @Override public UnaryCallable deleteSearchHypernymCallable() { return deleteSearchHypernymCallable; } @Override public UnaryCallable listSearchHypernymsCallable() { return listSearchHypernymsCallable; } @Override public UnaryCallable listSearchHypernymsPagedCallable() { return listSearchHypernymsPagedCallable; } @Override public UnaryCallable searchAssetsCallable() { return searchAssetsCallable; } @Override public UnaryCallable searchAssetsPagedCallable() { return searchAssetsPagedCallable; } @Override public UnaryCallable searchIndexEndpointCallable() { return searchIndexEndpointCallable; } @Override public UnaryCallable searchIndexEndpointPagedCallable() { return searchIndexEndpointPagedCallable; } @Override public UnaryCallable createIndexEndpointCallable() { return createIndexEndpointCallable; } @Override public OperationCallable createIndexEndpointOperationCallable() { return createIndexEndpointOperationCallable; } @Override public UnaryCallable getIndexEndpointCallable() { return getIndexEndpointCallable; } @Override public UnaryCallable listIndexEndpointsCallable() { return listIndexEndpointsCallable; } @Override public UnaryCallable listIndexEndpointsPagedCallable() { return listIndexEndpointsPagedCallable; } @Override public UnaryCallable updateIndexEndpointCallable() { return updateIndexEndpointCallable; } @Override public OperationCallable updateIndexEndpointOperationCallable() { return updateIndexEndpointOperationCallable; } @Override public UnaryCallable deleteIndexEndpointCallable() { return deleteIndexEndpointCallable; } @Override public OperationCallable deleteIndexEndpointOperationCallable() { return deleteIndexEndpointOperationCallable; } @Override public UnaryCallable deployIndexCallable() { return deployIndexCallable; } @Override public OperationCallable deployIndexOperationCallable() { return deployIndexOperationCallable; } @Override public UnaryCallable undeployIndexCallable() { return undeployIndexCallable; } @Override public OperationCallable undeployIndexOperationCallable() { return undeployIndexOperationCallable; } @Override public UnaryCallable createCollectionCallable() { return createCollectionCallable; } @Override public OperationCallable createCollectionOperationCallable() { return createCollectionOperationCallable; } @Override public UnaryCallable deleteCollectionCallable() { return deleteCollectionCallable; } @Override public OperationCallable deleteCollectionOperationCallable() { return deleteCollectionOperationCallable; } @Override public UnaryCallable getCollectionCallable() { return getCollectionCallable; } @Override public UnaryCallable updateCollectionCallable() { return updateCollectionCallable; } @Override public UnaryCallable listCollectionsCallable() { return listCollectionsCallable; } @Override public UnaryCallable listCollectionsPagedCallable() { return listCollectionsPagedCallable; } @Override public UnaryCallable addCollectionItemCallable() { return addCollectionItemCallable; } @Override public UnaryCallable removeCollectionItemCallable() { return removeCollectionItemCallable; } @Override public UnaryCallable viewCollectionItemsCallable() { return viewCollectionItemsCallable; } @Override public UnaryCallable viewCollectionItemsPagedCallable() { return viewCollectionItemsPagedCallable; } @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