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

io.pinecone.proto.VectorServiceGrpc Maven / Gradle / Ivy

There is a newer version: 3.0.0
Show newest version
package io.pinecone.proto;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 * 
 * The `VectorService` interface is exposed by Pinecone's vector index services.
 * This service could also be called a `gRPC` service or a `REST`-like api.
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler (version 1.62.2)", comments = "Source: vector_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class VectorServiceGrpc { private VectorServiceGrpc() {} public static final java.lang.String SERVICE_NAME = "VectorService"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor getUpsertMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "Upsert", requestType = io.pinecone.proto.UpsertRequest.class, responseType = io.pinecone.proto.UpsertResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getUpsertMethod() { io.grpc.MethodDescriptor getUpsertMethod; if ((getUpsertMethod = VectorServiceGrpc.getUpsertMethod) == null) { synchronized (VectorServiceGrpc.class) { if ((getUpsertMethod = VectorServiceGrpc.getUpsertMethod) == null) { VectorServiceGrpc.getUpsertMethod = getUpsertMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Upsert")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( io.pinecone.proto.UpsertRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( io.pinecone.proto.UpsertResponse.getDefaultInstance())) .setSchemaDescriptor(new VectorServiceMethodDescriptorSupplier("Upsert")) .build(); } } } return getUpsertMethod; } private static volatile io.grpc.MethodDescriptor getDeleteMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "Delete", requestType = io.pinecone.proto.DeleteRequest.class, responseType = io.pinecone.proto.DeleteResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getDeleteMethod() { io.grpc.MethodDescriptor getDeleteMethod; if ((getDeleteMethod = VectorServiceGrpc.getDeleteMethod) == null) { synchronized (VectorServiceGrpc.class) { if ((getDeleteMethod = VectorServiceGrpc.getDeleteMethod) == null) { VectorServiceGrpc.getDeleteMethod = getDeleteMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Delete")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( io.pinecone.proto.DeleteRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( io.pinecone.proto.DeleteResponse.getDefaultInstance())) .setSchemaDescriptor(new VectorServiceMethodDescriptorSupplier("Delete")) .build(); } } } return getDeleteMethod; } private static volatile io.grpc.MethodDescriptor getFetchMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "Fetch", requestType = io.pinecone.proto.FetchRequest.class, responseType = io.pinecone.proto.FetchResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getFetchMethod() { io.grpc.MethodDescriptor getFetchMethod; if ((getFetchMethod = VectorServiceGrpc.getFetchMethod) == null) { synchronized (VectorServiceGrpc.class) { if ((getFetchMethod = VectorServiceGrpc.getFetchMethod) == null) { VectorServiceGrpc.getFetchMethod = getFetchMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Fetch")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( io.pinecone.proto.FetchRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( io.pinecone.proto.FetchResponse.getDefaultInstance())) .setSchemaDescriptor(new VectorServiceMethodDescriptorSupplier("Fetch")) .build(); } } } return getFetchMethod; } private static volatile io.grpc.MethodDescriptor getListMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "List", requestType = io.pinecone.proto.ListRequest.class, responseType = io.pinecone.proto.ListResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getListMethod() { io.grpc.MethodDescriptor getListMethod; if ((getListMethod = VectorServiceGrpc.getListMethod) == null) { synchronized (VectorServiceGrpc.class) { if ((getListMethod = VectorServiceGrpc.getListMethod) == null) { VectorServiceGrpc.getListMethod = getListMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "List")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( io.pinecone.proto.ListRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( io.pinecone.proto.ListResponse.getDefaultInstance())) .setSchemaDescriptor(new VectorServiceMethodDescriptorSupplier("List")) .build(); } } } return getListMethod; } private static volatile io.grpc.MethodDescriptor getQueryMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "Query", requestType = io.pinecone.proto.QueryRequest.class, responseType = io.pinecone.proto.QueryResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getQueryMethod() { io.grpc.MethodDescriptor getQueryMethod; if ((getQueryMethod = VectorServiceGrpc.getQueryMethod) == null) { synchronized (VectorServiceGrpc.class) { if ((getQueryMethod = VectorServiceGrpc.getQueryMethod) == null) { VectorServiceGrpc.getQueryMethod = getQueryMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Query")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( io.pinecone.proto.QueryRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( io.pinecone.proto.QueryResponse.getDefaultInstance())) .setSchemaDescriptor(new VectorServiceMethodDescriptorSupplier("Query")) .build(); } } } return getQueryMethod; } private static volatile io.grpc.MethodDescriptor getUpdateMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "Update", requestType = io.pinecone.proto.UpdateRequest.class, responseType = io.pinecone.proto.UpdateResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getUpdateMethod() { io.grpc.MethodDescriptor getUpdateMethod; if ((getUpdateMethod = VectorServiceGrpc.getUpdateMethod) == null) { synchronized (VectorServiceGrpc.class) { if ((getUpdateMethod = VectorServiceGrpc.getUpdateMethod) == null) { VectorServiceGrpc.getUpdateMethod = getUpdateMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Update")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( io.pinecone.proto.UpdateRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( io.pinecone.proto.UpdateResponse.getDefaultInstance())) .setSchemaDescriptor(new VectorServiceMethodDescriptorSupplier("Update")) .build(); } } } return getUpdateMethod; } private static volatile io.grpc.MethodDescriptor getDescribeIndexStatsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "DescribeIndexStats", requestType = io.pinecone.proto.DescribeIndexStatsRequest.class, responseType = io.pinecone.proto.DescribeIndexStatsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getDescribeIndexStatsMethod() { io.grpc.MethodDescriptor getDescribeIndexStatsMethod; if ((getDescribeIndexStatsMethod = VectorServiceGrpc.getDescribeIndexStatsMethod) == null) { synchronized (VectorServiceGrpc.class) { if ((getDescribeIndexStatsMethod = VectorServiceGrpc.getDescribeIndexStatsMethod) == null) { VectorServiceGrpc.getDescribeIndexStatsMethod = getDescribeIndexStatsMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DescribeIndexStats")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( io.pinecone.proto.DescribeIndexStatsRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( io.pinecone.proto.DescribeIndexStatsResponse.getDefaultInstance())) .setSchemaDescriptor(new VectorServiceMethodDescriptorSupplier("DescribeIndexStats")) .build(); } } } return getDescribeIndexStatsMethod; } /** * Creates a new async stub that supports all call types for the service */ public static VectorServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public VectorServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new VectorServiceStub(channel, callOptions); } }; return VectorServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static VectorServiceBlockingStub newBlockingStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public VectorServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new VectorServiceBlockingStub(channel, callOptions); } }; return VectorServiceBlockingStub.newStub(factory, channel); } /** * Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static VectorServiceFutureStub newFutureStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public VectorServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new VectorServiceFutureStub(channel, callOptions); } }; return VectorServiceFutureStub.newStub(factory, channel); } /** *
   * The `VectorService` interface is exposed by Pinecone's vector index services.
   * This service could also be called a `gRPC` service or a `REST`-like api.
   * 
*/ public interface AsyncService { /** *
     * Upsert vectors
     * The `upsert` operation writes vectors into a namespace. If a new value is upserted for an existing vector ID, it will overwrite the previous value.
     * For guidance and examples, see [Upsert data](https://docs.pinecone.io/docs/upsert-data).
     * 
*/ default void upsert(io.pinecone.proto.UpsertRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpsertMethod(), responseObserver); } /** *
     * Delete vectors
     * The `delete` operation deletes vectors, by id, from a single namespace.
     * For guidance and examples, see [Delete data](https://docs.pinecone.io/docs/delete-data).
     * 
*/ default void delete(io.pinecone.proto.DeleteRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteMethod(), responseObserver); } /** *
     * Fetch vectors
     * The `fetch` operation looks up and returns vectors, by ID, from a single namespace. The returned vectors include the vector data and/or metadata.
     * For guidance and examples, see [Fetch data](https://docs.pinecone.io/reference/fetch).
     * 
*/ default void fetch(io.pinecone.proto.FetchRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getFetchMethod(), responseObserver); } /** *
     * List vector IDs
     * The `list` operation lists the IDs of vectors in a single namespace of a serverless index. An optional prefix can be passed to limit the results to IDs with a common prefix.
     * `list` returns up to 100 IDs at a time by default in sorted order (bitwise/"C" collation). If the `limit` parameter is set, `list` returns up to that number of IDs instead. Whenever there are additional IDs to return, the response also includes a `pagination_token` that you can use to get the next batch of IDs. When the response does not include a `pagination_token`, there are no more IDs to return.
     * For guidance and examples, see [Get record IDs](https://docs.pinecone.io/docs/get-record-ids).
     * **Note:** `list` is supported only for serverless indexes.
     * 
*/ default void list(io.pinecone.proto.ListRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListMethod(), responseObserver); } /** *
     * Query vectors
     * The `query` operation searches a namespace, using a query vector. It retrieves the ids of the most similar items in a namespace, along with their similarity scores.
     * For guidance and examples, see [Query data](https://docs.pinecone.io/docs/query-data).
     * 
*/ default void query(io.pinecone.proto.QueryRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getQueryMethod(), responseObserver); } /** *
     * Update a vector
     * The `update` operation updates a vector in a namespace. If a value is included, it will overwrite the previous value. If a `set_metadata` is included, the values of the fields specified in it will be added or overwrite the previous value.
     * For guidance and examples, see [Update data](https://docs.pinecone.io/reference/update).
     * 
*/ default void update(io.pinecone.proto.UpdateRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateMethod(), responseObserver); } /** *
     * Get index stats
     * The `describe_index_stats` operation returns statistics about the contents of an index, including the vector count per namespace and the number of dimensions, and the index fullness.
     * Serverless indexes scale automatically as needed, so index fullness is relevant only for pod-based indexes.
     * For pod-based indexes, the index fullness result may be inaccurate during pod resizing; to get the status of a pod resizing process, use [`describe_index`](https://www.pinecone.io/docs/api/operation/describe_index/).
     * 
*/ default void describeIndexStats(io.pinecone.proto.DescribeIndexStatsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDescribeIndexStatsMethod(), responseObserver); } } /** * Base class for the server implementation of the service VectorService. *
   * The `VectorService` interface is exposed by Pinecone's vector index services.
   * This service could also be called a `gRPC` service or a `REST`-like api.
   * 
*/ public static abstract class VectorServiceImplBase implements io.grpc.BindableService, AsyncService { @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return VectorServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service VectorService. *
   * The `VectorService` interface is exposed by Pinecone's vector index services.
   * This service could also be called a `gRPC` service or a `REST`-like api.
   * 
*/ public static final class VectorServiceStub extends io.grpc.stub.AbstractAsyncStub { private VectorServiceStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected VectorServiceStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new VectorServiceStub(channel, callOptions); } /** *
     * Upsert vectors
     * The `upsert` operation writes vectors into a namespace. If a new value is upserted for an existing vector ID, it will overwrite the previous value.
     * For guidance and examples, see [Upsert data](https://docs.pinecone.io/docs/upsert-data).
     * 
*/ public void upsert(io.pinecone.proto.UpsertRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpsertMethod(), getCallOptions()), request, responseObserver); } /** *
     * Delete vectors
     * The `delete` operation deletes vectors, by id, from a single namespace.
     * For guidance and examples, see [Delete data](https://docs.pinecone.io/docs/delete-data).
     * 
*/ public void delete(io.pinecone.proto.DeleteRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteMethod(), getCallOptions()), request, responseObserver); } /** *
     * Fetch vectors
     * The `fetch` operation looks up and returns vectors, by ID, from a single namespace. The returned vectors include the vector data and/or metadata.
     * For guidance and examples, see [Fetch data](https://docs.pinecone.io/reference/fetch).
     * 
*/ public void fetch(io.pinecone.proto.FetchRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getFetchMethod(), getCallOptions()), request, responseObserver); } /** *
     * List vector IDs
     * The `list` operation lists the IDs of vectors in a single namespace of a serverless index. An optional prefix can be passed to limit the results to IDs with a common prefix.
     * `list` returns up to 100 IDs at a time by default in sorted order (bitwise/"C" collation). If the `limit` parameter is set, `list` returns up to that number of IDs instead. Whenever there are additional IDs to return, the response also includes a `pagination_token` that you can use to get the next batch of IDs. When the response does not include a `pagination_token`, there are no more IDs to return.
     * For guidance and examples, see [Get record IDs](https://docs.pinecone.io/docs/get-record-ids).
     * **Note:** `list` is supported only for serverless indexes.
     * 
*/ public void list(io.pinecone.proto.ListRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListMethod(), getCallOptions()), request, responseObserver); } /** *
     * Query vectors
     * The `query` operation searches a namespace, using a query vector. It retrieves the ids of the most similar items in a namespace, along with their similarity scores.
     * For guidance and examples, see [Query data](https://docs.pinecone.io/docs/query-data).
     * 
*/ public void query(io.pinecone.proto.QueryRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getQueryMethod(), getCallOptions()), request, responseObserver); } /** *
     * Update a vector
     * The `update` operation updates a vector in a namespace. If a value is included, it will overwrite the previous value. If a `set_metadata` is included, the values of the fields specified in it will be added or overwrite the previous value.
     * For guidance and examples, see [Update data](https://docs.pinecone.io/reference/update).
     * 
*/ public void update(io.pinecone.proto.UpdateRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateMethod(), getCallOptions()), request, responseObserver); } /** *
     * Get index stats
     * The `describe_index_stats` operation returns statistics about the contents of an index, including the vector count per namespace and the number of dimensions, and the index fullness.
     * Serverless indexes scale automatically as needed, so index fullness is relevant only for pod-based indexes.
     * For pod-based indexes, the index fullness result may be inaccurate during pod resizing; to get the status of a pod resizing process, use [`describe_index`](https://www.pinecone.io/docs/api/operation/describe_index/).
     * 
*/ public void describeIndexStats(io.pinecone.proto.DescribeIndexStatsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDescribeIndexStatsMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service VectorService. *
   * The `VectorService` interface is exposed by Pinecone's vector index services.
   * This service could also be called a `gRPC` service or a `REST`-like api.
   * 
*/ public static final class VectorServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private VectorServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected VectorServiceBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new VectorServiceBlockingStub(channel, callOptions); } /** *
     * Upsert vectors
     * The `upsert` operation writes vectors into a namespace. If a new value is upserted for an existing vector ID, it will overwrite the previous value.
     * For guidance and examples, see [Upsert data](https://docs.pinecone.io/docs/upsert-data).
     * 
*/ public io.pinecone.proto.UpsertResponse upsert(io.pinecone.proto.UpsertRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpsertMethod(), getCallOptions(), request); } /** *
     * Delete vectors
     * The `delete` operation deletes vectors, by id, from a single namespace.
     * For guidance and examples, see [Delete data](https://docs.pinecone.io/docs/delete-data).
     * 
*/ public io.pinecone.proto.DeleteResponse delete(io.pinecone.proto.DeleteRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteMethod(), getCallOptions(), request); } /** *
     * Fetch vectors
     * The `fetch` operation looks up and returns vectors, by ID, from a single namespace. The returned vectors include the vector data and/or metadata.
     * For guidance and examples, see [Fetch data](https://docs.pinecone.io/reference/fetch).
     * 
*/ public io.pinecone.proto.FetchResponse fetch(io.pinecone.proto.FetchRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getFetchMethod(), getCallOptions(), request); } /** *
     * List vector IDs
     * The `list` operation lists the IDs of vectors in a single namespace of a serverless index. An optional prefix can be passed to limit the results to IDs with a common prefix.
     * `list` returns up to 100 IDs at a time by default in sorted order (bitwise/"C" collation). If the `limit` parameter is set, `list` returns up to that number of IDs instead. Whenever there are additional IDs to return, the response also includes a `pagination_token` that you can use to get the next batch of IDs. When the response does not include a `pagination_token`, there are no more IDs to return.
     * For guidance and examples, see [Get record IDs](https://docs.pinecone.io/docs/get-record-ids).
     * **Note:** `list` is supported only for serverless indexes.
     * 
*/ public io.pinecone.proto.ListResponse list(io.pinecone.proto.ListRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListMethod(), getCallOptions(), request); } /** *
     * Query vectors
     * The `query` operation searches a namespace, using a query vector. It retrieves the ids of the most similar items in a namespace, along with their similarity scores.
     * For guidance and examples, see [Query data](https://docs.pinecone.io/docs/query-data).
     * 
*/ public io.pinecone.proto.QueryResponse query(io.pinecone.proto.QueryRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getQueryMethod(), getCallOptions(), request); } /** *
     * Update a vector
     * The `update` operation updates a vector in a namespace. If a value is included, it will overwrite the previous value. If a `set_metadata` is included, the values of the fields specified in it will be added or overwrite the previous value.
     * For guidance and examples, see [Update data](https://docs.pinecone.io/reference/update).
     * 
*/ public io.pinecone.proto.UpdateResponse update(io.pinecone.proto.UpdateRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateMethod(), getCallOptions(), request); } /** *
     * Get index stats
     * The `describe_index_stats` operation returns statistics about the contents of an index, including the vector count per namespace and the number of dimensions, and the index fullness.
     * Serverless indexes scale automatically as needed, so index fullness is relevant only for pod-based indexes.
     * For pod-based indexes, the index fullness result may be inaccurate during pod resizing; to get the status of a pod resizing process, use [`describe_index`](https://www.pinecone.io/docs/api/operation/describe_index/).
     * 
*/ public io.pinecone.proto.DescribeIndexStatsResponse describeIndexStats(io.pinecone.proto.DescribeIndexStatsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDescribeIndexStatsMethod(), getCallOptions(), request); } } /** * A stub to allow clients to do ListenableFuture-style rpc calls to service VectorService. *
   * The `VectorService` interface is exposed by Pinecone's vector index services.
   * This service could also be called a `gRPC` service or a `REST`-like api.
   * 
*/ public static final class VectorServiceFutureStub extends io.grpc.stub.AbstractFutureStub { private VectorServiceFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected VectorServiceFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new VectorServiceFutureStub(channel, callOptions); } /** *
     * Upsert vectors
     * The `upsert` operation writes vectors into a namespace. If a new value is upserted for an existing vector ID, it will overwrite the previous value.
     * For guidance and examples, see [Upsert data](https://docs.pinecone.io/docs/upsert-data).
     * 
*/ public com.google.common.util.concurrent.ListenableFuture upsert( io.pinecone.proto.UpsertRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpsertMethod(), getCallOptions()), request); } /** *
     * Delete vectors
     * The `delete` operation deletes vectors, by id, from a single namespace.
     * For guidance and examples, see [Delete data](https://docs.pinecone.io/docs/delete-data).
     * 
*/ public com.google.common.util.concurrent.ListenableFuture delete( io.pinecone.proto.DeleteRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteMethod(), getCallOptions()), request); } /** *
     * Fetch vectors
     * The `fetch` operation looks up and returns vectors, by ID, from a single namespace. The returned vectors include the vector data and/or metadata.
     * For guidance and examples, see [Fetch data](https://docs.pinecone.io/reference/fetch).
     * 
*/ public com.google.common.util.concurrent.ListenableFuture fetch( io.pinecone.proto.FetchRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getFetchMethod(), getCallOptions()), request); } /** *
     * List vector IDs
     * The `list` operation lists the IDs of vectors in a single namespace of a serverless index. An optional prefix can be passed to limit the results to IDs with a common prefix.
     * `list` returns up to 100 IDs at a time by default in sorted order (bitwise/"C" collation). If the `limit` parameter is set, `list` returns up to that number of IDs instead. Whenever there are additional IDs to return, the response also includes a `pagination_token` that you can use to get the next batch of IDs. When the response does not include a `pagination_token`, there are no more IDs to return.
     * For guidance and examples, see [Get record IDs](https://docs.pinecone.io/docs/get-record-ids).
     * **Note:** `list` is supported only for serverless indexes.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture list( io.pinecone.proto.ListRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListMethod(), getCallOptions()), request); } /** *
     * Query vectors
     * The `query` operation searches a namespace, using a query vector. It retrieves the ids of the most similar items in a namespace, along with their similarity scores.
     * For guidance and examples, see [Query data](https://docs.pinecone.io/docs/query-data).
     * 
*/ public com.google.common.util.concurrent.ListenableFuture query( io.pinecone.proto.QueryRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getQueryMethod(), getCallOptions()), request); } /** *
     * Update a vector
     * The `update` operation updates a vector in a namespace. If a value is included, it will overwrite the previous value. If a `set_metadata` is included, the values of the fields specified in it will be added or overwrite the previous value.
     * For guidance and examples, see [Update data](https://docs.pinecone.io/reference/update).
     * 
*/ public com.google.common.util.concurrent.ListenableFuture update( io.pinecone.proto.UpdateRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateMethod(), getCallOptions()), request); } /** *
     * Get index stats
     * The `describe_index_stats` operation returns statistics about the contents of an index, including the vector count per namespace and the number of dimensions, and the index fullness.
     * Serverless indexes scale automatically as needed, so index fullness is relevant only for pod-based indexes.
     * For pod-based indexes, the index fullness result may be inaccurate during pod resizing; to get the status of a pod resizing process, use [`describe_index`](https://www.pinecone.io/docs/api/operation/describe_index/).
     * 
*/ public com.google.common.util.concurrent.ListenableFuture describeIndexStats( io.pinecone.proto.DescribeIndexStatsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDescribeIndexStatsMethod(), getCallOptions()), request); } } private static final int METHODID_UPSERT = 0; private static final int METHODID_DELETE = 1; private static final int METHODID_FETCH = 2; private static final int METHODID_LIST = 3; private static final int METHODID_QUERY = 4; private static final int METHODID_UPDATE = 5; private static final int METHODID_DESCRIBE_INDEX_STATS = 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_UPSERT: serviceImpl.upsert((io.pinecone.proto.UpsertRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE: serviceImpl.delete((io.pinecone.proto.DeleteRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_FETCH: serviceImpl.fetch((io.pinecone.proto.FetchRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST: serviceImpl.list((io.pinecone.proto.ListRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_QUERY: serviceImpl.query((io.pinecone.proto.QueryRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE: serviceImpl.update((io.pinecone.proto.UpdateRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DESCRIBE_INDEX_STATS: serviceImpl.describeIndexStats((io.pinecone.proto.DescribeIndexStatsRequest) 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( getUpsertMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< io.pinecone.proto.UpsertRequest, io.pinecone.proto.UpsertResponse>( service, METHODID_UPSERT))) .addMethod( getDeleteMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< io.pinecone.proto.DeleteRequest, io.pinecone.proto.DeleteResponse>( service, METHODID_DELETE))) .addMethod( getFetchMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< io.pinecone.proto.FetchRequest, io.pinecone.proto.FetchResponse>( service, METHODID_FETCH))) .addMethod( getListMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< io.pinecone.proto.ListRequest, io.pinecone.proto.ListResponse>( service, METHODID_LIST))) .addMethod( getQueryMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< io.pinecone.proto.QueryRequest, io.pinecone.proto.QueryResponse>( service, METHODID_QUERY))) .addMethod( getUpdateMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< io.pinecone.proto.UpdateRequest, io.pinecone.proto.UpdateResponse>( service, METHODID_UPDATE))) .addMethod( getDescribeIndexStatsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< io.pinecone.proto.DescribeIndexStatsRequest, io.pinecone.proto.DescribeIndexStatsResponse>( service, METHODID_DESCRIBE_INDEX_STATS))) .build(); } private static abstract class VectorServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { VectorServiceBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return io.pinecone.proto.VectorServiceOuterClass.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("VectorService"); } } private static final class VectorServiceFileDescriptorSupplier extends VectorServiceBaseDescriptorSupplier { VectorServiceFileDescriptorSupplier() {} } private static final class VectorServiceMethodDescriptorSupplier extends VectorServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final java.lang.String methodName; VectorServiceMethodDescriptorSupplier(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 (VectorServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new VectorServiceFileDescriptorSupplier()) .addMethod(getUpsertMethod()) .addMethod(getDeleteMethod()) .addMethod(getFetchMethod()) .addMethod(getListMethod()) .addMethod(getQueryMethod()) .addMethod(getUpdateMethod()) .addMethod(getDescribeIndexStatsMethod()) .build(); } } } return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy