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.