@java.lang.Override
    @java.lang.SuppressWarnings("unchecked")
    public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) {
      switch (methodId) {
        case METHODID_CREATE_ASSET:
          serviceImpl.createAsset(
              (com.google.cloud.visionai.v1.CreateAssetRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.visionai.v1.Asset>) responseObserver);
          break;
        case METHODID_UPDATE_ASSET:
          serviceImpl.updateAsset(
              (com.google.cloud.visionai.v1.UpdateAssetRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.visionai.v1.Asset>) responseObserver);
          break;
        case METHODID_GET_ASSET:
          serviceImpl.getAsset(
              (com.google.cloud.visionai.v1.GetAssetRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.visionai.v1.Asset>) responseObserver);
          break;
        case METHODID_LIST_ASSETS:
          serviceImpl.listAssets(
              (com.google.cloud.visionai.v1.ListAssetsRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.visionai.v1.ListAssetsResponse>)
                  responseObserver);
          break;
        case METHODID_DELETE_ASSET:
          serviceImpl.deleteAsset(
              (com.google.cloud.visionai.v1.DeleteAssetRequest) request,
              (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
          break;
        case METHODID_UPLOAD_ASSET:
          serviceImpl.uploadAsset(
              (com.google.cloud.visionai.v1.UploadAssetRequest) request,
              (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
          break;
        case METHODID_GENERATE_RETRIEVAL_URL:
          serviceImpl.generateRetrievalUrl(
              (com.google.cloud.visionai.v1.GenerateRetrievalUrlRequest) request,
              (io.grpc.stub.StreamObserver<
                      com.google.cloud.visionai.v1.GenerateRetrievalUrlResponse>)
                  responseObserver);
          break;
        case METHODID_ANALYZE_ASSET:
          serviceImpl.analyzeAsset(
              (com.google.cloud.visionai.v1.AnalyzeAssetRequest) request,
              (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
          break;
        case METHODID_INDEX_ASSET:
          serviceImpl.indexAsset(
              (com.google.cloud.visionai.v1.IndexAssetRequest) request,
              (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
          break;
        case METHODID_REMOVE_INDEX_ASSET:
          serviceImpl.removeIndexAsset(
              (com.google.cloud.visionai.v1.RemoveIndexAssetRequest) request,
              (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
          break;
        case METHODID_VIEW_INDEXED_ASSETS:
          serviceImpl.viewIndexedAssets(
              (com.google.cloud.visionai.v1.ViewIndexedAssetsRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.visionai.v1.ViewIndexedAssetsResponse>)
                  responseObserver);
          break;
        case METHODID_CREATE_INDEX:
          serviceImpl.createIndex(
              (com.google.cloud.visionai.v1.CreateIndexRequest) request,
              (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
          break;
        case METHODID_UPDATE_INDEX:
          serviceImpl.updateIndex(
              (com.google.cloud.visionai.v1.UpdateIndexRequest) request,
              (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
          break;
        case METHODID_GET_INDEX:
          serviceImpl.getIndex(
              (com.google.cloud.visionai.v1.GetIndexRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.visionai.v1.Index>) responseObserver);
          break;
        case METHODID_LIST_INDEXES:
          serviceImpl.listIndexes(
              (com.google.cloud.visionai.v1.ListIndexesRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.visionai.v1.ListIndexesResponse>)
                  responseObserver);
          break;
        case METHODID_DELETE_INDEX:
          serviceImpl.deleteIndex(
              (com.google.cloud.visionai.v1.DeleteIndexRequest) request,
              (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
          break;
        case METHODID_CREATE_CORPUS:
          serviceImpl.createCorpus(
              (com.google.cloud.visionai.v1.CreateCorpusRequest) request,
              (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
          break;
        case METHODID_GET_CORPUS:
          serviceImpl.getCorpus(
              (com.google.cloud.visionai.v1.GetCorpusRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.visionai.v1.Corpus>) responseObserver);
          break;
        case METHODID_UPDATE_CORPUS:
          serviceImpl.updateCorpus(
              (com.google.cloud.visionai.v1.UpdateCorpusRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.visionai.v1.Corpus>) responseObserver);
          break;
        case METHODID_LIST_CORPORA:
          serviceImpl.listCorpora(
              (com.google.cloud.visionai.v1.ListCorporaRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.visionai.v1.ListCorporaResponse>)
                  responseObserver);
          break;
        case METHODID_DELETE_CORPUS:
          serviceImpl.deleteCorpus(
              (com.google.cloud.visionai.v1.DeleteCorpusRequest) request,
              (io.grpc.stub.StreamObserver<com.google.protobuf.Empty>) responseObserver);
          break;
        case METHODID_ANALYZE_CORPUS:
          serviceImpl.analyzeCorpus(
              (com.google.cloud.visionai.v1.AnalyzeCorpusRequest) request,
              (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
          break;
        case METHODID_CREATE_DATA_SCHEMA:
          serviceImpl.createDataSchema(
              (com.google.cloud.visionai.v1.CreateDataSchemaRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.visionai.v1.DataSchema>)
                  responseObserver);
          break;
        case METHODID_UPDATE_DATA_SCHEMA:
          serviceImpl.updateDataSchema(
              (com.google.cloud.visionai.v1.UpdateDataSchemaRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.visionai.v1.DataSchema>)
                  responseObserver);
          break;
        case METHODID_GET_DATA_SCHEMA:
          serviceImpl.getDataSchema(
              (com.google.cloud.visionai.v1.GetDataSchemaRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.visionai.v1.DataSchema>)
                  responseObserver);
          break;
        case METHODID_DELETE_DATA_SCHEMA:
          serviceImpl.deleteDataSchema(
              (com.google.cloud.visionai.v1.DeleteDataSchemaRequest) request,
              (io.grpc.stub.StreamObserver<com.google.protobuf.Empty>) responseObserver);
          break;
        case METHODID_LIST_DATA_SCHEMAS:
          serviceImpl.listDataSchemas(
              (com.google.cloud.visionai.v1.ListDataSchemasRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.visionai.v1.ListDataSchemasResponse>)
                  responseObserver);
          break;
        case METHODID_CREATE_ANNOTATION:
          serviceImpl.createAnnotation(
              (com.google.cloud.visionai.v1.CreateAnnotationRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.visionai.v1.Annotation>)
                  responseObserver);
          break;
        case METHODID_GET_ANNOTATION:
          serviceImpl.getAnnotation(
              (com.google.cloud.visionai.v1.GetAnnotationRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.visionai.v1.Annotation>)
                  responseObserver);
          break;
        case METHODID_LIST_ANNOTATIONS:
          serviceImpl.listAnnotations(
              (com.google.cloud.visionai.v1.ListAnnotationsRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.visionai.v1.ListAnnotationsResponse>)
                  responseObserver);
          break;
        case METHODID_UPDATE_ANNOTATION:
          serviceImpl.updateAnnotation(
              (com.google.cloud.visionai.v1.UpdateAnnotationRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.visionai.v1.Annotation>)
                  responseObserver);
          break;
        case METHODID_DELETE_ANNOTATION:
          serviceImpl.deleteAnnotation(
              (com.google.cloud.visionai.v1.DeleteAnnotationRequest) request,
              (io.grpc.stub.StreamObserver<com.google.protobuf.Empty>) responseObserver);
          break;
        case METHODID_CLIP_ASSET:
          serviceImpl.clipAsset(
              (com.google.cloud.visionai.v1.ClipAssetRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.visionai.v1.ClipAssetResponse>)
                  responseObserver);
          break;
        case METHODID_GENERATE_HLS_URI:
          serviceImpl.generateHlsUri(
              (com.google.cloud.visionai.v1.GenerateHlsUriRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.visionai.v1.GenerateHlsUriResponse>)
                  responseObserver);
          break;
        case METHODID_IMPORT_ASSETS:
          serviceImpl.importAssets(
              (com.google.cloud.visionai.v1.ImportAssetsRequest) request,
              (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
          break;
        case METHODID_CREATE_SEARCH_CONFIG:
          serviceImpl.createSearchConfig(
              (com.google.cloud.visionai.v1.CreateSearchConfigRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.visionai.v1.SearchConfig>)
                  responseObserver);
          break;
        case METHODID_UPDATE_SEARCH_CONFIG:
          serviceImpl.updateSearchConfig(
              (com.google.cloud.visionai.v1.UpdateSearchConfigRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.visionai.v1.SearchConfig>)
                  responseObserver);
          break;
        case METHODID_GET_SEARCH_CONFIG:
          serviceImpl.getSearchConfig(
              (com.google.cloud.visionai.v1.GetSearchConfigRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.visionai.v1.SearchConfig>)
                  responseObserver);
          break;
        case METHODID_DELETE_SEARCH_CONFIG:
          serviceImpl.deleteSearchConfig(
              (com.google.cloud.visionai.v1.DeleteSearchConfigRequest) request,
              (io.grpc.stub.StreamObserver<com.google.protobuf.Empty>) responseObserver);
          break;
        case METHODID_LIST_SEARCH_CONFIGS:
          serviceImpl.listSearchConfigs(
              (com.google.cloud.visionai.v1.ListSearchConfigsRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.visionai.v1.ListSearchConfigsResponse>)
                  responseObserver);
          break;
        case METHODID_CREATE_SEARCH_HYPERNYM:
          serviceImpl.createSearchHypernym(
              (com.google.cloud.visionai.v1.CreateSearchHypernymRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.visionai.v1.SearchHypernym>)
                  responseObserver);
          break;
        case METHODID_UPDATE_SEARCH_HYPERNYM:
          serviceImpl.updateSearchHypernym(
              (com.google.cloud.visionai.v1.UpdateSearchHypernymRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.visionai.v1.SearchHypernym>)
                  responseObserver);
          break;
        case METHODID_GET_SEARCH_HYPERNYM:
          serviceImpl.getSearchHypernym(
              (com.google.cloud.visionai.v1.GetSearchHypernymRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.visionai.v1.SearchHypernym>)
                  responseObserver);
          break;
        case METHODID_DELETE_SEARCH_HYPERNYM:
          serviceImpl.deleteSearchHypernym(
              (com.google.cloud.visionai.v1.DeleteSearchHypernymRequest) request,
              (io.grpc.stub.StreamObserver<com.google.protobuf.Empty>) responseObserver);
          break;
        case METHODID_LIST_SEARCH_HYPERNYMS:
          serviceImpl.listSearchHypernyms(
              (com.google.cloud.visionai.v1.ListSearchHypernymsRequest) request,
              (io.grpc.stub.StreamObserver<
                      com.google.cloud.visionai.v1.ListSearchHypernymsResponse>)
                  responseObserver);
          break;
        case METHODID_SEARCH_ASSETS:
          serviceImpl.searchAssets(
              (com.google.cloud.visionai.v1.SearchAssetsRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.visionai.v1.SearchAssetsResponse>)
                  responseObserver);
          break;
        case METHODID_SEARCH_INDEX_ENDPOINT:
          serviceImpl.searchIndexEndpoint(
              (com.google.cloud.visionai.v1.SearchIndexEndpointRequest) request,
              (io.grpc.stub.StreamObserver<
                      com.google.cloud.visionai.v1.SearchIndexEndpointResponse>)
                  responseObserver);
          break;
        case METHODID_CREATE_INDEX_ENDPOINT:
          serviceImpl.createIndexEndpoint(
              (com.google.cloud.visionai.v1.CreateIndexEndpointRequest) request,
              (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
          break;
        case METHODID_GET_INDEX_ENDPOINT:
          serviceImpl.getIndexEndpoint(
              (com.google.cloud.visionai.v1.GetIndexEndpointRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.visionai.v1.IndexEndpoint>)
                  responseObserver);
          break;
        case METHODID_LIST_INDEX_ENDPOINTS:
          serviceImpl.listIndexEndpoints(
              (com.google.cloud.visionai.v1.ListIndexEndpointsRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.visionai.v1.ListIndexEndpointsResponse>)
                  responseObserver);
          break;
        case METHODID_UPDATE_INDEX_ENDPOINT:
          serviceImpl.updateIndexEndpoint(
              (com.google.cloud.visionai.v1.UpdateIndexEndpointRequest) request,
              (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
          break;
        case METHODID_DELETE_INDEX_ENDPOINT:
          serviceImpl.deleteIndexEndpoint(
              (com.google.cloud.visionai.v1.DeleteIndexEndpointRequest) request,
              (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
          break;
        case METHODID_DEPLOY_INDEX:
          serviceImpl.deployIndex(
              (com.google.cloud.visionai.v1.DeployIndexRequest) request,
              (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
          break;
        case METHODID_UNDEPLOY_INDEX:
          serviceImpl.undeployIndex(
              (com.google.cloud.visionai.v1.UndeployIndexRequest) request,
              (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
          break;
        case METHODID_CREATE_COLLECTION:
          serviceImpl.createCollection(
              (com.google.cloud.visionai.v1.CreateCollectionRequest) request,
              (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
          break;
        case METHODID_DELETE_COLLECTION:
          serviceImpl.deleteCollection(
              (com.google.cloud.visionai.v1.DeleteCollectionRequest) request,
              (io.grpc.stub.StreamObserver<com.google.longrunning.Operation>) responseObserver);
          break;
        case METHODID_GET_COLLECTION:
          serviceImpl.getCollection(
              (com.google.cloud.visionai.v1.GetCollectionRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.visionai.v1.Collection>)
                  responseObserver);
          break;
        case METHODID_UPDATE_COLLECTION:
          serviceImpl.updateCollection(
              (com.google.cloud.visionai.v1.UpdateCollectionRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.visionai.v1.Collection>)
                  responseObserver);
          break;
        case METHODID_LIST_COLLECTIONS:
          serviceImpl.listCollections(
              (com.google.cloud.visionai.v1.ListCollectionsRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.visionai.v1.ListCollectionsResponse>)
                  responseObserver);
          break;
        case METHODID_ADD_COLLECTION_ITEM:
          serviceImpl.addCollectionItem(
              (com.google.cloud.visionai.v1.AddCollectionItemRequest) request,
              (io.grpc.stub.StreamObserver<com.google.cloud.visionai.v1.AddCollectionItemResponse>)
                  responseObserver);
          break;
        case METHODID_REMOVE_COLLECTION_ITEM:
          serviceImpl.removeCollectionItem(
              (com.google.cloud.visionai.v1.RemoveCollectionItemRequest) request,
              (io.grpc.stub.StreamObserver<
                      com.google.cloud.visionai.v1.RemoveCollectionItemResponse>)
                  responseObserver);
          break;
        case METHODID_VIEW_COLLECTION_ITEMS:
          serviceImpl.viewCollectionItems(
              (com.google.cloud.visionai.v1.ViewCollectionItemsRequest) request,
              (io.grpc.stub.StreamObserver<
                      com.google.cloud.visionai.v1.ViewCollectionItemsResponse>)
                  responseObserver);
          break;
        default:
          throw new AssertionError();
      }
    }
<pre>
View items inside a collection.
</pre>
java-visionai/grpc-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/WarehouseGrpc.java