From 7b97a77a2f054205bcc127186b48c77da4105995 Mon Sep 17 00:00:00 2001 From: rohanshah18 Date: Wed, 12 Nov 2025 12:56:51 -0500 Subject: [PATCH 1/2] update oas based code --- codegen/apis | 2 +- .../db_control/client/ApiException.java | 2 +- .../db_control/client/Configuration.java | 2 +- .../openapitools/db_control/client/Pair.java | 2 +- .../db_control/client/StringUtil.java | 2 +- .../db_control/client/auth/ApiKeyAuth.java | 2 +- .../client/auth/HttpBearerAuth.java | 2 +- .../client/model/AbstractOpenApiSchema.java | 2 +- .../db_control/client/model/BackupList.java | 2 +- .../db_control/client/model/BackupModel.java | 2 +- .../client/model/BackupModelSchema.java | 2 +- .../model/BackupModelSchemaFieldsValue.java | 2 +- .../db_control/client/model/ByocSpec.java | 2 +- .../client/model/CollectionList.java | 2 +- .../client/model/CollectionModel.java | 2 +- .../client/model/ConfigureIndexRequest.java | 2 +- .../model/ConfigureIndexRequestEmbed.java | 2 +- .../model/ConfigureIndexRequestPodBased.java | 2 +- .../ConfigureIndexRequestPodBasedConfig.java | 2 +- .../ConfigureIndexRequestServerless.java | 2 +- ...ConfigureIndexRequestServerlessConfig.java | 2 +- .../model/ConfigureIndexRequestSpec.java | 2 +- .../client/model/CreateBackupRequest.java | 2 +- .../client/model/CreateCollectionRequest.java | 2 +- .../model/CreateIndexForModelRequest.java | 2 +- .../CreateIndexForModelRequestEmbed.java | 2 +- .../model/CreateIndexFromBackupRequest.java | 2 +- .../model/CreateIndexFromBackupResponse.java | 2 +- .../client/model/CreateIndexRequest.java | 2 +- .../client/model/ErrorResponse.java | 2 +- .../client/model/ErrorResponseError.java | 2 +- .../db_control/client/model/IndexList.java | 2 +- .../db_control/client/model/IndexModel.java | 2 +- .../client/model/IndexModelBYOC.java | 2 +- .../client/model/IndexModelPodBased.java | 2 +- .../client/model/IndexModelServerless.java | 2 +- .../client/model/IndexModelSpec.java | 2 +- .../client/model/IndexModelStatus.java | 2 +- .../db_control/client/model/IndexSpec.java | 2 +- .../client/model/IndexSpecBYOC.java | 2 +- .../client/model/IndexSpecPodBased.java | 2 +- .../client/model/IndexSpecServerless.java | 2 +- .../client/model/ModelIndexEmbed.java | 2 +- .../client/model/PaginationResponse.java | 2 +- .../db_control/client/model/PodSpec.java | 2 +- .../client/model/PodSpecMetadataConfig.java | 2 +- .../db_control/client/model/ReadCapacity.java | 2 +- .../model/ReadCapacityDedicatedConfig.java | 2 +- .../model/ReadCapacityDedicatedSpec.java | 2 +- .../ReadCapacityDedicatedSpecResponse.java | 2 +- .../model/ReadCapacityOnDemandSpec.java | 2 +- .../ReadCapacityOnDemandSpecResponse.java | 2 +- .../client/model/ReadCapacityResponse.java | 2 +- .../client/model/ReadCapacityStatus.java | 2 +- .../client/model/RestoreJobList.java | 2 +- .../client/model/RestoreJobModel.java | 2 +- .../client/model/ScalingConfigManual.java | 2 +- .../client/model/ServerlessSpec.java | 2 +- .../client/model/ServerlessSpecResponse.java | 2 +- .../db_data/client/ApiException.java | 2 +- .../db_data/client/Configuration.java | 2 +- .../org/openapitools/db_data/client/JSON.java | 1 + .../org/openapitools/db_data/client/Pair.java | 2 +- .../db_data/client/StringUtil.java | 2 +- .../db_data/client/auth/ApiKeyAuth.java | 2 +- .../db_data/client/auth/HttpBearerAuth.java | 2 +- .../client/model/AbstractOpenApiSchema.java | 2 +- .../client/model/CreateNamespaceRequest.java | 2 +- .../model/CreateNamespaceRequestSchema.java | 2 +- ...eateNamespaceRequestSchemaFieldsValue.java | 2 +- .../db_data/client/model/DeleteRequest.java | 2 +- .../model/DescribeIndexStatsRequest.java | 2 +- .../client/model/FetchByMetadataRequest.java | 2 +- .../client/model/FetchByMetadataResponse.java | 2 +- .../db_data/client/model/FetchResponse.java | 2 +- .../db_data/client/model/Hit.java | 2 +- .../db_data/client/model/ImportErrorMode.java | 2 +- .../db_data/client/model/ImportModel.java | 2 +- .../client/model/IndexDescription.java | 2 +- .../client/model/ListImportsResponse.java | 2 +- .../db_data/client/model/ListItem.java | 2 +- .../client/model/ListNamespacesResponse.java | 34 +- .../db_data/client/model/ListResponse.java | 2 +- .../client/model/NamespaceDescription.java | 37 ++- .../NamespaceDescriptionIndexedFields.java | 295 ++++++++++++++++++ .../client/model/NamespaceSummary.java | 2 +- .../db_data/client/model/Pagination.java | 2 +- .../db_data/client/model/ProtobufAny.java | 2 +- .../db_data/client/model/QueryRequest.java | 2 +- .../db_data/client/model/QueryResponse.java | 2 +- .../db_data/client/model/QueryVector.java | 2 +- .../db_data/client/model/RpcStatus.java | 2 +- .../db_data/client/model/ScoredVector.java | 2 +- .../client/model/SearchMatchTerms.java | 2 +- .../client/model/SearchRecordsRequest.java | 2 +- .../model/SearchRecordsRequestQuery.java | 2 +- .../model/SearchRecordsRequestRerank.java | 2 +- .../client/model/SearchRecordsResponse.java | 2 +- .../model/SearchRecordsResponseResult.java | 2 +- .../client/model/SearchRecordsVector.java | 2 +- .../db_data/client/model/SearchUsage.java | 2 +- .../client/model/SingleQueryResults.java | 2 +- .../db_data/client/model/SparseValues.java | 2 +- .../client/model/StartImportRequest.java | 2 +- .../client/model/StartImportResponse.java | 2 +- .../db_data/client/model/UpdateRequest.java | 2 +- .../db_data/client/model/UpdateResponse.java | 2 +- .../db_data/client/model/UpsertRecord.java | 2 +- .../db_data/client/model/UpsertRequest.java | 2 +- .../db_data/client/model/UpsertResponse.java | 2 +- .../db_data/client/model/Usage.java | 2 +- .../db_data/client/model/Vector.java | 2 +- .../inference/client/ApiException.java | 2 +- .../inference/client/Configuration.java | 2 +- .../openapitools/inference/client/Pair.java | 2 +- .../inference/client/StringUtil.java | 2 +- .../inference/client/auth/ApiKeyAuth.java | 2 +- .../inference/client/auth/HttpBearerAuth.java | 2 +- .../client/model/AbstractOpenApiSchema.java | 2 +- .../client/model/DenseEmbedding.java | 2 +- .../inference/client/model/EmbedRequest.java | 2 +- .../client/model/EmbedRequestInputsInner.java | 2 +- .../inference/client/model/Embedding.java | 2 +- .../client/model/EmbeddingsList.java | 2 +- .../client/model/EmbeddingsListUsage.java | 2 +- .../inference/client/model/ErrorResponse.java | 2 +- .../client/model/ErrorResponseError.java | 2 +- .../inference/client/model/ModelInfo.java | 2 +- .../inference/client/model/ModelInfoList.java | 2 +- .../model/ModelInfoSupportedParameter.java | 2 +- ...oSupportedParameterAllowedValuesInner.java | 2 +- .../ModelInfoSupportedParameterDefault.java | 2 +- .../client/model/RankedDocument.java | 2 +- .../inference/client/model/RerankRequest.java | 2 +- .../inference/client/model/RerankResult.java | 2 +- .../client/model/RerankResultUsage.java | 2 +- .../client/model/SparseEmbedding.java | 2 +- 137 files changed, 481 insertions(+), 152 deletions(-) create mode 100644 src/main/java/org/openapitools/db_data/client/model/NamespaceDescriptionIndexedFields.java diff --git a/codegen/apis b/codegen/apis index bbad89bd..d5ac9319 160000 --- a/codegen/apis +++ b/codegen/apis @@ -1 +1 @@ -Subproject commit bbad89bd51d792534a9ba06a44ed1f2259f7f89f +Subproject commit d5ac93191def1d9666946d2c0e67edd3140b0f0d diff --git a/src/main/java/org/openapitools/db_control/client/ApiException.java b/src/main/java/org/openapitools/db_control/client/ApiException.java index 61e47593..89d23da3 100644 --- a/src/main/java/org/openapitools/db_control/client/ApiException.java +++ b/src/main/java/org/openapitools/db_control/client/ApiException.java @@ -21,7 +21,7 @@ *

ApiException class.

*/ @SuppressWarnings("serial") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:11.354821Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:29.716713Z[Etc/UTC]") public class ApiException extends Exception { private int code = 0; private Map> responseHeaders = null; diff --git a/src/main/java/org/openapitools/db_control/client/Configuration.java b/src/main/java/org/openapitools/db_control/client/Configuration.java index ffafc277..f4748f10 100644 --- a/src/main/java/org/openapitools/db_control/client/Configuration.java +++ b/src/main/java/org/openapitools/db_control/client/Configuration.java @@ -13,7 +13,7 @@ package org.openapitools.db_control.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:11.354821Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:29.716713Z[Etc/UTC]") public class Configuration { public static final String VERSION = "2025-10"; diff --git a/src/main/java/org/openapitools/db_control/client/Pair.java b/src/main/java/org/openapitools/db_control/client/Pair.java index 8cadd57b..e0d2dee9 100644 --- a/src/main/java/org/openapitools/db_control/client/Pair.java +++ b/src/main/java/org/openapitools/db_control/client/Pair.java @@ -13,7 +13,7 @@ package org.openapitools.db_control.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:11.354821Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:29.716713Z[Etc/UTC]") public class Pair { private String name = ""; private String value = ""; diff --git a/src/main/java/org/openapitools/db_control/client/StringUtil.java b/src/main/java/org/openapitools/db_control/client/StringUtil.java index 82de2e74..49352913 100644 --- a/src/main/java/org/openapitools/db_control/client/StringUtil.java +++ b/src/main/java/org/openapitools/db_control/client/StringUtil.java @@ -16,7 +16,7 @@ import java.util.Collection; import java.util.Iterator; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:11.354821Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:29.716713Z[Etc/UTC]") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/src/main/java/org/openapitools/db_control/client/auth/ApiKeyAuth.java b/src/main/java/org/openapitools/db_control/client/auth/ApiKeyAuth.java index 78a6b8bf..cf3c424f 100644 --- a/src/main/java/org/openapitools/db_control/client/auth/ApiKeyAuth.java +++ b/src/main/java/org/openapitools/db_control/client/auth/ApiKeyAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:11.354821Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:29.716713Z[Etc/UTC]") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/src/main/java/org/openapitools/db_control/client/auth/HttpBearerAuth.java b/src/main/java/org/openapitools/db_control/client/auth/HttpBearerAuth.java index 13aa368b..30ca4551 100644 --- a/src/main/java/org/openapitools/db_control/client/auth/HttpBearerAuth.java +++ b/src/main/java/org/openapitools/db_control/client/auth/HttpBearerAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:11.354821Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:29.716713Z[Etc/UTC]") public class HttpBearerAuth implements Authentication { private final String scheme; private String bearerToken; diff --git a/src/main/java/org/openapitools/db_control/client/model/AbstractOpenApiSchema.java b/src/main/java/org/openapitools/db_control/client/model/AbstractOpenApiSchema.java index 9a5c845a..9003692c 100644 --- a/src/main/java/org/openapitools/db_control/client/model/AbstractOpenApiSchema.java +++ b/src/main/java/org/openapitools/db_control/client/model/AbstractOpenApiSchema.java @@ -23,7 +23,7 @@ /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:11.354821Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:29.716713Z[Etc/UTC]") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object diff --git a/src/main/java/org/openapitools/db_control/client/model/BackupList.java b/src/main/java/org/openapitools/db_control/client/model/BackupList.java index 7fb7e740..69cfd824 100644 --- a/src/main/java/org/openapitools/db_control/client/model/BackupList.java +++ b/src/main/java/org/openapitools/db_control/client/model/BackupList.java @@ -53,7 +53,7 @@ /** * The list of backups that exist in the project. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:11.354821Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:29.716713Z[Etc/UTC]") public class BackupList { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) diff --git a/src/main/java/org/openapitools/db_control/client/model/BackupModel.java b/src/main/java/org/openapitools/db_control/client/model/BackupModel.java index a497587b..c2364cb1 100644 --- a/src/main/java/org/openapitools/db_control/client/model/BackupModel.java +++ b/src/main/java/org/openapitools/db_control/client/model/BackupModel.java @@ -52,7 +52,7 @@ /** * The BackupModel describes the configuration and status of a Pinecone backup. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:11.354821Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:29.716713Z[Etc/UTC]") public class BackupModel { public static final String SERIALIZED_NAME_BACKUP_ID = "backup_id"; @SerializedName(SERIALIZED_NAME_BACKUP_ID) diff --git a/src/main/java/org/openapitools/db_control/client/model/BackupModelSchema.java b/src/main/java/org/openapitools/db_control/client/model/BackupModelSchema.java index 10ae33f3..482adbf3 100644 --- a/src/main/java/org/openapitools/db_control/client/model/BackupModelSchema.java +++ b/src/main/java/org/openapitools/db_control/client/model/BackupModelSchema.java @@ -52,7 +52,7 @@ /** * Schema for the behavior of Pinecone's internal metadata index. By default, all metadata is indexed; when `schema` is present, only fields which are present in the `fields` object with a `filterable: true` are indexed. Note that `filterable: false` is not currently supported. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:11.354821Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:29.716713Z[Etc/UTC]") public class BackupModelSchema { public static final String SERIALIZED_NAME_FIELDS = "fields"; @SerializedName(SERIALIZED_NAME_FIELDS) diff --git a/src/main/java/org/openapitools/db_control/client/model/BackupModelSchemaFieldsValue.java b/src/main/java/org/openapitools/db_control/client/model/BackupModelSchemaFieldsValue.java index 7186115b..1da4732b 100644 --- a/src/main/java/org/openapitools/db_control/client/model/BackupModelSchemaFieldsValue.java +++ b/src/main/java/org/openapitools/db_control/client/model/BackupModelSchemaFieldsValue.java @@ -49,7 +49,7 @@ /** * BackupModelSchemaFieldsValue */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:11.354821Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:29.716713Z[Etc/UTC]") public class BackupModelSchemaFieldsValue { public static final String SERIALIZED_NAME_FILTERABLE = "filterable"; @SerializedName(SERIALIZED_NAME_FILTERABLE) diff --git a/src/main/java/org/openapitools/db_control/client/model/ByocSpec.java b/src/main/java/org/openapitools/db_control/client/model/ByocSpec.java index 1593d862..8c3f1305 100644 --- a/src/main/java/org/openapitools/db_control/client/model/ByocSpec.java +++ b/src/main/java/org/openapitools/db_control/client/model/ByocSpec.java @@ -50,7 +50,7 @@ /** * Configuration needed to deploy an index in a BYOC environment. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:11.354821Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:29.716713Z[Etc/UTC]") public class ByocSpec { public static final String SERIALIZED_NAME_ENVIRONMENT = "environment"; @SerializedName(SERIALIZED_NAME_ENVIRONMENT) diff --git a/src/main/java/org/openapitools/db_control/client/model/CollectionList.java b/src/main/java/org/openapitools/db_control/client/model/CollectionList.java index 7762c6b7..bb5f8d06 100644 --- a/src/main/java/org/openapitools/db_control/client/model/CollectionList.java +++ b/src/main/java/org/openapitools/db_control/client/model/CollectionList.java @@ -52,7 +52,7 @@ /** * The list of collections that exist in the project. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:11.354821Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:29.716713Z[Etc/UTC]") public class CollectionList { public static final String SERIALIZED_NAME_COLLECTIONS = "collections"; @SerializedName(SERIALIZED_NAME_COLLECTIONS) diff --git a/src/main/java/org/openapitools/db_control/client/model/CollectionModel.java b/src/main/java/org/openapitools/db_control/client/model/CollectionModel.java index dcd5616a..3aad537c 100644 --- a/src/main/java/org/openapitools/db_control/client/model/CollectionModel.java +++ b/src/main/java/org/openapitools/db_control/client/model/CollectionModel.java @@ -49,7 +49,7 @@ /** * The CollectionModel describes the configuration and status of a Pinecone collection. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:11.354821Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:29.716713Z[Etc/UTC]") public class CollectionModel { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/org/openapitools/db_control/client/model/ConfigureIndexRequest.java b/src/main/java/org/openapitools/db_control/client/model/ConfigureIndexRequest.java index cdcf86aa..f2bdb366 100644 --- a/src/main/java/org/openapitools/db_control/client/model/ConfigureIndexRequest.java +++ b/src/main/java/org/openapitools/db_control/client/model/ConfigureIndexRequest.java @@ -53,7 +53,7 @@ /** * Configuration used to scale an index. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:11.354821Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:29.716713Z[Etc/UTC]") public class ConfigureIndexRequest { public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) diff --git a/src/main/java/org/openapitools/db_control/client/model/ConfigureIndexRequestEmbed.java b/src/main/java/org/openapitools/db_control/client/model/ConfigureIndexRequestEmbed.java index 19eed9ff..161dfe07 100644 --- a/src/main/java/org/openapitools/db_control/client/model/ConfigureIndexRequestEmbed.java +++ b/src/main/java/org/openapitools/db_control/client/model/ConfigureIndexRequestEmbed.java @@ -49,7 +49,7 @@ /** * Configure the integrated inference embedding settings for this index. You can convert an existing index to an integrated index by specifying the embedding model and field_map. The index vector type and dimension must match the model vector type and dimension, and the index similarity metric must be supported by the model. Refer to the [model guide](https://docs.pinecone.io/guides/index-data/create-an-index#embedding-models) for available models and model details. You can later change the embedding configuration to update the field map, read parameters, or write parameters. Once set, the model cannot be changed. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:11.354821Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:29.716713Z[Etc/UTC]") public class ConfigureIndexRequestEmbed { public static final String SERIALIZED_NAME_MODEL = "model"; @SerializedName(SERIALIZED_NAME_MODEL) diff --git a/src/main/java/org/openapitools/db_control/client/model/ConfigureIndexRequestPodBased.java b/src/main/java/org/openapitools/db_control/client/model/ConfigureIndexRequestPodBased.java index 9c4254ce..5c9cf674 100644 --- a/src/main/java/org/openapitools/db_control/client/model/ConfigureIndexRequestPodBased.java +++ b/src/main/java/org/openapitools/db_control/client/model/ConfigureIndexRequestPodBased.java @@ -50,7 +50,7 @@ /** * ConfigureIndexRequestPodBased */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:11.354821Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:29.716713Z[Etc/UTC]") public class ConfigureIndexRequestPodBased { public static final String SERIALIZED_NAME_POD = "pod"; @SerializedName(SERIALIZED_NAME_POD) diff --git a/src/main/java/org/openapitools/db_control/client/model/ConfigureIndexRequestPodBasedConfig.java b/src/main/java/org/openapitools/db_control/client/model/ConfigureIndexRequestPodBasedConfig.java index 3f70f4e3..d3ee5c65 100644 --- a/src/main/java/org/openapitools/db_control/client/model/ConfigureIndexRequestPodBasedConfig.java +++ b/src/main/java/org/openapitools/db_control/client/model/ConfigureIndexRequestPodBasedConfig.java @@ -49,7 +49,7 @@ /** * Updated configuration for pod-based indexes */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:11.354821Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:29.716713Z[Etc/UTC]") public class ConfigureIndexRequestPodBasedConfig { public static final String SERIALIZED_NAME_REPLICAS = "replicas"; @SerializedName(SERIALIZED_NAME_REPLICAS) diff --git a/src/main/java/org/openapitools/db_control/client/model/ConfigureIndexRequestServerless.java b/src/main/java/org/openapitools/db_control/client/model/ConfigureIndexRequestServerless.java index 2f9d8ea4..f45636dc 100644 --- a/src/main/java/org/openapitools/db_control/client/model/ConfigureIndexRequestServerless.java +++ b/src/main/java/org/openapitools/db_control/client/model/ConfigureIndexRequestServerless.java @@ -50,7 +50,7 @@ /** * ConfigureIndexRequestServerless */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:11.354821Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:29.716713Z[Etc/UTC]") public class ConfigureIndexRequestServerless { public static final String SERIALIZED_NAME_SERVERLESS = "serverless"; @SerializedName(SERIALIZED_NAME_SERVERLESS) diff --git a/src/main/java/org/openapitools/db_control/client/model/ConfigureIndexRequestServerlessConfig.java b/src/main/java/org/openapitools/db_control/client/model/ConfigureIndexRequestServerlessConfig.java index a69864a4..3b6480d7 100644 --- a/src/main/java/org/openapitools/db_control/client/model/ConfigureIndexRequestServerlessConfig.java +++ b/src/main/java/org/openapitools/db_control/client/model/ConfigureIndexRequestServerlessConfig.java @@ -50,7 +50,7 @@ /** * Updated configuration for serverless indexes */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:11.354821Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:29.716713Z[Etc/UTC]") public class ConfigureIndexRequestServerlessConfig { public static final String SERIALIZED_NAME_READ_CAPACITY = "read_capacity"; @SerializedName(SERIALIZED_NAME_READ_CAPACITY) diff --git a/src/main/java/org/openapitools/db_control/client/model/ConfigureIndexRequestSpec.java b/src/main/java/org/openapitools/db_control/client/model/ConfigureIndexRequestSpec.java index 16630ebc..30b7a68d 100644 --- a/src/main/java/org/openapitools/db_control/client/model/ConfigureIndexRequestSpec.java +++ b/src/main/java/org/openapitools/db_control/client/model/ConfigureIndexRequestSpec.java @@ -61,7 +61,7 @@ import org.openapitools.db_control.client.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:11.354821Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:29.716713Z[Etc/UTC]") public class ConfigureIndexRequestSpec extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(ConfigureIndexRequestSpec.class.getName()); diff --git a/src/main/java/org/openapitools/db_control/client/model/CreateBackupRequest.java b/src/main/java/org/openapitools/db_control/client/model/CreateBackupRequest.java index 145211df..dc37ea4a 100644 --- a/src/main/java/org/openapitools/db_control/client/model/CreateBackupRequest.java +++ b/src/main/java/org/openapitools/db_control/client/model/CreateBackupRequest.java @@ -49,7 +49,7 @@ /** * The configuration needed to create a backup of an index. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:11.354821Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:29.716713Z[Etc/UTC]") public class CreateBackupRequest { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/org/openapitools/db_control/client/model/CreateCollectionRequest.java b/src/main/java/org/openapitools/db_control/client/model/CreateCollectionRequest.java index b3e7376b..17efac9b 100644 --- a/src/main/java/org/openapitools/db_control/client/model/CreateCollectionRequest.java +++ b/src/main/java/org/openapitools/db_control/client/model/CreateCollectionRequest.java @@ -49,7 +49,7 @@ /** * The configuration needed to create a Pinecone collection. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:11.354821Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:29.716713Z[Etc/UTC]") public class CreateCollectionRequest { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/org/openapitools/db_control/client/model/CreateIndexForModelRequest.java b/src/main/java/org/openapitools/db_control/client/model/CreateIndexForModelRequest.java index 301da9f7..716feea6 100644 --- a/src/main/java/org/openapitools/db_control/client/model/CreateIndexForModelRequest.java +++ b/src/main/java/org/openapitools/db_control/client/model/CreateIndexForModelRequest.java @@ -54,7 +54,7 @@ /** * The desired configuration for the index and associated embedding model. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:11.354821Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:29.716713Z[Etc/UTC]") public class CreateIndexForModelRequest { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/org/openapitools/db_control/client/model/CreateIndexForModelRequestEmbed.java b/src/main/java/org/openapitools/db_control/client/model/CreateIndexForModelRequestEmbed.java index bb7991a6..61a73a49 100644 --- a/src/main/java/org/openapitools/db_control/client/model/CreateIndexForModelRequestEmbed.java +++ b/src/main/java/org/openapitools/db_control/client/model/CreateIndexForModelRequestEmbed.java @@ -49,7 +49,7 @@ /** * Specify the integrated inference embedding configuration for the index. Once set the model cannot be changed, but you can later update the embedding configuration for an integrated inference index including field map, read parameters, or write parameters. Refer to the [model guide](https://docs.pinecone.io/guides/index-data/create-an-index#embedding-models) for available models and model details. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:11.354821Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:29.716713Z[Etc/UTC]") public class CreateIndexForModelRequestEmbed { public static final String SERIALIZED_NAME_MODEL = "model"; @SerializedName(SERIALIZED_NAME_MODEL) diff --git a/src/main/java/org/openapitools/db_control/client/model/CreateIndexFromBackupRequest.java b/src/main/java/org/openapitools/db_control/client/model/CreateIndexFromBackupRequest.java index 5c608fc6..8adb2fd7 100644 --- a/src/main/java/org/openapitools/db_control/client/model/CreateIndexFromBackupRequest.java +++ b/src/main/java/org/openapitools/db_control/client/model/CreateIndexFromBackupRequest.java @@ -51,7 +51,7 @@ /** * The configuration needed to create a Pinecone index from a backup. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:11.354821Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:29.716713Z[Etc/UTC]") public class CreateIndexFromBackupRequest { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/org/openapitools/db_control/client/model/CreateIndexFromBackupResponse.java b/src/main/java/org/openapitools/db_control/client/model/CreateIndexFromBackupResponse.java index 148d9e89..fdfff174 100644 --- a/src/main/java/org/openapitools/db_control/client/model/CreateIndexFromBackupResponse.java +++ b/src/main/java/org/openapitools/db_control/client/model/CreateIndexFromBackupResponse.java @@ -49,7 +49,7 @@ /** * The response for creating an index from a backup. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:11.354821Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:29.716713Z[Etc/UTC]") public class CreateIndexFromBackupResponse { public static final String SERIALIZED_NAME_RESTORE_JOB_ID = "restore_job_id"; @SerializedName(SERIALIZED_NAME_RESTORE_JOB_ID) diff --git a/src/main/java/org/openapitools/db_control/client/model/CreateIndexRequest.java b/src/main/java/org/openapitools/db_control/client/model/CreateIndexRequest.java index cab8b34d..e5efa798 100644 --- a/src/main/java/org/openapitools/db_control/client/model/CreateIndexRequest.java +++ b/src/main/java/org/openapitools/db_control/client/model/CreateIndexRequest.java @@ -52,7 +52,7 @@ /** * The configuration needed to create a Pinecone index. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:11.354821Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:29.716713Z[Etc/UTC]") public class CreateIndexRequest { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/org/openapitools/db_control/client/model/ErrorResponse.java b/src/main/java/org/openapitools/db_control/client/model/ErrorResponse.java index abab6dca..e465ab39 100644 --- a/src/main/java/org/openapitools/db_control/client/model/ErrorResponse.java +++ b/src/main/java/org/openapitools/db_control/client/model/ErrorResponse.java @@ -50,7 +50,7 @@ /** * The response shape used for all error responses. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:11.354821Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:29.716713Z[Etc/UTC]") public class ErrorResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) diff --git a/src/main/java/org/openapitools/db_control/client/model/ErrorResponseError.java b/src/main/java/org/openapitools/db_control/client/model/ErrorResponseError.java index af871054..a6a61884 100644 --- a/src/main/java/org/openapitools/db_control/client/model/ErrorResponseError.java +++ b/src/main/java/org/openapitools/db_control/client/model/ErrorResponseError.java @@ -49,7 +49,7 @@ /** * Detailed information about the error that occurred. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:11.354821Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:29.716713Z[Etc/UTC]") public class ErrorResponseError { public static final String SERIALIZED_NAME_CODE = "code"; @SerializedName(SERIALIZED_NAME_CODE) diff --git a/src/main/java/org/openapitools/db_control/client/model/IndexList.java b/src/main/java/org/openapitools/db_control/client/model/IndexList.java index 2972bac5..30a78c1e 100644 --- a/src/main/java/org/openapitools/db_control/client/model/IndexList.java +++ b/src/main/java/org/openapitools/db_control/client/model/IndexList.java @@ -52,7 +52,7 @@ /** * The list of indexes that exist in the project. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:11.354821Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:29.716713Z[Etc/UTC]") public class IndexList { public static final String SERIALIZED_NAME_INDEXES = "indexes"; @SerializedName(SERIALIZED_NAME_INDEXES) diff --git a/src/main/java/org/openapitools/db_control/client/model/IndexModel.java b/src/main/java/org/openapitools/db_control/client/model/IndexModel.java index 2b0c9caa..81ff7596 100644 --- a/src/main/java/org/openapitools/db_control/client/model/IndexModel.java +++ b/src/main/java/org/openapitools/db_control/client/model/IndexModel.java @@ -54,7 +54,7 @@ /** * The IndexModel describes the configuration and status of a Pinecone index. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:11.354821Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:29.716713Z[Etc/UTC]") public class IndexModel { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/org/openapitools/db_control/client/model/IndexModelBYOC.java b/src/main/java/org/openapitools/db_control/client/model/IndexModelBYOC.java index 27fa9b55..9e8dec64 100644 --- a/src/main/java/org/openapitools/db_control/client/model/IndexModelBYOC.java +++ b/src/main/java/org/openapitools/db_control/client/model/IndexModelBYOC.java @@ -50,7 +50,7 @@ /** * IndexModelBYOC */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:11.354821Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:29.716713Z[Etc/UTC]") public class IndexModelBYOC { public static final String SERIALIZED_NAME_BYOC = "byoc"; @SerializedName(SERIALIZED_NAME_BYOC) diff --git a/src/main/java/org/openapitools/db_control/client/model/IndexModelPodBased.java b/src/main/java/org/openapitools/db_control/client/model/IndexModelPodBased.java index bcb59058..7f0c8e72 100644 --- a/src/main/java/org/openapitools/db_control/client/model/IndexModelPodBased.java +++ b/src/main/java/org/openapitools/db_control/client/model/IndexModelPodBased.java @@ -50,7 +50,7 @@ /** * IndexModelPodBased */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:11.354821Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:29.716713Z[Etc/UTC]") public class IndexModelPodBased { public static final String SERIALIZED_NAME_POD = "pod"; @SerializedName(SERIALIZED_NAME_POD) diff --git a/src/main/java/org/openapitools/db_control/client/model/IndexModelServerless.java b/src/main/java/org/openapitools/db_control/client/model/IndexModelServerless.java index 84b05f1d..51280924 100644 --- a/src/main/java/org/openapitools/db_control/client/model/IndexModelServerless.java +++ b/src/main/java/org/openapitools/db_control/client/model/IndexModelServerless.java @@ -50,7 +50,7 @@ /** * IndexModelServerless */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:11.354821Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:29.716713Z[Etc/UTC]") public class IndexModelServerless { public static final String SERIALIZED_NAME_SERVERLESS = "serverless"; @SerializedName(SERIALIZED_NAME_SERVERLESS) diff --git a/src/main/java/org/openapitools/db_control/client/model/IndexModelSpec.java b/src/main/java/org/openapitools/db_control/client/model/IndexModelSpec.java index 3f4372c2..a175d141 100644 --- a/src/main/java/org/openapitools/db_control/client/model/IndexModelSpec.java +++ b/src/main/java/org/openapitools/db_control/client/model/IndexModelSpec.java @@ -63,7 +63,7 @@ import org.openapitools.db_control.client.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:11.354821Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:29.716713Z[Etc/UTC]") public class IndexModelSpec extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(IndexModelSpec.class.getName()); diff --git a/src/main/java/org/openapitools/db_control/client/model/IndexModelStatus.java b/src/main/java/org/openapitools/db_control/client/model/IndexModelStatus.java index 78d95b17..512f3746 100644 --- a/src/main/java/org/openapitools/db_control/client/model/IndexModelStatus.java +++ b/src/main/java/org/openapitools/db_control/client/model/IndexModelStatus.java @@ -49,7 +49,7 @@ /** * The current status of the index */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:11.354821Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:29.716713Z[Etc/UTC]") public class IndexModelStatus { public static final String SERIALIZED_NAME_READY = "ready"; @SerializedName(SERIALIZED_NAME_READY) diff --git a/src/main/java/org/openapitools/db_control/client/model/IndexSpec.java b/src/main/java/org/openapitools/db_control/client/model/IndexSpec.java index f748df63..674abe71 100644 --- a/src/main/java/org/openapitools/db_control/client/model/IndexSpec.java +++ b/src/main/java/org/openapitools/db_control/client/model/IndexSpec.java @@ -63,7 +63,7 @@ import org.openapitools.db_control.client.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:11.354821Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:29.716713Z[Etc/UTC]") public class IndexSpec extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(IndexSpec.class.getName()); diff --git a/src/main/java/org/openapitools/db_control/client/model/IndexSpecBYOC.java b/src/main/java/org/openapitools/db_control/client/model/IndexSpecBYOC.java index a0472323..927b85cc 100644 --- a/src/main/java/org/openapitools/db_control/client/model/IndexSpecBYOC.java +++ b/src/main/java/org/openapitools/db_control/client/model/IndexSpecBYOC.java @@ -50,7 +50,7 @@ /** * IndexSpecBYOC */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:11.354821Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:29.716713Z[Etc/UTC]") public class IndexSpecBYOC { public static final String SERIALIZED_NAME_BYOC = "byoc"; @SerializedName(SERIALIZED_NAME_BYOC) diff --git a/src/main/java/org/openapitools/db_control/client/model/IndexSpecPodBased.java b/src/main/java/org/openapitools/db_control/client/model/IndexSpecPodBased.java index aae46a52..15c1943d 100644 --- a/src/main/java/org/openapitools/db_control/client/model/IndexSpecPodBased.java +++ b/src/main/java/org/openapitools/db_control/client/model/IndexSpecPodBased.java @@ -50,7 +50,7 @@ /** * IndexSpecPodBased */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:11.354821Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:29.716713Z[Etc/UTC]") public class IndexSpecPodBased { public static final String SERIALIZED_NAME_POD = "pod"; @SerializedName(SERIALIZED_NAME_POD) diff --git a/src/main/java/org/openapitools/db_control/client/model/IndexSpecServerless.java b/src/main/java/org/openapitools/db_control/client/model/IndexSpecServerless.java index 4f7a9741..ecf275d0 100644 --- a/src/main/java/org/openapitools/db_control/client/model/IndexSpecServerless.java +++ b/src/main/java/org/openapitools/db_control/client/model/IndexSpecServerless.java @@ -50,7 +50,7 @@ /** * IndexSpecServerless */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:11.354821Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:29.716713Z[Etc/UTC]") public class IndexSpecServerless { public static final String SERIALIZED_NAME_SERVERLESS = "serverless"; @SerializedName(SERIALIZED_NAME_SERVERLESS) diff --git a/src/main/java/org/openapitools/db_control/client/model/ModelIndexEmbed.java b/src/main/java/org/openapitools/db_control/client/model/ModelIndexEmbed.java index 26464039..92141063 100644 --- a/src/main/java/org/openapitools/db_control/client/model/ModelIndexEmbed.java +++ b/src/main/java/org/openapitools/db_control/client/model/ModelIndexEmbed.java @@ -49,7 +49,7 @@ /** * The embedding model and document fields mapped to embedding inputs. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:11.354821Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:29.716713Z[Etc/UTC]") public class ModelIndexEmbed { public static final String SERIALIZED_NAME_MODEL = "model"; @SerializedName(SERIALIZED_NAME_MODEL) diff --git a/src/main/java/org/openapitools/db_control/client/model/PaginationResponse.java b/src/main/java/org/openapitools/db_control/client/model/PaginationResponse.java index 31d076d8..5892f2d9 100644 --- a/src/main/java/org/openapitools/db_control/client/model/PaginationResponse.java +++ b/src/main/java/org/openapitools/db_control/client/model/PaginationResponse.java @@ -49,7 +49,7 @@ /** * The pagination object that is returned with paginated responses. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:11.354821Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:29.716713Z[Etc/UTC]") public class PaginationResponse { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) diff --git a/src/main/java/org/openapitools/db_control/client/model/PodSpec.java b/src/main/java/org/openapitools/db_control/client/model/PodSpec.java index 4bd45838..f752c5fb 100644 --- a/src/main/java/org/openapitools/db_control/client/model/PodSpec.java +++ b/src/main/java/org/openapitools/db_control/client/model/PodSpec.java @@ -50,7 +50,7 @@ /** * Configuration needed to deploy a pod-based index. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:11.354821Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:29.716713Z[Etc/UTC]") public class PodSpec { public static final String SERIALIZED_NAME_ENVIRONMENT = "environment"; @SerializedName(SERIALIZED_NAME_ENVIRONMENT) diff --git a/src/main/java/org/openapitools/db_control/client/model/PodSpecMetadataConfig.java b/src/main/java/org/openapitools/db_control/client/model/PodSpecMetadataConfig.java index aa9d0c98..bedb59b9 100644 --- a/src/main/java/org/openapitools/db_control/client/model/PodSpecMetadataConfig.java +++ b/src/main/java/org/openapitools/db_control/client/model/PodSpecMetadataConfig.java @@ -51,7 +51,7 @@ /** * Configuration for the behavior of Pinecone's internal metadata index. By default, all metadata is indexed; when `metadata_config` is present, only specified metadata fields are indexed. These configurations are only valid for use with pod-based indexes. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:11.354821Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:29.716713Z[Etc/UTC]") public class PodSpecMetadataConfig { public static final String SERIALIZED_NAME_INDEXED = "indexed"; @SerializedName(SERIALIZED_NAME_INDEXED) diff --git a/src/main/java/org/openapitools/db_control/client/model/ReadCapacity.java b/src/main/java/org/openapitools/db_control/client/model/ReadCapacity.java index 79b5b856..e374e426 100644 --- a/src/main/java/org/openapitools/db_control/client/model/ReadCapacity.java +++ b/src/main/java/org/openapitools/db_control/client/model/ReadCapacity.java @@ -60,7 +60,7 @@ import org.openapitools.db_control.client.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:11.354821Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:29.716713Z[Etc/UTC]") public class ReadCapacity extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(ReadCapacity.class.getName()); diff --git a/src/main/java/org/openapitools/db_control/client/model/ReadCapacityDedicatedConfig.java b/src/main/java/org/openapitools/db_control/client/model/ReadCapacityDedicatedConfig.java index d2693e55..0a9499c7 100644 --- a/src/main/java/org/openapitools/db_control/client/model/ReadCapacityDedicatedConfig.java +++ b/src/main/java/org/openapitools/db_control/client/model/ReadCapacityDedicatedConfig.java @@ -50,7 +50,7 @@ /** * Configuration for dedicated read capacity. See [this guide](https://docs.pinecone.io/guides/index-data/dedicated-read-nodes) for more details on how to configure dedicated read capacity. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:11.354821Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:29.716713Z[Etc/UTC]") public class ReadCapacityDedicatedConfig { public static final String SERIALIZED_NAME_NODE_TYPE = "node_type"; @SerializedName(SERIALIZED_NAME_NODE_TYPE) diff --git a/src/main/java/org/openapitools/db_control/client/model/ReadCapacityDedicatedSpec.java b/src/main/java/org/openapitools/db_control/client/model/ReadCapacityDedicatedSpec.java index 5f17a9ca..f94430a8 100644 --- a/src/main/java/org/openapitools/db_control/client/model/ReadCapacityDedicatedSpec.java +++ b/src/main/java/org/openapitools/db_control/client/model/ReadCapacityDedicatedSpec.java @@ -50,7 +50,7 @@ /** * ReadCapacityDedicatedSpec */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:11.354821Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:29.716713Z[Etc/UTC]") public class ReadCapacityDedicatedSpec { public static final String SERIALIZED_NAME_MODE = "mode"; @SerializedName(SERIALIZED_NAME_MODE) diff --git a/src/main/java/org/openapitools/db_control/client/model/ReadCapacityDedicatedSpecResponse.java b/src/main/java/org/openapitools/db_control/client/model/ReadCapacityDedicatedSpecResponse.java index ee19dbbc..978fc991 100644 --- a/src/main/java/org/openapitools/db_control/client/model/ReadCapacityDedicatedSpecResponse.java +++ b/src/main/java/org/openapitools/db_control/client/model/ReadCapacityDedicatedSpecResponse.java @@ -51,7 +51,7 @@ /** * ReadCapacityDedicatedSpecResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:11.354821Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:29.716713Z[Etc/UTC]") public class ReadCapacityDedicatedSpecResponse { public static final String SERIALIZED_NAME_MODE = "mode"; @SerializedName(SERIALIZED_NAME_MODE) diff --git a/src/main/java/org/openapitools/db_control/client/model/ReadCapacityOnDemandSpec.java b/src/main/java/org/openapitools/db_control/client/model/ReadCapacityOnDemandSpec.java index 7116d31f..901f37fc 100644 --- a/src/main/java/org/openapitools/db_control/client/model/ReadCapacityOnDemandSpec.java +++ b/src/main/java/org/openapitools/db_control/client/model/ReadCapacityOnDemandSpec.java @@ -49,7 +49,7 @@ /** * ReadCapacityOnDemandSpec */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:11.354821Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:29.716713Z[Etc/UTC]") public class ReadCapacityOnDemandSpec { public static final String SERIALIZED_NAME_MODE = "mode"; @SerializedName(SERIALIZED_NAME_MODE) diff --git a/src/main/java/org/openapitools/db_control/client/model/ReadCapacityOnDemandSpecResponse.java b/src/main/java/org/openapitools/db_control/client/model/ReadCapacityOnDemandSpecResponse.java index d9591b44..071dd835 100644 --- a/src/main/java/org/openapitools/db_control/client/model/ReadCapacityOnDemandSpecResponse.java +++ b/src/main/java/org/openapitools/db_control/client/model/ReadCapacityOnDemandSpecResponse.java @@ -50,7 +50,7 @@ /** * ReadCapacityOnDemandSpecResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:11.354821Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:29.716713Z[Etc/UTC]") public class ReadCapacityOnDemandSpecResponse { public static final String SERIALIZED_NAME_MODE = "mode"; @SerializedName(SERIALIZED_NAME_MODE) diff --git a/src/main/java/org/openapitools/db_control/client/model/ReadCapacityResponse.java b/src/main/java/org/openapitools/db_control/client/model/ReadCapacityResponse.java index f0a6617f..245c67a2 100644 --- a/src/main/java/org/openapitools/db_control/client/model/ReadCapacityResponse.java +++ b/src/main/java/org/openapitools/db_control/client/model/ReadCapacityResponse.java @@ -61,7 +61,7 @@ import org.openapitools.db_control.client.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:11.354821Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:29.716713Z[Etc/UTC]") public class ReadCapacityResponse extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(ReadCapacityResponse.class.getName()); diff --git a/src/main/java/org/openapitools/db_control/client/model/ReadCapacityStatus.java b/src/main/java/org/openapitools/db_control/client/model/ReadCapacityStatus.java index 00b2935d..20f4eae1 100644 --- a/src/main/java/org/openapitools/db_control/client/model/ReadCapacityStatus.java +++ b/src/main/java/org/openapitools/db_control/client/model/ReadCapacityStatus.java @@ -49,7 +49,7 @@ /** * The current status of factors affecting the read capacity of a serverless index */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:11.354821Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:29.716713Z[Etc/UTC]") public class ReadCapacityStatus { public static final String SERIALIZED_NAME_STATE = "state"; @SerializedName(SERIALIZED_NAME_STATE) diff --git a/src/main/java/org/openapitools/db_control/client/model/RestoreJobList.java b/src/main/java/org/openapitools/db_control/client/model/RestoreJobList.java index bade464a..cce513ee 100644 --- a/src/main/java/org/openapitools/db_control/client/model/RestoreJobList.java +++ b/src/main/java/org/openapitools/db_control/client/model/RestoreJobList.java @@ -53,7 +53,7 @@ /** * The list of restore jobs that exist in the project. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:11.354821Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:29.716713Z[Etc/UTC]") public class RestoreJobList { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) diff --git a/src/main/java/org/openapitools/db_control/client/model/RestoreJobModel.java b/src/main/java/org/openapitools/db_control/client/model/RestoreJobModel.java index 9b4d83fd..2c97028c 100644 --- a/src/main/java/org/openapitools/db_control/client/model/RestoreJobModel.java +++ b/src/main/java/org/openapitools/db_control/client/model/RestoreJobModel.java @@ -50,7 +50,7 @@ /** * The RestoreJobModel describes the status of a restore job. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:11.354821Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:29.716713Z[Etc/UTC]") public class RestoreJobModel { public static final String SERIALIZED_NAME_RESTORE_JOB_ID = "restore_job_id"; @SerializedName(SERIALIZED_NAME_RESTORE_JOB_ID) diff --git a/src/main/java/org/openapitools/db_control/client/model/ScalingConfigManual.java b/src/main/java/org/openapitools/db_control/client/model/ScalingConfigManual.java index 2d8e33f9..7e4835cd 100644 --- a/src/main/java/org/openapitools/db_control/client/model/ScalingConfigManual.java +++ b/src/main/java/org/openapitools/db_control/client/model/ScalingConfigManual.java @@ -49,7 +49,7 @@ /** * The config to use for manual read capacity scaling. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:11.354821Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:29.716713Z[Etc/UTC]") public class ScalingConfigManual { public static final String SERIALIZED_NAME_REPLICAS = "replicas"; @SerializedName(SERIALIZED_NAME_REPLICAS) diff --git a/src/main/java/org/openapitools/db_control/client/model/ServerlessSpec.java b/src/main/java/org/openapitools/db_control/client/model/ServerlessSpec.java index deca69c1..a156ce27 100644 --- a/src/main/java/org/openapitools/db_control/client/model/ServerlessSpec.java +++ b/src/main/java/org/openapitools/db_control/client/model/ServerlessSpec.java @@ -51,7 +51,7 @@ /** * Configuration needed to deploy a serverless index. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:11.354821Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:29.716713Z[Etc/UTC]") public class ServerlessSpec { public static final String SERIALIZED_NAME_CLOUD = "cloud"; @SerializedName(SERIALIZED_NAME_CLOUD) diff --git a/src/main/java/org/openapitools/db_control/client/model/ServerlessSpecResponse.java b/src/main/java/org/openapitools/db_control/client/model/ServerlessSpecResponse.java index 3797272c..cbd7b860 100644 --- a/src/main/java/org/openapitools/db_control/client/model/ServerlessSpecResponse.java +++ b/src/main/java/org/openapitools/db_control/client/model/ServerlessSpecResponse.java @@ -51,7 +51,7 @@ /** * Configuration needed to deploy a serverless index. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:11.354821Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:29.716713Z[Etc/UTC]") public class ServerlessSpecResponse { public static final String SERIALIZED_NAME_CLOUD = "cloud"; @SerializedName(SERIALIZED_NAME_CLOUD) diff --git a/src/main/java/org/openapitools/db_data/client/ApiException.java b/src/main/java/org/openapitools/db_data/client/ApiException.java index 29867f7a..1b826d82 100644 --- a/src/main/java/org/openapitools/db_data/client/ApiException.java +++ b/src/main/java/org/openapitools/db_data/client/ApiException.java @@ -21,7 +21,7 @@ *

ApiException class.

*/ @SuppressWarnings("serial") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:13.248007Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:31.689858Z[Etc/UTC]") public class ApiException extends Exception { private int code = 0; private Map> responseHeaders = null; diff --git a/src/main/java/org/openapitools/db_data/client/Configuration.java b/src/main/java/org/openapitools/db_data/client/Configuration.java index d5af5871..4a8c95ed 100644 --- a/src/main/java/org/openapitools/db_data/client/Configuration.java +++ b/src/main/java/org/openapitools/db_data/client/Configuration.java @@ -13,7 +13,7 @@ package org.openapitools.db_data.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:13.248007Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:31.689858Z[Etc/UTC]") public class Configuration { public static final String VERSION = "2025-10"; diff --git a/src/main/java/org/openapitools/db_data/client/JSON.java b/src/main/java/org/openapitools/db_data/client/JSON.java index eb9b3372..cdba8f72 100644 --- a/src/main/java/org/openapitools/db_data/client/JSON.java +++ b/src/main/java/org/openapitools/db_data/client/JSON.java @@ -110,6 +110,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new org.openapitools.db_data.client.model.ListNamespacesResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new org.openapitools.db_data.client.model.ListResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new org.openapitools.db_data.client.model.NamespaceDescription.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.db_data.client.model.NamespaceDescriptionIndexedFields.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new org.openapitools.db_data.client.model.NamespaceSummary.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new org.openapitools.db_data.client.model.Pagination.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new org.openapitools.db_data.client.model.ProtobufAny.CustomTypeAdapterFactory()); diff --git a/src/main/java/org/openapitools/db_data/client/Pair.java b/src/main/java/org/openapitools/db_data/client/Pair.java index 4fb1696d..b369e8aa 100644 --- a/src/main/java/org/openapitools/db_data/client/Pair.java +++ b/src/main/java/org/openapitools/db_data/client/Pair.java @@ -13,7 +13,7 @@ package org.openapitools.db_data.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:13.248007Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:31.689858Z[Etc/UTC]") public class Pair { private String name = ""; private String value = ""; diff --git a/src/main/java/org/openapitools/db_data/client/StringUtil.java b/src/main/java/org/openapitools/db_data/client/StringUtil.java index 00c7f324..f67c026d 100644 --- a/src/main/java/org/openapitools/db_data/client/StringUtil.java +++ b/src/main/java/org/openapitools/db_data/client/StringUtil.java @@ -16,7 +16,7 @@ import java.util.Collection; import java.util.Iterator; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:13.248007Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:31.689858Z[Etc/UTC]") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/src/main/java/org/openapitools/db_data/client/auth/ApiKeyAuth.java b/src/main/java/org/openapitools/db_data/client/auth/ApiKeyAuth.java index 122c684e..153decbd 100644 --- a/src/main/java/org/openapitools/db_data/client/auth/ApiKeyAuth.java +++ b/src/main/java/org/openapitools/db_data/client/auth/ApiKeyAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:13.248007Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:31.689858Z[Etc/UTC]") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/src/main/java/org/openapitools/db_data/client/auth/HttpBearerAuth.java b/src/main/java/org/openapitools/db_data/client/auth/HttpBearerAuth.java index a3ad55eb..ff924461 100644 --- a/src/main/java/org/openapitools/db_data/client/auth/HttpBearerAuth.java +++ b/src/main/java/org/openapitools/db_data/client/auth/HttpBearerAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:13.248007Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:31.689858Z[Etc/UTC]") public class HttpBearerAuth implements Authentication { private final String scheme; private String bearerToken; diff --git a/src/main/java/org/openapitools/db_data/client/model/AbstractOpenApiSchema.java b/src/main/java/org/openapitools/db_data/client/model/AbstractOpenApiSchema.java index 11cb3c0d..b58c7fd6 100644 --- a/src/main/java/org/openapitools/db_data/client/model/AbstractOpenApiSchema.java +++ b/src/main/java/org/openapitools/db_data/client/model/AbstractOpenApiSchema.java @@ -23,7 +23,7 @@ /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:13.248007Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:31.689858Z[Etc/UTC]") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object diff --git a/src/main/java/org/openapitools/db_data/client/model/CreateNamespaceRequest.java b/src/main/java/org/openapitools/db_data/client/model/CreateNamespaceRequest.java index 6d296ad9..c3583482 100644 --- a/src/main/java/org/openapitools/db_data/client/model/CreateNamespaceRequest.java +++ b/src/main/java/org/openapitools/db_data/client/model/CreateNamespaceRequest.java @@ -50,7 +50,7 @@ /** * A request for creating a namespace with the specified namespace name. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:13.248007Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:31.689858Z[Etc/UTC]") public class CreateNamespaceRequest { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/org/openapitools/db_data/client/model/CreateNamespaceRequestSchema.java b/src/main/java/org/openapitools/db_data/client/model/CreateNamespaceRequestSchema.java index 0870e852..92428f37 100644 --- a/src/main/java/org/openapitools/db_data/client/model/CreateNamespaceRequestSchema.java +++ b/src/main/java/org/openapitools/db_data/client/model/CreateNamespaceRequestSchema.java @@ -52,7 +52,7 @@ /** * Schema for the behavior of Pinecone's internal metadata index. By default, all metadata is indexed; when `schema` is present, only fields which are present in the `fields` object with a `filterable: true` are indexed. Note that `filterable: false` is not currently supported. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:13.248007Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:31.689858Z[Etc/UTC]") public class CreateNamespaceRequestSchema { public static final String SERIALIZED_NAME_FIELDS = "fields"; @SerializedName(SERIALIZED_NAME_FIELDS) diff --git a/src/main/java/org/openapitools/db_data/client/model/CreateNamespaceRequestSchemaFieldsValue.java b/src/main/java/org/openapitools/db_data/client/model/CreateNamespaceRequestSchemaFieldsValue.java index f2862fd7..323a70d7 100644 --- a/src/main/java/org/openapitools/db_data/client/model/CreateNamespaceRequestSchemaFieldsValue.java +++ b/src/main/java/org/openapitools/db_data/client/model/CreateNamespaceRequestSchemaFieldsValue.java @@ -49,7 +49,7 @@ /** * CreateNamespaceRequestSchemaFieldsValue */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:13.248007Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:31.689858Z[Etc/UTC]") public class CreateNamespaceRequestSchemaFieldsValue { public static final String SERIALIZED_NAME_FILTERABLE = "filterable"; @SerializedName(SERIALIZED_NAME_FILTERABLE) diff --git a/src/main/java/org/openapitools/db_data/client/model/DeleteRequest.java b/src/main/java/org/openapitools/db_data/client/model/DeleteRequest.java index 70da8408..8721057d 100644 --- a/src/main/java/org/openapitools/db_data/client/model/DeleteRequest.java +++ b/src/main/java/org/openapitools/db_data/client/model/DeleteRequest.java @@ -51,7 +51,7 @@ /** * The request for the `delete` operation. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:13.248007Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:31.689858Z[Etc/UTC]") public class DeleteRequest { public static final String SERIALIZED_NAME_IDS = "ids"; @SerializedName(SERIALIZED_NAME_IDS) diff --git a/src/main/java/org/openapitools/db_data/client/model/DescribeIndexStatsRequest.java b/src/main/java/org/openapitools/db_data/client/model/DescribeIndexStatsRequest.java index 6ea71430..b85f0c20 100644 --- a/src/main/java/org/openapitools/db_data/client/model/DescribeIndexStatsRequest.java +++ b/src/main/java/org/openapitools/db_data/client/model/DescribeIndexStatsRequest.java @@ -49,7 +49,7 @@ /** * The request for the `describe_index_stats` operation. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:13.248007Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:31.689858Z[Etc/UTC]") public class DescribeIndexStatsRequest { public static final String SERIALIZED_NAME_FILTER = "filter"; @SerializedName(SERIALIZED_NAME_FILTER) diff --git a/src/main/java/org/openapitools/db_data/client/model/FetchByMetadataRequest.java b/src/main/java/org/openapitools/db_data/client/model/FetchByMetadataRequest.java index 0e702815..ccd3f4cf 100644 --- a/src/main/java/org/openapitools/db_data/client/model/FetchByMetadataRequest.java +++ b/src/main/java/org/openapitools/db_data/client/model/FetchByMetadataRequest.java @@ -49,7 +49,7 @@ /** * The request for the `fetch_by_metadata` operation. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:13.248007Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:31.689858Z[Etc/UTC]") public class FetchByMetadataRequest { public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; @SerializedName(SERIALIZED_NAME_NAMESPACE) diff --git a/src/main/java/org/openapitools/db_data/client/model/FetchByMetadataResponse.java b/src/main/java/org/openapitools/db_data/client/model/FetchByMetadataResponse.java index 2618cd9f..71e27bc1 100644 --- a/src/main/java/org/openapitools/db_data/client/model/FetchByMetadataResponse.java +++ b/src/main/java/org/openapitools/db_data/client/model/FetchByMetadataResponse.java @@ -54,7 +54,7 @@ /** * The response for the `fetch_by_metadata` operation. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:13.248007Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:31.689858Z[Etc/UTC]") public class FetchByMetadataResponse { public static final String SERIALIZED_NAME_VECTORS = "vectors"; @SerializedName(SERIALIZED_NAME_VECTORS) diff --git a/src/main/java/org/openapitools/db_data/client/model/FetchResponse.java b/src/main/java/org/openapitools/db_data/client/model/FetchResponse.java index b28031c3..d07033c0 100644 --- a/src/main/java/org/openapitools/db_data/client/model/FetchResponse.java +++ b/src/main/java/org/openapitools/db_data/client/model/FetchResponse.java @@ -53,7 +53,7 @@ /** * The response for the `fetch` operation. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:13.248007Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:31.689858Z[Etc/UTC]") public class FetchResponse { public static final String SERIALIZED_NAME_VECTORS = "vectors"; @SerializedName(SERIALIZED_NAME_VECTORS) diff --git a/src/main/java/org/openapitools/db_data/client/model/Hit.java b/src/main/java/org/openapitools/db_data/client/model/Hit.java index 427b603c..39389c30 100644 --- a/src/main/java/org/openapitools/db_data/client/model/Hit.java +++ b/src/main/java/org/openapitools/db_data/client/model/Hit.java @@ -49,7 +49,7 @@ /** * A record whose vector values are similar to the provided search query. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:13.248007Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:31.689858Z[Etc/UTC]") public class Hit { public static final String SERIALIZED_NAME_ID = "_id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/org/openapitools/db_data/client/model/ImportErrorMode.java b/src/main/java/org/openapitools/db_data/client/model/ImportErrorMode.java index b3380c7f..eedacf90 100644 --- a/src/main/java/org/openapitools/db_data/client/model/ImportErrorMode.java +++ b/src/main/java/org/openapitools/db_data/client/model/ImportErrorMode.java @@ -49,7 +49,7 @@ /** * Indicates how to respond to errors during the import process. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:13.248007Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:31.689858Z[Etc/UTC]") public class ImportErrorMode { public static final String SERIALIZED_NAME_ON_ERROR = "onError"; @SerializedName(SERIALIZED_NAME_ON_ERROR) diff --git a/src/main/java/org/openapitools/db_data/client/model/ImportModel.java b/src/main/java/org/openapitools/db_data/client/model/ImportModel.java index 04d31865..33a8e56d 100644 --- a/src/main/java/org/openapitools/db_data/client/model/ImportModel.java +++ b/src/main/java/org/openapitools/db_data/client/model/ImportModel.java @@ -50,7 +50,7 @@ /** * The model for an import operation. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:13.248007Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:31.689858Z[Etc/UTC]") public class ImportModel { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/org/openapitools/db_data/client/model/IndexDescription.java b/src/main/java/org/openapitools/db_data/client/model/IndexDescription.java index 2378a114..420652a4 100644 --- a/src/main/java/org/openapitools/db_data/client/model/IndexDescription.java +++ b/src/main/java/org/openapitools/db_data/client/model/IndexDescription.java @@ -52,7 +52,7 @@ /** * The response for the `describe_index_stats` operation. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:13.248007Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:31.689858Z[Etc/UTC]") public class IndexDescription { public static final String SERIALIZED_NAME_NAMESPACES = "namespaces"; @SerializedName(SERIALIZED_NAME_NAMESPACES) diff --git a/src/main/java/org/openapitools/db_data/client/model/ListImportsResponse.java b/src/main/java/org/openapitools/db_data/client/model/ListImportsResponse.java index 7ba72b42..df4dbe98 100644 --- a/src/main/java/org/openapitools/db_data/client/model/ListImportsResponse.java +++ b/src/main/java/org/openapitools/db_data/client/model/ListImportsResponse.java @@ -53,7 +53,7 @@ /** * The response for the `list_imports` operation. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:13.248007Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:31.689858Z[Etc/UTC]") public class ListImportsResponse { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) diff --git a/src/main/java/org/openapitools/db_data/client/model/ListItem.java b/src/main/java/org/openapitools/db_data/client/model/ListItem.java index e998b316..98b46be8 100644 --- a/src/main/java/org/openapitools/db_data/client/model/ListItem.java +++ b/src/main/java/org/openapitools/db_data/client/model/ListItem.java @@ -49,7 +49,7 @@ /** * ListItem */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:13.248007Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:31.689858Z[Etc/UTC]") public class ListItem { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/org/openapitools/db_data/client/model/ListNamespacesResponse.java b/src/main/java/org/openapitools/db_data/client/model/ListNamespacesResponse.java index 36d1d32d..a770cbbb 100644 --- a/src/main/java/org/openapitools/db_data/client/model/ListNamespacesResponse.java +++ b/src/main/java/org/openapitools/db_data/client/model/ListNamespacesResponse.java @@ -53,7 +53,7 @@ /** * ListNamespacesResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:13.248007Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:31.689858Z[Etc/UTC]") public class ListNamespacesResponse { public static final String SERIALIZED_NAME_NAMESPACES = "namespaces"; @SerializedName(SERIALIZED_NAME_NAMESPACES) @@ -63,6 +63,10 @@ public class ListNamespacesResponse { @SerializedName(SERIALIZED_NAME_PAGINATION) private Pagination pagination; + public static final String SERIALIZED_NAME_TOTAL_COUNT = "total_count"; + @SerializedName(SERIALIZED_NAME_TOTAL_COUNT) + private Integer totalCount; + public ListNamespacesResponse() { } @@ -115,6 +119,27 @@ public void setPagination(Pagination pagination) { this.pagination = pagination; } + + public ListNamespacesResponse totalCount(Integer totalCount) { + + this.totalCount = totalCount; + return this; + } + + /** + * The total number of namespaces in the index matching the prefix + * @return totalCount + **/ + @javax.annotation.Nullable + public Integer getTotalCount() { + return totalCount; + } + + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -171,13 +196,14 @@ public boolean equals(Object o) { } ListNamespacesResponse listNamespacesResponse = (ListNamespacesResponse) o; return Objects.equals(this.namespaces, listNamespacesResponse.namespaces) && - Objects.equals(this.pagination, listNamespacesResponse.pagination)&& + Objects.equals(this.pagination, listNamespacesResponse.pagination) && + Objects.equals(this.totalCount, listNamespacesResponse.totalCount)&& Objects.equals(this.additionalProperties, listNamespacesResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(namespaces, pagination, additionalProperties); + return Objects.hash(namespaces, pagination, totalCount, additionalProperties); } @Override @@ -186,6 +212,7 @@ public String toString() { sb.append("class ListNamespacesResponse {\n"); sb.append(" namespaces: ").append(toIndentedString(namespaces)).append("\n"); sb.append(" pagination: ").append(toIndentedString(pagination)).append("\n"); + sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -211,6 +238,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(); openapiFields.add("namespaces"); openapiFields.add("pagination"); + openapiFields.add("total_count"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); diff --git a/src/main/java/org/openapitools/db_data/client/model/ListResponse.java b/src/main/java/org/openapitools/db_data/client/model/ListResponse.java index ef726940..1acea374 100644 --- a/src/main/java/org/openapitools/db_data/client/model/ListResponse.java +++ b/src/main/java/org/openapitools/db_data/client/model/ListResponse.java @@ -54,7 +54,7 @@ /** * The response for the `list` operation. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:13.248007Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:31.689858Z[Etc/UTC]") public class ListResponse { public static final String SERIALIZED_NAME_VECTORS = "vectors"; @SerializedName(SERIALIZED_NAME_VECTORS) diff --git a/src/main/java/org/openapitools/db_data/client/model/NamespaceDescription.java b/src/main/java/org/openapitools/db_data/client/model/NamespaceDescription.java index 1b92ba11..e607a924 100644 --- a/src/main/java/org/openapitools/db_data/client/model/NamespaceDescription.java +++ b/src/main/java/org/openapitools/db_data/client/model/NamespaceDescription.java @@ -22,6 +22,7 @@ import java.io.IOException; import java.util.Arrays; import org.openapitools.db_data.client.model.CreateNamespaceRequestSchema; +import org.openapitools.db_data.client.model.NamespaceDescriptionIndexedFields; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -50,7 +51,7 @@ /** * A description of a namespace, including the name and record count. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:13.248007Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:31.689858Z[Etc/UTC]") public class NamespaceDescription { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -64,9 +65,9 @@ public class NamespaceDescription { @SerializedName(SERIALIZED_NAME_SCHEMA) private CreateNamespaceRequestSchema schema; - public static final String SERIALIZED_NAME_TOTAL_COUNT = "total_count"; - @SerializedName(SERIALIZED_NAME_TOTAL_COUNT) - private Integer totalCount; + public static final String SERIALIZED_NAME_INDEXED_FIELDS = "indexed_fields"; + @SerializedName(SERIALIZED_NAME_INDEXED_FIELDS) + private NamespaceDescriptionIndexedFields indexedFields; public NamespaceDescription() { } @@ -134,24 +135,24 @@ public void setSchema(CreateNamespaceRequestSchema schema) { } - public NamespaceDescription totalCount(Integer totalCount) { + public NamespaceDescription indexedFields(NamespaceDescriptionIndexedFields indexedFields) { - this.totalCount = totalCount; + this.indexedFields = indexedFields; return this; } /** - * The total number of namespaces in the index matching the prefix - * @return totalCount + * Get indexedFields + * @return indexedFields **/ @javax.annotation.Nullable - public Integer getTotalCount() { - return totalCount; + public NamespaceDescriptionIndexedFields getIndexedFields() { + return indexedFields; } - public void setTotalCount(Integer totalCount) { - this.totalCount = totalCount; + public void setIndexedFields(NamespaceDescriptionIndexedFields indexedFields) { + this.indexedFields = indexedFields; } /** @@ -212,13 +213,13 @@ public boolean equals(Object o) { return Objects.equals(this.name, namespaceDescription.name) && Objects.equals(this.recordCount, namespaceDescription.recordCount) && Objects.equals(this.schema, namespaceDescription.schema) && - Objects.equals(this.totalCount, namespaceDescription.totalCount)&& + Objects.equals(this.indexedFields, namespaceDescription.indexedFields)&& Objects.equals(this.additionalProperties, namespaceDescription.additionalProperties); } @Override public int hashCode() { - return Objects.hash(name, recordCount, schema, totalCount, additionalProperties); + return Objects.hash(name, recordCount, schema, indexedFields, additionalProperties); } @Override @@ -228,7 +229,7 @@ public String toString() { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" recordCount: ").append(toIndentedString(recordCount)).append("\n"); sb.append(" schema: ").append(toIndentedString(schema)).append("\n"); - sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n"); + sb.append(" indexedFields: ").append(toIndentedString(indexedFields)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -255,7 +256,7 @@ private String toIndentedString(Object o) { openapiFields.add("name"); openapiFields.add("record_count"); openapiFields.add("schema"); - openapiFields.add("total_count"); + openapiFields.add("indexed_fields"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -281,6 +282,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("schema") != null && !jsonObj.get("schema").isJsonNull()) { CreateNamespaceRequestSchema.validateJsonElement(jsonObj.get("schema")); } + // validate the optional field `indexed_fields` + if (jsonObj.get("indexed_fields") != null && !jsonObj.get("indexed_fields").isJsonNull()) { + NamespaceDescriptionIndexedFields.validateJsonElement(jsonObj.get("indexed_fields")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/src/main/java/org/openapitools/db_data/client/model/NamespaceDescriptionIndexedFields.java b/src/main/java/org/openapitools/db_data/client/model/NamespaceDescriptionIndexedFields.java new file mode 100644 index 00000000..13b8d501 --- /dev/null +++ b/src/main/java/org/openapitools/db_data/client/model/NamespaceDescriptionIndexedFields.java @@ -0,0 +1,295 @@ +/* + * Pinecone Data Plane API + * Pinecone is a vector database that makes it easy to search and retrieve billions of high-dimensional vectors. + * + * The version of the OpenAPI document: 2025-10 + * Contact: support@pinecone.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.openapitools.db_data.client.model; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import org.openapitools.db_data.client.JSON; + +/** + * A list of all indexed metatadata fields in the namespace + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:31.689858Z[Etc/UTC]") +public class NamespaceDescriptionIndexedFields { + public static final String SERIALIZED_NAME_FIELDS = "fields"; + @SerializedName(SERIALIZED_NAME_FIELDS) + private List fields; + + public NamespaceDescriptionIndexedFields() { + } + + public NamespaceDescriptionIndexedFields fields(List fields) { + + this.fields = fields; + return this; + } + + public NamespaceDescriptionIndexedFields addFieldsItem(String fieldsItem) { + if (this.fields == null) { + this.fields = new ArrayList<>(); + } + this.fields.add(fieldsItem); + return this; + } + + /** + * Get fields + * @return fields + **/ + @javax.annotation.Nullable + public List getFields() { + return fields; + } + + + public void setFields(List fields) { + this.fields = fields; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the NamespaceDescriptionIndexedFields instance itself + */ + public NamespaceDescriptionIndexedFields putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + NamespaceDescriptionIndexedFields namespaceDescriptionIndexedFields = (NamespaceDescriptionIndexedFields) o; + return Objects.equals(this.fields, namespaceDescriptionIndexedFields.fields)&& + Objects.equals(this.additionalProperties, namespaceDescriptionIndexedFields.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(fields, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class NamespaceDescriptionIndexedFields {\n"); + sb.append(" fields: ").append(toIndentedString(fields)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("fields"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to NamespaceDescriptionIndexedFields + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!NamespaceDescriptionIndexedFields.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format("The required field(s) %s in NamespaceDescriptionIndexedFields is not found in the empty JSON string", NamespaceDescriptionIndexedFields.openapiRequiredFields.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + if (jsonObj.get("fields") != null && !jsonObj.get("fields").isJsonNull() && !jsonObj.get("fields").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `fields` to be an array in the JSON string but got `%s`", jsonObj.get("fields").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!NamespaceDescriptionIndexedFields.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'NamespaceDescriptionIndexedFields' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(NamespaceDescriptionIndexedFields.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, NamespaceDescriptionIndexedFields value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additional properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public NamespaceDescriptionIndexedFields read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // store additional fields in the deserialized instance + NamespaceDescriptionIndexedFields instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of NamespaceDescriptionIndexedFields given an JSON string + * + * @param jsonString JSON string + * @return An instance of NamespaceDescriptionIndexedFields + * @throws IOException if the JSON string is invalid with respect to NamespaceDescriptionIndexedFields + */ + public static NamespaceDescriptionIndexedFields fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, NamespaceDescriptionIndexedFields.class); + } + + /** + * Convert an instance of NamespaceDescriptionIndexedFields to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/org/openapitools/db_data/client/model/NamespaceSummary.java b/src/main/java/org/openapitools/db_data/client/model/NamespaceSummary.java index 29222802..d3749315 100644 --- a/src/main/java/org/openapitools/db_data/client/model/NamespaceSummary.java +++ b/src/main/java/org/openapitools/db_data/client/model/NamespaceSummary.java @@ -49,7 +49,7 @@ /** * A summary of the contents of a namespace. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:13.248007Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:31.689858Z[Etc/UTC]") public class NamespaceSummary { public static final String SERIALIZED_NAME_VECTOR_COUNT = "vectorCount"; @SerializedName(SERIALIZED_NAME_VECTOR_COUNT) diff --git a/src/main/java/org/openapitools/db_data/client/model/Pagination.java b/src/main/java/org/openapitools/db_data/client/model/Pagination.java index 3e904295..86437a5a 100644 --- a/src/main/java/org/openapitools/db_data/client/model/Pagination.java +++ b/src/main/java/org/openapitools/db_data/client/model/Pagination.java @@ -49,7 +49,7 @@ /** * Pagination */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:13.248007Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:31.689858Z[Etc/UTC]") public class Pagination { public static final String SERIALIZED_NAME_NEXT = "next"; @SerializedName(SERIALIZED_NAME_NEXT) diff --git a/src/main/java/org/openapitools/db_data/client/model/ProtobufAny.java b/src/main/java/org/openapitools/db_data/client/model/ProtobufAny.java index deab17e3..9bf09a2d 100644 --- a/src/main/java/org/openapitools/db_data/client/model/ProtobufAny.java +++ b/src/main/java/org/openapitools/db_data/client/model/ProtobufAny.java @@ -49,7 +49,7 @@ /** * ProtobufAny */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:13.248007Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:31.689858Z[Etc/UTC]") public class ProtobufAny { public static final String SERIALIZED_NAME_TYPE_URL = "typeUrl"; @SerializedName(SERIALIZED_NAME_TYPE_URL) diff --git a/src/main/java/org/openapitools/db_data/client/model/QueryRequest.java b/src/main/java/org/openapitools/db_data/client/model/QueryRequest.java index e14f3f4c..55a01498 100644 --- a/src/main/java/org/openapitools/db_data/client/model/QueryRequest.java +++ b/src/main/java/org/openapitools/db_data/client/model/QueryRequest.java @@ -53,7 +53,7 @@ /** * The request for the `query` operation. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:13.248007Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:31.689858Z[Etc/UTC]") public class QueryRequest { public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; @SerializedName(SERIALIZED_NAME_NAMESPACE) diff --git a/src/main/java/org/openapitools/db_data/client/model/QueryResponse.java b/src/main/java/org/openapitools/db_data/client/model/QueryResponse.java index e0ec4a44..9b96bae2 100644 --- a/src/main/java/org/openapitools/db_data/client/model/QueryResponse.java +++ b/src/main/java/org/openapitools/db_data/client/model/QueryResponse.java @@ -54,7 +54,7 @@ /** * The response for the `query` operation. These are the matches found for a particular query vector. The matches are ordered from most similar to least similar. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:13.248007Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:31.689858Z[Etc/UTC]") public class QueryResponse { public static final String SERIALIZED_NAME_RESULTS = "results"; @Deprecated diff --git a/src/main/java/org/openapitools/db_data/client/model/QueryVector.java b/src/main/java/org/openapitools/db_data/client/model/QueryVector.java index 03f110c8..fe9ba07a 100644 --- a/src/main/java/org/openapitools/db_data/client/model/QueryVector.java +++ b/src/main/java/org/openapitools/db_data/client/model/QueryVector.java @@ -54,7 +54,7 @@ * @deprecated */ @Deprecated -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:13.248007Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:31.689858Z[Etc/UTC]") public class QueryVector { public static final String SERIALIZED_NAME_VALUES = "values"; @SerializedName(SERIALIZED_NAME_VALUES) diff --git a/src/main/java/org/openapitools/db_data/client/model/RpcStatus.java b/src/main/java/org/openapitools/db_data/client/model/RpcStatus.java index e299b502..b860df2e 100644 --- a/src/main/java/org/openapitools/db_data/client/model/RpcStatus.java +++ b/src/main/java/org/openapitools/db_data/client/model/RpcStatus.java @@ -52,7 +52,7 @@ /** * RpcStatus */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:13.248007Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:31.689858Z[Etc/UTC]") public class RpcStatus { public static final String SERIALIZED_NAME_CODE = "code"; @SerializedName(SERIALIZED_NAME_CODE) diff --git a/src/main/java/org/openapitools/db_data/client/model/ScoredVector.java b/src/main/java/org/openapitools/db_data/client/model/ScoredVector.java index 98e1c223..e9d2f95a 100644 --- a/src/main/java/org/openapitools/db_data/client/model/ScoredVector.java +++ b/src/main/java/org/openapitools/db_data/client/model/ScoredVector.java @@ -52,7 +52,7 @@ /** * ScoredVector */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:13.248007Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:31.689858Z[Etc/UTC]") public class ScoredVector { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/org/openapitools/db_data/client/model/SearchMatchTerms.java b/src/main/java/org/openapitools/db_data/client/model/SearchMatchTerms.java index dce0bc6b..cfbc53ab 100644 --- a/src/main/java/org/openapitools/db_data/client/model/SearchMatchTerms.java +++ b/src/main/java/org/openapitools/db_data/client/model/SearchMatchTerms.java @@ -51,7 +51,7 @@ /** * Specifies which terms must be present in the text of each search hit based on the specified strategy. The match is performed against the text field specified in the integrated index `field_map` configuration. Terms are normalized and tokenized into single tokens before matching, and order does not matter. Example: `\"match_terms\": {\"terms\": [\"animal\", \"CHARACTER\", \"donald Duck\"], \"strategy\": \"all\"}` will tokenize to `[\"animal\", \"character\", \"donald\", \"duck\"]`, and would match `\"Donald F. Duck is a funny animal character\"` but would not match `\"A duck is a funny animal\"`. Match terms filtering is supported only for sparse indexes with [integrated embedding](https://docs.pinecone.io/guides/index-data/indexing-overview#vector-embedding) configured to use the [pinecone-sparse-english-v0](https://docs.pinecone.io/models/pinecone-sparse-english-v0) model. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:13.248007Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:31.689858Z[Etc/UTC]") public class SearchMatchTerms { public static final String SERIALIZED_NAME_STRATEGY = "strategy"; @SerializedName(SERIALIZED_NAME_STRATEGY) diff --git a/src/main/java/org/openapitools/db_data/client/model/SearchRecordsRequest.java b/src/main/java/org/openapitools/db_data/client/model/SearchRecordsRequest.java index 14f8b6b6..d3259adf 100644 --- a/src/main/java/org/openapitools/db_data/client/model/SearchRecordsRequest.java +++ b/src/main/java/org/openapitools/db_data/client/model/SearchRecordsRequest.java @@ -53,7 +53,7 @@ /** * A search request for records in a specific namespace. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:13.248007Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:31.689858Z[Etc/UTC]") public class SearchRecordsRequest { public static final String SERIALIZED_NAME_QUERY = "query"; @SerializedName(SERIALIZED_NAME_QUERY) diff --git a/src/main/java/org/openapitools/db_data/client/model/SearchRecordsRequestQuery.java b/src/main/java/org/openapitools/db_data/client/model/SearchRecordsRequestQuery.java index 349c39a5..1504a5a7 100644 --- a/src/main/java/org/openapitools/db_data/client/model/SearchRecordsRequestQuery.java +++ b/src/main/java/org/openapitools/db_data/client/model/SearchRecordsRequestQuery.java @@ -51,7 +51,7 @@ /** * . */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:13.248007Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:31.689858Z[Etc/UTC]") public class SearchRecordsRequestQuery { public static final String SERIALIZED_NAME_TOP_K = "top_k"; @SerializedName(SERIALIZED_NAME_TOP_K) diff --git a/src/main/java/org/openapitools/db_data/client/model/SearchRecordsRequestRerank.java b/src/main/java/org/openapitools/db_data/client/model/SearchRecordsRequestRerank.java index 023c43c6..7d23cceb 100644 --- a/src/main/java/org/openapitools/db_data/client/model/SearchRecordsRequestRerank.java +++ b/src/main/java/org/openapitools/db_data/client/model/SearchRecordsRequestRerank.java @@ -53,7 +53,7 @@ /** * Parameters for reranking the initial search results. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:13.248007Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:31.689858Z[Etc/UTC]") public class SearchRecordsRequestRerank { public static final String SERIALIZED_NAME_MODEL = "model"; @SerializedName(SERIALIZED_NAME_MODEL) diff --git a/src/main/java/org/openapitools/db_data/client/model/SearchRecordsResponse.java b/src/main/java/org/openapitools/db_data/client/model/SearchRecordsResponse.java index 96f8be10..c4da2051 100644 --- a/src/main/java/org/openapitools/db_data/client/model/SearchRecordsResponse.java +++ b/src/main/java/org/openapitools/db_data/client/model/SearchRecordsResponse.java @@ -51,7 +51,7 @@ /** * The records search response. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:13.248007Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:31.689858Z[Etc/UTC]") public class SearchRecordsResponse { public static final String SERIALIZED_NAME_RESULT = "result"; @SerializedName(SERIALIZED_NAME_RESULT) diff --git a/src/main/java/org/openapitools/db_data/client/model/SearchRecordsResponseResult.java b/src/main/java/org/openapitools/db_data/client/model/SearchRecordsResponseResult.java index 0636b8c6..ed8fe30e 100644 --- a/src/main/java/org/openapitools/db_data/client/model/SearchRecordsResponseResult.java +++ b/src/main/java/org/openapitools/db_data/client/model/SearchRecordsResponseResult.java @@ -52,7 +52,7 @@ /** * SearchRecordsResponseResult */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:13.248007Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:31.689858Z[Etc/UTC]") public class SearchRecordsResponseResult { public static final String SERIALIZED_NAME_HITS = "hits"; @SerializedName(SERIALIZED_NAME_HITS) diff --git a/src/main/java/org/openapitools/db_data/client/model/SearchRecordsVector.java b/src/main/java/org/openapitools/db_data/client/model/SearchRecordsVector.java index 89b75818..d0c2b2c5 100644 --- a/src/main/java/org/openapitools/db_data/client/model/SearchRecordsVector.java +++ b/src/main/java/org/openapitools/db_data/client/model/SearchRecordsVector.java @@ -51,7 +51,7 @@ /** * SearchRecordsVector */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:13.248007Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:31.689858Z[Etc/UTC]") public class SearchRecordsVector { public static final String SERIALIZED_NAME_VALUES = "values"; @SerializedName(SERIALIZED_NAME_VALUES) diff --git a/src/main/java/org/openapitools/db_data/client/model/SearchUsage.java b/src/main/java/org/openapitools/db_data/client/model/SearchUsage.java index fcd8b96c..822fa892 100644 --- a/src/main/java/org/openapitools/db_data/client/model/SearchUsage.java +++ b/src/main/java/org/openapitools/db_data/client/model/SearchUsage.java @@ -49,7 +49,7 @@ /** * SearchUsage */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:13.248007Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:31.689858Z[Etc/UTC]") public class SearchUsage { public static final String SERIALIZED_NAME_READ_UNITS = "read_units"; @SerializedName(SERIALIZED_NAME_READ_UNITS) diff --git a/src/main/java/org/openapitools/db_data/client/model/SingleQueryResults.java b/src/main/java/org/openapitools/db_data/client/model/SingleQueryResults.java index 553fd998..12bec596 100644 --- a/src/main/java/org/openapitools/db_data/client/model/SingleQueryResults.java +++ b/src/main/java/org/openapitools/db_data/client/model/SingleQueryResults.java @@ -52,7 +52,7 @@ /** * SingleQueryResults */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:13.248007Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:31.689858Z[Etc/UTC]") public class SingleQueryResults { public static final String SERIALIZED_NAME_MATCHES = "matches"; @SerializedName(SERIALIZED_NAME_MATCHES) diff --git a/src/main/java/org/openapitools/db_data/client/model/SparseValues.java b/src/main/java/org/openapitools/db_data/client/model/SparseValues.java index 06c73e05..aceef0ad 100644 --- a/src/main/java/org/openapitools/db_data/client/model/SparseValues.java +++ b/src/main/java/org/openapitools/db_data/client/model/SparseValues.java @@ -51,7 +51,7 @@ /** * Vector sparse data. Represented as a list of indices and a list of corresponded values, which must be with the same length. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:13.248007Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:31.689858Z[Etc/UTC]") public class SparseValues { public static final String SERIALIZED_NAME_INDICES = "indices"; @SerializedName(SERIALIZED_NAME_INDICES) diff --git a/src/main/java/org/openapitools/db_data/client/model/StartImportRequest.java b/src/main/java/org/openapitools/db_data/client/model/StartImportRequest.java index c4237afe..abf77991 100644 --- a/src/main/java/org/openapitools/db_data/client/model/StartImportRequest.java +++ b/src/main/java/org/openapitools/db_data/client/model/StartImportRequest.java @@ -50,7 +50,7 @@ /** * The request for the `start_import` operation. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:13.248007Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:31.689858Z[Etc/UTC]") public class StartImportRequest { public static final String SERIALIZED_NAME_INTEGRATION_ID = "integrationId"; @SerializedName(SERIALIZED_NAME_INTEGRATION_ID) diff --git a/src/main/java/org/openapitools/db_data/client/model/StartImportResponse.java b/src/main/java/org/openapitools/db_data/client/model/StartImportResponse.java index d4f2b253..030d41bf 100644 --- a/src/main/java/org/openapitools/db_data/client/model/StartImportResponse.java +++ b/src/main/java/org/openapitools/db_data/client/model/StartImportResponse.java @@ -49,7 +49,7 @@ /** * The response for the `start_import` operation. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:13.248007Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:31.689858Z[Etc/UTC]") public class StartImportResponse { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/org/openapitools/db_data/client/model/UpdateRequest.java b/src/main/java/org/openapitools/db_data/client/model/UpdateRequest.java index 0fde2cc7..c2099125 100644 --- a/src/main/java/org/openapitools/db_data/client/model/UpdateRequest.java +++ b/src/main/java/org/openapitools/db_data/client/model/UpdateRequest.java @@ -52,7 +52,7 @@ /** * The request for the `update` operation. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:13.248007Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:31.689858Z[Etc/UTC]") public class UpdateRequest { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/org/openapitools/db_data/client/model/UpdateResponse.java b/src/main/java/org/openapitools/db_data/client/model/UpdateResponse.java index 9610cc18..33aeebb6 100644 --- a/src/main/java/org/openapitools/db_data/client/model/UpdateResponse.java +++ b/src/main/java/org/openapitools/db_data/client/model/UpdateResponse.java @@ -49,7 +49,7 @@ /** * The response for the `update` operation. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:13.248007Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:31.689858Z[Etc/UTC]") public class UpdateResponse { public static final String SERIALIZED_NAME_MATCHED_RECORDS = "matchedRecords"; @SerializedName(SERIALIZED_NAME_MATCHED_RECORDS) diff --git a/src/main/java/org/openapitools/db_data/client/model/UpsertRecord.java b/src/main/java/org/openapitools/db_data/client/model/UpsertRecord.java index d1bd6260..099aaf35 100644 --- a/src/main/java/org/openapitools/db_data/client/model/UpsertRecord.java +++ b/src/main/java/org/openapitools/db_data/client/model/UpsertRecord.java @@ -49,7 +49,7 @@ /** * The request for the `upsert` operation. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:13.248007Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:31.689858Z[Etc/UTC]") public class UpsertRecord { public static final String SERIALIZED_NAME_ID = "_id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/org/openapitools/db_data/client/model/UpsertRequest.java b/src/main/java/org/openapitools/db_data/client/model/UpsertRequest.java index 7a43cd8a..a4f7303c 100644 --- a/src/main/java/org/openapitools/db_data/client/model/UpsertRequest.java +++ b/src/main/java/org/openapitools/db_data/client/model/UpsertRequest.java @@ -52,7 +52,7 @@ /** * The request for the `upsert` operation. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:13.248007Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:31.689858Z[Etc/UTC]") public class UpsertRequest { public static final String SERIALIZED_NAME_VECTORS = "vectors"; @SerializedName(SERIALIZED_NAME_VECTORS) diff --git a/src/main/java/org/openapitools/db_data/client/model/UpsertResponse.java b/src/main/java/org/openapitools/db_data/client/model/UpsertResponse.java index 099c4ecc..3c8065f6 100644 --- a/src/main/java/org/openapitools/db_data/client/model/UpsertResponse.java +++ b/src/main/java/org/openapitools/db_data/client/model/UpsertResponse.java @@ -49,7 +49,7 @@ /** * The response for the `upsert` operation. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:13.248007Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:31.689858Z[Etc/UTC]") public class UpsertResponse { public static final String SERIALIZED_NAME_UPSERTED_COUNT = "upsertedCount"; @SerializedName(SERIALIZED_NAME_UPSERTED_COUNT) diff --git a/src/main/java/org/openapitools/db_data/client/model/Usage.java b/src/main/java/org/openapitools/db_data/client/model/Usage.java index eeb1433d..e4c994bb 100644 --- a/src/main/java/org/openapitools/db_data/client/model/Usage.java +++ b/src/main/java/org/openapitools/db_data/client/model/Usage.java @@ -49,7 +49,7 @@ /** * Usage */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:13.248007Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:31.689858Z[Etc/UTC]") public class Usage { public static final String SERIALIZED_NAME_READ_UNITS = "readUnits"; @SerializedName(SERIALIZED_NAME_READ_UNITS) diff --git a/src/main/java/org/openapitools/db_data/client/model/Vector.java b/src/main/java/org/openapitools/db_data/client/model/Vector.java index 68102cfa..2052de58 100644 --- a/src/main/java/org/openapitools/db_data/client/model/Vector.java +++ b/src/main/java/org/openapitools/db_data/client/model/Vector.java @@ -52,7 +52,7 @@ /** * Vector */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:13.248007Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:31.689858Z[Etc/UTC]") public class Vector { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/org/openapitools/inference/client/ApiException.java b/src/main/java/org/openapitools/inference/client/ApiException.java index 93a1c137..76d7643c 100644 --- a/src/main/java/org/openapitools/inference/client/ApiException.java +++ b/src/main/java/org/openapitools/inference/client/ApiException.java @@ -21,7 +21,7 @@ *

ApiException class.

*/ @SuppressWarnings("serial") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:15.202691Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:33.807920Z[Etc/UTC]") public class ApiException extends Exception { private int code = 0; private Map> responseHeaders = null; diff --git a/src/main/java/org/openapitools/inference/client/Configuration.java b/src/main/java/org/openapitools/inference/client/Configuration.java index 6691be04..6fe9ceab 100644 --- a/src/main/java/org/openapitools/inference/client/Configuration.java +++ b/src/main/java/org/openapitools/inference/client/Configuration.java @@ -13,7 +13,7 @@ package org.openapitools.inference.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:15.202691Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:33.807920Z[Etc/UTC]") public class Configuration { public static final String VERSION = "2025-10"; diff --git a/src/main/java/org/openapitools/inference/client/Pair.java b/src/main/java/org/openapitools/inference/client/Pair.java index b26c59f6..aeb00477 100644 --- a/src/main/java/org/openapitools/inference/client/Pair.java +++ b/src/main/java/org/openapitools/inference/client/Pair.java @@ -13,7 +13,7 @@ package org.openapitools.inference.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:15.202691Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:33.807920Z[Etc/UTC]") public class Pair { private String name = ""; private String value = ""; diff --git a/src/main/java/org/openapitools/inference/client/StringUtil.java b/src/main/java/org/openapitools/inference/client/StringUtil.java index b78f5024..f5e3c8a6 100644 --- a/src/main/java/org/openapitools/inference/client/StringUtil.java +++ b/src/main/java/org/openapitools/inference/client/StringUtil.java @@ -16,7 +16,7 @@ import java.util.Collection; import java.util.Iterator; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:15.202691Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:33.807920Z[Etc/UTC]") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/src/main/java/org/openapitools/inference/client/auth/ApiKeyAuth.java b/src/main/java/org/openapitools/inference/client/auth/ApiKeyAuth.java index 970a9584..348a7f7c 100644 --- a/src/main/java/org/openapitools/inference/client/auth/ApiKeyAuth.java +++ b/src/main/java/org/openapitools/inference/client/auth/ApiKeyAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:15.202691Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:33.807920Z[Etc/UTC]") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/src/main/java/org/openapitools/inference/client/auth/HttpBearerAuth.java b/src/main/java/org/openapitools/inference/client/auth/HttpBearerAuth.java index b204696d..8e248dfb 100644 --- a/src/main/java/org/openapitools/inference/client/auth/HttpBearerAuth.java +++ b/src/main/java/org/openapitools/inference/client/auth/HttpBearerAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:15.202691Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:33.807920Z[Etc/UTC]") public class HttpBearerAuth implements Authentication { private final String scheme; private String bearerToken; diff --git a/src/main/java/org/openapitools/inference/client/model/AbstractOpenApiSchema.java b/src/main/java/org/openapitools/inference/client/model/AbstractOpenApiSchema.java index 0c2188cd..8eb6e5a1 100644 --- a/src/main/java/org/openapitools/inference/client/model/AbstractOpenApiSchema.java +++ b/src/main/java/org/openapitools/inference/client/model/AbstractOpenApiSchema.java @@ -23,7 +23,7 @@ /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:15.202691Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:33.807920Z[Etc/UTC]") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object diff --git a/src/main/java/org/openapitools/inference/client/model/DenseEmbedding.java b/src/main/java/org/openapitools/inference/client/model/DenseEmbedding.java index 84d91672..22341baa 100644 --- a/src/main/java/org/openapitools/inference/client/model/DenseEmbedding.java +++ b/src/main/java/org/openapitools/inference/client/model/DenseEmbedding.java @@ -51,7 +51,7 @@ /** * A dense embedding of a single input */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:15.202691Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:33.807920Z[Etc/UTC]") public class DenseEmbedding { public static final String SERIALIZED_NAME_VALUES = "values"; @SerializedName(SERIALIZED_NAME_VALUES) diff --git a/src/main/java/org/openapitools/inference/client/model/EmbedRequest.java b/src/main/java/org/openapitools/inference/client/model/EmbedRequest.java index 9a665fc1..a45716ae 100644 --- a/src/main/java/org/openapitools/inference/client/model/EmbedRequest.java +++ b/src/main/java/org/openapitools/inference/client/model/EmbedRequest.java @@ -54,7 +54,7 @@ /** * EmbedRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:15.202691Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:33.807920Z[Etc/UTC]") public class EmbedRequest { public static final String SERIALIZED_NAME_MODEL = "model"; @SerializedName(SERIALIZED_NAME_MODEL) diff --git a/src/main/java/org/openapitools/inference/client/model/EmbedRequestInputsInner.java b/src/main/java/org/openapitools/inference/client/model/EmbedRequestInputsInner.java index aa8b04d7..dfe517a8 100644 --- a/src/main/java/org/openapitools/inference/client/model/EmbedRequestInputsInner.java +++ b/src/main/java/org/openapitools/inference/client/model/EmbedRequestInputsInner.java @@ -49,7 +49,7 @@ /** * EmbedRequestInputsInner */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:15.202691Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:33.807920Z[Etc/UTC]") public class EmbedRequestInputsInner { public static final String SERIALIZED_NAME_TEXT = "text"; @SerializedName(SERIALIZED_NAME_TEXT) diff --git a/src/main/java/org/openapitools/inference/client/model/Embedding.java b/src/main/java/org/openapitools/inference/client/model/Embedding.java index 477f62fc..ce9da455 100644 --- a/src/main/java/org/openapitools/inference/client/model/Embedding.java +++ b/src/main/java/org/openapitools/inference/client/model/Embedding.java @@ -61,7 +61,7 @@ import org.openapitools.inference.client.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:15.202691Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:33.807920Z[Etc/UTC]") public class Embedding extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(Embedding.class.getName()); diff --git a/src/main/java/org/openapitools/inference/client/model/EmbeddingsList.java b/src/main/java/org/openapitools/inference/client/model/EmbeddingsList.java index df54caa9..ef6cfdd9 100644 --- a/src/main/java/org/openapitools/inference/client/model/EmbeddingsList.java +++ b/src/main/java/org/openapitools/inference/client/model/EmbeddingsList.java @@ -53,7 +53,7 @@ /** * Embeddings generated for the input. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:15.202691Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:33.807920Z[Etc/UTC]") public class EmbeddingsList { public static final String SERIALIZED_NAME_MODEL = "model"; @SerializedName(SERIALIZED_NAME_MODEL) diff --git a/src/main/java/org/openapitools/inference/client/model/EmbeddingsListUsage.java b/src/main/java/org/openapitools/inference/client/model/EmbeddingsListUsage.java index cb93b546..5f3ecdd4 100644 --- a/src/main/java/org/openapitools/inference/client/model/EmbeddingsListUsage.java +++ b/src/main/java/org/openapitools/inference/client/model/EmbeddingsListUsage.java @@ -49,7 +49,7 @@ /** * Usage statistics for the model inference. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:15.202691Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:33.807920Z[Etc/UTC]") public class EmbeddingsListUsage { public static final String SERIALIZED_NAME_TOTAL_TOKENS = "total_tokens"; @SerializedName(SERIALIZED_NAME_TOTAL_TOKENS) diff --git a/src/main/java/org/openapitools/inference/client/model/ErrorResponse.java b/src/main/java/org/openapitools/inference/client/model/ErrorResponse.java index 936468a6..70577e2f 100644 --- a/src/main/java/org/openapitools/inference/client/model/ErrorResponse.java +++ b/src/main/java/org/openapitools/inference/client/model/ErrorResponse.java @@ -50,7 +50,7 @@ /** * The response shape used for all error responses. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:15.202691Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:33.807920Z[Etc/UTC]") public class ErrorResponse { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) diff --git a/src/main/java/org/openapitools/inference/client/model/ErrorResponseError.java b/src/main/java/org/openapitools/inference/client/model/ErrorResponseError.java index 17e2ac0e..db5d45d1 100644 --- a/src/main/java/org/openapitools/inference/client/model/ErrorResponseError.java +++ b/src/main/java/org/openapitools/inference/client/model/ErrorResponseError.java @@ -49,7 +49,7 @@ /** * Detailed information about the error that occurred. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:15.202691Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:33.807920Z[Etc/UTC]") public class ErrorResponseError { public static final String SERIALIZED_NAME_CODE = "code"; @SerializedName(SERIALIZED_NAME_CODE) diff --git a/src/main/java/org/openapitools/inference/client/model/ModelInfo.java b/src/main/java/org/openapitools/inference/client/model/ModelInfo.java index 12b8b683..f88f23d2 100644 --- a/src/main/java/org/openapitools/inference/client/model/ModelInfo.java +++ b/src/main/java/org/openapitools/inference/client/model/ModelInfo.java @@ -52,7 +52,7 @@ /** * Represents the model configuration including model type, supported parameters, and other model details. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:15.202691Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:33.807920Z[Etc/UTC]") public class ModelInfo { public static final String SERIALIZED_NAME_MODEL = "model"; @SerializedName(SERIALIZED_NAME_MODEL) diff --git a/src/main/java/org/openapitools/inference/client/model/ModelInfoList.java b/src/main/java/org/openapitools/inference/client/model/ModelInfoList.java index 827194dd..621bf34e 100644 --- a/src/main/java/org/openapitools/inference/client/model/ModelInfoList.java +++ b/src/main/java/org/openapitools/inference/client/model/ModelInfoList.java @@ -52,7 +52,7 @@ /** * The list of available models. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:15.202691Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:33.807920Z[Etc/UTC]") public class ModelInfoList { public static final String SERIALIZED_NAME_MODELS = "models"; @SerializedName(SERIALIZED_NAME_MODELS) diff --git a/src/main/java/org/openapitools/inference/client/model/ModelInfoSupportedParameter.java b/src/main/java/org/openapitools/inference/client/model/ModelInfoSupportedParameter.java index 241c34bc..c296cbe7 100644 --- a/src/main/java/org/openapitools/inference/client/model/ModelInfoSupportedParameter.java +++ b/src/main/java/org/openapitools/inference/client/model/ModelInfoSupportedParameter.java @@ -54,7 +54,7 @@ /** * Describes a parameter supported by the model, including parameter value constraints. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:15.202691Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:33.807920Z[Etc/UTC]") public class ModelInfoSupportedParameter { public static final String SERIALIZED_NAME_PARAMETER = "parameter"; @SerializedName(SERIALIZED_NAME_PARAMETER) diff --git a/src/main/java/org/openapitools/inference/client/model/ModelInfoSupportedParameterAllowedValuesInner.java b/src/main/java/org/openapitools/inference/client/model/ModelInfoSupportedParameterAllowedValuesInner.java index 2179d06c..6774caf0 100644 --- a/src/main/java/org/openapitools/inference/client/model/ModelInfoSupportedParameterAllowedValuesInner.java +++ b/src/main/java/org/openapitools/inference/client/model/ModelInfoSupportedParameterAllowedValuesInner.java @@ -50,7 +50,7 @@ import org.openapitools.inference.client.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:15.202691Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:33.807920Z[Etc/UTC]") public class ModelInfoSupportedParameterAllowedValuesInner extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(ModelInfoSupportedParameterAllowedValuesInner.class.getName()); diff --git a/src/main/java/org/openapitools/inference/client/model/ModelInfoSupportedParameterDefault.java b/src/main/java/org/openapitools/inference/client/model/ModelInfoSupportedParameterDefault.java index a1b4fb81..11981e39 100644 --- a/src/main/java/org/openapitools/inference/client/model/ModelInfoSupportedParameterDefault.java +++ b/src/main/java/org/openapitools/inference/client/model/ModelInfoSupportedParameterDefault.java @@ -50,7 +50,7 @@ import org.openapitools.inference.client.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:15.202691Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:33.807920Z[Etc/UTC]") public class ModelInfoSupportedParameterDefault extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(ModelInfoSupportedParameterDefault.class.getName()); diff --git a/src/main/java/org/openapitools/inference/client/model/RankedDocument.java b/src/main/java/org/openapitools/inference/client/model/RankedDocument.java index a65972e3..a64d76fc 100644 --- a/src/main/java/org/openapitools/inference/client/model/RankedDocument.java +++ b/src/main/java/org/openapitools/inference/client/model/RankedDocument.java @@ -52,7 +52,7 @@ /** * A ranked document with a relevance score and an index position. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:15.202691Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:33.807920Z[Etc/UTC]") public class RankedDocument { public static final String SERIALIZED_NAME_INDEX = "index"; @SerializedName(SERIALIZED_NAME_INDEX) diff --git a/src/main/java/org/openapitools/inference/client/model/RerankRequest.java b/src/main/java/org/openapitools/inference/client/model/RerankRequest.java index 3b17ba93..c9c1e7e7 100644 --- a/src/main/java/org/openapitools/inference/client/model/RerankRequest.java +++ b/src/main/java/org/openapitools/inference/client/model/RerankRequest.java @@ -53,7 +53,7 @@ /** * RerankRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:15.202691Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:33.807920Z[Etc/UTC]") public class RerankRequest { public static final String SERIALIZED_NAME_MODEL = "model"; @SerializedName(SERIALIZED_NAME_MODEL) diff --git a/src/main/java/org/openapitools/inference/client/model/RerankResult.java b/src/main/java/org/openapitools/inference/client/model/RerankResult.java index fe7c806e..1a658c5e 100644 --- a/src/main/java/org/openapitools/inference/client/model/RerankResult.java +++ b/src/main/java/org/openapitools/inference/client/model/RerankResult.java @@ -53,7 +53,7 @@ /** * The result of a reranking request. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:15.202691Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:33.807920Z[Etc/UTC]") public class RerankResult { public static final String SERIALIZED_NAME_MODEL = "model"; @SerializedName(SERIALIZED_NAME_MODEL) diff --git a/src/main/java/org/openapitools/inference/client/model/RerankResultUsage.java b/src/main/java/org/openapitools/inference/client/model/RerankResultUsage.java index 2a6f53d3..22043879 100644 --- a/src/main/java/org/openapitools/inference/client/model/RerankResultUsage.java +++ b/src/main/java/org/openapitools/inference/client/model/RerankResultUsage.java @@ -49,7 +49,7 @@ /** * Usage statistics for the model inference. */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:15.202691Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:33.807920Z[Etc/UTC]") public class RerankResultUsage { public static final String SERIALIZED_NAME_RERANK_UNITS = "rerank_units"; @SerializedName(SERIALIZED_NAME_RERANK_UNITS) diff --git a/src/main/java/org/openapitools/inference/client/model/SparseEmbedding.java b/src/main/java/org/openapitools/inference/client/model/SparseEmbedding.java index b401ffa1..fd7ee669 100644 --- a/src/main/java/org/openapitools/inference/client/model/SparseEmbedding.java +++ b/src/main/java/org/openapitools/inference/client/model/SparseEmbedding.java @@ -51,7 +51,7 @@ /** * A sparse embedding of a single input */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-03T18:50:15.202691Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-12T17:52:33.807920Z[Etc/UTC]") public class SparseEmbedding { public static final String SERIALIZED_NAME_SPARSE_VALUES = "sparse_values"; @SerializedName(SERIALIZED_NAME_SPARSE_VALUES) From 41a18c03de5fe44fcccafb82c86ba689e2f4050e Mon Sep 17 00:00:00 2001 From: rohanshah18 Date: Wed, 12 Nov 2025 13:32:49 -0500 Subject: [PATCH 2/2] generate grpc based code --- codegen/buf.yaml | 2 +- .../pinecone/configs/PineconeConnection.java | 2 +- .../proto/CreateNamespaceRequest.java | 826 ++++++++++ .../CreateNamespaceRequestOrBuilder.java | 70 + .../java/io/pinecone/proto/DbData202510.java | 648 ++++++++ .../proto/DeleteNamespaceRequest.java | 12 +- .../DeleteNamespaceRequestOrBuilder.java | 2 +- .../java/io/pinecone/proto/DeleteRequest.java | 48 +- .../proto/DeleteRequestOrBuilder.java | 11 +- .../io/pinecone/proto/DeleteResponse.java | 12 +- .../proto/DeleteResponseOrBuilder.java | 2 +- .../proto/DescribeIndexStatsRequest.java | 36 +- .../DescribeIndexStatsRequestOrBuilder.java | 8 +- .../proto/DescribeIndexStatsResponse.java | 242 ++- .../DescribeIndexStatsResponseOrBuilder.java | 40 +- .../proto/DescribeNamespaceRequest.java | 12 +- .../DescribeNamespaceRequestOrBuilder.java | 2 +- .../proto/FetchByMetadataRequest.java | 1047 +++++++++++++ .../FetchByMetadataRequestOrBuilder.java | 98 ++ .../proto/FetchByMetadataResponse.java | 1365 +++++++++++++++++ .../FetchByMetadataResponseOrBuilder.java | 139 ++ .../java/io/pinecone/proto/FetchRequest.java | 12 +- .../pinecone/proto/FetchRequestOrBuilder.java | 2 +- .../java/io/pinecone/proto/FetchResponse.java | 18 +- .../proto/FetchResponseOrBuilder.java | 2 +- .../java/io/pinecone/proto/IndexedFields.java | 554 +++++++ .../proto/IndexedFieldsOrBuilder.java | 36 + src/main/java/io/pinecone/proto/ListItem.java | 12 +- .../io/pinecone/proto/ListItemOrBuilder.java | 2 +- .../pinecone/proto/ListNamespacesRequest.java | 205 ++- .../proto/ListNamespacesRequestOrBuilder.java | 31 +- .../proto/ListNamespacesResponse.java | 94 +- .../ListNamespacesResponseOrBuilder.java | 12 +- .../java/io/pinecone/proto/ListRequest.java | 12 +- .../pinecone/proto/ListRequestOrBuilder.java | 2 +- .../java/io/pinecone/proto/ListResponse.java | 12 +- .../pinecone/proto/ListResponseOrBuilder.java | 2 +- .../proto/MetadataFieldProperties.java | 460 ++++++ .../MetadataFieldPropertiesOrBuilder.java | 22 + .../io/pinecone/proto/MetadataSchema.java | 733 +++++++++ .../proto/MetadataSchemaOrBuilder.java | 65 + .../pinecone/proto/NamespaceDescription.java | 442 +++++- .../proto/NamespaceDescriptionOrBuilder.java | 44 +- .../io/pinecone/proto/NamespaceSummary.java | 12 +- .../proto/NamespaceSummaryOrBuilder.java | 2 +- .../java/io/pinecone/proto/Pagination.java | 12 +- .../pinecone/proto/PaginationOrBuilder.java | 2 +- .../java/io/pinecone/proto/QueryRequest.java | 36 +- .../pinecone/proto/QueryRequestOrBuilder.java | 8 +- .../java/io/pinecone/proto/QueryResponse.java | 12 +- .../proto/QueryResponseOrBuilder.java | 2 +- .../java/io/pinecone/proto/QueryVector.java | 12 +- .../pinecone/proto/QueryVectorOrBuilder.java | 2 +- .../java/io/pinecone/proto/RequestUnion.java | 12 +- .../pinecone/proto/RequestUnionOrBuilder.java | 2 +- .../java/io/pinecone/proto/ScoredVector.java | 12 +- .../pinecone/proto/ScoredVectorOrBuilder.java | 2 +- .../io/pinecone/proto/SingleQueryResults.java | 12 +- .../proto/SingleQueryResultsOrBuilder.java | 2 +- .../java/io/pinecone/proto/SparseValues.java | 12 +- .../pinecone/proto/SparseValuesOrBuilder.java | 2 +- .../java/io/pinecone/proto/UpdateRequest.java | 400 ++++- .../proto/UpdateRequestOrBuilder.java | 60 +- .../io/pinecone/proto/UpdateResponse.java | 110 +- .../proto/UpdateResponseOrBuilder.java | 13 +- .../java/io/pinecone/proto/UpsertRequest.java | 58 +- .../proto/UpsertRequestOrBuilder.java | 12 +- .../io/pinecone/proto/UpsertResponse.java | 12 +- .../proto/UpsertResponseOrBuilder.java | 2 +- src/main/java/io/pinecone/proto/Usage.java | 12 +- .../io/pinecone/proto/UsageOrBuilder.java | 2 +- src/main/java/io/pinecone/proto/Vector.java | 12 +- .../io/pinecone/proto/VectorOrBuilder.java | 2 +- .../io/pinecone/proto/VectorServiceGrpc.java | 292 +++- 74 files changed, 8173 insertions(+), 368 deletions(-) create mode 100644 src/main/java/io/pinecone/proto/CreateNamespaceRequest.java create mode 100644 src/main/java/io/pinecone/proto/CreateNamespaceRequestOrBuilder.java create mode 100644 src/main/java/io/pinecone/proto/DbData202510.java create mode 100644 src/main/java/io/pinecone/proto/FetchByMetadataRequest.java create mode 100644 src/main/java/io/pinecone/proto/FetchByMetadataRequestOrBuilder.java create mode 100644 src/main/java/io/pinecone/proto/FetchByMetadataResponse.java create mode 100644 src/main/java/io/pinecone/proto/FetchByMetadataResponseOrBuilder.java create mode 100644 src/main/java/io/pinecone/proto/IndexedFields.java create mode 100644 src/main/java/io/pinecone/proto/IndexedFieldsOrBuilder.java create mode 100644 src/main/java/io/pinecone/proto/MetadataFieldProperties.java create mode 100644 src/main/java/io/pinecone/proto/MetadataFieldPropertiesOrBuilder.java create mode 100644 src/main/java/io/pinecone/proto/MetadataSchema.java create mode 100644 src/main/java/io/pinecone/proto/MetadataSchemaOrBuilder.java diff --git a/codegen/buf.yaml b/codegen/buf.yaml index 63eb012b..ea9580df 100644 --- a/codegen/buf.yaml +++ b/codegen/buf.yaml @@ -9,4 +9,4 @@ breaking: deps: - buf.build/googleapis/googleapis modules: - - path: apis/_build/2025-04 \ No newline at end of file + - path: apis/_build/2025-10 \ No newline at end of file diff --git a/src/main/java/io/pinecone/configs/PineconeConnection.java b/src/main/java/io/pinecone/configs/PineconeConnection.java index 523e469f..212bb27b 100644 --- a/src/main/java/io/pinecone/configs/PineconeConnection.java +++ b/src/main/java/io/pinecone/configs/PineconeConnection.java @@ -178,7 +178,7 @@ private ProxyDetector getProxyDetector() { private static Metadata assembleMetadata(PineconeConfig config) { Metadata metadata = new Metadata(); metadata.put(Metadata.Key.of("api-key", Metadata.ASCII_STRING_MARSHALLER), config.getApiKey()); - metadata.put(Metadata.Key.of("X-Pinecone-api-version", Metadata.ASCII_STRING_MARSHALLER), "2025-04"); + metadata.put(Metadata.Key.of("X-Pinecone-api-version", Metadata.ASCII_STRING_MARSHALLER), "2025-10"); return metadata; } diff --git a/src/main/java/io/pinecone/proto/CreateNamespaceRequest.java b/src/main/java/io/pinecone/proto/CreateNamespaceRequest.java new file mode 100644 index 00000000..adf39b3a --- /dev/null +++ b/src/main/java/io/pinecone/proto/CreateNamespaceRequest.java @@ -0,0 +1,826 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: db_data_2025-10.proto +// Protobuf Java Version: 4.29.3 + +package io.pinecone.proto; + +/** + *
+ * The request for the create namespace operation
+ * 
+ * + * Protobuf type {@code CreateNamespaceRequest} + */ +public final class CreateNamespaceRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:CreateNamespaceRequest) + CreateNamespaceRequestOrBuilder { +private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 29, + /* patch= */ 3, + /* suffix= */ "", + CreateNamespaceRequest.class.getName()); + } + // Use CreateNamespaceRequest.newBuilder() to construct. + private CreateNamespaceRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private CreateNamespaceRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.pinecone.proto.DbData202510.internal_static_CreateNamespaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.pinecone.proto.DbData202510.internal_static_CreateNamespaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.pinecone.proto.CreateNamespaceRequest.class, io.pinecone.proto.CreateNamespaceRequest.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+   * The name of the namespace to be created
+   * 
+ * + * string name = 1 [json_name = "name"]; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name of the namespace to be created
+   * 
+ * + * string name = 1 [json_name = "name"]; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCHEMA_FIELD_NUMBER = 2; + private io.pinecone.proto.MetadataSchema schema_; + /** + *
+   * Schema for the behavior of Pinecone's internal metadata index.
+   * By default, all metadata is indexed; when `schema` is present,
+   * only fields which are present in the `fields` object with a
+   * `filterable: true` are indexed.
+   * Note that `filterable: false` is not currently supported.
+   * 
+ * + * optional .MetadataSchema schema = 2 [json_name = "schema"]; + * @return Whether the schema field is set. + */ + @java.lang.Override + public boolean hasSchema() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * Schema for the behavior of Pinecone's internal metadata index.
+   * By default, all metadata is indexed; when `schema` is present,
+   * only fields which are present in the `fields` object with a
+   * `filterable: true` are indexed.
+   * Note that `filterable: false` is not currently supported.
+   * 
+ * + * optional .MetadataSchema schema = 2 [json_name = "schema"]; + * @return The schema. + */ + @java.lang.Override + public io.pinecone.proto.MetadataSchema getSchema() { + return schema_ == null ? io.pinecone.proto.MetadataSchema.getDefaultInstance() : schema_; + } + /** + *
+   * Schema for the behavior of Pinecone's internal metadata index.
+   * By default, all metadata is indexed; when `schema` is present,
+   * only fields which are present in the `fields` object with a
+   * `filterable: true` are indexed.
+   * Note that `filterable: false` is not currently supported.
+   * 
+ * + * optional .MetadataSchema schema = 2 [json_name = "schema"]; + */ + @java.lang.Override + public io.pinecone.proto.MetadataSchemaOrBuilder getSchemaOrBuilder() { + return schema_ == null ? io.pinecone.proto.MetadataSchema.getDefaultInstance() : schema_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getSchema()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSchema()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.pinecone.proto.CreateNamespaceRequest)) { + return super.equals(obj); + } + io.pinecone.proto.CreateNamespaceRequest other = (io.pinecone.proto.CreateNamespaceRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (hasSchema() != other.hasSchema()) return false; + if (hasSchema()) { + if (!getSchema() + .equals(other.getSchema())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasSchema()) { + hash = (37 * hash) + SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getSchema().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.pinecone.proto.CreateNamespaceRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.pinecone.proto.CreateNamespaceRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.pinecone.proto.CreateNamespaceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.pinecone.proto.CreateNamespaceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.pinecone.proto.CreateNamespaceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.pinecone.proto.CreateNamespaceRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.pinecone.proto.CreateNamespaceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.pinecone.proto.CreateNamespaceRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.pinecone.proto.CreateNamespaceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.pinecone.proto.CreateNamespaceRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.pinecone.proto.CreateNamespaceRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.pinecone.proto.CreateNamespaceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.pinecone.proto.CreateNamespaceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * The request for the create namespace operation
+   * 
+ * + * Protobuf type {@code CreateNamespaceRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:CreateNamespaceRequest) + io.pinecone.proto.CreateNamespaceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.pinecone.proto.DbData202510.internal_static_CreateNamespaceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.pinecone.proto.DbData202510.internal_static_CreateNamespaceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.pinecone.proto.CreateNamespaceRequest.class, io.pinecone.proto.CreateNamespaceRequest.Builder.class); + } + + // Construct using io.pinecone.proto.CreateNamespaceRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getSchemaFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + schema_ = null; + if (schemaBuilder_ != null) { + schemaBuilder_.dispose(); + schemaBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.pinecone.proto.DbData202510.internal_static_CreateNamespaceRequest_descriptor; + } + + @java.lang.Override + public io.pinecone.proto.CreateNamespaceRequest getDefaultInstanceForType() { + return io.pinecone.proto.CreateNamespaceRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.pinecone.proto.CreateNamespaceRequest build() { + io.pinecone.proto.CreateNamespaceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.pinecone.proto.CreateNamespaceRequest buildPartial() { + io.pinecone.proto.CreateNamespaceRequest result = new io.pinecone.proto.CreateNamespaceRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.pinecone.proto.CreateNamespaceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.schema_ = schemaBuilder_ == null + ? schema_ + : schemaBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.pinecone.proto.CreateNamespaceRequest) { + return mergeFrom((io.pinecone.proto.CreateNamespaceRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.pinecone.proto.CreateNamespaceRequest other) { + if (other == io.pinecone.proto.CreateNamespaceRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasSchema()) { + mergeSchema(other.getSchema()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getSchemaFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+     * The name of the namespace to be created
+     * 
+ * + * string name = 1 [json_name = "name"]; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name of the namespace to be created
+     * 
+ * + * string name = 1 [json_name = "name"]; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name of the namespace to be created
+     * 
+ * + * string name = 1 [json_name = "name"]; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The name of the namespace to be created
+     * 
+ * + * string name = 1 [json_name = "name"]; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * The name of the namespace to be created
+     * 
+ * + * string name = 1 [json_name = "name"]; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private io.pinecone.proto.MetadataSchema schema_; + private com.google.protobuf.SingleFieldBuilder< + io.pinecone.proto.MetadataSchema, io.pinecone.proto.MetadataSchema.Builder, io.pinecone.proto.MetadataSchemaOrBuilder> schemaBuilder_; + /** + *
+     * Schema for the behavior of Pinecone's internal metadata index.
+     * By default, all metadata is indexed; when `schema` is present,
+     * only fields which are present in the `fields` object with a
+     * `filterable: true` are indexed.
+     * Note that `filterable: false` is not currently supported.
+     * 
+ * + * optional .MetadataSchema schema = 2 [json_name = "schema"]; + * @return Whether the schema field is set. + */ + public boolean hasSchema() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * Schema for the behavior of Pinecone's internal metadata index.
+     * By default, all metadata is indexed; when `schema` is present,
+     * only fields which are present in the `fields` object with a
+     * `filterable: true` are indexed.
+     * Note that `filterable: false` is not currently supported.
+     * 
+ * + * optional .MetadataSchema schema = 2 [json_name = "schema"]; + * @return The schema. + */ + public io.pinecone.proto.MetadataSchema getSchema() { + if (schemaBuilder_ == null) { + return schema_ == null ? io.pinecone.proto.MetadataSchema.getDefaultInstance() : schema_; + } else { + return schemaBuilder_.getMessage(); + } + } + /** + *
+     * Schema for the behavior of Pinecone's internal metadata index.
+     * By default, all metadata is indexed; when `schema` is present,
+     * only fields which are present in the `fields` object with a
+     * `filterable: true` are indexed.
+     * Note that `filterable: false` is not currently supported.
+     * 
+ * + * optional .MetadataSchema schema = 2 [json_name = "schema"]; + */ + public Builder setSchema(io.pinecone.proto.MetadataSchema value) { + if (schemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + schema_ = value; + } else { + schemaBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Schema for the behavior of Pinecone's internal metadata index.
+     * By default, all metadata is indexed; when `schema` is present,
+     * only fields which are present in the `fields` object with a
+     * `filterable: true` are indexed.
+     * Note that `filterable: false` is not currently supported.
+     * 
+ * + * optional .MetadataSchema schema = 2 [json_name = "schema"]; + */ + public Builder setSchema( + io.pinecone.proto.MetadataSchema.Builder builderForValue) { + if (schemaBuilder_ == null) { + schema_ = builderForValue.build(); + } else { + schemaBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Schema for the behavior of Pinecone's internal metadata index.
+     * By default, all metadata is indexed; when `schema` is present,
+     * only fields which are present in the `fields` object with a
+     * `filterable: true` are indexed.
+     * Note that `filterable: false` is not currently supported.
+     * 
+ * + * optional .MetadataSchema schema = 2 [json_name = "schema"]; + */ + public Builder mergeSchema(io.pinecone.proto.MetadataSchema value) { + if (schemaBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + schema_ != null && + schema_ != io.pinecone.proto.MetadataSchema.getDefaultInstance()) { + getSchemaBuilder().mergeFrom(value); + } else { + schema_ = value; + } + } else { + schemaBuilder_.mergeFrom(value); + } + if (schema_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + *
+     * Schema for the behavior of Pinecone's internal metadata index.
+     * By default, all metadata is indexed; when `schema` is present,
+     * only fields which are present in the `fields` object with a
+     * `filterable: true` are indexed.
+     * Note that `filterable: false` is not currently supported.
+     * 
+ * + * optional .MetadataSchema schema = 2 [json_name = "schema"]; + */ + public Builder clearSchema() { + bitField0_ = (bitField0_ & ~0x00000002); + schema_ = null; + if (schemaBuilder_ != null) { + schemaBuilder_.dispose(); + schemaBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Schema for the behavior of Pinecone's internal metadata index.
+     * By default, all metadata is indexed; when `schema` is present,
+     * only fields which are present in the `fields` object with a
+     * `filterable: true` are indexed.
+     * Note that `filterable: false` is not currently supported.
+     * 
+ * + * optional .MetadataSchema schema = 2 [json_name = "schema"]; + */ + public io.pinecone.proto.MetadataSchema.Builder getSchemaBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getSchemaFieldBuilder().getBuilder(); + } + /** + *
+     * Schema for the behavior of Pinecone's internal metadata index.
+     * By default, all metadata is indexed; when `schema` is present,
+     * only fields which are present in the `fields` object with a
+     * `filterable: true` are indexed.
+     * Note that `filterable: false` is not currently supported.
+     * 
+ * + * optional .MetadataSchema schema = 2 [json_name = "schema"]; + */ + public io.pinecone.proto.MetadataSchemaOrBuilder getSchemaOrBuilder() { + if (schemaBuilder_ != null) { + return schemaBuilder_.getMessageOrBuilder(); + } else { + return schema_ == null ? + io.pinecone.proto.MetadataSchema.getDefaultInstance() : schema_; + } + } + /** + *
+     * Schema for the behavior of Pinecone's internal metadata index.
+     * By default, all metadata is indexed; when `schema` is present,
+     * only fields which are present in the `fields` object with a
+     * `filterable: true` are indexed.
+     * Note that `filterable: false` is not currently supported.
+     * 
+ * + * optional .MetadataSchema schema = 2 [json_name = "schema"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.pinecone.proto.MetadataSchema, io.pinecone.proto.MetadataSchema.Builder, io.pinecone.proto.MetadataSchemaOrBuilder> + getSchemaFieldBuilder() { + if (schemaBuilder_ == null) { + schemaBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.pinecone.proto.MetadataSchema, io.pinecone.proto.MetadataSchema.Builder, io.pinecone.proto.MetadataSchemaOrBuilder>( + getSchema(), + getParentForChildren(), + isClean()); + schema_ = null; + } + return schemaBuilder_; + } + + // @@protoc_insertion_point(builder_scope:CreateNamespaceRequest) + } + + // @@protoc_insertion_point(class_scope:CreateNamespaceRequest) + private static final io.pinecone.proto.CreateNamespaceRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.pinecone.proto.CreateNamespaceRequest(); + } + + public static io.pinecone.proto.CreateNamespaceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateNamespaceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.pinecone.proto.CreateNamespaceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/io/pinecone/proto/CreateNamespaceRequestOrBuilder.java b/src/main/java/io/pinecone/proto/CreateNamespaceRequestOrBuilder.java new file mode 100644 index 00000000..d53d609d --- /dev/null +++ b/src/main/java/io/pinecone/proto/CreateNamespaceRequestOrBuilder.java @@ -0,0 +1,70 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: db_data_2025-10.proto +// Protobuf Java Version: 4.29.3 + +package io.pinecone.proto; + +public interface CreateNamespaceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:CreateNamespaceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The name of the namespace to be created
+   * 
+ * + * string name = 1 [json_name = "name"]; + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * The name of the namespace to be created
+   * 
+ * + * string name = 1 [json_name = "name"]; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * Schema for the behavior of Pinecone's internal metadata index.
+   * By default, all metadata is indexed; when `schema` is present,
+   * only fields which are present in the `fields` object with a
+   * `filterable: true` are indexed.
+   * Note that `filterable: false` is not currently supported.
+   * 
+ * + * optional .MetadataSchema schema = 2 [json_name = "schema"]; + * @return Whether the schema field is set. + */ + boolean hasSchema(); + /** + *
+   * Schema for the behavior of Pinecone's internal metadata index.
+   * By default, all metadata is indexed; when `schema` is present,
+   * only fields which are present in the `fields` object with a
+   * `filterable: true` are indexed.
+   * Note that `filterable: false` is not currently supported.
+   * 
+ * + * optional .MetadataSchema schema = 2 [json_name = "schema"]; + * @return The schema. + */ + io.pinecone.proto.MetadataSchema getSchema(); + /** + *
+   * Schema for the behavior of Pinecone's internal metadata index.
+   * By default, all metadata is indexed; when `schema` is present,
+   * only fields which are present in the `fields` object with a
+   * `filterable: true` are indexed.
+   * Note that `filterable: false` is not currently supported.
+   * 
+ * + * optional .MetadataSchema schema = 2 [json_name = "schema"]; + */ + io.pinecone.proto.MetadataSchemaOrBuilder getSchemaOrBuilder(); +} diff --git a/src/main/java/io/pinecone/proto/DbData202510.java b/src/main/java/io/pinecone/proto/DbData202510.java new file mode 100644 index 00000000..59a89cef --- /dev/null +++ b/src/main/java/io/pinecone/proto/DbData202510.java @@ -0,0 +1,648 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: db_data_2025-10.proto +// Protobuf Java Version: 4.29.3 + +package io.pinecone.proto; + +public final class DbData202510 { + private DbData202510() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 29, + /* patch= */ 3, + /* suffix= */ "", + DbData202510.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_SparseValues_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_SparseValues_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_Vector_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_Vector_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_ScoredVector_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_ScoredVector_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_RequestUnion_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_RequestUnion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_UpsertRequest_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_UpsertRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_UpsertResponse_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_UpsertResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_DeleteRequest_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_DeleteRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_DeleteResponse_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_DeleteResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_FetchRequest_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_FetchRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_FetchByMetadataRequest_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_FetchByMetadataRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_FetchByMetadataResponse_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_FetchByMetadataResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_FetchByMetadataResponse_VectorsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_FetchByMetadataResponse_VectorsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_FetchResponse_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_FetchResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_FetchResponse_VectorsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_FetchResponse_VectorsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_ListRequest_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_ListRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_Pagination_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_Pagination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_ListItem_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_ListItem_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_ListResponse_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_ListResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_QueryVector_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_QueryVector_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_QueryRequest_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_QueryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_SingleQueryResults_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_SingleQueryResults_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_QueryResponse_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_QueryResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_Usage_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_Usage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_UpdateRequest_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_UpdateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_UpdateResponse_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_UpdateResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_DescribeIndexStatsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_DescribeIndexStatsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_NamespaceSummary_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_NamespaceSummary_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_ListNamespacesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_ListNamespacesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_ListNamespacesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_ListNamespacesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_DescribeNamespaceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_DescribeNamespaceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_CreateNamespaceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_CreateNamespaceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_IndexedFields_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_IndexedFields_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_NamespaceDescription_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_NamespaceDescription_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_DeleteNamespaceRequest_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_DeleteNamespaceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_DescribeIndexStatsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_DescribeIndexStatsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_DescribeIndexStatsResponse_NamespacesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_DescribeIndexStatsResponse_NamespacesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_MetadataFieldProperties_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_MetadataFieldProperties_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_MetadataSchema_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_MetadataSchema_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_MetadataSchema_FieldsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_MetadataSchema_FieldsEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\025db_data_2025-10.proto\032\034google/protobuf" + + "/struct.proto\032\034google/api/annotations.pr" + + "oto\032\037google/api/field_behavior.proto\"J\n\014" + + "SparseValues\022\035\n\007indices\030\001 \003(\rB\003\340A\002R\007indi" + + "ces\022\033\n\006values\030\002 \003(\002B\003\340A\002R\006values\"\236\001\n\006Vec" + + "tor\022\023\n\002id\030\001 \001(\tB\003\340A\002R\002id\022\026\n\006values\030\002 \003(\002" + + "R\006values\0222\n\rsparse_values\030\004 \001(\0132\r.Sparse" + + "ValuesR\014sparseValues\0223\n\010metadata\030\003 \001(\0132\027" + + ".google.protobuf.StructR\010metadata\"\272\001\n\014Sc" + + "oredVector\022\023\n\002id\030\001 \001(\tB\003\340A\002R\002id\022\024\n\005score" + + "\030\002 \001(\002R\005score\022\026\n\006values\030\003 \003(\002R\006values\0222\n" + + "\rsparse_values\030\005 \001(\0132\r.SparseValuesR\014spa" + + "rseValues\0223\n\010metadata\030\004 \001(\0132\027.google.pro" + + "tobuf.StructR\010metadata\"\241\001\n\014RequestUnion\022" + + "(\n\006upsert\030\001 \001(\0132\016.UpsertRequestH\000R\006upser" + + "t\022(\n\006delete\030\002 \001(\0132\016.DeleteRequestH\000R\006del" + + "ete\022(\n\006update\030\003 \001(\0132\016.UpdateRequestH\000R\006u" + + "pdateB\023\n\021RequestUnionInner\"U\n\rUpsertRequ" + + "est\022&\n\007vectors\030\001 \003(\0132\007.VectorB\003\340A\002R\007vect" + + "ors\022\034\n\tnamespace\030\002 \001(\tR\tnamespace\"7\n\016Ups" + + "ertResponse\022%\n\016upserted_count\030\001 \001(\rR\rups" + + "ertedCount\"\217\001\n\rDeleteRequest\022\020\n\003ids\030\001 \003(" + + "\tR\003ids\022\035\n\ndelete_all\030\002 \001(\010R\tdeleteAll\022\034\n" + + "\tnamespace\030\003 \001(\tR\tnamespace\022/\n\006filter\030\004 " + + "\001(\0132\027.google.protobuf.StructR\006filter\"\020\n\016" + + "DeleteResponse\"C\n\014FetchRequest\022\025\n\003ids\030\001 " + + "\003(\tB\003\340A\002R\003ids\022\034\n\tnamespace\030\002 \001(\tR\tnamesp" + + "ace\"\341\001\n\026FetchByMetadataRequest\022\034\n\tnamesp" + + "ace\030\001 \001(\tR\tnamespace\0224\n\006filter\030\002 \001(\0132\027.g" + + "oogle.protobuf.StructH\000R\006filter\210\001\001\022\031\n\005li" + + "mit\030\003 \001(\rH\001R\005limit\210\001\001\022.\n\020pagination_toke" + + "n\030\004 \001(\tH\002R\017paginationToken\210\001\001B\t\n\007_filter" + + "B\010\n\006_limitB\023\n\021_pagination_token\"\253\002\n\027Fetc" + + "hByMetadataResponse\022?\n\007vectors\030\001 \003(\0132%.F" + + "etchByMetadataResponse.VectorsEntryR\007vec" + + "tors\022\034\n\tnamespace\030\002 \001(\tR\tnamespace\022!\n\005us" + + "age\030\003 \001(\0132\006.UsageH\000R\005usage\210\001\001\0220\n\npaginat" + + "ion\030\004 \001(\0132\013.PaginationH\001R\npagination\210\001\001\032" + + "C\n\014VectorsEntry\022\020\n\003key\030\001 \001(\tR\003key\022\035\n\005val" + + "ue\030\002 \001(\0132\007.VectorR\005value:\0028\001B\010\n\006_usageB\r" + + "\n\013_pagination\"\326\001\n\rFetchResponse\0225\n\007vecto" + + "rs\030\001 \003(\0132\033.FetchResponse.VectorsEntryR\007v" + + "ectors\022\034\n\tnamespace\030\002 \001(\tR\tnamespace\022!\n\005" + + "usage\030\003 \001(\0132\006.UsageH\000R\005usage\210\001\001\032C\n\014Vecto" + + "rsEntry\022\020\n\003key\030\001 \001(\tR\003key\022\035\n\005value\030\002 \001(\013" + + "2\007.VectorR\005value:\0028\001B\010\n\006_usage\"\275\001\n\013ListR" + + "equest\022\033\n\006prefix\030\001 \001(\tH\000R\006prefix\210\001\001\022\031\n\005l" + + "imit\030\002 \001(\rH\001R\005limit\210\001\001\022.\n\020pagination_tok" + + "en\030\003 \001(\tH\002R\017paginationToken\210\001\001\022\034\n\tnamesp" + + "ace\030\004 \001(\tR\tnamespaceB\t\n\007_prefixB\010\n\006_limi" + + "tB\023\n\021_pagination_token\" \n\nPagination\022\022\n\004" + + "next\030\001 \001(\tR\004next\"\032\n\010ListItem\022\016\n\002id\030\001 \001(\t" + + "R\002id\"\277\001\n\014ListResponse\022#\n\007vectors\030\001 \003(\0132\t" + + ".ListItemR\007vectors\0220\n\npagination\030\002 \001(\0132\013" + + ".PaginationH\000R\npagination\210\001\001\022\034\n\tnamespac" + + "e\030\003 \001(\tR\tnamespace\022!\n\005usage\030\004 \001(\0132\006.Usag" + + "eH\001R\005usage\210\001\001B\r\n\013_paginationB\010\n\006_usage\"\275" + + "\001\n\013QueryVector\022\026\n\006values\030\001 \003(\002R\006values\0222" + + "\n\rsparse_values\030\005 \001(\0132\r.SparseValuesR\014sp" + + "arseValues\022\023\n\005top_k\030\002 \001(\rR\004topK\022\034\n\tnames" + + "pace\030\003 \001(\tR\tnamespace\022/\n\006filter\030\004 \001(\0132\027." + + "google.protobuf.StructR\006filter\"\321\002\n\014Query" + + "Request\022\034\n\tnamespace\030\001 \001(\tR\tnamespace\022\030\n" + + "\005top_k\030\002 \001(\rB\003\340A\002R\004topK\022/\n\006filter\030\003 \001(\0132" + + "\027.google.protobuf.StructR\006filter\022%\n\016incl" + + "ude_values\030\004 \001(\010R\rincludeValues\022)\n\020inclu" + + "de_metadata\030\005 \001(\010R\017includeMetadata\022*\n\007qu" + + "eries\030\006 \003(\0132\014.QueryVectorB\002\030\001R\007queries\022\026" + + "\n\006vector\030\007 \003(\002R\006vector\0222\n\rsparse_vector\030" + + "\t \001(\0132\r.SparseValuesR\014sparseVector\022\016\n\002id" + + "\030\010 \001(\tR\002id\"[\n\022SingleQueryResults\022\'\n\007matc" + + "hes\030\001 \003(\0132\r.ScoredVectorR\007matches\022\034\n\tnam" + + "espace\030\002 \001(\tR\tnamespace\"\266\001\n\rQueryRespons" + + "e\0221\n\007results\030\001 \003(\0132\023.SingleQueryResultsB" + + "\002\030\001R\007results\022\'\n\007matches\030\002 \003(\0132\r.ScoredVe" + + "ctorR\007matches\022\034\n\tnamespace\030\003 \001(\tR\tnamesp" + + "ace\022!\n\005usage\030\004 \001(\0132\006.UsageH\000R\005usage\210\001\001B\010" + + "\n\006_usage\":\n\005Usage\022\"\n\nread_units\030\001 \001(\rH\000R" + + "\treadUnits\210\001\001B\r\n\013_read_units\"\260\002\n\rUpdateR" + + "equest\022\016\n\002id\030\001 \001(\tR\002id\022\026\n\006values\030\002 \003(\002R\006" + + "values\0222\n\rsparse_values\030\005 \001(\0132\r.SparseVa" + + "luesR\014sparseValues\022:\n\014set_metadata\030\003 \001(\013" + + "2\027.google.protobuf.StructR\013setMetadata\022\034" + + "\n\tnamespace\030\004 \001(\tR\tnamespace\0224\n\006filter\030\006" + + " \001(\0132\027.google.protobuf.StructH\000R\006filter\210" + + "\001\001\022\034\n\007dry_run\030\007 \001(\010H\001R\006dryRun\210\001\001B\t\n\007_fil" + + "terB\n\n\010_dry_run\"R\n\016UpdateResponse\022,\n\017mat" + + "ched_records\030\001 \001(\005H\000R\016matchedRecords\210\001\001B" + + "\022\n\020_matched_records\"L\n\031DescribeIndexStat" + + "sRequest\022/\n\006filter\030\001 \001(\0132\027.google.protob" + + "uf.StructR\006filter\"5\n\020NamespaceSummary\022!\n" + + "\014vector_count\030\001 \001(\rR\013vectorCount\"\251\001\n\025Lis" + + "tNamespacesRequest\022.\n\020pagination_token\030\001" + + " \001(\tH\000R\017paginationToken\210\001\001\022\031\n\005limit\030\002 \001(" + + "\rH\001R\005limit\210\001\001\022\033\n\006prefix\030\003 \001(\tH\002R\006prefix\210" + + "\001\001B\023\n\021_pagination_tokenB\010\n\006_limitB\t\n\007_pr" + + "efix\"\261\001\n\026ListNamespacesResponse\0225\n\nnames" + + "paces\030\001 \003(\0132\025.NamespaceDescriptionR\nname" + + "spaces\0220\n\npagination\030\002 \001(\0132\013.PaginationH" + + "\000R\npagination\210\001\001\022\037\n\013total_count\030\003 \001(\005R\nt" + + "otalCountB\r\n\013_pagination\"8\n\030DescribeName" + + "spaceRequest\022\034\n\tnamespace\030\001 \001(\tR\tnamespa" + + "ce\"e\n\026CreateNamespaceRequest\022\022\n\004name\030\001 \001" + + "(\tR\004name\022,\n\006schema\030\002 \001(\0132\017.MetadataSchem" + + "aH\000R\006schema\210\001\001B\t\n\007_schema\"\'\n\rIndexedFiel" + + "ds\022\026\n\006fields\030\001 \003(\tR\006fields\"\325\001\n\024Namespace" + + "Description\022\022\n\004name\030\001 \001(\tR\004name\022!\n\014recor" + + "d_count\030\002 \001(\004R\013recordCount\022,\n\006schema\030\003 \001" + + "(\0132\017.MetadataSchemaH\000R\006schema\210\001\001\022:\n\016inde" + + "xed_fields\030\004 \001(\0132\016.IndexedFieldsH\001R\rinde" + + "xedFields\210\001\001B\t\n\007_schemaB\021\n\017_indexed_fiel" + + "ds\"6\n\026DeleteNamespaceRequest\022\034\n\tnamespac" + + "e\030\001 \001(\tR\tnamespace\"\246\004\n\032DescribeIndexStat" + + "sResponse\022K\n\nnamespaces\030\001 \003(\0132+.Describe" + + "IndexStatsResponse.NamespacesEntryR\nname" + + "spaces\022!\n\tdimension\030\002 \001(\rH\000R\tdimension\210\001" + + "\001\022%\n\016index_fullness\030\003 \001(\002R\rindexFullness" + + "\022,\n\022total_vector_count\030\004 \001(\rR\020totalVecto" + + "rCount\022\033\n\006metric\030\005 \001(\tH\001R\006metric\210\001\001\022$\n\013v" + + "ector_type\030\006 \001(\tH\002R\nvectorType\210\001\001\022,\n\017mem" + + "ory_fullness\030\007 \001(\002H\003R\016memoryFullness\210\001\001\022" + + ".\n\020storage_fullness\030\010 \001(\002H\004R\017storageFull" + + "ness\210\001\001\032P\n\017NamespacesEntry\022\020\n\003key\030\001 \001(\tR" + + "\003key\022\'\n\005value\030\002 \001(\0132\021.NamespaceSummaryR\005" + + "value:\0028\001B\014\n\n_dimensionB\t\n\007_metricB\016\n\014_v" + + "ector_typeB\022\n\020_memory_fullnessB\023\n\021_stora" + + "ge_fullness\"9\n\027MetadataFieldProperties\022\036" + + "\n\nfilterable\030\001 \001(\010R\nfilterable\"\232\001\n\016Metad" + + "ataSchema\0223\n\006fields\030\001 \003(\0132\033.MetadataSche" + + "ma.FieldsEntryR\006fields\032S\n\013FieldsEntry\022\020\n" + + "\003key\030\001 \001(\tR\003key\022.\n\005value\030\002 \001(\0132\030.Metadat" + + "aFieldPropertiesR\005value:\0028\0012\234\010\n\rVectorSe" + + "rvice\022E\n\006Upsert\022\016.UpsertRequest\032\017.Upsert" + + "Response\"\032\202\323\344\223\002\024\"\017/vectors/upsert:\001*\022X\n\006" + + "Delete\022\016.DeleteRequest\032\017.DeleteResponse\"" + + "-\202\323\344\223\002\'\"\017/vectors/delete:\001*Z\021*\017/vectors/" + + "delete\022>\n\005Fetch\022\r.FetchRequest\032\016.FetchRe" + + "sponse\"\026\202\323\344\223\002\020\022\016/vectors/fetch\022:\n\004List\022\014" + + ".ListRequest\032\r.ListResponse\"\025\202\323\344\223\002\017\022\r/ve" + + "ctors/list\0229\n\005Query\022\r.QueryRequest\032\016.Que" + + "ryResponse\"\021\202\323\344\223\002\013\"\006/query:\001*\022E\n\006Update\022" + + "\016.UpdateRequest\032\017.UpdateResponse\"\032\202\323\344\223\002\024" + + "\"\017/vectors/update:\001*\022\210\001\n\022DescribeIndexSt" + + "ats\022\032.DescribeIndexStatsRequest\032\033.Descri" + + "beIndexStatsResponse\"9\202\323\344\223\0023\"\025/describe_" + + "index_stats:\001*Z\027\022\025/describe_index_stats\022" + + "V\n\016ListNamespaces\022\026.ListNamespacesReques" + + "t\032\027.ListNamespacesResponse\"\023\202\323\344\223\002\r\022\013/nam" + + "espaces\022f\n\021DescribeNamespace\022\031.DescribeN" + + "amespaceRequest\032\025.NamespaceDescription\"\037" + + "\202\323\344\223\002\031\022\027/namespaces/{namespace}\022\\\n\017Delet" + + "eNamespace\022\027.DeleteNamespaceRequest\032\017.De" + + "leteResponse\"\037\202\323\344\223\002\031*\027/namespaces/{names" + + "pace}\022V\n\017CreateNamespace\022\027.CreateNamespa" + + "ceRequest\032\025.NamespaceDescription\"\023\202\323\344\223\002\r" + + "\"\013/namespaces\022k\n\017FetchByMetadata\022\027.Fetch" + + "ByMetadataRequest\032\030.FetchByMetadataRespo" + + "nse\"%\202\323\344\223\002\037\"\032/vectors/fetch_by_metadata:" + + "\001*BS\n\021io.pinecone.protoP\001Z * If specified, the metadata filter here will be used to select the vectors to delete. This is mutually exclusive * with specifying ids to delete in the ids param or using `delete_all=True`. - * For guidance and examples, see [Understanding metadata](https://docs.pinecone.io/guides/data/understanding-metadata). - * Serverless indexes do not support delete by metadata. Instead, you can use the `list` operation to fetch the vector IDs based on their common ID prefix and then delete the records by ID. + * For guidance and examples, see [Delete data](https://docs.pinecone.io/guides/manage-data/delete-data#delete-records-by-metadata). * * * .google.protobuf.Struct filter = 4 [json_name = "filter"]; @@ -186,8 +185,7 @@ public boolean hasFilter() { *
    * If specified, the metadata filter here will be used to select the vectors to delete. This is mutually exclusive
    * with specifying ids to delete in the ids param or using `delete_all=True`.
-   * For guidance and examples, see [Understanding metadata](https://docs.pinecone.io/guides/data/understanding-metadata).
-   * Serverless indexes do not support delete by metadata. Instead, you can use the `list` operation to fetch the vector IDs based on their common ID prefix and then delete the records by ID.
+   * For guidance and examples, see [Delete data](https://docs.pinecone.io/guides/manage-data/delete-data#delete-records-by-metadata).
    * 
* * .google.protobuf.Struct filter = 4 [json_name = "filter"]; @@ -201,8 +199,7 @@ public com.google.protobuf.Struct getFilter() { *
    * If specified, the metadata filter here will be used to select the vectors to delete. This is mutually exclusive
    * with specifying ids to delete in the ids param or using `delete_all=True`.
-   * For guidance and examples, see [Understanding metadata](https://docs.pinecone.io/guides/data/understanding-metadata).
-   * Serverless indexes do not support delete by metadata. Instead, you can use the `list` operation to fetch the vector IDs based on their common ID prefix and then delete the records by ID.
+   * For guidance and examples, see [Delete data](https://docs.pinecone.io/guides/manage-data/delete-data#delete-records-by-metadata).
    * 
* * .google.protobuf.Struct filter = 4 [json_name = "filter"]; @@ -426,13 +423,13 @@ public static final class Builder extends io.pinecone.proto.DeleteRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.pinecone.proto.DbData202504.internal_static_DeleteRequest_descriptor; + return io.pinecone.proto.DbData202510.internal_static_DeleteRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.pinecone.proto.DbData202504.internal_static_DeleteRequest_fieldAccessorTable + return io.pinecone.proto.DbData202510.internal_static_DeleteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( io.pinecone.proto.DeleteRequest.class, io.pinecone.proto.DeleteRequest.Builder.class); } @@ -472,7 +469,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.pinecone.proto.DbData202504.internal_static_DeleteRequest_descriptor; + return io.pinecone.proto.DbData202510.internal_static_DeleteRequest_descriptor; } @java.lang.Override @@ -908,8 +905,7 @@ public Builder setNamespaceBytes( *
      * If specified, the metadata filter here will be used to select the vectors to delete. This is mutually exclusive
      * with specifying ids to delete in the ids param or using `delete_all=True`.
-     * For guidance and examples, see [Understanding metadata](https://docs.pinecone.io/guides/data/understanding-metadata).
-     * Serverless indexes do not support delete by metadata. Instead, you can use the `list` operation to fetch the vector IDs based on their common ID prefix and then delete the records by ID.
+     * For guidance and examples, see [Delete data](https://docs.pinecone.io/guides/manage-data/delete-data#delete-records-by-metadata).
      * 
* * .google.protobuf.Struct filter = 4 [json_name = "filter"]; @@ -922,8 +918,7 @@ public boolean hasFilter() { *
      * If specified, the metadata filter here will be used to select the vectors to delete. This is mutually exclusive
      * with specifying ids to delete in the ids param or using `delete_all=True`.
-     * For guidance and examples, see [Understanding metadata](https://docs.pinecone.io/guides/data/understanding-metadata).
-     * Serverless indexes do not support delete by metadata. Instead, you can use the `list` operation to fetch the vector IDs based on their common ID prefix and then delete the records by ID.
+     * For guidance and examples, see [Delete data](https://docs.pinecone.io/guides/manage-data/delete-data#delete-records-by-metadata).
      * 
* * .google.protobuf.Struct filter = 4 [json_name = "filter"]; @@ -940,8 +935,7 @@ public com.google.protobuf.Struct getFilter() { *
      * If specified, the metadata filter here will be used to select the vectors to delete. This is mutually exclusive
      * with specifying ids to delete in the ids param or using `delete_all=True`.
-     * For guidance and examples, see [Understanding metadata](https://docs.pinecone.io/guides/data/understanding-metadata).
-     * Serverless indexes do not support delete by metadata. Instead, you can use the `list` operation to fetch the vector IDs based on their common ID prefix and then delete the records by ID.
+     * For guidance and examples, see [Delete data](https://docs.pinecone.io/guides/manage-data/delete-data#delete-records-by-metadata).
      * 
* * .google.protobuf.Struct filter = 4 [json_name = "filter"]; @@ -963,8 +957,7 @@ public Builder setFilter(com.google.protobuf.Struct value) { *
      * If specified, the metadata filter here will be used to select the vectors to delete. This is mutually exclusive
      * with specifying ids to delete in the ids param or using `delete_all=True`.
-     * For guidance and examples, see [Understanding metadata](https://docs.pinecone.io/guides/data/understanding-metadata).
-     * Serverless indexes do not support delete by metadata. Instead, you can use the `list` operation to fetch the vector IDs based on their common ID prefix and then delete the records by ID.
+     * For guidance and examples, see [Delete data](https://docs.pinecone.io/guides/manage-data/delete-data#delete-records-by-metadata).
      * 
* * .google.protobuf.Struct filter = 4 [json_name = "filter"]; @@ -984,8 +977,7 @@ public Builder setFilter( *
      * If specified, the metadata filter here will be used to select the vectors to delete. This is mutually exclusive
      * with specifying ids to delete in the ids param or using `delete_all=True`.
-     * For guidance and examples, see [Understanding metadata](https://docs.pinecone.io/guides/data/understanding-metadata).
-     * Serverless indexes do not support delete by metadata. Instead, you can use the `list` operation to fetch the vector IDs based on their common ID prefix and then delete the records by ID.
+     * For guidance and examples, see [Delete data](https://docs.pinecone.io/guides/manage-data/delete-data#delete-records-by-metadata).
      * 
* * .google.protobuf.Struct filter = 4 [json_name = "filter"]; @@ -1012,8 +1004,7 @@ public Builder mergeFilter(com.google.protobuf.Struct value) { *
      * If specified, the metadata filter here will be used to select the vectors to delete. This is mutually exclusive
      * with specifying ids to delete in the ids param or using `delete_all=True`.
-     * For guidance and examples, see [Understanding metadata](https://docs.pinecone.io/guides/data/understanding-metadata).
-     * Serverless indexes do not support delete by metadata. Instead, you can use the `list` operation to fetch the vector IDs based on their common ID prefix and then delete the records by ID.
+     * For guidance and examples, see [Delete data](https://docs.pinecone.io/guides/manage-data/delete-data#delete-records-by-metadata).
      * 
* * .google.protobuf.Struct filter = 4 [json_name = "filter"]; @@ -1032,8 +1023,7 @@ public Builder clearFilter() { *
      * If specified, the metadata filter here will be used to select the vectors to delete. This is mutually exclusive
      * with specifying ids to delete in the ids param or using `delete_all=True`.
-     * For guidance and examples, see [Understanding metadata](https://docs.pinecone.io/guides/data/understanding-metadata).
-     * Serverless indexes do not support delete by metadata. Instead, you can use the `list` operation to fetch the vector IDs based on their common ID prefix and then delete the records by ID.
+     * For guidance and examples, see [Delete data](https://docs.pinecone.io/guides/manage-data/delete-data#delete-records-by-metadata).
      * 
* * .google.protobuf.Struct filter = 4 [json_name = "filter"]; @@ -1047,8 +1037,7 @@ public com.google.protobuf.Struct.Builder getFilterBuilder() { *
      * If specified, the metadata filter here will be used to select the vectors to delete. This is mutually exclusive
      * with specifying ids to delete in the ids param or using `delete_all=True`.
-     * For guidance and examples, see [Understanding metadata](https://docs.pinecone.io/guides/data/understanding-metadata).
-     * Serverless indexes do not support delete by metadata. Instead, you can use the `list` operation to fetch the vector IDs based on their common ID prefix and then delete the records by ID.
+     * For guidance and examples, see [Delete data](https://docs.pinecone.io/guides/manage-data/delete-data#delete-records-by-metadata).
      * 
* * .google.protobuf.Struct filter = 4 [json_name = "filter"]; @@ -1065,8 +1054,7 @@ public com.google.protobuf.StructOrBuilder getFilterOrBuilder() { *
      * If specified, the metadata filter here will be used to select the vectors to delete. This is mutually exclusive
      * with specifying ids to delete in the ids param or using `delete_all=True`.
-     * For guidance and examples, see [Understanding metadata](https://docs.pinecone.io/guides/data/understanding-metadata).
-     * Serverless indexes do not support delete by metadata. Instead, you can use the `list` operation to fetch the vector IDs based on their common ID prefix and then delete the records by ID.
+     * For guidance and examples, see [Delete data](https://docs.pinecone.io/guides/manage-data/delete-data#delete-records-by-metadata).
      * 
* * .google.protobuf.Struct filter = 4 [json_name = "filter"]; diff --git a/src/main/java/io/pinecone/proto/DeleteRequestOrBuilder.java b/src/main/java/io/pinecone/proto/DeleteRequestOrBuilder.java index 85727f24..ebe9894e 100644 --- a/src/main/java/io/pinecone/proto/DeleteRequestOrBuilder.java +++ b/src/main/java/io/pinecone/proto/DeleteRequestOrBuilder.java @@ -1,6 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: db_data_2025-04.proto +// source: db_data_2025-10.proto // Protobuf Java Version: 4.29.3 package io.pinecone.proto; @@ -84,8 +84,7 @@ public interface DeleteRequestOrBuilder extends *
    * If specified, the metadata filter here will be used to select the vectors to delete. This is mutually exclusive
    * with specifying ids to delete in the ids param or using `delete_all=True`.
-   * For guidance and examples, see [Understanding metadata](https://docs.pinecone.io/guides/data/understanding-metadata).
-   * Serverless indexes do not support delete by metadata. Instead, you can use the `list` operation to fetch the vector IDs based on their common ID prefix and then delete the records by ID.
+   * For guidance and examples, see [Delete data](https://docs.pinecone.io/guides/manage-data/delete-data#delete-records-by-metadata).
    * 
* * .google.protobuf.Struct filter = 4 [json_name = "filter"]; @@ -96,8 +95,7 @@ public interface DeleteRequestOrBuilder extends *
    * If specified, the metadata filter here will be used to select the vectors to delete. This is mutually exclusive
    * with specifying ids to delete in the ids param or using `delete_all=True`.
-   * For guidance and examples, see [Understanding metadata](https://docs.pinecone.io/guides/data/understanding-metadata).
-   * Serverless indexes do not support delete by metadata. Instead, you can use the `list` operation to fetch the vector IDs based on their common ID prefix and then delete the records by ID.
+   * For guidance and examples, see [Delete data](https://docs.pinecone.io/guides/manage-data/delete-data#delete-records-by-metadata).
    * 
* * .google.protobuf.Struct filter = 4 [json_name = "filter"]; @@ -108,8 +106,7 @@ public interface DeleteRequestOrBuilder extends *
    * If specified, the metadata filter here will be used to select the vectors to delete. This is mutually exclusive
    * with specifying ids to delete in the ids param or using `delete_all=True`.
-   * For guidance and examples, see [Understanding metadata](https://docs.pinecone.io/guides/data/understanding-metadata).
-   * Serverless indexes do not support delete by metadata. Instead, you can use the `list` operation to fetch the vector IDs based on their common ID prefix and then delete the records by ID.
+   * For guidance and examples, see [Delete data](https://docs.pinecone.io/guides/manage-data/delete-data#delete-records-by-metadata).
    * 
* * .google.protobuf.Struct filter = 4 [json_name = "filter"]; diff --git a/src/main/java/io/pinecone/proto/DeleteResponse.java b/src/main/java/io/pinecone/proto/DeleteResponse.java index 65653242..90235c05 100644 --- a/src/main/java/io/pinecone/proto/DeleteResponse.java +++ b/src/main/java/io/pinecone/proto/DeleteResponse.java @@ -1,6 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: db_data_2025-04.proto +// source: db_data_2025-10.proto // Protobuf Java Version: 4.29.3 package io.pinecone.proto; @@ -35,13 +35,13 @@ private DeleteResponse() { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.pinecone.proto.DbData202504.internal_static_DeleteResponse_descriptor; + return io.pinecone.proto.DbData202510.internal_static_DeleteResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.pinecone.proto.DbData202504.internal_static_DeleteResponse_fieldAccessorTable + return io.pinecone.proto.DbData202510.internal_static_DeleteResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( io.pinecone.proto.DeleteResponse.class, io.pinecone.proto.DeleteResponse.Builder.class); } @@ -205,13 +205,13 @@ public static final class Builder extends io.pinecone.proto.DeleteResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.pinecone.proto.DbData202504.internal_static_DeleteResponse_descriptor; + return io.pinecone.proto.DbData202510.internal_static_DeleteResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.pinecone.proto.DbData202504.internal_static_DeleteResponse_fieldAccessorTable + return io.pinecone.proto.DbData202510.internal_static_DeleteResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( io.pinecone.proto.DeleteResponse.class, io.pinecone.proto.DeleteResponse.Builder.class); } @@ -235,7 +235,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.pinecone.proto.DbData202504.internal_static_DeleteResponse_descriptor; + return io.pinecone.proto.DbData202510.internal_static_DeleteResponse_descriptor; } @java.lang.Override diff --git a/src/main/java/io/pinecone/proto/DeleteResponseOrBuilder.java b/src/main/java/io/pinecone/proto/DeleteResponseOrBuilder.java index e38fead4..8ab8b4cd 100644 --- a/src/main/java/io/pinecone/proto/DeleteResponseOrBuilder.java +++ b/src/main/java/io/pinecone/proto/DeleteResponseOrBuilder.java @@ -1,6 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: db_data_2025-04.proto +// source: db_data_2025-10.proto // Protobuf Java Version: 4.29.3 package io.pinecone.proto; diff --git a/src/main/java/io/pinecone/proto/DescribeIndexStatsRequest.java b/src/main/java/io/pinecone/proto/DescribeIndexStatsRequest.java index 257bf1f8..50a64bb3 100644 --- a/src/main/java/io/pinecone/proto/DescribeIndexStatsRequest.java +++ b/src/main/java/io/pinecone/proto/DescribeIndexStatsRequest.java @@ -1,6 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: db_data_2025-04.proto +// source: db_data_2025-10.proto // Protobuf Java Version: 4.29.3 package io.pinecone.proto; @@ -35,13 +35,13 @@ private DescribeIndexStatsRequest() { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.pinecone.proto.DbData202504.internal_static_DescribeIndexStatsRequest_descriptor; + return io.pinecone.proto.DbData202510.internal_static_DescribeIndexStatsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.pinecone.proto.DbData202504.internal_static_DescribeIndexStatsRequest_fieldAccessorTable + return io.pinecone.proto.DbData202510.internal_static_DescribeIndexStatsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( io.pinecone.proto.DescribeIndexStatsRequest.class, io.pinecone.proto.DescribeIndexStatsRequest.Builder.class); } @@ -53,7 +53,7 @@ private DescribeIndexStatsRequest() { *
    * If this parameter is present, the operation only returns statistics
    * for vectors that satisfy the filter.
-   * See https://docs.pinecone.io/guides/data/filtering-with-metadata.
+   * See https://docs.pinecone.io/guides/search/filter-with-metadata.
    * 
* * .google.protobuf.Struct filter = 1 [json_name = "filter"]; @@ -67,7 +67,7 @@ public boolean hasFilter() { *
    * If this parameter is present, the operation only returns statistics
    * for vectors that satisfy the filter.
-   * See https://docs.pinecone.io/guides/data/filtering-with-metadata.
+   * See https://docs.pinecone.io/guides/search/filter-with-metadata.
    * 
* * .google.protobuf.Struct filter = 1 [json_name = "filter"]; @@ -81,7 +81,7 @@ public com.google.protobuf.Struct getFilter() { *
    * If this parameter is present, the operation only returns statistics
    * for vectors that satisfy the filter.
-   * See https://docs.pinecone.io/guides/data/filtering-with-metadata.
+   * See https://docs.pinecone.io/guides/search/filter-with-metadata.
    * 
* * .google.protobuf.Struct filter = 1 [json_name = "filter"]; @@ -266,13 +266,13 @@ public static final class Builder extends io.pinecone.proto.DescribeIndexStatsRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.pinecone.proto.DbData202504.internal_static_DescribeIndexStatsRequest_descriptor; + return io.pinecone.proto.DbData202510.internal_static_DescribeIndexStatsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.pinecone.proto.DbData202504.internal_static_DescribeIndexStatsRequest_fieldAccessorTable + return io.pinecone.proto.DbData202510.internal_static_DescribeIndexStatsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( io.pinecone.proto.DescribeIndexStatsRequest.class, io.pinecone.proto.DescribeIndexStatsRequest.Builder.class); } @@ -308,7 +308,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.pinecone.proto.DbData202504.internal_static_DescribeIndexStatsRequest_descriptor; + return io.pinecone.proto.DbData202510.internal_static_DescribeIndexStatsRequest_descriptor; } @java.lang.Override @@ -417,7 +417,7 @@ public Builder mergeFrom( *
      * If this parameter is present, the operation only returns statistics
      * for vectors that satisfy the filter.
-     * See https://docs.pinecone.io/guides/data/filtering-with-metadata.
+     * See https://docs.pinecone.io/guides/search/filter-with-metadata.
      * 
* * .google.protobuf.Struct filter = 1 [json_name = "filter"]; @@ -430,7 +430,7 @@ public boolean hasFilter() { *
      * If this parameter is present, the operation only returns statistics
      * for vectors that satisfy the filter.
-     * See https://docs.pinecone.io/guides/data/filtering-with-metadata.
+     * See https://docs.pinecone.io/guides/search/filter-with-metadata.
      * 
* * .google.protobuf.Struct filter = 1 [json_name = "filter"]; @@ -447,7 +447,7 @@ public com.google.protobuf.Struct getFilter() { *
      * If this parameter is present, the operation only returns statistics
      * for vectors that satisfy the filter.
-     * See https://docs.pinecone.io/guides/data/filtering-with-metadata.
+     * See https://docs.pinecone.io/guides/search/filter-with-metadata.
      * 
* * .google.protobuf.Struct filter = 1 [json_name = "filter"]; @@ -469,7 +469,7 @@ public Builder setFilter(com.google.protobuf.Struct value) { *
      * If this parameter is present, the operation only returns statistics
      * for vectors that satisfy the filter.
-     * See https://docs.pinecone.io/guides/data/filtering-with-metadata.
+     * See https://docs.pinecone.io/guides/search/filter-with-metadata.
      * 
* * .google.protobuf.Struct filter = 1 [json_name = "filter"]; @@ -489,7 +489,7 @@ public Builder setFilter( *
      * If this parameter is present, the operation only returns statistics
      * for vectors that satisfy the filter.
-     * See https://docs.pinecone.io/guides/data/filtering-with-metadata.
+     * See https://docs.pinecone.io/guides/search/filter-with-metadata.
      * 
* * .google.protobuf.Struct filter = 1 [json_name = "filter"]; @@ -516,7 +516,7 @@ public Builder mergeFilter(com.google.protobuf.Struct value) { *
      * If this parameter is present, the operation only returns statistics
      * for vectors that satisfy the filter.
-     * See https://docs.pinecone.io/guides/data/filtering-with-metadata.
+     * See https://docs.pinecone.io/guides/search/filter-with-metadata.
      * 
* * .google.protobuf.Struct filter = 1 [json_name = "filter"]; @@ -535,7 +535,7 @@ public Builder clearFilter() { *
      * If this parameter is present, the operation only returns statistics
      * for vectors that satisfy the filter.
-     * See https://docs.pinecone.io/guides/data/filtering-with-metadata.
+     * See https://docs.pinecone.io/guides/search/filter-with-metadata.
      * 
* * .google.protobuf.Struct filter = 1 [json_name = "filter"]; @@ -549,7 +549,7 @@ public com.google.protobuf.Struct.Builder getFilterBuilder() { *
      * If this parameter is present, the operation only returns statistics
      * for vectors that satisfy the filter.
-     * See https://docs.pinecone.io/guides/data/filtering-with-metadata.
+     * See https://docs.pinecone.io/guides/search/filter-with-metadata.
      * 
* * .google.protobuf.Struct filter = 1 [json_name = "filter"]; @@ -566,7 +566,7 @@ public com.google.protobuf.StructOrBuilder getFilterOrBuilder() { *
      * If this parameter is present, the operation only returns statistics
      * for vectors that satisfy the filter.
-     * See https://docs.pinecone.io/guides/data/filtering-with-metadata.
+     * See https://docs.pinecone.io/guides/search/filter-with-metadata.
      * 
* * .google.protobuf.Struct filter = 1 [json_name = "filter"]; diff --git a/src/main/java/io/pinecone/proto/DescribeIndexStatsRequestOrBuilder.java b/src/main/java/io/pinecone/proto/DescribeIndexStatsRequestOrBuilder.java index 92623536..ec369eeb 100644 --- a/src/main/java/io/pinecone/proto/DescribeIndexStatsRequestOrBuilder.java +++ b/src/main/java/io/pinecone/proto/DescribeIndexStatsRequestOrBuilder.java @@ -1,6 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: db_data_2025-04.proto +// source: db_data_2025-10.proto // Protobuf Java Version: 4.29.3 package io.pinecone.proto; @@ -13,7 +13,7 @@ public interface DescribeIndexStatsRequestOrBuilder extends *
    * If this parameter is present, the operation only returns statistics
    * for vectors that satisfy the filter.
-   * See https://docs.pinecone.io/guides/data/filtering-with-metadata.
+   * See https://docs.pinecone.io/guides/search/filter-with-metadata.
    * 
* * .google.protobuf.Struct filter = 1 [json_name = "filter"]; @@ -24,7 +24,7 @@ public interface DescribeIndexStatsRequestOrBuilder extends *
    * If this parameter is present, the operation only returns statistics
    * for vectors that satisfy the filter.
-   * See https://docs.pinecone.io/guides/data/filtering-with-metadata.
+   * See https://docs.pinecone.io/guides/search/filter-with-metadata.
    * 
* * .google.protobuf.Struct filter = 1 [json_name = "filter"]; @@ -35,7 +35,7 @@ public interface DescribeIndexStatsRequestOrBuilder extends *
    * If this parameter is present, the operation only returns statistics
    * for vectors that satisfy the filter.
-   * See https://docs.pinecone.io/guides/data/filtering-with-metadata.
+   * See https://docs.pinecone.io/guides/search/filter-with-metadata.
    * 
* * .google.protobuf.Struct filter = 1 [json_name = "filter"]; diff --git a/src/main/java/io/pinecone/proto/DescribeIndexStatsResponse.java b/src/main/java/io/pinecone/proto/DescribeIndexStatsResponse.java index 3f8dc79d..0d034360 100644 --- a/src/main/java/io/pinecone/proto/DescribeIndexStatsResponse.java +++ b/src/main/java/io/pinecone/proto/DescribeIndexStatsResponse.java @@ -1,6 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: db_data_2025-04.proto +// source: db_data_2025-10.proto // Protobuf Java Version: 4.29.3 package io.pinecone.proto; @@ -37,7 +37,7 @@ private DescribeIndexStatsResponse() { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.pinecone.proto.DbData202504.internal_static_DescribeIndexStatsResponse_descriptor; + return io.pinecone.proto.DbData202510.internal_static_DescribeIndexStatsResponse_descriptor; } @SuppressWarnings({"rawtypes"}) @@ -55,7 +55,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.pinecone.proto.DbData202504.internal_static_DescribeIndexStatsResponse_fieldAccessorTable + return io.pinecone.proto.DbData202510.internal_static_DescribeIndexStatsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( io.pinecone.proto.DescribeIndexStatsResponse.class, io.pinecone.proto.DescribeIndexStatsResponse.Builder.class); } @@ -67,7 +67,7 @@ private static final class NamespacesDefaultEntryHolder { java.lang.String, io.pinecone.proto.NamespaceSummary> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( - io.pinecone.proto.DbData202504.internal_static_DescribeIndexStatsResponse_NamespacesEntry_descriptor, + io.pinecone.proto.DbData202510.internal_static_DescribeIndexStatsResponse_NamespacesEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, @@ -343,6 +343,60 @@ public java.lang.String getVectorType() { } } + public static final int MEMORY_FULLNESS_FIELD_NUMBER = 7; + private float memoryFullness_ = 0F; + /** + *
+   * The amount of memory used by a dedicated index
+   * 
+ * + * optional float memory_fullness = 7 [json_name = "memoryFullness"]; + * @return Whether the memoryFullness field is set. + */ + @java.lang.Override + public boolean hasMemoryFullness() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+   * The amount of memory used by a dedicated index
+   * 
+ * + * optional float memory_fullness = 7 [json_name = "memoryFullness"]; + * @return The memoryFullness. + */ + @java.lang.Override + public float getMemoryFullness() { + return memoryFullness_; + } + + public static final int STORAGE_FULLNESS_FIELD_NUMBER = 8; + private float storageFullness_ = 0F; + /** + *
+   * The amount of storage used by a dedicated index
+   * 
+ * + * optional float storage_fullness = 8 [json_name = "storageFullness"]; + * @return Whether the storageFullness field is set. + */ + @java.lang.Override + public boolean hasStorageFullness() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+   * The amount of storage used by a dedicated index
+   * 
+ * + * optional float storage_fullness = 8 [json_name = "storageFullness"]; + * @return The storageFullness. + */ + @java.lang.Override + public float getStorageFullness() { + return storageFullness_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -378,6 +432,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 6, vectorType_); } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeFloat(7, memoryFullness_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeFloat(8, storageFullness_); + } getUnknownFields().writeTo(output); } @@ -415,6 +475,14 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(6, vectorType_); } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(7, memoryFullness_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(8, storageFullness_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -452,6 +520,18 @@ public boolean equals(final java.lang.Object obj) { if (!getVectorType() .equals(other.getVectorType())) return false; } + if (hasMemoryFullness() != other.hasMemoryFullness()) return false; + if (hasMemoryFullness()) { + if (java.lang.Float.floatToIntBits(getMemoryFullness()) + != java.lang.Float.floatToIntBits( + other.getMemoryFullness())) return false; + } + if (hasStorageFullness() != other.hasStorageFullness()) return false; + if (hasStorageFullness()) { + if (java.lang.Float.floatToIntBits(getStorageFullness()) + != java.lang.Float.floatToIntBits( + other.getStorageFullness())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -484,6 +564,16 @@ public int hashCode() { hash = (37 * hash) + VECTOR_TYPE_FIELD_NUMBER; hash = (53 * hash) + getVectorType().hashCode(); } + if (hasMemoryFullness()) { + hash = (37 * hash) + MEMORY_FULLNESS_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getMemoryFullness()); + } + if (hasStorageFullness()) { + hash = (37 * hash) + STORAGE_FULLNESS_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getStorageFullness()); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -594,7 +684,7 @@ public static final class Builder extends io.pinecone.proto.DescribeIndexStatsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.pinecone.proto.DbData202504.internal_static_DescribeIndexStatsResponse_descriptor; + return io.pinecone.proto.DbData202510.internal_static_DescribeIndexStatsResponse_descriptor; } @SuppressWarnings({"rawtypes"}) @@ -622,7 +712,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.pinecone.proto.DbData202504.internal_static_DescribeIndexStatsResponse_fieldAccessorTable + return io.pinecone.proto.DbData202510.internal_static_DescribeIndexStatsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( io.pinecone.proto.DescribeIndexStatsResponse.class, io.pinecone.proto.DescribeIndexStatsResponse.Builder.class); } @@ -647,13 +737,15 @@ public Builder clear() { totalVectorCount_ = 0; metric_ = ""; vectorType_ = ""; + memoryFullness_ = 0F; + storageFullness_ = 0F; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.pinecone.proto.DbData202504.internal_static_DescribeIndexStatsResponse_descriptor; + return io.pinecone.proto.DbData202510.internal_static_DescribeIndexStatsResponse_descriptor; } @java.lang.Override @@ -702,6 +794,14 @@ private void buildPartial0(io.pinecone.proto.DescribeIndexStatsResponse result) result.vectorType_ = vectorType_; to_bitField0_ |= 0x00000004; } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.memoryFullness_ = memoryFullness_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.storageFullness_ = storageFullness_; + to_bitField0_ |= 0x00000010; + } result.bitField0_ |= to_bitField0_; } @@ -739,6 +839,12 @@ public Builder mergeFrom(io.pinecone.proto.DescribeIndexStatsResponse other) { bitField0_ |= 0x00000020; onChanged(); } + if (other.hasMemoryFullness()) { + setMemoryFullness(other.getMemoryFullness()); + } + if (other.hasStorageFullness()) { + setStorageFullness(other.getStorageFullness()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -799,6 +905,16 @@ public Builder mergeFrom( bitField0_ |= 0x00000020; break; } // case 50 + case 61: { + memoryFullness_ = input.readFloat(); + bitField0_ |= 0x00000040; + break; + } // case 61 + case 69: { + storageFullness_ = input.readFloat(); + bitField0_ |= 0x00000080; + break; + } // case 69 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -1381,6 +1497,118 @@ public Builder setVectorTypeBytes( return this; } + private float memoryFullness_ ; + /** + *
+     * The amount of memory used by a dedicated index
+     * 
+ * + * optional float memory_fullness = 7 [json_name = "memoryFullness"]; + * @return Whether the memoryFullness field is set. + */ + @java.lang.Override + public boolean hasMemoryFullness() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + *
+     * The amount of memory used by a dedicated index
+     * 
+ * + * optional float memory_fullness = 7 [json_name = "memoryFullness"]; + * @return The memoryFullness. + */ + @java.lang.Override + public float getMemoryFullness() { + return memoryFullness_; + } + /** + *
+     * The amount of memory used by a dedicated index
+     * 
+ * + * optional float memory_fullness = 7 [json_name = "memoryFullness"]; + * @param value The memoryFullness to set. + * @return This builder for chaining. + */ + public Builder setMemoryFullness(float value) { + + memoryFullness_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * The amount of memory used by a dedicated index
+     * 
+ * + * optional float memory_fullness = 7 [json_name = "memoryFullness"]; + * @return This builder for chaining. + */ + public Builder clearMemoryFullness() { + bitField0_ = (bitField0_ & ~0x00000040); + memoryFullness_ = 0F; + onChanged(); + return this; + } + + private float storageFullness_ ; + /** + *
+     * The amount of storage used by a dedicated index
+     * 
+ * + * optional float storage_fullness = 8 [json_name = "storageFullness"]; + * @return Whether the storageFullness field is set. + */ + @java.lang.Override + public boolean hasStorageFullness() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + *
+     * The amount of storage used by a dedicated index
+     * 
+ * + * optional float storage_fullness = 8 [json_name = "storageFullness"]; + * @return The storageFullness. + */ + @java.lang.Override + public float getStorageFullness() { + return storageFullness_; + } + /** + *
+     * The amount of storage used by a dedicated index
+     * 
+ * + * optional float storage_fullness = 8 [json_name = "storageFullness"]; + * @param value The storageFullness to set. + * @return This builder for chaining. + */ + public Builder setStorageFullness(float value) { + + storageFullness_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * The amount of storage used by a dedicated index
+     * 
+ * + * optional float storage_fullness = 8 [json_name = "storageFullness"]; + * @return This builder for chaining. + */ + public Builder clearStorageFullness() { + bitField0_ = (bitField0_ & ~0x00000080); + storageFullness_ = 0F; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:DescribeIndexStatsResponse) } diff --git a/src/main/java/io/pinecone/proto/DescribeIndexStatsResponseOrBuilder.java b/src/main/java/io/pinecone/proto/DescribeIndexStatsResponseOrBuilder.java index 702a9bb7..708c355d 100644 --- a/src/main/java/io/pinecone/proto/DescribeIndexStatsResponseOrBuilder.java +++ b/src/main/java/io/pinecone/proto/DescribeIndexStatsResponseOrBuilder.java @@ -1,6 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: db_data_2025-04.proto +// source: db_data_2025-10.proto // Protobuf Java Version: 4.29.3 package io.pinecone.proto; @@ -173,4 +173,42 @@ io.pinecone.proto.NamespaceSummary getNamespacesOrThrow( */ com.google.protobuf.ByteString getVectorTypeBytes(); + + /** + *
+   * The amount of memory used by a dedicated index
+   * 
+ * + * optional float memory_fullness = 7 [json_name = "memoryFullness"]; + * @return Whether the memoryFullness field is set. + */ + boolean hasMemoryFullness(); + /** + *
+   * The amount of memory used by a dedicated index
+   * 
+ * + * optional float memory_fullness = 7 [json_name = "memoryFullness"]; + * @return The memoryFullness. + */ + float getMemoryFullness(); + + /** + *
+   * The amount of storage used by a dedicated index
+   * 
+ * + * optional float storage_fullness = 8 [json_name = "storageFullness"]; + * @return Whether the storageFullness field is set. + */ + boolean hasStorageFullness(); + /** + *
+   * The amount of storage used by a dedicated index
+   * 
+ * + * optional float storage_fullness = 8 [json_name = "storageFullness"]; + * @return The storageFullness. + */ + float getStorageFullness(); } diff --git a/src/main/java/io/pinecone/proto/DescribeNamespaceRequest.java b/src/main/java/io/pinecone/proto/DescribeNamespaceRequest.java index bfe4d089..089479a7 100644 --- a/src/main/java/io/pinecone/proto/DescribeNamespaceRequest.java +++ b/src/main/java/io/pinecone/proto/DescribeNamespaceRequest.java @@ -1,6 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: db_data_2025-04.proto +// source: db_data_2025-10.proto // Protobuf Java Version: 4.29.3 package io.pinecone.proto; @@ -36,13 +36,13 @@ private DescribeNamespaceRequest() { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.pinecone.proto.DbData202504.internal_static_DescribeNamespaceRequest_descriptor; + return io.pinecone.proto.DbData202510.internal_static_DescribeNamespaceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.pinecone.proto.DbData202504.internal_static_DescribeNamespaceRequest_fieldAccessorTable + return io.pinecone.proto.DbData202510.internal_static_DescribeNamespaceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( io.pinecone.proto.DescribeNamespaceRequest.class, io.pinecone.proto.DescribeNamespaceRequest.Builder.class); } @@ -263,13 +263,13 @@ public static final class Builder extends io.pinecone.proto.DescribeNamespaceRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.pinecone.proto.DbData202504.internal_static_DescribeNamespaceRequest_descriptor; + return io.pinecone.proto.DbData202510.internal_static_DescribeNamespaceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.pinecone.proto.DbData202504.internal_static_DescribeNamespaceRequest_fieldAccessorTable + return io.pinecone.proto.DbData202510.internal_static_DescribeNamespaceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( io.pinecone.proto.DescribeNamespaceRequest.class, io.pinecone.proto.DescribeNamespaceRequest.Builder.class); } @@ -295,7 +295,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.pinecone.proto.DbData202504.internal_static_DescribeNamespaceRequest_descriptor; + return io.pinecone.proto.DbData202510.internal_static_DescribeNamespaceRequest_descriptor; } @java.lang.Override diff --git a/src/main/java/io/pinecone/proto/DescribeNamespaceRequestOrBuilder.java b/src/main/java/io/pinecone/proto/DescribeNamespaceRequestOrBuilder.java index bac25ec3..0b811be0 100644 --- a/src/main/java/io/pinecone/proto/DescribeNamespaceRequestOrBuilder.java +++ b/src/main/java/io/pinecone/proto/DescribeNamespaceRequestOrBuilder.java @@ -1,6 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: db_data_2025-04.proto +// source: db_data_2025-10.proto // Protobuf Java Version: 4.29.3 package io.pinecone.proto; diff --git a/src/main/java/io/pinecone/proto/FetchByMetadataRequest.java b/src/main/java/io/pinecone/proto/FetchByMetadataRequest.java new file mode 100644 index 00000000..4b7f79c8 --- /dev/null +++ b/src/main/java/io/pinecone/proto/FetchByMetadataRequest.java @@ -0,0 +1,1047 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: db_data_2025-10.proto +// Protobuf Java Version: 4.29.3 + +package io.pinecone.proto; + +/** + * Protobuf type {@code FetchByMetadataRequest} + */ +public final class FetchByMetadataRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:FetchByMetadataRequest) + FetchByMetadataRequestOrBuilder { +private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 29, + /* patch= */ 3, + /* suffix= */ "", + FetchByMetadataRequest.class.getName()); + } + // Use FetchByMetadataRequest.newBuilder() to construct. + private FetchByMetadataRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private FetchByMetadataRequest() { + namespace_ = ""; + paginationToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.pinecone.proto.DbData202510.internal_static_FetchByMetadataRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.pinecone.proto.DbData202510.internal_static_FetchByMetadataRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.pinecone.proto.FetchByMetadataRequest.class, io.pinecone.proto.FetchByMetadataRequest.Builder.class); + } + + private int bitField0_; + public static final int NAMESPACE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object namespace_ = ""; + /** + * string namespace = 1 [json_name = "namespace"]; + * @return The namespace. + */ + @java.lang.Override + public java.lang.String getNamespace() { + java.lang.Object ref = namespace_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + namespace_ = s; + return s; + } + } + /** + * string namespace = 1 [json_name = "namespace"]; + * @return The bytes for namespace. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNamespaceBytes() { + java.lang.Object ref = namespace_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + namespace_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 2; + private com.google.protobuf.Struct filter_; + /** + *
+   * Metadata filter
+   * 
+ * + * optional .google.protobuf.Struct filter = 2 [json_name = "filter"]; + * @return Whether the filter field is set. + */ + @java.lang.Override + public boolean hasFilter() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * Metadata filter
+   * 
+ * + * optional .google.protobuf.Struct filter = 2 [json_name = "filter"]; + * @return The filter. + */ + @java.lang.Override + public com.google.protobuf.Struct getFilter() { + return filter_ == null ? com.google.protobuf.Struct.getDefaultInstance() : filter_; + } + /** + *
+   * Metadata filter
+   * 
+ * + * optional .google.protobuf.Struct filter = 2 [json_name = "filter"]; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getFilterOrBuilder() { + return filter_ == null ? com.google.protobuf.Struct.getDefaultInstance() : filter_; + } + + public static final int LIMIT_FIELD_NUMBER = 3; + private int limit_ = 0; + /** + *
+   * Max number of ids to return
+   * 
+ * + * optional uint32 limit = 3 [json_name = "limit"]; + * @return Whether the limit field is set. + */ + @java.lang.Override + public boolean hasLimit() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+   * Max number of ids to return
+   * 
+ * + * optional uint32 limit = 3 [json_name = "limit"]; + * @return The limit. + */ + @java.lang.Override + public int getLimit() { + return limit_; + } + + public static final int PAGINATION_TOKEN_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object paginationToken_ = ""; + /** + *
+   * Pagination token to continue a previous listing operation
+   * 
+ * + * optional string pagination_token = 4 [json_name = "paginationToken"]; + * @return Whether the paginationToken field is set. + */ + @java.lang.Override + public boolean hasPaginationToken() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+   * Pagination token to continue a previous listing operation
+   * 
+ * + * optional string pagination_token = 4 [json_name = "paginationToken"]; + * @return The paginationToken. + */ + @java.lang.Override + public java.lang.String getPaginationToken() { + java.lang.Object ref = paginationToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + paginationToken_ = s; + return s; + } + } + /** + *
+   * Pagination token to continue a previous listing operation
+   * 
+ * + * optional string pagination_token = 4 [json_name = "paginationToken"]; + * @return The bytes for paginationToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPaginationTokenBytes() { + java.lang.Object ref = paginationToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + paginationToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(namespace_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, namespace_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getFilter()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeUInt32(3, limit_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, paginationToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(namespace_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, namespace_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getFilter()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, limit_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, paginationToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.pinecone.proto.FetchByMetadataRequest)) { + return super.equals(obj); + } + io.pinecone.proto.FetchByMetadataRequest other = (io.pinecone.proto.FetchByMetadataRequest) obj; + + if (!getNamespace() + .equals(other.getNamespace())) return false; + if (hasFilter() != other.hasFilter()) return false; + if (hasFilter()) { + if (!getFilter() + .equals(other.getFilter())) return false; + } + if (hasLimit() != other.hasLimit()) return false; + if (hasLimit()) { + if (getLimit() + != other.getLimit()) return false; + } + if (hasPaginationToken() != other.hasPaginationToken()) return false; + if (hasPaginationToken()) { + if (!getPaginationToken() + .equals(other.getPaginationToken())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAMESPACE_FIELD_NUMBER; + hash = (53 * hash) + getNamespace().hashCode(); + if (hasFilter()) { + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + } + if (hasLimit()) { + hash = (37 * hash) + LIMIT_FIELD_NUMBER; + hash = (53 * hash) + getLimit(); + } + if (hasPaginationToken()) { + hash = (37 * hash) + PAGINATION_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPaginationToken().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.pinecone.proto.FetchByMetadataRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.pinecone.proto.FetchByMetadataRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.pinecone.proto.FetchByMetadataRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.pinecone.proto.FetchByMetadataRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.pinecone.proto.FetchByMetadataRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.pinecone.proto.FetchByMetadataRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.pinecone.proto.FetchByMetadataRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.pinecone.proto.FetchByMetadataRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.pinecone.proto.FetchByMetadataRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.pinecone.proto.FetchByMetadataRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.pinecone.proto.FetchByMetadataRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.pinecone.proto.FetchByMetadataRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.pinecone.proto.FetchByMetadataRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code FetchByMetadataRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:FetchByMetadataRequest) + io.pinecone.proto.FetchByMetadataRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.pinecone.proto.DbData202510.internal_static_FetchByMetadataRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.pinecone.proto.DbData202510.internal_static_FetchByMetadataRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.pinecone.proto.FetchByMetadataRequest.class, io.pinecone.proto.FetchByMetadataRequest.Builder.class); + } + + // Construct using io.pinecone.proto.FetchByMetadataRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getFilterFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + namespace_ = ""; + filter_ = null; + if (filterBuilder_ != null) { + filterBuilder_.dispose(); + filterBuilder_ = null; + } + limit_ = 0; + paginationToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.pinecone.proto.DbData202510.internal_static_FetchByMetadataRequest_descriptor; + } + + @java.lang.Override + public io.pinecone.proto.FetchByMetadataRequest getDefaultInstanceForType() { + return io.pinecone.proto.FetchByMetadataRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.pinecone.proto.FetchByMetadataRequest build() { + io.pinecone.proto.FetchByMetadataRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.pinecone.proto.FetchByMetadataRequest buildPartial() { + io.pinecone.proto.FetchByMetadataRequest result = new io.pinecone.proto.FetchByMetadataRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.pinecone.proto.FetchByMetadataRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.namespace_ = namespace_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filterBuilder_ == null + ? filter_ + : filterBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.limit_ = limit_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.paginationToken_ = paginationToken_; + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.pinecone.proto.FetchByMetadataRequest) { + return mergeFrom((io.pinecone.proto.FetchByMetadataRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.pinecone.proto.FetchByMetadataRequest other) { + if (other == io.pinecone.proto.FetchByMetadataRequest.getDefaultInstance()) return this; + if (!other.getNamespace().isEmpty()) { + namespace_ = other.namespace_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasFilter()) { + mergeFilter(other.getFilter()); + } + if (other.hasLimit()) { + setLimit(other.getLimit()); + } + if (other.hasPaginationToken()) { + paginationToken_ = other.paginationToken_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + namespace_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getFilterFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + limit_ = input.readUInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + paginationToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object namespace_ = ""; + /** + * string namespace = 1 [json_name = "namespace"]; + * @return The namespace. + */ + public java.lang.String getNamespace() { + java.lang.Object ref = namespace_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + namespace_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string namespace = 1 [json_name = "namespace"]; + * @return The bytes for namespace. + */ + public com.google.protobuf.ByteString + getNamespaceBytes() { + java.lang.Object ref = namespace_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + namespace_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string namespace = 1 [json_name = "namespace"]; + * @param value The namespace to set. + * @return This builder for chaining. + */ + public Builder setNamespace( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + namespace_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string namespace = 1 [json_name = "namespace"]; + * @return This builder for chaining. + */ + public Builder clearNamespace() { + namespace_ = getDefaultInstance().getNamespace(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string namespace = 1 [json_name = "namespace"]; + * @param value The bytes for namespace to set. + * @return This builder for chaining. + */ + public Builder setNamespaceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + namespace_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Struct filter_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> filterBuilder_; + /** + *
+     * Metadata filter
+     * 
+ * + * optional .google.protobuf.Struct filter = 2 [json_name = "filter"]; + * @return Whether the filter field is set. + */ + public boolean hasFilter() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * Metadata filter
+     * 
+ * + * optional .google.protobuf.Struct filter = 2 [json_name = "filter"]; + * @return The filter. + */ + public com.google.protobuf.Struct getFilter() { + if (filterBuilder_ == null) { + return filter_ == null ? com.google.protobuf.Struct.getDefaultInstance() : filter_; + } else { + return filterBuilder_.getMessage(); + } + } + /** + *
+     * Metadata filter
+     * 
+ * + * optional .google.protobuf.Struct filter = 2 [json_name = "filter"]; + */ + public Builder setFilter(com.google.protobuf.Struct value) { + if (filterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + } else { + filterBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Metadata filter
+     * 
+ * + * optional .google.protobuf.Struct filter = 2 [json_name = "filter"]; + */ + public Builder setFilter( + com.google.protobuf.Struct.Builder builderForValue) { + if (filterBuilder_ == null) { + filter_ = builderForValue.build(); + } else { + filterBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Metadata filter
+     * 
+ * + * optional .google.protobuf.Struct filter = 2 [json_name = "filter"]; + */ + public Builder mergeFilter(com.google.protobuf.Struct value) { + if (filterBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + filter_ != null && + filter_ != com.google.protobuf.Struct.getDefaultInstance()) { + getFilterBuilder().mergeFrom(value); + } else { + filter_ = value; + } + } else { + filterBuilder_.mergeFrom(value); + } + if (filter_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + *
+     * Metadata filter
+     * 
+ * + * optional .google.protobuf.Struct filter = 2 [json_name = "filter"]; + */ + public Builder clearFilter() { + bitField0_ = (bitField0_ & ~0x00000002); + filter_ = null; + if (filterBuilder_ != null) { + filterBuilder_.dispose(); + filterBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Metadata filter
+     * 
+ * + * optional .google.protobuf.Struct filter = 2 [json_name = "filter"]; + */ + public com.google.protobuf.Struct.Builder getFilterBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getFilterFieldBuilder().getBuilder(); + } + /** + *
+     * Metadata filter
+     * 
+ * + * optional .google.protobuf.Struct filter = 2 [json_name = "filter"]; + */ + public com.google.protobuf.StructOrBuilder getFilterOrBuilder() { + if (filterBuilder_ != null) { + return filterBuilder_.getMessageOrBuilder(); + } else { + return filter_ == null ? + com.google.protobuf.Struct.getDefaultInstance() : filter_; + } + } + /** + *
+     * Metadata filter
+     * 
+ * + * optional .google.protobuf.Struct filter = 2 [json_name = "filter"]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> + getFilterFieldBuilder() { + if (filterBuilder_ == null) { + filterBuilder_ = new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( + getFilter(), + getParentForChildren(), + isClean()); + filter_ = null; + } + return filterBuilder_; + } + + private int limit_ ; + /** + *
+     * Max number of ids to return
+     * 
+ * + * optional uint32 limit = 3 [json_name = "limit"]; + * @return Whether the limit field is set. + */ + @java.lang.Override + public boolean hasLimit() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * Max number of ids to return
+     * 
+ * + * optional uint32 limit = 3 [json_name = "limit"]; + * @return The limit. + */ + @java.lang.Override + public int getLimit() { + return limit_; + } + /** + *
+     * Max number of ids to return
+     * 
+ * + * optional uint32 limit = 3 [json_name = "limit"]; + * @param value The limit to set. + * @return This builder for chaining. + */ + public Builder setLimit(int value) { + + limit_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Max number of ids to return
+     * 
+ * + * optional uint32 limit = 3 [json_name = "limit"]; + * @return This builder for chaining. + */ + public Builder clearLimit() { + bitField0_ = (bitField0_ & ~0x00000004); + limit_ = 0; + onChanged(); + return this; + } + + private java.lang.Object paginationToken_ = ""; + /** + *
+     * Pagination token to continue a previous listing operation
+     * 
+ * + * optional string pagination_token = 4 [json_name = "paginationToken"]; + * @return Whether the paginationToken field is set. + */ + public boolean hasPaginationToken() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+     * Pagination token to continue a previous listing operation
+     * 
+ * + * optional string pagination_token = 4 [json_name = "paginationToken"]; + * @return The paginationToken. + */ + public java.lang.String getPaginationToken() { + java.lang.Object ref = paginationToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + paginationToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Pagination token to continue a previous listing operation
+     * 
+ * + * optional string pagination_token = 4 [json_name = "paginationToken"]; + * @return The bytes for paginationToken. + */ + public com.google.protobuf.ByteString + getPaginationTokenBytes() { + java.lang.Object ref = paginationToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + paginationToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Pagination token to continue a previous listing operation
+     * 
+ * + * optional string pagination_token = 4 [json_name = "paginationToken"]; + * @param value The paginationToken to set. + * @return This builder for chaining. + */ + public Builder setPaginationToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + paginationToken_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Pagination token to continue a previous listing operation
+     * 
+ * + * optional string pagination_token = 4 [json_name = "paginationToken"]; + * @return This builder for chaining. + */ + public Builder clearPaginationToken() { + paginationToken_ = getDefaultInstance().getPaginationToken(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+     * Pagination token to continue a previous listing operation
+     * 
+ * + * optional string pagination_token = 4 [json_name = "paginationToken"]; + * @param value The bytes for paginationToken to set. + * @return This builder for chaining. + */ + public Builder setPaginationTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + paginationToken_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:FetchByMetadataRequest) + } + + // @@protoc_insertion_point(class_scope:FetchByMetadataRequest) + private static final io.pinecone.proto.FetchByMetadataRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.pinecone.proto.FetchByMetadataRequest(); + } + + public static io.pinecone.proto.FetchByMetadataRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchByMetadataRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.pinecone.proto.FetchByMetadataRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/io/pinecone/proto/FetchByMetadataRequestOrBuilder.java b/src/main/java/io/pinecone/proto/FetchByMetadataRequestOrBuilder.java new file mode 100644 index 00000000..6a138c3b --- /dev/null +++ b/src/main/java/io/pinecone/proto/FetchByMetadataRequestOrBuilder.java @@ -0,0 +1,98 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: db_data_2025-10.proto +// Protobuf Java Version: 4.29.3 + +package io.pinecone.proto; + +public interface FetchByMetadataRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:FetchByMetadataRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string namespace = 1 [json_name = "namespace"]; + * @return The namespace. + */ + java.lang.String getNamespace(); + /** + * string namespace = 1 [json_name = "namespace"]; + * @return The bytes for namespace. + */ + com.google.protobuf.ByteString + getNamespaceBytes(); + + /** + *
+   * Metadata filter
+   * 
+ * + * optional .google.protobuf.Struct filter = 2 [json_name = "filter"]; + * @return Whether the filter field is set. + */ + boolean hasFilter(); + /** + *
+   * Metadata filter
+   * 
+ * + * optional .google.protobuf.Struct filter = 2 [json_name = "filter"]; + * @return The filter. + */ + com.google.protobuf.Struct getFilter(); + /** + *
+   * Metadata filter
+   * 
+ * + * optional .google.protobuf.Struct filter = 2 [json_name = "filter"]; + */ + com.google.protobuf.StructOrBuilder getFilterOrBuilder(); + + /** + *
+   * Max number of ids to return
+   * 
+ * + * optional uint32 limit = 3 [json_name = "limit"]; + * @return Whether the limit field is set. + */ + boolean hasLimit(); + /** + *
+   * Max number of ids to return
+   * 
+ * + * optional uint32 limit = 3 [json_name = "limit"]; + * @return The limit. + */ + int getLimit(); + + /** + *
+   * Pagination token to continue a previous listing operation
+   * 
+ * + * optional string pagination_token = 4 [json_name = "paginationToken"]; + * @return Whether the paginationToken field is set. + */ + boolean hasPaginationToken(); + /** + *
+   * Pagination token to continue a previous listing operation
+   * 
+ * + * optional string pagination_token = 4 [json_name = "paginationToken"]; + * @return The paginationToken. + */ + java.lang.String getPaginationToken(); + /** + *
+   * Pagination token to continue a previous listing operation
+   * 
+ * + * optional string pagination_token = 4 [json_name = "paginationToken"]; + * @return The bytes for paginationToken. + */ + com.google.protobuf.ByteString + getPaginationTokenBytes(); +} diff --git a/src/main/java/io/pinecone/proto/FetchByMetadataResponse.java b/src/main/java/io/pinecone/proto/FetchByMetadataResponse.java new file mode 100644 index 00000000..118bf9b7 --- /dev/null +++ b/src/main/java/io/pinecone/proto/FetchByMetadataResponse.java @@ -0,0 +1,1365 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: db_data_2025-10.proto +// Protobuf Java Version: 4.29.3 + +package io.pinecone.proto; + +/** + *
+ * The response for the `FetchByMetadata` operation.
+ * 
+ * + * Protobuf type {@code FetchByMetadataResponse} + */ +public final class FetchByMetadataResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:FetchByMetadataResponse) + FetchByMetadataResponseOrBuilder { +private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 29, + /* patch= */ 3, + /* suffix= */ "", + FetchByMetadataResponse.class.getName()); + } + // Use FetchByMetadataResponse.newBuilder() to construct. + private FetchByMetadataResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private FetchByMetadataResponse() { + namespace_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.pinecone.proto.DbData202510.internal_static_FetchByMetadataResponse_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetVectors(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.pinecone.proto.DbData202510.internal_static_FetchByMetadataResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.pinecone.proto.FetchByMetadataResponse.class, io.pinecone.proto.FetchByMetadataResponse.Builder.class); + } + + private int bitField0_; + public static final int VECTORS_FIELD_NUMBER = 1; + private static final class VectorsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, io.pinecone.proto.Vector> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + io.pinecone.proto.DbData202510.internal_static_FetchByMetadataResponse_VectorsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + io.pinecone.proto.Vector.getDefaultInstance()); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, io.pinecone.proto.Vector> vectors_; + private com.google.protobuf.MapField + internalGetVectors() { + if (vectors_ == null) { + return com.google.protobuf.MapField.emptyMapField( + VectorsDefaultEntryHolder.defaultEntry); + } + return vectors_; + } + public int getVectorsCount() { + return internalGetVectors().getMap().size(); + } + /** + *
+   * The fetched vectors, in the form of a map between the fetched ids and the fetched vectors
+   * 
+ * + * map<string, .Vector> vectors = 1 [json_name = "vectors"]; + */ + @java.lang.Override + public boolean containsVectors( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetVectors().getMap().containsKey(key); + } + /** + * Use {@link #getVectorsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getVectors() { + return getVectorsMap(); + } + /** + *
+   * The fetched vectors, in the form of a map between the fetched ids and the fetched vectors
+   * 
+ * + * map<string, .Vector> vectors = 1 [json_name = "vectors"]; + */ + @java.lang.Override + public java.util.Map getVectorsMap() { + return internalGetVectors().getMap(); + } + /** + *
+   * The fetched vectors, in the form of a map between the fetched ids and the fetched vectors
+   * 
+ * + * map<string, .Vector> vectors = 1 [json_name = "vectors"]; + */ + @java.lang.Override + public /* nullable */ +io.pinecone.proto.Vector getVectorsOrDefault( + java.lang.String key, + /* nullable */ +io.pinecone.proto.Vector defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetVectors().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * The fetched vectors, in the form of a map between the fetched ids and the fetched vectors
+   * 
+ * + * map<string, .Vector> vectors = 1 [json_name = "vectors"]; + */ + @java.lang.Override + public io.pinecone.proto.Vector getVectorsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetVectors().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int NAMESPACE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object namespace_ = ""; + /** + *
+   * The namespace of the vectors.
+   * 
+ * + * string namespace = 2 [json_name = "namespace"]; + * @return The namespace. + */ + @java.lang.Override + public java.lang.String getNamespace() { + java.lang.Object ref = namespace_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + namespace_ = s; + return s; + } + } + /** + *
+   * The namespace of the vectors.
+   * 
+ * + * string namespace = 2 [json_name = "namespace"]; + * @return The bytes for namespace. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNamespaceBytes() { + java.lang.Object ref = namespace_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + namespace_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USAGE_FIELD_NUMBER = 3; + private io.pinecone.proto.Usage usage_; + /** + *
+   * The usage for this operation.
+   * 
+ * + * optional .Usage usage = 3 [json_name = "usage"]; + * @return Whether the usage field is set. + */ + @java.lang.Override + public boolean hasUsage() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * The usage for this operation.
+   * 
+ * + * optional .Usage usage = 3 [json_name = "usage"]; + * @return The usage. + */ + @java.lang.Override + public io.pinecone.proto.Usage getUsage() { + return usage_ == null ? io.pinecone.proto.Usage.getDefaultInstance() : usage_; + } + /** + *
+   * The usage for this operation.
+   * 
+ * + * optional .Usage usage = 3 [json_name = "usage"]; + */ + @java.lang.Override + public io.pinecone.proto.UsageOrBuilder getUsageOrBuilder() { + return usage_ == null ? io.pinecone.proto.Usage.getDefaultInstance() : usage_; + } + + public static final int PAGINATION_FIELD_NUMBER = 4; + private io.pinecone.proto.Pagination pagination_; + /** + *
+   * Pagination token to continue past this listing
+   * 
+ * + * optional .Pagination pagination = 4 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + @java.lang.Override + public boolean hasPagination() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+   * Pagination token to continue past this listing
+   * 
+ * + * optional .Pagination pagination = 4 [json_name = "pagination"]; + * @return The pagination. + */ + @java.lang.Override + public io.pinecone.proto.Pagination getPagination() { + return pagination_ == null ? io.pinecone.proto.Pagination.getDefaultInstance() : pagination_; + } + /** + *
+   * Pagination token to continue past this listing
+   * 
+ * + * optional .Pagination pagination = 4 [json_name = "pagination"]; + */ + @java.lang.Override + public io.pinecone.proto.PaginationOrBuilder getPaginationOrBuilder() { + return pagination_ == null ? io.pinecone.proto.Pagination.getDefaultInstance() : pagination_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessage + .serializeStringMapTo( + output, + internalGetVectors(), + VectorsDefaultEntryHolder.defaultEntry, + 1); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(namespace_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, namespace_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getUsage()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getPagination()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry + : internalGetVectors().getMap().entrySet()) { + com.google.protobuf.MapEntry + vectors__ = VectorsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, vectors__); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(namespace_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, namespace_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUsage()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getPagination()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.pinecone.proto.FetchByMetadataResponse)) { + return super.equals(obj); + } + io.pinecone.proto.FetchByMetadataResponse other = (io.pinecone.proto.FetchByMetadataResponse) obj; + + if (!internalGetVectors().equals( + other.internalGetVectors())) return false; + if (!getNamespace() + .equals(other.getNamespace())) return false; + if (hasUsage() != other.hasUsage()) return false; + if (hasUsage()) { + if (!getUsage() + .equals(other.getUsage())) return false; + } + if (hasPagination() != other.hasPagination()) return false; + if (hasPagination()) { + if (!getPagination() + .equals(other.getPagination())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetVectors().getMap().isEmpty()) { + hash = (37 * hash) + VECTORS_FIELD_NUMBER; + hash = (53 * hash) + internalGetVectors().hashCode(); + } + hash = (37 * hash) + NAMESPACE_FIELD_NUMBER; + hash = (53 * hash) + getNamespace().hashCode(); + if (hasUsage()) { + hash = (37 * hash) + USAGE_FIELD_NUMBER; + hash = (53 * hash) + getUsage().hashCode(); + } + if (hasPagination()) { + hash = (37 * hash) + PAGINATION_FIELD_NUMBER; + hash = (53 * hash) + getPagination().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.pinecone.proto.FetchByMetadataResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.pinecone.proto.FetchByMetadataResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.pinecone.proto.FetchByMetadataResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.pinecone.proto.FetchByMetadataResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.pinecone.proto.FetchByMetadataResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.pinecone.proto.FetchByMetadataResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.pinecone.proto.FetchByMetadataResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.pinecone.proto.FetchByMetadataResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.pinecone.proto.FetchByMetadataResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.pinecone.proto.FetchByMetadataResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.pinecone.proto.FetchByMetadataResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.pinecone.proto.FetchByMetadataResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.pinecone.proto.FetchByMetadataResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * The response for the `FetchByMetadata` operation.
+   * 
+ * + * Protobuf type {@code FetchByMetadataResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:FetchByMetadataResponse) + io.pinecone.proto.FetchByMetadataResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.pinecone.proto.DbData202510.internal_static_FetchByMetadataResponse_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetVectors(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetMutableVectors(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.pinecone.proto.DbData202510.internal_static_FetchByMetadataResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.pinecone.proto.FetchByMetadataResponse.class, io.pinecone.proto.FetchByMetadataResponse.Builder.class); + } + + // Construct using io.pinecone.proto.FetchByMetadataResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getUsageFieldBuilder(); + getPaginationFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + internalGetMutableVectors().clear(); + namespace_ = ""; + usage_ = null; + if (usageBuilder_ != null) { + usageBuilder_.dispose(); + usageBuilder_ = null; + } + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.pinecone.proto.DbData202510.internal_static_FetchByMetadataResponse_descriptor; + } + + @java.lang.Override + public io.pinecone.proto.FetchByMetadataResponse getDefaultInstanceForType() { + return io.pinecone.proto.FetchByMetadataResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.pinecone.proto.FetchByMetadataResponse build() { + io.pinecone.proto.FetchByMetadataResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.pinecone.proto.FetchByMetadataResponse buildPartial() { + io.pinecone.proto.FetchByMetadataResponse result = new io.pinecone.proto.FetchByMetadataResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.pinecone.proto.FetchByMetadataResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.vectors_ = internalGetVectors().build(VectorsDefaultEntryHolder.defaultEntry); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.namespace_ = namespace_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.usage_ = usageBuilder_ == null + ? usage_ + : usageBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pagination_ = paginationBuilder_ == null + ? pagination_ + : paginationBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.pinecone.proto.FetchByMetadataResponse) { + return mergeFrom((io.pinecone.proto.FetchByMetadataResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.pinecone.proto.FetchByMetadataResponse other) { + if (other == io.pinecone.proto.FetchByMetadataResponse.getDefaultInstance()) return this; + internalGetMutableVectors().mergeFrom( + other.internalGetVectors()); + bitField0_ |= 0x00000001; + if (!other.getNamespace().isEmpty()) { + namespace_ = other.namespace_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasUsage()) { + mergeUsage(other.getUsage()); + } + if (other.hasPagination()) { + mergePagination(other.getPagination()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.MapEntry + vectors__ = input.readMessage( + VectorsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableVectors().ensureBuilderMap().put( + vectors__.getKey(), vectors__.getValue()); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + namespace_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getUsageFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getPaginationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private static final class VectorsConverter implements com.google.protobuf.MapFieldBuilder.Converter { + @java.lang.Override + public io.pinecone.proto.Vector build(io.pinecone.proto.VectorOrBuilder val) { + if (val instanceof io.pinecone.proto.Vector) { return (io.pinecone.proto.Vector) val; } + return ((io.pinecone.proto.Vector.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry defaultEntry() { + return VectorsDefaultEntryHolder.defaultEntry; + } + }; + private static final VectorsConverter vectorsConverter = new VectorsConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, io.pinecone.proto.VectorOrBuilder, io.pinecone.proto.Vector, io.pinecone.proto.Vector.Builder> vectors_; + private com.google.protobuf.MapFieldBuilder + internalGetVectors() { + if (vectors_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(vectorsConverter); + } + return vectors_; + } + private com.google.protobuf.MapFieldBuilder + internalGetMutableVectors() { + if (vectors_ == null) { + vectors_ = new com.google.protobuf.MapFieldBuilder<>(vectorsConverter); + } + bitField0_ |= 0x00000001; + onChanged(); + return vectors_; + } + public int getVectorsCount() { + return internalGetVectors().ensureBuilderMap().size(); + } + /** + *
+     * The fetched vectors, in the form of a map between the fetched ids and the fetched vectors
+     * 
+ * + * map<string, .Vector> vectors = 1 [json_name = "vectors"]; + */ + @java.lang.Override + public boolean containsVectors( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetVectors().ensureBuilderMap().containsKey(key); + } + /** + * Use {@link #getVectorsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getVectors() { + return getVectorsMap(); + } + /** + *
+     * The fetched vectors, in the form of a map between the fetched ids and the fetched vectors
+     * 
+ * + * map<string, .Vector> vectors = 1 [json_name = "vectors"]; + */ + @java.lang.Override + public java.util.Map getVectorsMap() { + return internalGetVectors().getImmutableMap(); + } + /** + *
+     * The fetched vectors, in the form of a map between the fetched ids and the fetched vectors
+     * 
+ * + * map<string, .Vector> vectors = 1 [json_name = "vectors"]; + */ + @java.lang.Override + public /* nullable */ +io.pinecone.proto.Vector getVectorsOrDefault( + java.lang.String key, + /* nullable */ +io.pinecone.proto.Vector defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = internalGetMutableVectors().ensureBuilderMap(); + return map.containsKey(key) ? vectorsConverter.build(map.get(key)) : defaultValue; + } + /** + *
+     * The fetched vectors, in the form of a map between the fetched ids and the fetched vectors
+     * 
+ * + * map<string, .Vector> vectors = 1 [json_name = "vectors"]; + */ + @java.lang.Override + public io.pinecone.proto.Vector getVectorsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = internalGetMutableVectors().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return vectorsConverter.build(map.get(key)); + } + public Builder clearVectors() { + bitField0_ = (bitField0_ & ~0x00000001); + internalGetMutableVectors().clear(); + return this; + } + /** + *
+     * The fetched vectors, in the form of a map between the fetched ids and the fetched vectors
+     * 
+ * + * map<string, .Vector> vectors = 1 [json_name = "vectors"]; + */ + public Builder removeVectors( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableVectors().ensureBuilderMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableVectors() { + bitField0_ |= 0x00000001; + return internalGetMutableVectors().ensureMessageMap(); + } + /** + *
+     * The fetched vectors, in the form of a map between the fetched ids and the fetched vectors
+     * 
+ * + * map<string, .Vector> vectors = 1 [json_name = "vectors"]; + */ + public Builder putVectors( + java.lang.String key, + io.pinecone.proto.Vector value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableVectors().ensureBuilderMap() + .put(key, value); + bitField0_ |= 0x00000001; + return this; + } + /** + *
+     * The fetched vectors, in the form of a map between the fetched ids and the fetched vectors
+     * 
+ * + * map<string, .Vector> vectors = 1 [json_name = "vectors"]; + */ + public Builder putAllVectors( + java.util.Map values) { + for (java.util.Map.Entry e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableVectors().ensureBuilderMap() + .putAll(values); + bitField0_ |= 0x00000001; + return this; + } + /** + *
+     * The fetched vectors, in the form of a map between the fetched ids and the fetched vectors
+     * 
+ * + * map<string, .Vector> vectors = 1 [json_name = "vectors"]; + */ + public io.pinecone.proto.Vector.Builder putVectorsBuilderIfAbsent( + java.lang.String key) { + java.util.Map builderMap = internalGetMutableVectors().ensureBuilderMap(); + io.pinecone.proto.VectorOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = io.pinecone.proto.Vector.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof io.pinecone.proto.Vector) { + entry = ((io.pinecone.proto.Vector) entry).toBuilder(); + builderMap.put(key, entry); + } + return (io.pinecone.proto.Vector.Builder) entry; + } + + private java.lang.Object namespace_ = ""; + /** + *
+     * The namespace of the vectors.
+     * 
+ * + * string namespace = 2 [json_name = "namespace"]; + * @return The namespace. + */ + public java.lang.String getNamespace() { + java.lang.Object ref = namespace_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + namespace_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The namespace of the vectors.
+     * 
+ * + * string namespace = 2 [json_name = "namespace"]; + * @return The bytes for namespace. + */ + public com.google.protobuf.ByteString + getNamespaceBytes() { + java.lang.Object ref = namespace_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + namespace_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The namespace of the vectors.
+     * 
+ * + * string namespace = 2 [json_name = "namespace"]; + * @param value The namespace to set. + * @return This builder for chaining. + */ + public Builder setNamespace( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + namespace_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * The namespace of the vectors.
+     * 
+ * + * string namespace = 2 [json_name = "namespace"]; + * @return This builder for chaining. + */ + public Builder clearNamespace() { + namespace_ = getDefaultInstance().getNamespace(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * The namespace of the vectors.
+     * 
+ * + * string namespace = 2 [json_name = "namespace"]; + * @param value The bytes for namespace to set. + * @return This builder for chaining. + */ + public Builder setNamespaceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + namespace_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private io.pinecone.proto.Usage usage_; + private com.google.protobuf.SingleFieldBuilder< + io.pinecone.proto.Usage, io.pinecone.proto.Usage.Builder, io.pinecone.proto.UsageOrBuilder> usageBuilder_; + /** + *
+     * The usage for this operation.
+     * 
+ * + * optional .Usage usage = 3 [json_name = "usage"]; + * @return Whether the usage field is set. + */ + public boolean hasUsage() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * The usage for this operation.
+     * 
+ * + * optional .Usage usage = 3 [json_name = "usage"]; + * @return The usage. + */ + public io.pinecone.proto.Usage getUsage() { + if (usageBuilder_ == null) { + return usage_ == null ? io.pinecone.proto.Usage.getDefaultInstance() : usage_; + } else { + return usageBuilder_.getMessage(); + } + } + /** + *
+     * The usage for this operation.
+     * 
+ * + * optional .Usage usage = 3 [json_name = "usage"]; + */ + public Builder setUsage(io.pinecone.proto.Usage value) { + if (usageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + usage_ = value; + } else { + usageBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * The usage for this operation.
+     * 
+ * + * optional .Usage usage = 3 [json_name = "usage"]; + */ + public Builder setUsage( + io.pinecone.proto.Usage.Builder builderForValue) { + if (usageBuilder_ == null) { + usage_ = builderForValue.build(); + } else { + usageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * The usage for this operation.
+     * 
+ * + * optional .Usage usage = 3 [json_name = "usage"]; + */ + public Builder mergeUsage(io.pinecone.proto.Usage value) { + if (usageBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + usage_ != null && + usage_ != io.pinecone.proto.Usage.getDefaultInstance()) { + getUsageBuilder().mergeFrom(value); + } else { + usage_ = value; + } + } else { + usageBuilder_.mergeFrom(value); + } + if (usage_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + *
+     * The usage for this operation.
+     * 
+ * + * optional .Usage usage = 3 [json_name = "usage"]; + */ + public Builder clearUsage() { + bitField0_ = (bitField0_ & ~0x00000004); + usage_ = null; + if (usageBuilder_ != null) { + usageBuilder_.dispose(); + usageBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The usage for this operation.
+     * 
+ * + * optional .Usage usage = 3 [json_name = "usage"]; + */ + public io.pinecone.proto.Usage.Builder getUsageBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getUsageFieldBuilder().getBuilder(); + } + /** + *
+     * The usage for this operation.
+     * 
+ * + * optional .Usage usage = 3 [json_name = "usage"]; + */ + public io.pinecone.proto.UsageOrBuilder getUsageOrBuilder() { + if (usageBuilder_ != null) { + return usageBuilder_.getMessageOrBuilder(); + } else { + return usage_ == null ? + io.pinecone.proto.Usage.getDefaultInstance() : usage_; + } + } + /** + *
+     * The usage for this operation.
+     * 
+ * + * optional .Usage usage = 3 [json_name = "usage"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.pinecone.proto.Usage, io.pinecone.proto.Usage.Builder, io.pinecone.proto.UsageOrBuilder> + getUsageFieldBuilder() { + if (usageBuilder_ == null) { + usageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.pinecone.proto.Usage, io.pinecone.proto.Usage.Builder, io.pinecone.proto.UsageOrBuilder>( + getUsage(), + getParentForChildren(), + isClean()); + usage_ = null; + } + return usageBuilder_; + } + + private io.pinecone.proto.Pagination pagination_; + private com.google.protobuf.SingleFieldBuilder< + io.pinecone.proto.Pagination, io.pinecone.proto.Pagination.Builder, io.pinecone.proto.PaginationOrBuilder> paginationBuilder_; + /** + *
+     * Pagination token to continue past this listing
+     * 
+ * + * optional .Pagination pagination = 4 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + public boolean hasPagination() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+     * Pagination token to continue past this listing
+     * 
+ * + * optional .Pagination pagination = 4 [json_name = "pagination"]; + * @return The pagination. + */ + public io.pinecone.proto.Pagination getPagination() { + if (paginationBuilder_ == null) { + return pagination_ == null ? io.pinecone.proto.Pagination.getDefaultInstance() : pagination_; + } else { + return paginationBuilder_.getMessage(); + } + } + /** + *
+     * Pagination token to continue past this listing
+     * 
+ * + * optional .Pagination pagination = 4 [json_name = "pagination"]; + */ + public Builder setPagination(io.pinecone.proto.Pagination value) { + if (paginationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pagination_ = value; + } else { + paginationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Pagination token to continue past this listing
+     * 
+ * + * optional .Pagination pagination = 4 [json_name = "pagination"]; + */ + public Builder setPagination( + io.pinecone.proto.Pagination.Builder builderForValue) { + if (paginationBuilder_ == null) { + pagination_ = builderForValue.build(); + } else { + paginationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Pagination token to continue past this listing
+     * 
+ * + * optional .Pagination pagination = 4 [json_name = "pagination"]; + */ + public Builder mergePagination(io.pinecone.proto.Pagination value) { + if (paginationBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + pagination_ != null && + pagination_ != io.pinecone.proto.Pagination.getDefaultInstance()) { + getPaginationBuilder().mergeFrom(value); + } else { + pagination_ = value; + } + } else { + paginationBuilder_.mergeFrom(value); + } + if (pagination_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + *
+     * Pagination token to continue past this listing
+     * 
+ * + * optional .Pagination pagination = 4 [json_name = "pagination"]; + */ + public Builder clearPagination() { + bitField0_ = (bitField0_ & ~0x00000008); + pagination_ = null; + if (paginationBuilder_ != null) { + paginationBuilder_.dispose(); + paginationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Pagination token to continue past this listing
+     * 
+ * + * optional .Pagination pagination = 4 [json_name = "pagination"]; + */ + public io.pinecone.proto.Pagination.Builder getPaginationBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getPaginationFieldBuilder().getBuilder(); + } + /** + *
+     * Pagination token to continue past this listing
+     * 
+ * + * optional .Pagination pagination = 4 [json_name = "pagination"]; + */ + public io.pinecone.proto.PaginationOrBuilder getPaginationOrBuilder() { + if (paginationBuilder_ != null) { + return paginationBuilder_.getMessageOrBuilder(); + } else { + return pagination_ == null ? + io.pinecone.proto.Pagination.getDefaultInstance() : pagination_; + } + } + /** + *
+     * Pagination token to continue past this listing
+     * 
+ * + * optional .Pagination pagination = 4 [json_name = "pagination"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.pinecone.proto.Pagination, io.pinecone.proto.Pagination.Builder, io.pinecone.proto.PaginationOrBuilder> + getPaginationFieldBuilder() { + if (paginationBuilder_ == null) { + paginationBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.pinecone.proto.Pagination, io.pinecone.proto.Pagination.Builder, io.pinecone.proto.PaginationOrBuilder>( + getPagination(), + getParentForChildren(), + isClean()); + pagination_ = null; + } + return paginationBuilder_; + } + + // @@protoc_insertion_point(builder_scope:FetchByMetadataResponse) + } + + // @@protoc_insertion_point(class_scope:FetchByMetadataResponse) + private static final io.pinecone.proto.FetchByMetadataResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.pinecone.proto.FetchByMetadataResponse(); + } + + public static io.pinecone.proto.FetchByMetadataResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchByMetadataResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.pinecone.proto.FetchByMetadataResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/io/pinecone/proto/FetchByMetadataResponseOrBuilder.java b/src/main/java/io/pinecone/proto/FetchByMetadataResponseOrBuilder.java new file mode 100644 index 00000000..ed967b00 --- /dev/null +++ b/src/main/java/io/pinecone/proto/FetchByMetadataResponseOrBuilder.java @@ -0,0 +1,139 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: db_data_2025-10.proto +// Protobuf Java Version: 4.29.3 + +package io.pinecone.proto; + +public interface FetchByMetadataResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:FetchByMetadataResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The fetched vectors, in the form of a map between the fetched ids and the fetched vectors
+   * 
+ * + * map<string, .Vector> vectors = 1 [json_name = "vectors"]; + */ + int getVectorsCount(); + /** + *
+   * The fetched vectors, in the form of a map between the fetched ids and the fetched vectors
+   * 
+ * + * map<string, .Vector> vectors = 1 [json_name = "vectors"]; + */ + boolean containsVectors( + java.lang.String key); + /** + * Use {@link #getVectorsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getVectors(); + /** + *
+   * The fetched vectors, in the form of a map between the fetched ids and the fetched vectors
+   * 
+ * + * map<string, .Vector> vectors = 1 [json_name = "vectors"]; + */ + java.util.Map + getVectorsMap(); + /** + *
+   * The fetched vectors, in the form of a map between the fetched ids and the fetched vectors
+   * 
+ * + * map<string, .Vector> vectors = 1 [json_name = "vectors"]; + */ + /* nullable */ +io.pinecone.proto.Vector getVectorsOrDefault( + java.lang.String key, + /* nullable */ +io.pinecone.proto.Vector defaultValue); + /** + *
+   * The fetched vectors, in the form of a map between the fetched ids and the fetched vectors
+   * 
+ * + * map<string, .Vector> vectors = 1 [json_name = "vectors"]; + */ + io.pinecone.proto.Vector getVectorsOrThrow( + java.lang.String key); + + /** + *
+   * The namespace of the vectors.
+   * 
+ * + * string namespace = 2 [json_name = "namespace"]; + * @return The namespace. + */ + java.lang.String getNamespace(); + /** + *
+   * The namespace of the vectors.
+   * 
+ * + * string namespace = 2 [json_name = "namespace"]; + * @return The bytes for namespace. + */ + com.google.protobuf.ByteString + getNamespaceBytes(); + + /** + *
+   * The usage for this operation.
+   * 
+ * + * optional .Usage usage = 3 [json_name = "usage"]; + * @return Whether the usage field is set. + */ + boolean hasUsage(); + /** + *
+   * The usage for this operation.
+   * 
+ * + * optional .Usage usage = 3 [json_name = "usage"]; + * @return The usage. + */ + io.pinecone.proto.Usage getUsage(); + /** + *
+   * The usage for this operation.
+   * 
+ * + * optional .Usage usage = 3 [json_name = "usage"]; + */ + io.pinecone.proto.UsageOrBuilder getUsageOrBuilder(); + + /** + *
+   * Pagination token to continue past this listing
+   * 
+ * + * optional .Pagination pagination = 4 [json_name = "pagination"]; + * @return Whether the pagination field is set. + */ + boolean hasPagination(); + /** + *
+   * Pagination token to continue past this listing
+   * 
+ * + * optional .Pagination pagination = 4 [json_name = "pagination"]; + * @return The pagination. + */ + io.pinecone.proto.Pagination getPagination(); + /** + *
+   * Pagination token to continue past this listing
+   * 
+ * + * optional .Pagination pagination = 4 [json_name = "pagination"]; + */ + io.pinecone.proto.PaginationOrBuilder getPaginationOrBuilder(); +} diff --git a/src/main/java/io/pinecone/proto/FetchRequest.java b/src/main/java/io/pinecone/proto/FetchRequest.java index 337e9975..2628bef2 100644 --- a/src/main/java/io/pinecone/proto/FetchRequest.java +++ b/src/main/java/io/pinecone/proto/FetchRequest.java @@ -1,6 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: db_data_2025-04.proto +// source: db_data_2025-10.proto // Protobuf Java Version: 4.29.3 package io.pinecone.proto; @@ -38,13 +38,13 @@ private FetchRequest() { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.pinecone.proto.DbData202504.internal_static_FetchRequest_descriptor; + return io.pinecone.proto.DbData202510.internal_static_FetchRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.pinecone.proto.DbData202504.internal_static_FetchRequest_fieldAccessorTable + return io.pinecone.proto.DbData202510.internal_static_FetchRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( io.pinecone.proto.FetchRequest.class, io.pinecone.proto.FetchRequest.Builder.class); } @@ -327,13 +327,13 @@ public static final class Builder extends io.pinecone.proto.FetchRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.pinecone.proto.DbData202504.internal_static_FetchRequest_descriptor; + return io.pinecone.proto.DbData202510.internal_static_FetchRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.pinecone.proto.DbData202504.internal_static_FetchRequest_fieldAccessorTable + return io.pinecone.proto.DbData202510.internal_static_FetchRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( io.pinecone.proto.FetchRequest.class, io.pinecone.proto.FetchRequest.Builder.class); } @@ -361,7 +361,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.pinecone.proto.DbData202504.internal_static_FetchRequest_descriptor; + return io.pinecone.proto.DbData202510.internal_static_FetchRequest_descriptor; } @java.lang.Override diff --git a/src/main/java/io/pinecone/proto/FetchRequestOrBuilder.java b/src/main/java/io/pinecone/proto/FetchRequestOrBuilder.java index 6abcefe3..267efa76 100644 --- a/src/main/java/io/pinecone/proto/FetchRequestOrBuilder.java +++ b/src/main/java/io/pinecone/proto/FetchRequestOrBuilder.java @@ -1,6 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: db_data_2025-04.proto +// source: db_data_2025-10.proto // Protobuf Java Version: 4.29.3 package io.pinecone.proto; diff --git a/src/main/java/io/pinecone/proto/FetchResponse.java b/src/main/java/io/pinecone/proto/FetchResponse.java index 28c70456..b7edabfe 100644 --- a/src/main/java/io/pinecone/proto/FetchResponse.java +++ b/src/main/java/io/pinecone/proto/FetchResponse.java @@ -1,13 +1,13 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: db_data_2025-04.proto +// source: db_data_2025-10.proto // Protobuf Java Version: 4.29.3 package io.pinecone.proto; /** *
- * The response for the `fetch` operation.
+ * The response for the `FetchByMetadata` operation.
  * 
* * Protobuf type {@code FetchResponse} @@ -36,7 +36,7 @@ private FetchResponse() { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.pinecone.proto.DbData202504.internal_static_FetchResponse_descriptor; + return io.pinecone.proto.DbData202510.internal_static_FetchResponse_descriptor; } @SuppressWarnings({"rawtypes"}) @@ -54,7 +54,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.pinecone.proto.DbData202504.internal_static_FetchResponse_fieldAccessorTable + return io.pinecone.proto.DbData202510.internal_static_FetchResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( io.pinecone.proto.FetchResponse.class, io.pinecone.proto.FetchResponse.Builder.class); } @@ -66,7 +66,7 @@ private static final class VectorsDefaultEntryHolder { java.lang.String, io.pinecone.proto.Vector> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( - io.pinecone.proto.DbData202504.internal_static_FetchResponse_VectorsEntry_descriptor, + io.pinecone.proto.DbData202510.internal_static_FetchResponse_VectorsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, @@ -436,7 +436,7 @@ protected Builder newBuilderForType( } /** *
-   * The response for the `fetch` operation.
+   * The response for the `FetchByMetadata` operation.
    * 
* * Protobuf type {@code FetchResponse} @@ -447,7 +447,7 @@ public static final class Builder extends io.pinecone.proto.FetchResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.pinecone.proto.DbData202504.internal_static_FetchResponse_descriptor; + return io.pinecone.proto.DbData202510.internal_static_FetchResponse_descriptor; } @SuppressWarnings({"rawtypes"}) @@ -475,7 +475,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.pinecone.proto.DbData202504.internal_static_FetchResponse_fieldAccessorTable + return io.pinecone.proto.DbData202510.internal_static_FetchResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( io.pinecone.proto.FetchResponse.class, io.pinecone.proto.FetchResponse.Builder.class); } @@ -513,7 +513,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.pinecone.proto.DbData202504.internal_static_FetchResponse_descriptor; + return io.pinecone.proto.DbData202510.internal_static_FetchResponse_descriptor; } @java.lang.Override diff --git a/src/main/java/io/pinecone/proto/FetchResponseOrBuilder.java b/src/main/java/io/pinecone/proto/FetchResponseOrBuilder.java index a07cb972..cc5798a7 100644 --- a/src/main/java/io/pinecone/proto/FetchResponseOrBuilder.java +++ b/src/main/java/io/pinecone/proto/FetchResponseOrBuilder.java @@ -1,6 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: db_data_2025-04.proto +// source: db_data_2025-10.proto // Protobuf Java Version: 4.29.3 package io.pinecone.proto; diff --git a/src/main/java/io/pinecone/proto/IndexedFields.java b/src/main/java/io/pinecone/proto/IndexedFields.java new file mode 100644 index 00000000..4ca291d9 --- /dev/null +++ b/src/main/java/io/pinecone/proto/IndexedFields.java @@ -0,0 +1,554 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: db_data_2025-10.proto +// Protobuf Java Version: 4.29.3 + +package io.pinecone.proto; + +/** + * Protobuf type {@code IndexedFields} + */ +public final class IndexedFields extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:IndexedFields) + IndexedFieldsOrBuilder { +private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 29, + /* patch= */ 3, + /* suffix= */ "", + IndexedFields.class.getName()); + } + // Use IndexedFields.newBuilder() to construct. + private IndexedFields(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private IndexedFields() { + fields_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.pinecone.proto.DbData202510.internal_static_IndexedFields_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.pinecone.proto.DbData202510.internal_static_IndexedFields_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.pinecone.proto.IndexedFields.class, io.pinecone.proto.IndexedFields.Builder.class); + } + + public static final int FIELDS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList fields_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * repeated string fields = 1 [json_name = "fields"]; + * @return A list containing the fields. + */ + public com.google.protobuf.ProtocolStringList + getFieldsList() { + return fields_; + } + /** + * repeated string fields = 1 [json_name = "fields"]; + * @return The count of fields. + */ + public int getFieldsCount() { + return fields_.size(); + } + /** + * repeated string fields = 1 [json_name = "fields"]; + * @param index The index of the element to return. + * @return The fields at the given index. + */ + public java.lang.String getFields(int index) { + return fields_.get(index); + } + /** + * repeated string fields = 1 [json_name = "fields"]; + * @param index The index of the value to return. + * @return The bytes of the fields at the given index. + */ + public com.google.protobuf.ByteString + getFieldsBytes(int index) { + return fields_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < fields_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, fields_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < fields_.size(); i++) { + dataSize += computeStringSizeNoTag(fields_.getRaw(i)); + } + size += dataSize; + size += 1 * getFieldsList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.pinecone.proto.IndexedFields)) { + return super.equals(obj); + } + io.pinecone.proto.IndexedFields other = (io.pinecone.proto.IndexedFields) obj; + + if (!getFieldsList() + .equals(other.getFieldsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getFieldsCount() > 0) { + hash = (37 * hash) + FIELDS_FIELD_NUMBER; + hash = (53 * hash) + getFieldsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.pinecone.proto.IndexedFields parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.pinecone.proto.IndexedFields parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.pinecone.proto.IndexedFields parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.pinecone.proto.IndexedFields parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.pinecone.proto.IndexedFields parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.pinecone.proto.IndexedFields parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.pinecone.proto.IndexedFields parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.pinecone.proto.IndexedFields parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.pinecone.proto.IndexedFields parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.pinecone.proto.IndexedFields parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.pinecone.proto.IndexedFields parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.pinecone.proto.IndexedFields parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.pinecone.proto.IndexedFields prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code IndexedFields} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:IndexedFields) + io.pinecone.proto.IndexedFieldsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.pinecone.proto.DbData202510.internal_static_IndexedFields_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.pinecone.proto.DbData202510.internal_static_IndexedFields_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.pinecone.proto.IndexedFields.class, io.pinecone.proto.IndexedFields.Builder.class); + } + + // Construct using io.pinecone.proto.IndexedFields.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + fields_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.pinecone.proto.DbData202510.internal_static_IndexedFields_descriptor; + } + + @java.lang.Override + public io.pinecone.proto.IndexedFields getDefaultInstanceForType() { + return io.pinecone.proto.IndexedFields.getDefaultInstance(); + } + + @java.lang.Override + public io.pinecone.proto.IndexedFields build() { + io.pinecone.proto.IndexedFields result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.pinecone.proto.IndexedFields buildPartial() { + io.pinecone.proto.IndexedFields result = new io.pinecone.proto.IndexedFields(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.pinecone.proto.IndexedFields result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + fields_.makeImmutable(); + result.fields_ = fields_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.pinecone.proto.IndexedFields) { + return mergeFrom((io.pinecone.proto.IndexedFields)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.pinecone.proto.IndexedFields other) { + if (other == io.pinecone.proto.IndexedFields.getDefaultInstance()) return this; + if (!other.fields_.isEmpty()) { + if (fields_.isEmpty()) { + fields_ = other.fields_; + bitField0_ |= 0x00000001; + } else { + ensureFieldsIsMutable(); + fields_.addAll(other.fields_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureFieldsIsMutable(); + fields_.add(s); + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList fields_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureFieldsIsMutable() { + if (!fields_.isModifiable()) { + fields_ = new com.google.protobuf.LazyStringArrayList(fields_); + } + bitField0_ |= 0x00000001; + } + /** + * repeated string fields = 1 [json_name = "fields"]; + * @return A list containing the fields. + */ + public com.google.protobuf.ProtocolStringList + getFieldsList() { + fields_.makeImmutable(); + return fields_; + } + /** + * repeated string fields = 1 [json_name = "fields"]; + * @return The count of fields. + */ + public int getFieldsCount() { + return fields_.size(); + } + /** + * repeated string fields = 1 [json_name = "fields"]; + * @param index The index of the element to return. + * @return The fields at the given index. + */ + public java.lang.String getFields(int index) { + return fields_.get(index); + } + /** + * repeated string fields = 1 [json_name = "fields"]; + * @param index The index of the value to return. + * @return The bytes of the fields at the given index. + */ + public com.google.protobuf.ByteString + getFieldsBytes(int index) { + return fields_.getByteString(index); + } + /** + * repeated string fields = 1 [json_name = "fields"]; + * @param index The index to set the value at. + * @param value The fields to set. + * @return This builder for chaining. + */ + public Builder setFields( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureFieldsIsMutable(); + fields_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * repeated string fields = 1 [json_name = "fields"]; + * @param value The fields to add. + * @return This builder for chaining. + */ + public Builder addFields( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureFieldsIsMutable(); + fields_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * repeated string fields = 1 [json_name = "fields"]; + * @param values The fields to add. + * @return This builder for chaining. + */ + public Builder addAllFields( + java.lang.Iterable values) { + ensureFieldsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, fields_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * repeated string fields = 1 [json_name = "fields"]; + * @return This builder for chaining. + */ + public Builder clearFields() { + fields_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; + onChanged(); + return this; + } + /** + * repeated string fields = 1 [json_name = "fields"]; + * @param value The bytes of the fields to add. + * @return This builder for chaining. + */ + public Builder addFieldsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureFieldsIsMutable(); + fields_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:IndexedFields) + } + + // @@protoc_insertion_point(class_scope:IndexedFields) + private static final io.pinecone.proto.IndexedFields DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.pinecone.proto.IndexedFields(); + } + + public static io.pinecone.proto.IndexedFields getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IndexedFields parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.pinecone.proto.IndexedFields getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/io/pinecone/proto/IndexedFieldsOrBuilder.java b/src/main/java/io/pinecone/proto/IndexedFieldsOrBuilder.java new file mode 100644 index 00000000..faa0a036 --- /dev/null +++ b/src/main/java/io/pinecone/proto/IndexedFieldsOrBuilder.java @@ -0,0 +1,36 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: db_data_2025-10.proto +// Protobuf Java Version: 4.29.3 + +package io.pinecone.proto; + +public interface IndexedFieldsOrBuilder extends + // @@protoc_insertion_point(interface_extends:IndexedFields) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated string fields = 1 [json_name = "fields"]; + * @return A list containing the fields. + */ + java.util.List + getFieldsList(); + /** + * repeated string fields = 1 [json_name = "fields"]; + * @return The count of fields. + */ + int getFieldsCount(); + /** + * repeated string fields = 1 [json_name = "fields"]; + * @param index The index of the element to return. + * @return The fields at the given index. + */ + java.lang.String getFields(int index); + /** + * repeated string fields = 1 [json_name = "fields"]; + * @param index The index of the value to return. + * @return The bytes of the fields at the given index. + */ + com.google.protobuf.ByteString + getFieldsBytes(int index); +} diff --git a/src/main/java/io/pinecone/proto/ListItem.java b/src/main/java/io/pinecone/proto/ListItem.java index 6da06946..1d56abf9 100644 --- a/src/main/java/io/pinecone/proto/ListItem.java +++ b/src/main/java/io/pinecone/proto/ListItem.java @@ -1,6 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: db_data_2025-04.proto +// source: db_data_2025-10.proto // Protobuf Java Version: 4.29.3 package io.pinecone.proto; @@ -32,13 +32,13 @@ private ListItem() { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.pinecone.proto.DbData202504.internal_static_ListItem_descriptor; + return io.pinecone.proto.DbData202510.internal_static_ListItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.pinecone.proto.DbData202504.internal_static_ListItem_fieldAccessorTable + return io.pinecone.proto.DbData202510.internal_static_ListItem_fieldAccessorTable .ensureFieldAccessorsInitialized( io.pinecone.proto.ListItem.class, io.pinecone.proto.ListItem.Builder.class); } @@ -247,13 +247,13 @@ public static final class Builder extends io.pinecone.proto.ListItemOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.pinecone.proto.DbData202504.internal_static_ListItem_descriptor; + return io.pinecone.proto.DbData202510.internal_static_ListItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.pinecone.proto.DbData202504.internal_static_ListItem_fieldAccessorTable + return io.pinecone.proto.DbData202510.internal_static_ListItem_fieldAccessorTable .ensureFieldAccessorsInitialized( io.pinecone.proto.ListItem.class, io.pinecone.proto.ListItem.Builder.class); } @@ -279,7 +279,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.pinecone.proto.DbData202504.internal_static_ListItem_descriptor; + return io.pinecone.proto.DbData202510.internal_static_ListItem_descriptor; } @java.lang.Override diff --git a/src/main/java/io/pinecone/proto/ListItemOrBuilder.java b/src/main/java/io/pinecone/proto/ListItemOrBuilder.java index 66eb1067..5d98edbc 100644 --- a/src/main/java/io/pinecone/proto/ListItemOrBuilder.java +++ b/src/main/java/io/pinecone/proto/ListItemOrBuilder.java @@ -1,6 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: db_data_2025-04.proto +// source: db_data_2025-10.proto // Protobuf Java Version: 4.29.3 package io.pinecone.proto; diff --git a/src/main/java/io/pinecone/proto/ListNamespacesRequest.java b/src/main/java/io/pinecone/proto/ListNamespacesRequest.java index a9bc8098..a3b706d6 100644 --- a/src/main/java/io/pinecone/proto/ListNamespacesRequest.java +++ b/src/main/java/io/pinecone/proto/ListNamespacesRequest.java @@ -1,6 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: db_data_2025-04.proto +// source: db_data_2025-10.proto // Protobuf Java Version: 4.29.3 package io.pinecone.proto; @@ -32,17 +32,18 @@ private ListNamespacesRequest(com.google.protobuf.GeneratedMessage.Builder bu } private ListNamespacesRequest() { paginationToken_ = ""; + prefix_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.pinecone.proto.DbData202504.internal_static_ListNamespacesRequest_descriptor; + return io.pinecone.proto.DbData202510.internal_static_ListNamespacesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.pinecone.proto.DbData202504.internal_static_ListNamespacesRequest_fieldAccessorTable + return io.pinecone.proto.DbData202510.internal_static_ListNamespacesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( io.pinecone.proto.ListNamespacesRequest.class, io.pinecone.proto.ListNamespacesRequest.Builder.class); } @@ -134,6 +135,65 @@ public int getLimit() { return limit_; } + public static final int PREFIX_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object prefix_ = ""; + /** + *
+   * Prefix of the namespaces to list
+   * 
+ * + * optional string prefix = 3 [json_name = "prefix"]; + * @return Whether the prefix field is set. + */ + @java.lang.Override + public boolean hasPrefix() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+   * Prefix of the namespaces to list
+   * 
+ * + * optional string prefix = 3 [json_name = "prefix"]; + * @return The prefix. + */ + @java.lang.Override + public java.lang.String getPrefix() { + java.lang.Object ref = prefix_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + prefix_ = s; + return s; + } + } + /** + *
+   * Prefix of the namespaces to list
+   * 
+ * + * optional string prefix = 3 [json_name = "prefix"]; + * @return The bytes for prefix. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPrefixBytes() { + java.lang.Object ref = prefix_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + prefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -154,6 +214,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (((bitField0_ & 0x00000002) != 0)) { output.writeUInt32(2, limit_); } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, prefix_); + } getUnknownFields().writeTo(output); } @@ -170,6 +233,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, limit_); } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, prefix_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -195,6 +261,11 @@ public boolean equals(final java.lang.Object obj) { if (getLimit() != other.getLimit()) return false; } + if (hasPrefix() != other.hasPrefix()) return false; + if (hasPrefix()) { + if (!getPrefix() + .equals(other.getPrefix())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -214,6 +285,10 @@ public int hashCode() { hash = (37 * hash) + LIMIT_FIELD_NUMBER; hash = (53 * hash) + getLimit(); } + if (hasPrefix()) { + hash = (37 * hash) + PREFIX_FIELD_NUMBER; + hash = (53 * hash) + getPrefix().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -324,13 +399,13 @@ public static final class Builder extends io.pinecone.proto.ListNamespacesRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.pinecone.proto.DbData202504.internal_static_ListNamespacesRequest_descriptor; + return io.pinecone.proto.DbData202510.internal_static_ListNamespacesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.pinecone.proto.DbData202504.internal_static_ListNamespacesRequest_fieldAccessorTable + return io.pinecone.proto.DbData202510.internal_static_ListNamespacesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( io.pinecone.proto.ListNamespacesRequest.class, io.pinecone.proto.ListNamespacesRequest.Builder.class); } @@ -351,13 +426,14 @@ public Builder clear() { bitField0_ = 0; paginationToken_ = ""; limit_ = 0; + prefix_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.pinecone.proto.DbData202504.internal_static_ListNamespacesRequest_descriptor; + return io.pinecone.proto.DbData202510.internal_static_ListNamespacesRequest_descriptor; } @java.lang.Override @@ -393,6 +469,10 @@ private void buildPartial0(io.pinecone.proto.ListNamespacesRequest result) { result.limit_ = limit_; to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.prefix_ = prefix_; + to_bitField0_ |= 0x00000004; + } result.bitField0_ |= to_bitField0_; } @@ -416,6 +496,11 @@ public Builder mergeFrom(io.pinecone.proto.ListNamespacesRequest other) { if (other.hasLimit()) { setLimit(other.getLimit()); } + if (other.hasPrefix()) { + prefix_ = other.prefix_; + bitField0_ |= 0x00000004; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -452,6 +537,11 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 16 + case 26: { + prefix_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -628,6 +718,109 @@ public Builder clearLimit() { return this; } + private java.lang.Object prefix_ = ""; + /** + *
+     * Prefix of the namespaces to list
+     * 
+ * + * optional string prefix = 3 [json_name = "prefix"]; + * @return Whether the prefix field is set. + */ + public boolean hasPrefix() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * Prefix of the namespaces to list
+     * 
+ * + * optional string prefix = 3 [json_name = "prefix"]; + * @return The prefix. + */ + public java.lang.String getPrefix() { + java.lang.Object ref = prefix_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + prefix_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Prefix of the namespaces to list
+     * 
+ * + * optional string prefix = 3 [json_name = "prefix"]; + * @return The bytes for prefix. + */ + public com.google.protobuf.ByteString + getPrefixBytes() { + java.lang.Object ref = prefix_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + prefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Prefix of the namespaces to list
+     * 
+ * + * optional string prefix = 3 [json_name = "prefix"]; + * @param value The prefix to set. + * @return This builder for chaining. + */ + public Builder setPrefix( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + prefix_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Prefix of the namespaces to list
+     * 
+ * + * optional string prefix = 3 [json_name = "prefix"]; + * @return This builder for chaining. + */ + public Builder clearPrefix() { + prefix_ = getDefaultInstance().getPrefix(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * Prefix of the namespaces to list
+     * 
+ * + * optional string prefix = 3 [json_name = "prefix"]; + * @param value The bytes for prefix to set. + * @return This builder for chaining. + */ + public Builder setPrefixBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + prefix_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:ListNamespacesRequest) } diff --git a/src/main/java/io/pinecone/proto/ListNamespacesRequestOrBuilder.java b/src/main/java/io/pinecone/proto/ListNamespacesRequestOrBuilder.java index 3fd07006..fd78e13e 100644 --- a/src/main/java/io/pinecone/proto/ListNamespacesRequestOrBuilder.java +++ b/src/main/java/io/pinecone/proto/ListNamespacesRequestOrBuilder.java @@ -1,6 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: db_data_2025-04.proto +// source: db_data_2025-10.proto // Protobuf Java Version: 4.29.3 package io.pinecone.proto; @@ -56,4 +56,33 @@ public interface ListNamespacesRequestOrBuilder extends * @return The limit. */ int getLimit(); + + /** + *
+   * Prefix of the namespaces to list
+   * 
+ * + * optional string prefix = 3 [json_name = "prefix"]; + * @return Whether the prefix field is set. + */ + boolean hasPrefix(); + /** + *
+   * Prefix of the namespaces to list
+   * 
+ * + * optional string prefix = 3 [json_name = "prefix"]; + * @return The prefix. + */ + java.lang.String getPrefix(); + /** + *
+   * Prefix of the namespaces to list
+   * 
+ * + * optional string prefix = 3 [json_name = "prefix"]; + * @return The bytes for prefix. + */ + com.google.protobuf.ByteString + getPrefixBytes(); } diff --git a/src/main/java/io/pinecone/proto/ListNamespacesResponse.java b/src/main/java/io/pinecone/proto/ListNamespacesResponse.java index 872fd97b..16193f76 100644 --- a/src/main/java/io/pinecone/proto/ListNamespacesResponse.java +++ b/src/main/java/io/pinecone/proto/ListNamespacesResponse.java @@ -1,6 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: db_data_2025-04.proto +// source: db_data_2025-10.proto // Protobuf Java Version: 4.29.3 package io.pinecone.proto; @@ -36,13 +36,13 @@ private ListNamespacesResponse() { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.pinecone.proto.DbData202504.internal_static_ListNamespacesResponse_descriptor; + return io.pinecone.proto.DbData202510.internal_static_ListNamespacesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.pinecone.proto.DbData202504.internal_static_ListNamespacesResponse_fieldAccessorTable + return io.pinecone.proto.DbData202510.internal_static_ListNamespacesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( io.pinecone.proto.ListNamespacesResponse.class, io.pinecone.proto.ListNamespacesResponse.Builder.class); } @@ -147,6 +147,21 @@ public io.pinecone.proto.PaginationOrBuilder getPaginationOrBuilder() { return pagination_ == null ? io.pinecone.proto.Pagination.getDefaultInstance() : pagination_; } + public static final int TOTAL_COUNT_FIELD_NUMBER = 3; + private int totalCount_ = 0; + /** + *
+   * The total number of namespaces in the index matching the prefix
+   * 
+ * + * int32 total_count = 3 [json_name = "totalCount"]; + * @return The totalCount. + */ + @java.lang.Override + public int getTotalCount() { + return totalCount_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -167,6 +182,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getPagination()); } + if (totalCount_ != 0) { + output.writeInt32(3, totalCount_); + } getUnknownFields().writeTo(output); } @@ -184,6 +202,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getPagination()); } + if (totalCount_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, totalCount_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -206,6 +228,8 @@ public boolean equals(final java.lang.Object obj) { if (!getPagination() .equals(other.getPagination())) return false; } + if (getTotalCount() + != other.getTotalCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -225,6 +249,8 @@ public int hashCode() { hash = (37 * hash) + PAGINATION_FIELD_NUMBER; hash = (53 * hash) + getPagination().hashCode(); } + hash = (37 * hash) + TOTAL_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getTotalCount(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -335,13 +361,13 @@ public static final class Builder extends io.pinecone.proto.ListNamespacesResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.pinecone.proto.DbData202504.internal_static_ListNamespacesResponse_descriptor; + return io.pinecone.proto.DbData202510.internal_static_ListNamespacesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.pinecone.proto.DbData202504.internal_static_ListNamespacesResponse_fieldAccessorTable + return io.pinecone.proto.DbData202510.internal_static_ListNamespacesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( io.pinecone.proto.ListNamespacesResponse.class, io.pinecone.proto.ListNamespacesResponse.Builder.class); } @@ -379,13 +405,14 @@ public Builder clear() { paginationBuilder_.dispose(); paginationBuilder_ = null; } + totalCount_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.pinecone.proto.DbData202504.internal_static_ListNamespacesResponse_descriptor; + return io.pinecone.proto.DbData202510.internal_static_ListNamespacesResponse_descriptor; } @java.lang.Override @@ -432,6 +459,9 @@ private void buildPartial0(io.pinecone.proto.ListNamespacesResponse result) { : paginationBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.totalCount_ = totalCount_; + } result.bitField0_ |= to_bitField0_; } @@ -476,6 +506,9 @@ public Builder mergeFrom(io.pinecone.proto.ListNamespacesResponse other) { if (other.hasPagination()) { mergePagination(other.getPagination()); } + if (other.getTotalCount() != 0) { + setTotalCount(other.getTotalCount()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -522,6 +555,11 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 24: { + totalCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -1008,6 +1046,50 @@ public io.pinecone.proto.PaginationOrBuilder getPaginationOrBuilder() { return paginationBuilder_; } + private int totalCount_ ; + /** + *
+     * The total number of namespaces in the index matching the prefix
+     * 
+ * + * int32 total_count = 3 [json_name = "totalCount"]; + * @return The totalCount. + */ + @java.lang.Override + public int getTotalCount() { + return totalCount_; + } + /** + *
+     * The total number of namespaces in the index matching the prefix
+     * 
+ * + * int32 total_count = 3 [json_name = "totalCount"]; + * @param value The totalCount to set. + * @return This builder for chaining. + */ + public Builder setTotalCount(int value) { + + totalCount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * The total number of namespaces in the index matching the prefix
+     * 
+ * + * int32 total_count = 3 [json_name = "totalCount"]; + * @return This builder for chaining. + */ + public Builder clearTotalCount() { + bitField0_ = (bitField0_ & ~0x00000004); + totalCount_ = 0; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:ListNamespacesResponse) } diff --git a/src/main/java/io/pinecone/proto/ListNamespacesResponseOrBuilder.java b/src/main/java/io/pinecone/proto/ListNamespacesResponseOrBuilder.java index 3b8eeea0..57bac011 100644 --- a/src/main/java/io/pinecone/proto/ListNamespacesResponseOrBuilder.java +++ b/src/main/java/io/pinecone/proto/ListNamespacesResponseOrBuilder.java @@ -1,6 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: db_data_2025-04.proto +// source: db_data_2025-10.proto // Protobuf Java Version: 4.29.3 package io.pinecone.proto; @@ -79,4 +79,14 @@ io.pinecone.proto.NamespaceDescriptionOrBuilder getNamespacesOrBuilder( * optional .Pagination pagination = 2 [json_name = "pagination"]; */ io.pinecone.proto.PaginationOrBuilder getPaginationOrBuilder(); + + /** + *
+   * The total number of namespaces in the index matching the prefix
+   * 
+ * + * int32 total_count = 3 [json_name = "totalCount"]; + * @return The totalCount. + */ + int getTotalCount(); } diff --git a/src/main/java/io/pinecone/proto/ListRequest.java b/src/main/java/io/pinecone/proto/ListRequest.java index bda90f3b..929e985a 100644 --- a/src/main/java/io/pinecone/proto/ListRequest.java +++ b/src/main/java/io/pinecone/proto/ListRequest.java @@ -1,6 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: db_data_2025-04.proto +// source: db_data_2025-10.proto // Protobuf Java Version: 4.29.3 package io.pinecone.proto; @@ -38,13 +38,13 @@ private ListRequest() { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.pinecone.proto.DbData202504.internal_static_ListRequest_descriptor; + return io.pinecone.proto.DbData202510.internal_static_ListRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.pinecone.proto.DbData202504.internal_static_ListRequest_fieldAccessorTable + return io.pinecone.proto.DbData202510.internal_static_ListRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( io.pinecone.proto.ListRequest.class, io.pinecone.proto.ListRequest.Builder.class); } @@ -449,13 +449,13 @@ public static final class Builder extends io.pinecone.proto.ListRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.pinecone.proto.DbData202504.internal_static_ListRequest_descriptor; + return io.pinecone.proto.DbData202510.internal_static_ListRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.pinecone.proto.DbData202504.internal_static_ListRequest_fieldAccessorTable + return io.pinecone.proto.DbData202510.internal_static_ListRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( io.pinecone.proto.ListRequest.class, io.pinecone.proto.ListRequest.Builder.class); } @@ -484,7 +484,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.pinecone.proto.DbData202504.internal_static_ListRequest_descriptor; + return io.pinecone.proto.DbData202510.internal_static_ListRequest_descriptor; } @java.lang.Override diff --git a/src/main/java/io/pinecone/proto/ListRequestOrBuilder.java b/src/main/java/io/pinecone/proto/ListRequestOrBuilder.java index 5a6c2f4c..94940f65 100644 --- a/src/main/java/io/pinecone/proto/ListRequestOrBuilder.java +++ b/src/main/java/io/pinecone/proto/ListRequestOrBuilder.java @@ -1,6 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: db_data_2025-04.proto +// source: db_data_2025-10.proto // Protobuf Java Version: 4.29.3 package io.pinecone.proto; diff --git a/src/main/java/io/pinecone/proto/ListResponse.java b/src/main/java/io/pinecone/proto/ListResponse.java index 9b7d4c73..4eec7ecc 100644 --- a/src/main/java/io/pinecone/proto/ListResponse.java +++ b/src/main/java/io/pinecone/proto/ListResponse.java @@ -1,6 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: db_data_2025-04.proto +// source: db_data_2025-10.proto // Protobuf Java Version: 4.29.3 package io.pinecone.proto; @@ -37,13 +37,13 @@ private ListResponse() { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.pinecone.proto.DbData202504.internal_static_ListResponse_descriptor; + return io.pinecone.proto.DbData202510.internal_static_ListResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.pinecone.proto.DbData202504.internal_static_ListResponse_fieldAccessorTable + return io.pinecone.proto.DbData202510.internal_static_ListResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( io.pinecone.proto.ListResponse.class, io.pinecone.proto.ListResponse.Builder.class); } @@ -447,13 +447,13 @@ public static final class Builder extends io.pinecone.proto.ListResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.pinecone.proto.DbData202504.internal_static_ListResponse_descriptor; + return io.pinecone.proto.DbData202510.internal_static_ListResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.pinecone.proto.DbData202504.internal_static_ListResponse_fieldAccessorTable + return io.pinecone.proto.DbData202510.internal_static_ListResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( io.pinecone.proto.ListResponse.class, io.pinecone.proto.ListResponse.Builder.class); } @@ -504,7 +504,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.pinecone.proto.DbData202504.internal_static_ListResponse_descriptor; + return io.pinecone.proto.DbData202510.internal_static_ListResponse_descriptor; } @java.lang.Override diff --git a/src/main/java/io/pinecone/proto/ListResponseOrBuilder.java b/src/main/java/io/pinecone/proto/ListResponseOrBuilder.java index b55eadbc..75dd54cc 100644 --- a/src/main/java/io/pinecone/proto/ListResponseOrBuilder.java +++ b/src/main/java/io/pinecone/proto/ListResponseOrBuilder.java @@ -1,6 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: db_data_2025-04.proto +// source: db_data_2025-10.proto // Protobuf Java Version: 4.29.3 package io.pinecone.proto; diff --git a/src/main/java/io/pinecone/proto/MetadataFieldProperties.java b/src/main/java/io/pinecone/proto/MetadataFieldProperties.java new file mode 100644 index 00000000..ad316207 --- /dev/null +++ b/src/main/java/io/pinecone/proto/MetadataFieldProperties.java @@ -0,0 +1,460 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: db_data_2025-10.proto +// Protobuf Java Version: 4.29.3 + +package io.pinecone.proto; + +/** + *
+ * Properties for a metadata field that control its indexing behavior.
+ * 
+ * + * Protobuf type {@code MetadataFieldProperties} + */ +public final class MetadataFieldProperties extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:MetadataFieldProperties) + MetadataFieldPropertiesOrBuilder { +private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 29, + /* patch= */ 3, + /* suffix= */ "", + MetadataFieldProperties.class.getName()); + } + // Use MetadataFieldProperties.newBuilder() to construct. + private MetadataFieldProperties(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private MetadataFieldProperties() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.pinecone.proto.DbData202510.internal_static_MetadataFieldProperties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.pinecone.proto.DbData202510.internal_static_MetadataFieldProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.pinecone.proto.MetadataFieldProperties.class, io.pinecone.proto.MetadataFieldProperties.Builder.class); + } + + public static final int FILTERABLE_FIELD_NUMBER = 1; + private boolean filterable_ = false; + /** + *
+   * Whether this field should be indexed for filtering.
+   * Only values of true are supported; all other fields will not be indexed.
+   * 
+ * + * bool filterable = 1 [json_name = "filterable"]; + * @return The filterable. + */ + @java.lang.Override + public boolean getFilterable() { + return filterable_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (filterable_ != false) { + output.writeBool(1, filterable_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (filterable_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, filterable_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.pinecone.proto.MetadataFieldProperties)) { + return super.equals(obj); + } + io.pinecone.proto.MetadataFieldProperties other = (io.pinecone.proto.MetadataFieldProperties) obj; + + if (getFilterable() + != other.getFilterable()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FILTERABLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getFilterable()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.pinecone.proto.MetadataFieldProperties parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.pinecone.proto.MetadataFieldProperties parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.pinecone.proto.MetadataFieldProperties parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.pinecone.proto.MetadataFieldProperties parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.pinecone.proto.MetadataFieldProperties parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.pinecone.proto.MetadataFieldProperties parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.pinecone.proto.MetadataFieldProperties parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.pinecone.proto.MetadataFieldProperties parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.pinecone.proto.MetadataFieldProperties parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.pinecone.proto.MetadataFieldProperties parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.pinecone.proto.MetadataFieldProperties parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.pinecone.proto.MetadataFieldProperties parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.pinecone.proto.MetadataFieldProperties prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Properties for a metadata field that control its indexing behavior.
+   * 
+ * + * Protobuf type {@code MetadataFieldProperties} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:MetadataFieldProperties) + io.pinecone.proto.MetadataFieldPropertiesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.pinecone.proto.DbData202510.internal_static_MetadataFieldProperties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.pinecone.proto.DbData202510.internal_static_MetadataFieldProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.pinecone.proto.MetadataFieldProperties.class, io.pinecone.proto.MetadataFieldProperties.Builder.class); + } + + // Construct using io.pinecone.proto.MetadataFieldProperties.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + filterable_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.pinecone.proto.DbData202510.internal_static_MetadataFieldProperties_descriptor; + } + + @java.lang.Override + public io.pinecone.proto.MetadataFieldProperties getDefaultInstanceForType() { + return io.pinecone.proto.MetadataFieldProperties.getDefaultInstance(); + } + + @java.lang.Override + public io.pinecone.proto.MetadataFieldProperties build() { + io.pinecone.proto.MetadataFieldProperties result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.pinecone.proto.MetadataFieldProperties buildPartial() { + io.pinecone.proto.MetadataFieldProperties result = new io.pinecone.proto.MetadataFieldProperties(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.pinecone.proto.MetadataFieldProperties result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.filterable_ = filterable_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.pinecone.proto.MetadataFieldProperties) { + return mergeFrom((io.pinecone.proto.MetadataFieldProperties)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.pinecone.proto.MetadataFieldProperties other) { + if (other == io.pinecone.proto.MetadataFieldProperties.getDefaultInstance()) return this; + if (other.getFilterable() != false) { + setFilterable(other.getFilterable()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + filterable_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private boolean filterable_ ; + /** + *
+     * Whether this field should be indexed for filtering.
+     * Only values of true are supported; all other fields will not be indexed.
+     * 
+ * + * bool filterable = 1 [json_name = "filterable"]; + * @return The filterable. + */ + @java.lang.Override + public boolean getFilterable() { + return filterable_; + } + /** + *
+     * Whether this field should be indexed for filtering.
+     * Only values of true are supported; all other fields will not be indexed.
+     * 
+ * + * bool filterable = 1 [json_name = "filterable"]; + * @param value The filterable to set. + * @return This builder for chaining. + */ + public Builder setFilterable(boolean value) { + + filterable_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Whether this field should be indexed for filtering.
+     * Only values of true are supported; all other fields will not be indexed.
+     * 
+ * + * bool filterable = 1 [json_name = "filterable"]; + * @return This builder for chaining. + */ + public Builder clearFilterable() { + bitField0_ = (bitField0_ & ~0x00000001); + filterable_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:MetadataFieldProperties) + } + + // @@protoc_insertion_point(class_scope:MetadataFieldProperties) + private static final io.pinecone.proto.MetadataFieldProperties DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.pinecone.proto.MetadataFieldProperties(); + } + + public static io.pinecone.proto.MetadataFieldProperties getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MetadataFieldProperties parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.pinecone.proto.MetadataFieldProperties getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/io/pinecone/proto/MetadataFieldPropertiesOrBuilder.java b/src/main/java/io/pinecone/proto/MetadataFieldPropertiesOrBuilder.java new file mode 100644 index 00000000..218a363c --- /dev/null +++ b/src/main/java/io/pinecone/proto/MetadataFieldPropertiesOrBuilder.java @@ -0,0 +1,22 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: db_data_2025-10.proto +// Protobuf Java Version: 4.29.3 + +package io.pinecone.proto; + +public interface MetadataFieldPropertiesOrBuilder extends + // @@protoc_insertion_point(interface_extends:MetadataFieldProperties) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Whether this field should be indexed for filtering.
+   * Only values of true are supported; all other fields will not be indexed.
+   * 
+ * + * bool filterable = 1 [json_name = "filterable"]; + * @return The filterable. + */ + boolean getFilterable(); +} diff --git a/src/main/java/io/pinecone/proto/MetadataSchema.java b/src/main/java/io/pinecone/proto/MetadataSchema.java new file mode 100644 index 00000000..2eb78cb4 --- /dev/null +++ b/src/main/java/io/pinecone/proto/MetadataSchema.java @@ -0,0 +1,733 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: db_data_2025-10.proto +// Protobuf Java Version: 4.29.3 + +package io.pinecone.proto; + +/** + *
+ * Schema for the behavior of Pinecone's internal metadata index.
+ * By default, all metadata is indexed; when `schema` is present,
+ * only fields which are present in the `fields` object with a
+ * `filterable: true` are indexed.
+ * 
+ * + * Protobuf type {@code MetadataSchema} + */ +public final class MetadataSchema extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:MetadataSchema) + MetadataSchemaOrBuilder { +private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 29, + /* patch= */ 3, + /* suffix= */ "", + MetadataSchema.class.getName()); + } + // Use MetadataSchema.newBuilder() to construct. + private MetadataSchema(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private MetadataSchema() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.pinecone.proto.DbData202510.internal_static_MetadataSchema_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetFields(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.pinecone.proto.DbData202510.internal_static_MetadataSchema_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.pinecone.proto.MetadataSchema.class, io.pinecone.proto.MetadataSchema.Builder.class); + } + + public static final int FIELDS_FIELD_NUMBER = 1; + private static final class FieldsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, io.pinecone.proto.MetadataFieldProperties> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + io.pinecone.proto.DbData202510.internal_static_MetadataSchema_FieldsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + io.pinecone.proto.MetadataFieldProperties.getDefaultInstance()); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, io.pinecone.proto.MetadataFieldProperties> fields_; + private com.google.protobuf.MapField + internalGetFields() { + if (fields_ == null) { + return com.google.protobuf.MapField.emptyMapField( + FieldsDefaultEntryHolder.defaultEntry); + } + return fields_; + } + public int getFieldsCount() { + return internalGetFields().getMap().size(); + } + /** + *
+   * A map of field names to their properties.
+   * 
+ * + * map<string, .MetadataFieldProperties> fields = 1 [json_name = "fields"]; + */ + @java.lang.Override + public boolean containsFields( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetFields().getMap().containsKey(key); + } + /** + * Use {@link #getFieldsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getFields() { + return getFieldsMap(); + } + /** + *
+   * A map of field names to their properties.
+   * 
+ * + * map<string, .MetadataFieldProperties> fields = 1 [json_name = "fields"]; + */ + @java.lang.Override + public java.util.Map getFieldsMap() { + return internalGetFields().getMap(); + } + /** + *
+   * A map of field names to their properties.
+   * 
+ * + * map<string, .MetadataFieldProperties> fields = 1 [json_name = "fields"]; + */ + @java.lang.Override + public /* nullable */ +io.pinecone.proto.MetadataFieldProperties getFieldsOrDefault( + java.lang.String key, + /* nullable */ +io.pinecone.proto.MetadataFieldProperties defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetFields().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * A map of field names to their properties.
+   * 
+ * + * map<string, .MetadataFieldProperties> fields = 1 [json_name = "fields"]; + */ + @java.lang.Override + public io.pinecone.proto.MetadataFieldProperties getFieldsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetFields().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessage + .serializeStringMapTo( + output, + internalGetFields(), + FieldsDefaultEntryHolder.defaultEntry, + 1); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry + : internalGetFields().getMap().entrySet()) { + com.google.protobuf.MapEntry + fields__ = FieldsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, fields__); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.pinecone.proto.MetadataSchema)) { + return super.equals(obj); + } + io.pinecone.proto.MetadataSchema other = (io.pinecone.proto.MetadataSchema) obj; + + if (!internalGetFields().equals( + other.internalGetFields())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetFields().getMap().isEmpty()) { + hash = (37 * hash) + FIELDS_FIELD_NUMBER; + hash = (53 * hash) + internalGetFields().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.pinecone.proto.MetadataSchema parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.pinecone.proto.MetadataSchema parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.pinecone.proto.MetadataSchema parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.pinecone.proto.MetadataSchema parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.pinecone.proto.MetadataSchema parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.pinecone.proto.MetadataSchema parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.pinecone.proto.MetadataSchema parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.pinecone.proto.MetadataSchema parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static io.pinecone.proto.MetadataSchema parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static io.pinecone.proto.MetadataSchema parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.pinecone.proto.MetadataSchema parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static io.pinecone.proto.MetadataSchema parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.pinecone.proto.MetadataSchema prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Schema for the behavior of Pinecone's internal metadata index.
+   * By default, all metadata is indexed; when `schema` is present,
+   * only fields which are present in the `fields` object with a
+   * `filterable: true` are indexed.
+   * 
+ * + * Protobuf type {@code MetadataSchema} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:MetadataSchema) + io.pinecone.proto.MetadataSchemaOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.pinecone.proto.DbData202510.internal_static_MetadataSchema_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetFields(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetMutableFields(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.pinecone.proto.DbData202510.internal_static_MetadataSchema_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.pinecone.proto.MetadataSchema.class, io.pinecone.proto.MetadataSchema.Builder.class); + } + + // Construct using io.pinecone.proto.MetadataSchema.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + internalGetMutableFields().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.pinecone.proto.DbData202510.internal_static_MetadataSchema_descriptor; + } + + @java.lang.Override + public io.pinecone.proto.MetadataSchema getDefaultInstanceForType() { + return io.pinecone.proto.MetadataSchema.getDefaultInstance(); + } + + @java.lang.Override + public io.pinecone.proto.MetadataSchema build() { + io.pinecone.proto.MetadataSchema result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.pinecone.proto.MetadataSchema buildPartial() { + io.pinecone.proto.MetadataSchema result = new io.pinecone.proto.MetadataSchema(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(io.pinecone.proto.MetadataSchema result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.fields_ = internalGetFields().build(FieldsDefaultEntryHolder.defaultEntry); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.pinecone.proto.MetadataSchema) { + return mergeFrom((io.pinecone.proto.MetadataSchema)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.pinecone.proto.MetadataSchema other) { + if (other == io.pinecone.proto.MetadataSchema.getDefaultInstance()) return this; + internalGetMutableFields().mergeFrom( + other.internalGetFields()); + bitField0_ |= 0x00000001; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.MapEntry + fields__ = input.readMessage( + FieldsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableFields().ensureBuilderMap().put( + fields__.getKey(), fields__.getValue()); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private static final class FieldsConverter implements com.google.protobuf.MapFieldBuilder.Converter { + @java.lang.Override + public io.pinecone.proto.MetadataFieldProperties build(io.pinecone.proto.MetadataFieldPropertiesOrBuilder val) { + if (val instanceof io.pinecone.proto.MetadataFieldProperties) { return (io.pinecone.proto.MetadataFieldProperties) val; } + return ((io.pinecone.proto.MetadataFieldProperties.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry defaultEntry() { + return FieldsDefaultEntryHolder.defaultEntry; + } + }; + private static final FieldsConverter fieldsConverter = new FieldsConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, io.pinecone.proto.MetadataFieldPropertiesOrBuilder, io.pinecone.proto.MetadataFieldProperties, io.pinecone.proto.MetadataFieldProperties.Builder> fields_; + private com.google.protobuf.MapFieldBuilder + internalGetFields() { + if (fields_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(fieldsConverter); + } + return fields_; + } + private com.google.protobuf.MapFieldBuilder + internalGetMutableFields() { + if (fields_ == null) { + fields_ = new com.google.protobuf.MapFieldBuilder<>(fieldsConverter); + } + bitField0_ |= 0x00000001; + onChanged(); + return fields_; + } + public int getFieldsCount() { + return internalGetFields().ensureBuilderMap().size(); + } + /** + *
+     * A map of field names to their properties.
+     * 
+ * + * map<string, .MetadataFieldProperties> fields = 1 [json_name = "fields"]; + */ + @java.lang.Override + public boolean containsFields( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetFields().ensureBuilderMap().containsKey(key); + } + /** + * Use {@link #getFieldsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getFields() { + return getFieldsMap(); + } + /** + *
+     * A map of field names to their properties.
+     * 
+ * + * map<string, .MetadataFieldProperties> fields = 1 [json_name = "fields"]; + */ + @java.lang.Override + public java.util.Map getFieldsMap() { + return internalGetFields().getImmutableMap(); + } + /** + *
+     * A map of field names to their properties.
+     * 
+ * + * map<string, .MetadataFieldProperties> fields = 1 [json_name = "fields"]; + */ + @java.lang.Override + public /* nullable */ +io.pinecone.proto.MetadataFieldProperties getFieldsOrDefault( + java.lang.String key, + /* nullable */ +io.pinecone.proto.MetadataFieldProperties defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = internalGetMutableFields().ensureBuilderMap(); + return map.containsKey(key) ? fieldsConverter.build(map.get(key)) : defaultValue; + } + /** + *
+     * A map of field names to their properties.
+     * 
+ * + * map<string, .MetadataFieldProperties> fields = 1 [json_name = "fields"]; + */ + @java.lang.Override + public io.pinecone.proto.MetadataFieldProperties getFieldsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = internalGetMutableFields().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return fieldsConverter.build(map.get(key)); + } + public Builder clearFields() { + bitField0_ = (bitField0_ & ~0x00000001); + internalGetMutableFields().clear(); + return this; + } + /** + *
+     * A map of field names to their properties.
+     * 
+ * + * map<string, .MetadataFieldProperties> fields = 1 [json_name = "fields"]; + */ + public Builder removeFields( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableFields().ensureBuilderMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableFields() { + bitField0_ |= 0x00000001; + return internalGetMutableFields().ensureMessageMap(); + } + /** + *
+     * A map of field names to their properties.
+     * 
+ * + * map<string, .MetadataFieldProperties> fields = 1 [json_name = "fields"]; + */ + public Builder putFields( + java.lang.String key, + io.pinecone.proto.MetadataFieldProperties value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableFields().ensureBuilderMap() + .put(key, value); + bitField0_ |= 0x00000001; + return this; + } + /** + *
+     * A map of field names to their properties.
+     * 
+ * + * map<string, .MetadataFieldProperties> fields = 1 [json_name = "fields"]; + */ + public Builder putAllFields( + java.util.Map values) { + for (java.util.Map.Entry e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableFields().ensureBuilderMap() + .putAll(values); + bitField0_ |= 0x00000001; + return this; + } + /** + *
+     * A map of field names to their properties.
+     * 
+ * + * map<string, .MetadataFieldProperties> fields = 1 [json_name = "fields"]; + */ + public io.pinecone.proto.MetadataFieldProperties.Builder putFieldsBuilderIfAbsent( + java.lang.String key) { + java.util.Map builderMap = internalGetMutableFields().ensureBuilderMap(); + io.pinecone.proto.MetadataFieldPropertiesOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = io.pinecone.proto.MetadataFieldProperties.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof io.pinecone.proto.MetadataFieldProperties) { + entry = ((io.pinecone.proto.MetadataFieldProperties) entry).toBuilder(); + builderMap.put(key, entry); + } + return (io.pinecone.proto.MetadataFieldProperties.Builder) entry; + } + + // @@protoc_insertion_point(builder_scope:MetadataSchema) + } + + // @@protoc_insertion_point(class_scope:MetadataSchema) + private static final io.pinecone.proto.MetadataSchema DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.pinecone.proto.MetadataSchema(); + } + + public static io.pinecone.proto.MetadataSchema getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MetadataSchema parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.pinecone.proto.MetadataSchema getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/io/pinecone/proto/MetadataSchemaOrBuilder.java b/src/main/java/io/pinecone/proto/MetadataSchemaOrBuilder.java new file mode 100644 index 00000000..6b9aaabc --- /dev/null +++ b/src/main/java/io/pinecone/proto/MetadataSchemaOrBuilder.java @@ -0,0 +1,65 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: db_data_2025-10.proto +// Protobuf Java Version: 4.29.3 + +package io.pinecone.proto; + +public interface MetadataSchemaOrBuilder extends + // @@protoc_insertion_point(interface_extends:MetadataSchema) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * A map of field names to their properties.
+   * 
+ * + * map<string, .MetadataFieldProperties> fields = 1 [json_name = "fields"]; + */ + int getFieldsCount(); + /** + *
+   * A map of field names to their properties.
+   * 
+ * + * map<string, .MetadataFieldProperties> fields = 1 [json_name = "fields"]; + */ + boolean containsFields( + java.lang.String key); + /** + * Use {@link #getFieldsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getFields(); + /** + *
+   * A map of field names to their properties.
+   * 
+ * + * map<string, .MetadataFieldProperties> fields = 1 [json_name = "fields"]; + */ + java.util.Map + getFieldsMap(); + /** + *
+   * A map of field names to their properties.
+   * 
+ * + * map<string, .MetadataFieldProperties> fields = 1 [json_name = "fields"]; + */ + /* nullable */ +io.pinecone.proto.MetadataFieldProperties getFieldsOrDefault( + java.lang.String key, + /* nullable */ +io.pinecone.proto.MetadataFieldProperties defaultValue); + /** + *
+   * A map of field names to their properties.
+   * 
+ * + * map<string, .MetadataFieldProperties> fields = 1 [json_name = "fields"]; + */ + io.pinecone.proto.MetadataFieldProperties getFieldsOrThrow( + java.lang.String key); +} diff --git a/src/main/java/io/pinecone/proto/NamespaceDescription.java b/src/main/java/io/pinecone/proto/NamespaceDescription.java index 8f398c0c..eac8f5d4 100644 --- a/src/main/java/io/pinecone/proto/NamespaceDescription.java +++ b/src/main/java/io/pinecone/proto/NamespaceDescription.java @@ -1,6 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: db_data_2025-04.proto +// source: db_data_2025-10.proto // Protobuf Java Version: 4.29.3 package io.pinecone.proto; @@ -32,17 +32,18 @@ private NamespaceDescription() { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.pinecone.proto.DbData202504.internal_static_NamespaceDescription_descriptor; + return io.pinecone.proto.DbData202510.internal_static_NamespaceDescription_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.pinecone.proto.DbData202504.internal_static_NamespaceDescription_fieldAccessorTable + return io.pinecone.proto.DbData202510.internal_static_NamespaceDescription_fieldAccessorTable .ensureFieldAccessorsInitialized( io.pinecone.proto.NamespaceDescription.class, io.pinecone.proto.NamespaceDescription.Builder.class); } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; @@ -93,6 +94,70 @@ public long getRecordCount() { return recordCount_; } + public static final int SCHEMA_FIELD_NUMBER = 3; + private io.pinecone.proto.MetadataSchema schema_; + /** + * optional .MetadataSchema schema = 3 [json_name = "schema"]; + * @return Whether the schema field is set. + */ + @java.lang.Override + public boolean hasSchema() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional .MetadataSchema schema = 3 [json_name = "schema"]; + * @return The schema. + */ + @java.lang.Override + public io.pinecone.proto.MetadataSchema getSchema() { + return schema_ == null ? io.pinecone.proto.MetadataSchema.getDefaultInstance() : schema_; + } + /** + * optional .MetadataSchema schema = 3 [json_name = "schema"]; + */ + @java.lang.Override + public io.pinecone.proto.MetadataSchemaOrBuilder getSchemaOrBuilder() { + return schema_ == null ? io.pinecone.proto.MetadataSchema.getDefaultInstance() : schema_; + } + + public static final int INDEXED_FIELDS_FIELD_NUMBER = 4; + private io.pinecone.proto.IndexedFields indexedFields_; + /** + *
+   * List of indexed fields in the namespace
+   * 
+ * + * optional .IndexedFields indexed_fields = 4 [json_name = "indexedFields"]; + * @return Whether the indexedFields field is set. + */ + @java.lang.Override + public boolean hasIndexedFields() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+   * List of indexed fields in the namespace
+   * 
+ * + * optional .IndexedFields indexed_fields = 4 [json_name = "indexedFields"]; + * @return The indexedFields. + */ + @java.lang.Override + public io.pinecone.proto.IndexedFields getIndexedFields() { + return indexedFields_ == null ? io.pinecone.proto.IndexedFields.getDefaultInstance() : indexedFields_; + } + /** + *
+   * List of indexed fields in the namespace
+   * 
+ * + * optional .IndexedFields indexed_fields = 4 [json_name = "indexedFields"]; + */ + @java.lang.Override + public io.pinecone.proto.IndexedFieldsOrBuilder getIndexedFieldsOrBuilder() { + return indexedFields_ == null ? io.pinecone.proto.IndexedFields.getDefaultInstance() : indexedFields_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -113,6 +178,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (recordCount_ != 0L) { output.writeUInt64(2, recordCount_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getSchema()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getIndexedFields()); + } getUnknownFields().writeTo(output); } @@ -129,6 +200,14 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, recordCount_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getSchema()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getIndexedFields()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -148,6 +227,16 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getName())) return false; if (getRecordCount() != other.getRecordCount()) return false; + if (hasSchema() != other.hasSchema()) return false; + if (hasSchema()) { + if (!getSchema() + .equals(other.getSchema())) return false; + } + if (hasIndexedFields() != other.hasIndexedFields()) return false; + if (hasIndexedFields()) { + if (!getIndexedFields() + .equals(other.getIndexedFields())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -164,6 +253,14 @@ public int hashCode() { hash = (37 * hash) + RECORD_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRecordCount()); + if (hasSchema()) { + hash = (37 * hash) + SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getSchema().hashCode(); + } + if (hasIndexedFields()) { + hash = (37 * hash) + INDEXED_FIELDS_FIELD_NUMBER; + hash = (53 * hash) + getIndexedFields().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -270,26 +367,33 @@ public static final class Builder extends io.pinecone.proto.NamespaceDescriptionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.pinecone.proto.DbData202504.internal_static_NamespaceDescription_descriptor; + return io.pinecone.proto.DbData202510.internal_static_NamespaceDescription_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.pinecone.proto.DbData202504.internal_static_NamespaceDescription_fieldAccessorTable + return io.pinecone.proto.DbData202510.internal_static_NamespaceDescription_fieldAccessorTable .ensureFieldAccessorsInitialized( io.pinecone.proto.NamespaceDescription.class, io.pinecone.proto.NamespaceDescription.Builder.class); } // Construct using io.pinecone.proto.NamespaceDescription.newBuilder() private Builder() { - + maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getSchemaFieldBuilder(); + getIndexedFieldsFieldBuilder(); + } } @java.lang.Override public Builder clear() { @@ -297,13 +401,23 @@ public Builder clear() { bitField0_ = 0; name_ = ""; recordCount_ = 0L; + schema_ = null; + if (schemaBuilder_ != null) { + schemaBuilder_.dispose(); + schemaBuilder_ = null; + } + indexedFields_ = null; + if (indexedFieldsBuilder_ != null) { + indexedFieldsBuilder_.dispose(); + indexedFieldsBuilder_ = null; + } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.pinecone.proto.DbData202504.internal_static_NamespaceDescription_descriptor; + return io.pinecone.proto.DbData202510.internal_static_NamespaceDescription_descriptor; } @java.lang.Override @@ -336,6 +450,20 @@ private void buildPartial0(io.pinecone.proto.NamespaceDescription result) { if (((from_bitField0_ & 0x00000002) != 0)) { result.recordCount_ = recordCount_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.schema_ = schemaBuilder_ == null + ? schema_ + : schemaBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.indexedFields_ = indexedFieldsBuilder_ == null + ? indexedFields_ + : indexedFieldsBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -358,6 +486,12 @@ public Builder mergeFrom(io.pinecone.proto.NamespaceDescription other) { if (other.getRecordCount() != 0L) { setRecordCount(other.getRecordCount()); } + if (other.hasSchema()) { + mergeSchema(other.getSchema()); + } + if (other.hasIndexedFields()) { + mergeIndexedFields(other.getIndexedFields()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -394,6 +528,20 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 16 + case 26: { + input.readMessage( + getSchemaFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getIndexedFieldsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -515,6 +663,284 @@ public Builder clearRecordCount() { return this; } + private io.pinecone.proto.MetadataSchema schema_; + private com.google.protobuf.SingleFieldBuilder< + io.pinecone.proto.MetadataSchema, io.pinecone.proto.MetadataSchema.Builder, io.pinecone.proto.MetadataSchemaOrBuilder> schemaBuilder_; + /** + * optional .MetadataSchema schema = 3 [json_name = "schema"]; + * @return Whether the schema field is set. + */ + public boolean hasSchema() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional .MetadataSchema schema = 3 [json_name = "schema"]; + * @return The schema. + */ + public io.pinecone.proto.MetadataSchema getSchema() { + if (schemaBuilder_ == null) { + return schema_ == null ? io.pinecone.proto.MetadataSchema.getDefaultInstance() : schema_; + } else { + return schemaBuilder_.getMessage(); + } + } + /** + * optional .MetadataSchema schema = 3 [json_name = "schema"]; + */ + public Builder setSchema(io.pinecone.proto.MetadataSchema value) { + if (schemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + schema_ = value; + } else { + schemaBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * optional .MetadataSchema schema = 3 [json_name = "schema"]; + */ + public Builder setSchema( + io.pinecone.proto.MetadataSchema.Builder builderForValue) { + if (schemaBuilder_ == null) { + schema_ = builderForValue.build(); + } else { + schemaBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * optional .MetadataSchema schema = 3 [json_name = "schema"]; + */ + public Builder mergeSchema(io.pinecone.proto.MetadataSchema value) { + if (schemaBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + schema_ != null && + schema_ != io.pinecone.proto.MetadataSchema.getDefaultInstance()) { + getSchemaBuilder().mergeFrom(value); + } else { + schema_ = value; + } + } else { + schemaBuilder_.mergeFrom(value); + } + if (schema_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * optional .MetadataSchema schema = 3 [json_name = "schema"]; + */ + public Builder clearSchema() { + bitField0_ = (bitField0_ & ~0x00000004); + schema_ = null; + if (schemaBuilder_ != null) { + schemaBuilder_.dispose(); + schemaBuilder_ = null; + } + onChanged(); + return this; + } + /** + * optional .MetadataSchema schema = 3 [json_name = "schema"]; + */ + public io.pinecone.proto.MetadataSchema.Builder getSchemaBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getSchemaFieldBuilder().getBuilder(); + } + /** + * optional .MetadataSchema schema = 3 [json_name = "schema"]; + */ + public io.pinecone.proto.MetadataSchemaOrBuilder getSchemaOrBuilder() { + if (schemaBuilder_ != null) { + return schemaBuilder_.getMessageOrBuilder(); + } else { + return schema_ == null ? + io.pinecone.proto.MetadataSchema.getDefaultInstance() : schema_; + } + } + /** + * optional .MetadataSchema schema = 3 [json_name = "schema"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.pinecone.proto.MetadataSchema, io.pinecone.proto.MetadataSchema.Builder, io.pinecone.proto.MetadataSchemaOrBuilder> + getSchemaFieldBuilder() { + if (schemaBuilder_ == null) { + schemaBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.pinecone.proto.MetadataSchema, io.pinecone.proto.MetadataSchema.Builder, io.pinecone.proto.MetadataSchemaOrBuilder>( + getSchema(), + getParentForChildren(), + isClean()); + schema_ = null; + } + return schemaBuilder_; + } + + private io.pinecone.proto.IndexedFields indexedFields_; + private com.google.protobuf.SingleFieldBuilder< + io.pinecone.proto.IndexedFields, io.pinecone.proto.IndexedFields.Builder, io.pinecone.proto.IndexedFieldsOrBuilder> indexedFieldsBuilder_; + /** + *
+     * List of indexed fields in the namespace
+     * 
+ * + * optional .IndexedFields indexed_fields = 4 [json_name = "indexedFields"]; + * @return Whether the indexedFields field is set. + */ + public boolean hasIndexedFields() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+     * List of indexed fields in the namespace
+     * 
+ * + * optional .IndexedFields indexed_fields = 4 [json_name = "indexedFields"]; + * @return The indexedFields. + */ + public io.pinecone.proto.IndexedFields getIndexedFields() { + if (indexedFieldsBuilder_ == null) { + return indexedFields_ == null ? io.pinecone.proto.IndexedFields.getDefaultInstance() : indexedFields_; + } else { + return indexedFieldsBuilder_.getMessage(); + } + } + /** + *
+     * List of indexed fields in the namespace
+     * 
+ * + * optional .IndexedFields indexed_fields = 4 [json_name = "indexedFields"]; + */ + public Builder setIndexedFields(io.pinecone.proto.IndexedFields value) { + if (indexedFieldsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + indexedFields_ = value; + } else { + indexedFieldsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * List of indexed fields in the namespace
+     * 
+ * + * optional .IndexedFields indexed_fields = 4 [json_name = "indexedFields"]; + */ + public Builder setIndexedFields( + io.pinecone.proto.IndexedFields.Builder builderForValue) { + if (indexedFieldsBuilder_ == null) { + indexedFields_ = builderForValue.build(); + } else { + indexedFieldsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * List of indexed fields in the namespace
+     * 
+ * + * optional .IndexedFields indexed_fields = 4 [json_name = "indexedFields"]; + */ + public Builder mergeIndexedFields(io.pinecone.proto.IndexedFields value) { + if (indexedFieldsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + indexedFields_ != null && + indexedFields_ != io.pinecone.proto.IndexedFields.getDefaultInstance()) { + getIndexedFieldsBuilder().mergeFrom(value); + } else { + indexedFields_ = value; + } + } else { + indexedFieldsBuilder_.mergeFrom(value); + } + if (indexedFields_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + *
+     * List of indexed fields in the namespace
+     * 
+ * + * optional .IndexedFields indexed_fields = 4 [json_name = "indexedFields"]; + */ + public Builder clearIndexedFields() { + bitField0_ = (bitField0_ & ~0x00000008); + indexedFields_ = null; + if (indexedFieldsBuilder_ != null) { + indexedFieldsBuilder_.dispose(); + indexedFieldsBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * List of indexed fields in the namespace
+     * 
+ * + * optional .IndexedFields indexed_fields = 4 [json_name = "indexedFields"]; + */ + public io.pinecone.proto.IndexedFields.Builder getIndexedFieldsBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getIndexedFieldsFieldBuilder().getBuilder(); + } + /** + *
+     * List of indexed fields in the namespace
+     * 
+ * + * optional .IndexedFields indexed_fields = 4 [json_name = "indexedFields"]; + */ + public io.pinecone.proto.IndexedFieldsOrBuilder getIndexedFieldsOrBuilder() { + if (indexedFieldsBuilder_ != null) { + return indexedFieldsBuilder_.getMessageOrBuilder(); + } else { + return indexedFields_ == null ? + io.pinecone.proto.IndexedFields.getDefaultInstance() : indexedFields_; + } + } + /** + *
+     * List of indexed fields in the namespace
+     * 
+ * + * optional .IndexedFields indexed_fields = 4 [json_name = "indexedFields"]; + */ + private com.google.protobuf.SingleFieldBuilder< + io.pinecone.proto.IndexedFields, io.pinecone.proto.IndexedFields.Builder, io.pinecone.proto.IndexedFieldsOrBuilder> + getIndexedFieldsFieldBuilder() { + if (indexedFieldsBuilder_ == null) { + indexedFieldsBuilder_ = new com.google.protobuf.SingleFieldBuilder< + io.pinecone.proto.IndexedFields, io.pinecone.proto.IndexedFields.Builder, io.pinecone.proto.IndexedFieldsOrBuilder>( + getIndexedFields(), + getParentForChildren(), + isClean()); + indexedFields_ = null; + } + return indexedFieldsBuilder_; + } + // @@protoc_insertion_point(builder_scope:NamespaceDescription) } diff --git a/src/main/java/io/pinecone/proto/NamespaceDescriptionOrBuilder.java b/src/main/java/io/pinecone/proto/NamespaceDescriptionOrBuilder.java index 9c25ec80..e6c6d394 100644 --- a/src/main/java/io/pinecone/proto/NamespaceDescriptionOrBuilder.java +++ b/src/main/java/io/pinecone/proto/NamespaceDescriptionOrBuilder.java @@ -1,6 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: db_data_2025-04.proto +// source: db_data_2025-10.proto // Protobuf Java Version: 4.29.3 package io.pinecone.proto; @@ -26,4 +26,46 @@ public interface NamespaceDescriptionOrBuilder extends * @return The recordCount. */ long getRecordCount(); + + /** + * optional .MetadataSchema schema = 3 [json_name = "schema"]; + * @return Whether the schema field is set. + */ + boolean hasSchema(); + /** + * optional .MetadataSchema schema = 3 [json_name = "schema"]; + * @return The schema. + */ + io.pinecone.proto.MetadataSchema getSchema(); + /** + * optional .MetadataSchema schema = 3 [json_name = "schema"]; + */ + io.pinecone.proto.MetadataSchemaOrBuilder getSchemaOrBuilder(); + + /** + *
+   * List of indexed fields in the namespace
+   * 
+ * + * optional .IndexedFields indexed_fields = 4 [json_name = "indexedFields"]; + * @return Whether the indexedFields field is set. + */ + boolean hasIndexedFields(); + /** + *
+   * List of indexed fields in the namespace
+   * 
+ * + * optional .IndexedFields indexed_fields = 4 [json_name = "indexedFields"]; + * @return The indexedFields. + */ + io.pinecone.proto.IndexedFields getIndexedFields(); + /** + *
+   * List of indexed fields in the namespace
+   * 
+ * + * optional .IndexedFields indexed_fields = 4 [json_name = "indexedFields"]; + */ + io.pinecone.proto.IndexedFieldsOrBuilder getIndexedFieldsOrBuilder(); } diff --git a/src/main/java/io/pinecone/proto/NamespaceSummary.java b/src/main/java/io/pinecone/proto/NamespaceSummary.java index 804619be..efcd10d0 100644 --- a/src/main/java/io/pinecone/proto/NamespaceSummary.java +++ b/src/main/java/io/pinecone/proto/NamespaceSummary.java @@ -1,6 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: db_data_2025-04.proto +// source: db_data_2025-10.proto // Protobuf Java Version: 4.29.3 package io.pinecone.proto; @@ -35,13 +35,13 @@ private NamespaceSummary() { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.pinecone.proto.DbData202504.internal_static_NamespaceSummary_descriptor; + return io.pinecone.proto.DbData202510.internal_static_NamespaceSummary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.pinecone.proto.DbData202504.internal_static_NamespaceSummary_fieldAccessorTable + return io.pinecone.proto.DbData202510.internal_static_NamespaceSummary_fieldAccessorTable .ensureFieldAccessorsInitialized( io.pinecone.proto.NamespaceSummary.class, io.pinecone.proto.NamespaceSummary.Builder.class); } @@ -232,13 +232,13 @@ public static final class Builder extends io.pinecone.proto.NamespaceSummaryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.pinecone.proto.DbData202504.internal_static_NamespaceSummary_descriptor; + return io.pinecone.proto.DbData202510.internal_static_NamespaceSummary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.pinecone.proto.DbData202504.internal_static_NamespaceSummary_fieldAccessorTable + return io.pinecone.proto.DbData202510.internal_static_NamespaceSummary_fieldAccessorTable .ensureFieldAccessorsInitialized( io.pinecone.proto.NamespaceSummary.class, io.pinecone.proto.NamespaceSummary.Builder.class); } @@ -264,7 +264,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.pinecone.proto.DbData202504.internal_static_NamespaceSummary_descriptor; + return io.pinecone.proto.DbData202510.internal_static_NamespaceSummary_descriptor; } @java.lang.Override diff --git a/src/main/java/io/pinecone/proto/NamespaceSummaryOrBuilder.java b/src/main/java/io/pinecone/proto/NamespaceSummaryOrBuilder.java index 3babbe1f..766b31e2 100644 --- a/src/main/java/io/pinecone/proto/NamespaceSummaryOrBuilder.java +++ b/src/main/java/io/pinecone/proto/NamespaceSummaryOrBuilder.java @@ -1,6 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: db_data_2025-04.proto +// source: db_data_2025-10.proto // Protobuf Java Version: 4.29.3 package io.pinecone.proto; diff --git a/src/main/java/io/pinecone/proto/Pagination.java b/src/main/java/io/pinecone/proto/Pagination.java index 39640dec..8cdc68ae 100644 --- a/src/main/java/io/pinecone/proto/Pagination.java +++ b/src/main/java/io/pinecone/proto/Pagination.java @@ -1,6 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: db_data_2025-04.proto +// source: db_data_2025-10.proto // Protobuf Java Version: 4.29.3 package io.pinecone.proto; @@ -32,13 +32,13 @@ private Pagination() { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.pinecone.proto.DbData202504.internal_static_Pagination_descriptor; + return io.pinecone.proto.DbData202510.internal_static_Pagination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.pinecone.proto.DbData202504.internal_static_Pagination_fieldAccessorTable + return io.pinecone.proto.DbData202510.internal_static_Pagination_fieldAccessorTable .ensureFieldAccessorsInitialized( io.pinecone.proto.Pagination.class, io.pinecone.proto.Pagination.Builder.class); } @@ -247,13 +247,13 @@ public static final class Builder extends io.pinecone.proto.PaginationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.pinecone.proto.DbData202504.internal_static_Pagination_descriptor; + return io.pinecone.proto.DbData202510.internal_static_Pagination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.pinecone.proto.DbData202504.internal_static_Pagination_fieldAccessorTable + return io.pinecone.proto.DbData202510.internal_static_Pagination_fieldAccessorTable .ensureFieldAccessorsInitialized( io.pinecone.proto.Pagination.class, io.pinecone.proto.Pagination.Builder.class); } @@ -279,7 +279,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.pinecone.proto.DbData202504.internal_static_Pagination_descriptor; + return io.pinecone.proto.DbData202510.internal_static_Pagination_descriptor; } @java.lang.Override diff --git a/src/main/java/io/pinecone/proto/PaginationOrBuilder.java b/src/main/java/io/pinecone/proto/PaginationOrBuilder.java index 4ec0507a..0790315c 100644 --- a/src/main/java/io/pinecone/proto/PaginationOrBuilder.java +++ b/src/main/java/io/pinecone/proto/PaginationOrBuilder.java @@ -1,6 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: db_data_2025-04.proto +// source: db_data_2025-10.proto // Protobuf Java Version: 4.29.3 package io.pinecone.proto; diff --git a/src/main/java/io/pinecone/proto/QueryRequest.java b/src/main/java/io/pinecone/proto/QueryRequest.java index 21cbef9b..04dd2741 100644 --- a/src/main/java/io/pinecone/proto/QueryRequest.java +++ b/src/main/java/io/pinecone/proto/QueryRequest.java @@ -1,6 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: db_data_2025-04.proto +// source: db_data_2025-10.proto // Protobuf Java Version: 4.29.3 package io.pinecone.proto; @@ -39,13 +39,13 @@ private QueryRequest() { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.pinecone.proto.DbData202504.internal_static_QueryRequest_descriptor; + return io.pinecone.proto.DbData202510.internal_static_QueryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.pinecone.proto.DbData202504.internal_static_QueryRequest_fieldAccessorTable + return io.pinecone.proto.DbData202510.internal_static_QueryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( io.pinecone.proto.QueryRequest.class, io.pinecone.proto.QueryRequest.Builder.class); } @@ -117,7 +117,7 @@ public int getTopK() { private com.google.protobuf.Struct filter_; /** *
-   * The filter to apply. You can use vector metadata to limit your search. See [Understanding metadata](https://docs.pinecone.io/guides/data/understanding-metadata). You can use vector metadata to limit your search. See [Understanding metadata](https://docs.pinecone.io/guides/data/understanding-metadata).
+   * The filter to apply. You can use vector metadata to limit your search. See [Understanding metadata](https://docs.pinecone.io/guides/index-data/indexing-overview#metadata).
    * 
* * .google.protobuf.Struct filter = 3 [json_name = "filter"]; @@ -129,7 +129,7 @@ public boolean hasFilter() { } /** *
-   * The filter to apply. You can use vector metadata to limit your search. See [Understanding metadata](https://docs.pinecone.io/guides/data/understanding-metadata). You can use vector metadata to limit your search. See [Understanding metadata](https://docs.pinecone.io/guides/data/understanding-metadata).
+   * The filter to apply. You can use vector metadata to limit your search. See [Understanding metadata](https://docs.pinecone.io/guides/index-data/indexing-overview#metadata).
    * 
* * .google.protobuf.Struct filter = 3 [json_name = "filter"]; @@ -141,7 +141,7 @@ public com.google.protobuf.Struct getFilter() { } /** *
-   * The filter to apply. You can use vector metadata to limit your search. See [Understanding metadata](https://docs.pinecone.io/guides/data/understanding-metadata). You can use vector metadata to limit your search. See [Understanding metadata](https://docs.pinecone.io/guides/data/understanding-metadata).
+   * The filter to apply. You can use vector metadata to limit your search. See [Understanding metadata](https://docs.pinecone.io/guides/index-data/indexing-overview#metadata).
    * 
* * .google.protobuf.Struct filter = 3 [json_name = "filter"]; @@ -653,13 +653,13 @@ public static final class Builder extends io.pinecone.proto.QueryRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.pinecone.proto.DbData202504.internal_static_QueryRequest_descriptor; + return io.pinecone.proto.DbData202510.internal_static_QueryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.pinecone.proto.DbData202504.internal_static_QueryRequest_fieldAccessorTable + return io.pinecone.proto.DbData202510.internal_static_QueryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( io.pinecone.proto.QueryRequest.class, io.pinecone.proto.QueryRequest.Builder.class); } @@ -715,7 +715,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.pinecone.proto.DbData202504.internal_static_QueryRequest_descriptor; + return io.pinecone.proto.DbData202510.internal_static_QueryRequest_descriptor; } @java.lang.Override @@ -1117,7 +1117,7 @@ public Builder clearTopK() { com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> filterBuilder_; /** *
-     * The filter to apply. You can use vector metadata to limit your search. See [Understanding metadata](https://docs.pinecone.io/guides/data/understanding-metadata). You can use vector metadata to limit your search. See [Understanding metadata](https://docs.pinecone.io/guides/data/understanding-metadata).
+     * The filter to apply. You can use vector metadata to limit your search. See [Understanding metadata](https://docs.pinecone.io/guides/index-data/indexing-overview#metadata).
      * 
* * .google.protobuf.Struct filter = 3 [json_name = "filter"]; @@ -1128,7 +1128,7 @@ public boolean hasFilter() { } /** *
-     * The filter to apply. You can use vector metadata to limit your search. See [Understanding metadata](https://docs.pinecone.io/guides/data/understanding-metadata). You can use vector metadata to limit your search. See [Understanding metadata](https://docs.pinecone.io/guides/data/understanding-metadata).
+     * The filter to apply. You can use vector metadata to limit your search. See [Understanding metadata](https://docs.pinecone.io/guides/index-data/indexing-overview#metadata).
      * 
* * .google.protobuf.Struct filter = 3 [json_name = "filter"]; @@ -1143,7 +1143,7 @@ public com.google.protobuf.Struct getFilter() { } /** *
-     * The filter to apply. You can use vector metadata to limit your search. See [Understanding metadata](https://docs.pinecone.io/guides/data/understanding-metadata). You can use vector metadata to limit your search. See [Understanding metadata](https://docs.pinecone.io/guides/data/understanding-metadata).
+     * The filter to apply. You can use vector metadata to limit your search. See [Understanding metadata](https://docs.pinecone.io/guides/index-data/indexing-overview#metadata).
      * 
* * .google.protobuf.Struct filter = 3 [json_name = "filter"]; @@ -1163,7 +1163,7 @@ public Builder setFilter(com.google.protobuf.Struct value) { } /** *
-     * The filter to apply. You can use vector metadata to limit your search. See [Understanding metadata](https://docs.pinecone.io/guides/data/understanding-metadata). You can use vector metadata to limit your search. See [Understanding metadata](https://docs.pinecone.io/guides/data/understanding-metadata).
+     * The filter to apply. You can use vector metadata to limit your search. See [Understanding metadata](https://docs.pinecone.io/guides/index-data/indexing-overview#metadata).
      * 
* * .google.protobuf.Struct filter = 3 [json_name = "filter"]; @@ -1181,7 +1181,7 @@ public Builder setFilter( } /** *
-     * The filter to apply. You can use vector metadata to limit your search. See [Understanding metadata](https://docs.pinecone.io/guides/data/understanding-metadata). You can use vector metadata to limit your search. See [Understanding metadata](https://docs.pinecone.io/guides/data/understanding-metadata).
+     * The filter to apply. You can use vector metadata to limit your search. See [Understanding metadata](https://docs.pinecone.io/guides/index-data/indexing-overview#metadata).
      * 
* * .google.protobuf.Struct filter = 3 [json_name = "filter"]; @@ -1206,7 +1206,7 @@ public Builder mergeFilter(com.google.protobuf.Struct value) { } /** *
-     * The filter to apply. You can use vector metadata to limit your search. See [Understanding metadata](https://docs.pinecone.io/guides/data/understanding-metadata). You can use vector metadata to limit your search. See [Understanding metadata](https://docs.pinecone.io/guides/data/understanding-metadata).
+     * The filter to apply. You can use vector metadata to limit your search. See [Understanding metadata](https://docs.pinecone.io/guides/index-data/indexing-overview#metadata).
      * 
* * .google.protobuf.Struct filter = 3 [json_name = "filter"]; @@ -1223,7 +1223,7 @@ public Builder clearFilter() { } /** *
-     * The filter to apply. You can use vector metadata to limit your search. See [Understanding metadata](https://docs.pinecone.io/guides/data/understanding-metadata). You can use vector metadata to limit your search. See [Understanding metadata](https://docs.pinecone.io/guides/data/understanding-metadata).
+     * The filter to apply. You can use vector metadata to limit your search. See [Understanding metadata](https://docs.pinecone.io/guides/index-data/indexing-overview#metadata).
      * 
* * .google.protobuf.Struct filter = 3 [json_name = "filter"]; @@ -1235,7 +1235,7 @@ public com.google.protobuf.Struct.Builder getFilterBuilder() { } /** *
-     * The filter to apply. You can use vector metadata to limit your search. See [Understanding metadata](https://docs.pinecone.io/guides/data/understanding-metadata). You can use vector metadata to limit your search. See [Understanding metadata](https://docs.pinecone.io/guides/data/understanding-metadata).
+     * The filter to apply. You can use vector metadata to limit your search. See [Understanding metadata](https://docs.pinecone.io/guides/index-data/indexing-overview#metadata).
      * 
* * .google.protobuf.Struct filter = 3 [json_name = "filter"]; @@ -1250,7 +1250,7 @@ public com.google.protobuf.StructOrBuilder getFilterOrBuilder() { } /** *
-     * The filter to apply. You can use vector metadata to limit your search. See [Understanding metadata](https://docs.pinecone.io/guides/data/understanding-metadata). You can use vector metadata to limit your search. See [Understanding metadata](https://docs.pinecone.io/guides/data/understanding-metadata).
+     * The filter to apply. You can use vector metadata to limit your search. See [Understanding metadata](https://docs.pinecone.io/guides/index-data/indexing-overview#metadata).
      * 
* * .google.protobuf.Struct filter = 3 [json_name = "filter"]; diff --git a/src/main/java/io/pinecone/proto/QueryRequestOrBuilder.java b/src/main/java/io/pinecone/proto/QueryRequestOrBuilder.java index 5fd81f2b..c8d1f6bd 100644 --- a/src/main/java/io/pinecone/proto/QueryRequestOrBuilder.java +++ b/src/main/java/io/pinecone/proto/QueryRequestOrBuilder.java @@ -1,6 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: db_data_2025-04.proto +// source: db_data_2025-10.proto // Protobuf Java Version: 4.29.3 package io.pinecone.proto; @@ -41,7 +41,7 @@ public interface QueryRequestOrBuilder extends /** *
-   * The filter to apply. You can use vector metadata to limit your search. See [Understanding metadata](https://docs.pinecone.io/guides/data/understanding-metadata). You can use vector metadata to limit your search. See [Understanding metadata](https://docs.pinecone.io/guides/data/understanding-metadata).
+   * The filter to apply. You can use vector metadata to limit your search. See [Understanding metadata](https://docs.pinecone.io/guides/index-data/indexing-overview#metadata).
    * 
* * .google.protobuf.Struct filter = 3 [json_name = "filter"]; @@ -50,7 +50,7 @@ public interface QueryRequestOrBuilder extends boolean hasFilter(); /** *
-   * The filter to apply. You can use vector metadata to limit your search. See [Understanding metadata](https://docs.pinecone.io/guides/data/understanding-metadata). You can use vector metadata to limit your search. See [Understanding metadata](https://docs.pinecone.io/guides/data/understanding-metadata).
+   * The filter to apply. You can use vector metadata to limit your search. See [Understanding metadata](https://docs.pinecone.io/guides/index-data/indexing-overview#metadata).
    * 
* * .google.protobuf.Struct filter = 3 [json_name = "filter"]; @@ -59,7 +59,7 @@ public interface QueryRequestOrBuilder extends com.google.protobuf.Struct getFilter(); /** *
-   * The filter to apply. You can use vector metadata to limit your search. See [Understanding metadata](https://docs.pinecone.io/guides/data/understanding-metadata). You can use vector metadata to limit your search. See [Understanding metadata](https://docs.pinecone.io/guides/data/understanding-metadata).
+   * The filter to apply. You can use vector metadata to limit your search. See [Understanding metadata](https://docs.pinecone.io/guides/index-data/indexing-overview#metadata).
    * 
* * .google.protobuf.Struct filter = 3 [json_name = "filter"]; diff --git a/src/main/java/io/pinecone/proto/QueryResponse.java b/src/main/java/io/pinecone/proto/QueryResponse.java index 705af3b2..85fcdc04 100644 --- a/src/main/java/io/pinecone/proto/QueryResponse.java +++ b/src/main/java/io/pinecone/proto/QueryResponse.java @@ -1,6 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: db_data_2025-04.proto +// source: db_data_2025-10.proto // Protobuf Java Version: 4.29.3 package io.pinecone.proto; @@ -38,13 +38,13 @@ private QueryResponse() { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.pinecone.proto.DbData202504.internal_static_QueryResponse_descriptor; + return io.pinecone.proto.DbData202510.internal_static_QueryResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.pinecone.proto.DbData202504.internal_static_QueryResponse_fieldAccessorTable + return io.pinecone.proto.DbData202510.internal_static_QueryResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( io.pinecone.proto.QueryResponse.class, io.pinecone.proto.QueryResponse.Builder.class); } @@ -468,13 +468,13 @@ public static final class Builder extends io.pinecone.proto.QueryResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.pinecone.proto.DbData202504.internal_static_QueryResponse_descriptor; + return io.pinecone.proto.DbData202510.internal_static_QueryResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.pinecone.proto.DbData202504.internal_static_QueryResponse_fieldAccessorTable + return io.pinecone.proto.DbData202510.internal_static_QueryResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( io.pinecone.proto.QueryResponse.class, io.pinecone.proto.QueryResponse.Builder.class); } @@ -527,7 +527,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.pinecone.proto.DbData202504.internal_static_QueryResponse_descriptor; + return io.pinecone.proto.DbData202510.internal_static_QueryResponse_descriptor; } @java.lang.Override diff --git a/src/main/java/io/pinecone/proto/QueryResponseOrBuilder.java b/src/main/java/io/pinecone/proto/QueryResponseOrBuilder.java index 872c6001..5d8a2320 100644 --- a/src/main/java/io/pinecone/proto/QueryResponseOrBuilder.java +++ b/src/main/java/io/pinecone/proto/QueryResponseOrBuilder.java @@ -1,6 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: db_data_2025-04.proto +// source: db_data_2025-10.proto // Protobuf Java Version: 4.29.3 package io.pinecone.proto; diff --git a/src/main/java/io/pinecone/proto/QueryVector.java b/src/main/java/io/pinecone/proto/QueryVector.java index 2226ffd7..df913006 100644 --- a/src/main/java/io/pinecone/proto/QueryVector.java +++ b/src/main/java/io/pinecone/proto/QueryVector.java @@ -1,6 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: db_data_2025-04.proto +// source: db_data_2025-10.proto // Protobuf Java Version: 4.29.3 package io.pinecone.proto; @@ -37,13 +37,13 @@ private QueryVector() { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.pinecone.proto.DbData202504.internal_static_QueryVector_descriptor; + return io.pinecone.proto.DbData202510.internal_static_QueryVector_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.pinecone.proto.DbData202504.internal_static_QueryVector_fieldAccessorTable + return io.pinecone.proto.DbData202510.internal_static_QueryVector_fieldAccessorTable .ensureFieldAccessorsInitialized( io.pinecone.proto.QueryVector.class, io.pinecone.proto.QueryVector.Builder.class); } @@ -466,13 +466,13 @@ public static final class Builder extends io.pinecone.proto.QueryVectorOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.pinecone.proto.DbData202504.internal_static_QueryVector_descriptor; + return io.pinecone.proto.DbData202510.internal_static_QueryVector_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.pinecone.proto.DbData202504.internal_static_QueryVector_fieldAccessorTable + return io.pinecone.proto.DbData202510.internal_static_QueryVector_fieldAccessorTable .ensureFieldAccessorsInitialized( io.pinecone.proto.QueryVector.class, io.pinecone.proto.QueryVector.Builder.class); } @@ -517,7 +517,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.pinecone.proto.DbData202504.internal_static_QueryVector_descriptor; + return io.pinecone.proto.DbData202510.internal_static_QueryVector_descriptor; } @java.lang.Override diff --git a/src/main/java/io/pinecone/proto/QueryVectorOrBuilder.java b/src/main/java/io/pinecone/proto/QueryVectorOrBuilder.java index a66641d5..e18276bd 100644 --- a/src/main/java/io/pinecone/proto/QueryVectorOrBuilder.java +++ b/src/main/java/io/pinecone/proto/QueryVectorOrBuilder.java @@ -1,6 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: db_data_2025-04.proto +// source: db_data_2025-10.proto // Protobuf Java Version: 4.29.3 package io.pinecone.proto; diff --git a/src/main/java/io/pinecone/proto/RequestUnion.java b/src/main/java/io/pinecone/proto/RequestUnion.java index 320ae051..f9d807a1 100644 --- a/src/main/java/io/pinecone/proto/RequestUnion.java +++ b/src/main/java/io/pinecone/proto/RequestUnion.java @@ -1,6 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: db_data_2025-04.proto +// source: db_data_2025-10.proto // Protobuf Java Version: 4.29.3 package io.pinecone.proto; @@ -36,13 +36,13 @@ private RequestUnion() { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.pinecone.proto.DbData202504.internal_static_RequestUnion_descriptor; + return io.pinecone.proto.DbData202510.internal_static_RequestUnion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.pinecone.proto.DbData202504.internal_static_RequestUnion_fieldAccessorTable + return io.pinecone.proto.DbData202510.internal_static_RequestUnion_fieldAccessorTable .ensureFieldAccessorsInitialized( io.pinecone.proto.RequestUnion.class, io.pinecone.proto.RequestUnion.Builder.class); } @@ -398,13 +398,13 @@ public static final class Builder extends io.pinecone.proto.RequestUnionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.pinecone.proto.DbData202504.internal_static_RequestUnion_descriptor; + return io.pinecone.proto.DbData202510.internal_static_RequestUnion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.pinecone.proto.DbData202504.internal_static_RequestUnion_fieldAccessorTable + return io.pinecone.proto.DbData202510.internal_static_RequestUnion_fieldAccessorTable .ensureFieldAccessorsInitialized( io.pinecone.proto.RequestUnion.class, io.pinecone.proto.RequestUnion.Builder.class); } @@ -440,7 +440,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.pinecone.proto.DbData202504.internal_static_RequestUnion_descriptor; + return io.pinecone.proto.DbData202510.internal_static_RequestUnion_descriptor; } @java.lang.Override diff --git a/src/main/java/io/pinecone/proto/RequestUnionOrBuilder.java b/src/main/java/io/pinecone/proto/RequestUnionOrBuilder.java index 007d6f42..49e5560a 100644 --- a/src/main/java/io/pinecone/proto/RequestUnionOrBuilder.java +++ b/src/main/java/io/pinecone/proto/RequestUnionOrBuilder.java @@ -1,6 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: db_data_2025-04.proto +// source: db_data_2025-10.proto // Protobuf Java Version: 4.29.3 package io.pinecone.proto; diff --git a/src/main/java/io/pinecone/proto/ScoredVector.java b/src/main/java/io/pinecone/proto/ScoredVector.java index d7b81ff7..4f74c15b 100644 --- a/src/main/java/io/pinecone/proto/ScoredVector.java +++ b/src/main/java/io/pinecone/proto/ScoredVector.java @@ -1,6 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: db_data_2025-04.proto +// source: db_data_2025-10.proto // Protobuf Java Version: 4.29.3 package io.pinecone.proto; @@ -33,13 +33,13 @@ private ScoredVector() { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.pinecone.proto.DbData202504.internal_static_ScoredVector_descriptor; + return io.pinecone.proto.DbData202510.internal_static_ScoredVector_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.pinecone.proto.DbData202504.internal_static_ScoredVector_fieldAccessorTable + return io.pinecone.proto.DbData202510.internal_static_ScoredVector_fieldAccessorTable .ensureFieldAccessorsInitialized( io.pinecone.proto.ScoredVector.class, io.pinecone.proto.ScoredVector.Builder.class); } @@ -460,13 +460,13 @@ public static final class Builder extends io.pinecone.proto.ScoredVectorOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.pinecone.proto.DbData202504.internal_static_ScoredVector_descriptor; + return io.pinecone.proto.DbData202510.internal_static_ScoredVector_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.pinecone.proto.DbData202504.internal_static_ScoredVector_fieldAccessorTable + return io.pinecone.proto.DbData202510.internal_static_ScoredVector_fieldAccessorTable .ensureFieldAccessorsInitialized( io.pinecone.proto.ScoredVector.class, io.pinecone.proto.ScoredVector.Builder.class); } @@ -511,7 +511,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.pinecone.proto.DbData202504.internal_static_ScoredVector_descriptor; + return io.pinecone.proto.DbData202510.internal_static_ScoredVector_descriptor; } @java.lang.Override diff --git a/src/main/java/io/pinecone/proto/ScoredVectorOrBuilder.java b/src/main/java/io/pinecone/proto/ScoredVectorOrBuilder.java index 3bacfef0..479beeac 100644 --- a/src/main/java/io/pinecone/proto/ScoredVectorOrBuilder.java +++ b/src/main/java/io/pinecone/proto/ScoredVectorOrBuilder.java @@ -1,6 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: db_data_2025-04.proto +// source: db_data_2025-10.proto // Protobuf Java Version: 4.29.3 package io.pinecone.proto; diff --git a/src/main/java/io/pinecone/proto/SingleQueryResults.java b/src/main/java/io/pinecone/proto/SingleQueryResults.java index dfb6b3c9..6fcbf512 100644 --- a/src/main/java/io/pinecone/proto/SingleQueryResults.java +++ b/src/main/java/io/pinecone/proto/SingleQueryResults.java @@ -1,6 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: db_data_2025-04.proto +// source: db_data_2025-10.proto // Protobuf Java Version: 4.29.3 package io.pinecone.proto; @@ -37,13 +37,13 @@ private SingleQueryResults() { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.pinecone.proto.DbData202504.internal_static_SingleQueryResults_descriptor; + return io.pinecone.proto.DbData202510.internal_static_SingleQueryResults_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.pinecone.proto.DbData202504.internal_static_SingleQueryResults_fieldAccessorTable + return io.pinecone.proto.DbData202510.internal_static_SingleQueryResults_fieldAccessorTable .ensureFieldAccessorsInitialized( io.pinecone.proto.SingleQueryResults.class, io.pinecone.proto.SingleQueryResults.Builder.class); } @@ -338,13 +338,13 @@ public static final class Builder extends io.pinecone.proto.SingleQueryResultsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.pinecone.proto.DbData202504.internal_static_SingleQueryResults_descriptor; + return io.pinecone.proto.DbData202510.internal_static_SingleQueryResults_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.pinecone.proto.DbData202504.internal_static_SingleQueryResults_fieldAccessorTable + return io.pinecone.proto.DbData202510.internal_static_SingleQueryResults_fieldAccessorTable .ensureFieldAccessorsInitialized( io.pinecone.proto.SingleQueryResults.class, io.pinecone.proto.SingleQueryResults.Builder.class); } @@ -377,7 +377,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.pinecone.proto.DbData202504.internal_static_SingleQueryResults_descriptor; + return io.pinecone.proto.DbData202510.internal_static_SingleQueryResults_descriptor; } @java.lang.Override diff --git a/src/main/java/io/pinecone/proto/SingleQueryResultsOrBuilder.java b/src/main/java/io/pinecone/proto/SingleQueryResultsOrBuilder.java index d7c53603..ed715422 100644 --- a/src/main/java/io/pinecone/proto/SingleQueryResultsOrBuilder.java +++ b/src/main/java/io/pinecone/proto/SingleQueryResultsOrBuilder.java @@ -1,6 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: db_data_2025-04.proto +// source: db_data_2025-10.proto // Protobuf Java Version: 4.29.3 package io.pinecone.proto; diff --git a/src/main/java/io/pinecone/proto/SparseValues.java b/src/main/java/io/pinecone/proto/SparseValues.java index 3ea4a559..b22bccf3 100644 --- a/src/main/java/io/pinecone/proto/SparseValues.java +++ b/src/main/java/io/pinecone/proto/SparseValues.java @@ -1,6 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: db_data_2025-04.proto +// source: db_data_2025-10.proto // Protobuf Java Version: 4.29.3 package io.pinecone.proto; @@ -33,13 +33,13 @@ private SparseValues() { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.pinecone.proto.DbData202504.internal_static_SparseValues_descriptor; + return io.pinecone.proto.DbData202510.internal_static_SparseValues_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.pinecone.proto.DbData202504.internal_static_SparseValues_fieldAccessorTable + return io.pinecone.proto.DbData202510.internal_static_SparseValues_fieldAccessorTable .ensureFieldAccessorsInitialized( io.pinecone.proto.SparseValues.class, io.pinecone.proto.SparseValues.Builder.class); } @@ -311,13 +311,13 @@ public static final class Builder extends io.pinecone.proto.SparseValuesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.pinecone.proto.DbData202504.internal_static_SparseValues_descriptor; + return io.pinecone.proto.DbData202510.internal_static_SparseValues_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.pinecone.proto.DbData202504.internal_static_SparseValues_fieldAccessorTable + return io.pinecone.proto.DbData202510.internal_static_SparseValues_fieldAccessorTable .ensureFieldAccessorsInitialized( io.pinecone.proto.SparseValues.class, io.pinecone.proto.SparseValues.Builder.class); } @@ -344,7 +344,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.pinecone.proto.DbData202504.internal_static_SparseValues_descriptor; + return io.pinecone.proto.DbData202510.internal_static_SparseValues_descriptor; } @java.lang.Override diff --git a/src/main/java/io/pinecone/proto/SparseValuesOrBuilder.java b/src/main/java/io/pinecone/proto/SparseValuesOrBuilder.java index 2732b1be..b0391f6e 100644 --- a/src/main/java/io/pinecone/proto/SparseValuesOrBuilder.java +++ b/src/main/java/io/pinecone/proto/SparseValuesOrBuilder.java @@ -1,6 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: db_data_2025-04.proto +// source: db_data_2025-10.proto // Protobuf Java Version: 4.29.3 package io.pinecone.proto; diff --git a/src/main/java/io/pinecone/proto/UpdateRequest.java b/src/main/java/io/pinecone/proto/UpdateRequest.java index febc054a..9897e82c 100644 --- a/src/main/java/io/pinecone/proto/UpdateRequest.java +++ b/src/main/java/io/pinecone/proto/UpdateRequest.java @@ -1,6 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: db_data_2025-04.proto +// source: db_data_2025-10.proto // Protobuf Java Version: 4.29.3 package io.pinecone.proto; @@ -38,13 +38,13 @@ private UpdateRequest() { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.pinecone.proto.DbData202504.internal_static_UpdateRequest_descriptor; + return io.pinecone.proto.DbData202510.internal_static_UpdateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.pinecone.proto.DbData202504.internal_static_UpdateRequest_fieldAccessorTable + return io.pinecone.proto.DbData202510.internal_static_UpdateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( io.pinecone.proto.UpdateRequest.class, io.pinecone.proto.UpdateRequest.Builder.class); } @@ -55,10 +55,10 @@ private UpdateRequest() { private volatile java.lang.Object id_ = ""; /** *
-   * Vector's unique id.
+   * The unique ID of the record.
    * 
* - * string id = 1 [json_name = "id", (.google.api.field_behavior) = REQUIRED]; + * string id = 1 [json_name = "id"]; * @return The id. */ @java.lang.Override @@ -76,10 +76,10 @@ public java.lang.String getId() { } /** *
-   * Vector's unique id.
+   * The unique ID of the record.
    * 
* - * string id = 1 [json_name = "id", (.google.api.field_behavior) = REQUIRED]; + * string id = 1 [json_name = "id"]; * @return The bytes for id. */ @java.lang.Override @@ -220,7 +220,7 @@ public com.google.protobuf.StructOrBuilder getSetMetadataOrBuilder() { private volatile java.lang.Object namespace_ = ""; /** *
-   * The namespace containing the vector to update.
+   * The namespace containing the record(s) to update.
    * 
* * string namespace = 4 [json_name = "namespace"]; @@ -241,7 +241,7 @@ public java.lang.String getNamespace() { } /** *
-   * The namespace containing the vector to update.
+   * The namespace containing the record(s) to update.
    * 
* * string namespace = 4 [json_name = "namespace"]; @@ -262,6 +262,71 @@ public java.lang.String getNamespace() { } } + public static final int FILTER_FIELD_NUMBER = 6; + private com.google.protobuf.Struct filter_; + /** + *
+   * A [metadata filter expression](https://docs.pinecone.io/guides/index-data/indexing-overview#metadata-filter-expressions. When updating metadata across records in a namespace, the update is applied to all records that match the filter.
+   * 
+ * + * optional .google.protobuf.Struct filter = 6 [json_name = "filter"]; + * @return Whether the filter field is set. + */ + @java.lang.Override + public boolean hasFilter() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+   * A [metadata filter expression](https://docs.pinecone.io/guides/index-data/indexing-overview#metadata-filter-expressions. When updating metadata across records in a namespace, the update is applied to all records that match the filter.
+   * 
+ * + * optional .google.protobuf.Struct filter = 6 [json_name = "filter"]; + * @return The filter. + */ + @java.lang.Override + public com.google.protobuf.Struct getFilter() { + return filter_ == null ? com.google.protobuf.Struct.getDefaultInstance() : filter_; + } + /** + *
+   * A [metadata filter expression](https://docs.pinecone.io/guides/index-data/indexing-overview#metadata-filter-expressions. When updating metadata across records in a namespace, the update is applied to all records that match the filter.
+   * 
+ * + * optional .google.protobuf.Struct filter = 6 [json_name = "filter"]; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getFilterOrBuilder() { + return filter_ == null ? com.google.protobuf.Struct.getDefaultInstance() : filter_; + } + + public static final int DRY_RUN_FIELD_NUMBER = 7; + private boolean dryRun_ = false; + /** + *
+   * If `true`, return the number of records that match the `filter`, but do not execute the update. Default is `false`.
+   * 
+ * + * optional bool dry_run = 7 [json_name = "dryRun"]; + * @return Whether the dryRun field is set. + */ + @java.lang.Override + public boolean hasDryRun() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+   * If `true`, return the number of records that match the `filter`, but do not execute the update. Default is `false`.
+   * 
+ * + * optional bool dry_run = 7 [json_name = "dryRun"]; + * @return The dryRun. + */ + @java.lang.Override + public boolean getDryRun() { + return dryRun_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -296,6 +361,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(5, getSparseValues()); } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(6, getFilter()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeBool(7, dryRun_); + } getUnknownFields().writeTo(output); } @@ -330,6 +401,14 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getSparseValues()); } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getFilter()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, dryRun_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -361,6 +440,16 @@ public boolean equals(final java.lang.Object obj) { } if (!getNamespace() .equals(other.getNamespace())) return false; + if (hasFilter() != other.hasFilter()) return false; + if (hasFilter()) { + if (!getFilter() + .equals(other.getFilter())) return false; + } + if (hasDryRun() != other.hasDryRun()) return false; + if (hasDryRun()) { + if (getDryRun() + != other.getDryRun()) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -388,6 +477,15 @@ public int hashCode() { } hash = (37 * hash) + NAMESPACE_FIELD_NUMBER; hash = (53 * hash) + getNamespace().hashCode(); + if (hasFilter()) { + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + } + if (hasDryRun()) { + hash = (37 * hash) + DRY_RUN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDryRun()); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -498,13 +596,13 @@ public static final class Builder extends io.pinecone.proto.UpdateRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.pinecone.proto.DbData202504.internal_static_UpdateRequest_descriptor; + return io.pinecone.proto.DbData202510.internal_static_UpdateRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.pinecone.proto.DbData202504.internal_static_UpdateRequest_fieldAccessorTable + return io.pinecone.proto.DbData202510.internal_static_UpdateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( io.pinecone.proto.UpdateRequest.class, io.pinecone.proto.UpdateRequest.Builder.class); } @@ -524,6 +622,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { getSparseValuesFieldBuilder(); getSetMetadataFieldBuilder(); + getFilterFieldBuilder(); } } @java.lang.Override @@ -543,13 +642,19 @@ public Builder clear() { setMetadataBuilder_ = null; } namespace_ = ""; + filter_ = null; + if (filterBuilder_ != null) { + filterBuilder_.dispose(); + filterBuilder_ = null; + } + dryRun_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.pinecone.proto.DbData202504.internal_static_UpdateRequest_descriptor; + return io.pinecone.proto.DbData202510.internal_static_UpdateRequest_descriptor; } @java.lang.Override @@ -599,6 +704,16 @@ private void buildPartial0(io.pinecone.proto.UpdateRequest result) { if (((from_bitField0_ & 0x00000010) != 0)) { result.namespace_ = namespace_; } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.filter_ = filterBuilder_ == null + ? filter_ + : filterBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.dryRun_ = dryRun_; + to_bitField0_ |= 0x00000008; + } result.bitField0_ |= to_bitField0_; } @@ -641,6 +756,12 @@ public Builder mergeFrom(io.pinecone.proto.UpdateRequest other) { bitField0_ |= 0x00000010; onChanged(); } + if (other.hasFilter()) { + mergeFilter(other.getFilter()); + } + if (other.hasDryRun()) { + setDryRun(other.getDryRun()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -708,6 +829,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 42 + case 50: { + input.readMessage( + getFilterFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 56: { + dryRun_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 56 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -728,10 +861,10 @@ public Builder mergeFrom( private java.lang.Object id_ = ""; /** *
-     * Vector's unique id.
+     * The unique ID of the record.
      * 
* - * string id = 1 [json_name = "id", (.google.api.field_behavior) = REQUIRED]; + * string id = 1 [json_name = "id"]; * @return The id. */ public java.lang.String getId() { @@ -748,10 +881,10 @@ public java.lang.String getId() { } /** *
-     * Vector's unique id.
+     * The unique ID of the record.
      * 
* - * string id = 1 [json_name = "id", (.google.api.field_behavior) = REQUIRED]; + * string id = 1 [json_name = "id"]; * @return The bytes for id. */ public com.google.protobuf.ByteString @@ -769,10 +902,10 @@ public java.lang.String getId() { } /** *
-     * Vector's unique id.
+     * The unique ID of the record.
      * 
* - * string id = 1 [json_name = "id", (.google.api.field_behavior) = REQUIRED]; + * string id = 1 [json_name = "id"]; * @param value The id to set. * @return This builder for chaining. */ @@ -786,10 +919,10 @@ public Builder setId( } /** *
-     * Vector's unique id.
+     * The unique ID of the record.
      * 
* - * string id = 1 [json_name = "id", (.google.api.field_behavior) = REQUIRED]; + * string id = 1 [json_name = "id"]; * @return This builder for chaining. */ public Builder clearId() { @@ -800,10 +933,10 @@ public Builder clearId() { } /** *
-     * Vector's unique id.
+     * The unique ID of the record.
      * 
* - * string id = 1 [json_name = "id", (.google.api.field_behavior) = REQUIRED]; + * string id = 1 [json_name = "id"]; * @param value The bytes for id to set. * @return This builder for chaining. */ @@ -1252,7 +1385,7 @@ public com.google.protobuf.StructOrBuilder getSetMetadataOrBuilder() { private java.lang.Object namespace_ = ""; /** *
-     * The namespace containing the vector to update.
+     * The namespace containing the record(s) to update.
      * 
* * string namespace = 4 [json_name = "namespace"]; @@ -1272,7 +1405,7 @@ public java.lang.String getNamespace() { } /** *
-     * The namespace containing the vector to update.
+     * The namespace containing the record(s) to update.
      * 
* * string namespace = 4 [json_name = "namespace"]; @@ -1293,7 +1426,7 @@ public java.lang.String getNamespace() { } /** *
-     * The namespace containing the vector to update.
+     * The namespace containing the record(s) to update.
      * 
* * string namespace = 4 [json_name = "namespace"]; @@ -1310,7 +1443,7 @@ public Builder setNamespace( } /** *
-     * The namespace containing the vector to update.
+     * The namespace containing the record(s) to update.
      * 
* * string namespace = 4 [json_name = "namespace"]; @@ -1324,7 +1457,7 @@ public Builder clearNamespace() { } /** *
-     * The namespace containing the vector to update.
+     * The namespace containing the record(s) to update.
      * 
* * string namespace = 4 [json_name = "namespace"]; @@ -1341,6 +1474,219 @@ public Builder setNamespaceBytes( return this; } + private com.google.protobuf.Struct filter_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> filterBuilder_; + /** + *
+     * A [metadata filter expression](https://docs.pinecone.io/guides/index-data/indexing-overview#metadata-filter-expressions. When updating metadata across records in a namespace, the update is applied to all records that match the filter.
+     * 
+ * + * optional .google.protobuf.Struct filter = 6 [json_name = "filter"]; + * @return Whether the filter field is set. + */ + public boolean hasFilter() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + *
+     * A [metadata filter expression](https://docs.pinecone.io/guides/index-data/indexing-overview#metadata-filter-expressions. When updating metadata across records in a namespace, the update is applied to all records that match the filter.
+     * 
+ * + * optional .google.protobuf.Struct filter = 6 [json_name = "filter"]; + * @return The filter. + */ + public com.google.protobuf.Struct getFilter() { + if (filterBuilder_ == null) { + return filter_ == null ? com.google.protobuf.Struct.getDefaultInstance() : filter_; + } else { + return filterBuilder_.getMessage(); + } + } + /** + *
+     * A [metadata filter expression](https://docs.pinecone.io/guides/index-data/indexing-overview#metadata-filter-expressions. When updating metadata across records in a namespace, the update is applied to all records that match the filter.
+     * 
+ * + * optional .google.protobuf.Struct filter = 6 [json_name = "filter"]; + */ + public Builder setFilter(com.google.protobuf.Struct value) { + if (filterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + } else { + filterBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * A [metadata filter expression](https://docs.pinecone.io/guides/index-data/indexing-overview#metadata-filter-expressions. When updating metadata across records in a namespace, the update is applied to all records that match the filter.
+     * 
+ * + * optional .google.protobuf.Struct filter = 6 [json_name = "filter"]; + */ + public Builder setFilter( + com.google.protobuf.Struct.Builder builderForValue) { + if (filterBuilder_ == null) { + filter_ = builderForValue.build(); + } else { + filterBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * A [metadata filter expression](https://docs.pinecone.io/guides/index-data/indexing-overview#metadata-filter-expressions. When updating metadata across records in a namespace, the update is applied to all records that match the filter.
+     * 
+ * + * optional .google.protobuf.Struct filter = 6 [json_name = "filter"]; + */ + public Builder mergeFilter(com.google.protobuf.Struct value) { + if (filterBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) && + filter_ != null && + filter_ != com.google.protobuf.Struct.getDefaultInstance()) { + getFilterBuilder().mergeFrom(value); + } else { + filter_ = value; + } + } else { + filterBuilder_.mergeFrom(value); + } + if (filter_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + *
+     * A [metadata filter expression](https://docs.pinecone.io/guides/index-data/indexing-overview#metadata-filter-expressions. When updating metadata across records in a namespace, the update is applied to all records that match the filter.
+     * 
+ * + * optional .google.protobuf.Struct filter = 6 [json_name = "filter"]; + */ + public Builder clearFilter() { + bitField0_ = (bitField0_ & ~0x00000020); + filter_ = null; + if (filterBuilder_ != null) { + filterBuilder_.dispose(); + filterBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * A [metadata filter expression](https://docs.pinecone.io/guides/index-data/indexing-overview#metadata-filter-expressions. When updating metadata across records in a namespace, the update is applied to all records that match the filter.
+     * 
+ * + * optional .google.protobuf.Struct filter = 6 [json_name = "filter"]; + */ + public com.google.protobuf.Struct.Builder getFilterBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getFilterFieldBuilder().getBuilder(); + } + /** + *
+     * A [metadata filter expression](https://docs.pinecone.io/guides/index-data/indexing-overview#metadata-filter-expressions. When updating metadata across records in a namespace, the update is applied to all records that match the filter.
+     * 
+ * + * optional .google.protobuf.Struct filter = 6 [json_name = "filter"]; + */ + public com.google.protobuf.StructOrBuilder getFilterOrBuilder() { + if (filterBuilder_ != null) { + return filterBuilder_.getMessageOrBuilder(); + } else { + return filter_ == null ? + com.google.protobuf.Struct.getDefaultInstance() : filter_; + } + } + /** + *
+     * A [metadata filter expression](https://docs.pinecone.io/guides/index-data/indexing-overview#metadata-filter-expressions. When updating metadata across records in a namespace, the update is applied to all records that match the filter.
+     * 
+ * + * optional .google.protobuf.Struct filter = 6 [json_name = "filter"]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> + getFilterFieldBuilder() { + if (filterBuilder_ == null) { + filterBuilder_ = new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( + getFilter(), + getParentForChildren(), + isClean()); + filter_ = null; + } + return filterBuilder_; + } + + private boolean dryRun_ ; + /** + *
+     * If `true`, return the number of records that match the `filter`, but do not execute the update. Default is `false`.
+     * 
+ * + * optional bool dry_run = 7 [json_name = "dryRun"]; + * @return Whether the dryRun field is set. + */ + @java.lang.Override + public boolean hasDryRun() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + *
+     * If `true`, return the number of records that match the `filter`, but do not execute the update. Default is `false`.
+     * 
+ * + * optional bool dry_run = 7 [json_name = "dryRun"]; + * @return The dryRun. + */ + @java.lang.Override + public boolean getDryRun() { + return dryRun_; + } + /** + *
+     * If `true`, return the number of records that match the `filter`, but do not execute the update. Default is `false`.
+     * 
+ * + * optional bool dry_run = 7 [json_name = "dryRun"]; + * @param value The dryRun to set. + * @return This builder for chaining. + */ + public Builder setDryRun(boolean value) { + + dryRun_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * If `true`, return the number of records that match the `filter`, but do not execute the update. Default is `false`.
+     * 
+ * + * optional bool dry_run = 7 [json_name = "dryRun"]; + * @return This builder for chaining. + */ + public Builder clearDryRun() { + bitField0_ = (bitField0_ & ~0x00000040); + dryRun_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:UpdateRequest) } diff --git a/src/main/java/io/pinecone/proto/UpdateRequestOrBuilder.java b/src/main/java/io/pinecone/proto/UpdateRequestOrBuilder.java index 08976fbb..0f184913 100644 --- a/src/main/java/io/pinecone/proto/UpdateRequestOrBuilder.java +++ b/src/main/java/io/pinecone/proto/UpdateRequestOrBuilder.java @@ -1,6 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: db_data_2025-04.proto +// source: db_data_2025-10.proto // Protobuf Java Version: 4.29.3 package io.pinecone.proto; @@ -11,19 +11,19 @@ public interface UpdateRequestOrBuilder extends /** *
-   * Vector's unique id.
+   * The unique ID of the record.
    * 
* - * string id = 1 [json_name = "id", (.google.api.field_behavior) = REQUIRED]; + * string id = 1 [json_name = "id"]; * @return The id. */ java.lang.String getId(); /** *
-   * Vector's unique id.
+   * The unique ID of the record.
    * 
* - * string id = 1 [json_name = "id", (.google.api.field_behavior) = REQUIRED]; + * string id = 1 [json_name = "id"]; * @return The bytes for id. */ com.google.protobuf.ByteString @@ -114,7 +114,7 @@ public interface UpdateRequestOrBuilder extends /** *
-   * The namespace containing the vector to update.
+   * The namespace containing the record(s) to update.
    * 
* * string namespace = 4 [json_name = "namespace"]; @@ -123,7 +123,7 @@ public interface UpdateRequestOrBuilder extends java.lang.String getNamespace(); /** *
-   * The namespace containing the vector to update.
+   * The namespace containing the record(s) to update.
    * 
* * string namespace = 4 [json_name = "namespace"]; @@ -131,4 +131,50 @@ public interface UpdateRequestOrBuilder extends */ com.google.protobuf.ByteString getNamespaceBytes(); + + /** + *
+   * A [metadata filter expression](https://docs.pinecone.io/guides/index-data/indexing-overview#metadata-filter-expressions. When updating metadata across records in a namespace, the update is applied to all records that match the filter.
+   * 
+ * + * optional .google.protobuf.Struct filter = 6 [json_name = "filter"]; + * @return Whether the filter field is set. + */ + boolean hasFilter(); + /** + *
+   * A [metadata filter expression](https://docs.pinecone.io/guides/index-data/indexing-overview#metadata-filter-expressions. When updating metadata across records in a namespace, the update is applied to all records that match the filter.
+   * 
+ * + * optional .google.protobuf.Struct filter = 6 [json_name = "filter"]; + * @return The filter. + */ + com.google.protobuf.Struct getFilter(); + /** + *
+   * A [metadata filter expression](https://docs.pinecone.io/guides/index-data/indexing-overview#metadata-filter-expressions. When updating metadata across records in a namespace, the update is applied to all records that match the filter.
+   * 
+ * + * optional .google.protobuf.Struct filter = 6 [json_name = "filter"]; + */ + com.google.protobuf.StructOrBuilder getFilterOrBuilder(); + + /** + *
+   * If `true`, return the number of records that match the `filter`, but do not execute the update. Default is `false`.
+   * 
+ * + * optional bool dry_run = 7 [json_name = "dryRun"]; + * @return Whether the dryRun field is set. + */ + boolean hasDryRun(); + /** + *
+   * If `true`, return the number of records that match the `filter`, but do not execute the update. Default is `false`.
+   * 
+ * + * optional bool dry_run = 7 [json_name = "dryRun"]; + * @return The dryRun. + */ + boolean getDryRun(); } diff --git a/src/main/java/io/pinecone/proto/UpdateResponse.java b/src/main/java/io/pinecone/proto/UpdateResponse.java index 3aec52d2..d59b6a72 100644 --- a/src/main/java/io/pinecone/proto/UpdateResponse.java +++ b/src/main/java/io/pinecone/proto/UpdateResponse.java @@ -1,6 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: db_data_2025-04.proto +// source: db_data_2025-10.proto // Protobuf Java Version: 4.29.3 package io.pinecone.proto; @@ -35,17 +35,37 @@ private UpdateResponse() { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.pinecone.proto.DbData202504.internal_static_UpdateResponse_descriptor; + return io.pinecone.proto.DbData202510.internal_static_UpdateResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.pinecone.proto.DbData202504.internal_static_UpdateResponse_fieldAccessorTable + return io.pinecone.proto.DbData202510.internal_static_UpdateResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( io.pinecone.proto.UpdateResponse.class, io.pinecone.proto.UpdateResponse.Builder.class); } + private int bitField0_; + public static final int MATCHED_RECORDS_FIELD_NUMBER = 1; + private int matchedRecords_ = 0; + /** + * optional int32 matched_records = 1 [json_name = "matchedRecords"]; + * @return Whether the matchedRecords field is set. + */ + @java.lang.Override + public boolean hasMatchedRecords() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional int32 matched_records = 1 [json_name = "matchedRecords"]; + * @return The matchedRecords. + */ + @java.lang.Override + public int getMatchedRecords() { + return matchedRecords_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -60,6 +80,9 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt32(1, matchedRecords_); + } getUnknownFields().writeTo(output); } @@ -69,6 +92,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, matchedRecords_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -84,6 +111,11 @@ public boolean equals(final java.lang.Object obj) { } io.pinecone.proto.UpdateResponse other = (io.pinecone.proto.UpdateResponse) obj; + if (hasMatchedRecords() != other.hasMatchedRecords()) return false; + if (hasMatchedRecords()) { + if (getMatchedRecords() + != other.getMatchedRecords()) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -95,6 +127,10 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMatchedRecords()) { + hash = (37 * hash) + MATCHED_RECORDS_FIELD_NUMBER; + hash = (53 * hash) + getMatchedRecords(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -205,13 +241,13 @@ public static final class Builder extends io.pinecone.proto.UpdateResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.pinecone.proto.DbData202504.internal_static_UpdateResponse_descriptor; + return io.pinecone.proto.DbData202510.internal_static_UpdateResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.pinecone.proto.DbData202504.internal_static_UpdateResponse_fieldAccessorTable + return io.pinecone.proto.DbData202510.internal_static_UpdateResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( io.pinecone.proto.UpdateResponse.class, io.pinecone.proto.UpdateResponse.Builder.class); } @@ -229,13 +265,15 @@ private Builder( @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; + matchedRecords_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.pinecone.proto.DbData202504.internal_static_UpdateResponse_descriptor; + return io.pinecone.proto.DbData202510.internal_static_UpdateResponse_descriptor; } @java.lang.Override @@ -255,10 +293,21 @@ public io.pinecone.proto.UpdateResponse build() { @java.lang.Override public io.pinecone.proto.UpdateResponse buildPartial() { io.pinecone.proto.UpdateResponse result = new io.pinecone.proto.UpdateResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(io.pinecone.proto.UpdateResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.matchedRecords_ = matchedRecords_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.pinecone.proto.UpdateResponse) { @@ -271,6 +320,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(io.pinecone.proto.UpdateResponse other) { if (other == io.pinecone.proto.UpdateResponse.getDefaultInstance()) return this; + if (other.hasMatchedRecords()) { + setMatchedRecords(other.getMatchedRecords()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -297,6 +349,11 @@ public Builder mergeFrom( case 0: done = true; break; + case 8: { + matchedRecords_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -312,6 +369,47 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; + + private int matchedRecords_ ; + /** + * optional int32 matched_records = 1 [json_name = "matchedRecords"]; + * @return Whether the matchedRecords field is set. + */ + @java.lang.Override + public boolean hasMatchedRecords() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional int32 matched_records = 1 [json_name = "matchedRecords"]; + * @return The matchedRecords. + */ + @java.lang.Override + public int getMatchedRecords() { + return matchedRecords_; + } + /** + * optional int32 matched_records = 1 [json_name = "matchedRecords"]; + * @param value The matchedRecords to set. + * @return This builder for chaining. + */ + public Builder setMatchedRecords(int value) { + + matchedRecords_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * optional int32 matched_records = 1 [json_name = "matchedRecords"]; + * @return This builder for chaining. + */ + public Builder clearMatchedRecords() { + bitField0_ = (bitField0_ & ~0x00000001); + matchedRecords_ = 0; + onChanged(); + return this; + } // @@protoc_insertion_point(builder_scope:UpdateResponse) } diff --git a/src/main/java/io/pinecone/proto/UpdateResponseOrBuilder.java b/src/main/java/io/pinecone/proto/UpdateResponseOrBuilder.java index 55166fa8..7f805df0 100644 --- a/src/main/java/io/pinecone/proto/UpdateResponseOrBuilder.java +++ b/src/main/java/io/pinecone/proto/UpdateResponseOrBuilder.java @@ -1,6 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: db_data_2025-04.proto +// source: db_data_2025-10.proto // Protobuf Java Version: 4.29.3 package io.pinecone.proto; @@ -8,4 +8,15 @@ public interface UpdateResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:UpdateResponse) com.google.protobuf.MessageOrBuilder { + + /** + * optional int32 matched_records = 1 [json_name = "matchedRecords"]; + * @return Whether the matchedRecords field is set. + */ + boolean hasMatchedRecords(); + /** + * optional int32 matched_records = 1 [json_name = "matchedRecords"]; + * @return The matchedRecords. + */ + int getMatchedRecords(); } diff --git a/src/main/java/io/pinecone/proto/UpsertRequest.java b/src/main/java/io/pinecone/proto/UpsertRequest.java index f75777ed..6c68adc6 100644 --- a/src/main/java/io/pinecone/proto/UpsertRequest.java +++ b/src/main/java/io/pinecone/proto/UpsertRequest.java @@ -1,6 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: db_data_2025-04.proto +// source: db_data_2025-10.proto // Protobuf Java Version: 4.29.3 package io.pinecone.proto; @@ -37,13 +37,13 @@ private UpsertRequest() { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.pinecone.proto.DbData202504.internal_static_UpsertRequest_descriptor; + return io.pinecone.proto.DbData202510.internal_static_UpsertRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.pinecone.proto.DbData202504.internal_static_UpsertRequest_fieldAccessorTable + return io.pinecone.proto.DbData202510.internal_static_UpsertRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( io.pinecone.proto.UpsertRequest.class, io.pinecone.proto.UpsertRequest.Builder.class); } @@ -53,7 +53,7 @@ private UpsertRequest() { private java.util.List vectors_; /** *
-   * An array containing the vectors to upsert. Recommended batch limit is 100 vectors.
+   * An array containing the vectors to upsert. Recommended batch limit is up to 1000 vectors.
    * 
* * repeated .Vector vectors = 1 [json_name = "vectors", (.google.api.field_behavior) = REQUIRED]; @@ -64,7 +64,7 @@ public java.util.List getVectorsList() { } /** *
-   * An array containing the vectors to upsert. Recommended batch limit is 100 vectors.
+   * An array containing the vectors to upsert. Recommended batch limit is up to 1000 vectors.
    * 
* * repeated .Vector vectors = 1 [json_name = "vectors", (.google.api.field_behavior) = REQUIRED]; @@ -76,7 +76,7 @@ public java.util.List getVectorsList() { } /** *
-   * An array containing the vectors to upsert. Recommended batch limit is 100 vectors.
+   * An array containing the vectors to upsert. Recommended batch limit is up to 1000 vectors.
    * 
* * repeated .Vector vectors = 1 [json_name = "vectors", (.google.api.field_behavior) = REQUIRED]; @@ -87,7 +87,7 @@ public int getVectorsCount() { } /** *
-   * An array containing the vectors to upsert. Recommended batch limit is 100 vectors.
+   * An array containing the vectors to upsert. Recommended batch limit is up to 1000 vectors.
    * 
* * repeated .Vector vectors = 1 [json_name = "vectors", (.google.api.field_behavior) = REQUIRED]; @@ -98,7 +98,7 @@ public io.pinecone.proto.Vector getVectors(int index) { } /** *
-   * An array containing the vectors to upsert. Recommended batch limit is 100 vectors.
+   * An array containing the vectors to upsert. Recommended batch limit is up to 1000 vectors.
    * 
* * repeated .Vector vectors = 1 [json_name = "vectors", (.google.api.field_behavior) = REQUIRED]; @@ -338,13 +338,13 @@ public static final class Builder extends io.pinecone.proto.UpsertRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.pinecone.proto.DbData202504.internal_static_UpsertRequest_descriptor; + return io.pinecone.proto.DbData202510.internal_static_UpsertRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.pinecone.proto.DbData202504.internal_static_UpsertRequest_fieldAccessorTable + return io.pinecone.proto.DbData202510.internal_static_UpsertRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( io.pinecone.proto.UpsertRequest.class, io.pinecone.proto.UpsertRequest.Builder.class); } @@ -377,7 +377,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.pinecone.proto.DbData202504.internal_static_UpsertRequest_descriptor; + return io.pinecone.proto.DbData202510.internal_static_UpsertRequest_descriptor; } @java.lang.Override @@ -540,7 +540,7 @@ private void ensureVectorsIsMutable() { /** *
-     * An array containing the vectors to upsert. Recommended batch limit is 100 vectors.
+     * An array containing the vectors to upsert. Recommended batch limit is up to 1000 vectors.
      * 
* * repeated .Vector vectors = 1 [json_name = "vectors", (.google.api.field_behavior) = REQUIRED]; @@ -554,7 +554,7 @@ public java.util.List getVectorsList() { } /** *
-     * An array containing the vectors to upsert. Recommended batch limit is 100 vectors.
+     * An array containing the vectors to upsert. Recommended batch limit is up to 1000 vectors.
      * 
* * repeated .Vector vectors = 1 [json_name = "vectors", (.google.api.field_behavior) = REQUIRED]; @@ -568,7 +568,7 @@ public int getVectorsCount() { } /** *
-     * An array containing the vectors to upsert. Recommended batch limit is 100 vectors.
+     * An array containing the vectors to upsert. Recommended batch limit is up to 1000 vectors.
      * 
* * repeated .Vector vectors = 1 [json_name = "vectors", (.google.api.field_behavior) = REQUIRED]; @@ -582,7 +582,7 @@ public io.pinecone.proto.Vector getVectors(int index) { } /** *
-     * An array containing the vectors to upsert. Recommended batch limit is 100 vectors.
+     * An array containing the vectors to upsert. Recommended batch limit is up to 1000 vectors.
      * 
* * repeated .Vector vectors = 1 [json_name = "vectors", (.google.api.field_behavior) = REQUIRED]; @@ -603,7 +603,7 @@ public Builder setVectors( } /** *
-     * An array containing the vectors to upsert. Recommended batch limit is 100 vectors.
+     * An array containing the vectors to upsert. Recommended batch limit is up to 1000 vectors.
      * 
* * repeated .Vector vectors = 1 [json_name = "vectors", (.google.api.field_behavior) = REQUIRED]; @@ -621,7 +621,7 @@ public Builder setVectors( } /** *
-     * An array containing the vectors to upsert. Recommended batch limit is 100 vectors.
+     * An array containing the vectors to upsert. Recommended batch limit is up to 1000 vectors.
      * 
* * repeated .Vector vectors = 1 [json_name = "vectors", (.google.api.field_behavior) = REQUIRED]; @@ -641,7 +641,7 @@ public Builder addVectors(io.pinecone.proto.Vector value) { } /** *
-     * An array containing the vectors to upsert. Recommended batch limit is 100 vectors.
+     * An array containing the vectors to upsert. Recommended batch limit is up to 1000 vectors.
      * 
* * repeated .Vector vectors = 1 [json_name = "vectors", (.google.api.field_behavior) = REQUIRED]; @@ -662,7 +662,7 @@ public Builder addVectors( } /** *
-     * An array containing the vectors to upsert. Recommended batch limit is 100 vectors.
+     * An array containing the vectors to upsert. Recommended batch limit is up to 1000 vectors.
      * 
* * repeated .Vector vectors = 1 [json_name = "vectors", (.google.api.field_behavior) = REQUIRED]; @@ -680,7 +680,7 @@ public Builder addVectors( } /** *
-     * An array containing the vectors to upsert. Recommended batch limit is 100 vectors.
+     * An array containing the vectors to upsert. Recommended batch limit is up to 1000 vectors.
      * 
* * repeated .Vector vectors = 1 [json_name = "vectors", (.google.api.field_behavior) = REQUIRED]; @@ -698,7 +698,7 @@ public Builder addVectors( } /** *
-     * An array containing the vectors to upsert. Recommended batch limit is 100 vectors.
+     * An array containing the vectors to upsert. Recommended batch limit is up to 1000 vectors.
      * 
* * repeated .Vector vectors = 1 [json_name = "vectors", (.google.api.field_behavior) = REQUIRED]; @@ -717,7 +717,7 @@ public Builder addAllVectors( } /** *
-     * An array containing the vectors to upsert. Recommended batch limit is 100 vectors.
+     * An array containing the vectors to upsert. Recommended batch limit is up to 1000 vectors.
      * 
* * repeated .Vector vectors = 1 [json_name = "vectors", (.google.api.field_behavior) = REQUIRED]; @@ -734,7 +734,7 @@ public Builder clearVectors() { } /** *
-     * An array containing the vectors to upsert. Recommended batch limit is 100 vectors.
+     * An array containing the vectors to upsert. Recommended batch limit is up to 1000 vectors.
      * 
* * repeated .Vector vectors = 1 [json_name = "vectors", (.google.api.field_behavior) = REQUIRED]; @@ -751,7 +751,7 @@ public Builder removeVectors(int index) { } /** *
-     * An array containing the vectors to upsert. Recommended batch limit is 100 vectors.
+     * An array containing the vectors to upsert. Recommended batch limit is up to 1000 vectors.
      * 
* * repeated .Vector vectors = 1 [json_name = "vectors", (.google.api.field_behavior) = REQUIRED]; @@ -762,7 +762,7 @@ public io.pinecone.proto.Vector.Builder getVectorsBuilder( } /** *
-     * An array containing the vectors to upsert. Recommended batch limit is 100 vectors.
+     * An array containing the vectors to upsert. Recommended batch limit is up to 1000 vectors.
      * 
* * repeated .Vector vectors = 1 [json_name = "vectors", (.google.api.field_behavior) = REQUIRED]; @@ -776,7 +776,7 @@ public io.pinecone.proto.VectorOrBuilder getVectorsOrBuilder( } /** *
-     * An array containing the vectors to upsert. Recommended batch limit is 100 vectors.
+     * An array containing the vectors to upsert. Recommended batch limit is up to 1000 vectors.
      * 
* * repeated .Vector vectors = 1 [json_name = "vectors", (.google.api.field_behavior) = REQUIRED]; @@ -791,7 +791,7 @@ public io.pinecone.proto.VectorOrBuilder getVectorsOrBuilder( } /** *
-     * An array containing the vectors to upsert. Recommended batch limit is 100 vectors.
+     * An array containing the vectors to upsert. Recommended batch limit is up to 1000 vectors.
      * 
* * repeated .Vector vectors = 1 [json_name = "vectors", (.google.api.field_behavior) = REQUIRED]; @@ -802,7 +802,7 @@ public io.pinecone.proto.Vector.Builder addVectorsBuilder() { } /** *
-     * An array containing the vectors to upsert. Recommended batch limit is 100 vectors.
+     * An array containing the vectors to upsert. Recommended batch limit is up to 1000 vectors.
      * 
* * repeated .Vector vectors = 1 [json_name = "vectors", (.google.api.field_behavior) = REQUIRED]; @@ -814,7 +814,7 @@ public io.pinecone.proto.Vector.Builder addVectorsBuilder( } /** *
-     * An array containing the vectors to upsert. Recommended batch limit is 100 vectors.
+     * An array containing the vectors to upsert. Recommended batch limit is up to 1000 vectors.
      * 
* * repeated .Vector vectors = 1 [json_name = "vectors", (.google.api.field_behavior) = REQUIRED]; diff --git a/src/main/java/io/pinecone/proto/UpsertRequestOrBuilder.java b/src/main/java/io/pinecone/proto/UpsertRequestOrBuilder.java index 8bdd77aa..225b37d0 100644 --- a/src/main/java/io/pinecone/proto/UpsertRequestOrBuilder.java +++ b/src/main/java/io/pinecone/proto/UpsertRequestOrBuilder.java @@ -1,6 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: db_data_2025-04.proto +// source: db_data_2025-10.proto // Protobuf Java Version: 4.29.3 package io.pinecone.proto; @@ -11,7 +11,7 @@ public interface UpsertRequestOrBuilder extends /** *
-   * An array containing the vectors to upsert. Recommended batch limit is 100 vectors.
+   * An array containing the vectors to upsert. Recommended batch limit is up to 1000 vectors.
    * 
* * repeated .Vector vectors = 1 [json_name = "vectors", (.google.api.field_behavior) = REQUIRED]; @@ -20,7 +20,7 @@ public interface UpsertRequestOrBuilder extends getVectorsList(); /** *
-   * An array containing the vectors to upsert. Recommended batch limit is 100 vectors.
+   * An array containing the vectors to upsert. Recommended batch limit is up to 1000 vectors.
    * 
* * repeated .Vector vectors = 1 [json_name = "vectors", (.google.api.field_behavior) = REQUIRED]; @@ -28,7 +28,7 @@ public interface UpsertRequestOrBuilder extends io.pinecone.proto.Vector getVectors(int index); /** *
-   * An array containing the vectors to upsert. Recommended batch limit is 100 vectors.
+   * An array containing the vectors to upsert. Recommended batch limit is up to 1000 vectors.
    * 
* * repeated .Vector vectors = 1 [json_name = "vectors", (.google.api.field_behavior) = REQUIRED]; @@ -36,7 +36,7 @@ public interface UpsertRequestOrBuilder extends int getVectorsCount(); /** *
-   * An array containing the vectors to upsert. Recommended batch limit is 100 vectors.
+   * An array containing the vectors to upsert. Recommended batch limit is up to 1000 vectors.
    * 
* * repeated .Vector vectors = 1 [json_name = "vectors", (.google.api.field_behavior) = REQUIRED]; @@ -45,7 +45,7 @@ public interface UpsertRequestOrBuilder extends getVectorsOrBuilderList(); /** *
-   * An array containing the vectors to upsert. Recommended batch limit is 100 vectors.
+   * An array containing the vectors to upsert. Recommended batch limit is up to 1000 vectors.
    * 
* * repeated .Vector vectors = 1 [json_name = "vectors", (.google.api.field_behavior) = REQUIRED]; diff --git a/src/main/java/io/pinecone/proto/UpsertResponse.java b/src/main/java/io/pinecone/proto/UpsertResponse.java index 8f9be1b8..12f4ab12 100644 --- a/src/main/java/io/pinecone/proto/UpsertResponse.java +++ b/src/main/java/io/pinecone/proto/UpsertResponse.java @@ -1,6 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: db_data_2025-04.proto +// source: db_data_2025-10.proto // Protobuf Java Version: 4.29.3 package io.pinecone.proto; @@ -35,13 +35,13 @@ private UpsertResponse() { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.pinecone.proto.DbData202504.internal_static_UpsertResponse_descriptor; + return io.pinecone.proto.DbData202510.internal_static_UpsertResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.pinecone.proto.DbData202504.internal_static_UpsertResponse_fieldAccessorTable + return io.pinecone.proto.DbData202510.internal_static_UpsertResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( io.pinecone.proto.UpsertResponse.class, io.pinecone.proto.UpsertResponse.Builder.class); } @@ -231,13 +231,13 @@ public static final class Builder extends io.pinecone.proto.UpsertResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.pinecone.proto.DbData202504.internal_static_UpsertResponse_descriptor; + return io.pinecone.proto.DbData202510.internal_static_UpsertResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.pinecone.proto.DbData202504.internal_static_UpsertResponse_fieldAccessorTable + return io.pinecone.proto.DbData202510.internal_static_UpsertResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( io.pinecone.proto.UpsertResponse.class, io.pinecone.proto.UpsertResponse.Builder.class); } @@ -263,7 +263,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.pinecone.proto.DbData202504.internal_static_UpsertResponse_descriptor; + return io.pinecone.proto.DbData202510.internal_static_UpsertResponse_descriptor; } @java.lang.Override diff --git a/src/main/java/io/pinecone/proto/UpsertResponseOrBuilder.java b/src/main/java/io/pinecone/proto/UpsertResponseOrBuilder.java index 26074997..bdc22d90 100644 --- a/src/main/java/io/pinecone/proto/UpsertResponseOrBuilder.java +++ b/src/main/java/io/pinecone/proto/UpsertResponseOrBuilder.java @@ -1,6 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: db_data_2025-04.proto +// source: db_data_2025-10.proto // Protobuf Java Version: 4.29.3 package io.pinecone.proto; diff --git a/src/main/java/io/pinecone/proto/Usage.java b/src/main/java/io/pinecone/proto/Usage.java index fb4f96fa..49b4a30c 100644 --- a/src/main/java/io/pinecone/proto/Usage.java +++ b/src/main/java/io/pinecone/proto/Usage.java @@ -1,6 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: db_data_2025-04.proto +// source: db_data_2025-10.proto // Protobuf Java Version: 4.29.3 package io.pinecone.proto; @@ -31,13 +31,13 @@ private Usage() { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.pinecone.proto.DbData202504.internal_static_Usage_descriptor; + return io.pinecone.proto.DbData202510.internal_static_Usage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.pinecone.proto.DbData202504.internal_static_Usage_fieldAccessorTable + return io.pinecone.proto.DbData202510.internal_static_Usage_fieldAccessorTable .ensureFieldAccessorsInitialized( io.pinecone.proto.Usage.class, io.pinecone.proto.Usage.Builder.class); } @@ -241,13 +241,13 @@ public static final class Builder extends io.pinecone.proto.UsageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.pinecone.proto.DbData202504.internal_static_Usage_descriptor; + return io.pinecone.proto.DbData202510.internal_static_Usage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.pinecone.proto.DbData202504.internal_static_Usage_fieldAccessorTable + return io.pinecone.proto.DbData202510.internal_static_Usage_fieldAccessorTable .ensureFieldAccessorsInitialized( io.pinecone.proto.Usage.class, io.pinecone.proto.Usage.Builder.class); } @@ -273,7 +273,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.pinecone.proto.DbData202504.internal_static_Usage_descriptor; + return io.pinecone.proto.DbData202510.internal_static_Usage_descriptor; } @java.lang.Override diff --git a/src/main/java/io/pinecone/proto/UsageOrBuilder.java b/src/main/java/io/pinecone/proto/UsageOrBuilder.java index 4757f9ad..39b3b631 100644 --- a/src/main/java/io/pinecone/proto/UsageOrBuilder.java +++ b/src/main/java/io/pinecone/proto/UsageOrBuilder.java @@ -1,6 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: db_data_2025-04.proto +// source: db_data_2025-10.proto // Protobuf Java Version: 4.29.3 package io.pinecone.proto; diff --git a/src/main/java/io/pinecone/proto/Vector.java b/src/main/java/io/pinecone/proto/Vector.java index 40a059be..e0d28e53 100644 --- a/src/main/java/io/pinecone/proto/Vector.java +++ b/src/main/java/io/pinecone/proto/Vector.java @@ -1,6 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: db_data_2025-04.proto +// source: db_data_2025-10.proto // Protobuf Java Version: 4.29.3 package io.pinecone.proto; @@ -33,13 +33,13 @@ private Vector() { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.pinecone.proto.DbData202504.internal_static_Vector_descriptor; + return io.pinecone.proto.DbData202510.internal_static_Vector_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.pinecone.proto.DbData202504.internal_static_Vector_fieldAccessorTable + return io.pinecone.proto.DbData202510.internal_static_Vector_fieldAccessorTable .ensureFieldAccessorsInitialized( io.pinecone.proto.Vector.class, io.pinecone.proto.Vector.Builder.class); } @@ -432,13 +432,13 @@ public static final class Builder extends io.pinecone.proto.VectorOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.pinecone.proto.DbData202504.internal_static_Vector_descriptor; + return io.pinecone.proto.DbData202510.internal_static_Vector_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return io.pinecone.proto.DbData202504.internal_static_Vector_fieldAccessorTable + return io.pinecone.proto.DbData202510.internal_static_Vector_fieldAccessorTable .ensureFieldAccessorsInitialized( io.pinecone.proto.Vector.class, io.pinecone.proto.Vector.Builder.class); } @@ -482,7 +482,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.pinecone.proto.DbData202504.internal_static_Vector_descriptor; + return io.pinecone.proto.DbData202510.internal_static_Vector_descriptor; } @java.lang.Override diff --git a/src/main/java/io/pinecone/proto/VectorOrBuilder.java b/src/main/java/io/pinecone/proto/VectorOrBuilder.java index 596819a8..27e11fdb 100644 --- a/src/main/java/io/pinecone/proto/VectorOrBuilder.java +++ b/src/main/java/io/pinecone/proto/VectorOrBuilder.java @@ -1,6 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: db_data_2025-04.proto +// source: db_data_2025-10.proto // Protobuf Java Version: 4.29.3 package io.pinecone.proto; diff --git a/src/main/java/io/pinecone/proto/VectorServiceGrpc.java b/src/main/java/io/pinecone/proto/VectorServiceGrpc.java index 384d3b8c..c3d9f84b 100644 --- a/src/main/java/io/pinecone/proto/VectorServiceGrpc.java +++ b/src/main/java/io/pinecone/proto/VectorServiceGrpc.java @@ -10,7 +10,7 @@ */ @javax.annotation.Generated( value = "by gRPC proto compiler (version 1.64.0)", - comments = "Source: db_data_2025-04.proto") + comments = "Source: db_data_2025-10.proto") @io.grpc.stub.annotations.GrpcGenerated public final class VectorServiceGrpc { @@ -329,6 +329,68 @@ io.pinecone.proto.DeleteResponse> getDeleteNamespaceMethod() { return getDeleteNamespaceMethod; } + private static volatile io.grpc.MethodDescriptor getCreateNamespaceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateNamespace", + requestType = io.pinecone.proto.CreateNamespaceRequest.class, + responseType = io.pinecone.proto.NamespaceDescription.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateNamespaceMethod() { + io.grpc.MethodDescriptor getCreateNamespaceMethod; + if ((getCreateNamespaceMethod = VectorServiceGrpc.getCreateNamespaceMethod) == null) { + synchronized (VectorServiceGrpc.class) { + if ((getCreateNamespaceMethod = VectorServiceGrpc.getCreateNamespaceMethod) == null) { + VectorServiceGrpc.getCreateNamespaceMethod = getCreateNamespaceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateNamespace")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + io.pinecone.proto.CreateNamespaceRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + io.pinecone.proto.NamespaceDescription.getDefaultInstance())) + .setSchemaDescriptor(new VectorServiceMethodDescriptorSupplier("CreateNamespace")) + .build(); + } + } + } + return getCreateNamespaceMethod; + } + + private static volatile io.grpc.MethodDescriptor getFetchByMetadataMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "FetchByMetadata", + requestType = io.pinecone.proto.FetchByMetadataRequest.class, + responseType = io.pinecone.proto.FetchByMetadataResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getFetchByMetadataMethod() { + io.grpc.MethodDescriptor getFetchByMetadataMethod; + if ((getFetchByMetadataMethod = VectorServiceGrpc.getFetchByMetadataMethod) == null) { + synchronized (VectorServiceGrpc.class) { + if ((getFetchByMetadataMethod = VectorServiceGrpc.getFetchByMetadataMethod) == null) { + VectorServiceGrpc.getFetchByMetadataMethod = getFetchByMetadataMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FetchByMetadata")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + io.pinecone.proto.FetchByMetadataRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + io.pinecone.proto.FetchByMetadataResponse.getDefaultInstance())) + .setSchemaDescriptor(new VectorServiceMethodDescriptorSupplier("FetchByMetadata")) + .build(); + } + } + } + return getFetchByMetadataMethod; + } + /** * Creates a new async stub that supports all call types for the service */ @@ -385,7 +447,7 @@ public interface AsyncService { *
      * Upsert vectors
      * Upsert 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/guides/data/upsert-data#upsert-vectors).
+     * For guidance, examples, and limits, see [Upsert data](https://docs.pinecone.io/guides/index-data/upsert-data).
      * 
*/ default void upsert(io.pinecone.proto.UpsertRequest request, @@ -397,7 +459,7 @@ default void upsert(io.pinecone.proto.UpsertRequest request, *
      * Delete vectors
      * Delete vectors by id from a single namespace.
-     * For guidance and examples, see [Delete data](https://docs.pinecone.io/guides/data/delete-data).
+     * For guidance and examples, see [Delete data](https://docs.pinecone.io/guides/manage-data/delete-data).
      * 
*/ default void delete(io.pinecone.proto.DeleteRequest request, @@ -409,7 +471,7 @@ default void delete(io.pinecone.proto.DeleteRequest request, *
      * Fetch vectors
      * Look up and return 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/guides/data/fetch-data).
+     * For guidance and examples, see [Fetch data](https://docs.pinecone.io/guides/manage-data/fetch-data).
      * 
*/ default void fetch(io.pinecone.proto.FetchRequest request, @@ -422,7 +484,7 @@ default void fetch(io.pinecone.proto.FetchRequest request, * List vector IDs * List 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. * This 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 [List record IDs](https://docs.pinecone.io/guides/data/list-record-ids). + * For guidance and examples, see [List record IDs](https://docs.pinecone.io/guides/manage-data/list-record-ids). * **Note:** `list` is supported only for serverless indexes. * */ @@ -435,7 +497,7 @@ default void list(io.pinecone.proto.ListRequest request, *
      * Search with a vector
      * Search a namespace with a query vector or record ID and return the IDs of the most similar records, along with their similarity scores.
-     * For guidance and examples, see [Query data](https://docs.pinecone.io/guides/data/query-data).
+     * For guidance, examples, and limits, see [Search](https://docs.pinecone.io/guides/search/search-overview).
      * 
*/ default void query(io.pinecone.proto.QueryRequest request, @@ -447,7 +509,7 @@ default void query(io.pinecone.proto.QueryRequest request, *
      * Update a vector
      * Update 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/guides/data/update-data).
+     * For guidance and examples, see [Update data](https://docs.pinecone.io/guides/manage-data/update-data).
      * 
*/ default void update(io.pinecone.proto.UpdateRequest request, @@ -469,8 +531,12 @@ default void describeIndexStats(io.pinecone.proto.DescribeIndexStatsRequest requ /** *
-     * Get list of all namespaces
-     * Get a list of all namespaces within an index.
+     * List namespaces
+     * List all namespaces in a serverless index.
+     *      
+     * Up to 100 namespaces are returned at a time by default, in sorted order (bitwise "C" collation). If the `limit` parameter is set, up to that number of namespaces are returned instead. Whenever there are additional namespaces to return, the response also includes a `pagination_token` that you can use to get the next batch of namespaces. When the response does not include a `pagination_token`, there are no more namespaces to return.
+     * For guidance and examples, see [Manage namespaces](https://docs.pinecone.io/guides/manage-data/manage-namespaces).
+     * **Note:** This operation is not supported for pod-based indexes.
      * 
*/ default void listNamespaces(io.pinecone.proto.ListNamespacesRequest request, @@ -481,7 +547,9 @@ default void listNamespaces(io.pinecone.proto.ListNamespacesRequest request, /** *
      * Describe a namespace
-     * Describe a namespace within an index, showing the vector count within the namespace.
+     * Describe a namespace in a serverless index, including the total number of vectors in the namespace.
+     * For guidance and examples, see [Manage namespaces](https://docs.pinecone.io/guides/manage-data/manage-namespaces).
+     * **Note:** This operation is not supported for pod-based indexes.
      * 
*/ default void describeNamespace(io.pinecone.proto.DescribeNamespaceRequest request, @@ -492,13 +560,36 @@ default void describeNamespace(io.pinecone.proto.DescribeNamespaceRequest reques /** *
      * Delete a namespace
-     * Delete a namespace from an index.
+     * Delete a namespace from a serverless index. Deleting a namespace is irreversible; all data in the namespace is permanently deleted.
+     * For guidance and examples, see [Manage namespaces](https://docs.pinecone.io/guides/manage-data/manage-namespaces).
+     * **Note:** This operation is not supported for pod-based indexes.
      * 
*/ default void deleteNamespace(io.pinecone.proto.DeleteNamespaceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteNamespaceMethod(), responseObserver); } + + /** + *
+     * Create a namespace
+     * Create a namespace in a serverless index.
+     * 
+     * For guidance and examples, see [Manage namespaces](https://docs.pinecone.io/guides/manage-data/manage-namespaces).
+     * **Note:** This operation is not supported for pod-based indexes.
+     * 
+ */ + default void createNamespace(io.pinecone.proto.CreateNamespaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateNamespaceMethod(), responseObserver); + } + + /** + */ + default void fetchByMetadata(io.pinecone.proto.FetchByMetadataRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getFetchByMetadataMethod(), responseObserver); + } } /** @@ -540,7 +631,7 @@ protected VectorServiceStub build( *
      * Upsert vectors
      * Upsert 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/guides/data/upsert-data#upsert-vectors).
+     * For guidance, examples, and limits, see [Upsert data](https://docs.pinecone.io/guides/index-data/upsert-data).
      * 
*/ public void upsert(io.pinecone.proto.UpsertRequest request, @@ -553,7 +644,7 @@ public void upsert(io.pinecone.proto.UpsertRequest request, *
      * Delete vectors
      * Delete vectors by id from a single namespace.
-     * For guidance and examples, see [Delete data](https://docs.pinecone.io/guides/data/delete-data).
+     * For guidance and examples, see [Delete data](https://docs.pinecone.io/guides/manage-data/delete-data).
      * 
*/ public void delete(io.pinecone.proto.DeleteRequest request, @@ -566,7 +657,7 @@ public void delete(io.pinecone.proto.DeleteRequest request, *
      * Fetch vectors
      * Look up and return 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/guides/data/fetch-data).
+     * For guidance and examples, see [Fetch data](https://docs.pinecone.io/guides/manage-data/fetch-data).
      * 
*/ public void fetch(io.pinecone.proto.FetchRequest request, @@ -580,7 +671,7 @@ public void fetch(io.pinecone.proto.FetchRequest request, * List vector IDs * List 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. * This 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 [List record IDs](https://docs.pinecone.io/guides/data/list-record-ids). + * For guidance and examples, see [List record IDs](https://docs.pinecone.io/guides/manage-data/list-record-ids). * **Note:** `list` is supported only for serverless indexes. * */ @@ -594,7 +685,7 @@ public void list(io.pinecone.proto.ListRequest request, *
      * Search with a vector
      * Search a namespace with a query vector or record ID and return the IDs of the most similar records, along with their similarity scores.
-     * For guidance and examples, see [Query data](https://docs.pinecone.io/guides/data/query-data).
+     * For guidance, examples, and limits, see [Search](https://docs.pinecone.io/guides/search/search-overview).
      * 
*/ public void query(io.pinecone.proto.QueryRequest request, @@ -607,7 +698,7 @@ public void query(io.pinecone.proto.QueryRequest request, *
      * Update a vector
      * Update 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/guides/data/update-data).
+     * For guidance and examples, see [Update data](https://docs.pinecone.io/guides/manage-data/update-data).
      * 
*/ public void update(io.pinecone.proto.UpdateRequest request, @@ -631,8 +722,12 @@ public void describeIndexStats(io.pinecone.proto.DescribeIndexStatsRequest reque /** *
-     * Get list of all namespaces
-     * Get a list of all namespaces within an index.
+     * List namespaces
+     * List all namespaces in a serverless index.
+     *      
+     * Up to 100 namespaces are returned at a time by default, in sorted order (bitwise "C" collation). If the `limit` parameter is set, up to that number of namespaces are returned instead. Whenever there are additional namespaces to return, the response also includes a `pagination_token` that you can use to get the next batch of namespaces. When the response does not include a `pagination_token`, there are no more namespaces to return.
+     * For guidance and examples, see [Manage namespaces](https://docs.pinecone.io/guides/manage-data/manage-namespaces).
+     * **Note:** This operation is not supported for pod-based indexes.
      * 
*/ public void listNamespaces(io.pinecone.proto.ListNamespacesRequest request, @@ -644,7 +739,9 @@ public void listNamespaces(io.pinecone.proto.ListNamespacesRequest request, /** *
      * Describe a namespace
-     * Describe a namespace within an index, showing the vector count within the namespace.
+     * Describe a namespace in a serverless index, including the total number of vectors in the namespace.
+     * For guidance and examples, see [Manage namespaces](https://docs.pinecone.io/guides/manage-data/manage-namespaces).
+     * **Note:** This operation is not supported for pod-based indexes.
      * 
*/ public void describeNamespace(io.pinecone.proto.DescribeNamespaceRequest request, @@ -656,7 +753,9 @@ public void describeNamespace(io.pinecone.proto.DescribeNamespaceRequest request /** *
      * Delete a namespace
-     * Delete a namespace from an index.
+     * Delete a namespace from a serverless index. Deleting a namespace is irreversible; all data in the namespace is permanently deleted.
+     * For guidance and examples, see [Manage namespaces](https://docs.pinecone.io/guides/manage-data/manage-namespaces).
+     * **Note:** This operation is not supported for pod-based indexes.
      * 
*/ public void deleteNamespace(io.pinecone.proto.DeleteNamespaceRequest request, @@ -664,6 +763,29 @@ public void deleteNamespace(io.pinecone.proto.DeleteNamespaceRequest request, io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteNamespaceMethod(), getCallOptions()), request, responseObserver); } + + /** + *
+     * Create a namespace
+     * Create a namespace in a serverless index.
+     * 
+     * For guidance and examples, see [Manage namespaces](https://docs.pinecone.io/guides/manage-data/manage-namespaces).
+     * **Note:** This operation is not supported for pod-based indexes.
+     * 
+ */ + public void createNamespace(io.pinecone.proto.CreateNamespaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateNamespaceMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void fetchByMetadata(io.pinecone.proto.FetchByMetadataRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getFetchByMetadataMethod(), getCallOptions()), request, responseObserver); + } } /** @@ -690,7 +812,7 @@ protected VectorServiceBlockingStub build( *
      * Upsert vectors
      * Upsert 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/guides/data/upsert-data#upsert-vectors).
+     * For guidance, examples, and limits, see [Upsert data](https://docs.pinecone.io/guides/index-data/upsert-data).
      * 
*/ public io.pinecone.proto.UpsertResponse upsert(io.pinecone.proto.UpsertRequest request) { @@ -702,7 +824,7 @@ public io.pinecone.proto.UpsertResponse upsert(io.pinecone.proto.UpsertRequest r *
      * Delete vectors
      * Delete vectors by id from a single namespace.
-     * For guidance and examples, see [Delete data](https://docs.pinecone.io/guides/data/delete-data).
+     * For guidance and examples, see [Delete data](https://docs.pinecone.io/guides/manage-data/delete-data).
      * 
*/ public io.pinecone.proto.DeleteResponse delete(io.pinecone.proto.DeleteRequest request) { @@ -714,7 +836,7 @@ public io.pinecone.proto.DeleteResponse delete(io.pinecone.proto.DeleteRequest r *
      * Fetch vectors
      * Look up and return 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/guides/data/fetch-data).
+     * For guidance and examples, see [Fetch data](https://docs.pinecone.io/guides/manage-data/fetch-data).
      * 
*/ public io.pinecone.proto.FetchResponse fetch(io.pinecone.proto.FetchRequest request) { @@ -727,7 +849,7 @@ public io.pinecone.proto.FetchResponse fetch(io.pinecone.proto.FetchRequest requ * List vector IDs * List 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. * This 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 [List record IDs](https://docs.pinecone.io/guides/data/list-record-ids). + * For guidance and examples, see [List record IDs](https://docs.pinecone.io/guides/manage-data/list-record-ids). * **Note:** `list` is supported only for serverless indexes. * */ @@ -740,7 +862,7 @@ public io.pinecone.proto.ListResponse list(io.pinecone.proto.ListRequest request *
      * Search with a vector
      * Search a namespace with a query vector or record ID and return the IDs of the most similar records, along with their similarity scores.
-     * For guidance and examples, see [Query data](https://docs.pinecone.io/guides/data/query-data).
+     * For guidance, examples, and limits, see [Search](https://docs.pinecone.io/guides/search/search-overview).
      * 
*/ public io.pinecone.proto.QueryResponse query(io.pinecone.proto.QueryRequest request) { @@ -752,7 +874,7 @@ public io.pinecone.proto.QueryResponse query(io.pinecone.proto.QueryRequest requ *
      * Update a vector
      * Update 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/guides/data/update-data).
+     * For guidance and examples, see [Update data](https://docs.pinecone.io/guides/manage-data/update-data).
      * 
*/ public io.pinecone.proto.UpdateResponse update(io.pinecone.proto.UpdateRequest request) { @@ -774,8 +896,12 @@ public io.pinecone.proto.DescribeIndexStatsResponse describeIndexStats(io.pineco /** *
-     * Get list of all namespaces
-     * Get a list of all namespaces within an index.
+     * List namespaces
+     * List all namespaces in a serverless index.
+     *      
+     * Up to 100 namespaces are returned at a time by default, in sorted order (bitwise "C" collation). If the `limit` parameter is set, up to that number of namespaces are returned instead. Whenever there are additional namespaces to return, the response also includes a `pagination_token` that you can use to get the next batch of namespaces. When the response does not include a `pagination_token`, there are no more namespaces to return.
+     * For guidance and examples, see [Manage namespaces](https://docs.pinecone.io/guides/manage-data/manage-namespaces).
+     * **Note:** This operation is not supported for pod-based indexes.
      * 
*/ public io.pinecone.proto.ListNamespacesResponse listNamespaces(io.pinecone.proto.ListNamespacesRequest request) { @@ -786,7 +912,9 @@ public io.pinecone.proto.ListNamespacesResponse listNamespaces(io.pinecone.proto /** *
      * Describe a namespace
-     * Describe a namespace within an index, showing the vector count within the namespace.
+     * Describe a namespace in a serverless index, including the total number of vectors in the namespace.
+     * For guidance and examples, see [Manage namespaces](https://docs.pinecone.io/guides/manage-data/manage-namespaces).
+     * **Note:** This operation is not supported for pod-based indexes.
      * 
*/ public io.pinecone.proto.NamespaceDescription describeNamespace(io.pinecone.proto.DescribeNamespaceRequest request) { @@ -797,13 +925,36 @@ public io.pinecone.proto.NamespaceDescription describeNamespace(io.pinecone.prot /** *
      * Delete a namespace
-     * Delete a namespace from an index.
+     * Delete a namespace from a serverless index. Deleting a namespace is irreversible; all data in the namespace is permanently deleted.
+     * For guidance and examples, see [Manage namespaces](https://docs.pinecone.io/guides/manage-data/manage-namespaces).
+     * **Note:** This operation is not supported for pod-based indexes.
      * 
*/ public io.pinecone.proto.DeleteResponse deleteNamespace(io.pinecone.proto.DeleteNamespaceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteNamespaceMethod(), getCallOptions(), request); } + + /** + *
+     * Create a namespace
+     * Create a namespace in a serverless index.
+     * 
+     * For guidance and examples, see [Manage namespaces](https://docs.pinecone.io/guides/manage-data/manage-namespaces).
+     * **Note:** This operation is not supported for pod-based indexes.
+     * 
+ */ + public io.pinecone.proto.NamespaceDescription createNamespace(io.pinecone.proto.CreateNamespaceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateNamespaceMethod(), getCallOptions(), request); + } + + /** + */ + public io.pinecone.proto.FetchByMetadataResponse fetchByMetadata(io.pinecone.proto.FetchByMetadataRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getFetchByMetadataMethod(), getCallOptions(), request); + } } /** @@ -830,7 +981,7 @@ protected VectorServiceFutureStub build( *
      * Upsert vectors
      * Upsert 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/guides/data/upsert-data#upsert-vectors).
+     * For guidance, examples, and limits, see [Upsert data](https://docs.pinecone.io/guides/index-data/upsert-data).
      * 
*/ public com.google.common.util.concurrent.ListenableFuture upsert( @@ -843,7 +994,7 @@ public com.google.common.util.concurrent.ListenableFuture * Delete vectors * Delete vectors by id from a single namespace. - * For guidance and examples, see [Delete data](https://docs.pinecone.io/guides/data/delete-data). + * For guidance and examples, see [Delete data](https://docs.pinecone.io/guides/manage-data/delete-data). * */ public com.google.common.util.concurrent.ListenableFuture delete( @@ -856,7 +1007,7 @@ public com.google.common.util.concurrent.ListenableFuture * Fetch vectors * Look up and return 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/guides/data/fetch-data). + * For guidance and examples, see [Fetch data](https://docs.pinecone.io/guides/manage-data/fetch-data). * */ public com.google.common.util.concurrent.ListenableFuture fetch( @@ -870,7 +1021,7 @@ public com.google.common.util.concurrent.ListenableFuture */ @@ -884,7 +1035,7 @@ public com.google.common.util.concurrent.ListenableFuture * Search with a vector * Search a namespace with a query vector or record ID and return the IDs of the most similar records, along with their similarity scores. - * For guidance and examples, see [Query data](https://docs.pinecone.io/guides/data/query-data). + * For guidance, examples, and limits, see [Search](https://docs.pinecone.io/guides/search/search-overview). * */ public com.google.common.util.concurrent.ListenableFuture query( @@ -897,7 +1048,7 @@ public com.google.common.util.concurrent.ListenableFuture * Update a vector * Update 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/guides/data/update-data). + * For guidance and examples, see [Update data](https://docs.pinecone.io/guides/manage-data/update-data). * */ public com.google.common.util.concurrent.ListenableFuture update( @@ -921,8 +1072,12 @@ public com.google.common.util.concurrent.ListenableFuture - * Get list of all namespaces - * Get a list of all namespaces within an index. + * List namespaces + * List all namespaces in a serverless index. + * + * Up to 100 namespaces are returned at a time by default, in sorted order (bitwise "C" collation). If the `limit` parameter is set, up to that number of namespaces are returned instead. Whenever there are additional namespaces to return, the response also includes a `pagination_token` that you can use to get the next batch of namespaces. When the response does not include a `pagination_token`, there are no more namespaces to return. + * For guidance and examples, see [Manage namespaces](https://docs.pinecone.io/guides/manage-data/manage-namespaces). + * **Note:** This operation is not supported for pod-based indexes. * */ public com.google.common.util.concurrent.ListenableFuture listNamespaces( @@ -934,7 +1089,9 @@ public com.google.common.util.concurrent.ListenableFuture * Describe a namespace - * Describe a namespace within an index, showing the vector count within the namespace. + * Describe a namespace in a serverless index, including the total number of vectors in the namespace. + * For guidance and examples, see [Manage namespaces](https://docs.pinecone.io/guides/manage-data/manage-namespaces). + * **Note:** This operation is not supported for pod-based indexes. * */ public com.google.common.util.concurrent.ListenableFuture describeNamespace( @@ -946,7 +1103,9 @@ public com.google.common.util.concurrent.ListenableFuture * Delete a namespace - * Delete a namespace from an index. + * Delete a namespace from a serverless index. Deleting a namespace is irreversible; all data in the namespace is permanently deleted. + * For guidance and examples, see [Manage namespaces](https://docs.pinecone.io/guides/manage-data/manage-namespaces). + * **Note:** This operation is not supported for pod-based indexes. * */ public com.google.common.util.concurrent.ListenableFuture deleteNamespace( @@ -954,6 +1113,29 @@ public com.google.common.util.concurrent.ListenableFuture + * Create a namespace + * Create a namespace in a serverless index. + * + * For guidance and examples, see [Manage namespaces](https://docs.pinecone.io/guides/manage-data/manage-namespaces). + * **Note:** This operation is not supported for pod-based indexes. + * + */ + public com.google.common.util.concurrent.ListenableFuture createNamespace( + io.pinecone.proto.CreateNamespaceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateNamespaceMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture fetchByMetadata( + io.pinecone.proto.FetchByMetadataRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getFetchByMetadataMethod(), getCallOptions()), request); + } } private static final int METHODID_UPSERT = 0; @@ -966,6 +1148,8 @@ public com.google.common.util.concurrent.ListenableFuture implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -1024,6 +1208,14 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv serviceImpl.deleteNamespace((io.pinecone.proto.DeleteNamespaceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_CREATE_NAMESPACE: + serviceImpl.createNamespace((io.pinecone.proto.CreateNamespaceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_FETCH_BY_METADATA: + serviceImpl.fetchByMetadata((io.pinecone.proto.FetchByMetadataRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -1112,6 +1304,20 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser io.pinecone.proto.DeleteNamespaceRequest, io.pinecone.proto.DeleteResponse>( service, METHODID_DELETE_NAMESPACE))) + .addMethod( + getCreateNamespaceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + io.pinecone.proto.CreateNamespaceRequest, + io.pinecone.proto.NamespaceDescription>( + service, METHODID_CREATE_NAMESPACE))) + .addMethod( + getFetchByMetadataMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + io.pinecone.proto.FetchByMetadataRequest, + io.pinecone.proto.FetchByMetadataResponse>( + service, METHODID_FETCH_BY_METADATA))) .build(); } @@ -1121,7 +1327,7 @@ private static abstract class VectorServiceBaseDescriptorSupplier @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return io.pinecone.proto.DbData202504.getDescriptor(); + return io.pinecone.proto.DbData202510.getDescriptor(); } @java.lang.Override @@ -1170,6 +1376,8 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getListNamespacesMethod()) .addMethod(getDescribeNamespaceMethod()) .addMethod(getDeleteNamespaceMethod()) + .addMethod(getCreateNamespaceMethod()) + .addMethod(getFetchByMetadataMethod()) .build(); } }