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

com.google.cloud.aiplatform.v1.IndexServiceGrpc Maven / Gradle / Ivy

There is a newer version: 3.50.0
Show newest version
/*
 * 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.aiplatform.v1;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 *
 *
 * 
 * A service for creating and managing Vertex AI's Index resources.
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/cloud/aiplatform/v1/index_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class IndexServiceGrpc { private IndexServiceGrpc() {} public static final java.lang.String SERVICE_NAME = "google.cloud.aiplatform.v1.IndexService"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor< com.google.cloud.aiplatform.v1.CreateIndexRequest, com.google.longrunning.Operation> getCreateIndexMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CreateIndex", requestType = com.google.cloud.aiplatform.v1.CreateIndexRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.aiplatform.v1.CreateIndexRequest, com.google.longrunning.Operation> getCreateIndexMethod() { io.grpc.MethodDescriptor< com.google.cloud.aiplatform.v1.CreateIndexRequest, com.google.longrunning.Operation> getCreateIndexMethod; if ((getCreateIndexMethod = IndexServiceGrpc.getCreateIndexMethod) == null) { synchronized (IndexServiceGrpc.class) { if ((getCreateIndexMethod = IndexServiceGrpc.getCreateIndexMethod) == null) { IndexServiceGrpc.getCreateIndexMethod = getCreateIndexMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateIndex")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.aiplatform.v1.CreateIndexRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor(new IndexServiceMethodDescriptorSupplier("CreateIndex")) .build(); } } } return getCreateIndexMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.aiplatform.v1.GetIndexRequest, com.google.cloud.aiplatform.v1.Index> getGetIndexMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetIndex", requestType = com.google.cloud.aiplatform.v1.GetIndexRequest.class, responseType = com.google.cloud.aiplatform.v1.Index.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.aiplatform.v1.GetIndexRequest, com.google.cloud.aiplatform.v1.Index> getGetIndexMethod() { io.grpc.MethodDescriptor< com.google.cloud.aiplatform.v1.GetIndexRequest, com.google.cloud.aiplatform.v1.Index> getGetIndexMethod; if ((getGetIndexMethod = IndexServiceGrpc.getGetIndexMethod) == null) { synchronized (IndexServiceGrpc.class) { if ((getGetIndexMethod = IndexServiceGrpc.getGetIndexMethod) == null) { IndexServiceGrpc.getGetIndexMethod = getGetIndexMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIndex")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.aiplatform.v1.GetIndexRequest.getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.aiplatform.v1.Index.getDefaultInstance())) .setSchemaDescriptor(new IndexServiceMethodDescriptorSupplier("GetIndex")) .build(); } } } return getGetIndexMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.aiplatform.v1.ListIndexesRequest, com.google.cloud.aiplatform.v1.ListIndexesResponse> getListIndexesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListIndexes", requestType = com.google.cloud.aiplatform.v1.ListIndexesRequest.class, responseType = com.google.cloud.aiplatform.v1.ListIndexesResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.aiplatform.v1.ListIndexesRequest, com.google.cloud.aiplatform.v1.ListIndexesResponse> getListIndexesMethod() { io.grpc.MethodDescriptor< com.google.cloud.aiplatform.v1.ListIndexesRequest, com.google.cloud.aiplatform.v1.ListIndexesResponse> getListIndexesMethod; if ((getListIndexesMethod = IndexServiceGrpc.getListIndexesMethod) == null) { synchronized (IndexServiceGrpc.class) { if ((getListIndexesMethod = IndexServiceGrpc.getListIndexesMethod) == null) { IndexServiceGrpc.getListIndexesMethod = getListIndexesMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListIndexes")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.aiplatform.v1.ListIndexesRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.aiplatform.v1.ListIndexesResponse .getDefaultInstance())) .setSchemaDescriptor(new IndexServiceMethodDescriptorSupplier("ListIndexes")) .build(); } } } return getListIndexesMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.aiplatform.v1.UpdateIndexRequest, com.google.longrunning.Operation> getUpdateIndexMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "UpdateIndex", requestType = com.google.cloud.aiplatform.v1.UpdateIndexRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.aiplatform.v1.UpdateIndexRequest, com.google.longrunning.Operation> getUpdateIndexMethod() { io.grpc.MethodDescriptor< com.google.cloud.aiplatform.v1.UpdateIndexRequest, com.google.longrunning.Operation> getUpdateIndexMethod; if ((getUpdateIndexMethod = IndexServiceGrpc.getUpdateIndexMethod) == null) { synchronized (IndexServiceGrpc.class) { if ((getUpdateIndexMethod = IndexServiceGrpc.getUpdateIndexMethod) == null) { IndexServiceGrpc.getUpdateIndexMethod = getUpdateIndexMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateIndex")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.aiplatform.v1.UpdateIndexRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor(new IndexServiceMethodDescriptorSupplier("UpdateIndex")) .build(); } } } return getUpdateIndexMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.aiplatform.v1.DeleteIndexRequest, com.google.longrunning.Operation> getDeleteIndexMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "DeleteIndex", requestType = com.google.cloud.aiplatform.v1.DeleteIndexRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.aiplatform.v1.DeleteIndexRequest, com.google.longrunning.Operation> getDeleteIndexMethod() { io.grpc.MethodDescriptor< com.google.cloud.aiplatform.v1.DeleteIndexRequest, com.google.longrunning.Operation> getDeleteIndexMethod; if ((getDeleteIndexMethod = IndexServiceGrpc.getDeleteIndexMethod) == null) { synchronized (IndexServiceGrpc.class) { if ((getDeleteIndexMethod = IndexServiceGrpc.getDeleteIndexMethod) == null) { IndexServiceGrpc.getDeleteIndexMethod = getDeleteIndexMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteIndex")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.aiplatform.v1.DeleteIndexRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor(new IndexServiceMethodDescriptorSupplier("DeleteIndex")) .build(); } } } return getDeleteIndexMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.aiplatform.v1.UpsertDatapointsRequest, com.google.cloud.aiplatform.v1.UpsertDatapointsResponse> getUpsertDatapointsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "UpsertDatapoints", requestType = com.google.cloud.aiplatform.v1.UpsertDatapointsRequest.class, responseType = com.google.cloud.aiplatform.v1.UpsertDatapointsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.aiplatform.v1.UpsertDatapointsRequest, com.google.cloud.aiplatform.v1.UpsertDatapointsResponse> getUpsertDatapointsMethod() { io.grpc.MethodDescriptor< com.google.cloud.aiplatform.v1.UpsertDatapointsRequest, com.google.cloud.aiplatform.v1.UpsertDatapointsResponse> getUpsertDatapointsMethod; if ((getUpsertDatapointsMethod = IndexServiceGrpc.getUpsertDatapointsMethod) == null) { synchronized (IndexServiceGrpc.class) { if ((getUpsertDatapointsMethod = IndexServiceGrpc.getUpsertDatapointsMethod) == null) { IndexServiceGrpc.getUpsertDatapointsMethod = getUpsertDatapointsMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpsertDatapoints")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.aiplatform.v1.UpsertDatapointsRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.aiplatform.v1.UpsertDatapointsResponse .getDefaultInstance())) .setSchemaDescriptor( new IndexServiceMethodDescriptorSupplier("UpsertDatapoints")) .build(); } } } return getUpsertDatapointsMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.aiplatform.v1.RemoveDatapointsRequest, com.google.cloud.aiplatform.v1.RemoveDatapointsResponse> getRemoveDatapointsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "RemoveDatapoints", requestType = com.google.cloud.aiplatform.v1.RemoveDatapointsRequest.class, responseType = com.google.cloud.aiplatform.v1.RemoveDatapointsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.aiplatform.v1.RemoveDatapointsRequest, com.google.cloud.aiplatform.v1.RemoveDatapointsResponse> getRemoveDatapointsMethod() { io.grpc.MethodDescriptor< com.google.cloud.aiplatform.v1.RemoveDatapointsRequest, com.google.cloud.aiplatform.v1.RemoveDatapointsResponse> getRemoveDatapointsMethod; if ((getRemoveDatapointsMethod = IndexServiceGrpc.getRemoveDatapointsMethod) == null) { synchronized (IndexServiceGrpc.class) { if ((getRemoveDatapointsMethod = IndexServiceGrpc.getRemoveDatapointsMethod) == null) { IndexServiceGrpc.getRemoveDatapointsMethod = getRemoveDatapointsMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RemoveDatapoints")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.aiplatform.v1.RemoveDatapointsRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.aiplatform.v1.RemoveDatapointsResponse .getDefaultInstance())) .setSchemaDescriptor( new IndexServiceMethodDescriptorSupplier("RemoveDatapoints")) .build(); } } } return getRemoveDatapointsMethod; } /** Creates a new async stub that supports all call types for the service */ public static IndexServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public IndexServiceStub newStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new IndexServiceStub(channel, callOptions); } }; return IndexServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static IndexServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public IndexServiceBlockingStub newStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new IndexServiceBlockingStub(channel, callOptions); } }; return IndexServiceBlockingStub.newStub(factory, channel); } /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static IndexServiceFutureStub newFutureStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public IndexServiceFutureStub newStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new IndexServiceFutureStub(channel, callOptions); } }; return IndexServiceFutureStub.newStub(factory, channel); } /** * * *
   * A service for creating and managing Vertex AI's Index resources.
   * 
*/ public interface AsyncService { /** * * *
     * Creates an Index.
     * 
*/ default void createIndex( com.google.cloud.aiplatform.v1.CreateIndexRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getCreateIndexMethod(), responseObserver); } /** * * *
     * Gets an Index.
     * 
*/ default void getIndex( com.google.cloud.aiplatform.v1.GetIndexRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetIndexMethod(), responseObserver); } /** * * *
     * Lists Indexes in a Location.
     * 
*/ default void listIndexes( com.google.cloud.aiplatform.v1.ListIndexesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getListIndexesMethod(), responseObserver); } /** * * *
     * Updates an Index.
     * 
*/ default void updateIndex( com.google.cloud.aiplatform.v1.UpdateIndexRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getUpdateIndexMethod(), responseObserver); } /** * * *
     * Deletes an Index.
     * An Index can only be deleted when all its
     * [DeployedIndexes][google.cloud.aiplatform.v1.Index.deployed_indexes] had
     * been undeployed.
     * 
*/ default void deleteIndex( com.google.cloud.aiplatform.v1.DeleteIndexRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getDeleteIndexMethod(), responseObserver); } /** * * *
     * Add/update Datapoints into an Index.
     * 
*/ default void upsertDatapoints( com.google.cloud.aiplatform.v1.UpsertDatapointsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getUpsertDatapointsMethod(), responseObserver); } /** * * *
     * Remove Datapoints from an Index.
     * 
*/ default void removeDatapoints( com.google.cloud.aiplatform.v1.RemoveDatapointsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getRemoveDatapointsMethod(), responseObserver); } } /** * Base class for the server implementation of the service IndexService. * *
   * A service for creating and managing Vertex AI's Index resources.
   * 
*/ public abstract static class IndexServiceImplBase implements io.grpc.BindableService, AsyncService { @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return IndexServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service IndexService. * *
   * A service for creating and managing Vertex AI's Index resources.
   * 
*/ public static final class IndexServiceStub extends io.grpc.stub.AbstractAsyncStub { private IndexServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected IndexServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new IndexServiceStub(channel, callOptions); } /** * * *
     * Creates an Index.
     * 
*/ public void createIndex( com.google.cloud.aiplatform.v1.CreateIndexRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateIndexMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Gets an Index.
     * 
*/ public void getIndex( com.google.cloud.aiplatform.v1.GetIndexRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetIndexMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Lists Indexes in a Location.
     * 
*/ public void listIndexes( com.google.cloud.aiplatform.v1.ListIndexesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListIndexesMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Updates an Index.
     * 
*/ public void updateIndex( com.google.cloud.aiplatform.v1.UpdateIndexRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateIndexMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Deletes an Index.
     * An Index can only be deleted when all its
     * [DeployedIndexes][google.cloud.aiplatform.v1.Index.deployed_indexes] had
     * been undeployed.
     * 
*/ public void deleteIndex( com.google.cloud.aiplatform.v1.DeleteIndexRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteIndexMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Add/update Datapoints into an Index.
     * 
*/ public void upsertDatapoints( com.google.cloud.aiplatform.v1.UpsertDatapointsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpsertDatapointsMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Remove Datapoints from an Index.
     * 
*/ public void removeDatapoints( com.google.cloud.aiplatform.v1.RemoveDatapointsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getRemoveDatapointsMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service IndexService. * *
   * A service for creating and managing Vertex AI's Index resources.
   * 
*/ public static final class IndexServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private IndexServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected IndexServiceBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new IndexServiceBlockingStub(channel, callOptions); } /** * * *
     * Creates an Index.
     * 
*/ public com.google.longrunning.Operation createIndex( com.google.cloud.aiplatform.v1.CreateIndexRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateIndexMethod(), getCallOptions(), request); } /** * * *
     * Gets an Index.
     * 
*/ public com.google.cloud.aiplatform.v1.Index getIndex( com.google.cloud.aiplatform.v1.GetIndexRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetIndexMethod(), getCallOptions(), request); } /** * * *
     * Lists Indexes in a Location.
     * 
*/ public com.google.cloud.aiplatform.v1.ListIndexesResponse listIndexes( com.google.cloud.aiplatform.v1.ListIndexesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListIndexesMethod(), getCallOptions(), request); } /** * * *
     * Updates an Index.
     * 
*/ public com.google.longrunning.Operation updateIndex( com.google.cloud.aiplatform.v1.UpdateIndexRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateIndexMethod(), getCallOptions(), request); } /** * * *
     * Deletes an Index.
     * An Index can only be deleted when all its
     * [DeployedIndexes][google.cloud.aiplatform.v1.Index.deployed_indexes] had
     * been undeployed.
     * 
*/ public com.google.longrunning.Operation deleteIndex( com.google.cloud.aiplatform.v1.DeleteIndexRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteIndexMethod(), getCallOptions(), request); } /** * * *
     * Add/update Datapoints into an Index.
     * 
*/ public com.google.cloud.aiplatform.v1.UpsertDatapointsResponse upsertDatapoints( com.google.cloud.aiplatform.v1.UpsertDatapointsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpsertDatapointsMethod(), getCallOptions(), request); } /** * * *
     * Remove Datapoints from an Index.
     * 
*/ public com.google.cloud.aiplatform.v1.RemoveDatapointsResponse removeDatapoints( com.google.cloud.aiplatform.v1.RemoveDatapointsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getRemoveDatapointsMethod(), getCallOptions(), request); } } /** * A stub to allow clients to do ListenableFuture-style rpc calls to service IndexService. * *
   * A service for creating and managing Vertex AI's Index resources.
   * 
*/ public static final class IndexServiceFutureStub extends io.grpc.stub.AbstractFutureStub { private IndexServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected IndexServiceFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new IndexServiceFutureStub(channel, callOptions); } /** * * *
     * Creates an Index.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture createIndex(com.google.cloud.aiplatform.v1.CreateIndexRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateIndexMethod(), getCallOptions()), request); } /** * * *
     * Gets an Index.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getIndex(com.google.cloud.aiplatform.v1.GetIndexRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetIndexMethod(), getCallOptions()), request); } /** * * *
     * Lists Indexes in a Location.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.aiplatform.v1.ListIndexesResponse> listIndexes(com.google.cloud.aiplatform.v1.ListIndexesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListIndexesMethod(), getCallOptions()), request); } /** * * *
     * Updates an Index.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture updateIndex(com.google.cloud.aiplatform.v1.UpdateIndexRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateIndexMethod(), getCallOptions()), request); } /** * * *
     * Deletes an Index.
     * An Index can only be deleted when all its
     * [DeployedIndexes][google.cloud.aiplatform.v1.Index.deployed_indexes] had
     * been undeployed.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture deleteIndex(com.google.cloud.aiplatform.v1.DeleteIndexRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteIndexMethod(), getCallOptions()), request); } /** * * *
     * Add/update Datapoints into an Index.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.aiplatform.v1.UpsertDatapointsResponse> upsertDatapoints(com.google.cloud.aiplatform.v1.UpsertDatapointsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpsertDatapointsMethod(), getCallOptions()), request); } /** * * *
     * Remove Datapoints from an Index.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.aiplatform.v1.RemoveDatapointsResponse> removeDatapoints(com.google.cloud.aiplatform.v1.RemoveDatapointsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getRemoveDatapointsMethod(), getCallOptions()), request); } } private static final int METHODID_CREATE_INDEX = 0; private static final int METHODID_GET_INDEX = 1; private static final int METHODID_LIST_INDEXES = 2; private static final int METHODID_UPDATE_INDEX = 3; private static final int METHODID_DELETE_INDEX = 4; private static final int METHODID_UPSERT_DATAPOINTS = 5; private static final int METHODID_REMOVE_DATAPOINTS = 6; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, io.grpc.stub.ServerCalls.ServerStreamingMethod, io.grpc.stub.ServerCalls.ClientStreamingMethod, io.grpc.stub.ServerCalls.BidiStreamingMethod { private final AsyncService serviceImpl; private final int methodId; MethodHandlers(AsyncService serviceImpl, int methodId) { this.serviceImpl = serviceImpl; this.methodId = methodId; } @java.lang.Override @java.lang.SuppressWarnings("unchecked") public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_CREATE_INDEX: serviceImpl.createIndex( (com.google.cloud.aiplatform.v1.CreateIndexRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_INDEX: serviceImpl.getIndex( (com.google.cloud.aiplatform.v1.GetIndexRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_INDEXES: serviceImpl.listIndexes( (com.google.cloud.aiplatform.v1.ListIndexesRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_INDEX: serviceImpl.updateIndex( (com.google.cloud.aiplatform.v1.UpdateIndexRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_INDEX: serviceImpl.deleteIndex( (com.google.cloud.aiplatform.v1.DeleteIndexRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPSERT_DATAPOINTS: serviceImpl.upsertDatapoints( (com.google.cloud.aiplatform.v1.UpsertDatapointsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_REMOVE_DATAPOINTS: serviceImpl.removeDatapoints( (com.google.cloud.aiplatform.v1.RemoveDatapointsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: throw new AssertionError(); } } @java.lang.Override @java.lang.SuppressWarnings("unchecked") public io.grpc.stub.StreamObserver invoke( io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { default: throw new AssertionError(); } } } public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getCreateIndexMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.CreateIndexRequest, com.google.longrunning.Operation>(service, METHODID_CREATE_INDEX))) .addMethod( getGetIndexMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.GetIndexRequest, com.google.cloud.aiplatform.v1.Index>(service, METHODID_GET_INDEX))) .addMethod( getListIndexesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.ListIndexesRequest, com.google.cloud.aiplatform.v1.ListIndexesResponse>( service, METHODID_LIST_INDEXES))) .addMethod( getUpdateIndexMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.UpdateIndexRequest, com.google.longrunning.Operation>(service, METHODID_UPDATE_INDEX))) .addMethod( getDeleteIndexMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.DeleteIndexRequest, com.google.longrunning.Operation>(service, METHODID_DELETE_INDEX))) .addMethod( getUpsertDatapointsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.UpsertDatapointsRequest, com.google.cloud.aiplatform.v1.UpsertDatapointsResponse>( service, METHODID_UPSERT_DATAPOINTS))) .addMethod( getRemoveDatapointsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.RemoveDatapointsRequest, com.google.cloud.aiplatform.v1.RemoveDatapointsResponse>( service, METHODID_REMOVE_DATAPOINTS))) .build(); } private abstract static class IndexServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { IndexServiceBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return com.google.cloud.aiplatform.v1.IndexServiceProto.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("IndexService"); } } private static final class IndexServiceFileDescriptorSupplier extends IndexServiceBaseDescriptorSupplier { IndexServiceFileDescriptorSupplier() {} } private static final class IndexServiceMethodDescriptorSupplier extends IndexServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final java.lang.String methodName; IndexServiceMethodDescriptorSupplier(java.lang.String methodName) { this.methodName = methodName; } @java.lang.Override public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { return getServiceDescriptor().findMethodByName(methodName); } } private static volatile io.grpc.ServiceDescriptor serviceDescriptor; public static io.grpc.ServiceDescriptor getServiceDescriptor() { io.grpc.ServiceDescriptor result = serviceDescriptor; if (result == null) { synchronized (IndexServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new IndexServiceFileDescriptorSupplier()) .addMethod(getCreateIndexMethod()) .addMethod(getGetIndexMethod()) .addMethod(getListIndexesMethod()) .addMethod(getUpdateIndexMethod()) .addMethod(getDeleteIndexMethod()) .addMethod(getUpsertDatapointsMethod()) .addMethod(getRemoveDatapointsMethod()) .build(); } } } return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy