diff --git a/packages/google-cloud-vectorsearch/protos/google/cloud/vectorsearch/v1/data_object_search_service.proto b/packages/google-cloud-vectorsearch/protos/google/cloud/vectorsearch/v1/data_object_search_service.proto index 4448dbe5fef..b22ab2ce890 100644 --- a/packages/google-cloud-vectorsearch/protos/google/cloud/vectorsearch/v1/data_object_search_service.proto +++ b/packages/google-cloud-vectorsearch/protos/google/cloud/vectorsearch/v1/data_object_search_service.proto @@ -410,9 +410,6 @@ message Ranker { oneof ranker { // Reciprocal Rank Fusion ranking. ReciprocalRankFusion rrf = 1; - - // Vertex AI ranking. - VertexRanker vertex = 2; } } @@ -422,24 +419,6 @@ message ReciprocalRankFusion { repeated double weights = 1 [(google.api.field_behavior) = REQUIRED]; } -// Defines a ranker using the Vertex AI ranking service. -// See https://cloud.google.com/generative-ai-app-builder/docs/ranking for -// details. -message VertexRanker { - // Required. The query against which the records are ranked and scored. - string query = 1 [(google.api.field_behavior) = REQUIRED]; - - // Optional. The template used to generate the record's title. - string title_template = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The template used to generate the record's content. - string content_template = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Required. The model used for ranking documents. If no model is specified, - // then semantic-ranker-default@latest is used. - string model = 4 [(google.api.field_behavior) = REQUIRED]; -} - // A response from a batch search operation. message BatchSearchDataObjectsResponse { // Output only. A list of search responses, one for each request in the batch. diff --git a/packages/google-cloud-vectorsearch/protos/google/cloud/vectorsearch/v1beta/common.proto b/packages/google-cloud-vectorsearch/protos/google/cloud/vectorsearch/v1beta/common.proto index e0eca9eabcb..abe771ca245 100644 --- a/packages/google-cloud-vectorsearch/protos/google/cloud/vectorsearch/v1beta/common.proto +++ b/packages/google-cloud-vectorsearch/protos/google/cloud/vectorsearch/v1beta/common.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,10 +16,13 @@ syntax = "proto3"; package google.cloud.vectorsearch.v1beta; +option csharp_namespace = "Google.Cloud.VectorSearch.V1Beta"; option go_package = "cloud.google.com/go/vectorsearch/apiv1beta/vectorsearchpb;vectorsearchpb"; option java_multiple_files = true; option java_outer_classname = "CommonProto"; option java_package = "com.google.cloud.vectorsearch.v1beta"; +option php_namespace = "Google\\Cloud\\VectorSearch\\V1beta"; +option ruby_package = "Google::Cloud::VectorSearch::V1beta"; // Distance metric for vector search. enum DistanceMetric { diff --git a/packages/google-cloud-vectorsearch/protos/google/cloud/vectorsearch/v1beta/data_object.proto b/packages/google-cloud-vectorsearch/protos/google/cloud/vectorsearch/v1beta/data_object.proto index 7b557a4a48f..6c08a4b83f8 100644 --- a/packages/google-cloud-vectorsearch/protos/google/cloud/vectorsearch/v1beta/data_object.proto +++ b/packages/google-cloud-vectorsearch/protos/google/cloud/vectorsearch/v1beta/data_object.proto @@ -21,10 +21,13 @@ import "google/api/resource.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; +option csharp_namespace = "Google.Cloud.VectorSearch.V1Beta"; option go_package = "cloud.google.com/go/vectorsearch/apiv1beta/vectorsearchpb;vectorsearchpb"; option java_multiple_files = true; option java_outer_classname = "DataObjectProto"; option java_package = "com.google.cloud.vectorsearch.v1beta"; +option php_namespace = "Google\\Cloud\\VectorSearch\\V1beta"; +option ruby_package = "Google::Cloud::VectorSearch::V1beta"; // A dataObject resource in Vector Search. message DataObject { @@ -44,8 +47,7 @@ message DataObject { string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Output only. The id of the dataObject. - string data_object_id = 2 - [deprecated = true, (google.api.field_behavior) = OUTPUT_ONLY]; + string data_object_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Timestamp the dataObject was created at. google.protobuf.Timestamp create_time = 4 @@ -60,6 +62,9 @@ message DataObject { // Optional. The vectors of the dataObject. map vectors = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The etag of the dataObject. + string etag = 8 [(google.api.field_behavior) = OPTIONAL]; } // A vector which can be either dense or sparse. @@ -73,7 +78,7 @@ message Vector { SparseVector sparse = 3; } - // The values of the vector. + // Deprecated: Use `dense` or `sparse` instead. repeated float values = 1 [deprecated = true]; } diff --git a/packages/google-cloud-vectorsearch/protos/google/cloud/vectorsearch/v1beta/data_object_search_service.proto b/packages/google-cloud-vectorsearch/protos/google/cloud/vectorsearch/v1beta/data_object_search_service.proto index 45892cd7577..ba249e73d5f 100644 --- a/packages/google-cloud-vectorsearch/protos/google/cloud/vectorsearch/v1beta/data_object_search_service.proto +++ b/packages/google-cloud-vectorsearch/protos/google/cloud/vectorsearch/v1beta/data_object_search_service.proto @@ -25,10 +25,13 @@ import "google/cloud/vectorsearch/v1beta/data_object.proto"; import "google/cloud/vectorsearch/v1beta/embedding_config.proto"; import "google/protobuf/struct.proto"; +option csharp_namespace = "Google.Cloud.VectorSearch.V1Beta"; option go_package = "cloud.google.com/go/vectorsearch/apiv1beta/vectorsearchpb;vectorsearchpb"; option java_multiple_files = true; option java_outer_classname = "DataObjectSearchServiceProto"; option java_package = "com.google.cloud.vectorsearch.v1beta"; +option php_namespace = "Google\\Cloud\\VectorSearch\\V1beta"; +option ruby_package = "Google::Cloud::VectorSearch::V1beta"; // Service for searching data objects. service DataObjectSearchService { @@ -98,21 +101,60 @@ message OutputFields { message SearchHint { // Message to specify the index to use for the search. message IndexHint { + // Parameters for dense ScaNN. + message DenseScannParams { + // Optional. Dense ANN param overrides to control recall and latency. + // The percentage of leaves to search, in the range [0, 100]. + int32 search_leaves_pct = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The number of initial candidates. Must be a positive integer + // (> 0). + int32 initial_candidate_count = 2 + [(google.api.field_behavior) = OPTIONAL]; + } + + // The parameters for the index. + oneof params { + // Optional. Dense ScaNN parameters. + DenseScannParams dense_scann_params = 2 + [(google.api.field_behavior) = OPTIONAL]; + } + // Required. The resource name of the index to use for the search. // The index must be in the same project, location, and collection. // Format: // `projects/{project}/locations/{location}/collections/{collection}/indexes/{index}` - string name = 1 [(google.api.field_behavior) = REQUIRED]; + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "vectorsearch.googleapis.com/Index" + } + ]; } + // KnnHint will be used if search should be explicitly done on system's + // default K-Nearest Neighbor (KNN) index engine. + message KnnHint {} + // The type of index to use. oneof index_type { - // Optional. Specifies that the search should use a particular index. - IndexHint use_index = 1 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Deprecated: Use `index_hint` instead. + // Specifies that the search should use a particular index. + IndexHint use_index = 1 + [deprecated = true, (google.api.field_behavior) = OPTIONAL]; + + // Optional. Deprecated: Use `knn_hint` instead. + // If set to true, the search will use the system's default + // K-Nearest Neighbor (KNN) index engine. + bool use_knn = 2 + [deprecated = true, (google.api.field_behavior) = OPTIONAL]; - // Optional. If set to true, the search will use the system's default + // Optional. If set, the search will use the system's default // K-Nearest Neighbor (KNN) index engine. - bool use_knn = 2 [(google.api.field_behavior) = OPTIONAL]; + KnnHint knn_hint = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies that the search should use a particular index. + IndexHint index_hint = 4 [(google.api.field_behavior) = OPTIONAL]; } } @@ -161,8 +203,7 @@ message VectorSearch { // Optional. The distance metric to use for the KNN search. If not specified, // DOT_PRODUCT will be used as the default. - google.cloud.vectorsearch.v1beta.DistanceMetric distance_metric = 11 - [(google.api.field_behavior) = OPTIONAL]; + DistanceMetric distance_metric = 11 [(google.api.field_behavior) = OPTIONAL]; } // Defines a semantic search operation. @@ -174,8 +215,8 @@ message SemanticSearch { // Required. The vector field to search. string search_field = 2 [(google.api.field_behavior) = REQUIRED]; - // Optional. The task type of the query embedding. - EmbeddingTaskType task_type = 5 [(google.api.field_behavior) = OPTIONAL]; + // Required. The task type of the query embedding. + EmbeddingTaskType task_type = 5 [(google.api.field_behavior) = REQUIRED]; // Optional. The fields to return in the search results. OutputFields output_fields = 3 [(google.api.field_behavior) = OPTIONAL]; @@ -235,7 +276,9 @@ message SearchDataObjectsRequest { } ]; - // Optional. The standard list page size. + // Optional. The standard list page size. Only supported for KNN. If not set, + // up to search_type.top_k results will be returned. The maximum value is + // 1000; values above 1000 will be coerced to 1000. int32 page_size = 5 [(google.api.field_behavior) = OPTIONAL]; // Optional. The standard list page token. @@ -252,7 +295,8 @@ message SearchResult { // Output only. The matching data object. DataObject data_object = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. The similarity distance. + // Output only. Similarity distance or ranker score returned by + // BatchSearchDataObjects. optional double distance = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } @@ -263,7 +307,12 @@ message SearchResponseMetadata { // Output only. The resource name of the index used for the search. // Format: // `projects/{project}/locations/{location}/collections/{collection}/indexes/{index}` - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "vectorsearch.googleapis.com/Index" + } + ]; } // The type of index used. @@ -315,8 +364,9 @@ message AggregateDataObjectsRequest { // Response message for // [DataObjectSearchService.AggregateDataObjects][google.cloud.vectorsearch.v1beta.DataObjectSearchService.AggregateDataObjects]. message AggregateDataObjectsResponse { - // The aggregated results of the query. - repeated google.protobuf.Struct aggregate_results = 1; + // Output only. The aggregated results of the query. + repeated google.protobuf.Struct aggregate_results = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Request message for @@ -338,7 +388,8 @@ message QueryDataObjectsRequest { // Optional. Mask specifying which fields to return. OutputFields output_fields = 7 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The standard list page size. + // Optional. The standard list page size. Default is 100. + // The maximum value is 1000; values above 1000 will be coerced to 1000. int32 page_size = 5 [(google.api.field_behavior) = OPTIONAL]; // Optional. The standard list page token. @@ -353,13 +404,14 @@ message QueryDataObjectsRequest { // Response message for // [DataObjectSearchService.QueryDataObjects][google.cloud.vectorsearch.v1beta.DataObjectSearchService.QueryDataObjects]. message QueryDataObjectsResponse { - // The list of dataObjects that match the query. - repeated DataObject data_objects = 4; + // Output only. The list of dataObjects that match the query. + repeated DataObject data_objects = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // A token to retrieve next page of results. + // Output only. A token to retrieve next page of results. // Pass to [DataObjectSearchService.QueryDataObjectsRequest.page_token][] to // obtain that page. - string next_page_token = 3; + string next_page_token = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; } // A request to perform a batch of search operations. @@ -399,9 +451,6 @@ message Ranker { oneof ranker { // Reciprocal Rank Fusion ranking. ReciprocalRankFusion rrf = 1; - - // Vertex AI ranking. - VertexRanker vertex = 2; } } @@ -411,24 +460,6 @@ message ReciprocalRankFusion { repeated double weights = 1 [(google.api.field_behavior) = REQUIRED]; } -// Defines a ranker using the Vertex AI ranking service. -// See https://cloud.google.com/generative-ai-app-builder/docs/ranking for -// details. -message VertexRanker { - // Required. The query against which the records are ranked and scored. - string query = 1 [(google.api.field_behavior) = REQUIRED]; - - // Optional. The template used to generate the record's title. - string title_template = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The template used to generate the record's content. - string content_template = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Required. The model used for ranking documents. If no model is specified, - // then semantic-ranker-default@latest is used. - string model = 4 [(google.api.field_behavior) = REQUIRED]; -} - // A response from a batch search operation. message BatchSearchDataObjectsResponse { // Output only. A list of search responses, one for each request in the batch. diff --git a/packages/google-cloud-vectorsearch/protos/google/cloud/vectorsearch/v1beta/data_object_service.proto b/packages/google-cloud-vectorsearch/protos/google/cloud/vectorsearch/v1beta/data_object_service.proto index 6feca2973ff..78b02e9f733 100644 --- a/packages/google-cloud-vectorsearch/protos/google/cloud/vectorsearch/v1beta/data_object_service.proto +++ b/packages/google-cloud-vectorsearch/protos/google/cloud/vectorsearch/v1beta/data_object_service.proto @@ -24,10 +24,13 @@ import "google/cloud/vectorsearch/v1beta/data_object.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; +option csharp_namespace = "Google.Cloud.VectorSearch.V1Beta"; option go_package = "cloud.google.com/go/vectorsearch/apiv1beta/vectorsearchpb;vectorsearchpb"; option java_multiple_files = true; option java_outer_classname = "DataObjectServiceProto"; option java_package = "com.google.cloud.vectorsearch.v1beta"; +option php_namespace = "Google\\Cloud\\VectorSearch\\V1beta"; +option ruby_package = "Google::Cloud::VectorSearch::V1beta"; // Service for creating and managing data objects. service DataObjectService { @@ -146,8 +149,9 @@ message BatchCreateDataObjectsRequest { // Response message for // [DataObjectService.BatchCreateDataObjects][google.cloud.vectorsearch.v1beta.DataObjectService.BatchCreateDataObjects]. message BatchCreateDataObjectsResponse { - // DataObjects created. - repeated DataObject data_objects = 1; + // Output only. DataObjects created. + repeated DataObject data_objects = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Request message for @@ -212,6 +216,11 @@ message DeleteDataObjectRequest { type: "vectorsearch.googleapis.com/DataObject" } ]; + + // Optional. The current etag of the DataObject. + // If an etag is provided and does not match the current etag of the + // DataObject, deletion will be blocked and an ABORTED error will be returned. + string etag = 2 [(google.api.field_behavior) = OPTIONAL]; } // Request message for diff --git a/packages/google-cloud-vectorsearch/protos/google/cloud/vectorsearch/v1beta/embedding_config.proto b/packages/google-cloud-vectorsearch/protos/google/cloud/vectorsearch/v1beta/embedding_config.proto index b14b6bb2c2b..7fe659e4aed 100644 --- a/packages/google-cloud-vectorsearch/protos/google/cloud/vectorsearch/v1beta/embedding_config.proto +++ b/packages/google-cloud-vectorsearch/protos/google/cloud/vectorsearch/v1beta/embedding_config.proto @@ -18,10 +18,13 @@ package google.cloud.vectorsearch.v1beta; import "google/api/field_behavior.proto"; +option csharp_namespace = "Google.Cloud.VectorSearch.V1Beta"; option go_package = "cloud.google.com/go/vectorsearch/apiv1beta/vectorsearchpb;vectorsearchpb"; option java_multiple_files = true; option java_outer_classname = "EmbeddingConfigProto"; option java_package = "com.google.cloud.vectorsearch.v1beta"; +option php_namespace = "Google\\Cloud\\VectorSearch\\V1beta"; +option ruby_package = "Google::Cloud::VectorSearch::V1beta"; // Represents the task the embeddings will be used for. enum EmbeddingTaskType { diff --git a/packages/google-cloud-vectorsearch/protos/google/cloud/vectorsearch/v1beta/vectorsearch_service.proto b/packages/google-cloud-vectorsearch/protos/google/cloud/vectorsearch/v1beta/vectorsearch_service.proto index 94a9baa232c..617e30d420f 100644 --- a/packages/google-cloud-vectorsearch/protos/google/cloud/vectorsearch/v1beta/vectorsearch_service.proto +++ b/packages/google-cloud-vectorsearch/protos/google/cloud/vectorsearch/v1beta/vectorsearch_service.proto @@ -30,10 +30,13 @@ import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; +option csharp_namespace = "Google.Cloud.VectorSearch.V1Beta"; option go_package = "cloud.google.com/go/vectorsearch/apiv1beta/vectorsearchpb;vectorsearchpb"; option java_multiple_files = true; option java_outer_classname = "VectorSearchServiceProto"; option java_package = "com.google.cloud.vectorsearch.v1beta"; +option php_namespace = "Google\\Cloud\\VectorSearch\\V1beta"; +option ruby_package = "Google::Cloud::VectorSearch::V1beta"; // VectorSearchService provides methods for managing Collection resources, and // Collection Index resources. The primary resources offered by this service are @@ -412,6 +415,19 @@ message Index { singular: "index" }; + // The infrastructure type of the index. + oneof infra_type { + // Optional. Dedicated infrastructure for the index. + DedicatedInfrastructure dedicated_infrastructure = 11 + [(google.api.field_behavior) = OPTIONAL]; + } + + // The type of the index. + oneof index_type { + // Optional. Dense ScaNN index. + DenseScannIndex dense_scann = 12 [(google.api.field_behavior) = OPTIONAL]; + } + // Identifier. name of resource string name = 1 [(google.api.field_behavior) = IDENTIFIER]; @@ -434,8 +450,7 @@ message Index { // Optional. Distance metric used for indexing. If not specified, will default // to DOT_PRODUCT. - google.cloud.vectorsearch.v1beta.DistanceMetric distance_metric = 4 - [(google.api.field_behavior) = OPTIONAL]; + DistanceMetric distance_metric = 4 [(google.api.field_behavior) = OPTIONAL]; // Required. The collection schema field to index. string index_field = 5 [(google.api.field_behavior) = REQUIRED]; @@ -634,17 +649,19 @@ message ImportDataObjectsRequest { // Metadata for // [VectorSearchService.ImportDataObjects][google.cloud.vectorsearch.v1beta.VectorSearchService.ImportDataObjects]. message ImportDataObjectsMetadata { - // The time the operation was created. - google.protobuf.Timestamp create_time = 1; + // Output only. The time the operation was created. + google.protobuf.Timestamp create_time = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // The time the operation was last updated. - google.protobuf.Timestamp update_time = 2; + // Output only. The time the operation was last updated. + google.protobuf.Timestamp update_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // Number of DataObjects that were processed successfully. - int64 success_count = 3; + // Output only. Number of DataObjects that were processed successfully. + int64 success_count = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Number of DataObjects that failed during processing. - int64 failure_count = 4; + // Output only. Number of DataObjects that failed during processing. + int64 failure_count = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Response for @@ -660,7 +677,6 @@ message ExportDataObjectsRequest { // Google Cloud Storage configuration for the export. message GcsExportDestination { // Options for the format of the exported Data Objects. - // New formats may be added in the future. enum Format { // Unspecified format. FORMAT_UNSPECIFIED = 0; @@ -696,12 +712,66 @@ message ExportDataObjectsRequest { // Metadata for the ExportDataObjects LRO. message ExportDataObjectsMetadata { - // The time the operation was created. - google.protobuf.Timestamp create_time = 1; + // Output only. The time the operation was created. + google.protobuf.Timestamp create_time = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // The time the operation finished. - google.protobuf.Timestamp finish_time = 2; + // Output only. The time the operation finished. + google.protobuf.Timestamp finish_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Response for the ExportDataObjects LRO. message ExportDataObjectsResponse {} + +// Represents dedicated infrastructure for the index. +message DedicatedInfrastructure { + // Specification for autoscaling. + message AutoscalingSpec { + // Optional. The minimum number of replicas. If not set or set to `0`, + // defaults to `2`. Must be >= `2` and <= `1000`. + int32 min_replica_count = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The maximum number of replicas. If not set or set to `0`, + // defaults to the greater of `min_replica_count` and `5`. Must be >= + // `min_replica_count` and <= `1000`. + int32 max_replica_count = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // Mode of the dedicated infrastructure. + enum Mode { + // Default will use `PERFORMANCE_OPTIMIZED`. + MODE_UNSPECIFIED = 0; + + // This is storage optimized variation. + STORAGE_OPTIMIZED = 1; + + // This is Performance optimized on E2 or equivalent family. + PERFORMANCE_OPTIMIZED = 2; + } + + // Optional. Mode of the dedicated infrastructure. + optional Mode mode = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Autoscaling specification. + AutoscalingSpec autoscaling_spec = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Dense ScaNN index configuration. +message DenseScannIndex { + // Feature norm type for ScaNN index. + enum FeatureNormType { + // Unspecified feature norm type. + FEATURE_NORM_TYPE_UNSPECIFIED = 0; + + // No norm applied. + NONE = 1; + + // Unit L2 norm. + UNIT_L2_NORM = 2; + } + + // Optional. Feature norm type. + FeatureNormType feature_norm_type = 2 + [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/packages/google-cloud-vectorsearch/protos/protos.d.ts b/packages/google-cloud-vectorsearch/protos/protos.d.ts index de5b99a8d6c..df6cd88f809 100644 --- a/packages/google-cloud-vectorsearch/protos/protos.d.ts +++ b/packages/google-cloud-vectorsearch/protos/protos.d.ts @@ -2607,9 +2607,6 @@ export namespace google { /** Ranker rrf */ rrf?: (google.cloud.vectorsearch.v1.IReciprocalRankFusion|null); - - /** Ranker vertex */ - vertex?: (google.cloud.vectorsearch.v1.IVertexRanker|null); } /** Represents a Ranker. */ @@ -2624,11 +2621,8 @@ export namespace google { /** Ranker rrf. */ public rrf?: (google.cloud.vectorsearch.v1.IReciprocalRankFusion|null); - /** Ranker vertex. */ - public vertex?: (google.cloud.vectorsearch.v1.IVertexRanker|null); - /** Ranker ranker. */ - public ranker?: ("rrf"|"vertex"); + public ranker?: "rrf"; /** * Creates a new Ranker instance using the specified properties. @@ -2805,121 +2799,6 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a VertexRanker. */ - interface IVertexRanker { - - /** VertexRanker query */ - query?: (string|null); - - /** VertexRanker titleTemplate */ - titleTemplate?: (string|null); - - /** VertexRanker contentTemplate */ - contentTemplate?: (string|null); - - /** VertexRanker model */ - model?: (string|null); - } - - /** Represents a VertexRanker. */ - class VertexRanker implements IVertexRanker { - - /** - * Constructs a new VertexRanker. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.vectorsearch.v1.IVertexRanker); - - /** VertexRanker query. */ - public query: string; - - /** VertexRanker titleTemplate. */ - public titleTemplate: string; - - /** VertexRanker contentTemplate. */ - public contentTemplate: string; - - /** VertexRanker model. */ - public model: string; - - /** - * Creates a new VertexRanker instance using the specified properties. - * @param [properties] Properties to set - * @returns VertexRanker instance - */ - public static create(properties?: google.cloud.vectorsearch.v1.IVertexRanker): google.cloud.vectorsearch.v1.VertexRanker; - - /** - * Encodes the specified VertexRanker message. Does not implicitly {@link google.cloud.vectorsearch.v1.VertexRanker.verify|verify} messages. - * @param message VertexRanker message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.vectorsearch.v1.IVertexRanker, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified VertexRanker message, length delimited. Does not implicitly {@link google.cloud.vectorsearch.v1.VertexRanker.verify|verify} messages. - * @param message VertexRanker message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.vectorsearch.v1.IVertexRanker, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a VertexRanker message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns VertexRanker - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vectorsearch.v1.VertexRanker; - - /** - * Decodes a VertexRanker message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VertexRanker - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vectorsearch.v1.VertexRanker; - - /** - * Verifies a VertexRanker message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a VertexRanker message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns VertexRanker - */ - public static fromObject(object: { [k: string]: any }): google.cloud.vectorsearch.v1.VertexRanker; - - /** - * Creates a plain object from a VertexRanker message. Also converts values to other types if specified. - * @param message VertexRanker - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.vectorsearch.v1.VertexRanker, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this VertexRanker to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for VertexRanker - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - /** Properties of a BatchSearchDataObjectsResponse. */ interface IBatchSearchDataObjectsResponse { @@ -7171,6 +7050,9 @@ export namespace google { /** DataObject vectors */ vectors?: ({ [k: string]: google.cloud.vectorsearch.v1beta.IVector }|null); + + /** DataObject etag */ + etag?: (string|null); } /** Represents a DataObject. */ @@ -7200,6 +7082,9 @@ export namespace google { /** DataObject vectors. */ public vectors: { [k: string]: google.cloud.vectorsearch.v1beta.IVector }; + /** DataObject etag. */ + public etag: string; + /** * Creates a new DataObject instance using the specified properties. * @param [properties] Properties to set @@ -7821,6 +7706,12 @@ export namespace google { /** SearchHint useKnn */ useKnn?: (boolean|null); + + /** SearchHint knnHint */ + knnHint?: (google.cloud.vectorsearch.v1beta.SearchHint.IKnnHint|null); + + /** SearchHint indexHint */ + indexHint?: (google.cloud.vectorsearch.v1beta.SearchHint.IIndexHint|null); } /** Represents a SearchHint. */ @@ -7838,8 +7729,14 @@ export namespace google { /** SearchHint useKnn. */ public useKnn?: (boolean|null); + /** SearchHint knnHint. */ + public knnHint?: (google.cloud.vectorsearch.v1beta.SearchHint.IKnnHint|null); + + /** SearchHint indexHint. */ + public indexHint?: (google.cloud.vectorsearch.v1beta.SearchHint.IIndexHint|null); + /** SearchHint indexType. */ - public indexType?: ("useIndex"|"useKnn"); + public indexType?: ("useIndex"|"useKnn"|"knnHint"|"indexHint"); /** * Creates a new SearchHint instance using the specified properties. @@ -7924,6 +7821,9 @@ export namespace google { /** Properties of an IndexHint. */ interface IIndexHint { + /** IndexHint denseScannParams */ + denseScannParams?: (google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.IDenseScannParams|null); + /** IndexHint name */ name?: (string|null); } @@ -7937,9 +7837,15 @@ export namespace google { */ constructor(properties?: google.cloud.vectorsearch.v1beta.SearchHint.IIndexHint); + /** IndexHint denseScannParams. */ + public denseScannParams?: (google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.IDenseScannParams|null); + /** IndexHint name. */ public name: string; + /** IndexHint params. */ + public params?: "denseScannParams"; + /** * Creates a new IndexHint instance using the specified properties. * @param [properties] Properties to set @@ -8017,111 +7923,308 @@ export namespace google { */ public static getTypeUrl(typeUrlPrefix?: string): string; } - } - /** Properties of a Search. */ - interface ISearch { + namespace IndexHint { - /** Search vectorSearch */ - vectorSearch?: (google.cloud.vectorsearch.v1beta.IVectorSearch|null); + /** Properties of a DenseScannParams. */ + interface IDenseScannParams { - /** Search semanticSearch */ - semanticSearch?: (google.cloud.vectorsearch.v1beta.ISemanticSearch|null); + /** DenseScannParams searchLeavesPct */ + searchLeavesPct?: (number|null); - /** Search textSearch */ - textSearch?: (google.cloud.vectorsearch.v1beta.ITextSearch|null); - } + /** DenseScannParams initialCandidateCount */ + initialCandidateCount?: (number|null); + } - /** Represents a Search. */ - class Search implements ISearch { + /** Represents a DenseScannParams. */ + class DenseScannParams implements IDenseScannParams { - /** - * Constructs a new Search. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.vectorsearch.v1beta.ISearch); + /** + * Constructs a new DenseScannParams. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.IDenseScannParams); - /** Search vectorSearch. */ - public vectorSearch?: (google.cloud.vectorsearch.v1beta.IVectorSearch|null); + /** DenseScannParams searchLeavesPct. */ + public searchLeavesPct: number; - /** Search semanticSearch. */ - public semanticSearch?: (google.cloud.vectorsearch.v1beta.ISemanticSearch|null); + /** DenseScannParams initialCandidateCount. */ + public initialCandidateCount: number; - /** Search textSearch. */ - public textSearch?: (google.cloud.vectorsearch.v1beta.ITextSearch|null); + /** + * Creates a new DenseScannParams instance using the specified properties. + * @param [properties] Properties to set + * @returns DenseScannParams instance + */ + public static create(properties?: google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.IDenseScannParams): google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams; - /** Search searchType. */ - public searchType?: ("vectorSearch"|"semanticSearch"|"textSearch"); + /** + * Encodes the specified DenseScannParams message. Does not implicitly {@link google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams.verify|verify} messages. + * @param message DenseScannParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.IDenseScannParams, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new Search instance using the specified properties. - * @param [properties] Properties to set - * @returns Search instance - */ - public static create(properties?: google.cloud.vectorsearch.v1beta.ISearch): google.cloud.vectorsearch.v1beta.Search; + /** + * Encodes the specified DenseScannParams message, length delimited. Does not implicitly {@link google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams.verify|verify} messages. + * @param message DenseScannParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.IDenseScannParams, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Search message. Does not implicitly {@link google.cloud.vectorsearch.v1beta.Search.verify|verify} messages. - * @param message Search message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.vectorsearch.v1beta.ISearch, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a DenseScannParams message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DenseScannParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams; - /** - * Encodes the specified Search message, length delimited. Does not implicitly {@link google.cloud.vectorsearch.v1beta.Search.verify|verify} messages. - * @param message Search message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.vectorsearch.v1beta.ISearch, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a DenseScannParams message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DenseScannParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams; - /** - * Decodes a Search message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Search - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vectorsearch.v1beta.Search; + /** + * Verifies a DenseScannParams message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Decodes a Search message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Search - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vectorsearch.v1beta.Search; + /** + * Creates a DenseScannParams message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DenseScannParams + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams; - /** - * Verifies a Search message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Creates a plain object from a DenseScannParams message. Also converts values to other types if specified. + * @param message DenseScannParams + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a Search message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Search - */ - public static fromObject(object: { [k: string]: any }): google.cloud.vectorsearch.v1beta.Search; + /** + * Converts this DenseScannParams to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a plain object from a Search message. Also converts values to other types if specified. - * @param message Search - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.vectorsearch.v1beta.Search, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Gets the default type url for DenseScannParams + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } - /** - * Converts this Search to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Properties of a KnnHint. */ + interface IKnnHint { + } + + /** Represents a KnnHint. */ + class KnnHint implements IKnnHint { + + /** + * Constructs a new KnnHint. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vectorsearch.v1beta.SearchHint.IKnnHint); + + /** + * Creates a new KnnHint instance using the specified properties. + * @param [properties] Properties to set + * @returns KnnHint instance + */ + public static create(properties?: google.cloud.vectorsearch.v1beta.SearchHint.IKnnHint): google.cloud.vectorsearch.v1beta.SearchHint.KnnHint; + + /** + * Encodes the specified KnnHint message. Does not implicitly {@link google.cloud.vectorsearch.v1beta.SearchHint.KnnHint.verify|verify} messages. + * @param message KnnHint message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vectorsearch.v1beta.SearchHint.IKnnHint, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified KnnHint message, length delimited. Does not implicitly {@link google.cloud.vectorsearch.v1beta.SearchHint.KnnHint.verify|verify} messages. + * @param message KnnHint message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vectorsearch.v1beta.SearchHint.IKnnHint, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a KnnHint message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns KnnHint + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vectorsearch.v1beta.SearchHint.KnnHint; + + /** + * Decodes a KnnHint message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns KnnHint + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vectorsearch.v1beta.SearchHint.KnnHint; + + /** + * Verifies a KnnHint message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a KnnHint message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns KnnHint + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vectorsearch.v1beta.SearchHint.KnnHint; + + /** + * Creates a plain object from a KnnHint message. Also converts values to other types if specified. + * @param message KnnHint + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vectorsearch.v1beta.SearchHint.KnnHint, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this KnnHint to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for KnnHint + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of a Search. */ + interface ISearch { + + /** Search vectorSearch */ + vectorSearch?: (google.cloud.vectorsearch.v1beta.IVectorSearch|null); + + /** Search semanticSearch */ + semanticSearch?: (google.cloud.vectorsearch.v1beta.ISemanticSearch|null); + + /** Search textSearch */ + textSearch?: (google.cloud.vectorsearch.v1beta.ITextSearch|null); + } + + /** Represents a Search. */ + class Search implements ISearch { + + /** + * Constructs a new Search. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vectorsearch.v1beta.ISearch); + + /** Search vectorSearch. */ + public vectorSearch?: (google.cloud.vectorsearch.v1beta.IVectorSearch|null); + + /** Search semanticSearch. */ + public semanticSearch?: (google.cloud.vectorsearch.v1beta.ISemanticSearch|null); + + /** Search textSearch. */ + public textSearch?: (google.cloud.vectorsearch.v1beta.ITextSearch|null); + + /** Search searchType. */ + public searchType?: ("vectorSearch"|"semanticSearch"|"textSearch"); + + /** + * Creates a new Search instance using the specified properties. + * @param [properties] Properties to set + * @returns Search instance + */ + public static create(properties?: google.cloud.vectorsearch.v1beta.ISearch): google.cloud.vectorsearch.v1beta.Search; + + /** + * Encodes the specified Search message. Does not implicitly {@link google.cloud.vectorsearch.v1beta.Search.verify|verify} messages. + * @param message Search message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vectorsearch.v1beta.ISearch, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Search message, length delimited. Does not implicitly {@link google.cloud.vectorsearch.v1beta.Search.verify|verify} messages. + * @param message Search message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vectorsearch.v1beta.ISearch, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Search message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Search + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vectorsearch.v1beta.Search; + + /** + * Decodes a Search message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Search + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vectorsearch.v1beta.Search; + + /** + * Verifies a Search message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Search message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Search + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vectorsearch.v1beta.Search; + + /** + * Creates a plain object from a Search message. Also converts values to other types if specified. + * @param message Search + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vectorsearch.v1beta.Search, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Search to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; /** * Gets the default type url for Search @@ -9731,9 +9834,6 @@ export namespace google { /** Ranker rrf */ rrf?: (google.cloud.vectorsearch.v1beta.IReciprocalRankFusion|null); - - /** Ranker vertex */ - vertex?: (google.cloud.vectorsearch.v1beta.IVertexRanker|null); } /** Represents a Ranker. */ @@ -9748,11 +9848,8 @@ export namespace google { /** Ranker rrf. */ public rrf?: (google.cloud.vectorsearch.v1beta.IReciprocalRankFusion|null); - /** Ranker vertex. */ - public vertex?: (google.cloud.vectorsearch.v1beta.IVertexRanker|null); - /** Ranker ranker. */ - public ranker?: ("rrf"|"vertex"); + public ranker?: "rrf"; /** * Creates a new Ranker instance using the specified properties. @@ -9929,121 +10026,6 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a VertexRanker. */ - interface IVertexRanker { - - /** VertexRanker query */ - query?: (string|null); - - /** VertexRanker titleTemplate */ - titleTemplate?: (string|null); - - /** VertexRanker contentTemplate */ - contentTemplate?: (string|null); - - /** VertexRanker model */ - model?: (string|null); - } - - /** Represents a VertexRanker. */ - class VertexRanker implements IVertexRanker { - - /** - * Constructs a new VertexRanker. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.vectorsearch.v1beta.IVertexRanker); - - /** VertexRanker query. */ - public query: string; - - /** VertexRanker titleTemplate. */ - public titleTemplate: string; - - /** VertexRanker contentTemplate. */ - public contentTemplate: string; - - /** VertexRanker model. */ - public model: string; - - /** - * Creates a new VertexRanker instance using the specified properties. - * @param [properties] Properties to set - * @returns VertexRanker instance - */ - public static create(properties?: google.cloud.vectorsearch.v1beta.IVertexRanker): google.cloud.vectorsearch.v1beta.VertexRanker; - - /** - * Encodes the specified VertexRanker message. Does not implicitly {@link google.cloud.vectorsearch.v1beta.VertexRanker.verify|verify} messages. - * @param message VertexRanker message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.vectorsearch.v1beta.IVertexRanker, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified VertexRanker message, length delimited. Does not implicitly {@link google.cloud.vectorsearch.v1beta.VertexRanker.verify|verify} messages. - * @param message VertexRanker message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.vectorsearch.v1beta.IVertexRanker, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a VertexRanker message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns VertexRanker - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vectorsearch.v1beta.VertexRanker; - - /** - * Decodes a VertexRanker message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VertexRanker - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vectorsearch.v1beta.VertexRanker; - - /** - * Verifies a VertexRanker message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a VertexRanker message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns VertexRanker - */ - public static fromObject(object: { [k: string]: any }): google.cloud.vectorsearch.v1beta.VertexRanker; - - /** - * Creates a plain object from a VertexRanker message. Also converts values to other types if specified. - * @param message VertexRanker - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.vectorsearch.v1beta.VertexRanker, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this VertexRanker to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for VertexRanker - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - /** Properties of a BatchSearchDataObjectsResponse. */ interface IBatchSearchDataObjectsResponse { @@ -11142,6 +11124,9 @@ export namespace google { /** DeleteDataObjectRequest name */ name?: (string|null); + + /** DeleteDataObjectRequest etag */ + etag?: (string|null); } /** Represents a DeleteDataObjectRequest. */ @@ -11156,6 +11141,9 @@ export namespace google { /** DeleteDataObjectRequest name. */ public name: string; + /** DeleteDataObjectRequest etag. */ + public etag: string; + /** * Creates a new DeleteDataObjectRequest instance using the specified properties. * @param [properties] Properties to set @@ -12694,6 +12682,12 @@ export namespace google { /** Properties of an Index. */ interface IIndex { + /** Index dedicatedInfrastructure */ + dedicatedInfrastructure?: (google.cloud.vectorsearch.v1beta.IDedicatedInfrastructure|null); + + /** Index denseScann */ + denseScann?: (google.cloud.vectorsearch.v1beta.IDenseScannIndex|null); + /** Index name */ name?: (string|null); @@ -12734,6 +12728,12 @@ export namespace google { */ constructor(properties?: google.cloud.vectorsearch.v1beta.IIndex); + /** Index dedicatedInfrastructure. */ + public dedicatedInfrastructure?: (google.cloud.vectorsearch.v1beta.IDedicatedInfrastructure|null); + + /** Index denseScann. */ + public denseScann?: (google.cloud.vectorsearch.v1beta.IDenseScannIndex|null); + /** Index name. */ public name: string; @@ -12764,6 +12764,12 @@ export namespace google { /** Index storeFields. */ public storeFields: string[]; + /** Index infraType. */ + public infraType?: "dedicatedInfrastructure"; + + /** Index indexType. */ + public indexType?: "denseScann"; + /** * Creates a new Index instance using the specified properties. * @param [properties] Properties to set @@ -14358,6 +14364,329 @@ export namespace google { */ public static getTypeUrl(typeUrlPrefix?: string): string; } + + /** Properties of a DedicatedInfrastructure. */ + interface IDedicatedInfrastructure { + + /** DedicatedInfrastructure mode */ + mode?: (google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.Mode|keyof typeof google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.Mode|null); + + /** DedicatedInfrastructure autoscalingSpec */ + autoscalingSpec?: (google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.IAutoscalingSpec|null); + } + + /** Represents a DedicatedInfrastructure. */ + class DedicatedInfrastructure implements IDedicatedInfrastructure { + + /** + * Constructs a new DedicatedInfrastructure. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vectorsearch.v1beta.IDedicatedInfrastructure); + + /** DedicatedInfrastructure mode. */ + public mode?: (google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.Mode|keyof typeof google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.Mode|null); + + /** DedicatedInfrastructure autoscalingSpec. */ + public autoscalingSpec?: (google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.IAutoscalingSpec|null); + + /** + * Creates a new DedicatedInfrastructure instance using the specified properties. + * @param [properties] Properties to set + * @returns DedicatedInfrastructure instance + */ + public static create(properties?: google.cloud.vectorsearch.v1beta.IDedicatedInfrastructure): google.cloud.vectorsearch.v1beta.DedicatedInfrastructure; + + /** + * Encodes the specified DedicatedInfrastructure message. Does not implicitly {@link google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.verify|verify} messages. + * @param message DedicatedInfrastructure message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vectorsearch.v1beta.IDedicatedInfrastructure, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DedicatedInfrastructure message, length delimited. Does not implicitly {@link google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.verify|verify} messages. + * @param message DedicatedInfrastructure message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vectorsearch.v1beta.IDedicatedInfrastructure, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DedicatedInfrastructure message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DedicatedInfrastructure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vectorsearch.v1beta.DedicatedInfrastructure; + + /** + * Decodes a DedicatedInfrastructure message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DedicatedInfrastructure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vectorsearch.v1beta.DedicatedInfrastructure; + + /** + * Verifies a DedicatedInfrastructure message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DedicatedInfrastructure message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DedicatedInfrastructure + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vectorsearch.v1beta.DedicatedInfrastructure; + + /** + * Creates a plain object from a DedicatedInfrastructure message. Also converts values to other types if specified. + * @param message DedicatedInfrastructure + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vectorsearch.v1beta.DedicatedInfrastructure, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DedicatedInfrastructure to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DedicatedInfrastructure + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace DedicatedInfrastructure { + + /** Properties of an AutoscalingSpec. */ + interface IAutoscalingSpec { + + /** AutoscalingSpec minReplicaCount */ + minReplicaCount?: (number|null); + + /** AutoscalingSpec maxReplicaCount */ + maxReplicaCount?: (number|null); + } + + /** Represents an AutoscalingSpec. */ + class AutoscalingSpec implements IAutoscalingSpec { + + /** + * Constructs a new AutoscalingSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.IAutoscalingSpec); + + /** AutoscalingSpec minReplicaCount. */ + public minReplicaCount: number; + + /** AutoscalingSpec maxReplicaCount. */ + public maxReplicaCount: number; + + /** + * Creates a new AutoscalingSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoscalingSpec instance + */ + public static create(properties?: google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.IAutoscalingSpec): google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec; + + /** + * Encodes the specified AutoscalingSpec message. Does not implicitly {@link google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec.verify|verify} messages. + * @param message AutoscalingSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.IAutoscalingSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutoscalingSpec message, length delimited. Does not implicitly {@link google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec.verify|verify} messages. + * @param message AutoscalingSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.IAutoscalingSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutoscalingSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoscalingSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec; + + /** + * Decodes an AutoscalingSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoscalingSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec; + + /** + * Verifies an AutoscalingSpec message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an AutoscalingSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoscalingSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec; + + /** + * Creates a plain object from an AutoscalingSpec message. Also converts values to other types if specified. + * @param message AutoscalingSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutoscalingSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AutoscalingSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Mode enum. */ + enum Mode { + MODE_UNSPECIFIED = 0, + STORAGE_OPTIMIZED = 1, + PERFORMANCE_OPTIMIZED = 2 + } + } + + /** Properties of a DenseScannIndex. */ + interface IDenseScannIndex { + + /** DenseScannIndex featureNormType */ + featureNormType?: (google.cloud.vectorsearch.v1beta.DenseScannIndex.FeatureNormType|keyof typeof google.cloud.vectorsearch.v1beta.DenseScannIndex.FeatureNormType|null); + } + + /** Represents a DenseScannIndex. */ + class DenseScannIndex implements IDenseScannIndex { + + /** + * Constructs a new DenseScannIndex. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.vectorsearch.v1beta.IDenseScannIndex); + + /** DenseScannIndex featureNormType. */ + public featureNormType: (google.cloud.vectorsearch.v1beta.DenseScannIndex.FeatureNormType|keyof typeof google.cloud.vectorsearch.v1beta.DenseScannIndex.FeatureNormType); + + /** + * Creates a new DenseScannIndex instance using the specified properties. + * @param [properties] Properties to set + * @returns DenseScannIndex instance + */ + public static create(properties?: google.cloud.vectorsearch.v1beta.IDenseScannIndex): google.cloud.vectorsearch.v1beta.DenseScannIndex; + + /** + * Encodes the specified DenseScannIndex message. Does not implicitly {@link google.cloud.vectorsearch.v1beta.DenseScannIndex.verify|verify} messages. + * @param message DenseScannIndex message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.vectorsearch.v1beta.IDenseScannIndex, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DenseScannIndex message, length delimited. Does not implicitly {@link google.cloud.vectorsearch.v1beta.DenseScannIndex.verify|verify} messages. + * @param message DenseScannIndex message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.vectorsearch.v1beta.IDenseScannIndex, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DenseScannIndex message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DenseScannIndex + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.vectorsearch.v1beta.DenseScannIndex; + + /** + * Decodes a DenseScannIndex message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DenseScannIndex + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.vectorsearch.v1beta.DenseScannIndex; + + /** + * Verifies a DenseScannIndex message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DenseScannIndex message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DenseScannIndex + */ + public static fromObject(object: { [k: string]: any }): google.cloud.vectorsearch.v1beta.DenseScannIndex; + + /** + * Creates a plain object from a DenseScannIndex message. Also converts values to other types if specified. + * @param message DenseScannIndex + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.vectorsearch.v1beta.DenseScannIndex, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DenseScannIndex to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DenseScannIndex + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace DenseScannIndex { + + /** FeatureNormType enum. */ + enum FeatureNormType { + FEATURE_NORM_TYPE_UNSPECIFIED = 0, + NONE = 1, + UNIT_L2_NORM = 2 + } + } } } } diff --git a/packages/google-cloud-vectorsearch/protos/protos.js b/packages/google-cloud-vectorsearch/protos/protos.js index 4adeba64cc2..4d460b57b74 100644 --- a/packages/google-cloud-vectorsearch/protos/protos.js +++ b/packages/google-cloud-vectorsearch/protos/protos.js @@ -6651,7 +6651,6 @@ * @memberof google.cloud.vectorsearch.v1 * @interface IRanker * @property {google.cloud.vectorsearch.v1.IReciprocalRankFusion|null} [rrf] Ranker rrf - * @property {google.cloud.vectorsearch.v1.IVertexRanker|null} [vertex] Ranker vertex */ /** @@ -6677,25 +6676,17 @@ */ Ranker.prototype.rrf = null; - /** - * Ranker vertex. - * @member {google.cloud.vectorsearch.v1.IVertexRanker|null|undefined} vertex - * @memberof google.cloud.vectorsearch.v1.Ranker - * @instance - */ - Ranker.prototype.vertex = null; - // OneOf field names bound to virtual getters and setters var $oneOfFields; /** * Ranker ranker. - * @member {"rrf"|"vertex"|undefined} ranker + * @member {"rrf"|undefined} ranker * @memberof google.cloud.vectorsearch.v1.Ranker * @instance */ Object.defineProperty(Ranker.prototype, "ranker", { - get: $util.oneOfGetter($oneOfFields = ["rrf", "vertex"]), + get: $util.oneOfGetter($oneOfFields = ["rrf"]), set: $util.oneOfSetter($oneOfFields) }); @@ -6725,8 +6716,6 @@ writer = $Writer.create(); if (message.rrf != null && Object.hasOwnProperty.call(message, "rrf")) $root.google.cloud.vectorsearch.v1.ReciprocalRankFusion.encode(message.rrf, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.vertex != null && Object.hasOwnProperty.call(message, "vertex")) - $root.google.cloud.vectorsearch.v1.VertexRanker.encode(message.vertex, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; @@ -6767,10 +6756,6 @@ message.rrf = $root.google.cloud.vectorsearch.v1.ReciprocalRankFusion.decode(reader, reader.uint32()); break; } - case 2: { - message.vertex = $root.google.cloud.vectorsearch.v1.VertexRanker.decode(reader, reader.uint32()); - break; - } default: reader.skipType(tag & 7); break; @@ -6815,16 +6800,6 @@ return "rrf." + error; } } - if (message.vertex != null && message.hasOwnProperty("vertex")) { - if (properties.ranker === 1) - return "ranker: multiple values"; - properties.ranker = 1; - { - var error = $root.google.cloud.vectorsearch.v1.VertexRanker.verify(message.vertex); - if (error) - return "vertex." + error; - } - } return null; }; @@ -6845,11 +6820,6 @@ throw TypeError(".google.cloud.vectorsearch.v1.Ranker.rrf: object expected"); message.rrf = $root.google.cloud.vectorsearch.v1.ReciprocalRankFusion.fromObject(object.rrf); } - if (object.vertex != null) { - if (typeof object.vertex !== "object") - throw TypeError(".google.cloud.vectorsearch.v1.Ranker.vertex: object expected"); - message.vertex = $root.google.cloud.vectorsearch.v1.VertexRanker.fromObject(object.vertex); - } return message; }; @@ -6871,11 +6841,6 @@ if (options.oneofs) object.ranker = "rrf"; } - if (message.vertex != null && message.hasOwnProperty("vertex")) { - object.vertex = $root.google.cloud.vectorsearch.v1.VertexRanker.toObject(message.vertex, options); - if (options.oneofs) - object.ranker = "vertex"; - } return object; }; @@ -7137,281 +7102,6 @@ return ReciprocalRankFusion; })(); - v1.VertexRanker = (function() { - - /** - * Properties of a VertexRanker. - * @memberof google.cloud.vectorsearch.v1 - * @interface IVertexRanker - * @property {string|null} [query] VertexRanker query - * @property {string|null} [titleTemplate] VertexRanker titleTemplate - * @property {string|null} [contentTemplate] VertexRanker contentTemplate - * @property {string|null} [model] VertexRanker model - */ - - /** - * Constructs a new VertexRanker. - * @memberof google.cloud.vectorsearch.v1 - * @classdesc Represents a VertexRanker. - * @implements IVertexRanker - * @constructor - * @param {google.cloud.vectorsearch.v1.IVertexRanker=} [properties] Properties to set - */ - function VertexRanker(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * VertexRanker query. - * @member {string} query - * @memberof google.cloud.vectorsearch.v1.VertexRanker - * @instance - */ - VertexRanker.prototype.query = ""; - - /** - * VertexRanker titleTemplate. - * @member {string} titleTemplate - * @memberof google.cloud.vectorsearch.v1.VertexRanker - * @instance - */ - VertexRanker.prototype.titleTemplate = ""; - - /** - * VertexRanker contentTemplate. - * @member {string} contentTemplate - * @memberof google.cloud.vectorsearch.v1.VertexRanker - * @instance - */ - VertexRanker.prototype.contentTemplate = ""; - - /** - * VertexRanker model. - * @member {string} model - * @memberof google.cloud.vectorsearch.v1.VertexRanker - * @instance - */ - VertexRanker.prototype.model = ""; - - /** - * Creates a new VertexRanker instance using the specified properties. - * @function create - * @memberof google.cloud.vectorsearch.v1.VertexRanker - * @static - * @param {google.cloud.vectorsearch.v1.IVertexRanker=} [properties] Properties to set - * @returns {google.cloud.vectorsearch.v1.VertexRanker} VertexRanker instance - */ - VertexRanker.create = function create(properties) { - return new VertexRanker(properties); - }; - - /** - * Encodes the specified VertexRanker message. Does not implicitly {@link google.cloud.vectorsearch.v1.VertexRanker.verify|verify} messages. - * @function encode - * @memberof google.cloud.vectorsearch.v1.VertexRanker - * @static - * @param {google.cloud.vectorsearch.v1.IVertexRanker} message VertexRanker message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - VertexRanker.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.query != null && Object.hasOwnProperty.call(message, "query")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.query); - if (message.titleTemplate != null && Object.hasOwnProperty.call(message, "titleTemplate")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.titleTemplate); - if (message.contentTemplate != null && Object.hasOwnProperty.call(message, "contentTemplate")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.contentTemplate); - if (message.model != null && Object.hasOwnProperty.call(message, "model")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.model); - return writer; - }; - - /** - * Encodes the specified VertexRanker message, length delimited. Does not implicitly {@link google.cloud.vectorsearch.v1.VertexRanker.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.vectorsearch.v1.VertexRanker - * @static - * @param {google.cloud.vectorsearch.v1.IVertexRanker} message VertexRanker message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - VertexRanker.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a VertexRanker message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.vectorsearch.v1.VertexRanker - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vectorsearch.v1.VertexRanker} VertexRanker - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - VertexRanker.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vectorsearch.v1.VertexRanker(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 1: { - message.query = reader.string(); - break; - } - case 2: { - message.titleTemplate = reader.string(); - break; - } - case 3: { - message.contentTemplate = reader.string(); - break; - } - case 4: { - message.model = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a VertexRanker message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.vectorsearch.v1.VertexRanker - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vectorsearch.v1.VertexRanker} VertexRanker - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - VertexRanker.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a VertexRanker message. - * @function verify - * @memberof google.cloud.vectorsearch.v1.VertexRanker - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - VertexRanker.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.query != null && message.hasOwnProperty("query")) - if (!$util.isString(message.query)) - return "query: string expected"; - if (message.titleTemplate != null && message.hasOwnProperty("titleTemplate")) - if (!$util.isString(message.titleTemplate)) - return "titleTemplate: string expected"; - if (message.contentTemplate != null && message.hasOwnProperty("contentTemplate")) - if (!$util.isString(message.contentTemplate)) - return "contentTemplate: string expected"; - if (message.model != null && message.hasOwnProperty("model")) - if (!$util.isString(message.model)) - return "model: string expected"; - return null; - }; - - /** - * Creates a VertexRanker message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.vectorsearch.v1.VertexRanker - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.vectorsearch.v1.VertexRanker} VertexRanker - */ - VertexRanker.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vectorsearch.v1.VertexRanker) - return object; - var message = new $root.google.cloud.vectorsearch.v1.VertexRanker(); - if (object.query != null) - message.query = String(object.query); - if (object.titleTemplate != null) - message.titleTemplate = String(object.titleTemplate); - if (object.contentTemplate != null) - message.contentTemplate = String(object.contentTemplate); - if (object.model != null) - message.model = String(object.model); - return message; - }; - - /** - * Creates a plain object from a VertexRanker message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.vectorsearch.v1.VertexRanker - * @static - * @param {google.cloud.vectorsearch.v1.VertexRanker} message VertexRanker - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - VertexRanker.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.query = ""; - object.titleTemplate = ""; - object.contentTemplate = ""; - object.model = ""; - } - if (message.query != null && message.hasOwnProperty("query")) - object.query = message.query; - if (message.titleTemplate != null && message.hasOwnProperty("titleTemplate")) - object.titleTemplate = message.titleTemplate; - if (message.contentTemplate != null && message.hasOwnProperty("contentTemplate")) - object.contentTemplate = message.contentTemplate; - if (message.model != null && message.hasOwnProperty("model")) - object.model = message.model; - return object; - }; - - /** - * Converts this VertexRanker to JSON. - * @function toJSON - * @memberof google.cloud.vectorsearch.v1.VertexRanker - * @instance - * @returns {Object.} JSON object - */ - VertexRanker.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for VertexRanker - * @function getTypeUrl - * @memberof google.cloud.vectorsearch.v1.VertexRanker - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - VertexRanker.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.vectorsearch.v1.VertexRanker"; - }; - - return VertexRanker; - })(); - v1.BatchSearchDataObjectsResponse = (function() { /** @@ -17439,6 +17129,7 @@ * @property {google.protobuf.ITimestamp|null} [updateTime] DataObject updateTime * @property {google.protobuf.IStruct|null} [data] DataObject data * @property {Object.|null} [vectors] DataObject vectors + * @property {string|null} [etag] DataObject etag */ /** @@ -17505,6 +17196,14 @@ */ DataObject.prototype.vectors = $util.emptyObject; + /** + * DataObject etag. + * @member {string} etag + * @memberof google.cloud.vectorsearch.v1beta.DataObject + * @instance + */ + DataObject.prototype.etag = ""; + /** * Creates a new DataObject instance using the specified properties. * @function create @@ -17544,6 +17243,8 @@ writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); $root.google.cloud.vectorsearch.v1beta.Vector.encode(message.vectors[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); } + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.etag); return writer; }; @@ -17623,6 +17324,10 @@ message.vectors[key] = value; break; } + case 8: { + message.etag = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -17689,6 +17394,9 @@ return "vectors." + error; } } + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; return null; }; @@ -17733,6 +17441,8 @@ message.vectors[keys[i]] = $root.google.cloud.vectorsearch.v1beta.Vector.fromObject(object.vectors[keys[i]]); } } + if (object.etag != null) + message.etag = String(object.etag); return message; }; @@ -17757,6 +17467,7 @@ object.createTime = null; object.updateTime = null; object.data = null; + object.etag = ""; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -17774,6 +17485,8 @@ for (var j = 0; j < keys2.length; ++j) object.vectors[keys2[j]] = $root.google.cloud.vectorsearch.v1beta.Vector.toObject(message.vectors[keys2[j]], options); } + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; return object; }; @@ -19113,6 +18826,8 @@ * @interface ISearchHint * @property {google.cloud.vectorsearch.v1beta.SearchHint.IIndexHint|null} [useIndex] SearchHint useIndex * @property {boolean|null} [useKnn] SearchHint useKnn + * @property {google.cloud.vectorsearch.v1beta.SearchHint.IKnnHint|null} [knnHint] SearchHint knnHint + * @property {google.cloud.vectorsearch.v1beta.SearchHint.IIndexHint|null} [indexHint] SearchHint indexHint */ /** @@ -19146,17 +18861,33 @@ */ SearchHint.prototype.useKnn = null; + /** + * SearchHint knnHint. + * @member {google.cloud.vectorsearch.v1beta.SearchHint.IKnnHint|null|undefined} knnHint + * @memberof google.cloud.vectorsearch.v1beta.SearchHint + * @instance + */ + SearchHint.prototype.knnHint = null; + + /** + * SearchHint indexHint. + * @member {google.cloud.vectorsearch.v1beta.SearchHint.IIndexHint|null|undefined} indexHint + * @memberof google.cloud.vectorsearch.v1beta.SearchHint + * @instance + */ + SearchHint.prototype.indexHint = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; /** * SearchHint indexType. - * @member {"useIndex"|"useKnn"|undefined} indexType + * @member {"useIndex"|"useKnn"|"knnHint"|"indexHint"|undefined} indexType * @memberof google.cloud.vectorsearch.v1beta.SearchHint * @instance */ Object.defineProperty(SearchHint.prototype, "indexType", { - get: $util.oneOfGetter($oneOfFields = ["useIndex", "useKnn"]), + get: $util.oneOfGetter($oneOfFields = ["useIndex", "useKnn", "knnHint", "indexHint"]), set: $util.oneOfSetter($oneOfFields) }); @@ -19188,6 +18919,10 @@ $root.google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.encode(message.useIndex, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.useKnn != null && Object.hasOwnProperty.call(message, "useKnn")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.useKnn); + if (message.knnHint != null && Object.hasOwnProperty.call(message, "knnHint")) + $root.google.cloud.vectorsearch.v1beta.SearchHint.KnnHint.encode(message.knnHint, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.indexHint != null && Object.hasOwnProperty.call(message, "indexHint")) + $root.google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.encode(message.indexHint, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; @@ -19232,6 +18967,14 @@ message.useKnn = reader.bool(); break; } + case 3: { + message.knnHint = $root.google.cloud.vectorsearch.v1beta.SearchHint.KnnHint.decode(reader, reader.uint32()); + break; + } + case 4: { + message.indexHint = $root.google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -19283,6 +19026,26 @@ if (typeof message.useKnn !== "boolean") return "useKnn: boolean expected"; } + if (message.knnHint != null && message.hasOwnProperty("knnHint")) { + if (properties.indexType === 1) + return "indexType: multiple values"; + properties.indexType = 1; + { + var error = $root.google.cloud.vectorsearch.v1beta.SearchHint.KnnHint.verify(message.knnHint); + if (error) + return "knnHint." + error; + } + } + if (message.indexHint != null && message.hasOwnProperty("indexHint")) { + if (properties.indexType === 1) + return "indexType: multiple values"; + properties.indexType = 1; + { + var error = $root.google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.verify(message.indexHint); + if (error) + return "indexHint." + error; + } + } return null; }; @@ -19305,6 +19068,16 @@ } if (object.useKnn != null) message.useKnn = Boolean(object.useKnn); + if (object.knnHint != null) { + if (typeof object.knnHint !== "object") + throw TypeError(".google.cloud.vectorsearch.v1beta.SearchHint.knnHint: object expected"); + message.knnHint = $root.google.cloud.vectorsearch.v1beta.SearchHint.KnnHint.fromObject(object.knnHint); + } + if (object.indexHint != null) { + if (typeof object.indexHint !== "object") + throw TypeError(".google.cloud.vectorsearch.v1beta.SearchHint.indexHint: object expected"); + message.indexHint = $root.google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.fromObject(object.indexHint); + } return message; }; @@ -19331,6 +19104,16 @@ if (options.oneofs) object.indexType = "useKnn"; } + if (message.knnHint != null && message.hasOwnProperty("knnHint")) { + object.knnHint = $root.google.cloud.vectorsearch.v1beta.SearchHint.KnnHint.toObject(message.knnHint, options); + if (options.oneofs) + object.indexType = "knnHint"; + } + if (message.indexHint != null && message.hasOwnProperty("indexHint")) { + object.indexHint = $root.google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.toObject(message.indexHint, options); + if (options.oneofs) + object.indexType = "indexHint"; + } return object; }; @@ -19366,6 +19149,7 @@ * Properties of an IndexHint. * @memberof google.cloud.vectorsearch.v1beta.SearchHint * @interface IIndexHint + * @property {google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.IDenseScannParams|null} [denseScannParams] IndexHint denseScannParams * @property {string|null} [name] IndexHint name */ @@ -19385,12 +19169,34 @@ } /** - * IndexHint name. - * @member {string} name + * IndexHint denseScannParams. + * @member {google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.IDenseScannParams|null|undefined} denseScannParams * @memberof google.cloud.vectorsearch.v1beta.SearchHint.IndexHint * @instance */ - IndexHint.prototype.name = ""; + IndexHint.prototype.denseScannParams = null; + + /** + * IndexHint name. + * @member {string} name + * @memberof google.cloud.vectorsearch.v1beta.SearchHint.IndexHint + * @instance + */ + IndexHint.prototype.name = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * IndexHint params. + * @member {"denseScannParams"|undefined} params + * @memberof google.cloud.vectorsearch.v1beta.SearchHint.IndexHint + * @instance + */ + Object.defineProperty(IndexHint.prototype, "params", { + get: $util.oneOfGetter($oneOfFields = ["denseScannParams"]), + set: $util.oneOfSetter($oneOfFields) + }); /** * Creates a new IndexHint instance using the specified properties. @@ -19418,6 +19224,8 @@ writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.denseScannParams != null && Object.hasOwnProperty.call(message, "denseScannParams")) + $root.google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams.encode(message.denseScannParams, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; @@ -19454,6 +19262,10 @@ if (tag === error) break; switch (tag >>> 3) { + case 2: { + message.denseScannParams = $root.google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams.decode(reader, reader.uint32()); + break; + } case 1: { message.name = reader.string(); break; @@ -19493,6 +19305,15 @@ IndexHint.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + var properties = {}; + if (message.denseScannParams != null && message.hasOwnProperty("denseScannParams")) { + properties.params = 1; + { + var error = $root.google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams.verify(message.denseScannParams); + if (error) + return "denseScannParams." + error; + } + } if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; @@ -19511,6 +19332,11 @@ if (object instanceof $root.google.cloud.vectorsearch.v1beta.SearchHint.IndexHint) return object; var message = new $root.google.cloud.vectorsearch.v1beta.SearchHint.IndexHint(); + if (object.denseScannParams != null) { + if (typeof object.denseScannParams !== "object") + throw TypeError(".google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.denseScannParams: object expected"); + message.denseScannParams = $root.google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams.fromObject(object.denseScannParams); + } if (object.name != null) message.name = String(object.name); return message; @@ -19533,6 +19359,11 @@ object.name = ""; if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; + if (message.denseScannParams != null && message.hasOwnProperty("denseScannParams")) { + object.denseScannParams = $root.google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams.toObject(message.denseScannParams, options); + if (options.oneofs) + object.params = "denseScannParams"; + } return object; }; @@ -19562,106 +19393,512 @@ return typeUrlPrefix + "/google.cloud.vectorsearch.v1beta.SearchHint.IndexHint"; }; - return IndexHint; - })(); + IndexHint.DenseScannParams = (function() { - return SearchHint; - })(); + /** + * Properties of a DenseScannParams. + * @memberof google.cloud.vectorsearch.v1beta.SearchHint.IndexHint + * @interface IDenseScannParams + * @property {number|null} [searchLeavesPct] DenseScannParams searchLeavesPct + * @property {number|null} [initialCandidateCount] DenseScannParams initialCandidateCount + */ - v1beta.Search = (function() { + /** + * Constructs a new DenseScannParams. + * @memberof google.cloud.vectorsearch.v1beta.SearchHint.IndexHint + * @classdesc Represents a DenseScannParams. + * @implements IDenseScannParams + * @constructor + * @param {google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.IDenseScannParams=} [properties] Properties to set + */ + function DenseScannParams(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Properties of a Search. - * @memberof google.cloud.vectorsearch.v1beta - * @interface ISearch - * @property {google.cloud.vectorsearch.v1beta.IVectorSearch|null} [vectorSearch] Search vectorSearch - * @property {google.cloud.vectorsearch.v1beta.ISemanticSearch|null} [semanticSearch] Search semanticSearch - * @property {google.cloud.vectorsearch.v1beta.ITextSearch|null} [textSearch] Search textSearch - */ + /** + * DenseScannParams searchLeavesPct. + * @member {number} searchLeavesPct + * @memberof google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams + * @instance + */ + DenseScannParams.prototype.searchLeavesPct = 0; - /** - * Constructs a new Search. - * @memberof google.cloud.vectorsearch.v1beta - * @classdesc Represents a Search. - * @implements ISearch - * @constructor - * @param {google.cloud.vectorsearch.v1beta.ISearch=} [properties] Properties to set - */ - function Search(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * DenseScannParams initialCandidateCount. + * @member {number} initialCandidateCount + * @memberof google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams + * @instance + */ + DenseScannParams.prototype.initialCandidateCount = 0; - /** - * Search vectorSearch. - * @member {google.cloud.vectorsearch.v1beta.IVectorSearch|null|undefined} vectorSearch - * @memberof google.cloud.vectorsearch.v1beta.Search - * @instance - */ - Search.prototype.vectorSearch = null; + /** + * Creates a new DenseScannParams instance using the specified properties. + * @function create + * @memberof google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams + * @static + * @param {google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.IDenseScannParams=} [properties] Properties to set + * @returns {google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams} DenseScannParams instance + */ + DenseScannParams.create = function create(properties) { + return new DenseScannParams(properties); + }; - /** - * Search semanticSearch. - * @member {google.cloud.vectorsearch.v1beta.ISemanticSearch|null|undefined} semanticSearch - * @memberof google.cloud.vectorsearch.v1beta.Search - * @instance - */ - Search.prototype.semanticSearch = null; + /** + * Encodes the specified DenseScannParams message. Does not implicitly {@link google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams.verify|verify} messages. + * @function encode + * @memberof google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams + * @static + * @param {google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.IDenseScannParams} message DenseScannParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DenseScannParams.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.searchLeavesPct != null && Object.hasOwnProperty.call(message, "searchLeavesPct")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.searchLeavesPct); + if (message.initialCandidateCount != null && Object.hasOwnProperty.call(message, "initialCandidateCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.initialCandidateCount); + return writer; + }; - /** - * Search textSearch. - * @member {google.cloud.vectorsearch.v1beta.ITextSearch|null|undefined} textSearch - * @memberof google.cloud.vectorsearch.v1beta.Search - * @instance - */ - Search.prototype.textSearch = null; + /** + * Encodes the specified DenseScannParams message, length delimited. Does not implicitly {@link google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams + * @static + * @param {google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.IDenseScannParams} message DenseScannParams message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DenseScannParams.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Decodes a DenseScannParams message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams} DenseScannParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DenseScannParams.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.searchLeavesPct = reader.int32(); + break; + } + case 2: { + message.initialCandidateCount = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Search searchType. - * @member {"vectorSearch"|"semanticSearch"|"textSearch"|undefined} searchType - * @memberof google.cloud.vectorsearch.v1beta.Search - * @instance - */ - Object.defineProperty(Search.prototype, "searchType", { - get: $util.oneOfGetter($oneOfFields = ["vectorSearch", "semanticSearch", "textSearch"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * Decodes a DenseScannParams message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams} DenseScannParams + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DenseScannParams.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a new Search instance using the specified properties. - * @function create - * @memberof google.cloud.vectorsearch.v1beta.Search - * @static - * @param {google.cloud.vectorsearch.v1beta.ISearch=} [properties] Properties to set - * @returns {google.cloud.vectorsearch.v1beta.Search} Search instance - */ - Search.create = function create(properties) { - return new Search(properties); - }; + /** + * Verifies a DenseScannParams message. + * @function verify + * @memberof google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DenseScannParams.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.searchLeavesPct != null && message.hasOwnProperty("searchLeavesPct")) + if (!$util.isInteger(message.searchLeavesPct)) + return "searchLeavesPct: integer expected"; + if (message.initialCandidateCount != null && message.hasOwnProperty("initialCandidateCount")) + if (!$util.isInteger(message.initialCandidateCount)) + return "initialCandidateCount: integer expected"; + return null; + }; - /** - * Encodes the specified Search message. Does not implicitly {@link google.cloud.vectorsearch.v1beta.Search.verify|verify} messages. - * @function encode - * @memberof google.cloud.vectorsearch.v1beta.Search - * @static - * @param {google.cloud.vectorsearch.v1beta.ISearch} message Search message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Search.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.vectorSearch != null && Object.hasOwnProperty.call(message, "vectorSearch")) - $root.google.cloud.vectorsearch.v1beta.VectorSearch.encode(message.vectorSearch, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.semanticSearch != null && Object.hasOwnProperty.call(message, "semanticSearch")) - $root.google.cloud.vectorsearch.v1beta.SemanticSearch.encode(message.semanticSearch, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.textSearch != null && Object.hasOwnProperty.call(message, "textSearch")) - $root.google.cloud.vectorsearch.v1beta.TextSearch.encode(message.textSearch, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + /** + * Creates a DenseScannParams message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams} DenseScannParams + */ + DenseScannParams.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams) + return object; + var message = new $root.google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams(); + if (object.searchLeavesPct != null) + message.searchLeavesPct = object.searchLeavesPct | 0; + if (object.initialCandidateCount != null) + message.initialCandidateCount = object.initialCandidateCount | 0; + return message; + }; + + /** + * Creates a plain object from a DenseScannParams message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams + * @static + * @param {google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams} message DenseScannParams + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DenseScannParams.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.searchLeavesPct = 0; + object.initialCandidateCount = 0; + } + if (message.searchLeavesPct != null && message.hasOwnProperty("searchLeavesPct")) + object.searchLeavesPct = message.searchLeavesPct; + if (message.initialCandidateCount != null && message.hasOwnProperty("initialCandidateCount")) + object.initialCandidateCount = message.initialCandidateCount; + return object; + }; + + /** + * Converts this DenseScannParams to JSON. + * @function toJSON + * @memberof google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams + * @instance + * @returns {Object.} JSON object + */ + DenseScannParams.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DenseScannParams + * @function getTypeUrl + * @memberof google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DenseScannParams.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vectorsearch.v1beta.SearchHint.IndexHint.DenseScannParams"; + }; + + return DenseScannParams; + })(); + + return IndexHint; + })(); + + SearchHint.KnnHint = (function() { + + /** + * Properties of a KnnHint. + * @memberof google.cloud.vectorsearch.v1beta.SearchHint + * @interface IKnnHint + */ + + /** + * Constructs a new KnnHint. + * @memberof google.cloud.vectorsearch.v1beta.SearchHint + * @classdesc Represents a KnnHint. + * @implements IKnnHint + * @constructor + * @param {google.cloud.vectorsearch.v1beta.SearchHint.IKnnHint=} [properties] Properties to set + */ + function KnnHint(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new KnnHint instance using the specified properties. + * @function create + * @memberof google.cloud.vectorsearch.v1beta.SearchHint.KnnHint + * @static + * @param {google.cloud.vectorsearch.v1beta.SearchHint.IKnnHint=} [properties] Properties to set + * @returns {google.cloud.vectorsearch.v1beta.SearchHint.KnnHint} KnnHint instance + */ + KnnHint.create = function create(properties) { + return new KnnHint(properties); + }; + + /** + * Encodes the specified KnnHint message. Does not implicitly {@link google.cloud.vectorsearch.v1beta.SearchHint.KnnHint.verify|verify} messages. + * @function encode + * @memberof google.cloud.vectorsearch.v1beta.SearchHint.KnnHint + * @static + * @param {google.cloud.vectorsearch.v1beta.SearchHint.IKnnHint} message KnnHint message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + KnnHint.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified KnnHint message, length delimited. Does not implicitly {@link google.cloud.vectorsearch.v1beta.SearchHint.KnnHint.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vectorsearch.v1beta.SearchHint.KnnHint + * @static + * @param {google.cloud.vectorsearch.v1beta.SearchHint.IKnnHint} message KnnHint message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + KnnHint.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a KnnHint message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vectorsearch.v1beta.SearchHint.KnnHint + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vectorsearch.v1beta.SearchHint.KnnHint} KnnHint + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + KnnHint.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vectorsearch.v1beta.SearchHint.KnnHint(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a KnnHint message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vectorsearch.v1beta.SearchHint.KnnHint + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vectorsearch.v1beta.SearchHint.KnnHint} KnnHint + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + KnnHint.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a KnnHint message. + * @function verify + * @memberof google.cloud.vectorsearch.v1beta.SearchHint.KnnHint + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + KnnHint.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates a KnnHint message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vectorsearch.v1beta.SearchHint.KnnHint + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vectorsearch.v1beta.SearchHint.KnnHint} KnnHint + */ + KnnHint.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vectorsearch.v1beta.SearchHint.KnnHint) + return object; + return new $root.google.cloud.vectorsearch.v1beta.SearchHint.KnnHint(); + }; + + /** + * Creates a plain object from a KnnHint message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vectorsearch.v1beta.SearchHint.KnnHint + * @static + * @param {google.cloud.vectorsearch.v1beta.SearchHint.KnnHint} message KnnHint + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + KnnHint.toObject = function toObject() { + return {}; + }; + + /** + * Converts this KnnHint to JSON. + * @function toJSON + * @memberof google.cloud.vectorsearch.v1beta.SearchHint.KnnHint + * @instance + * @returns {Object.} JSON object + */ + KnnHint.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for KnnHint + * @function getTypeUrl + * @memberof google.cloud.vectorsearch.v1beta.SearchHint.KnnHint + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + KnnHint.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vectorsearch.v1beta.SearchHint.KnnHint"; + }; + + return KnnHint; + })(); + + return SearchHint; + })(); + + v1beta.Search = (function() { + + /** + * Properties of a Search. + * @memberof google.cloud.vectorsearch.v1beta + * @interface ISearch + * @property {google.cloud.vectorsearch.v1beta.IVectorSearch|null} [vectorSearch] Search vectorSearch + * @property {google.cloud.vectorsearch.v1beta.ISemanticSearch|null} [semanticSearch] Search semanticSearch + * @property {google.cloud.vectorsearch.v1beta.ITextSearch|null} [textSearch] Search textSearch + */ + + /** + * Constructs a new Search. + * @memberof google.cloud.vectorsearch.v1beta + * @classdesc Represents a Search. + * @implements ISearch + * @constructor + * @param {google.cloud.vectorsearch.v1beta.ISearch=} [properties] Properties to set + */ + function Search(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Search vectorSearch. + * @member {google.cloud.vectorsearch.v1beta.IVectorSearch|null|undefined} vectorSearch + * @memberof google.cloud.vectorsearch.v1beta.Search + * @instance + */ + Search.prototype.vectorSearch = null; + + /** + * Search semanticSearch. + * @member {google.cloud.vectorsearch.v1beta.ISemanticSearch|null|undefined} semanticSearch + * @memberof google.cloud.vectorsearch.v1beta.Search + * @instance + */ + Search.prototype.semanticSearch = null; + + /** + * Search textSearch. + * @member {google.cloud.vectorsearch.v1beta.ITextSearch|null|undefined} textSearch + * @memberof google.cloud.vectorsearch.v1beta.Search + * @instance + */ + Search.prototype.textSearch = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Search searchType. + * @member {"vectorSearch"|"semanticSearch"|"textSearch"|undefined} searchType + * @memberof google.cloud.vectorsearch.v1beta.Search + * @instance + */ + Object.defineProperty(Search.prototype, "searchType", { + get: $util.oneOfGetter($oneOfFields = ["vectorSearch", "semanticSearch", "textSearch"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Search instance using the specified properties. + * @function create + * @memberof google.cloud.vectorsearch.v1beta.Search + * @static + * @param {google.cloud.vectorsearch.v1beta.ISearch=} [properties] Properties to set + * @returns {google.cloud.vectorsearch.v1beta.Search} Search instance + */ + Search.create = function create(properties) { + return new Search(properties); + }; + + /** + * Encodes the specified Search message. Does not implicitly {@link google.cloud.vectorsearch.v1beta.Search.verify|verify} messages. + * @function encode + * @memberof google.cloud.vectorsearch.v1beta.Search + * @static + * @param {google.cloud.vectorsearch.v1beta.ISearch} message Search message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Search.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.vectorSearch != null && Object.hasOwnProperty.call(message, "vectorSearch")) + $root.google.cloud.vectorsearch.v1beta.VectorSearch.encode(message.vectorSearch, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.semanticSearch != null && Object.hasOwnProperty.call(message, "semanticSearch")) + $root.google.cloud.vectorsearch.v1beta.SemanticSearch.encode(message.semanticSearch, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.textSearch != null && Object.hasOwnProperty.call(message, "textSearch")) + $root.google.cloud.vectorsearch.v1beta.TextSearch.encode(message.textSearch, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -24053,7 +24290,6 @@ * @memberof google.cloud.vectorsearch.v1beta * @interface IRanker * @property {google.cloud.vectorsearch.v1beta.IReciprocalRankFusion|null} [rrf] Ranker rrf - * @property {google.cloud.vectorsearch.v1beta.IVertexRanker|null} [vertex] Ranker vertex */ /** @@ -24079,25 +24315,17 @@ */ Ranker.prototype.rrf = null; - /** - * Ranker vertex. - * @member {google.cloud.vectorsearch.v1beta.IVertexRanker|null|undefined} vertex - * @memberof google.cloud.vectorsearch.v1beta.Ranker - * @instance - */ - Ranker.prototype.vertex = null; - // OneOf field names bound to virtual getters and setters var $oneOfFields; /** * Ranker ranker. - * @member {"rrf"|"vertex"|undefined} ranker + * @member {"rrf"|undefined} ranker * @memberof google.cloud.vectorsearch.v1beta.Ranker * @instance */ Object.defineProperty(Ranker.prototype, "ranker", { - get: $util.oneOfGetter($oneOfFields = ["rrf", "vertex"]), + get: $util.oneOfGetter($oneOfFields = ["rrf"]), set: $util.oneOfSetter($oneOfFields) }); @@ -24127,8 +24355,6 @@ writer = $Writer.create(); if (message.rrf != null && Object.hasOwnProperty.call(message, "rrf")) $root.google.cloud.vectorsearch.v1beta.ReciprocalRankFusion.encode(message.rrf, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.vertex != null && Object.hasOwnProperty.call(message, "vertex")) - $root.google.cloud.vectorsearch.v1beta.VertexRanker.encode(message.vertex, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; @@ -24169,10 +24395,6 @@ message.rrf = $root.google.cloud.vectorsearch.v1beta.ReciprocalRankFusion.decode(reader, reader.uint32()); break; } - case 2: { - message.vertex = $root.google.cloud.vectorsearch.v1beta.VertexRanker.decode(reader, reader.uint32()); - break; - } default: reader.skipType(tag & 7); break; @@ -24217,16 +24439,6 @@ return "rrf." + error; } } - if (message.vertex != null && message.hasOwnProperty("vertex")) { - if (properties.ranker === 1) - return "ranker: multiple values"; - properties.ranker = 1; - { - var error = $root.google.cloud.vectorsearch.v1beta.VertexRanker.verify(message.vertex); - if (error) - return "vertex." + error; - } - } return null; }; @@ -24247,11 +24459,6 @@ throw TypeError(".google.cloud.vectorsearch.v1beta.Ranker.rrf: object expected"); message.rrf = $root.google.cloud.vectorsearch.v1beta.ReciprocalRankFusion.fromObject(object.rrf); } - if (object.vertex != null) { - if (typeof object.vertex !== "object") - throw TypeError(".google.cloud.vectorsearch.v1beta.Ranker.vertex: object expected"); - message.vertex = $root.google.cloud.vectorsearch.v1beta.VertexRanker.fromObject(object.vertex); - } return message; }; @@ -24273,11 +24480,6 @@ if (options.oneofs) object.ranker = "rrf"; } - if (message.vertex != null && message.hasOwnProperty("vertex")) { - object.vertex = $root.google.cloud.vectorsearch.v1beta.VertexRanker.toObject(message.vertex, options); - if (options.oneofs) - object.ranker = "vertex"; - } return object; }; @@ -24539,281 +24741,6 @@ return ReciprocalRankFusion; })(); - v1beta.VertexRanker = (function() { - - /** - * Properties of a VertexRanker. - * @memberof google.cloud.vectorsearch.v1beta - * @interface IVertexRanker - * @property {string|null} [query] VertexRanker query - * @property {string|null} [titleTemplate] VertexRanker titleTemplate - * @property {string|null} [contentTemplate] VertexRanker contentTemplate - * @property {string|null} [model] VertexRanker model - */ - - /** - * Constructs a new VertexRanker. - * @memberof google.cloud.vectorsearch.v1beta - * @classdesc Represents a VertexRanker. - * @implements IVertexRanker - * @constructor - * @param {google.cloud.vectorsearch.v1beta.IVertexRanker=} [properties] Properties to set - */ - function VertexRanker(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * VertexRanker query. - * @member {string} query - * @memberof google.cloud.vectorsearch.v1beta.VertexRanker - * @instance - */ - VertexRanker.prototype.query = ""; - - /** - * VertexRanker titleTemplate. - * @member {string} titleTemplate - * @memberof google.cloud.vectorsearch.v1beta.VertexRanker - * @instance - */ - VertexRanker.prototype.titleTemplate = ""; - - /** - * VertexRanker contentTemplate. - * @member {string} contentTemplate - * @memberof google.cloud.vectorsearch.v1beta.VertexRanker - * @instance - */ - VertexRanker.prototype.contentTemplate = ""; - - /** - * VertexRanker model. - * @member {string} model - * @memberof google.cloud.vectorsearch.v1beta.VertexRanker - * @instance - */ - VertexRanker.prototype.model = ""; - - /** - * Creates a new VertexRanker instance using the specified properties. - * @function create - * @memberof google.cloud.vectorsearch.v1beta.VertexRanker - * @static - * @param {google.cloud.vectorsearch.v1beta.IVertexRanker=} [properties] Properties to set - * @returns {google.cloud.vectorsearch.v1beta.VertexRanker} VertexRanker instance - */ - VertexRanker.create = function create(properties) { - return new VertexRanker(properties); - }; - - /** - * Encodes the specified VertexRanker message. Does not implicitly {@link google.cloud.vectorsearch.v1beta.VertexRanker.verify|verify} messages. - * @function encode - * @memberof google.cloud.vectorsearch.v1beta.VertexRanker - * @static - * @param {google.cloud.vectorsearch.v1beta.IVertexRanker} message VertexRanker message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - VertexRanker.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.query != null && Object.hasOwnProperty.call(message, "query")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.query); - if (message.titleTemplate != null && Object.hasOwnProperty.call(message, "titleTemplate")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.titleTemplate); - if (message.contentTemplate != null && Object.hasOwnProperty.call(message, "contentTemplate")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.contentTemplate); - if (message.model != null && Object.hasOwnProperty.call(message, "model")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.model); - return writer; - }; - - /** - * Encodes the specified VertexRanker message, length delimited. Does not implicitly {@link google.cloud.vectorsearch.v1beta.VertexRanker.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.vectorsearch.v1beta.VertexRanker - * @static - * @param {google.cloud.vectorsearch.v1beta.IVertexRanker} message VertexRanker message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - VertexRanker.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a VertexRanker message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.vectorsearch.v1beta.VertexRanker - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vectorsearch.v1beta.VertexRanker} VertexRanker - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - VertexRanker.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vectorsearch.v1beta.VertexRanker(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 1: { - message.query = reader.string(); - break; - } - case 2: { - message.titleTemplate = reader.string(); - break; - } - case 3: { - message.contentTemplate = reader.string(); - break; - } - case 4: { - message.model = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a VertexRanker message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.vectorsearch.v1beta.VertexRanker - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vectorsearch.v1beta.VertexRanker} VertexRanker - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - VertexRanker.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a VertexRanker message. - * @function verify - * @memberof google.cloud.vectorsearch.v1beta.VertexRanker - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - VertexRanker.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.query != null && message.hasOwnProperty("query")) - if (!$util.isString(message.query)) - return "query: string expected"; - if (message.titleTemplate != null && message.hasOwnProperty("titleTemplate")) - if (!$util.isString(message.titleTemplate)) - return "titleTemplate: string expected"; - if (message.contentTemplate != null && message.hasOwnProperty("contentTemplate")) - if (!$util.isString(message.contentTemplate)) - return "contentTemplate: string expected"; - if (message.model != null && message.hasOwnProperty("model")) - if (!$util.isString(message.model)) - return "model: string expected"; - return null; - }; - - /** - * Creates a VertexRanker message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.vectorsearch.v1beta.VertexRanker - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.vectorsearch.v1beta.VertexRanker} VertexRanker - */ - VertexRanker.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vectorsearch.v1beta.VertexRanker) - return object; - var message = new $root.google.cloud.vectorsearch.v1beta.VertexRanker(); - if (object.query != null) - message.query = String(object.query); - if (object.titleTemplate != null) - message.titleTemplate = String(object.titleTemplate); - if (object.contentTemplate != null) - message.contentTemplate = String(object.contentTemplate); - if (object.model != null) - message.model = String(object.model); - return message; - }; - - /** - * Creates a plain object from a VertexRanker message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.vectorsearch.v1beta.VertexRanker - * @static - * @param {google.cloud.vectorsearch.v1beta.VertexRanker} message VertexRanker - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - VertexRanker.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.query = ""; - object.titleTemplate = ""; - object.contentTemplate = ""; - object.model = ""; - } - if (message.query != null && message.hasOwnProperty("query")) - object.query = message.query; - if (message.titleTemplate != null && message.hasOwnProperty("titleTemplate")) - object.titleTemplate = message.titleTemplate; - if (message.contentTemplate != null && message.hasOwnProperty("contentTemplate")) - object.contentTemplate = message.contentTemplate; - if (message.model != null && message.hasOwnProperty("model")) - object.model = message.model; - return object; - }; - - /** - * Converts this VertexRanker to JSON. - * @function toJSON - * @memberof google.cloud.vectorsearch.v1beta.VertexRanker - * @instance - * @returns {Object.} JSON object - */ - VertexRanker.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for VertexRanker - * @function getTypeUrl - * @memberof google.cloud.vectorsearch.v1beta.VertexRanker - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - VertexRanker.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.vectorsearch.v1beta.VertexRanker"; - }; - - return VertexRanker; - })(); - v1beta.BatchSearchDataObjectsResponse = (function() { /** @@ -27251,6 +27178,7 @@ * @memberof google.cloud.vectorsearch.v1beta * @interface IDeleteDataObjectRequest * @property {string|null} [name] DeleteDataObjectRequest name + * @property {string|null} [etag] DeleteDataObjectRequest etag */ /** @@ -27276,6 +27204,14 @@ */ DeleteDataObjectRequest.prototype.name = ""; + /** + * DeleteDataObjectRequest etag. + * @member {string} etag + * @memberof google.cloud.vectorsearch.v1beta.DeleteDataObjectRequest + * @instance + */ + DeleteDataObjectRequest.prototype.etag = ""; + /** * Creates a new DeleteDataObjectRequest instance using the specified properties. * @function create @@ -27302,6 +27238,8 @@ writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.etag); return writer; }; @@ -27342,6 +27280,10 @@ message.name = reader.string(); break; } + case 2: { + message.etag = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -27380,6 +27322,9 @@ if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; return null; }; @@ -27397,6 +27342,8 @@ var message = new $root.google.cloud.vectorsearch.v1beta.DeleteDataObjectRequest(); if (object.name != null) message.name = String(object.name); + if (object.etag != null) + message.etag = String(object.etag); return message; }; @@ -27413,10 +27360,14 @@ if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { object.name = ""; + object.etag = ""; + } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; return object; }; @@ -30830,6 +30781,8 @@ * Properties of an Index. * @memberof google.cloud.vectorsearch.v1beta * @interface IIndex + * @property {google.cloud.vectorsearch.v1beta.IDedicatedInfrastructure|null} [dedicatedInfrastructure] Index dedicatedInfrastructure + * @property {google.cloud.vectorsearch.v1beta.IDenseScannIndex|null} [denseScann] Index denseScann * @property {string|null} [name] Index name * @property {string|null} [displayName] Index displayName * @property {string|null} [description] Index description @@ -30860,6 +30813,22 @@ this[keys[i]] = properties[keys[i]]; } + /** + * Index dedicatedInfrastructure. + * @member {google.cloud.vectorsearch.v1beta.IDedicatedInfrastructure|null|undefined} dedicatedInfrastructure + * @memberof google.cloud.vectorsearch.v1beta.Index + * @instance + */ + Index.prototype.dedicatedInfrastructure = null; + + /** + * Index denseScann. + * @member {google.cloud.vectorsearch.v1beta.IDenseScannIndex|null|undefined} denseScann + * @memberof google.cloud.vectorsearch.v1beta.Index + * @instance + */ + Index.prototype.denseScann = null; + /** * Index name. * @member {string} name @@ -30930,15 +30899,40 @@ * @memberof google.cloud.vectorsearch.v1beta.Index * @instance */ - Index.prototype.filterFields = $util.emptyArray; + Index.prototype.filterFields = $util.emptyArray; + + /** + * Index storeFields. + * @member {Array.} storeFields + * @memberof google.cloud.vectorsearch.v1beta.Index + * @instance + */ + Index.prototype.storeFields = $util.emptyArray; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Index infraType. + * @member {"dedicatedInfrastructure"|undefined} infraType + * @memberof google.cloud.vectorsearch.v1beta.Index + * @instance + */ + Object.defineProperty(Index.prototype, "infraType", { + get: $util.oneOfGetter($oneOfFields = ["dedicatedInfrastructure"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Index storeFields. - * @member {Array.} storeFields + * Index indexType. + * @member {"denseScann"|undefined} indexType * @memberof google.cloud.vectorsearch.v1beta.Index * @instance */ - Index.prototype.storeFields = $util.emptyArray; + Object.defineProperty(Index.prototype, "indexType", { + get: $util.oneOfGetter($oneOfFields = ["denseScann"]), + set: $util.oneOfSetter($oneOfFields) + }); /** * Creates a new Index instance using the specified properties. @@ -30987,6 +30981,10 @@ if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.dedicatedInfrastructure != null && Object.hasOwnProperty.call(message, "dedicatedInfrastructure")) + $root.google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.encode(message.dedicatedInfrastructure, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.denseScann != null && Object.hasOwnProperty.call(message, "denseScann")) + $root.google.cloud.vectorsearch.v1beta.DenseScannIndex.encode(message.denseScann, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); return writer; }; @@ -31023,6 +31021,14 @@ if (tag === error) break; switch (tag >>> 3) { + case 11: { + message.dedicatedInfrastructure = $root.google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.decode(reader, reader.uint32()); + break; + } + case 12: { + message.denseScann = $root.google.cloud.vectorsearch.v1beta.DenseScannIndex.decode(reader, reader.uint32()); + break; + } case 1: { message.name = reader.string(); break; @@ -31121,6 +31127,23 @@ Index.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + var properties = {}; + if (message.dedicatedInfrastructure != null && message.hasOwnProperty("dedicatedInfrastructure")) { + properties.infraType = 1; + { + var error = $root.google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.verify(message.dedicatedInfrastructure); + if (error) + return "dedicatedInfrastructure." + error; + } + } + if (message.denseScann != null && message.hasOwnProperty("denseScann")) { + properties.indexType = 1; + { + var error = $root.google.cloud.vectorsearch.v1beta.DenseScannIndex.verify(message.denseScann); + if (error) + return "denseScann." + error; + } + } if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; @@ -31189,6 +31212,16 @@ if (object instanceof $root.google.cloud.vectorsearch.v1beta.Index) return object; var message = new $root.google.cloud.vectorsearch.v1beta.Index(); + if (object.dedicatedInfrastructure != null) { + if (typeof object.dedicatedInfrastructure !== "object") + throw TypeError(".google.cloud.vectorsearch.v1beta.Index.dedicatedInfrastructure: object expected"); + message.dedicatedInfrastructure = $root.google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.fromObject(object.dedicatedInfrastructure); + } + if (object.denseScann != null) { + if (typeof object.denseScann !== "object") + throw TypeError(".google.cloud.vectorsearch.v1beta.Index.denseScann: object expected"); + message.denseScann = $root.google.cloud.vectorsearch.v1beta.DenseScannIndex.fromObject(object.denseScann); + } if (object.name != null) message.name = String(object.name); if (object.displayName != null) @@ -31309,6 +31342,16 @@ for (var j = 0; j < keys2.length; ++j) object.labels[keys2[j]] = message.labels[keys2[j]]; } + if (message.dedicatedInfrastructure != null && message.hasOwnProperty("dedicatedInfrastructure")) { + object.dedicatedInfrastructure = $root.google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.toObject(message.dedicatedInfrastructure, options); + if (options.oneofs) + object.infraType = "dedicatedInfrastructure"; + } + if (message.denseScann != null && message.hasOwnProperty("denseScann")) { + object.denseScann = $root.google.cloud.vectorsearch.v1beta.DenseScannIndex.toObject(message.denseScann, options); + if (options.oneofs) + object.indexType = "denseScann"; + } return object; }; @@ -32395,27 +32438,238 @@ return typeUrlPrefix + "/google.cloud.vectorsearch.v1beta.ListIndexesResponse"; }; - return ListIndexesResponse; + return ListIndexesResponse; + })(); + + v1beta.GetIndexRequest = (function() { + + /** + * Properties of a GetIndexRequest. + * @memberof google.cloud.vectorsearch.v1beta + * @interface IGetIndexRequest + * @property {string|null} [name] GetIndexRequest name + */ + + /** + * Constructs a new GetIndexRequest. + * @memberof google.cloud.vectorsearch.v1beta + * @classdesc Represents a GetIndexRequest. + * @implements IGetIndexRequest + * @constructor + * @param {google.cloud.vectorsearch.v1beta.IGetIndexRequest=} [properties] Properties to set + */ + function GetIndexRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetIndexRequest name. + * @member {string} name + * @memberof google.cloud.vectorsearch.v1beta.GetIndexRequest + * @instance + */ + GetIndexRequest.prototype.name = ""; + + /** + * Creates a new GetIndexRequest instance using the specified properties. + * @function create + * @memberof google.cloud.vectorsearch.v1beta.GetIndexRequest + * @static + * @param {google.cloud.vectorsearch.v1beta.IGetIndexRequest=} [properties] Properties to set + * @returns {google.cloud.vectorsearch.v1beta.GetIndexRequest} GetIndexRequest instance + */ + GetIndexRequest.create = function create(properties) { + return new GetIndexRequest(properties); + }; + + /** + * Encodes the specified GetIndexRequest message. Does not implicitly {@link google.cloud.vectorsearch.v1beta.GetIndexRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.vectorsearch.v1beta.GetIndexRequest + * @static + * @param {google.cloud.vectorsearch.v1beta.IGetIndexRequest} message GetIndexRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetIndexRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; + + /** + * Encodes the specified GetIndexRequest message, length delimited. Does not implicitly {@link google.cloud.vectorsearch.v1beta.GetIndexRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vectorsearch.v1beta.GetIndexRequest + * @static + * @param {google.cloud.vectorsearch.v1beta.IGetIndexRequest} message GetIndexRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetIndexRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vectorsearch.v1beta.GetIndexRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vectorsearch.v1beta.GetIndexRequest} GetIndexRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetIndexRequest.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vectorsearch.v1beta.GetIndexRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetIndexRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vectorsearch.v1beta.GetIndexRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vectorsearch.v1beta.GetIndexRequest} GetIndexRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetIndexRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetIndexRequest message. + * @function verify + * @memberof google.cloud.vectorsearch.v1beta.GetIndexRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetIndexRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a GetIndexRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vectorsearch.v1beta.GetIndexRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vectorsearch.v1beta.GetIndexRequest} GetIndexRequest + */ + GetIndexRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vectorsearch.v1beta.GetIndexRequest) + return object; + var message = new $root.google.cloud.vectorsearch.v1beta.GetIndexRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetIndexRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vectorsearch.v1beta.GetIndexRequest + * @static + * @param {google.cloud.vectorsearch.v1beta.GetIndexRequest} message GetIndexRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetIndexRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this GetIndexRequest to JSON. + * @function toJSON + * @memberof google.cloud.vectorsearch.v1beta.GetIndexRequest + * @instance + * @returns {Object.} JSON object + */ + GetIndexRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetIndexRequest + * @function getTypeUrl + * @memberof google.cloud.vectorsearch.v1beta.GetIndexRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetIndexRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vectorsearch.v1beta.GetIndexRequest"; + }; + + return GetIndexRequest; })(); - v1beta.GetIndexRequest = (function() { + v1beta.OperationMetadata = (function() { /** - * Properties of a GetIndexRequest. + * Properties of an OperationMetadata. * @memberof google.cloud.vectorsearch.v1beta - * @interface IGetIndexRequest - * @property {string|null} [name] GetIndexRequest name + * @interface IOperationMetadata + * @property {google.protobuf.ITimestamp|null} [createTime] OperationMetadata createTime + * @property {google.protobuf.ITimestamp|null} [endTime] OperationMetadata endTime + * @property {string|null} [target] OperationMetadata target + * @property {string|null} [verb] OperationMetadata verb + * @property {string|null} [statusMessage] OperationMetadata statusMessage + * @property {boolean|null} [requestedCancellation] OperationMetadata requestedCancellation + * @property {string|null} [apiVersion] OperationMetadata apiVersion */ /** - * Constructs a new GetIndexRequest. + * Constructs a new OperationMetadata. * @memberof google.cloud.vectorsearch.v1beta - * @classdesc Represents a GetIndexRequest. - * @implements IGetIndexRequest + * @classdesc Represents an OperationMetadata. + * @implements IOperationMetadata * @constructor - * @param {google.cloud.vectorsearch.v1beta.IGetIndexRequest=} [properties] Properties to set + * @param {google.cloud.vectorsearch.v1beta.IOperationMetadata=} [properties] Properties to set */ - function GetIndexRequest(properties) { + function OperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -32423,77 +32677,161 @@ } /** - * GetIndexRequest name. - * @member {string} name - * @memberof google.cloud.vectorsearch.v1beta.GetIndexRequest + * OperationMetadata createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.vectorsearch.v1beta.OperationMetadata * @instance */ - GetIndexRequest.prototype.name = ""; + OperationMetadata.prototype.createTime = null; /** - * Creates a new GetIndexRequest instance using the specified properties. + * OperationMetadata endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.vectorsearch.v1beta.OperationMetadata + * @instance + */ + OperationMetadata.prototype.endTime = null; + + /** + * OperationMetadata target. + * @member {string} target + * @memberof google.cloud.vectorsearch.v1beta.OperationMetadata + * @instance + */ + OperationMetadata.prototype.target = ""; + + /** + * OperationMetadata verb. + * @member {string} verb + * @memberof google.cloud.vectorsearch.v1beta.OperationMetadata + * @instance + */ + OperationMetadata.prototype.verb = ""; + + /** + * OperationMetadata statusMessage. + * @member {string} statusMessage + * @memberof google.cloud.vectorsearch.v1beta.OperationMetadata + * @instance + */ + OperationMetadata.prototype.statusMessage = ""; + + /** + * OperationMetadata requestedCancellation. + * @member {boolean} requestedCancellation + * @memberof google.cloud.vectorsearch.v1beta.OperationMetadata + * @instance + */ + OperationMetadata.prototype.requestedCancellation = false; + + /** + * OperationMetadata apiVersion. + * @member {string} apiVersion + * @memberof google.cloud.vectorsearch.v1beta.OperationMetadata + * @instance + */ + OperationMetadata.prototype.apiVersion = ""; + + /** + * Creates a new OperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.vectorsearch.v1beta.GetIndexRequest + * @memberof google.cloud.vectorsearch.v1beta.OperationMetadata * @static - * @param {google.cloud.vectorsearch.v1beta.IGetIndexRequest=} [properties] Properties to set - * @returns {google.cloud.vectorsearch.v1beta.GetIndexRequest} GetIndexRequest instance + * @param {google.cloud.vectorsearch.v1beta.IOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.vectorsearch.v1beta.OperationMetadata} OperationMetadata instance */ - GetIndexRequest.create = function create(properties) { - return new GetIndexRequest(properties); + OperationMetadata.create = function create(properties) { + return new OperationMetadata(properties); }; /** - * Encodes the specified GetIndexRequest message. Does not implicitly {@link google.cloud.vectorsearch.v1beta.GetIndexRequest.verify|verify} messages. + * Encodes the specified OperationMetadata message. Does not implicitly {@link google.cloud.vectorsearch.v1beta.OperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.vectorsearch.v1beta.GetIndexRequest + * @memberof google.cloud.vectorsearch.v1beta.OperationMetadata * @static - * @param {google.cloud.vectorsearch.v1beta.IGetIndexRequest} message GetIndexRequest message or plain object to encode + * @param {google.cloud.vectorsearch.v1beta.IOperationMetadata} message OperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetIndexRequest.encode = function encode(message, writer) { + OperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.target != null && Object.hasOwnProperty.call(message, "target")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.target); + if (message.verb != null && Object.hasOwnProperty.call(message, "verb")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.verb); + if (message.statusMessage != null && Object.hasOwnProperty.call(message, "statusMessage")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.statusMessage); + if (message.requestedCancellation != null && Object.hasOwnProperty.call(message, "requestedCancellation")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.requestedCancellation); + if (message.apiVersion != null && Object.hasOwnProperty.call(message, "apiVersion")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.apiVersion); return writer; }; /** - * Encodes the specified GetIndexRequest message, length delimited. Does not implicitly {@link google.cloud.vectorsearch.v1beta.GetIndexRequest.verify|verify} messages. + * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.cloud.vectorsearch.v1beta.OperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vectorsearch.v1beta.GetIndexRequest + * @memberof google.cloud.vectorsearch.v1beta.OperationMetadata * @static - * @param {google.cloud.vectorsearch.v1beta.IGetIndexRequest} message GetIndexRequest message or plain object to encode + * @param {google.cloud.vectorsearch.v1beta.IOperationMetadata} message OperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { + OperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetIndexRequest message from the specified reader or buffer. + * Decodes an OperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vectorsearch.v1beta.GetIndexRequest + * @memberof google.cloud.vectorsearch.v1beta.OperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vectorsearch.v1beta.GetIndexRequest} GetIndexRequest + * @returns {google.cloud.vectorsearch.v1beta.OperationMetadata} OperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetIndexRequest.decode = function decode(reader, length, error) { + OperationMetadata.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vectorsearch.v1beta.GetIndexRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vectorsearch.v1beta.OperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 2: { + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 3: { + message.target = reader.string(); + break; + } + case 4: { + message.verb = reader.string(); + break; + } + case 5: { + message.statusMessage = reader.string(); + break; + } + case 6: { + message.requestedCancellation = reader.bool(); + break; + } + case 7: { + message.apiVersion = reader.string(); break; } default: @@ -32505,128 +32843,182 @@ }; /** - * Decodes a GetIndexRequest message from the specified reader or buffer, length delimited. + * Decodes an OperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vectorsearch.v1beta.GetIndexRequest + * @memberof google.cloud.vectorsearch.v1beta.OperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vectorsearch.v1beta.GetIndexRequest} GetIndexRequest + * @returns {google.cloud.vectorsearch.v1beta.OperationMetadata} OperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetIndexRequest.decodeDelimited = function decodeDelimited(reader) { + OperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetIndexRequest message. + * Verifies an OperationMetadata message. * @function verify - * @memberof google.cloud.vectorsearch.v1beta.GetIndexRequest + * @memberof google.cloud.vectorsearch.v1beta.OperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetIndexRequest.verify = function verify(message) { + OperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; + } + if (message.target != null && message.hasOwnProperty("target")) + if (!$util.isString(message.target)) + return "target: string expected"; + if (message.verb != null && message.hasOwnProperty("verb")) + if (!$util.isString(message.verb)) + return "verb: string expected"; + if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) + if (!$util.isString(message.statusMessage)) + return "statusMessage: string expected"; + if (message.requestedCancellation != null && message.hasOwnProperty("requestedCancellation")) + if (typeof message.requestedCancellation !== "boolean") + return "requestedCancellation: boolean expected"; + if (message.apiVersion != null && message.hasOwnProperty("apiVersion")) + if (!$util.isString(message.apiVersion)) + return "apiVersion: string expected"; return null; }; /** - * Creates a GetIndexRequest message from a plain object. Also converts values to their respective internal types. + * Creates an OperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vectorsearch.v1beta.GetIndexRequest + * @memberof google.cloud.vectorsearch.v1beta.OperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.vectorsearch.v1beta.GetIndexRequest} GetIndexRequest + * @returns {google.cloud.vectorsearch.v1beta.OperationMetadata} OperationMetadata */ - GetIndexRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vectorsearch.v1beta.GetIndexRequest) + OperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vectorsearch.v1beta.OperationMetadata) return object; - var message = new $root.google.cloud.vectorsearch.v1beta.GetIndexRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.vectorsearch.v1beta.OperationMetadata(); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.vectorsearch.v1beta.OperationMetadata.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.cloud.vectorsearch.v1beta.OperationMetadata.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + } + if (object.target != null) + message.target = String(object.target); + if (object.verb != null) + message.verb = String(object.verb); + if (object.statusMessage != null) + message.statusMessage = String(object.statusMessage); + if (object.requestedCancellation != null) + message.requestedCancellation = Boolean(object.requestedCancellation); + if (object.apiVersion != null) + message.apiVersion = String(object.apiVersion); return message; }; /** - * Creates a plain object from a GetIndexRequest message. Also converts values to other types if specified. + * Creates a plain object from an OperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vectorsearch.v1beta.GetIndexRequest + * @memberof google.cloud.vectorsearch.v1beta.OperationMetadata * @static - * @param {google.cloud.vectorsearch.v1beta.GetIndexRequest} message GetIndexRequest + * @param {google.cloud.vectorsearch.v1beta.OperationMetadata} message OperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetIndexRequest.toObject = function toObject(message, options) { + OperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) { + object.createTime = null; + object.endTime = null; + object.target = ""; + object.verb = ""; + object.statusMessage = ""; + object.requestedCancellation = false; + object.apiVersion = ""; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); + if (message.target != null && message.hasOwnProperty("target")) + object.target = message.target; + if (message.verb != null && message.hasOwnProperty("verb")) + object.verb = message.verb; + if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) + object.statusMessage = message.statusMessage; + if (message.requestedCancellation != null && message.hasOwnProperty("requestedCancellation")) + object.requestedCancellation = message.requestedCancellation; + if (message.apiVersion != null && message.hasOwnProperty("apiVersion")) + object.apiVersion = message.apiVersion; return object; }; /** - * Converts this GetIndexRequest to JSON. + * Converts this OperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.vectorsearch.v1beta.GetIndexRequest + * @memberof google.cloud.vectorsearch.v1beta.OperationMetadata * @instance * @returns {Object.} JSON object */ - GetIndexRequest.prototype.toJSON = function toJSON() { + OperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetIndexRequest + * Gets the default type url for OperationMetadata * @function getTypeUrl - * @memberof google.cloud.vectorsearch.v1beta.GetIndexRequest + * @memberof google.cloud.vectorsearch.v1beta.OperationMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetIndexRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + OperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vectorsearch.v1beta.GetIndexRequest"; + return typeUrlPrefix + "/google.cloud.vectorsearch.v1beta.OperationMetadata"; }; - return GetIndexRequest; + return OperationMetadata; })(); - v1beta.OperationMetadata = (function() { + v1beta.ImportDataObjectsRequest = (function() { /** - * Properties of an OperationMetadata. + * Properties of an ImportDataObjectsRequest. * @memberof google.cloud.vectorsearch.v1beta - * @interface IOperationMetadata - * @property {google.protobuf.ITimestamp|null} [createTime] OperationMetadata createTime - * @property {google.protobuf.ITimestamp|null} [endTime] OperationMetadata endTime - * @property {string|null} [target] OperationMetadata target - * @property {string|null} [verb] OperationMetadata verb - * @property {string|null} [statusMessage] OperationMetadata statusMessage - * @property {boolean|null} [requestedCancellation] OperationMetadata requestedCancellation - * @property {string|null} [apiVersion] OperationMetadata apiVersion + * @interface IImportDataObjectsRequest + * @property {google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.IGcsImportConfig|null} [gcsImport] ImportDataObjectsRequest gcsImport + * @property {string|null} [name] ImportDataObjectsRequest name */ /** - * Constructs a new OperationMetadata. + * Constructs a new ImportDataObjectsRequest. * @memberof google.cloud.vectorsearch.v1beta - * @classdesc Represents an OperationMetadata. - * @implements IOperationMetadata + * @classdesc Represents an ImportDataObjectsRequest. + * @implements IImportDataObjectsRequest * @constructor - * @param {google.cloud.vectorsearch.v1beta.IOperationMetadata=} [properties] Properties to set + * @param {google.cloud.vectorsearch.v1beta.IImportDataObjectsRequest=} [properties] Properties to set */ - function OperationMetadata(properties) { + function ImportDataObjectsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -32634,161 +33026,105 @@ } /** - * OperationMetadata createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.vectorsearch.v1beta.OperationMetadata - * @instance - */ - OperationMetadata.prototype.createTime = null; - - /** - * OperationMetadata endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.cloud.vectorsearch.v1beta.OperationMetadata - * @instance - */ - OperationMetadata.prototype.endTime = null; - - /** - * OperationMetadata target. - * @member {string} target - * @memberof google.cloud.vectorsearch.v1beta.OperationMetadata - * @instance - */ - OperationMetadata.prototype.target = ""; - - /** - * OperationMetadata verb. - * @member {string} verb - * @memberof google.cloud.vectorsearch.v1beta.OperationMetadata + * ImportDataObjectsRequest gcsImport. + * @member {google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.IGcsImportConfig|null|undefined} gcsImport + * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest * @instance */ - OperationMetadata.prototype.verb = ""; + ImportDataObjectsRequest.prototype.gcsImport = null; /** - * OperationMetadata statusMessage. - * @member {string} statusMessage - * @memberof google.cloud.vectorsearch.v1beta.OperationMetadata + * ImportDataObjectsRequest name. + * @member {string} name + * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest * @instance */ - OperationMetadata.prototype.statusMessage = ""; + ImportDataObjectsRequest.prototype.name = ""; - /** - * OperationMetadata requestedCancellation. - * @member {boolean} requestedCancellation - * @memberof google.cloud.vectorsearch.v1beta.OperationMetadata - * @instance - */ - OperationMetadata.prototype.requestedCancellation = false; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * OperationMetadata apiVersion. - * @member {string} apiVersion - * @memberof google.cloud.vectorsearch.v1beta.OperationMetadata + * ImportDataObjectsRequest config. + * @member {"gcsImport"|undefined} config + * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest * @instance */ - OperationMetadata.prototype.apiVersion = ""; + Object.defineProperty(ImportDataObjectsRequest.prototype, "config", { + get: $util.oneOfGetter($oneOfFields = ["gcsImport"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new OperationMetadata instance using the specified properties. + * Creates a new ImportDataObjectsRequest instance using the specified properties. * @function create - * @memberof google.cloud.vectorsearch.v1beta.OperationMetadata + * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest * @static - * @param {google.cloud.vectorsearch.v1beta.IOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.vectorsearch.v1beta.OperationMetadata} OperationMetadata instance + * @param {google.cloud.vectorsearch.v1beta.IImportDataObjectsRequest=} [properties] Properties to set + * @returns {google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest} ImportDataObjectsRequest instance */ - OperationMetadata.create = function create(properties) { - return new OperationMetadata(properties); + ImportDataObjectsRequest.create = function create(properties) { + return new ImportDataObjectsRequest(properties); }; /** - * Encodes the specified OperationMetadata message. Does not implicitly {@link google.cloud.vectorsearch.v1beta.OperationMetadata.verify|verify} messages. + * Encodes the specified ImportDataObjectsRequest message. Does not implicitly {@link google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vectorsearch.v1beta.OperationMetadata + * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest * @static - * @param {google.cloud.vectorsearch.v1beta.IOperationMetadata} message OperationMetadata message or plain object to encode + * @param {google.cloud.vectorsearch.v1beta.IImportDataObjectsRequest} message ImportDataObjectsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - OperationMetadata.encode = function encode(message, writer) { + ImportDataObjectsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) - $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.target != null && Object.hasOwnProperty.call(message, "target")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.target); - if (message.verb != null && Object.hasOwnProperty.call(message, "verb")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.verb); - if (message.statusMessage != null && Object.hasOwnProperty.call(message, "statusMessage")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.statusMessage); - if (message.requestedCancellation != null && Object.hasOwnProperty.call(message, "requestedCancellation")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.requestedCancellation); - if (message.apiVersion != null && Object.hasOwnProperty.call(message, "apiVersion")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.apiVersion); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.gcsImport != null && Object.hasOwnProperty.call(message, "gcsImport")) + $root.google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfig.encode(message.gcsImport, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified OperationMetadata message, length delimited. Does not implicitly {@link google.cloud.vectorsearch.v1beta.OperationMetadata.verify|verify} messages. + * Encodes the specified ImportDataObjectsRequest message, length delimited. Does not implicitly {@link google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vectorsearch.v1beta.OperationMetadata + * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest * @static - * @param {google.cloud.vectorsearch.v1beta.IOperationMetadata} message OperationMetadata message or plain object to encode + * @param {google.cloud.vectorsearch.v1beta.IImportDataObjectsRequest} message ImportDataObjectsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - OperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + ImportDataObjectsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an OperationMetadata message from the specified reader or buffer. + * Decodes an ImportDataObjectsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vectorsearch.v1beta.OperationMetadata + * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vectorsearch.v1beta.OperationMetadata} OperationMetadata + * @returns {google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest} ImportDataObjectsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - OperationMetadata.decode = function decode(reader, length, error) { + ImportDataObjectsRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vectorsearch.v1beta.OperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { - case 1: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } case 2: { - message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 3: { - message.target = reader.string(); - break; - } - case 4: { - message.verb = reader.string(); - break; - } - case 5: { - message.statusMessage = reader.string(); - break; - } - case 6: { - message.requestedCancellation = reader.bool(); + message.gcsImport = $root.google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfig.decode(reader, reader.uint32()); break; } - case 7: { - message.apiVersion = reader.string(); + case 1: { + message.name = reader.string(); break; } default: @@ -32800,182 +33136,396 @@ }; /** - * Decodes an OperationMetadata message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.vectorsearch.v1beta.OperationMetadata + * Decodes an ImportDataObjectsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest} ImportDataObjectsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ImportDataObjectsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ImportDataObjectsRequest message. + * @function verify + * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ImportDataObjectsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.gcsImport != null && message.hasOwnProperty("gcsImport")) { + properties.config = 1; + { + var error = $root.google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfig.verify(message.gcsImport); + if (error) + return "gcsImport." + error; + } + } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates an ImportDataObjectsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest} ImportDataObjectsRequest + */ + ImportDataObjectsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest) + return object; + var message = new $root.google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest(); + if (object.gcsImport != null) { + if (typeof object.gcsImport !== "object") + throw TypeError(".google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.gcsImport: object expected"); + message.gcsImport = $root.google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfig.fromObject(object.gcsImport); + } + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from an ImportDataObjectsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vectorsearch.v1beta.OperationMetadata} OperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * @param {google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest} message ImportDataObjectsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - OperationMetadata.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); + ImportDataObjectsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.gcsImport != null && message.hasOwnProperty("gcsImport")) { + object.gcsImport = $root.google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfig.toObject(message.gcsImport, options); + if (options.oneofs) + object.config = "gcsImport"; + } + return object; }; /** - * Verifies an OperationMetadata message. - * @function verify - * @memberof google.cloud.vectorsearch.v1beta.OperationMetadata + * Converts this ImportDataObjectsRequest to JSON. + * @function toJSON + * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest + * @instance + * @returns {Object.} JSON object + */ + ImportDataObjectsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ImportDataObjectsRequest + * @function getTypeUrl + * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ - OperationMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.endTime != null && message.hasOwnProperty("endTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.endTime); - if (error) - return "endTime." + error; + ImportDataObjectsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; } - if (message.target != null && message.hasOwnProperty("target")) - if (!$util.isString(message.target)) - return "target: string expected"; - if (message.verb != null && message.hasOwnProperty("verb")) - if (!$util.isString(message.verb)) - return "verb: string expected"; - if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) - if (!$util.isString(message.statusMessage)) - return "statusMessage: string expected"; - if (message.requestedCancellation != null && message.hasOwnProperty("requestedCancellation")) - if (typeof message.requestedCancellation !== "boolean") - return "requestedCancellation: boolean expected"; - if (message.apiVersion != null && message.hasOwnProperty("apiVersion")) - if (!$util.isString(message.apiVersion)) - return "apiVersion: string expected"; - return null; + return typeUrlPrefix + "/google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest"; }; - /** - * Creates an OperationMetadata message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.vectorsearch.v1beta.OperationMetadata - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.vectorsearch.v1beta.OperationMetadata} OperationMetadata - */ - OperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vectorsearch.v1beta.OperationMetadata) + ImportDataObjectsRequest.GcsImportConfig = (function() { + + /** + * Properties of a GcsImportConfig. + * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest + * @interface IGcsImportConfig + * @property {string|null} [contentsUri] GcsImportConfig contentsUri + * @property {string|null} [errorUri] GcsImportConfig errorUri + * @property {string|null} [outputUri] GcsImportConfig outputUri + */ + + /** + * Constructs a new GcsImportConfig. + * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest + * @classdesc Represents a GcsImportConfig. + * @implements IGcsImportConfig + * @constructor + * @param {google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.IGcsImportConfig=} [properties] Properties to set + */ + function GcsImportConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GcsImportConfig contentsUri. + * @member {string} contentsUri + * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfig + * @instance + */ + GcsImportConfig.prototype.contentsUri = ""; + + /** + * GcsImportConfig errorUri. + * @member {string} errorUri + * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfig + * @instance + */ + GcsImportConfig.prototype.errorUri = ""; + + /** + * GcsImportConfig outputUri. + * @member {string} outputUri + * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfig + * @instance + */ + GcsImportConfig.prototype.outputUri = ""; + + /** + * Creates a new GcsImportConfig instance using the specified properties. + * @function create + * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfig + * @static + * @param {google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.IGcsImportConfig=} [properties] Properties to set + * @returns {google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfig} GcsImportConfig instance + */ + GcsImportConfig.create = function create(properties) { + return new GcsImportConfig(properties); + }; + + /** + * Encodes the specified GcsImportConfig message. Does not implicitly {@link google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfig + * @static + * @param {google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.IGcsImportConfig} message GcsImportConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GcsImportConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.contentsUri != null && Object.hasOwnProperty.call(message, "contentsUri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.contentsUri); + if (message.errorUri != null && Object.hasOwnProperty.call(message, "errorUri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.errorUri); + if (message.outputUri != null && Object.hasOwnProperty.call(message, "outputUri")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.outputUri); + return writer; + }; + + /** + * Encodes the specified GcsImportConfig message, length delimited. Does not implicitly {@link google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfig + * @static + * @param {google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.IGcsImportConfig} message GcsImportConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GcsImportConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GcsImportConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfig} GcsImportConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GcsImportConfig.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.contentsUri = reader.string(); + break; + } + case 2: { + message.errorUri = reader.string(); + break; + } + case 3: { + message.outputUri = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GcsImportConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfig} GcsImportConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GcsImportConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GcsImportConfig message. + * @function verify + * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GcsImportConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.contentsUri != null && message.hasOwnProperty("contentsUri")) + if (!$util.isString(message.contentsUri)) + return "contentsUri: string expected"; + if (message.errorUri != null && message.hasOwnProperty("errorUri")) + if (!$util.isString(message.errorUri)) + return "errorUri: string expected"; + if (message.outputUri != null && message.hasOwnProperty("outputUri")) + if (!$util.isString(message.outputUri)) + return "outputUri: string expected"; + return null; + }; + + /** + * Creates a GcsImportConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfig} GcsImportConfig + */ + GcsImportConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfig) + return object; + var message = new $root.google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfig(); + if (object.contentsUri != null) + message.contentsUri = String(object.contentsUri); + if (object.errorUri != null) + message.errorUri = String(object.errorUri); + if (object.outputUri != null) + message.outputUri = String(object.outputUri); + return message; + }; + + /** + * Creates a plain object from a GcsImportConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfig + * @static + * @param {google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfig} message GcsImportConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GcsImportConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.contentsUri = ""; + object.errorUri = ""; + object.outputUri = ""; + } + if (message.contentsUri != null && message.hasOwnProperty("contentsUri")) + object.contentsUri = message.contentsUri; + if (message.errorUri != null && message.hasOwnProperty("errorUri")) + object.errorUri = message.errorUri; + if (message.outputUri != null && message.hasOwnProperty("outputUri")) + object.outputUri = message.outputUri; return object; - var message = new $root.google.cloud.vectorsearch.v1beta.OperationMetadata(); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.vectorsearch.v1beta.OperationMetadata.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.endTime != null) { - if (typeof object.endTime !== "object") - throw TypeError(".google.cloud.vectorsearch.v1beta.OperationMetadata.endTime: object expected"); - message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); - } - if (object.target != null) - message.target = String(object.target); - if (object.verb != null) - message.verb = String(object.verb); - if (object.statusMessage != null) - message.statusMessage = String(object.statusMessage); - if (object.requestedCancellation != null) - message.requestedCancellation = Boolean(object.requestedCancellation); - if (object.apiVersion != null) - message.apiVersion = String(object.apiVersion); - return message; - }; + }; - /** - * Creates a plain object from an OperationMetadata message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.vectorsearch.v1beta.OperationMetadata - * @static - * @param {google.cloud.vectorsearch.v1beta.OperationMetadata} message OperationMetadata - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - OperationMetadata.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.createTime = null; - object.endTime = null; - object.target = ""; - object.verb = ""; - object.statusMessage = ""; - object.requestedCancellation = false; - object.apiVersion = ""; - } - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.endTime != null && message.hasOwnProperty("endTime")) - object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); - if (message.target != null && message.hasOwnProperty("target")) - object.target = message.target; - if (message.verb != null && message.hasOwnProperty("verb")) - object.verb = message.verb; - if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) - object.statusMessage = message.statusMessage; - if (message.requestedCancellation != null && message.hasOwnProperty("requestedCancellation")) - object.requestedCancellation = message.requestedCancellation; - if (message.apiVersion != null && message.hasOwnProperty("apiVersion")) - object.apiVersion = message.apiVersion; - return object; - }; + /** + * Converts this GcsImportConfig to JSON. + * @function toJSON + * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfig + * @instance + * @returns {Object.} JSON object + */ + GcsImportConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this OperationMetadata to JSON. - * @function toJSON - * @memberof google.cloud.vectorsearch.v1beta.OperationMetadata - * @instance - * @returns {Object.} JSON object - */ - OperationMetadata.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for GcsImportConfig + * @function getTypeUrl + * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GcsImportConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfig"; + }; - /** - * Gets the default type url for OperationMetadata - * @function getTypeUrl - * @memberof google.cloud.vectorsearch.v1beta.OperationMetadata - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - OperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.vectorsearch.v1beta.OperationMetadata"; - }; + return GcsImportConfig; + })(); - return OperationMetadata; + return ImportDataObjectsRequest; })(); - v1beta.ImportDataObjectsRequest = (function() { + v1beta.ImportDataObjectsMetadata = (function() { /** - * Properties of an ImportDataObjectsRequest. + * Properties of an ImportDataObjectsMetadata. * @memberof google.cloud.vectorsearch.v1beta - * @interface IImportDataObjectsRequest - * @property {google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.IGcsImportConfig|null} [gcsImport] ImportDataObjectsRequest gcsImport - * @property {string|null} [name] ImportDataObjectsRequest name + * @interface IImportDataObjectsMetadata + * @property {google.protobuf.ITimestamp|null} [createTime] ImportDataObjectsMetadata createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] ImportDataObjectsMetadata updateTime + * @property {number|Long|null} [successCount] ImportDataObjectsMetadata successCount + * @property {number|Long|null} [failureCount] ImportDataObjectsMetadata failureCount */ /** - * Constructs a new ImportDataObjectsRequest. + * Constructs a new ImportDataObjectsMetadata. * @memberof google.cloud.vectorsearch.v1beta - * @classdesc Represents an ImportDataObjectsRequest. - * @implements IImportDataObjectsRequest + * @classdesc Represents an ImportDataObjectsMetadata. + * @implements IImportDataObjectsMetadata * @constructor - * @param {google.cloud.vectorsearch.v1beta.IImportDataObjectsRequest=} [properties] Properties to set + * @param {google.cloud.vectorsearch.v1beta.IImportDataObjectsMetadata=} [properties] Properties to set */ - function ImportDataObjectsRequest(properties) { + function ImportDataObjectsMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -32983,105 +33533,119 @@ } /** - * ImportDataObjectsRequest gcsImport. - * @member {google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.IGcsImportConfig|null|undefined} gcsImport - * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest + * ImportDataObjectsMetadata createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsMetadata * @instance */ - ImportDataObjectsRequest.prototype.gcsImport = null; + ImportDataObjectsMetadata.prototype.createTime = null; /** - * ImportDataObjectsRequest name. - * @member {string} name - * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest + * ImportDataObjectsMetadata updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsMetadata * @instance */ - ImportDataObjectsRequest.prototype.name = ""; + ImportDataObjectsMetadata.prototype.updateTime = null; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * ImportDataObjectsMetadata successCount. + * @member {number|Long} successCount + * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsMetadata + * @instance + */ + ImportDataObjectsMetadata.prototype.successCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * ImportDataObjectsRequest config. - * @member {"gcsImport"|undefined} config - * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest + * ImportDataObjectsMetadata failureCount. + * @member {number|Long} failureCount + * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsMetadata * @instance */ - Object.defineProperty(ImportDataObjectsRequest.prototype, "config", { - get: $util.oneOfGetter($oneOfFields = ["gcsImport"]), - set: $util.oneOfSetter($oneOfFields) - }); + ImportDataObjectsMetadata.prototype.failureCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new ImportDataObjectsRequest instance using the specified properties. + * Creates a new ImportDataObjectsMetadata instance using the specified properties. * @function create - * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest + * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsMetadata * @static - * @param {google.cloud.vectorsearch.v1beta.IImportDataObjectsRequest=} [properties] Properties to set - * @returns {google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest} ImportDataObjectsRequest instance + * @param {google.cloud.vectorsearch.v1beta.IImportDataObjectsMetadata=} [properties] Properties to set + * @returns {google.cloud.vectorsearch.v1beta.ImportDataObjectsMetadata} ImportDataObjectsMetadata instance */ - ImportDataObjectsRequest.create = function create(properties) { - return new ImportDataObjectsRequest(properties); + ImportDataObjectsMetadata.create = function create(properties) { + return new ImportDataObjectsMetadata(properties); }; /** - * Encodes the specified ImportDataObjectsRequest message. Does not implicitly {@link google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.verify|verify} messages. + * Encodes the specified ImportDataObjectsMetadata message. Does not implicitly {@link google.cloud.vectorsearch.v1beta.ImportDataObjectsMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest + * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsMetadata * @static - * @param {google.cloud.vectorsearch.v1beta.IImportDataObjectsRequest} message ImportDataObjectsRequest message or plain object to encode + * @param {google.cloud.vectorsearch.v1beta.IImportDataObjectsMetadata} message ImportDataObjectsMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ImportDataObjectsRequest.encode = function encode(message, writer) { + ImportDataObjectsMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.gcsImport != null && Object.hasOwnProperty.call(message, "gcsImport")) - $root.google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfig.encode(message.gcsImport, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.successCount != null && Object.hasOwnProperty.call(message, "successCount")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.successCount); + if (message.failureCount != null && Object.hasOwnProperty.call(message, "failureCount")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.failureCount); return writer; }; /** - * Encodes the specified ImportDataObjectsRequest message, length delimited. Does not implicitly {@link google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.verify|verify} messages. + * Encodes the specified ImportDataObjectsMetadata message, length delimited. Does not implicitly {@link google.cloud.vectorsearch.v1beta.ImportDataObjectsMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest + * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsMetadata * @static - * @param {google.cloud.vectorsearch.v1beta.IImportDataObjectsRequest} message ImportDataObjectsRequest message or plain object to encode + * @param {google.cloud.vectorsearch.v1beta.IImportDataObjectsMetadata} message ImportDataObjectsMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ImportDataObjectsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ImportDataObjectsMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ImportDataObjectsRequest message from the specified reader or buffer. + * Decodes an ImportDataObjectsMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest + * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest} ImportDataObjectsRequest + * @returns {google.cloud.vectorsearch.v1beta.ImportDataObjectsMetadata} ImportDataObjectsMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImportDataObjectsRequest.decode = function decode(reader, length, error) { + ImportDataObjectsMetadata.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vectorsearch.v1beta.ImportDataObjectsMetadata(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { + case 1: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } case 2: { - message.gcsImport = $root.google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfig.decode(reader, reader.uint32()); + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } - case 1: { - message.name = reader.string(); + case 3: { + message.successCount = reader.int64(); + break; + } + case 4: { + message.failureCount = reader.int64(); break; } default: @@ -33093,396 +33657,396 @@ }; /** - * Decodes an ImportDataObjectsRequest message from the specified reader or buffer, length delimited. + * Decodes an ImportDataObjectsMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest + * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest} ImportDataObjectsRequest + * @returns {google.cloud.vectorsearch.v1beta.ImportDataObjectsMetadata} ImportDataObjectsMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImportDataObjectsRequest.decodeDelimited = function decodeDelimited(reader) { + ImportDataObjectsMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ImportDataObjectsRequest message. + * Verifies an ImportDataObjectsMetadata message. * @function verify - * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest + * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ImportDataObjectsRequest.verify = function verify(message) { + ImportDataObjectsMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.gcsImport != null && message.hasOwnProperty("gcsImport")) { - properties.config = 1; - { - var error = $root.google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfig.verify(message.gcsImport); - if (error) - return "gcsImport." + error; - } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; } - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.successCount != null && message.hasOwnProperty("successCount")) + if (!$util.isInteger(message.successCount) && !(message.successCount && $util.isInteger(message.successCount.low) && $util.isInteger(message.successCount.high))) + return "successCount: integer|Long expected"; + if (message.failureCount != null && message.hasOwnProperty("failureCount")) + if (!$util.isInteger(message.failureCount) && !(message.failureCount && $util.isInteger(message.failureCount.low) && $util.isInteger(message.failureCount.high))) + return "failureCount: integer|Long expected"; return null; }; /** - * Creates an ImportDataObjectsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ImportDataObjectsMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest + * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest} ImportDataObjectsRequest + * @returns {google.cloud.vectorsearch.v1beta.ImportDataObjectsMetadata} ImportDataObjectsMetadata */ - ImportDataObjectsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest) + ImportDataObjectsMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vectorsearch.v1beta.ImportDataObjectsMetadata) return object; - var message = new $root.google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest(); - if (object.gcsImport != null) { - if (typeof object.gcsImport !== "object") - throw TypeError(".google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.gcsImport: object expected"); - message.gcsImport = $root.google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfig.fromObject(object.gcsImport); + var message = new $root.google.cloud.vectorsearch.v1beta.ImportDataObjectsMetadata(); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.vectorsearch.v1beta.ImportDataObjectsMetadata.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); } - if (object.name != null) - message.name = String(object.name); + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.vectorsearch.v1beta.ImportDataObjectsMetadata.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.successCount != null) + if ($util.Long) + (message.successCount = $util.Long.fromValue(object.successCount)).unsigned = false; + else if (typeof object.successCount === "string") + message.successCount = parseInt(object.successCount, 10); + else if (typeof object.successCount === "number") + message.successCount = object.successCount; + else if (typeof object.successCount === "object") + message.successCount = new $util.LongBits(object.successCount.low >>> 0, object.successCount.high >>> 0).toNumber(); + if (object.failureCount != null) + if ($util.Long) + (message.failureCount = $util.Long.fromValue(object.failureCount)).unsigned = false; + else if (typeof object.failureCount === "string") + message.failureCount = parseInt(object.failureCount, 10); + else if (typeof object.failureCount === "number") + message.failureCount = object.failureCount; + else if (typeof object.failureCount === "object") + message.failureCount = new $util.LongBits(object.failureCount.low >>> 0, object.failureCount.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from an ImportDataObjectsRequest message. Also converts values to other types if specified. + * Creates a plain object from an ImportDataObjectsMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest + * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsMetadata * @static - * @param {google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest} message ImportDataObjectsRequest + * @param {google.cloud.vectorsearch.v1beta.ImportDataObjectsMetadata} message ImportDataObjectsMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ImportDataObjectsRequest.toObject = function toObject(message, options) { + ImportDataObjectsMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.gcsImport != null && message.hasOwnProperty("gcsImport")) { - object.gcsImport = $root.google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfig.toObject(message.gcsImport, options); - if (options.oneofs) - object.config = "gcsImport"; + if (options.defaults) { + object.createTime = null; + object.updateTime = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.successCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.successCount = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.failureCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.failureCount = options.longs === String ? "0" : 0; } + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.successCount != null && message.hasOwnProperty("successCount")) + if (typeof message.successCount === "number") + object.successCount = options.longs === String ? String(message.successCount) : message.successCount; + else + object.successCount = options.longs === String ? $util.Long.prototype.toString.call(message.successCount) : options.longs === Number ? new $util.LongBits(message.successCount.low >>> 0, message.successCount.high >>> 0).toNumber() : message.successCount; + if (message.failureCount != null && message.hasOwnProperty("failureCount")) + if (typeof message.failureCount === "number") + object.failureCount = options.longs === String ? String(message.failureCount) : message.failureCount; + else + object.failureCount = options.longs === String ? $util.Long.prototype.toString.call(message.failureCount) : options.longs === Number ? new $util.LongBits(message.failureCount.low >>> 0, message.failureCount.high >>> 0).toNumber() : message.failureCount; return object; }; /** - * Converts this ImportDataObjectsRequest to JSON. + * Converts this ImportDataObjectsMetadata to JSON. * @function toJSON - * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest + * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsMetadata * @instance * @returns {Object.} JSON object */ - ImportDataObjectsRequest.prototype.toJSON = function toJSON() { + ImportDataObjectsMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ImportDataObjectsRequest - * @function getTypeUrl - * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest + * Gets the default type url for ImportDataObjectsMetadata + * @function getTypeUrl + * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsMetadata + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ImportDataObjectsMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vectorsearch.v1beta.ImportDataObjectsMetadata"; + }; + + return ImportDataObjectsMetadata; + })(); + + v1beta.ImportDataObjectsResponse = (function() { + + /** + * Properties of an ImportDataObjectsResponse. + * @memberof google.cloud.vectorsearch.v1beta + * @interface IImportDataObjectsResponse + * @property {google.rpc.IStatus|null} [status] ImportDataObjectsResponse status + */ + + /** + * Constructs a new ImportDataObjectsResponse. + * @memberof google.cloud.vectorsearch.v1beta + * @classdesc Represents an ImportDataObjectsResponse. + * @implements IImportDataObjectsResponse + * @constructor + * @param {google.cloud.vectorsearch.v1beta.IImportDataObjectsResponse=} [properties] Properties to set + */ + function ImportDataObjectsResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ImportDataObjectsResponse status. + * @member {google.rpc.IStatus|null|undefined} status + * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsResponse + * @instance + */ + ImportDataObjectsResponse.prototype.status = null; + + /** + * Creates a new ImportDataObjectsResponse instance using the specified properties. + * @function create + * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsResponse + * @static + * @param {google.cloud.vectorsearch.v1beta.IImportDataObjectsResponse=} [properties] Properties to set + * @returns {google.cloud.vectorsearch.v1beta.ImportDataObjectsResponse} ImportDataObjectsResponse instance + */ + ImportDataObjectsResponse.create = function create(properties) { + return new ImportDataObjectsResponse(properties); + }; + + /** + * Encodes the specified ImportDataObjectsResponse message. Does not implicitly {@link google.cloud.vectorsearch.v1beta.ImportDataObjectsResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsResponse + * @static + * @param {google.cloud.vectorsearch.v1beta.IImportDataObjectsResponse} message ImportDataObjectsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ImportDataObjectsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + $root.google.rpc.Status.encode(message.status, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ImportDataObjectsResponse message, length delimited. Does not implicitly {@link google.cloud.vectorsearch.v1beta.ImportDataObjectsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsResponse * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * @param {google.cloud.vectorsearch.v1beta.IImportDataObjectsResponse} message ImportDataObjectsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - ImportDataObjectsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest"; + ImportDataObjectsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); }; - ImportDataObjectsRequest.GcsImportConfig = (function() { - - /** - * Properties of a GcsImportConfig. - * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest - * @interface IGcsImportConfig - * @property {string|null} [contentsUri] GcsImportConfig contentsUri - * @property {string|null} [errorUri] GcsImportConfig errorUri - * @property {string|null} [outputUri] GcsImportConfig outputUri - */ - - /** - * Constructs a new GcsImportConfig. - * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest - * @classdesc Represents a GcsImportConfig. - * @implements IGcsImportConfig - * @constructor - * @param {google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.IGcsImportConfig=} [properties] Properties to set - */ - function GcsImportConfig(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GcsImportConfig contentsUri. - * @member {string} contentsUri - * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfig - * @instance - */ - GcsImportConfig.prototype.contentsUri = ""; - - /** - * GcsImportConfig errorUri. - * @member {string} errorUri - * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfig - * @instance - */ - GcsImportConfig.prototype.errorUri = ""; - - /** - * GcsImportConfig outputUri. - * @member {string} outputUri - * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfig - * @instance - */ - GcsImportConfig.prototype.outputUri = ""; - - /** - * Creates a new GcsImportConfig instance using the specified properties. - * @function create - * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfig - * @static - * @param {google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.IGcsImportConfig=} [properties] Properties to set - * @returns {google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfig} GcsImportConfig instance - */ - GcsImportConfig.create = function create(properties) { - return new GcsImportConfig(properties); - }; - - /** - * Encodes the specified GcsImportConfig message. Does not implicitly {@link google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfig - * @static - * @param {google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.IGcsImportConfig} message GcsImportConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GcsImportConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.contentsUri != null && Object.hasOwnProperty.call(message, "contentsUri")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.contentsUri); - if (message.errorUri != null && Object.hasOwnProperty.call(message, "errorUri")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.errorUri); - if (message.outputUri != null && Object.hasOwnProperty.call(message, "outputUri")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.outputUri); - return writer; - }; - - /** - * Encodes the specified GcsImportConfig message, length delimited. Does not implicitly {@link google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfig - * @static - * @param {google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.IGcsImportConfig} message GcsImportConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GcsImportConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GcsImportConfig message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfig} GcsImportConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GcsImportConfig.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfig(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 1: { - message.contentsUri = reader.string(); - break; - } - case 2: { - message.errorUri = reader.string(); - break; - } - case 3: { - message.outputUri = reader.string(); - break; - } - default: - reader.skipType(tag & 7); + /** + * Decodes an ImportDataObjectsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vectorsearch.v1beta.ImportDataObjectsResponse} ImportDataObjectsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ImportDataObjectsResponse.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vectorsearch.v1beta.ImportDataObjectsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.status = $root.google.rpc.Status.decode(reader, reader.uint32()); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes a GcsImportConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfig} GcsImportConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GcsImportConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GcsImportConfig message. - * @function verify - * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GcsImportConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.contentsUri != null && message.hasOwnProperty("contentsUri")) - if (!$util.isString(message.contentsUri)) - return "contentsUri: string expected"; - if (message.errorUri != null && message.hasOwnProperty("errorUri")) - if (!$util.isString(message.errorUri)) - return "errorUri: string expected"; - if (message.outputUri != null && message.hasOwnProperty("outputUri")) - if (!$util.isString(message.outputUri)) - return "outputUri: string expected"; - return null; - }; - - /** - * Creates a GcsImportConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfig} GcsImportConfig - */ - GcsImportConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfig) - return object; - var message = new $root.google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfig(); - if (object.contentsUri != null) - message.contentsUri = String(object.contentsUri); - if (object.errorUri != null) - message.errorUri = String(object.errorUri); - if (object.outputUri != null) - message.outputUri = String(object.outputUri); - return message; - }; - - /** - * Creates a plain object from a GcsImportConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfig - * @static - * @param {google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfig} message GcsImportConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GcsImportConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.contentsUri = ""; - object.errorUri = ""; - object.outputUri = ""; - } - if (message.contentsUri != null && message.hasOwnProperty("contentsUri")) - object.contentsUri = message.contentsUri; - if (message.errorUri != null && message.hasOwnProperty("errorUri")) - object.errorUri = message.errorUri; - if (message.outputUri != null && message.hasOwnProperty("outputUri")) - object.outputUri = message.outputUri; + } + return message; + }; + + /** + * Decodes an ImportDataObjectsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vectorsearch.v1beta.ImportDataObjectsResponse} ImportDataObjectsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ImportDataObjectsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ImportDataObjectsResponse message. + * @function verify + * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ImportDataObjectsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.status != null && message.hasOwnProperty("status")) { + var error = $root.google.rpc.Status.verify(message.status); + if (error) + return "status." + error; + } + return null; + }; + + /** + * Creates an ImportDataObjectsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vectorsearch.v1beta.ImportDataObjectsResponse} ImportDataObjectsResponse + */ + ImportDataObjectsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vectorsearch.v1beta.ImportDataObjectsResponse) return object; - }; + var message = new $root.google.cloud.vectorsearch.v1beta.ImportDataObjectsResponse(); + if (object.status != null) { + if (typeof object.status !== "object") + throw TypeError(".google.cloud.vectorsearch.v1beta.ImportDataObjectsResponse.status: object expected"); + message.status = $root.google.rpc.Status.fromObject(object.status); + } + return message; + }; - /** - * Converts this GcsImportConfig to JSON. - * @function toJSON - * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfig - * @instance - * @returns {Object.} JSON object - */ - GcsImportConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from an ImportDataObjectsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsResponse + * @static + * @param {google.cloud.vectorsearch.v1beta.ImportDataObjectsResponse} message ImportDataObjectsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ImportDataObjectsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.status = null; + if (message.status != null && message.hasOwnProperty("status")) + object.status = $root.google.rpc.Status.toObject(message.status, options); + return object; + }; - /** - * Gets the default type url for GcsImportConfig - * @function getTypeUrl - * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfig - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - GcsImportConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfig"; - }; + /** + * Converts this ImportDataObjectsResponse to JSON. + * @function toJSON + * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsResponse + * @instance + * @returns {Object.} JSON object + */ + ImportDataObjectsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return GcsImportConfig; - })(); + /** + * Gets the default type url for ImportDataObjectsResponse + * @function getTypeUrl + * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ImportDataObjectsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vectorsearch.v1beta.ImportDataObjectsResponse"; + }; - return ImportDataObjectsRequest; + return ImportDataObjectsResponse; })(); - v1beta.ImportDataObjectsMetadata = (function() { + v1beta.ExportDataObjectsRequest = (function() { /** - * Properties of an ImportDataObjectsMetadata. + * Properties of an ExportDataObjectsRequest. * @memberof google.cloud.vectorsearch.v1beta - * @interface IImportDataObjectsMetadata - * @property {google.protobuf.ITimestamp|null} [createTime] ImportDataObjectsMetadata createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] ImportDataObjectsMetadata updateTime - * @property {number|Long|null} [successCount] ImportDataObjectsMetadata successCount - * @property {number|Long|null} [failureCount] ImportDataObjectsMetadata failureCount + * @interface IExportDataObjectsRequest + * @property {google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.IGcsExportDestination|null} [gcsDestination] ExportDataObjectsRequest gcsDestination + * @property {string|null} [name] ExportDataObjectsRequest name */ /** - * Constructs a new ImportDataObjectsMetadata. + * Constructs a new ExportDataObjectsRequest. * @memberof google.cloud.vectorsearch.v1beta - * @classdesc Represents an ImportDataObjectsMetadata. - * @implements IImportDataObjectsMetadata + * @classdesc Represents an ExportDataObjectsRequest. + * @implements IExportDataObjectsRequest * @constructor - * @param {google.cloud.vectorsearch.v1beta.IImportDataObjectsMetadata=} [properties] Properties to set + * @param {google.cloud.vectorsearch.v1beta.IExportDataObjectsRequest=} [properties] Properties to set */ - function ImportDataObjectsMetadata(properties) { + function ExportDataObjectsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -33490,119 +34054,105 @@ } /** - * ImportDataObjectsMetadata createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsMetadata + * ExportDataObjectsRequest gcsDestination. + * @member {google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.IGcsExportDestination|null|undefined} gcsDestination + * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest * @instance */ - ImportDataObjectsMetadata.prototype.createTime = null; + ExportDataObjectsRequest.prototype.gcsDestination = null; /** - * ImportDataObjectsMetadata updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsMetadata + * ExportDataObjectsRequest name. + * @member {string} name + * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest * @instance */ - ImportDataObjectsMetadata.prototype.updateTime = null; + ExportDataObjectsRequest.prototype.name = ""; - /** - * ImportDataObjectsMetadata successCount. - * @member {number|Long} successCount - * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsMetadata - * @instance - */ - ImportDataObjectsMetadata.prototype.successCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * ImportDataObjectsMetadata failureCount. - * @member {number|Long} failureCount - * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsMetadata + * ExportDataObjectsRequest destination. + * @member {"gcsDestination"|undefined} destination + * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest * @instance */ - ImportDataObjectsMetadata.prototype.failureCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + Object.defineProperty(ExportDataObjectsRequest.prototype, "destination", { + get: $util.oneOfGetter($oneOfFields = ["gcsDestination"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new ImportDataObjectsMetadata instance using the specified properties. + * Creates a new ExportDataObjectsRequest instance using the specified properties. * @function create - * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsMetadata + * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest * @static - * @param {google.cloud.vectorsearch.v1beta.IImportDataObjectsMetadata=} [properties] Properties to set - * @returns {google.cloud.vectorsearch.v1beta.ImportDataObjectsMetadata} ImportDataObjectsMetadata instance + * @param {google.cloud.vectorsearch.v1beta.IExportDataObjectsRequest=} [properties] Properties to set + * @returns {google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest} ExportDataObjectsRequest instance */ - ImportDataObjectsMetadata.create = function create(properties) { - return new ImportDataObjectsMetadata(properties); + ExportDataObjectsRequest.create = function create(properties) { + return new ExportDataObjectsRequest(properties); }; /** - * Encodes the specified ImportDataObjectsMetadata message. Does not implicitly {@link google.cloud.vectorsearch.v1beta.ImportDataObjectsMetadata.verify|verify} messages. + * Encodes the specified ExportDataObjectsRequest message. Does not implicitly {@link google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsMetadata + * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest * @static - * @param {google.cloud.vectorsearch.v1beta.IImportDataObjectsMetadata} message ImportDataObjectsMetadata message or plain object to encode + * @param {google.cloud.vectorsearch.v1beta.IExportDataObjectsRequest} message ExportDataObjectsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ImportDataObjectsMetadata.encode = function encode(message, writer) { + ExportDataObjectsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.successCount != null && Object.hasOwnProperty.call(message, "successCount")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.successCount); - if (message.failureCount != null && Object.hasOwnProperty.call(message, "failureCount")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.failureCount); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.gcsDestination != null && Object.hasOwnProperty.call(message, "gcsDestination")) + $root.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination.encode(message.gcsDestination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ImportDataObjectsMetadata message, length delimited. Does not implicitly {@link google.cloud.vectorsearch.v1beta.ImportDataObjectsMetadata.verify|verify} messages. + * Encodes the specified ExportDataObjectsRequest message, length delimited. Does not implicitly {@link google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsMetadata + * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest * @static - * @param {google.cloud.vectorsearch.v1beta.IImportDataObjectsMetadata} message ImportDataObjectsMetadata message or plain object to encode + * @param {google.cloud.vectorsearch.v1beta.IExportDataObjectsRequest} message ExportDataObjectsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ImportDataObjectsMetadata.encodeDelimited = function encodeDelimited(message, writer) { + ExportDataObjectsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ImportDataObjectsMetadata message from the specified reader or buffer. + * Decodes an ExportDataObjectsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsMetadata + * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vectorsearch.v1beta.ImportDataObjectsMetadata} ImportDataObjectsMetadata + * @returns {google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest} ExportDataObjectsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImportDataObjectsMetadata.decode = function decode(reader, length, error) { + ExportDataObjectsRequest.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vectorsearch.v1beta.ImportDataObjectsMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) - break; - switch (tag >>> 3) { - case 1: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 2: { - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 3: { - message.successCount = reader.int64(); + break; + switch (tag >>> 3) { + case 2: { + message.gcsDestination = $root.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination.decode(reader, reader.uint32()); break; } - case 4: { - message.failureCount = reader.int64(); + case 1: { + message.name = reader.string(); break; } default: @@ -33614,396 +34164,404 @@ }; /** - * Decodes an ImportDataObjectsMetadata message from the specified reader or buffer, length delimited. + * Decodes an ExportDataObjectsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsMetadata + * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vectorsearch.v1beta.ImportDataObjectsMetadata} ImportDataObjectsMetadata + * @returns {google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest} ExportDataObjectsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImportDataObjectsMetadata.decodeDelimited = function decodeDelimited(reader) { + ExportDataObjectsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ImportDataObjectsMetadata message. + * Verifies an ExportDataObjectsRequest message. * @function verify - * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsMetadata + * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ImportDataObjectsMetadata.verify = function verify(message) { + ExportDataObjectsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; + var properties = {}; + if (message.gcsDestination != null && message.hasOwnProperty("gcsDestination")) { + properties.destination = 1; + { + var error = $root.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination.verify(message.gcsDestination); + if (error) + return "gcsDestination." + error; + } } - if (message.successCount != null && message.hasOwnProperty("successCount")) - if (!$util.isInteger(message.successCount) && !(message.successCount && $util.isInteger(message.successCount.low) && $util.isInteger(message.successCount.high))) - return "successCount: integer|Long expected"; - if (message.failureCount != null && message.hasOwnProperty("failureCount")) - if (!$util.isInteger(message.failureCount) && !(message.failureCount && $util.isInteger(message.failureCount.low) && $util.isInteger(message.failureCount.high))) - return "failureCount: integer|Long expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates an ImportDataObjectsMetadata message from a plain object. Also converts values to their respective internal types. + * Creates an ExportDataObjectsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsMetadata + * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.vectorsearch.v1beta.ImportDataObjectsMetadata} ImportDataObjectsMetadata + * @returns {google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest} ExportDataObjectsRequest */ - ImportDataObjectsMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vectorsearch.v1beta.ImportDataObjectsMetadata) + ExportDataObjectsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest) return object; - var message = new $root.google.cloud.vectorsearch.v1beta.ImportDataObjectsMetadata(); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.vectorsearch.v1beta.ImportDataObjectsMetadata.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.vectorsearch.v1beta.ImportDataObjectsMetadata.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + var message = new $root.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest(); + if (object.gcsDestination != null) { + if (typeof object.gcsDestination !== "object") + throw TypeError(".google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.gcsDestination: object expected"); + message.gcsDestination = $root.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination.fromObject(object.gcsDestination); } - if (object.successCount != null) - if ($util.Long) - (message.successCount = $util.Long.fromValue(object.successCount)).unsigned = false; - else if (typeof object.successCount === "string") - message.successCount = parseInt(object.successCount, 10); - else if (typeof object.successCount === "number") - message.successCount = object.successCount; - else if (typeof object.successCount === "object") - message.successCount = new $util.LongBits(object.successCount.low >>> 0, object.successCount.high >>> 0).toNumber(); - if (object.failureCount != null) - if ($util.Long) - (message.failureCount = $util.Long.fromValue(object.failureCount)).unsigned = false; - else if (typeof object.failureCount === "string") - message.failureCount = parseInt(object.failureCount, 10); - else if (typeof object.failureCount === "number") - message.failureCount = object.failureCount; - else if (typeof object.failureCount === "object") - message.failureCount = new $util.LongBits(object.failureCount.low >>> 0, object.failureCount.high >>> 0).toNumber(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from an ImportDataObjectsMetadata message. Also converts values to other types if specified. + * Creates a plain object from an ExportDataObjectsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsMetadata + * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest * @static - * @param {google.cloud.vectorsearch.v1beta.ImportDataObjectsMetadata} message ImportDataObjectsMetadata + * @param {google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest} message ExportDataObjectsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ImportDataObjectsMetadata.toObject = function toObject(message, options) { + ExportDataObjectsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.createTime = null; - object.updateTime = null; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.successCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.successCount = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.failureCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.failureCount = options.longs === String ? "0" : 0; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.gcsDestination != null && message.hasOwnProperty("gcsDestination")) { + object.gcsDestination = $root.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination.toObject(message.gcsDestination, options); + if (options.oneofs) + object.destination = "gcsDestination"; } - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.successCount != null && message.hasOwnProperty("successCount")) - if (typeof message.successCount === "number") - object.successCount = options.longs === String ? String(message.successCount) : message.successCount; - else - object.successCount = options.longs === String ? $util.Long.prototype.toString.call(message.successCount) : options.longs === Number ? new $util.LongBits(message.successCount.low >>> 0, message.successCount.high >>> 0).toNumber() : message.successCount; - if (message.failureCount != null && message.hasOwnProperty("failureCount")) - if (typeof message.failureCount === "number") - object.failureCount = options.longs === String ? String(message.failureCount) : message.failureCount; - else - object.failureCount = options.longs === String ? $util.Long.prototype.toString.call(message.failureCount) : options.longs === Number ? new $util.LongBits(message.failureCount.low >>> 0, message.failureCount.high >>> 0).toNumber() : message.failureCount; return object; }; /** - * Converts this ImportDataObjectsMetadata to JSON. + * Converts this ExportDataObjectsRequest to JSON. * @function toJSON - * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsMetadata + * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest * @instance * @returns {Object.} JSON object */ - ImportDataObjectsMetadata.prototype.toJSON = function toJSON() { + ExportDataObjectsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ImportDataObjectsMetadata + * Gets the default type url for ExportDataObjectsRequest * @function getTypeUrl - * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsMetadata + * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ImportDataObjectsMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ExportDataObjectsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vectorsearch.v1beta.ImportDataObjectsMetadata"; + return typeUrlPrefix + "/google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest"; }; - return ImportDataObjectsMetadata; - })(); + ExportDataObjectsRequest.GcsExportDestination = (function() { - v1beta.ImportDataObjectsResponse = (function() { + /** + * Properties of a GcsExportDestination. + * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest + * @interface IGcsExportDestination + * @property {string|null} [exportUri] GcsExportDestination exportUri + * @property {google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination.Format|null} [format] GcsExportDestination format + */ - /** - * Properties of an ImportDataObjectsResponse. - * @memberof google.cloud.vectorsearch.v1beta - * @interface IImportDataObjectsResponse - * @property {google.rpc.IStatus|null} [status] ImportDataObjectsResponse status - */ + /** + * Constructs a new GcsExportDestination. + * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest + * @classdesc Represents a GcsExportDestination. + * @implements IGcsExportDestination + * @constructor + * @param {google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.IGcsExportDestination=} [properties] Properties to set + */ + function GcsExportDestination(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Constructs a new ImportDataObjectsResponse. - * @memberof google.cloud.vectorsearch.v1beta - * @classdesc Represents an ImportDataObjectsResponse. - * @implements IImportDataObjectsResponse - * @constructor - * @param {google.cloud.vectorsearch.v1beta.IImportDataObjectsResponse=} [properties] Properties to set - */ - function ImportDataObjectsResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * GcsExportDestination exportUri. + * @member {string} exportUri + * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination + * @instance + */ + GcsExportDestination.prototype.exportUri = ""; - /** - * ImportDataObjectsResponse status. - * @member {google.rpc.IStatus|null|undefined} status - * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsResponse - * @instance - */ - ImportDataObjectsResponse.prototype.status = null; + /** + * GcsExportDestination format. + * @member {google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination.Format} format + * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination + * @instance + */ + GcsExportDestination.prototype.format = 0; - /** - * Creates a new ImportDataObjectsResponse instance using the specified properties. - * @function create - * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsResponse - * @static - * @param {google.cloud.vectorsearch.v1beta.IImportDataObjectsResponse=} [properties] Properties to set - * @returns {google.cloud.vectorsearch.v1beta.ImportDataObjectsResponse} ImportDataObjectsResponse instance - */ - ImportDataObjectsResponse.create = function create(properties) { - return new ImportDataObjectsResponse(properties); - }; + /** + * Creates a new GcsExportDestination instance using the specified properties. + * @function create + * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination + * @static + * @param {google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.IGcsExportDestination=} [properties] Properties to set + * @returns {google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination} GcsExportDestination instance + */ + GcsExportDestination.create = function create(properties) { + return new GcsExportDestination(properties); + }; + + /** + * Encodes the specified GcsExportDestination message. Does not implicitly {@link google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination.verify|verify} messages. + * @function encode + * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination + * @static + * @param {google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.IGcsExportDestination} message GcsExportDestination message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GcsExportDestination.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.exportUri != null && Object.hasOwnProperty.call(message, "exportUri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.exportUri); + if (message.format != null && Object.hasOwnProperty.call(message, "format")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.format); + return writer; + }; - /** - * Encodes the specified ImportDataObjectsResponse message. Does not implicitly {@link google.cloud.vectorsearch.v1beta.ImportDataObjectsResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsResponse - * @static - * @param {google.cloud.vectorsearch.v1beta.IImportDataObjectsResponse} message ImportDataObjectsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ImportDataObjectsResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - $root.google.rpc.Status.encode(message.status, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified GcsExportDestination message, length delimited. Does not implicitly {@link google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination + * @static + * @param {google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.IGcsExportDestination} message GcsExportDestination message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GcsExportDestination.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Encodes the specified ImportDataObjectsResponse message, length delimited. Does not implicitly {@link google.cloud.vectorsearch.v1beta.ImportDataObjectsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsResponse - * @static - * @param {google.cloud.vectorsearch.v1beta.IImportDataObjectsResponse} message ImportDataObjectsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ImportDataObjectsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Decodes a GcsExportDestination message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination} GcsExportDestination + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GcsExportDestination.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.exportUri = reader.string(); + break; + } + case 2: { + message.format = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Decodes an ImportDataObjectsResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vectorsearch.v1beta.ImportDataObjectsResponse} ImportDataObjectsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ImportDataObjectsResponse.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vectorsearch.v1beta.ImportDataObjectsResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 1: { - message.status = $root.google.rpc.Status.decode(reader, reader.uint32()); + /** + * Decodes a GcsExportDestination message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination} GcsExportDestination + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GcsExportDestination.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GcsExportDestination message. + * @function verify + * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GcsExportDestination.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.exportUri != null && message.hasOwnProperty("exportUri")) + if (!$util.isString(message.exportUri)) + return "exportUri: string expected"; + if (message.format != null && message.hasOwnProperty("format")) + switch (message.format) { + default: + return "format: enum value expected"; + case 0: + case 1: break; } + return null; + }; + + /** + * Creates a GcsExportDestination message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination} GcsExportDestination + */ + GcsExportDestination.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination) + return object; + var message = new $root.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination(); + if (object.exportUri != null) + message.exportUri = String(object.exportUri); + switch (object.format) { default: - reader.skipType(tag & 7); + if (typeof object.format === "number") { + message.format = object.format; + break; + } + break; + case "FORMAT_UNSPECIFIED": + case 0: + message.format = 0; + break; + case "JSON": + case 1: + message.format = 1; break; } - } - return message; - }; - - /** - * Decodes an ImportDataObjectsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vectorsearch.v1beta.ImportDataObjectsResponse} ImportDataObjectsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ImportDataObjectsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ImportDataObjectsResponse message. - * @function verify - * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ImportDataObjectsResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.status != null && message.hasOwnProperty("status")) { - var error = $root.google.rpc.Status.verify(message.status); - if (error) - return "status." + error; - } - return null; - }; + return message; + }; - /** - * Creates an ImportDataObjectsResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.vectorsearch.v1beta.ImportDataObjectsResponse} ImportDataObjectsResponse - */ - ImportDataObjectsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vectorsearch.v1beta.ImportDataObjectsResponse) + /** + * Creates a plain object from a GcsExportDestination message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination + * @static + * @param {google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination} message GcsExportDestination + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GcsExportDestination.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.exportUri = ""; + object.format = options.enums === String ? "FORMAT_UNSPECIFIED" : 0; + } + if (message.exportUri != null && message.hasOwnProperty("exportUri")) + object.exportUri = message.exportUri; + if (message.format != null && message.hasOwnProperty("format")) + object.format = options.enums === String ? $root.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination.Format[message.format] === undefined ? message.format : $root.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination.Format[message.format] : message.format; return object; - var message = new $root.google.cloud.vectorsearch.v1beta.ImportDataObjectsResponse(); - if (object.status != null) { - if (typeof object.status !== "object") - throw TypeError(".google.cloud.vectorsearch.v1beta.ImportDataObjectsResponse.status: object expected"); - message.status = $root.google.rpc.Status.fromObject(object.status); - } - return message; - }; + }; + + /** + * Converts this GcsExportDestination to JSON. + * @function toJSON + * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination + * @instance + * @returns {Object.} JSON object + */ + GcsExportDestination.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Creates a plain object from an ImportDataObjectsResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsResponse - * @static - * @param {google.cloud.vectorsearch.v1beta.ImportDataObjectsResponse} message ImportDataObjectsResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ImportDataObjectsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.status = null; - if (message.status != null && message.hasOwnProperty("status")) - object.status = $root.google.rpc.Status.toObject(message.status, options); - return object; - }; + /** + * Gets the default type url for GcsExportDestination + * @function getTypeUrl + * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GcsExportDestination.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination"; + }; - /** - * Converts this ImportDataObjectsResponse to JSON. - * @function toJSON - * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsResponse - * @instance - * @returns {Object.} JSON object - */ - ImportDataObjectsResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Format enum. + * @name google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination.Format + * @enum {number} + * @property {number} FORMAT_UNSPECIFIED=0 FORMAT_UNSPECIFIED value + * @property {number} JSON=1 JSON value + */ + GcsExportDestination.Format = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "FORMAT_UNSPECIFIED"] = 0; + values[valuesById[1] = "JSON"] = 1; + return values; + })(); - /** - * Gets the default type url for ImportDataObjectsResponse - * @function getTypeUrl - * @memberof google.cloud.vectorsearch.v1beta.ImportDataObjectsResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ImportDataObjectsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.vectorsearch.v1beta.ImportDataObjectsResponse"; - }; + return GcsExportDestination; + })(); - return ImportDataObjectsResponse; + return ExportDataObjectsRequest; })(); - v1beta.ExportDataObjectsRequest = (function() { + v1beta.ExportDataObjectsMetadata = (function() { /** - * Properties of an ExportDataObjectsRequest. + * Properties of an ExportDataObjectsMetadata. * @memberof google.cloud.vectorsearch.v1beta - * @interface IExportDataObjectsRequest - * @property {google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.IGcsExportDestination|null} [gcsDestination] ExportDataObjectsRequest gcsDestination - * @property {string|null} [name] ExportDataObjectsRequest name + * @interface IExportDataObjectsMetadata + * @property {google.protobuf.ITimestamp|null} [createTime] ExportDataObjectsMetadata createTime + * @property {google.protobuf.ITimestamp|null} [finishTime] ExportDataObjectsMetadata finishTime */ /** - * Constructs a new ExportDataObjectsRequest. + * Constructs a new ExportDataObjectsMetadata. * @memberof google.cloud.vectorsearch.v1beta - * @classdesc Represents an ExportDataObjectsRequest. - * @implements IExportDataObjectsRequest + * @classdesc Represents an ExportDataObjectsMetadata. + * @implements IExportDataObjectsMetadata * @constructor - * @param {google.cloud.vectorsearch.v1beta.IExportDataObjectsRequest=} [properties] Properties to set + * @param {google.cloud.vectorsearch.v1beta.IExportDataObjectsMetadata=} [properties] Properties to set */ - function ExportDataObjectsRequest(properties) { + function ExportDataObjectsMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -34011,105 +34569,91 @@ } /** - * ExportDataObjectsRequest gcsDestination. - * @member {google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.IGcsExportDestination|null|undefined} gcsDestination - * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest - * @instance - */ - ExportDataObjectsRequest.prototype.gcsDestination = null; - - /** - * ExportDataObjectsRequest name. - * @member {string} name - * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest + * ExportDataObjectsMetadata createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata * @instance */ - ExportDataObjectsRequest.prototype.name = ""; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + ExportDataObjectsMetadata.prototype.createTime = null; /** - * ExportDataObjectsRequest destination. - * @member {"gcsDestination"|undefined} destination - * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest + * ExportDataObjectsMetadata finishTime. + * @member {google.protobuf.ITimestamp|null|undefined} finishTime + * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata * @instance */ - Object.defineProperty(ExportDataObjectsRequest.prototype, "destination", { - get: $util.oneOfGetter($oneOfFields = ["gcsDestination"]), - set: $util.oneOfSetter($oneOfFields) - }); + ExportDataObjectsMetadata.prototype.finishTime = null; /** - * Creates a new ExportDataObjectsRequest instance using the specified properties. + * Creates a new ExportDataObjectsMetadata instance using the specified properties. * @function create - * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest + * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata * @static - * @param {google.cloud.vectorsearch.v1beta.IExportDataObjectsRequest=} [properties] Properties to set - * @returns {google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest} ExportDataObjectsRequest instance + * @param {google.cloud.vectorsearch.v1beta.IExportDataObjectsMetadata=} [properties] Properties to set + * @returns {google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata} ExportDataObjectsMetadata instance */ - ExportDataObjectsRequest.create = function create(properties) { - return new ExportDataObjectsRequest(properties); + ExportDataObjectsMetadata.create = function create(properties) { + return new ExportDataObjectsMetadata(properties); }; /** - * Encodes the specified ExportDataObjectsRequest message. Does not implicitly {@link google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.verify|verify} messages. + * Encodes the specified ExportDataObjectsMetadata message. Does not implicitly {@link google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest + * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata * @static - * @param {google.cloud.vectorsearch.v1beta.IExportDataObjectsRequest} message ExportDataObjectsRequest message or plain object to encode + * @param {google.cloud.vectorsearch.v1beta.IExportDataObjectsMetadata} message ExportDataObjectsMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportDataObjectsRequest.encode = function encode(message, writer) { + ExportDataObjectsMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.gcsDestination != null && Object.hasOwnProperty.call(message, "gcsDestination")) - $root.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination.encode(message.gcsDestination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.finishTime != null && Object.hasOwnProperty.call(message, "finishTime")) + $root.google.protobuf.Timestamp.encode(message.finishTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ExportDataObjectsRequest message, length delimited. Does not implicitly {@link google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.verify|verify} messages. + * Encodes the specified ExportDataObjectsMetadata message, length delimited. Does not implicitly {@link google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest + * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata * @static - * @param {google.cloud.vectorsearch.v1beta.IExportDataObjectsRequest} message ExportDataObjectsRequest message or plain object to encode + * @param {google.cloud.vectorsearch.v1beta.IExportDataObjectsMetadata} message ExportDataObjectsMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportDataObjectsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ExportDataObjectsMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExportDataObjectsRequest message from the specified reader or buffer. + * Decodes an ExportDataObjectsMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest + * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest} ExportDataObjectsRequest + * @returns {google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata} ExportDataObjectsMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportDataObjectsRequest.decode = function decode(reader, length, error) { + ExportDataObjectsMetadata.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { - case 2: { - message.gcsDestination = $root.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination.decode(reader, reader.uint32()); + case 1: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } - case 1: { - message.name = reader.string(); + case 2: { + message.finishTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } default: @@ -34121,404 +34665,319 @@ }; /** - * Decodes an ExportDataObjectsRequest message from the specified reader or buffer, length delimited. + * Decodes an ExportDataObjectsMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest + * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest} ExportDataObjectsRequest + * @returns {google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata} ExportDataObjectsMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportDataObjectsRequest.decodeDelimited = function decodeDelimited(reader) { + ExportDataObjectsMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExportDataObjectsRequest message. + * Verifies an ExportDataObjectsMetadata message. * @function verify - * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest + * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExportDataObjectsRequest.verify = function verify(message) { + ExportDataObjectsMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.gcsDestination != null && message.hasOwnProperty("gcsDestination")) { - properties.destination = 1; - { - var error = $root.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination.verify(message.gcsDestination); - if (error) - return "gcsDestination." + error; - } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.finishTime != null && message.hasOwnProperty("finishTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.finishTime); + if (error) + return "finishTime." + error; } - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; return null; }; /** - * Creates an ExportDataObjectsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ExportDataObjectsMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest + * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest} ExportDataObjectsRequest + * @returns {google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata} ExportDataObjectsMetadata */ - ExportDataObjectsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest) + ExportDataObjectsMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata) return object; - var message = new $root.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest(); - if (object.gcsDestination != null) { - if (typeof object.gcsDestination !== "object") - throw TypeError(".google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.gcsDestination: object expected"); - message.gcsDestination = $root.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination.fromObject(object.gcsDestination); + var message = new $root.google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata(); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.finishTime != null) { + if (typeof object.finishTime !== "object") + throw TypeError(".google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata.finishTime: object expected"); + message.finishTime = $root.google.protobuf.Timestamp.fromObject(object.finishTime); } - if (object.name != null) - message.name = String(object.name); return message; }; /** - * Creates a plain object from an ExportDataObjectsRequest message. Also converts values to other types if specified. + * Creates a plain object from an ExportDataObjectsMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest + * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata * @static - * @param {google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest} message ExportDataObjectsRequest + * @param {google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata} message ExportDataObjectsMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExportDataObjectsRequest.toObject = function toObject(message, options) { + ExportDataObjectsMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.gcsDestination != null && message.hasOwnProperty("gcsDestination")) { - object.gcsDestination = $root.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination.toObject(message.gcsDestination, options); - if (options.oneofs) - object.destination = "gcsDestination"; + if (options.defaults) { + object.createTime = null; + object.finishTime = null; } + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.finishTime != null && message.hasOwnProperty("finishTime")) + object.finishTime = $root.google.protobuf.Timestamp.toObject(message.finishTime, options); return object; }; /** - * Converts this ExportDataObjectsRequest to JSON. + * Converts this ExportDataObjectsMetadata to JSON. * @function toJSON - * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest + * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata * @instance * @returns {Object.} JSON object */ - ExportDataObjectsRequest.prototype.toJSON = function toJSON() { + ExportDataObjectsMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExportDataObjectsRequest + * Gets the default type url for ExportDataObjectsMetadata * @function getTypeUrl - * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest + * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExportDataObjectsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ExportDataObjectsMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest"; + return typeUrlPrefix + "/google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata"; }; - ExportDataObjectsRequest.GcsExportDestination = (function() { - - /** - * Properties of a GcsExportDestination. - * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest - * @interface IGcsExportDestination - * @property {string|null} [exportUri] GcsExportDestination exportUri - * @property {google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination.Format|null} [format] GcsExportDestination format - */ - - /** - * Constructs a new GcsExportDestination. - * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest - * @classdesc Represents a GcsExportDestination. - * @implements IGcsExportDestination - * @constructor - * @param {google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.IGcsExportDestination=} [properties] Properties to set - */ - function GcsExportDestination(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GcsExportDestination exportUri. - * @member {string} exportUri - * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination - * @instance - */ - GcsExportDestination.prototype.exportUri = ""; - - /** - * GcsExportDestination format. - * @member {google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination.Format} format - * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination - * @instance - */ - GcsExportDestination.prototype.format = 0; - - /** - * Creates a new GcsExportDestination instance using the specified properties. - * @function create - * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination - * @static - * @param {google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.IGcsExportDestination=} [properties] Properties to set - * @returns {google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination} GcsExportDestination instance - */ - GcsExportDestination.create = function create(properties) { - return new GcsExportDestination(properties); - }; + return ExportDataObjectsMetadata; + })(); - /** - * Encodes the specified GcsExportDestination message. Does not implicitly {@link google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination.verify|verify} messages. - * @function encode - * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination - * @static - * @param {google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.IGcsExportDestination} message GcsExportDestination message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GcsExportDestination.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.exportUri != null && Object.hasOwnProperty.call(message, "exportUri")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.exportUri); - if (message.format != null && Object.hasOwnProperty.call(message, "format")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.format); - return writer; - }; + v1beta.ExportDataObjectsResponse = (function() { - /** - * Encodes the specified GcsExportDestination message, length delimited. Does not implicitly {@link google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination - * @static - * @param {google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.IGcsExportDestination} message GcsExportDestination message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GcsExportDestination.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Properties of an ExportDataObjectsResponse. + * @memberof google.cloud.vectorsearch.v1beta + * @interface IExportDataObjectsResponse + */ - /** - * Decodes a GcsExportDestination message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination} GcsExportDestination - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GcsExportDestination.decode = function decode(reader, length, error) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination(); - while (reader.pos < end) { - var tag = reader.uint32(); - if (tag === error) - break; - switch (tag >>> 3) { - case 1: { - message.exportUri = reader.string(); - break; - } - case 2: { - message.format = reader.int32(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Constructs a new ExportDataObjectsResponse. + * @memberof google.cloud.vectorsearch.v1beta + * @classdesc Represents an ExportDataObjectsResponse. + * @implements IExportDataObjectsResponse + * @constructor + * @param {google.cloud.vectorsearch.v1beta.IExportDataObjectsResponse=} [properties] Properties to set + */ + function ExportDataObjectsResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Decodes a GcsExportDestination message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination} GcsExportDestination - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GcsExportDestination.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a new ExportDataObjectsResponse instance using the specified properties. + * @function create + * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse + * @static + * @param {google.cloud.vectorsearch.v1beta.IExportDataObjectsResponse=} [properties] Properties to set + * @returns {google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse} ExportDataObjectsResponse instance + */ + ExportDataObjectsResponse.create = function create(properties) { + return new ExportDataObjectsResponse(properties); + }; - /** - * Verifies a GcsExportDestination message. - * @function verify - * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GcsExportDestination.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.exportUri != null && message.hasOwnProperty("exportUri")) - if (!$util.isString(message.exportUri)) - return "exportUri: string expected"; - if (message.format != null && message.hasOwnProperty("format")) - switch (message.format) { - default: - return "format: enum value expected"; - case 0: - case 1: - break; - } - return null; - }; + /** + * Encodes the specified ExportDataObjectsResponse message. Does not implicitly {@link google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse + * @static + * @param {google.cloud.vectorsearch.v1beta.IExportDataObjectsResponse} message ExportDataObjectsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExportDataObjectsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; - /** - * Creates a GcsExportDestination message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination} GcsExportDestination - */ - GcsExportDestination.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination) - return object; - var message = new $root.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination(); - if (object.exportUri != null) - message.exportUri = String(object.exportUri); - switch (object.format) { - default: - if (typeof object.format === "number") { - message.format = object.format; - break; - } - break; - case "FORMAT_UNSPECIFIED": - case 0: - message.format = 0; + /** + * Encodes the specified ExportDataObjectsResponse message, length delimited. Does not implicitly {@link google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse + * @static + * @param {google.cloud.vectorsearch.v1beta.IExportDataObjectsResponse} message ExportDataObjectsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExportDataObjectsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExportDataObjectsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse} ExportDataObjectsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExportDataObjectsResponse.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) break; - case "JSON": - case 1: - message.format = 1; + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); break; } - return message; - }; + } + return message; + }; - /** - * Creates a plain object from a GcsExportDestination message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination - * @static - * @param {google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination} message GcsExportDestination - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GcsExportDestination.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.exportUri = ""; - object.format = options.enums === String ? "FORMAT_UNSPECIFIED" : 0; - } - if (message.exportUri != null && message.hasOwnProperty("exportUri")) - object.exportUri = message.exportUri; - if (message.format != null && message.hasOwnProperty("format")) - object.format = options.enums === String ? $root.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination.Format[message.format] === undefined ? message.format : $root.google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination.Format[message.format] : message.format; - return object; - }; + /** + * Decodes an ExportDataObjectsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse} ExportDataObjectsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExportDataObjectsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Converts this GcsExportDestination to JSON. - * @function toJSON - * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination - * @instance - * @returns {Object.} JSON object - */ - GcsExportDestination.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Verifies an ExportDataObjectsResponse message. + * @function verify + * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExportDataObjectsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; - /** - * Gets the default type url for GcsExportDestination - * @function getTypeUrl - * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - GcsExportDestination.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination"; - }; + /** + * Creates an ExportDataObjectsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse} ExportDataObjectsResponse + */ + ExportDataObjectsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse) + return object; + return new $root.google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse(); + }; - /** - * Format enum. - * @name google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination.Format - * @enum {number} - * @property {number} FORMAT_UNSPECIFIED=0 FORMAT_UNSPECIFIED value - * @property {number} JSON=1 JSON value - */ - GcsExportDestination.Format = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "FORMAT_UNSPECIFIED"] = 0; - values[valuesById[1] = "JSON"] = 1; - return values; - })(); + /** + * Creates a plain object from an ExportDataObjectsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse + * @static + * @param {google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse} message ExportDataObjectsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExportDataObjectsResponse.toObject = function toObject() { + return {}; + }; - return GcsExportDestination; - })(); + /** + * Converts this ExportDataObjectsResponse to JSON. + * @function toJSON + * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse + * @instance + * @returns {Object.} JSON object + */ + ExportDataObjectsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return ExportDataObjectsRequest; + /** + * Gets the default type url for ExportDataObjectsResponse + * @function getTypeUrl + * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ExportDataObjectsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse"; + }; + + return ExportDataObjectsResponse; })(); - v1beta.ExportDataObjectsMetadata = (function() { + v1beta.DedicatedInfrastructure = (function() { /** - * Properties of an ExportDataObjectsMetadata. + * Properties of a DedicatedInfrastructure. * @memberof google.cloud.vectorsearch.v1beta - * @interface IExportDataObjectsMetadata - * @property {google.protobuf.ITimestamp|null} [createTime] ExportDataObjectsMetadata createTime - * @property {google.protobuf.ITimestamp|null} [finishTime] ExportDataObjectsMetadata finishTime + * @interface IDedicatedInfrastructure + * @property {google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.Mode|null} [mode] DedicatedInfrastructure mode + * @property {google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.IAutoscalingSpec|null} [autoscalingSpec] DedicatedInfrastructure autoscalingSpec */ /** - * Constructs a new ExportDataObjectsMetadata. + * Constructs a new DedicatedInfrastructure. * @memberof google.cloud.vectorsearch.v1beta - * @classdesc Represents an ExportDataObjectsMetadata. - * @implements IExportDataObjectsMetadata + * @classdesc Represents a DedicatedInfrastructure. + * @implements IDedicatedInfrastructure * @constructor - * @param {google.cloud.vectorsearch.v1beta.IExportDataObjectsMetadata=} [properties] Properties to set + * @param {google.cloud.vectorsearch.v1beta.IDedicatedInfrastructure=} [properties] Properties to set */ - function ExportDataObjectsMetadata(properties) { + function DedicatedInfrastructure(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -34526,91 +34985,100 @@ } /** - * ExportDataObjectsMetadata createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata + * DedicatedInfrastructure mode. + * @member {google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.Mode|null|undefined} mode + * @memberof google.cloud.vectorsearch.v1beta.DedicatedInfrastructure * @instance */ - ExportDataObjectsMetadata.prototype.createTime = null; + DedicatedInfrastructure.prototype.mode = null; /** - * ExportDataObjectsMetadata finishTime. - * @member {google.protobuf.ITimestamp|null|undefined} finishTime - * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata + * DedicatedInfrastructure autoscalingSpec. + * @member {google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.IAutoscalingSpec|null|undefined} autoscalingSpec + * @memberof google.cloud.vectorsearch.v1beta.DedicatedInfrastructure * @instance */ - ExportDataObjectsMetadata.prototype.finishTime = null; + DedicatedInfrastructure.prototype.autoscalingSpec = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(DedicatedInfrastructure.prototype, "_mode", { + get: $util.oneOfGetter($oneOfFields = ["mode"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new ExportDataObjectsMetadata instance using the specified properties. + * Creates a new DedicatedInfrastructure instance using the specified properties. * @function create - * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata + * @memberof google.cloud.vectorsearch.v1beta.DedicatedInfrastructure * @static - * @param {google.cloud.vectorsearch.v1beta.IExportDataObjectsMetadata=} [properties] Properties to set - * @returns {google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata} ExportDataObjectsMetadata instance + * @param {google.cloud.vectorsearch.v1beta.IDedicatedInfrastructure=} [properties] Properties to set + * @returns {google.cloud.vectorsearch.v1beta.DedicatedInfrastructure} DedicatedInfrastructure instance */ - ExportDataObjectsMetadata.create = function create(properties) { - return new ExportDataObjectsMetadata(properties); + DedicatedInfrastructure.create = function create(properties) { + return new DedicatedInfrastructure(properties); }; /** - * Encodes the specified ExportDataObjectsMetadata message. Does not implicitly {@link google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata.verify|verify} messages. + * Encodes the specified DedicatedInfrastructure message. Does not implicitly {@link google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.verify|verify} messages. * @function encode - * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata + * @memberof google.cloud.vectorsearch.v1beta.DedicatedInfrastructure * @static - * @param {google.cloud.vectorsearch.v1beta.IExportDataObjectsMetadata} message ExportDataObjectsMetadata message or plain object to encode + * @param {google.cloud.vectorsearch.v1beta.IDedicatedInfrastructure} message DedicatedInfrastructure message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportDataObjectsMetadata.encode = function encode(message, writer) { + DedicatedInfrastructure.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.finishTime != null && Object.hasOwnProperty.call(message, "finishTime")) - $root.google.protobuf.Timestamp.encode(message.finishTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.mode != null && Object.hasOwnProperty.call(message, "mode")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.mode); + if (message.autoscalingSpec != null && Object.hasOwnProperty.call(message, "autoscalingSpec")) + $root.google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec.encode(message.autoscalingSpec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ExportDataObjectsMetadata message, length delimited. Does not implicitly {@link google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata.verify|verify} messages. + * Encodes the specified DedicatedInfrastructure message, length delimited. Does not implicitly {@link google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata + * @memberof google.cloud.vectorsearch.v1beta.DedicatedInfrastructure * @static - * @param {google.cloud.vectorsearch.v1beta.IExportDataObjectsMetadata} message ExportDataObjectsMetadata message or plain object to encode + * @param {google.cloud.vectorsearch.v1beta.IDedicatedInfrastructure} message DedicatedInfrastructure message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportDataObjectsMetadata.encodeDelimited = function encodeDelimited(message, writer) { + DedicatedInfrastructure.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExportDataObjectsMetadata message from the specified reader or buffer. + * Decodes a DedicatedInfrastructure message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata + * @memberof google.cloud.vectorsearch.v1beta.DedicatedInfrastructure * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata} ExportDataObjectsMetadata + * @returns {google.cloud.vectorsearch.v1beta.DedicatedInfrastructure} DedicatedInfrastructure * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportDataObjectsMetadata.decode = function decode(reader, length, error) { + DedicatedInfrastructure.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vectorsearch.v1beta.DedicatedInfrastructure(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { case 1: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.mode = reader.int32(); break; } case 2: { - message.finishTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.autoscalingSpec = $root.google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec.decode(reader, reader.uint32()); break; } default: @@ -34622,140 +35090,409 @@ }; /** - * Decodes an ExportDataObjectsMetadata message from the specified reader or buffer, length delimited. + * Decodes a DedicatedInfrastructure message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata + * @memberof google.cloud.vectorsearch.v1beta.DedicatedInfrastructure * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata} ExportDataObjectsMetadata + * @returns {google.cloud.vectorsearch.v1beta.DedicatedInfrastructure} DedicatedInfrastructure * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportDataObjectsMetadata.decodeDelimited = function decodeDelimited(reader) { + DedicatedInfrastructure.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExportDataObjectsMetadata message. + * Verifies a DedicatedInfrastructure message. * @function verify - * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata + * @memberof google.cloud.vectorsearch.v1beta.DedicatedInfrastructure * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExportDataObjectsMetadata.verify = function verify(message) { + DedicatedInfrastructure.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; + var properties = {}; + if (message.mode != null && message.hasOwnProperty("mode")) { + properties._mode = 1; + switch (message.mode) { + default: + return "mode: enum value expected"; + case 0: + case 1: + case 2: + break; + } } - if (message.finishTime != null && message.hasOwnProperty("finishTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.finishTime); + if (message.autoscalingSpec != null && message.hasOwnProperty("autoscalingSpec")) { + var error = $root.google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec.verify(message.autoscalingSpec); if (error) - return "finishTime." + error; + return "autoscalingSpec." + error; } return null; }; /** - * Creates an ExportDataObjectsMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a DedicatedInfrastructure message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata + * @memberof google.cloud.vectorsearch.v1beta.DedicatedInfrastructure * @static * @param {Object.} object Plain object - * @returns {google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata} ExportDataObjectsMetadata + * @returns {google.cloud.vectorsearch.v1beta.DedicatedInfrastructure} DedicatedInfrastructure */ - ExportDataObjectsMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata) + DedicatedInfrastructure.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vectorsearch.v1beta.DedicatedInfrastructure) + return object; + var message = new $root.google.cloud.vectorsearch.v1beta.DedicatedInfrastructure(); + switch (object.mode) { + default: + if (typeof object.mode === "number") { + message.mode = object.mode; + break; + } + break; + case "MODE_UNSPECIFIED": + case 0: + message.mode = 0; + break; + case "STORAGE_OPTIMIZED": + case 1: + message.mode = 1; + break; + case "PERFORMANCE_OPTIMIZED": + case 2: + message.mode = 2; + break; + } + if (object.autoscalingSpec != null) { + if (typeof object.autoscalingSpec !== "object") + throw TypeError(".google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.autoscalingSpec: object expected"); + message.autoscalingSpec = $root.google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec.fromObject(object.autoscalingSpec); + } + return message; + }; + + /** + * Creates a plain object from a DedicatedInfrastructure message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vectorsearch.v1beta.DedicatedInfrastructure + * @static + * @param {google.cloud.vectorsearch.v1beta.DedicatedInfrastructure} message DedicatedInfrastructure + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DedicatedInfrastructure.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.autoscalingSpec = null; + if (message.mode != null && message.hasOwnProperty("mode")) { + object.mode = options.enums === String ? $root.google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.Mode[message.mode] === undefined ? message.mode : $root.google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.Mode[message.mode] : message.mode; + if (options.oneofs) + object._mode = "mode"; + } + if (message.autoscalingSpec != null && message.hasOwnProperty("autoscalingSpec")) + object.autoscalingSpec = $root.google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec.toObject(message.autoscalingSpec, options); + return object; + }; + + /** + * Converts this DedicatedInfrastructure to JSON. + * @function toJSON + * @memberof google.cloud.vectorsearch.v1beta.DedicatedInfrastructure + * @instance + * @returns {Object.} JSON object + */ + DedicatedInfrastructure.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DedicatedInfrastructure + * @function getTypeUrl + * @memberof google.cloud.vectorsearch.v1beta.DedicatedInfrastructure + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DedicatedInfrastructure.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vectorsearch.v1beta.DedicatedInfrastructure"; + }; + + DedicatedInfrastructure.AutoscalingSpec = (function() { + + /** + * Properties of an AutoscalingSpec. + * @memberof google.cloud.vectorsearch.v1beta.DedicatedInfrastructure + * @interface IAutoscalingSpec + * @property {number|null} [minReplicaCount] AutoscalingSpec minReplicaCount + * @property {number|null} [maxReplicaCount] AutoscalingSpec maxReplicaCount + */ + + /** + * Constructs a new AutoscalingSpec. + * @memberof google.cloud.vectorsearch.v1beta.DedicatedInfrastructure + * @classdesc Represents an AutoscalingSpec. + * @implements IAutoscalingSpec + * @constructor + * @param {google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.IAutoscalingSpec=} [properties] Properties to set + */ + function AutoscalingSpec(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * AutoscalingSpec minReplicaCount. + * @member {number} minReplicaCount + * @memberof google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec + * @instance + */ + AutoscalingSpec.prototype.minReplicaCount = 0; + + /** + * AutoscalingSpec maxReplicaCount. + * @member {number} maxReplicaCount + * @memberof google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec + * @instance + */ + AutoscalingSpec.prototype.maxReplicaCount = 0; + + /** + * Creates a new AutoscalingSpec instance using the specified properties. + * @function create + * @memberof google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec + * @static + * @param {google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.IAutoscalingSpec=} [properties] Properties to set + * @returns {google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec} AutoscalingSpec instance + */ + AutoscalingSpec.create = function create(properties) { + return new AutoscalingSpec(properties); + }; + + /** + * Encodes the specified AutoscalingSpec message. Does not implicitly {@link google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec + * @static + * @param {google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.IAutoscalingSpec} message AutoscalingSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoscalingSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.minReplicaCount != null && Object.hasOwnProperty.call(message, "minReplicaCount")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.minReplicaCount); + if (message.maxReplicaCount != null && Object.hasOwnProperty.call(message, "maxReplicaCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.maxReplicaCount); + return writer; + }; + + /** + * Encodes the specified AutoscalingSpec message, length delimited. Does not implicitly {@link google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec + * @static + * @param {google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.IAutoscalingSpec} message AutoscalingSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoscalingSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AutoscalingSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec} AutoscalingSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoscalingSpec.decode = function decode(reader, length, error) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + if (tag === error) + break; + switch (tag >>> 3) { + case 1: { + message.minReplicaCount = reader.int32(); + break; + } + case 2: { + message.maxReplicaCount = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AutoscalingSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec} AutoscalingSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoscalingSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AutoscalingSpec message. + * @function verify + * @memberof google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AutoscalingSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.minReplicaCount != null && message.hasOwnProperty("minReplicaCount")) + if (!$util.isInteger(message.minReplicaCount)) + return "minReplicaCount: integer expected"; + if (message.maxReplicaCount != null && message.hasOwnProperty("maxReplicaCount")) + if (!$util.isInteger(message.maxReplicaCount)) + return "maxReplicaCount: integer expected"; + return null; + }; + + /** + * Creates an AutoscalingSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec} AutoscalingSpec + */ + AutoscalingSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec) + return object; + var message = new $root.google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec(); + if (object.minReplicaCount != null) + message.minReplicaCount = object.minReplicaCount | 0; + if (object.maxReplicaCount != null) + message.maxReplicaCount = object.maxReplicaCount | 0; + return message; + }; + + /** + * Creates a plain object from an AutoscalingSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec + * @static + * @param {google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec} message AutoscalingSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AutoscalingSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.minReplicaCount = 0; + object.maxReplicaCount = 0; + } + if (message.minReplicaCount != null && message.hasOwnProperty("minReplicaCount")) + object.minReplicaCount = message.minReplicaCount; + if (message.maxReplicaCount != null && message.hasOwnProperty("maxReplicaCount")) + object.maxReplicaCount = message.maxReplicaCount; return object; - var message = new $root.google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata(); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.finishTime != null) { - if (typeof object.finishTime !== "object") - throw TypeError(".google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata.finishTime: object expected"); - message.finishTime = $root.google.protobuf.Timestamp.fromObject(object.finishTime); - } - return message; - }; + }; - /** - * Creates a plain object from an ExportDataObjectsMetadata message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata - * @static - * @param {google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata} message ExportDataObjectsMetadata - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ExportDataObjectsMetadata.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.createTime = null; - object.finishTime = null; - } - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.finishTime != null && message.hasOwnProperty("finishTime")) - object.finishTime = $root.google.protobuf.Timestamp.toObject(message.finishTime, options); - return object; - }; + /** + * Converts this AutoscalingSpec to JSON. + * @function toJSON + * @memberof google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec + * @instance + * @returns {Object.} JSON object + */ + AutoscalingSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this ExportDataObjectsMetadata to JSON. - * @function toJSON - * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata - * @instance - * @returns {Object.} JSON object - */ - ExportDataObjectsMetadata.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for AutoscalingSpec + * @function getTypeUrl + * @memberof google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AutoscalingSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.AutoscalingSpec"; + }; + + return AutoscalingSpec; + })(); /** - * Gets the default type url for ExportDataObjectsMetadata - * @function getTypeUrl - * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Mode enum. + * @name google.cloud.vectorsearch.v1beta.DedicatedInfrastructure.Mode + * @enum {number} + * @property {number} MODE_UNSPECIFIED=0 MODE_UNSPECIFIED value + * @property {number} STORAGE_OPTIMIZED=1 STORAGE_OPTIMIZED value + * @property {number} PERFORMANCE_OPTIMIZED=2 PERFORMANCE_OPTIMIZED value */ - ExportDataObjectsMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.vectorsearch.v1beta.ExportDataObjectsMetadata"; - }; + DedicatedInfrastructure.Mode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MODE_UNSPECIFIED"] = 0; + values[valuesById[1] = "STORAGE_OPTIMIZED"] = 1; + values[valuesById[2] = "PERFORMANCE_OPTIMIZED"] = 2; + return values; + })(); - return ExportDataObjectsMetadata; + return DedicatedInfrastructure; })(); - v1beta.ExportDataObjectsResponse = (function() { + v1beta.DenseScannIndex = (function() { /** - * Properties of an ExportDataObjectsResponse. + * Properties of a DenseScannIndex. * @memberof google.cloud.vectorsearch.v1beta - * @interface IExportDataObjectsResponse + * @interface IDenseScannIndex + * @property {google.cloud.vectorsearch.v1beta.DenseScannIndex.FeatureNormType|null} [featureNormType] DenseScannIndex featureNormType */ /** - * Constructs a new ExportDataObjectsResponse. + * Constructs a new DenseScannIndex. * @memberof google.cloud.vectorsearch.v1beta - * @classdesc Represents an ExportDataObjectsResponse. - * @implements IExportDataObjectsResponse + * @classdesc Represents a DenseScannIndex. + * @implements IDenseScannIndex * @constructor - * @param {google.cloud.vectorsearch.v1beta.IExportDataObjectsResponse=} [properties] Properties to set + * @param {google.cloud.vectorsearch.v1beta.IDenseScannIndex=} [properties] Properties to set */ - function ExportDataObjectsResponse(properties) { + function DenseScannIndex(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -34763,65 +35500,79 @@ } /** - * Creates a new ExportDataObjectsResponse instance using the specified properties. + * DenseScannIndex featureNormType. + * @member {google.cloud.vectorsearch.v1beta.DenseScannIndex.FeatureNormType} featureNormType + * @memberof google.cloud.vectorsearch.v1beta.DenseScannIndex + * @instance + */ + DenseScannIndex.prototype.featureNormType = 0; + + /** + * Creates a new DenseScannIndex instance using the specified properties. * @function create - * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse + * @memberof google.cloud.vectorsearch.v1beta.DenseScannIndex * @static - * @param {google.cloud.vectorsearch.v1beta.IExportDataObjectsResponse=} [properties] Properties to set - * @returns {google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse} ExportDataObjectsResponse instance + * @param {google.cloud.vectorsearch.v1beta.IDenseScannIndex=} [properties] Properties to set + * @returns {google.cloud.vectorsearch.v1beta.DenseScannIndex} DenseScannIndex instance */ - ExportDataObjectsResponse.create = function create(properties) { - return new ExportDataObjectsResponse(properties); + DenseScannIndex.create = function create(properties) { + return new DenseScannIndex(properties); }; /** - * Encodes the specified ExportDataObjectsResponse message. Does not implicitly {@link google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse.verify|verify} messages. + * Encodes the specified DenseScannIndex message. Does not implicitly {@link google.cloud.vectorsearch.v1beta.DenseScannIndex.verify|verify} messages. * @function encode - * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse + * @memberof google.cloud.vectorsearch.v1beta.DenseScannIndex * @static - * @param {google.cloud.vectorsearch.v1beta.IExportDataObjectsResponse} message ExportDataObjectsResponse message or plain object to encode + * @param {google.cloud.vectorsearch.v1beta.IDenseScannIndex} message DenseScannIndex message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportDataObjectsResponse.encode = function encode(message, writer) { + DenseScannIndex.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.featureNormType != null && Object.hasOwnProperty.call(message, "featureNormType")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.featureNormType); return writer; }; /** - * Encodes the specified ExportDataObjectsResponse message, length delimited. Does not implicitly {@link google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse.verify|verify} messages. + * Encodes the specified DenseScannIndex message, length delimited. Does not implicitly {@link google.cloud.vectorsearch.v1beta.DenseScannIndex.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse + * @memberof google.cloud.vectorsearch.v1beta.DenseScannIndex * @static - * @param {google.cloud.vectorsearch.v1beta.IExportDataObjectsResponse} message ExportDataObjectsResponse message or plain object to encode + * @param {google.cloud.vectorsearch.v1beta.IDenseScannIndex} message DenseScannIndex message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportDataObjectsResponse.encodeDelimited = function encodeDelimited(message, writer) { + DenseScannIndex.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExportDataObjectsResponse message from the specified reader or buffer. + * Decodes a DenseScannIndex message from the specified reader or buffer. * @function decode - * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse + * @memberof google.cloud.vectorsearch.v1beta.DenseScannIndex * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse} ExportDataObjectsResponse + * @returns {google.cloud.vectorsearch.v1beta.DenseScannIndex} DenseScannIndex * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportDataObjectsResponse.decode = function decode(reader, length, error) { + DenseScannIndex.decode = function decode(reader, length, error) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.vectorsearch.v1beta.DenseScannIndex(); while (reader.pos < end) { var tag = reader.uint32(); if (tag === error) break; switch (tag >>> 3) { + case 2: { + message.featureNormType = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -34831,89 +35582,142 @@ }; /** - * Decodes an ExportDataObjectsResponse message from the specified reader or buffer, length delimited. + * Decodes a DenseScannIndex message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse + * @memberof google.cloud.vectorsearch.v1beta.DenseScannIndex * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse} ExportDataObjectsResponse + * @returns {google.cloud.vectorsearch.v1beta.DenseScannIndex} DenseScannIndex * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportDataObjectsResponse.decodeDelimited = function decodeDelimited(reader) { + DenseScannIndex.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExportDataObjectsResponse message. + * Verifies a DenseScannIndex message. * @function verify - * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse + * @memberof google.cloud.vectorsearch.v1beta.DenseScannIndex * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExportDataObjectsResponse.verify = function verify(message) { + DenseScannIndex.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.featureNormType != null && message.hasOwnProperty("featureNormType")) + switch (message.featureNormType) { + default: + return "featureNormType: enum value expected"; + case 0: + case 1: + case 2: + break; + } return null; }; /** - * Creates an ExportDataObjectsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DenseScannIndex message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse + * @memberof google.cloud.vectorsearch.v1beta.DenseScannIndex * @static * @param {Object.} object Plain object - * @returns {google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse} ExportDataObjectsResponse + * @returns {google.cloud.vectorsearch.v1beta.DenseScannIndex} DenseScannIndex */ - ExportDataObjectsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse) + DenseScannIndex.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.vectorsearch.v1beta.DenseScannIndex) return object; - return new $root.google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse(); + var message = new $root.google.cloud.vectorsearch.v1beta.DenseScannIndex(); + switch (object.featureNormType) { + default: + if (typeof object.featureNormType === "number") { + message.featureNormType = object.featureNormType; + break; + } + break; + case "FEATURE_NORM_TYPE_UNSPECIFIED": + case 0: + message.featureNormType = 0; + break; + case "NONE": + case 1: + message.featureNormType = 1; + break; + case "UNIT_L2_NORM": + case 2: + message.featureNormType = 2; + break; + } + return message; }; /** - * Creates a plain object from an ExportDataObjectsResponse message. Also converts values to other types if specified. + * Creates a plain object from a DenseScannIndex message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse + * @memberof google.cloud.vectorsearch.v1beta.DenseScannIndex * @static - * @param {google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse} message ExportDataObjectsResponse + * @param {google.cloud.vectorsearch.v1beta.DenseScannIndex} message DenseScannIndex * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExportDataObjectsResponse.toObject = function toObject() { - return {}; + DenseScannIndex.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.featureNormType = options.enums === String ? "FEATURE_NORM_TYPE_UNSPECIFIED" : 0; + if (message.featureNormType != null && message.hasOwnProperty("featureNormType")) + object.featureNormType = options.enums === String ? $root.google.cloud.vectorsearch.v1beta.DenseScannIndex.FeatureNormType[message.featureNormType] === undefined ? message.featureNormType : $root.google.cloud.vectorsearch.v1beta.DenseScannIndex.FeatureNormType[message.featureNormType] : message.featureNormType; + return object; }; /** - * Converts this ExportDataObjectsResponse to JSON. + * Converts this DenseScannIndex to JSON. * @function toJSON - * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse + * @memberof google.cloud.vectorsearch.v1beta.DenseScannIndex * @instance * @returns {Object.} JSON object */ - ExportDataObjectsResponse.prototype.toJSON = function toJSON() { + DenseScannIndex.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExportDataObjectsResponse + * Gets the default type url for DenseScannIndex * @function getTypeUrl - * @memberof google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse + * @memberof google.cloud.vectorsearch.v1beta.DenseScannIndex * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExportDataObjectsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DenseScannIndex.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.vectorsearch.v1beta.ExportDataObjectsResponse"; + return typeUrlPrefix + "/google.cloud.vectorsearch.v1beta.DenseScannIndex"; }; - return ExportDataObjectsResponse; + /** + * FeatureNormType enum. + * @name google.cloud.vectorsearch.v1beta.DenseScannIndex.FeatureNormType + * @enum {number} + * @property {number} FEATURE_NORM_TYPE_UNSPECIFIED=0 FEATURE_NORM_TYPE_UNSPECIFIED value + * @property {number} NONE=1 NONE value + * @property {number} UNIT_L2_NORM=2 UNIT_L2_NORM value + */ + DenseScannIndex.FeatureNormType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "FEATURE_NORM_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "NONE"] = 1; + values[valuesById[2] = "UNIT_L2_NORM"] = 2; + return values; + })(); + + return DenseScannIndex; })(); return v1beta; diff --git a/packages/google-cloud-vectorsearch/protos/protos.json b/packages/google-cloud-vectorsearch/protos/protos.json index fdbdec46106..0dc8732372a 100644 --- a/packages/google-cloud-vectorsearch/protos/protos.json +++ b/packages/google-cloud-vectorsearch/protos/protos.json @@ -771,8 +771,7 @@ "oneofs": { "ranker": { "oneof": [ - "rrf", - "vertex" + "rrf" ] } }, @@ -780,10 +779,6 @@ "rrf": { "type": "ReciprocalRankFusion", "id": 1 - }, - "vertex": { - "type": "VertexRanker", - "id": 2 } } }, @@ -799,38 +794,6 @@ } } }, - "VertexRanker": { - "fields": { - "query": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "titleTemplate": { - "type": "string", - "id": 2, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - }, - "contentTemplate": { - "type": "string", - "id": 3, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - }, - "model": { - "type": "string", - "id": 4, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, "BatchSearchDataObjectsResponse": { "fields": { "results": { @@ -2118,10 +2081,13 @@ }, "v1beta": { "options": { + "csharp_namespace": "Google.Cloud.VectorSearch.V1Beta", "go_package": "cloud.google.com/go/vectorsearch/apiv1beta/vectorsearchpb;vectorsearchpb", "java_multiple_files": true, "java_outer_classname": "VectorSearchServiceProto", - "java_package": "com.google.cloud.vectorsearch.v1beta" + "java_package": "com.google.cloud.vectorsearch.v1beta", + "php_namespace": "Google\\Cloud\\VectorSearch\\V1beta", + "ruby_package": "Google::Cloud::VectorSearch::V1beta" }, "nested": { "DistanceMetric": { @@ -2150,7 +2116,6 @@ "type": "string", "id": 2, "options": { - "deprecated": true, "(google.api.field_behavior)": "OUTPUT_ONLY" } }, @@ -2182,6 +2147,13 @@ "options": { "(google.api.field_behavior)": "OPTIONAL" } + }, + "etag": { + "type": "string", + "id": 8, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } }, @@ -2356,7 +2328,9 @@ "indexType": { "oneof": [ "useIndex", - "useKnn" + "useKnn", + "knnHint", + "indexHint" ] } }, @@ -2365,12 +2339,28 @@ "type": "IndexHint", "id": 1, "options": { + "deprecated": true, "(google.api.field_behavior)": "OPTIONAL" } }, "useKnn": { "type": "bool", "id": 2, + "options": { + "deprecated": true, + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "knnHint": { + "type": "KnnHint", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "indexHint": { + "type": "IndexHint", + "id": 4, "options": { "(google.api.field_behavior)": "OPTIONAL" } @@ -2378,15 +2368,53 @@ }, "nested": { "IndexHint": { + "oneofs": { + "params": { + "oneof": [ + "denseScannParams" + ] + } + }, "fields": { + "denseScannParams": { + "type": "DenseScannParams", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, "name": { "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "vectorsearch.googleapis.com/Index" + } + } + }, + "nested": { + "DenseScannParams": { + "fields": { + "searchLeavesPct": { + "type": "int32", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "initialCandidateCount": { + "type": "int32", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } } } } + }, + "KnnHint": { + "fields": {} } } }, @@ -2475,7 +2503,7 @@ } }, "distanceMetric": { - "type": "google.cloud.vectorsearch.v1beta.DistanceMetric", + "type": "DistanceMetric", "id": 11, "options": { "(google.api.field_behavior)": "OPTIONAL" @@ -2510,7 +2538,7 @@ "type": "EmbeddingTaskType", "id": 5, "options": { - "(google.api.field_behavior)": "OPTIONAL" + "(google.api.field_behavior)": "REQUIRED" } }, "outputFields": { @@ -2697,7 +2725,8 @@ "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.field_behavior)": "OUTPUT_ONLY", + "(google.api.resource_reference).type": "vectorsearch.googleapis.com/Index" } } } @@ -2761,7 +2790,10 @@ "aggregateResults": { "rule": "repeated", "type": "google.protobuf.Struct", - "id": 1 + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } } }, @@ -2810,11 +2842,17 @@ "dataObjects": { "rule": "repeated", "type": "DataObject", - "id": 4 + "id": 4, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } }, "nextPageToken": { "type": "string", - "id": 3 + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } } }, @@ -2876,8 +2914,7 @@ "oneofs": { "ranker": { "oneof": [ - "rrf", - "vertex" + "rrf" ] } }, @@ -2885,10 +2922,6 @@ "rrf": { "type": "ReciprocalRankFusion", "id": 1 - }, - "vertex": { - "type": "VertexRanker", - "id": 2 } } }, @@ -2904,38 +2937,6 @@ } } }, - "VertexRanker": { - "fields": { - "query": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "titleTemplate": { - "type": "string", - "id": 2, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - }, - "contentTemplate": { - "type": "string", - "id": 3, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - }, - "model": { - "type": "string", - "id": 4, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, "BatchSearchDataObjectsResponse": { "fields": { "results": { @@ -3177,7 +3178,10 @@ "dataObjects": { "rule": "repeated", "type": "DataObject", - "id": 1 + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } } }, @@ -3243,6 +3247,13 @@ "(google.api.field_behavior)": "REQUIRED", "(google.api.resource_reference).type": "vectorsearch.googleapis.com/DataObject" } + }, + "etag": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } }, @@ -3804,7 +3815,33 @@ "(google.api.resource).plural": "indexes", "(google.api.resource).singular": "index" }, + "oneofs": { + "infraType": { + "oneof": [ + "dedicatedInfrastructure" + ] + }, + "indexType": { + "oneof": [ + "denseScann" + ] + } + }, "fields": { + "dedicatedInfrastructure": { + "type": "DedicatedInfrastructure", + "id": 11, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "denseScann": { + "type": "DenseScannIndex", + "id": 12, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, "name": { "type": "string", "id": 1, @@ -3849,7 +3886,7 @@ } }, "distanceMetric": { - "type": "google.cloud.vectorsearch.v1beta.DistanceMetric", + "type": "DistanceMetric", "id": 4, "options": { "(google.api.field_behavior)": "OPTIONAL" @@ -4106,19 +4143,31 @@ "fields": { "createTime": { "type": "google.protobuf.Timestamp", - "id": 1 + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } }, "updateTime": { "type": "google.protobuf.Timestamp", - "id": 2 + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } }, "successCount": { "type": "int64", - "id": 3 + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } }, "failureCount": { "type": "int64", - "id": 4 + "id": 4, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } } }, @@ -4185,16 +4234,95 @@ "fields": { "createTime": { "type": "google.protobuf.Timestamp", - "id": 1 + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } }, "finishTime": { "type": "google.protobuf.Timestamp", - "id": 2 + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } } }, "ExportDataObjectsResponse": { "fields": {} + }, + "DedicatedInfrastructure": { + "oneofs": { + "_mode": { + "oneof": [ + "mode" + ] + } + }, + "fields": { + "mode": { + "type": "Mode", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true + } + }, + "autoscalingSpec": { + "type": "AutoscalingSpec", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + }, + "nested": { + "AutoscalingSpec": { + "fields": { + "minReplicaCount": { + "type": "int32", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "maxReplicaCount": { + "type": "int32", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "Mode": { + "values": { + "MODE_UNSPECIFIED": 0, + "STORAGE_OPTIMIZED": 1, + "PERFORMANCE_OPTIMIZED": 2 + } + } + } + }, + "DenseScannIndex": { + "fields": { + "featureNormType": { + "type": "FeatureNormType", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + }, + "nested": { + "FeatureNormType": { + "values": { + "FEATURE_NORM_TYPE_UNSPECIFIED": 0, + "NONE": 1, + "UNIT_L2_NORM": 2 + } + } + } } } } diff --git a/packages/google-cloud-vectorsearch/samples/generated/v1beta/data_object_search_service.query_data_objects.js b/packages/google-cloud-vectorsearch/samples/generated/v1beta/data_object_search_service.query_data_objects.js index 1c32f1812f9..252ce5a8634 100644 --- a/packages/google-cloud-vectorsearch/samples/generated/v1beta/data_object_search_service.query_data_objects.js +++ b/packages/google-cloud-vectorsearch/samples/generated/v1beta/data_object_search_service.query_data_objects.js @@ -43,7 +43,8 @@ function main(parent) { */ // const outputFields = {} /** - * Optional. The standard list page size. + * Optional. The standard list page size. Default is 100. + * The maximum value is 1000; values above 1000 will be coerced to 1000. */ // const pageSize = 1234 /** diff --git a/packages/google-cloud-vectorsearch/samples/generated/v1beta/data_object_search_service.search_data_objects.js b/packages/google-cloud-vectorsearch/samples/generated/v1beta/data_object_search_service.search_data_objects.js index 9efa448a040..a89f61f62e5 100644 --- a/packages/google-cloud-vectorsearch/samples/generated/v1beta/data_object_search_service.search_data_objects.js +++ b/packages/google-cloud-vectorsearch/samples/generated/v1beta/data_object_search_service.search_data_objects.js @@ -46,7 +46,9 @@ function main(parent) { */ // const parent = 'abc123' /** - * Optional. The standard list page size. + * Optional. The standard list page size. Only supported for KNN. If not set, + * up to search_type.top_k results will be returned. The maximum value is + * 1000; values above 1000 will be coerced to 1000. */ // const pageSize = 1234 /** diff --git a/packages/google-cloud-vectorsearch/samples/generated/v1beta/data_object_service.delete_data_object.js b/packages/google-cloud-vectorsearch/samples/generated/v1beta/data_object_service.delete_data_object.js index b3dab1ebdaf..6fe05745441 100644 --- a/packages/google-cloud-vectorsearch/samples/generated/v1beta/data_object_service.delete_data_object.js +++ b/packages/google-cloud-vectorsearch/samples/generated/v1beta/data_object_service.delete_data_object.js @@ -34,6 +34,12 @@ function main(name) { * `projects/{project}/locations/{location}/collections/{collection}/dataObjects/{dataObject}` */ // const name = 'abc123' + /** + * Optional. The current etag of the DataObject. + * If an etag is provided and does not match the current etag of the + * DataObject, deletion will be blocked and an ABORTED error will be returned. + */ + // const etag = 'abc123' // Imports the Vectorsearch library const {DataObjectServiceClient} = require('@google-cloud/vectorsearch').v1beta; diff --git a/packages/google-cloud-vectorsearch/samples/generated/v1beta/snippet_metadata_google.cloud.vectorsearch.v1beta.json b/packages/google-cloud-vectorsearch/samples/generated/v1beta/snippet_metadata_google.cloud.vectorsearch.v1beta.json index 8debf14e77b..9773f092214 100644 --- a/packages/google-cloud-vectorsearch/samples/generated/v1beta/snippet_metadata_google.cloud.vectorsearch.v1beta.json +++ b/packages/google-cloud-vectorsearch/samples/generated/v1beta/snippet_metadata_google.cloud.vectorsearch.v1beta.json @@ -22,7 +22,7 @@ "segments": [ { "start": 25, - "end": 81, + "end": 83, "type": "FULL" } ], @@ -82,7 +82,7 @@ "segments": [ { "start": 25, - "end": 78, + "end": 79, "type": "FULL" } ], @@ -454,7 +454,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 61, "type": "FULL" } ], @@ -466,6 +466,10 @@ { "name": "name", "type": "TYPE_STRING" + }, + { + "name": "etag", + "type": "TYPE_STRING" } ], "resultType": ".google.protobuf.Empty", diff --git a/packages/google-cloud-vectorsearch/src/v1beta/data_object_search_service_client.ts b/packages/google-cloud-vectorsearch/src/v1beta/data_object_search_service_client.ts index b1d0b05b5ab..5282d00eb1c 100644 --- a/packages/google-cloud-vectorsearch/src/v1beta/data_object_search_service_client.ts +++ b/packages/google-cloud-vectorsearch/src/v1beta/data_object_search_service_client.ts @@ -565,7 +565,9 @@ export class DataObjectSearchServiceClient { * Required. The resource name of the Collection for which to search. * Format: `projects/{project}/locations/{location}/collections/{collection}` * @param {number} [request.pageSize] - * Optional. The standard list page size. + * Optional. The standard list page size. Only supported for KNN. If not set, + * up to search_type.top_k results will be returned. The maximum value is + * 1000; values above 1000 will be coerced to 1000. * @param {string} [request.pageToken] * Optional. The standard list page token. * Typically obtained via @@ -675,7 +677,9 @@ export class DataObjectSearchServiceClient { * Required. The resource name of the Collection for which to search. * Format: `projects/{project}/locations/{location}/collections/{collection}` * @param {number} [request.pageSize] - * Optional. The standard list page size. + * Optional. The standard list page size. Only supported for KNN. If not set, + * up to search_type.top_k results will be returned. The maximum value is + * 1000; values above 1000 will be coerced to 1000. * @param {string} [request.pageToken] * Optional. The standard list page token. * Typically obtained via @@ -734,7 +738,9 @@ export class DataObjectSearchServiceClient { * Required. The resource name of the Collection for which to search. * Format: `projects/{project}/locations/{location}/collections/{collection}` * @param {number} [request.pageSize] - * Optional. The standard list page size. + * Optional. The standard list page size. Only supported for KNN. If not set, + * up to search_type.top_k results will be returned. The maximum value is + * 1000; values above 1000 will be coerced to 1000. * @param {string} [request.pageToken] * Optional. The standard list page token. * Typically obtained via @@ -791,7 +797,8 @@ export class DataObjectSearchServiceClient { * @param {google.cloud.vectorsearch.v1beta.OutputFields} [request.outputFields] * Optional. Mask specifying which fields to return. * @param {number} [request.pageSize] - * Optional. The standard list page size. + * Optional. The standard list page size. Default is 100. + * The maximum value is 1000; values above 1000 will be coerced to 1000. * @param {string} [request.pageToken] * Optional. The standard list page token. * Typically obtained via @@ -900,7 +907,8 @@ export class DataObjectSearchServiceClient { * @param {google.cloud.vectorsearch.v1beta.OutputFields} [request.outputFields] * Optional. Mask specifying which fields to return. * @param {number} [request.pageSize] - * Optional. The standard list page size. + * Optional. The standard list page size. Default is 100. + * The maximum value is 1000; values above 1000 will be coerced to 1000. * @param {string} [request.pageToken] * Optional. The standard list page token. * Typically obtained via @@ -958,7 +966,8 @@ export class DataObjectSearchServiceClient { * @param {google.cloud.vectorsearch.v1beta.OutputFields} [request.outputFields] * Optional. Mask specifying which fields to return. * @param {number} [request.pageSize] - * Optional. The standard list page size. + * Optional. The standard list page size. Default is 100. + * The maximum value is 1000; values above 1000 will be coerced to 1000. * @param {string} [request.pageToken] * Optional. The standard list page token. * Typically obtained via diff --git a/packages/google-cloud-vectorsearch/src/v1beta/data_object_service_client.ts b/packages/google-cloud-vectorsearch/src/v1beta/data_object_service_client.ts index 612aac1fea7..83759fb1cc6 100644 --- a/packages/google-cloud-vectorsearch/src/v1beta/data_object_service_client.ts +++ b/packages/google-cloud-vectorsearch/src/v1beta/data_object_service_client.ts @@ -844,6 +844,10 @@ export class DataObjectServiceClient { * Required. The name of the DataObject resource to be deleted. * Format: * `projects/{project}/locations/{location}/collections/{collection}/dataObjects/{dataObject}` + * @param {string} [request.etag] + * Optional. The current etag of the DataObject. + * If an etag is provided and does not match the current etag of the + * DataObject, deletion will be blocked and an ABORTED error will be returned. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array.