diff --git a/packages/google-cloud-aiplatform/README.md b/packages/google-cloud-aiplatform/README.md index 6979a9747dd..adf6a329d95 100644 --- a/packages/google-cloud-aiplatform/README.md +++ b/packages/google-cloud-aiplatform/README.md @@ -656,6 +656,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/ | Prediction_service.stream_direct_predict | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/prediction_service.stream_direct_predict.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/prediction_service.stream_direct_predict.js,packages/google-cloud-aiplatform/samples/README.md) | | Prediction_service.stream_direct_raw_predict | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/prediction_service.stream_direct_raw_predict.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/prediction_service.stream_direct_raw_predict.js,packages/google-cloud-aiplatform/samples/README.md) | | Prediction_service.stream_generate_content | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/prediction_service.stream_generate_content.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/prediction_service.stream_generate_content.js,packages/google-cloud-aiplatform/samples/README.md) | +| Prediction_service.stream_raw_predict | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/prediction_service.stream_raw_predict.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/prediction_service.stream_raw_predict.js,packages/google-cloud-aiplatform/samples/README.md) | | Prediction_service.streaming_predict | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/prediction_service.streaming_predict.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/prediction_service.streaming_predict.js,packages/google-cloud-aiplatform/samples/README.md) | | Prediction_service.streaming_raw_predict | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/prediction_service.streaming_raw_predict.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/prediction_service.streaming_raw_predict.js,packages/google-cloud-aiplatform/samples/README.md) | | Reasoning_engine_execution_service.query_reasoning_engine | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/reasoning_engine_execution_service.query_reasoning_engine.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/reasoning_engine_execution_service.query_reasoning_engine.js,packages/google-cloud-aiplatform/samples/README.md) | diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/content.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/content.proto index 7f31baa2a0c..82cdb3f63e7 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/content.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/content.proto @@ -346,6 +346,9 @@ message Candidate { // The token generation was stopped as the response was flagged for // Sensitive Personally Identifiable Information (SPII) contents. SPII = 8; + + // The function call generated by the model is invalid. + MALFORMED_FUNCTION_CALL = 9; } // Output only. Index of the candidate. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/pipeline_job.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/pipeline_job.proto index 3a0567aa065..e31290cb963 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/pipeline_job.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/pipeline_job.proto @@ -213,6 +213,9 @@ message PipelineJob { // Output only. The schedule resource name. // Only returned if the Pipeline is created by Schedule API. string schedule_name = 22 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Whether to do component level validations before job creation. + bool preflight_validations = 26 [(google.api.field_behavior) = OPTIONAL]; } // Pipeline template metadata if diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/prediction_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/prediction_service.proto index 70ba277aef7..9e609e918a4 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/prediction_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/prediction_service.proto @@ -98,10 +98,6 @@ service PredictionService { option (google.api.http) = { post: "/v1/{endpoint=projects/*/locations/*/endpoints/*}:directPredict" body: "*" - additional_bindings { - post: "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:directPredict" - body: "*" - } }; } @@ -112,40 +108,18 @@ service PredictionService { option (google.api.http) = { post: "/v1/{endpoint=projects/*/locations/*/endpoints/*}:directRawPredict" body: "*" - additional_bindings { - post: "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:directRawPredict" - body: "*" - } }; } // Perform a streaming online prediction request to a gRPC model server for // Vertex first-party products and frameworks. rpc StreamDirectPredict(stream StreamDirectPredictRequest) - returns (stream StreamDirectPredictResponse) { - option (google.api.http) = { - post: "/v1/{endpoint=projects/*/locations/*/endpoints/*}:streamDirectPredict" - body: "*" - additional_bindings { - post: "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:streamDirectPredict" - body: "*" - } - }; - } + returns (stream StreamDirectPredictResponse) {} // Perform a streaming online prediction request to a gRPC model server for // custom containers. rpc StreamDirectRawPredict(stream StreamDirectRawPredictRequest) - returns (stream StreamDirectRawPredictResponse) { - option (google.api.http) = { - post: "/v1/{endpoint=projects/*/locations/*/endpoints/*}:streamDirectRawPredict" - body: "*" - additional_bindings { - post: "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:streamDirectRawPredict" - body: "*" - } - }; - } + returns (stream StreamDirectRawPredictResponse) {} // Perform a streaming online prediction request for Vertex first-party // products and frameworks. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/tuning_job.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/tuning_job.proto index 90d39609316..803df182076 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/tuning_job.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/tuning_job.proto @@ -19,6 +19,7 @@ package google.cloud.aiplatform.v1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/aiplatform/v1/content.proto"; +import "google/cloud/aiplatform/v1/encryption_spec.proto"; import "google/cloud/aiplatform/v1/job_state.proto"; import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; @@ -125,6 +126,11 @@ message TuningJob { // [TuningJob][google.cloud.aiplatform.v1.TuningJob]. TuningDataStats tuning_data_stats = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Customer-managed encryption key options for a TuningJob. If this is set, + // then all resources created by the TuningJob will be encrypted with the + // provided encryption key. + EncryptionSpec encryption_spec = 16; } // The Model Registry Model and Online Prediction Endpoint assiociated with diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/cached_content.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/cached_content.proto index ecb6e97a3d8..b57cdea1af7 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/cached_content.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/cached_content.proto @@ -54,8 +54,8 @@ message CachedContent { [(google.api.field_behavior) = INPUT_ONLY]; } - // Immutable. Identifier. The resource name of the cached content - // Format: + // Immutable. Identifier. The server-generated resource name of the cached + // content Format: // projects/{project}/locations/{location}/cachedContents/{cached_content} string name = 1 [ (google.api.field_behavior) = IDENTIFIER, diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/content.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/content.proto index da636484727..f139feb2b03 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/content.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/content.proto @@ -346,6 +346,9 @@ message Candidate { // The token generation was stopped as the response was flagged for // Sensitive Personally Identifiable Information (SPII) contents. SPII = 8; + + // The function call generated by the model is invalid. + MALFORMED_FUNCTION_CALL = 9; } // Output only. Index of the candidate. @@ -390,6 +393,56 @@ message Segment { // Output only. End index in the given Part, measured in bytes. Offset from // the start of the Part, exclusive, starting at zero. int32 end_index = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The text corresponding to the segment from the response. + string text = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Grounding chunk. +message GroundingChunk { + // Chunk from the web. + message Web { + // URI reference of the chunk. + optional string uri = 1; + + // Title of the chunk. + optional string title = 2; + } + + // Chunk from context retrieved by the retrieval tools. + message RetrievedContext { + // URI reference of the attribution. + optional string uri = 1; + + // Title of the attribution. + optional string title = 2; + } + + // Chunk type. + oneof chunk_type { + // Grounding chunk from the web. + Web web = 1; + + // Grounding chunk from context retrieved by the retrieval tools. + RetrievedContext retrieved_context = 2; + } +} + +// Grounding support. +message GroundingSupport { + // Segment of the content this support belongs to. + optional Segment segment = 1; + + // A list of indices (into 'grounding_chunk') specifying the + // citations associated with the claim. For instance [1,3,4] means + // that grounding_chunk[1], grounding_chunk[3], + // grounding_chunk[4] are the retrieved content attributed to the claim. + repeated int32 grounding_chunk_indices = 2; + + // Confidence score of the support references. Ranges from 0 to 1. 1 is the + // most confident. This list must have the same size as the + // grounding_chunk_indices. + repeated float confidence_scores = 3; } // Grounding attribution. @@ -449,6 +502,13 @@ message GroundingMetadata { // Optional. List of grounding attributions. repeated GroundingAttribution grounding_attributions = 2 [(google.api.field_behavior) = OPTIONAL]; + + // List of supporting references retrieved from specified grounding source. + repeated GroundingChunk grounding_chunks = 5; + + // Optional. List of grounding support. + repeated GroundingSupport grounding_supports = 6 + [(google.api.field_behavior) = OPTIONAL]; } // Google search entry point. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_monitoring_stats.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_monitoring_stats.proto index 081039f5ed7..23188e990bf 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_monitoring_stats.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_monitoring_stats.proto @@ -41,7 +41,8 @@ message ModelMonitoringStatsDataPoint { message TypedValue { // Summary statistics for a population of values. message DistributionDataValue { - // tensorflow.metadata.v0.DatasetFeatureStatistics format. + // Predictive monitoring drift distribution in + // `tensorflow.metadata.v0.DatasetFeatureStatistics` format. google.protobuf.Value distribution = 1; // Distribution distance deviation from the current dataset's statistics diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/prediction_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/prediction_service.proto index e3621429115..05650bd27c3 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/prediction_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/prediction_service.proto @@ -78,6 +78,20 @@ service PredictionService { option (google.api.method_signature) = "endpoint,http_body"; } + // Perform a streaming online prediction with an arbitrary HTTP payload. + rpc StreamRawPredict(StreamRawPredictRequest) + returns (stream google.api.HttpBody) { + option (google.api.http) = { + post: "/v1beta1/{endpoint=projects/*/locations/*/endpoints/*}:streamRawPredict" + body: "*" + additional_bindings { + post: "/v1beta1/{endpoint=projects/*/locations/*/publishers/*/models/*}:streamRawPredict" + body: "*" + } + }; + option (google.api.method_signature) = "endpoint,http_body"; + } + // Perform an unary online prediction request to a gRPC model server for // Vertex first-party products and frameworks. rpc DirectPredict(DirectPredictRequest) returns (DirectPredictResponse) { @@ -305,6 +319,23 @@ message RawPredictRequest { google.api.HttpBody http_body = 2; } +// Request message for +// [PredictionService.StreamRawPredict][google.cloud.aiplatform.v1beta1.PredictionService.StreamRawPredict]. +message StreamRawPredictRequest { + // Required. The name of the Endpoint requested to serve the prediction. + // Format: + // `projects/{project}/locations/{location}/endpoints/{endpoint}` + string endpoint = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Endpoint" + } + ]; + + // The prediction input. Supports HTTP headers and arbitrary data payload. + google.api.HttpBody http_body = 2; +} + // Request message for // [PredictionService.DirectPredict][google.cloud.aiplatform.v1beta1.PredictionService.DirectPredict]. message DirectPredictRequest { diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tool.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tool.proto index 17d09725375..290001c4239 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tool.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tool.proto @@ -164,6 +164,7 @@ message FunctionResponse { // Defines a retrieval tool that model can call to access external knowledge. message Retrieval { + // The source of the retrieval. oneof source { // Set to use data source powered by Vertex AI Search. VertexAISearch vertex_ai_search = 2; diff --git a/packages/google-cloud-aiplatform/protos/protos.d.ts b/packages/google-cloud-aiplatform/protos/protos.d.ts index 4617f76e351..d879750aeb3 100644 --- a/packages/google-cloud-aiplatform/protos/protos.d.ts +++ b/packages/google-cloud-aiplatform/protos/protos.d.ts @@ -9949,7 +9949,8 @@ export namespace google { OTHER = 5, BLOCKLIST = 6, PROHIBITED_CONTENT = 7, - SPII = 8 + SPII = 8, + MALFORMED_FUNCTION_CALL = 9 } } @@ -40535,6 +40536,9 @@ export namespace google { /** TuningJob tuningDataStats */ tuningDataStats?: (google.cloud.aiplatform.v1.ITuningDataStats|null); + + /** TuningJob encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); } /** Represents a TuningJob. */ @@ -40591,6 +40595,9 @@ export namespace google { /** TuningJob tuningDataStats. */ public tuningDataStats?: (google.cloud.aiplatform.v1.ITuningDataStats|null); + /** TuningJob encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + /** TuningJob sourceModel. */ public sourceModel?: "baseModel"; @@ -82484,6 +82491,9 @@ export namespace google { /** PipelineJob scheduleName */ scheduleName?: (string|null); + + /** PipelineJob preflightValidations */ + preflightValidations?: (boolean|null); } /** Represents a PipelineJob. */ @@ -82552,6 +82562,9 @@ export namespace google { /** PipelineJob scheduleName. */ public scheduleName: string; + /** PipelineJob preflightValidations. */ + public preflightValidations: boolean; + /** * Creates a new PipelineJob instance using the specified properties. * @param [properties] Properties to set @@ -117924,7 +117937,8 @@ export namespace google { OTHER = 5, BLOCKLIST = 6, PROHIBITED_CONTENT = 7, - SPII = 8 + SPII = 8, + MALFORMED_FUNCTION_CALL = 9 } } @@ -117939,6 +117953,9 @@ export namespace google { /** Segment endIndex */ endIndex?: (number|null); + + /** Segment text */ + text?: (string|null); } /** Represents a Segment. */ @@ -117959,6 +117976,9 @@ export namespace google { /** Segment endIndex. */ public endIndex: number; + /** Segment text. */ + public text: string; + /** * Creates a new Segment instance using the specified properties. * @param [properties] Properties to set @@ -118037,6 +118057,445 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a GroundingChunk. */ + interface IGroundingChunk { + + /** GroundingChunk web */ + web?: (google.cloud.aiplatform.v1beta1.GroundingChunk.IWeb|null); + + /** GroundingChunk retrievedContext */ + retrievedContext?: (google.cloud.aiplatform.v1beta1.GroundingChunk.IRetrievedContext|null); + } + + /** Represents a GroundingChunk. */ + class GroundingChunk implements IGroundingChunk { + + /** + * Constructs a new GroundingChunk. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IGroundingChunk); + + /** GroundingChunk web. */ + public web?: (google.cloud.aiplatform.v1beta1.GroundingChunk.IWeb|null); + + /** GroundingChunk retrievedContext. */ + public retrievedContext?: (google.cloud.aiplatform.v1beta1.GroundingChunk.IRetrievedContext|null); + + /** GroundingChunk chunkType. */ + public chunkType?: ("web"|"retrievedContext"); + + /** + * Creates a new GroundingChunk instance using the specified properties. + * @param [properties] Properties to set + * @returns GroundingChunk instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IGroundingChunk): google.cloud.aiplatform.v1beta1.GroundingChunk; + + /** + * Encodes the specified GroundingChunk message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundingChunk.verify|verify} messages. + * @param message GroundingChunk message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IGroundingChunk, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GroundingChunk message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundingChunk.verify|verify} messages. + * @param message GroundingChunk message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGroundingChunk, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GroundingChunk message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GroundingChunk + * @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.aiplatform.v1beta1.GroundingChunk; + + /** + * Decodes a GroundingChunk message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GroundingChunk + * @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.aiplatform.v1beta1.GroundingChunk; + + /** + * Verifies a GroundingChunk 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 GroundingChunk message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GroundingChunk + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GroundingChunk; + + /** + * Creates a plain object from a GroundingChunk message. Also converts values to other types if specified. + * @param message GroundingChunk + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.GroundingChunk, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GroundingChunk to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GroundingChunk + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace GroundingChunk { + + /** Properties of a Web. */ + interface IWeb { + + /** Web uri */ + uri?: (string|null); + + /** Web title */ + title?: (string|null); + } + + /** Represents a Web. */ + class Web implements IWeb { + + /** + * Constructs a new Web. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.GroundingChunk.IWeb); + + /** Web uri. */ + public uri?: (string|null); + + /** Web title. */ + public title?: (string|null); + + /** Web _uri. */ + public _uri?: "uri"; + + /** Web _title. */ + public _title?: "title"; + + /** + * Creates a new Web instance using the specified properties. + * @param [properties] Properties to set + * @returns Web instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.GroundingChunk.IWeb): google.cloud.aiplatform.v1beta1.GroundingChunk.Web; + + /** + * Encodes the specified Web message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundingChunk.Web.verify|verify} messages. + * @param message Web message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.GroundingChunk.IWeb, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Web message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundingChunk.Web.verify|verify} messages. + * @param message Web message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.GroundingChunk.IWeb, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Web message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Web + * @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.aiplatform.v1beta1.GroundingChunk.Web; + + /** + * Decodes a Web message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Web + * @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.aiplatform.v1beta1.GroundingChunk.Web; + + /** + * Verifies a Web 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 Web message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Web + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GroundingChunk.Web; + + /** + * Creates a plain object from a Web message. Also converts values to other types if specified. + * @param message Web + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.GroundingChunk.Web, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Web to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Web + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RetrievedContext. */ + interface IRetrievedContext { + + /** RetrievedContext uri */ + uri?: (string|null); + + /** RetrievedContext title */ + title?: (string|null); + } + + /** Represents a RetrievedContext. */ + class RetrievedContext implements IRetrievedContext { + + /** + * Constructs a new RetrievedContext. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.GroundingChunk.IRetrievedContext); + + /** RetrievedContext uri. */ + public uri?: (string|null); + + /** RetrievedContext title. */ + public title?: (string|null); + + /** RetrievedContext _uri. */ + public _uri?: "uri"; + + /** RetrievedContext _title. */ + public _title?: "title"; + + /** + * Creates a new RetrievedContext instance using the specified properties. + * @param [properties] Properties to set + * @returns RetrievedContext instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.GroundingChunk.IRetrievedContext): google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext; + + /** + * Encodes the specified RetrievedContext message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext.verify|verify} messages. + * @param message RetrievedContext message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.GroundingChunk.IRetrievedContext, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RetrievedContext message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext.verify|verify} messages. + * @param message RetrievedContext message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.GroundingChunk.IRetrievedContext, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RetrievedContext message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RetrievedContext + * @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.aiplatform.v1beta1.GroundingChunk.RetrievedContext; + + /** + * Decodes a RetrievedContext message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RetrievedContext + * @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.aiplatform.v1beta1.GroundingChunk.RetrievedContext; + + /** + * Verifies a RetrievedContext 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 RetrievedContext message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RetrievedContext + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext; + + /** + * Creates a plain object from a RetrievedContext message. Also converts values to other types if specified. + * @param message RetrievedContext + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RetrievedContext to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RetrievedContext + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of a GroundingSupport. */ + interface IGroundingSupport { + + /** GroundingSupport segment */ + segment?: (google.cloud.aiplatform.v1beta1.ISegment|null); + + /** GroundingSupport groundingChunkIndices */ + groundingChunkIndices?: (number[]|null); + + /** GroundingSupport confidenceScores */ + confidenceScores?: (number[]|null); + } + + /** Represents a GroundingSupport. */ + class GroundingSupport implements IGroundingSupport { + + /** + * Constructs a new GroundingSupport. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IGroundingSupport); + + /** GroundingSupport segment. */ + public segment?: (google.cloud.aiplatform.v1beta1.ISegment|null); + + /** GroundingSupport groundingChunkIndices. */ + public groundingChunkIndices: number[]; + + /** GroundingSupport confidenceScores. */ + public confidenceScores: number[]; + + /** GroundingSupport _segment. */ + public _segment?: "segment"; + + /** + * Creates a new GroundingSupport instance using the specified properties. + * @param [properties] Properties to set + * @returns GroundingSupport instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IGroundingSupport): google.cloud.aiplatform.v1beta1.GroundingSupport; + + /** + * Encodes the specified GroundingSupport message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundingSupport.verify|verify} messages. + * @param message GroundingSupport message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IGroundingSupport, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GroundingSupport message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundingSupport.verify|verify} messages. + * @param message GroundingSupport message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGroundingSupport, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GroundingSupport message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GroundingSupport + * @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.aiplatform.v1beta1.GroundingSupport; + + /** + * Decodes a GroundingSupport message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GroundingSupport + * @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.aiplatform.v1beta1.GroundingSupport; + + /** + * Verifies a GroundingSupport 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 GroundingSupport message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GroundingSupport + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GroundingSupport; + + /** + * Creates a plain object from a GroundingSupport message. Also converts values to other types if specified. + * @param message GroundingSupport + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.GroundingSupport, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GroundingSupport to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GroundingSupport + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a GroundingAttribution. */ interface IGroundingAttribution { @@ -118381,6 +118840,12 @@ export namespace google { /** GroundingMetadata groundingAttributions */ groundingAttributions?: (google.cloud.aiplatform.v1beta1.IGroundingAttribution[]|null); + + /** GroundingMetadata groundingChunks */ + groundingChunks?: (google.cloud.aiplatform.v1beta1.IGroundingChunk[]|null); + + /** GroundingMetadata groundingSupports */ + groundingSupports?: (google.cloud.aiplatform.v1beta1.IGroundingSupport[]|null); } /** Represents a GroundingMetadata. */ @@ -118404,6 +118869,12 @@ export namespace google { /** GroundingMetadata groundingAttributions. */ public groundingAttributions: google.cloud.aiplatform.v1beta1.IGroundingAttribution[]; + /** GroundingMetadata groundingChunks. */ + public groundingChunks: google.cloud.aiplatform.v1beta1.IGroundingChunk[]; + + /** GroundingMetadata groundingSupports. */ + public groundingSupports: google.cloud.aiplatform.v1beta1.IGroundingSupport[]; + /** GroundingMetadata _searchEntryPoint. */ public _searchEntryPoint?: "searchEntryPoint"; @@ -212985,6 +213456,20 @@ export namespace google { */ public rawPredict(request: google.cloud.aiplatform.v1beta1.IRawPredictRequest): Promise; + /** + * Calls StreamRawPredict. + * @param request StreamRawPredictRequest message or plain object + * @param callback Node-style callback called with the error, if any, and HttpBody + */ + public streamRawPredict(request: google.cloud.aiplatform.v1beta1.IStreamRawPredictRequest, callback: google.cloud.aiplatform.v1beta1.PredictionService.StreamRawPredictCallback): void; + + /** + * Calls StreamRawPredict. + * @param request StreamRawPredictRequest message or plain object + * @returns Promise + */ + public streamRawPredict(request: google.cloud.aiplatform.v1beta1.IStreamRawPredictRequest): Promise; + /** * Calls DirectPredict. * @param request DirectPredictRequest message or plain object @@ -213170,6 +213655,13 @@ export namespace google { */ type RawPredictCallback = (error: (Error|null), response?: google.api.HttpBody) => void; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PredictionService|streamRawPredict}. + * @param error Error, if any + * @param [response] HttpBody + */ + type StreamRawPredictCallback = (error: (Error|null), response?: google.api.HttpBody) => void; + /** * Callback as used by {@link google.cloud.aiplatform.v1beta1.PredictionService|directPredict}. * @param error Error, if any @@ -213594,6 +214086,109 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a StreamRawPredictRequest. */ + interface IStreamRawPredictRequest { + + /** StreamRawPredictRequest endpoint */ + endpoint?: (string|null); + + /** StreamRawPredictRequest httpBody */ + httpBody?: (google.api.IHttpBody|null); + } + + /** Represents a StreamRawPredictRequest. */ + class StreamRawPredictRequest implements IStreamRawPredictRequest { + + /** + * Constructs a new StreamRawPredictRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IStreamRawPredictRequest); + + /** StreamRawPredictRequest endpoint. */ + public endpoint: string; + + /** StreamRawPredictRequest httpBody. */ + public httpBody?: (google.api.IHttpBody|null); + + /** + * Creates a new StreamRawPredictRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns StreamRawPredictRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IStreamRawPredictRequest): google.cloud.aiplatform.v1beta1.StreamRawPredictRequest; + + /** + * Encodes the specified StreamRawPredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamRawPredictRequest.verify|verify} messages. + * @param message StreamRawPredictRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IStreamRawPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified StreamRawPredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamRawPredictRequest.verify|verify} messages. + * @param message StreamRawPredictRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IStreamRawPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StreamRawPredictRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StreamRawPredictRequest + * @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.aiplatform.v1beta1.StreamRawPredictRequest; + + /** + * Decodes a StreamRawPredictRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StreamRawPredictRequest + * @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.aiplatform.v1beta1.StreamRawPredictRequest; + + /** + * Verifies a StreamRawPredictRequest 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 StreamRawPredictRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StreamRawPredictRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StreamRawPredictRequest; + + /** + * Creates a plain object from a StreamRawPredictRequest message. Also converts values to other types if specified. + * @param message StreamRawPredictRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.StreamRawPredictRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this StreamRawPredictRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for StreamRawPredictRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a DirectPredictRequest. */ interface IDirectPredictRequest { diff --git a/packages/google-cloud-aiplatform/protos/protos.js b/packages/google-cloud-aiplatform/protos/protos.js index 4b50c000f0a..a81c8c5b9aa 100644 --- a/packages/google-cloud-aiplatform/protos/protos.js +++ b/packages/google-cloud-aiplatform/protos/protos.js @@ -25687,6 +25687,7 @@ case 6: case 7: case 8: + case 9: break; } if (message.safetyRatings != null && message.hasOwnProperty("safetyRatings")) { @@ -25778,6 +25779,10 @@ case 8: message.finishReason = 8; break; + case "MALFORMED_FUNCTION_CALL": + case 9: + message.finishReason = 9; + break; } if (object.safetyRatings) { if (!Array.isArray(object.safetyRatings)) @@ -25888,6 +25893,7 @@ * @property {number} BLOCKLIST=6 BLOCKLIST value * @property {number} PROHIBITED_CONTENT=7 PROHIBITED_CONTENT value * @property {number} SPII=8 SPII value + * @property {number} MALFORMED_FUNCTION_CALL=9 MALFORMED_FUNCTION_CALL value */ Candidate.FinishReason = (function() { var valuesById = {}, values = Object.create(valuesById); @@ -25900,6 +25906,7 @@ values[valuesById[6] = "BLOCKLIST"] = 6; values[valuesById[7] = "PROHIBITED_CONTENT"] = 7; values[valuesById[8] = "SPII"] = 8; + values[valuesById[9] = "MALFORMED_FUNCTION_CALL"] = 9; return values; })(); @@ -100152,6 +100159,7 @@ * @property {string|null} [experiment] TuningJob experiment * @property {google.cloud.aiplatform.v1.ITunedModel|null} [tunedModel] TuningJob tunedModel * @property {google.cloud.aiplatform.v1.ITuningDataStats|null} [tuningDataStats] TuningJob tuningDataStats + * @property {google.cloud.aiplatform.v1.IEncryptionSpec|null} [encryptionSpec] TuningJob encryptionSpec */ /** @@ -100290,6 +100298,14 @@ */ TuningJob.prototype.tuningDataStats = null; + /** + * TuningJob encryptionSpec. + * @member {google.cloud.aiplatform.v1.IEncryptionSpec|null|undefined} encryptionSpec + * @memberof google.cloud.aiplatform.v1.TuningJob + * @instance + */ + TuningJob.prototype.encryptionSpec = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -100370,6 +100386,8 @@ $root.google.cloud.aiplatform.v1.TunedModel.encode(message.tunedModel, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); if (message.tuningDataStats != null && Object.hasOwnProperty.call(message, "tuningDataStats")) $root.google.cloud.aiplatform.v1.TuningDataStats.encode(message.tuningDataStats, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); + if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) + $root.google.cloud.aiplatform.v1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); return writer; }; @@ -100483,6 +100501,10 @@ message.tuningDataStats = $root.google.cloud.aiplatform.v1.TuningDataStats.decode(reader, reader.uint32()); break; } + case 16: { + message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -100605,6 +100627,11 @@ if (error) return "tuningDataStats." + error; } + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { + var error = $root.google.cloud.aiplatform.v1.EncryptionSpec.verify(message.encryptionSpec); + if (error) + return "encryptionSpec." + error; + } return null; }; @@ -100733,6 +100760,11 @@ throw TypeError(".google.cloud.aiplatform.v1.TuningJob.tuningDataStats: object expected"); message.tuningDataStats = $root.google.cloud.aiplatform.v1.TuningDataStats.fromObject(object.tuningDataStats); } + if (object.encryptionSpec != null) { + if (typeof object.encryptionSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.TuningJob.encryptionSpec: object expected"); + message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.fromObject(object.encryptionSpec); + } return message; }; @@ -100764,6 +100796,7 @@ object.experiment = ""; object.tunedModel = null; object.tuningDataStats = null; + object.encryptionSpec = null; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -100805,6 +100838,8 @@ object.tunedModel = $root.google.cloud.aiplatform.v1.TunedModel.toObject(message.tunedModel, options); if (message.tuningDataStats != null && message.hasOwnProperty("tuningDataStats")) object.tuningDataStats = $root.google.cloud.aiplatform.v1.TuningDataStats.toObject(message.tuningDataStats, options); + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) + object.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.toObject(message.encryptionSpec, options); return object; }; @@ -200447,6 +200482,7 @@ * @property {string|null} [templateUri] PipelineJob templateUri * @property {google.cloud.aiplatform.v1.IPipelineTemplateMetadata|null} [templateMetadata] PipelineJob templateMetadata * @property {string|null} [scheduleName] PipelineJob scheduleName + * @property {boolean|null} [preflightValidations] PipelineJob preflightValidations */ /** @@ -200618,6 +200654,14 @@ */ PipelineJob.prototype.scheduleName = ""; + /** + * PipelineJob preflightValidations. + * @member {boolean} preflightValidations + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @instance + */ + PipelineJob.prototype.preflightValidations = false; + /** * Creates a new PipelineJob instance using the specified properties. * @function create @@ -200682,6 +200726,8 @@ if (message.reservedIpRanges != null && message.reservedIpRanges.length) for (var i = 0; i < message.reservedIpRanges.length; ++i) writer.uint32(/* id 25, wireType 2 =*/202).string(message.reservedIpRanges[i]); + if (message.preflightValidations != null && Object.hasOwnProperty.call(message, "preflightValidations")) + writer.uint32(/* id 26, wireType 0 =*/208).bool(message.preflightValidations); return writer; }; @@ -200813,6 +200859,10 @@ message.scheduleName = reader.string(); break; } + case 26: { + message.preflightValidations = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -200946,6 +200996,9 @@ if (message.scheduleName != null && message.hasOwnProperty("scheduleName")) if (!$util.isString(message.scheduleName)) return "scheduleName: string expected"; + if (message.preflightValidations != null && message.hasOwnProperty("preflightValidations")) + if (typeof message.preflightValidations !== "boolean") + return "preflightValidations: boolean expected"; return null; }; @@ -201081,6 +201134,8 @@ } if (object.scheduleName != null) message.scheduleName = String(object.scheduleName); + if (object.preflightValidations != null) + message.preflightValidations = Boolean(object.preflightValidations); return message; }; @@ -201119,6 +201174,7 @@ object.templateUri = ""; object.templateMetadata = null; object.scheduleName = ""; + object.preflightValidations = false; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -201165,6 +201221,8 @@ for (var j = 0; j < message.reservedIpRanges.length; ++j) object.reservedIpRanges[j] = message.reservedIpRanges[j]; } + if (message.preflightValidations != null && message.hasOwnProperty("preflightValidations")) + object.preflightValidations = message.preflightValidations; return object; }; @@ -287412,6 +287470,7 @@ case 6: case 7: case 8: + case 9: break; } if (message.safetyRatings != null && message.hasOwnProperty("safetyRatings")) { @@ -287503,6 +287562,10 @@ case 8: message.finishReason = 8; break; + case "MALFORMED_FUNCTION_CALL": + case 9: + message.finishReason = 9; + break; } if (object.safetyRatings) { if (!Array.isArray(object.safetyRatings)) @@ -287613,6 +287676,7 @@ * @property {number} BLOCKLIST=6 BLOCKLIST value * @property {number} PROHIBITED_CONTENT=7 PROHIBITED_CONTENT value * @property {number} SPII=8 SPII value + * @property {number} MALFORMED_FUNCTION_CALL=9 MALFORMED_FUNCTION_CALL value */ Candidate.FinishReason = (function() { var valuesById = {}, values = Object.create(valuesById); @@ -287625,6 +287689,7 @@ values[valuesById[6] = "BLOCKLIST"] = 6; values[valuesById[7] = "PROHIBITED_CONTENT"] = 7; values[valuesById[8] = "SPII"] = 8; + values[valuesById[9] = "MALFORMED_FUNCTION_CALL"] = 9; return values; })(); @@ -287640,6 +287705,7 @@ * @property {number|null} [partIndex] Segment partIndex * @property {number|null} [startIndex] Segment startIndex * @property {number|null} [endIndex] Segment endIndex + * @property {string|null} [text] Segment text */ /** @@ -287681,6 +287747,14 @@ */ Segment.prototype.endIndex = 0; + /** + * Segment text. + * @member {string} text + * @memberof google.cloud.aiplatform.v1beta1.Segment + * @instance + */ + Segment.prototype.text = ""; + /** * Creates a new Segment instance using the specified properties. * @function create @@ -287711,6 +287785,8 @@ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.startIndex); if (message.endIndex != null && Object.hasOwnProperty.call(message, "endIndex")) writer.uint32(/* id 3, wireType 0 =*/24).int32(message.endIndex); + if (message.text != null && Object.hasOwnProperty.call(message, "text")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.text); return writer; }; @@ -287757,6 +287833,10 @@ message.endIndex = reader.int32(); break; } + case 4: { + message.text = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -287801,6 +287881,9 @@ if (message.endIndex != null && message.hasOwnProperty("endIndex")) if (!$util.isInteger(message.endIndex)) return "endIndex: integer expected"; + if (message.text != null && message.hasOwnProperty("text")) + if (!$util.isString(message.text)) + return "text: string expected"; return null; }; @@ -287822,6 +287905,8 @@ message.startIndex = object.startIndex | 0; if (object.endIndex != null) message.endIndex = object.endIndex | 0; + if (object.text != null) + message.text = String(object.text); return message; }; @@ -287842,6 +287927,7 @@ object.partIndex = 0; object.startIndex = 0; object.endIndex = 0; + object.text = ""; } if (message.partIndex != null && message.hasOwnProperty("partIndex")) object.partIndex = message.partIndex; @@ -287849,6 +287935,8 @@ object.startIndex = message.startIndex; if (message.endIndex != null && message.hasOwnProperty("endIndex")) object.endIndex = message.endIndex; + if (message.text != null && message.hasOwnProperty("text")) + object.text = message.text; return object; }; @@ -287881,27 +287969,25 @@ return Segment; })(); - v1beta1.GroundingAttribution = (function() { + v1beta1.GroundingChunk = (function() { /** - * Properties of a GroundingAttribution. + * Properties of a GroundingChunk. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGroundingAttribution - * @property {google.cloud.aiplatform.v1beta1.GroundingAttribution.IWeb|null} [web] GroundingAttribution web - * @property {google.cloud.aiplatform.v1beta1.GroundingAttribution.IRetrievedContext|null} [retrievedContext] GroundingAttribution retrievedContext - * @property {google.cloud.aiplatform.v1beta1.ISegment|null} [segment] GroundingAttribution segment - * @property {number|null} [confidenceScore] GroundingAttribution confidenceScore + * @interface IGroundingChunk + * @property {google.cloud.aiplatform.v1beta1.GroundingChunk.IWeb|null} [web] GroundingChunk web + * @property {google.cloud.aiplatform.v1beta1.GroundingChunk.IRetrievedContext|null} [retrievedContext] GroundingChunk retrievedContext */ /** - * Constructs a new GroundingAttribution. + * Constructs a new GroundingChunk. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GroundingAttribution. - * @implements IGroundingAttribution + * @classdesc Represents a GroundingChunk. + * @implements IGroundingChunk * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGroundingAttribution=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGroundingChunk=} [properties] Properties to set */ - function GroundingAttribution(properties) { + function GroundingChunk(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -287909,142 +287995,103 @@ } /** - * GroundingAttribution web. - * @member {google.cloud.aiplatform.v1beta1.GroundingAttribution.IWeb|null|undefined} web - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution - * @instance - */ - GroundingAttribution.prototype.web = null; - - /** - * GroundingAttribution retrievedContext. - * @member {google.cloud.aiplatform.v1beta1.GroundingAttribution.IRetrievedContext|null|undefined} retrievedContext - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution - * @instance - */ - GroundingAttribution.prototype.retrievedContext = null; - - /** - * GroundingAttribution segment. - * @member {google.cloud.aiplatform.v1beta1.ISegment|null|undefined} segment - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution + * GroundingChunk web. + * @member {google.cloud.aiplatform.v1beta1.GroundingChunk.IWeb|null|undefined} web + * @memberof google.cloud.aiplatform.v1beta1.GroundingChunk * @instance */ - GroundingAttribution.prototype.segment = null; + GroundingChunk.prototype.web = null; /** - * GroundingAttribution confidenceScore. - * @member {number|null|undefined} confidenceScore - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution + * GroundingChunk retrievedContext. + * @member {google.cloud.aiplatform.v1beta1.GroundingChunk.IRetrievedContext|null|undefined} retrievedContext + * @memberof google.cloud.aiplatform.v1beta1.GroundingChunk * @instance */ - GroundingAttribution.prototype.confidenceScore = null; + GroundingChunk.prototype.retrievedContext = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * GroundingAttribution reference. - * @member {"web"|"retrievedContext"|undefined} reference - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution + * GroundingChunk chunkType. + * @member {"web"|"retrievedContext"|undefined} chunkType + * @memberof google.cloud.aiplatform.v1beta1.GroundingChunk * @instance */ - Object.defineProperty(GroundingAttribution.prototype, "reference", { + Object.defineProperty(GroundingChunk.prototype, "chunkType", { get: $util.oneOfGetter($oneOfFields = ["web", "retrievedContext"]), set: $util.oneOfSetter($oneOfFields) }); /** - * GroundingAttribution _confidenceScore. - * @member {"confidenceScore"|undefined} _confidenceScore - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution - * @instance - */ - Object.defineProperty(GroundingAttribution.prototype, "_confidenceScore", { - get: $util.oneOfGetter($oneOfFields = ["confidenceScore"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new GroundingAttribution instance using the specified properties. + * Creates a new GroundingChunk instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution + * @memberof google.cloud.aiplatform.v1beta1.GroundingChunk * @static - * @param {google.cloud.aiplatform.v1beta1.IGroundingAttribution=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GroundingAttribution} GroundingAttribution instance + * @param {google.cloud.aiplatform.v1beta1.IGroundingChunk=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GroundingChunk} GroundingChunk instance */ - GroundingAttribution.create = function create(properties) { - return new GroundingAttribution(properties); + GroundingChunk.create = function create(properties) { + return new GroundingChunk(properties); }; /** - * Encodes the specified GroundingAttribution message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundingAttribution.verify|verify} messages. + * Encodes the specified GroundingChunk message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundingChunk.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution + * @memberof google.cloud.aiplatform.v1beta1.GroundingChunk * @static - * @param {google.cloud.aiplatform.v1beta1.IGroundingAttribution} message GroundingAttribution message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGroundingChunk} message GroundingChunk message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GroundingAttribution.encode = function encode(message, writer) { + GroundingChunk.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.segment != null && Object.hasOwnProperty.call(message, "segment")) - $root.google.cloud.aiplatform.v1beta1.Segment.encode(message.segment, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.confidenceScore != null && Object.hasOwnProperty.call(message, "confidenceScore")) - writer.uint32(/* id 2, wireType 5 =*/21).float(message.confidenceScore); if (message.web != null && Object.hasOwnProperty.call(message, "web")) - $root.google.cloud.aiplatform.v1beta1.GroundingAttribution.Web.encode(message.web, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + $root.google.cloud.aiplatform.v1beta1.GroundingChunk.Web.encode(message.web, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.retrievedContext != null && Object.hasOwnProperty.call(message, "retrievedContext")) - $root.google.cloud.aiplatform.v1beta1.GroundingAttribution.RetrievedContext.encode(message.retrievedContext, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + $root.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext.encode(message.retrievedContext, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified GroundingAttribution message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundingAttribution.verify|verify} messages. + * Encodes the specified GroundingChunk message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundingChunk.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution + * @memberof google.cloud.aiplatform.v1beta1.GroundingChunk * @static - * @param {google.cloud.aiplatform.v1beta1.IGroundingAttribution} message GroundingAttribution message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGroundingChunk} message GroundingChunk message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GroundingAttribution.encodeDelimited = function encodeDelimited(message, writer) { + GroundingChunk.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GroundingAttribution message from the specified reader or buffer. + * Decodes a GroundingChunk message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution + * @memberof google.cloud.aiplatform.v1beta1.GroundingChunk * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.GroundingAttribution} GroundingAttribution + * @returns {google.cloud.aiplatform.v1beta1.GroundingChunk} GroundingChunk * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GroundingAttribution.decode = function decode(reader, length) { + GroundingChunk.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GroundingAttribution(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GroundingChunk(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 3: { - message.web = $root.google.cloud.aiplatform.v1beta1.GroundingAttribution.Web.decode(reader, reader.uint32()); - break; - } - case 4: { - message.retrievedContext = $root.google.cloud.aiplatform.v1beta1.GroundingAttribution.RetrievedContext.decode(reader, reader.uint32()); - break; - } case 1: { - message.segment = $root.google.cloud.aiplatform.v1beta1.Segment.decode(reader, reader.uint32()); + message.web = $root.google.cloud.aiplatform.v1beta1.GroundingChunk.Web.decode(reader, reader.uint32()); break; } case 2: { - message.confidenceScore = reader.float(); + message.retrievedContext = $root.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext.decode(reader, reader.uint32()); break; } default: @@ -288056,162 +288103,136 @@ }; /** - * Decodes a GroundingAttribution message from the specified reader or buffer, length delimited. + * Decodes a GroundingChunk message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution + * @memberof google.cloud.aiplatform.v1beta1.GroundingChunk * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GroundingAttribution} GroundingAttribution + * @returns {google.cloud.aiplatform.v1beta1.GroundingChunk} GroundingChunk * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GroundingAttribution.decodeDelimited = function decodeDelimited(reader) { + GroundingChunk.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GroundingAttribution message. + * Verifies a GroundingChunk message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution + * @memberof google.cloud.aiplatform.v1beta1.GroundingChunk * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GroundingAttribution.verify = function verify(message) { + GroundingChunk.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; if (message.web != null && message.hasOwnProperty("web")) { - properties.reference = 1; + properties.chunkType = 1; { - var error = $root.google.cloud.aiplatform.v1beta1.GroundingAttribution.Web.verify(message.web); + var error = $root.google.cloud.aiplatform.v1beta1.GroundingChunk.Web.verify(message.web); if (error) return "web." + error; } } if (message.retrievedContext != null && message.hasOwnProperty("retrievedContext")) { - if (properties.reference === 1) - return "reference: multiple values"; - properties.reference = 1; + if (properties.chunkType === 1) + return "chunkType: multiple values"; + properties.chunkType = 1; { - var error = $root.google.cloud.aiplatform.v1beta1.GroundingAttribution.RetrievedContext.verify(message.retrievedContext); + var error = $root.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext.verify(message.retrievedContext); if (error) return "retrievedContext." + error; } } - if (message.segment != null && message.hasOwnProperty("segment")) { - var error = $root.google.cloud.aiplatform.v1beta1.Segment.verify(message.segment); - if (error) - return "segment." + error; - } - if (message.confidenceScore != null && message.hasOwnProperty("confidenceScore")) { - properties._confidenceScore = 1; - if (typeof message.confidenceScore !== "number") - return "confidenceScore: number expected"; - } return null; }; /** - * Creates a GroundingAttribution message from a plain object. Also converts values to their respective internal types. + * Creates a GroundingChunk message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution + * @memberof google.cloud.aiplatform.v1beta1.GroundingChunk * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GroundingAttribution} GroundingAttribution + * @returns {google.cloud.aiplatform.v1beta1.GroundingChunk} GroundingChunk */ - GroundingAttribution.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GroundingAttribution) + GroundingChunk.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GroundingChunk) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GroundingAttribution(); + var message = new $root.google.cloud.aiplatform.v1beta1.GroundingChunk(); if (object.web != null) { if (typeof object.web !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.GroundingAttribution.web: object expected"); - message.web = $root.google.cloud.aiplatform.v1beta1.GroundingAttribution.Web.fromObject(object.web); + throw TypeError(".google.cloud.aiplatform.v1beta1.GroundingChunk.web: object expected"); + message.web = $root.google.cloud.aiplatform.v1beta1.GroundingChunk.Web.fromObject(object.web); } if (object.retrievedContext != null) { if (typeof object.retrievedContext !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.GroundingAttribution.retrievedContext: object expected"); - message.retrievedContext = $root.google.cloud.aiplatform.v1beta1.GroundingAttribution.RetrievedContext.fromObject(object.retrievedContext); - } - if (object.segment != null) { - if (typeof object.segment !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.GroundingAttribution.segment: object expected"); - message.segment = $root.google.cloud.aiplatform.v1beta1.Segment.fromObject(object.segment); + throw TypeError(".google.cloud.aiplatform.v1beta1.GroundingChunk.retrievedContext: object expected"); + message.retrievedContext = $root.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext.fromObject(object.retrievedContext); } - if (object.confidenceScore != null) - message.confidenceScore = Number(object.confidenceScore); return message; }; /** - * Creates a plain object from a GroundingAttribution message. Also converts values to other types if specified. + * Creates a plain object from a GroundingChunk message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution + * @memberof google.cloud.aiplatform.v1beta1.GroundingChunk * @static - * @param {google.cloud.aiplatform.v1beta1.GroundingAttribution} message GroundingAttribution + * @param {google.cloud.aiplatform.v1beta1.GroundingChunk} message GroundingChunk * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GroundingAttribution.toObject = function toObject(message, options) { + GroundingChunk.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.segment = null; - if (message.segment != null && message.hasOwnProperty("segment")) - object.segment = $root.google.cloud.aiplatform.v1beta1.Segment.toObject(message.segment, options); - if (message.confidenceScore != null && message.hasOwnProperty("confidenceScore")) { - object.confidenceScore = options.json && !isFinite(message.confidenceScore) ? String(message.confidenceScore) : message.confidenceScore; - if (options.oneofs) - object._confidenceScore = "confidenceScore"; - } if (message.web != null && message.hasOwnProperty("web")) { - object.web = $root.google.cloud.aiplatform.v1beta1.GroundingAttribution.Web.toObject(message.web, options); + object.web = $root.google.cloud.aiplatform.v1beta1.GroundingChunk.Web.toObject(message.web, options); if (options.oneofs) - object.reference = "web"; + object.chunkType = "web"; } if (message.retrievedContext != null && message.hasOwnProperty("retrievedContext")) { - object.retrievedContext = $root.google.cloud.aiplatform.v1beta1.GroundingAttribution.RetrievedContext.toObject(message.retrievedContext, options); + object.retrievedContext = $root.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext.toObject(message.retrievedContext, options); if (options.oneofs) - object.reference = "retrievedContext"; + object.chunkType = "retrievedContext"; } return object; }; /** - * Converts this GroundingAttribution to JSON. + * Converts this GroundingChunk to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution + * @memberof google.cloud.aiplatform.v1beta1.GroundingChunk * @instance * @returns {Object.} JSON object */ - GroundingAttribution.prototype.toJSON = function toJSON() { + GroundingChunk.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GroundingAttribution + * Gets the default type url for GroundingChunk * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution + * @memberof google.cloud.aiplatform.v1beta1.GroundingChunk * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GroundingAttribution.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GroundingChunk.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GroundingAttribution"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GroundingChunk"; }; - GroundingAttribution.Web = (function() { + GroundingChunk.Web = (function() { /** * Properties of a Web. - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution + * @memberof google.cloud.aiplatform.v1beta1.GroundingChunk * @interface IWeb * @property {string|null} [uri] Web uri * @property {string|null} [title] Web title @@ -288219,11 +288240,11 @@ /** * Constructs a new Web. - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution + * @memberof google.cloud.aiplatform.v1beta1.GroundingChunk * @classdesc Represents a Web. * @implements IWeb * @constructor - * @param {google.cloud.aiplatform.v1beta1.GroundingAttribution.IWeb=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.GroundingChunk.IWeb=} [properties] Properties to set */ function Web(properties) { if (properties) @@ -288234,38 +288255,63 @@ /** * Web uri. - * @member {string} uri - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution.Web + * @member {string|null|undefined} uri + * @memberof google.cloud.aiplatform.v1beta1.GroundingChunk.Web * @instance */ - Web.prototype.uri = ""; + Web.prototype.uri = null; /** * Web title. - * @member {string} title - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution.Web + * @member {string|null|undefined} title + * @memberof google.cloud.aiplatform.v1beta1.GroundingChunk.Web * @instance */ - Web.prototype.title = ""; + Web.prototype.title = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Web _uri. + * @member {"uri"|undefined} _uri + * @memberof google.cloud.aiplatform.v1beta1.GroundingChunk.Web + * @instance + */ + Object.defineProperty(Web.prototype, "_uri", { + get: $util.oneOfGetter($oneOfFields = ["uri"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Web _title. + * @member {"title"|undefined} _title + * @memberof google.cloud.aiplatform.v1beta1.GroundingChunk.Web + * @instance + */ + Object.defineProperty(Web.prototype, "_title", { + get: $util.oneOfGetter($oneOfFields = ["title"]), + set: $util.oneOfSetter($oneOfFields) + }); /** * Creates a new Web instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution.Web + * @memberof google.cloud.aiplatform.v1beta1.GroundingChunk.Web * @static - * @param {google.cloud.aiplatform.v1beta1.GroundingAttribution.IWeb=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GroundingAttribution.Web} Web instance + * @param {google.cloud.aiplatform.v1beta1.GroundingChunk.IWeb=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GroundingChunk.Web} Web instance */ Web.create = function create(properties) { return new Web(properties); }; /** - * Encodes the specified Web message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundingAttribution.Web.verify|verify} messages. + * Encodes the specified Web message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundingChunk.Web.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution.Web + * @memberof google.cloud.aiplatform.v1beta1.GroundingChunk.Web * @static - * @param {google.cloud.aiplatform.v1beta1.GroundingAttribution.IWeb} message Web message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.GroundingChunk.IWeb} message Web message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -288280,11 +288326,11 @@ }; /** - * Encodes the specified Web message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundingAttribution.Web.verify|verify} messages. + * Encodes the specified Web message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundingChunk.Web.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution.Web + * @memberof google.cloud.aiplatform.v1beta1.GroundingChunk.Web * @static - * @param {google.cloud.aiplatform.v1beta1.GroundingAttribution.IWeb} message Web message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.GroundingChunk.IWeb} message Web message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -288295,18 +288341,1163 @@ /** * Decodes a Web message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution.Web + * @memberof google.cloud.aiplatform.v1beta1.GroundingChunk.Web * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.GroundingAttribution.Web} Web + * @returns {google.cloud.aiplatform.v1beta1.GroundingChunk.Web} Web * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Web.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GroundingAttribution.Web(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GroundingChunk.Web(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.uri = reader.string(); + break; + } + case 2: { + message.title = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Web message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.GroundingChunk.Web + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.GroundingChunk.Web} Web + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Web.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Web message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.GroundingChunk.Web + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Web.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.uri != null && message.hasOwnProperty("uri")) { + properties._uri = 1; + if (!$util.isString(message.uri)) + return "uri: string expected"; + } + if (message.title != null && message.hasOwnProperty("title")) { + properties._title = 1; + if (!$util.isString(message.title)) + return "title: string expected"; + } + return null; + }; + + /** + * Creates a Web message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.GroundingChunk.Web + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.GroundingChunk.Web} Web + */ + Web.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GroundingChunk.Web) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.GroundingChunk.Web(); + if (object.uri != null) + message.uri = String(object.uri); + if (object.title != null) + message.title = String(object.title); + return message; + }; + + /** + * Creates a plain object from a Web message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.GroundingChunk.Web + * @static + * @param {google.cloud.aiplatform.v1beta1.GroundingChunk.Web} message Web + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Web.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.uri != null && message.hasOwnProperty("uri")) { + object.uri = message.uri; + if (options.oneofs) + object._uri = "uri"; + } + if (message.title != null && message.hasOwnProperty("title")) { + object.title = message.title; + if (options.oneofs) + object._title = "title"; + } + return object; + }; + + /** + * Converts this Web to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.GroundingChunk.Web + * @instance + * @returns {Object.} JSON object + */ + Web.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Web + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.GroundingChunk.Web + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Web.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GroundingChunk.Web"; + }; + + return Web; + })(); + + GroundingChunk.RetrievedContext = (function() { + + /** + * Properties of a RetrievedContext. + * @memberof google.cloud.aiplatform.v1beta1.GroundingChunk + * @interface IRetrievedContext + * @property {string|null} [uri] RetrievedContext uri + * @property {string|null} [title] RetrievedContext title + */ + + /** + * Constructs a new RetrievedContext. + * @memberof google.cloud.aiplatform.v1beta1.GroundingChunk + * @classdesc Represents a RetrievedContext. + * @implements IRetrievedContext + * @constructor + * @param {google.cloud.aiplatform.v1beta1.GroundingChunk.IRetrievedContext=} [properties] Properties to set + */ + function RetrievedContext(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]]; + } + + /** + * RetrievedContext uri. + * @member {string|null|undefined} uri + * @memberof google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext + * @instance + */ + RetrievedContext.prototype.uri = null; + + /** + * RetrievedContext title. + * @member {string|null|undefined} title + * @memberof google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext + * @instance + */ + RetrievedContext.prototype.title = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * RetrievedContext _uri. + * @member {"uri"|undefined} _uri + * @memberof google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext + * @instance + */ + Object.defineProperty(RetrievedContext.prototype, "_uri", { + get: $util.oneOfGetter($oneOfFields = ["uri"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * RetrievedContext _title. + * @member {"title"|undefined} _title + * @memberof google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext + * @instance + */ + Object.defineProperty(RetrievedContext.prototype, "_title", { + get: $util.oneOfGetter($oneOfFields = ["title"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new RetrievedContext instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext + * @static + * @param {google.cloud.aiplatform.v1beta1.GroundingChunk.IRetrievedContext=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext} RetrievedContext instance + */ + RetrievedContext.create = function create(properties) { + return new RetrievedContext(properties); + }; + + /** + * Encodes the specified RetrievedContext message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext + * @static + * @param {google.cloud.aiplatform.v1beta1.GroundingChunk.IRetrievedContext} message RetrievedContext message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RetrievedContext.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.uri != null && Object.hasOwnProperty.call(message, "uri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.uri); + if (message.title != null && Object.hasOwnProperty.call(message, "title")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.title); + return writer; + }; + + /** + * Encodes the specified RetrievedContext message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext + * @static + * @param {google.cloud.aiplatform.v1beta1.GroundingChunk.IRetrievedContext} message RetrievedContext message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RetrievedContext.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RetrievedContext message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext} RetrievedContext + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RetrievedContext.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.uri = reader.string(); + break; + } + case 2: { + message.title = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RetrievedContext message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext} RetrievedContext + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RetrievedContext.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RetrievedContext message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RetrievedContext.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.uri != null && message.hasOwnProperty("uri")) { + properties._uri = 1; + if (!$util.isString(message.uri)) + return "uri: string expected"; + } + if (message.title != null && message.hasOwnProperty("title")) { + properties._title = 1; + if (!$util.isString(message.title)) + return "title: string expected"; + } + return null; + }; + + /** + * Creates a RetrievedContext message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext} RetrievedContext + */ + RetrievedContext.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext(); + if (object.uri != null) + message.uri = String(object.uri); + if (object.title != null) + message.title = String(object.title); + return message; + }; + + /** + * Creates a plain object from a RetrievedContext message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext + * @static + * @param {google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext} message RetrievedContext + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RetrievedContext.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.uri != null && message.hasOwnProperty("uri")) { + object.uri = message.uri; + if (options.oneofs) + object._uri = "uri"; + } + if (message.title != null && message.hasOwnProperty("title")) { + object.title = message.title; + if (options.oneofs) + object._title = "title"; + } + return object; + }; + + /** + * Converts this RetrievedContext to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext + * @instance + * @returns {Object.} JSON object + */ + RetrievedContext.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RetrievedContext + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RetrievedContext.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext"; + }; + + return RetrievedContext; + })(); + + return GroundingChunk; + })(); + + v1beta1.GroundingSupport = (function() { + + /** + * Properties of a GroundingSupport. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IGroundingSupport + * @property {google.cloud.aiplatform.v1beta1.ISegment|null} [segment] GroundingSupport segment + * @property {Array.|null} [groundingChunkIndices] GroundingSupport groundingChunkIndices + * @property {Array.|null} [confidenceScores] GroundingSupport confidenceScores + */ + + /** + * Constructs a new GroundingSupport. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a GroundingSupport. + * @implements IGroundingSupport + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IGroundingSupport=} [properties] Properties to set + */ + function GroundingSupport(properties) { + this.groundingChunkIndices = []; + this.confidenceScores = []; + 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]]; + } + + /** + * GroundingSupport segment. + * @member {google.cloud.aiplatform.v1beta1.ISegment|null|undefined} segment + * @memberof google.cloud.aiplatform.v1beta1.GroundingSupport + * @instance + */ + GroundingSupport.prototype.segment = null; + + /** + * GroundingSupport groundingChunkIndices. + * @member {Array.} groundingChunkIndices + * @memberof google.cloud.aiplatform.v1beta1.GroundingSupport + * @instance + */ + GroundingSupport.prototype.groundingChunkIndices = $util.emptyArray; + + /** + * GroundingSupport confidenceScores. + * @member {Array.} confidenceScores + * @memberof google.cloud.aiplatform.v1beta1.GroundingSupport + * @instance + */ + GroundingSupport.prototype.confidenceScores = $util.emptyArray; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * GroundingSupport _segment. + * @member {"segment"|undefined} _segment + * @memberof google.cloud.aiplatform.v1beta1.GroundingSupport + * @instance + */ + Object.defineProperty(GroundingSupport.prototype, "_segment", { + get: $util.oneOfGetter($oneOfFields = ["segment"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new GroundingSupport instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.GroundingSupport + * @static + * @param {google.cloud.aiplatform.v1beta1.IGroundingSupport=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GroundingSupport} GroundingSupport instance + */ + GroundingSupport.create = function create(properties) { + return new GroundingSupport(properties); + }; + + /** + * Encodes the specified GroundingSupport message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundingSupport.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.GroundingSupport + * @static + * @param {google.cloud.aiplatform.v1beta1.IGroundingSupport} message GroundingSupport message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GroundingSupport.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.segment != null && Object.hasOwnProperty.call(message, "segment")) + $root.google.cloud.aiplatform.v1beta1.Segment.encode(message.segment, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.groundingChunkIndices != null && message.groundingChunkIndices.length) { + writer.uint32(/* id 2, wireType 2 =*/18).fork(); + for (var i = 0; i < message.groundingChunkIndices.length; ++i) + writer.int32(message.groundingChunkIndices[i]); + writer.ldelim(); + } + if (message.confidenceScores != null && message.confidenceScores.length) { + writer.uint32(/* id 3, wireType 2 =*/26).fork(); + for (var i = 0; i < message.confidenceScores.length; ++i) + writer.float(message.confidenceScores[i]); + writer.ldelim(); + } + return writer; + }; + + /** + * Encodes the specified GroundingSupport message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundingSupport.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.GroundingSupport + * @static + * @param {google.cloud.aiplatform.v1beta1.IGroundingSupport} message GroundingSupport message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GroundingSupport.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GroundingSupport message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.GroundingSupport + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.GroundingSupport} GroundingSupport + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GroundingSupport.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GroundingSupport(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.segment = $root.google.cloud.aiplatform.v1beta1.Segment.decode(reader, reader.uint32()); + break; + } + case 2: { + if (!(message.groundingChunkIndices && message.groundingChunkIndices.length)) + message.groundingChunkIndices = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.groundingChunkIndices.push(reader.int32()); + } else + message.groundingChunkIndices.push(reader.int32()); + break; + } + case 3: { + if (!(message.confidenceScores && message.confidenceScores.length)) + message.confidenceScores = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.confidenceScores.push(reader.float()); + } else + message.confidenceScores.push(reader.float()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GroundingSupport message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.GroundingSupport + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.GroundingSupport} GroundingSupport + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GroundingSupport.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GroundingSupport message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.GroundingSupport + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GroundingSupport.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.segment != null && message.hasOwnProperty("segment")) { + properties._segment = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.Segment.verify(message.segment); + if (error) + return "segment." + error; + } + } + if (message.groundingChunkIndices != null && message.hasOwnProperty("groundingChunkIndices")) { + if (!Array.isArray(message.groundingChunkIndices)) + return "groundingChunkIndices: array expected"; + for (var i = 0; i < message.groundingChunkIndices.length; ++i) + if (!$util.isInteger(message.groundingChunkIndices[i])) + return "groundingChunkIndices: integer[] expected"; + } + if (message.confidenceScores != null && message.hasOwnProperty("confidenceScores")) { + if (!Array.isArray(message.confidenceScores)) + return "confidenceScores: array expected"; + for (var i = 0; i < message.confidenceScores.length; ++i) + if (typeof message.confidenceScores[i] !== "number") + return "confidenceScores: number[] expected"; + } + return null; + }; + + /** + * Creates a GroundingSupport message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.GroundingSupport + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.GroundingSupport} GroundingSupport + */ + GroundingSupport.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GroundingSupport) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.GroundingSupport(); + if (object.segment != null) { + if (typeof object.segment !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.GroundingSupport.segment: object expected"); + message.segment = $root.google.cloud.aiplatform.v1beta1.Segment.fromObject(object.segment); + } + if (object.groundingChunkIndices) { + if (!Array.isArray(object.groundingChunkIndices)) + throw TypeError(".google.cloud.aiplatform.v1beta1.GroundingSupport.groundingChunkIndices: array expected"); + message.groundingChunkIndices = []; + for (var i = 0; i < object.groundingChunkIndices.length; ++i) + message.groundingChunkIndices[i] = object.groundingChunkIndices[i] | 0; + } + if (object.confidenceScores) { + if (!Array.isArray(object.confidenceScores)) + throw TypeError(".google.cloud.aiplatform.v1beta1.GroundingSupport.confidenceScores: array expected"); + message.confidenceScores = []; + for (var i = 0; i < object.confidenceScores.length; ++i) + message.confidenceScores[i] = Number(object.confidenceScores[i]); + } + return message; + }; + + /** + * Creates a plain object from a GroundingSupport message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.GroundingSupport + * @static + * @param {google.cloud.aiplatform.v1beta1.GroundingSupport} message GroundingSupport + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GroundingSupport.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.groundingChunkIndices = []; + object.confidenceScores = []; + } + if (message.segment != null && message.hasOwnProperty("segment")) { + object.segment = $root.google.cloud.aiplatform.v1beta1.Segment.toObject(message.segment, options); + if (options.oneofs) + object._segment = "segment"; + } + if (message.groundingChunkIndices && message.groundingChunkIndices.length) { + object.groundingChunkIndices = []; + for (var j = 0; j < message.groundingChunkIndices.length; ++j) + object.groundingChunkIndices[j] = message.groundingChunkIndices[j]; + } + if (message.confidenceScores && message.confidenceScores.length) { + object.confidenceScores = []; + for (var j = 0; j < message.confidenceScores.length; ++j) + object.confidenceScores[j] = options.json && !isFinite(message.confidenceScores[j]) ? String(message.confidenceScores[j]) : message.confidenceScores[j]; + } + return object; + }; + + /** + * Converts this GroundingSupport to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.GroundingSupport + * @instance + * @returns {Object.} JSON object + */ + GroundingSupport.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GroundingSupport + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.GroundingSupport + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GroundingSupport.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GroundingSupport"; + }; + + return GroundingSupport; + })(); + + v1beta1.GroundingAttribution = (function() { + + /** + * Properties of a GroundingAttribution. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IGroundingAttribution + * @property {google.cloud.aiplatform.v1beta1.GroundingAttribution.IWeb|null} [web] GroundingAttribution web + * @property {google.cloud.aiplatform.v1beta1.GroundingAttribution.IRetrievedContext|null} [retrievedContext] GroundingAttribution retrievedContext + * @property {google.cloud.aiplatform.v1beta1.ISegment|null} [segment] GroundingAttribution segment + * @property {number|null} [confidenceScore] GroundingAttribution confidenceScore + */ + + /** + * Constructs a new GroundingAttribution. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a GroundingAttribution. + * @implements IGroundingAttribution + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IGroundingAttribution=} [properties] Properties to set + */ + function GroundingAttribution(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]]; + } + + /** + * GroundingAttribution web. + * @member {google.cloud.aiplatform.v1beta1.GroundingAttribution.IWeb|null|undefined} web + * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution + * @instance + */ + GroundingAttribution.prototype.web = null; + + /** + * GroundingAttribution retrievedContext. + * @member {google.cloud.aiplatform.v1beta1.GroundingAttribution.IRetrievedContext|null|undefined} retrievedContext + * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution + * @instance + */ + GroundingAttribution.prototype.retrievedContext = null; + + /** + * GroundingAttribution segment. + * @member {google.cloud.aiplatform.v1beta1.ISegment|null|undefined} segment + * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution + * @instance + */ + GroundingAttribution.prototype.segment = null; + + /** + * GroundingAttribution confidenceScore. + * @member {number|null|undefined} confidenceScore + * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution + * @instance + */ + GroundingAttribution.prototype.confidenceScore = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * GroundingAttribution reference. + * @member {"web"|"retrievedContext"|undefined} reference + * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution + * @instance + */ + Object.defineProperty(GroundingAttribution.prototype, "reference", { + get: $util.oneOfGetter($oneOfFields = ["web", "retrievedContext"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * GroundingAttribution _confidenceScore. + * @member {"confidenceScore"|undefined} _confidenceScore + * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution + * @instance + */ + Object.defineProperty(GroundingAttribution.prototype, "_confidenceScore", { + get: $util.oneOfGetter($oneOfFields = ["confidenceScore"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new GroundingAttribution instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution + * @static + * @param {google.cloud.aiplatform.v1beta1.IGroundingAttribution=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GroundingAttribution} GroundingAttribution instance + */ + GroundingAttribution.create = function create(properties) { + return new GroundingAttribution(properties); + }; + + /** + * Encodes the specified GroundingAttribution message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundingAttribution.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution + * @static + * @param {google.cloud.aiplatform.v1beta1.IGroundingAttribution} message GroundingAttribution message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GroundingAttribution.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.segment != null && Object.hasOwnProperty.call(message, "segment")) + $root.google.cloud.aiplatform.v1beta1.Segment.encode(message.segment, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.confidenceScore != null && Object.hasOwnProperty.call(message, "confidenceScore")) + writer.uint32(/* id 2, wireType 5 =*/21).float(message.confidenceScore); + if (message.web != null && Object.hasOwnProperty.call(message, "web")) + $root.google.cloud.aiplatform.v1beta1.GroundingAttribution.Web.encode(message.web, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.retrievedContext != null && Object.hasOwnProperty.call(message, "retrievedContext")) + $root.google.cloud.aiplatform.v1beta1.GroundingAttribution.RetrievedContext.encode(message.retrievedContext, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified GroundingAttribution message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundingAttribution.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution + * @static + * @param {google.cloud.aiplatform.v1beta1.IGroundingAttribution} message GroundingAttribution message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GroundingAttribution.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GroundingAttribution message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.GroundingAttribution} GroundingAttribution + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GroundingAttribution.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GroundingAttribution(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 3: { + message.web = $root.google.cloud.aiplatform.v1beta1.GroundingAttribution.Web.decode(reader, reader.uint32()); + break; + } + case 4: { + message.retrievedContext = $root.google.cloud.aiplatform.v1beta1.GroundingAttribution.RetrievedContext.decode(reader, reader.uint32()); + break; + } + case 1: { + message.segment = $root.google.cloud.aiplatform.v1beta1.Segment.decode(reader, reader.uint32()); + break; + } + case 2: { + message.confidenceScore = reader.float(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GroundingAttribution message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.GroundingAttribution} GroundingAttribution + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GroundingAttribution.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GroundingAttribution message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GroundingAttribution.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.web != null && message.hasOwnProperty("web")) { + properties.reference = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.GroundingAttribution.Web.verify(message.web); + if (error) + return "web." + error; + } + } + if (message.retrievedContext != null && message.hasOwnProperty("retrievedContext")) { + if (properties.reference === 1) + return "reference: multiple values"; + properties.reference = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.GroundingAttribution.RetrievedContext.verify(message.retrievedContext); + if (error) + return "retrievedContext." + error; + } + } + if (message.segment != null && message.hasOwnProperty("segment")) { + var error = $root.google.cloud.aiplatform.v1beta1.Segment.verify(message.segment); + if (error) + return "segment." + error; + } + if (message.confidenceScore != null && message.hasOwnProperty("confidenceScore")) { + properties._confidenceScore = 1; + if (typeof message.confidenceScore !== "number") + return "confidenceScore: number expected"; + } + return null; + }; + + /** + * Creates a GroundingAttribution message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.GroundingAttribution} GroundingAttribution + */ + GroundingAttribution.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GroundingAttribution) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.GroundingAttribution(); + if (object.web != null) { + if (typeof object.web !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.GroundingAttribution.web: object expected"); + message.web = $root.google.cloud.aiplatform.v1beta1.GroundingAttribution.Web.fromObject(object.web); + } + if (object.retrievedContext != null) { + if (typeof object.retrievedContext !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.GroundingAttribution.retrievedContext: object expected"); + message.retrievedContext = $root.google.cloud.aiplatform.v1beta1.GroundingAttribution.RetrievedContext.fromObject(object.retrievedContext); + } + if (object.segment != null) { + if (typeof object.segment !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.GroundingAttribution.segment: object expected"); + message.segment = $root.google.cloud.aiplatform.v1beta1.Segment.fromObject(object.segment); + } + if (object.confidenceScore != null) + message.confidenceScore = Number(object.confidenceScore); + return message; + }; + + /** + * Creates a plain object from a GroundingAttribution message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution + * @static + * @param {google.cloud.aiplatform.v1beta1.GroundingAttribution} message GroundingAttribution + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GroundingAttribution.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.segment = null; + if (message.segment != null && message.hasOwnProperty("segment")) + object.segment = $root.google.cloud.aiplatform.v1beta1.Segment.toObject(message.segment, options); + if (message.confidenceScore != null && message.hasOwnProperty("confidenceScore")) { + object.confidenceScore = options.json && !isFinite(message.confidenceScore) ? String(message.confidenceScore) : message.confidenceScore; + if (options.oneofs) + object._confidenceScore = "confidenceScore"; + } + if (message.web != null && message.hasOwnProperty("web")) { + object.web = $root.google.cloud.aiplatform.v1beta1.GroundingAttribution.Web.toObject(message.web, options); + if (options.oneofs) + object.reference = "web"; + } + if (message.retrievedContext != null && message.hasOwnProperty("retrievedContext")) { + object.retrievedContext = $root.google.cloud.aiplatform.v1beta1.GroundingAttribution.RetrievedContext.toObject(message.retrievedContext, options); + if (options.oneofs) + object.reference = "retrievedContext"; + } + return object; + }; + + /** + * Converts this GroundingAttribution to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution + * @instance + * @returns {Object.} JSON object + */ + GroundingAttribution.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GroundingAttribution + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GroundingAttribution.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GroundingAttribution"; + }; + + GroundingAttribution.Web = (function() { + + /** + * Properties of a Web. + * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution + * @interface IWeb + * @property {string|null} [uri] Web uri + * @property {string|null} [title] Web title + */ + + /** + * Constructs a new Web. + * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution + * @classdesc Represents a Web. + * @implements IWeb + * @constructor + * @param {google.cloud.aiplatform.v1beta1.GroundingAttribution.IWeb=} [properties] Properties to set + */ + function Web(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]]; + } + + /** + * Web uri. + * @member {string} uri + * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution.Web + * @instance + */ + Web.prototype.uri = ""; + + /** + * Web title. + * @member {string} title + * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution.Web + * @instance + */ + Web.prototype.title = ""; + + /** + * Creates a new Web instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution.Web + * @static + * @param {google.cloud.aiplatform.v1beta1.GroundingAttribution.IWeb=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GroundingAttribution.Web} Web instance + */ + Web.create = function create(properties) { + return new Web(properties); + }; + + /** + * Encodes the specified Web message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundingAttribution.Web.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution.Web + * @static + * @param {google.cloud.aiplatform.v1beta1.GroundingAttribution.IWeb} message Web message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Web.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.uri != null && Object.hasOwnProperty.call(message, "uri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.uri); + if (message.title != null && Object.hasOwnProperty.call(message, "title")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.title); + return writer; + }; + + /** + * Encodes the specified Web message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundingAttribution.Web.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution.Web + * @static + * @param {google.cloud.aiplatform.v1beta1.GroundingAttribution.IWeb} message Web message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Web.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Web message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution.Web + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.GroundingAttribution.Web} Web + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Web.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GroundingAttribution.Web(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -288674,6 +289865,8 @@ * @property {google.cloud.aiplatform.v1beta1.ISearchEntryPoint|null} [searchEntryPoint] GroundingMetadata searchEntryPoint * @property {Array.|null} [retrievalQueries] GroundingMetadata retrievalQueries * @property {Array.|null} [groundingAttributions] GroundingMetadata groundingAttributions + * @property {Array.|null} [groundingChunks] GroundingMetadata groundingChunks + * @property {Array.|null} [groundingSupports] GroundingMetadata groundingSupports */ /** @@ -288688,6 +289881,8 @@ this.webSearchQueries = []; this.retrievalQueries = []; this.groundingAttributions = []; + this.groundingChunks = []; + this.groundingSupports = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -288726,6 +289921,22 @@ */ GroundingMetadata.prototype.groundingAttributions = $util.emptyArray; + /** + * GroundingMetadata groundingChunks. + * @member {Array.} groundingChunks + * @memberof google.cloud.aiplatform.v1beta1.GroundingMetadata + * @instance + */ + GroundingMetadata.prototype.groundingChunks = $util.emptyArray; + + /** + * GroundingMetadata groundingSupports. + * @member {Array.} groundingSupports + * @memberof google.cloud.aiplatform.v1beta1.GroundingMetadata + * @instance + */ + GroundingMetadata.prototype.groundingSupports = $util.emptyArray; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -288775,6 +289986,12 @@ writer.uint32(/* id 3, wireType 2 =*/26).string(message.retrievalQueries[i]); if (message.searchEntryPoint != null && Object.hasOwnProperty.call(message, "searchEntryPoint")) $root.google.cloud.aiplatform.v1beta1.SearchEntryPoint.encode(message.searchEntryPoint, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.groundingChunks != null && message.groundingChunks.length) + for (var i = 0; i < message.groundingChunks.length; ++i) + $root.google.cloud.aiplatform.v1beta1.GroundingChunk.encode(message.groundingChunks[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.groundingSupports != null && message.groundingSupports.length) + for (var i = 0; i < message.groundingSupports.length; ++i) + $root.google.cloud.aiplatform.v1beta1.GroundingSupport.encode(message.groundingSupports[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); return writer; }; @@ -288831,6 +290048,18 @@ message.groundingAttributions.push($root.google.cloud.aiplatform.v1beta1.GroundingAttribution.decode(reader, reader.uint32())); break; } + case 5: { + if (!(message.groundingChunks && message.groundingChunks.length)) + message.groundingChunks = []; + message.groundingChunks.push($root.google.cloud.aiplatform.v1beta1.GroundingChunk.decode(reader, reader.uint32())); + break; + } + case 6: { + if (!(message.groundingSupports && message.groundingSupports.length)) + message.groundingSupports = []; + message.groundingSupports.push($root.google.cloud.aiplatform.v1beta1.GroundingSupport.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -288898,6 +290127,24 @@ return "groundingAttributions." + error; } } + if (message.groundingChunks != null && message.hasOwnProperty("groundingChunks")) { + if (!Array.isArray(message.groundingChunks)) + return "groundingChunks: array expected"; + for (var i = 0; i < message.groundingChunks.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.GroundingChunk.verify(message.groundingChunks[i]); + if (error) + return "groundingChunks." + error; + } + } + if (message.groundingSupports != null && message.hasOwnProperty("groundingSupports")) { + if (!Array.isArray(message.groundingSupports)) + return "groundingSupports: array expected"; + for (var i = 0; i < message.groundingSupports.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.GroundingSupport.verify(message.groundingSupports[i]); + if (error) + return "groundingSupports." + error; + } + } return null; }; @@ -288942,6 +290189,26 @@ message.groundingAttributions[i] = $root.google.cloud.aiplatform.v1beta1.GroundingAttribution.fromObject(object.groundingAttributions[i]); } } + if (object.groundingChunks) { + if (!Array.isArray(object.groundingChunks)) + throw TypeError(".google.cloud.aiplatform.v1beta1.GroundingMetadata.groundingChunks: array expected"); + message.groundingChunks = []; + for (var i = 0; i < object.groundingChunks.length; ++i) { + if (typeof object.groundingChunks[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.GroundingMetadata.groundingChunks: object expected"); + message.groundingChunks[i] = $root.google.cloud.aiplatform.v1beta1.GroundingChunk.fromObject(object.groundingChunks[i]); + } + } + if (object.groundingSupports) { + if (!Array.isArray(object.groundingSupports)) + throw TypeError(".google.cloud.aiplatform.v1beta1.GroundingMetadata.groundingSupports: array expected"); + message.groundingSupports = []; + for (var i = 0; i < object.groundingSupports.length; ++i) { + if (typeof object.groundingSupports[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.GroundingMetadata.groundingSupports: object expected"); + message.groundingSupports[i] = $root.google.cloud.aiplatform.v1beta1.GroundingSupport.fromObject(object.groundingSupports[i]); + } + } return message; }; @@ -288962,6 +290229,8 @@ object.webSearchQueries = []; object.groundingAttributions = []; object.retrievalQueries = []; + object.groundingChunks = []; + object.groundingSupports = []; } if (message.webSearchQueries && message.webSearchQueries.length) { object.webSearchQueries = []; @@ -288983,6 +290252,16 @@ if (options.oneofs) object._searchEntryPoint = "searchEntryPoint"; } + if (message.groundingChunks && message.groundingChunks.length) { + object.groundingChunks = []; + for (var j = 0; j < message.groundingChunks.length; ++j) + object.groundingChunks[j] = $root.google.cloud.aiplatform.v1beta1.GroundingChunk.toObject(message.groundingChunks[j], options); + } + if (message.groundingSupports && message.groundingSupports.length) { + object.groundingSupports = []; + for (var j = 0; j < message.groundingSupports.length; ++j) + object.groundingSupports[j] = $root.google.cloud.aiplatform.v1beta1.GroundingSupport.toObject(message.groundingSupports[j], options); + } return object; }; @@ -517005,6 +518284,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.PredictionService|streamRawPredict}. + * @memberof google.cloud.aiplatform.v1beta1.PredictionService + * @typedef StreamRawPredictCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.api.HttpBody} [response] HttpBody + */ + + /** + * Calls StreamRawPredict. + * @function streamRawPredict + * @memberof google.cloud.aiplatform.v1beta1.PredictionService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IStreamRawPredictRequest} request StreamRawPredictRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.PredictionService.StreamRawPredictCallback} callback Node-style callback called with the error, if any, and HttpBody + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(PredictionService.prototype.streamRawPredict = function streamRawPredict(request, callback) { + return this.rpcCall(streamRawPredict, $root.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest, $root.google.api.HttpBody, request, callback); + }, "name", { value: "StreamRawPredict" }); + + /** + * Calls StreamRawPredict. + * @function streamRawPredict + * @memberof google.cloud.aiplatform.v1beta1.PredictionService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IStreamRawPredictRequest} request StreamRawPredictRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.aiplatform.v1beta1.PredictionService|directPredict}. * @memberof google.cloud.aiplatform.v1beta1.PredictionService @@ -518259,6 +519571,238 @@ return RawPredictRequest; })(); + v1beta1.StreamRawPredictRequest = (function() { + + /** + * Properties of a StreamRawPredictRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IStreamRawPredictRequest + * @property {string|null} [endpoint] StreamRawPredictRequest endpoint + * @property {google.api.IHttpBody|null} [httpBody] StreamRawPredictRequest httpBody + */ + + /** + * Constructs a new StreamRawPredictRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a StreamRawPredictRequest. + * @implements IStreamRawPredictRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IStreamRawPredictRequest=} [properties] Properties to set + */ + function StreamRawPredictRequest(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]]; + } + + /** + * StreamRawPredictRequest endpoint. + * @member {string} endpoint + * @memberof google.cloud.aiplatform.v1beta1.StreamRawPredictRequest + * @instance + */ + StreamRawPredictRequest.prototype.endpoint = ""; + + /** + * StreamRawPredictRequest httpBody. + * @member {google.api.IHttpBody|null|undefined} httpBody + * @memberof google.cloud.aiplatform.v1beta1.StreamRawPredictRequest + * @instance + */ + StreamRawPredictRequest.prototype.httpBody = null; + + /** + * Creates a new StreamRawPredictRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.StreamRawPredictRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IStreamRawPredictRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.StreamRawPredictRequest} StreamRawPredictRequest instance + */ + StreamRawPredictRequest.create = function create(properties) { + return new StreamRawPredictRequest(properties); + }; + + /** + * Encodes the specified StreamRawPredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamRawPredictRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.StreamRawPredictRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IStreamRawPredictRequest} message StreamRawPredictRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StreamRawPredictRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); + if (message.httpBody != null && Object.hasOwnProperty.call(message, "httpBody")) + $root.google.api.HttpBody.encode(message.httpBody, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified StreamRawPredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamRawPredictRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StreamRawPredictRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IStreamRawPredictRequest} message StreamRawPredictRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StreamRawPredictRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a StreamRawPredictRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.StreamRawPredictRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.StreamRawPredictRequest} StreamRawPredictRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StreamRawPredictRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.endpoint = reader.string(); + break; + } + case 2: { + message.httpBody = $root.google.api.HttpBody.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a StreamRawPredictRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StreamRawPredictRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.StreamRawPredictRequest} StreamRawPredictRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StreamRawPredictRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a StreamRawPredictRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.StreamRawPredictRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + StreamRawPredictRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + if (!$util.isString(message.endpoint)) + return "endpoint: string expected"; + if (message.httpBody != null && message.hasOwnProperty("httpBody")) { + var error = $root.google.api.HttpBody.verify(message.httpBody); + if (error) + return "httpBody." + error; + } + return null; + }; + + /** + * Creates a StreamRawPredictRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.StreamRawPredictRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.StreamRawPredictRequest} StreamRawPredictRequest + */ + StreamRawPredictRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest(); + if (object.endpoint != null) + message.endpoint = String(object.endpoint); + if (object.httpBody != null) { + if (typeof object.httpBody !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.StreamRawPredictRequest.httpBody: object expected"); + message.httpBody = $root.google.api.HttpBody.fromObject(object.httpBody); + } + return message; + }; + + /** + * Creates a plain object from a StreamRawPredictRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.StreamRawPredictRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.StreamRawPredictRequest} message StreamRawPredictRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + StreamRawPredictRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.endpoint = ""; + object.httpBody = null; + } + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + object.endpoint = message.endpoint; + if (message.httpBody != null && message.hasOwnProperty("httpBody")) + object.httpBody = $root.google.api.HttpBody.toObject(message.httpBody, options); + return object; + }; + + /** + * Converts this StreamRawPredictRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.StreamRawPredictRequest + * @instance + * @returns {Object.} JSON object + */ + StreamRawPredictRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for StreamRawPredictRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.StreamRawPredictRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + StreamRawPredictRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.StreamRawPredictRequest"; + }; + + return StreamRawPredictRequest; + })(); + v1beta1.DirectPredictRequest = (function() { /** diff --git a/packages/google-cloud-aiplatform/protos/protos.json b/packages/google-cloud-aiplatform/protos/protos.json index e3b271b3634..05f5bb4af03 100644 --- a/packages/google-cloud-aiplatform/protos/protos.json +++ b/packages/google-cloud-aiplatform/protos/protos.json @@ -2622,7 +2622,8 @@ "OTHER": 5, "BLOCKLIST": 6, "PROHIBITED_CONTENT": 7, - "SPII": 8 + "SPII": 8, + "MALFORMED_FUNCTION_CALL": 9 } } } @@ -10927,6 +10928,10 @@ "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } + }, + "encryptionSpec": { + "type": "EncryptionSpec", + "id": 16 } } }, @@ -15914,19 +15919,13 @@ "responseType": "DirectPredictResponse", "options": { "(google.api.http).post": "/v1/{endpoint=projects/*/locations/*/endpoints/*}:directPredict", - "(google.api.http).body": "*", - "(google.api.http).additional_bindings.post": "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:directPredict", - "(google.api.http).additional_bindings.body": "*" + "(google.api.http).body": "*" }, "parsedOptions": [ { "(google.api.http)": { "post": "/v1/{endpoint=projects/*/locations/*/endpoints/*}:directPredict", - "body": "*", - "additional_bindings": { - "post": "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:directPredict", - "body": "*" - } + "body": "*" } } ] @@ -15936,19 +15935,13 @@ "responseType": "DirectRawPredictResponse", "options": { "(google.api.http).post": "/v1/{endpoint=projects/*/locations/*/endpoints/*}:directRawPredict", - "(google.api.http).body": "*", - "(google.api.http).additional_bindings.post": "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:directRawPredict", - "(google.api.http).additional_bindings.body": "*" + "(google.api.http).body": "*" }, "parsedOptions": [ { "(google.api.http)": { "post": "/v1/{endpoint=projects/*/locations/*/endpoints/*}:directRawPredict", - "body": "*", - "additional_bindings": { - "post": "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:directRawPredict", - "body": "*" - } + "body": "*" } } ] @@ -15957,49 +15950,13 @@ "requestType": "StreamDirectPredictRequest", "requestStream": true, "responseType": "StreamDirectPredictResponse", - "responseStream": true, - "options": { - "(google.api.http).post": "/v1/{endpoint=projects/*/locations/*/endpoints/*}:streamDirectPredict", - "(google.api.http).body": "*", - "(google.api.http).additional_bindings.post": "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:streamDirectPredict", - "(google.api.http).additional_bindings.body": "*" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v1/{endpoint=projects/*/locations/*/endpoints/*}:streamDirectPredict", - "body": "*", - "additional_bindings": { - "post": "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:streamDirectPredict", - "body": "*" - } - } - } - ] + "responseStream": true }, "StreamDirectRawPredict": { "requestType": "StreamDirectRawPredictRequest", "requestStream": true, "responseType": "StreamDirectRawPredictResponse", - "responseStream": true, - "options": { - "(google.api.http).post": "/v1/{endpoint=projects/*/locations/*/endpoints/*}:streamDirectRawPredict", - "(google.api.http).body": "*", - "(google.api.http).additional_bindings.post": "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:streamDirectRawPredict", - "(google.api.http).additional_bindings.body": "*" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v1/{endpoint=projects/*/locations/*/endpoints/*}:streamDirectRawPredict", - "body": "*", - "additional_bindings": { - "post": "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:streamDirectRawPredict", - "body": "*" - } - } - } - ] + "responseStream": true }, "StreamingPredict": { "requestType": "StreamingPredictRequest", @@ -22347,6 +22304,13 @@ "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } + }, + "preflightValidations": { + "type": "bool", + "id": 26, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } }, "nested": { @@ -31039,7 +31003,8 @@ "OTHER": 5, "BLOCKLIST": 6, "PROHIBITED_CONTENT": 7, - "SPII": 8 + "SPII": 8, + "MALFORMED_FUNCTION_CALL": 9 } } } @@ -31066,6 +31031,123 @@ "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } + }, + "text": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, + "GroundingChunk": { + "oneofs": { + "chunkType": { + "oneof": [ + "web", + "retrievedContext" + ] + } + }, + "fields": { + "web": { + "type": "Web", + "id": 1 + }, + "retrievedContext": { + "type": "RetrievedContext", + "id": 2 + } + }, + "nested": { + "Web": { + "oneofs": { + "_uri": { + "oneof": [ + "uri" + ] + }, + "_title": { + "oneof": [ + "title" + ] + } + }, + "fields": { + "uri": { + "type": "string", + "id": 1, + "options": { + "proto3_optional": true + } + }, + "title": { + "type": "string", + "id": 2, + "options": { + "proto3_optional": true + } + } + } + }, + "RetrievedContext": { + "oneofs": { + "_uri": { + "oneof": [ + "uri" + ] + }, + "_title": { + "oneof": [ + "title" + ] + } + }, + "fields": { + "uri": { + "type": "string", + "id": 1, + "options": { + "proto3_optional": true + } + }, + "title": { + "type": "string", + "id": 2, + "options": { + "proto3_optional": true + } + } + } + } + } + }, + "GroundingSupport": { + "oneofs": { + "_segment": { + "oneof": [ + "segment" + ] + } + }, + "fields": { + "segment": { + "type": "Segment", + "id": 1, + "options": { + "proto3_optional": true + } + }, + "groundingChunkIndices": { + "rule": "repeated", + "type": "int32", + "id": 2 + }, + "confidenceScores": { + "rule": "repeated", + "type": "float", + "id": 3 } } }, @@ -31193,6 +31275,19 @@ "options": { "(google.api.field_behavior)": "OPTIONAL" } + }, + "groundingChunks": { + "rule": "repeated", + "type": "GroundingChunk", + "id": 5 + }, + "groundingSupports": { + "rule": "repeated", + "type": "GroundingSupport", + "id": 6, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } }, @@ -56566,6 +56661,33 @@ } ] }, + "StreamRawPredict": { + "requestType": "StreamRawPredictRequest", + "responseType": "google.api.HttpBody", + "responseStream": true, + "options": { + "(google.api.http).post": "/v1beta1/{endpoint=projects/*/locations/*/endpoints/*}:streamRawPredict", + "(google.api.http).body": "*", + "(google.api.http).additional_bindings.post": "/v1beta1/{endpoint=projects/*/locations/*/publishers/*/models/*}:streamRawPredict", + "(google.api.http).additional_bindings.body": "*", + "(google.api.method_signature)": "endpoint,http_body" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1beta1/{endpoint=projects/*/locations/*/endpoints/*}:streamRawPredict", + "body": "*", + "additional_bindings": { + "post": "/v1beta1/{endpoint=projects/*/locations/*/publishers/*/models/*}:streamRawPredict", + "body": "*" + } + } + }, + { + "(google.api.method_signature)": "endpoint,http_body" + } + ] + }, "DirectPredict": { "requestType": "DirectPredictRequest", "responseType": "DirectPredictResponse", @@ -56849,6 +56971,22 @@ } } }, + "StreamRawPredictRequest": { + "fields": { + "endpoint": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Endpoint" + } + }, + "httpBody": { + "type": "google.api.HttpBody", + "id": 2 + } + } + }, "DirectPredictRequest": { "fields": { "endpoint": { diff --git a/packages/google-cloud-aiplatform/samples/README.md b/packages/google-cloud-aiplatform/samples/README.md index 12de5757630..1ed31fa1f92 100644 --- a/packages/google-cloud-aiplatform/samples/README.md +++ b/packages/google-cloud-aiplatform/samples/README.md @@ -566,6 +566,7 @@ * [Prediction_service.stream_direct_predict](#prediction_service.stream_direct_predict) * [Prediction_service.stream_direct_raw_predict](#prediction_service.stream_direct_raw_predict) * [Prediction_service.stream_generate_content](#prediction_service.stream_generate_content) + * [Prediction_service.stream_raw_predict](#prediction_service.stream_raw_predict) * [Prediction_service.streaming_predict](#prediction_service.streaming_predict) * [Prediction_service.streaming_raw_predict](#prediction_service.streaming_raw_predict) * [Reasoning_engine_execution_service.query_reasoning_engine](#reasoning_engine_execution_service.query_reasoning_engine) @@ -10076,6 +10077,23 @@ __Usage:__ +### Prediction_service.stream_raw_predict + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/prediction_service.stream_raw_predict.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1beta1/prediction_service.stream_raw_predict.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1beta1/prediction_service.stream_raw_predict.js` + + +----- + + + + ### Prediction_service.streaming_predict View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/prediction_service.streaming_predict.js). diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/prediction_service.stream_raw_predict.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/prediction_service.stream_raw_predict.js new file mode 100644 index 00000000000..07c25c42948 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/prediction_service.stream_raw_predict.js @@ -0,0 +1,69 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(endpoint) { + // [START aiplatform_v1beta1_generated_PredictionService_StreamRawPredict_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the Endpoint requested to serve the prediction. + * Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + */ + // const endpoint = 'abc123' + /** + * The prediction input. Supports HTTP headers and arbitrary data payload. + */ + // const httpBody = {} + + // Imports the Aiplatform library + const {PredictionServiceClient} = require('@google-cloud/aiplatform').v1beta1; + + // Instantiates a client + const aiplatformClient = new PredictionServiceClient(); + + async function callStreamRawPredict() { + // Construct request + const request = { + endpoint, + }; + + // Run request + const stream = await aiplatformClient.streamRawPredict(request); + stream.on('data', (response) => { console.log(response) }); + stream.on('error', (err) => { throw(err) }); + stream.on('end', () => { /* API call completed */ }); + } + + callStreamRawPredict(); + // [END aiplatform_v1beta1_generated_PredictionService_StreamRawPredict_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/snippet_metadata_google.cloud.aiplatform.v1beta1.json b/packages/google-cloud-aiplatform/samples/generated/v1beta1/snippet_metadata_google.cloud.aiplatform.v1beta1.json index 187524e41f8..810459d9497 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/snippet_metadata_google.cloud.aiplatform.v1beta1.json +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/snippet_metadata_google.cloud.aiplatform.v1beta1.json @@ -11843,6 +11843,50 @@ } } }, + { + "regionTag": "aiplatform_v1beta1_generated_PredictionService_StreamRawPredict_async", + "title": "DatasetService streamRawPredict Sample", + "origin": "API_DEFINITION", + "description": " Perform a streaming online prediction with an arbitrary HTTP payload.", + "canonical": true, + "file": "prediction_service.stream_raw_predict.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 61, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "StreamRawPredict", + "fullName": "google.cloud.aiplatform.v1beta1.PredictionService.StreamRawPredict", + "async": true, + "parameters": [ + { + "name": "endpoint", + "type": "TYPE_STRING" + }, + { + "name": "http_body", + "type": ".google.api.HttpBody" + } + ], + "resultType": ".google.api.HttpBody", + "client": { + "shortName": "PredictionServiceClient", + "fullName": "google.cloud.aiplatform.v1beta1.PredictionServiceClient" + }, + "method": { + "shortName": "StreamRawPredict", + "fullName": "google.cloud.aiplatform.v1beta1.PredictionService.StreamRawPredict", + "service": { + "shortName": "PredictionService", + "fullName": "google.cloud.aiplatform.v1beta1.PredictionService" + } + } + } + }, { "regionTag": "aiplatform_v1beta1_generated_PredictionService_DirectPredict_async", "title": "DatasetService directPredict Sample", diff --git a/packages/google-cloud-aiplatform/src/v1/dataset_service_client.ts b/packages/google-cloud-aiplatform/src/v1/dataset_service_client.ts index da13193ac94..49a9e0e77f4 100644 --- a/packages/google-cloud-aiplatform/src/v1/dataset_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/dataset_service_client.ts @@ -640,6 +640,15 @@ export class DatasetServiceClient { { post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/persistentResources/*/operations/*}:cancel', }, @@ -746,6 +755,15 @@ export class DatasetServiceClient { { post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', }, + { + post: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:cancel', + }, { post: '/v1/{name=projects/*/locations/*/persistentResources/*/operations/*}:cancel', }, @@ -892,6 +910,18 @@ export class DatasetServiceClient { delete: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, { delete: '/ui/{name=projects/*/locations/*/persistentResources/*/operations/*}', @@ -1042,6 +1072,18 @@ export class DatasetServiceClient { delete: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + delete: + '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, { delete: '/v1/{name=projects/*/locations/*/studies/*/operations/*}', @@ -1189,6 +1231,15 @@ export class DatasetServiceClient { { get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + get: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, { get: '/ui/{name=projects/*/locations/*/persistentResources/*/operations/*}', }, @@ -1295,6 +1346,15 @@ export class DatasetServiceClient { { get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + get: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, {get: '/v1/{name=projects/*/locations/*/studies/*/operations/*}'}, { get: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', @@ -1412,6 +1472,15 @@ export class DatasetServiceClient { { get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*}/operations', }, + { + get: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimes/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*}/operations', + }, {get: '/ui/{name=projects/*/locations/*/studies/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/studies/*/trials/*}/operations', @@ -1514,6 +1583,15 @@ export class DatasetServiceClient { { get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*}/operations', }, + { + get: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimes/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*}/operations', + }, {get: '/v1/{name=projects/*/locations/*/studies/*}/operations'}, { get: '/v1/{name=projects/*/locations/*/studies/*/trials/*}/operations', @@ -1651,6 +1729,15 @@ export class DatasetServiceClient { { post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:wait', }, @@ -1766,6 +1853,15 @@ export class DatasetServiceClient { { post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', }, + { + post: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:wait', + }, { post: '/v1/{name=projects/*/locations/*/studies/*/operations/*}:wait', }, diff --git a/packages/google-cloud-aiplatform/src/v1/deployment_resource_pool_service_client.ts b/packages/google-cloud-aiplatform/src/v1/deployment_resource_pool_service_client.ts index a8d285376ff..7762c4b5e65 100644 --- a/packages/google-cloud-aiplatform/src/v1/deployment_resource_pool_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/deployment_resource_pool_service_client.ts @@ -624,6 +624,15 @@ export class DeploymentResourcePoolServiceClient { { post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/persistentResources/*/operations/*}:cancel', }, @@ -730,6 +739,15 @@ export class DeploymentResourcePoolServiceClient { { post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', }, + { + post: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:cancel', + }, { post: '/v1/{name=projects/*/locations/*/persistentResources/*/operations/*}:cancel', }, @@ -876,6 +894,18 @@ export class DeploymentResourcePoolServiceClient { delete: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, { delete: '/ui/{name=projects/*/locations/*/persistentResources/*/operations/*}', @@ -1026,6 +1056,18 @@ export class DeploymentResourcePoolServiceClient { delete: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + delete: + '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, { delete: '/v1/{name=projects/*/locations/*/studies/*/operations/*}', @@ -1173,6 +1215,15 @@ export class DeploymentResourcePoolServiceClient { { get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + get: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, { get: '/ui/{name=projects/*/locations/*/persistentResources/*/operations/*}', }, @@ -1279,6 +1330,15 @@ export class DeploymentResourcePoolServiceClient { { get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + get: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, {get: '/v1/{name=projects/*/locations/*/studies/*/operations/*}'}, { get: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', @@ -1396,6 +1456,15 @@ export class DeploymentResourcePoolServiceClient { { get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*}/operations', }, + { + get: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimes/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*}/operations', + }, {get: '/ui/{name=projects/*/locations/*/studies/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/studies/*/trials/*}/operations', @@ -1498,6 +1567,15 @@ export class DeploymentResourcePoolServiceClient { { get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*}/operations', }, + { + get: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimes/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*}/operations', + }, {get: '/v1/{name=projects/*/locations/*/studies/*}/operations'}, { get: '/v1/{name=projects/*/locations/*/studies/*/trials/*}/operations', @@ -1635,6 +1713,15 @@ export class DeploymentResourcePoolServiceClient { { post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:wait', }, @@ -1750,6 +1837,15 @@ export class DeploymentResourcePoolServiceClient { { post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', }, + { + post: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:wait', + }, { post: '/v1/{name=projects/*/locations/*/studies/*/operations/*}:wait', }, diff --git a/packages/google-cloud-aiplatform/src/v1/endpoint_service_client.ts b/packages/google-cloud-aiplatform/src/v1/endpoint_service_client.ts index 1610c79a59c..cfef5a524d5 100644 --- a/packages/google-cloud-aiplatform/src/v1/endpoint_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/endpoint_service_client.ts @@ -615,6 +615,15 @@ export class EndpointServiceClient { { post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/persistentResources/*/operations/*}:cancel', }, @@ -721,6 +730,15 @@ export class EndpointServiceClient { { post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', }, + { + post: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:cancel', + }, { post: '/v1/{name=projects/*/locations/*/persistentResources/*/operations/*}:cancel', }, @@ -867,6 +885,18 @@ export class EndpointServiceClient { delete: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, { delete: '/ui/{name=projects/*/locations/*/persistentResources/*/operations/*}', @@ -1017,6 +1047,18 @@ export class EndpointServiceClient { delete: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + delete: + '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, { delete: '/v1/{name=projects/*/locations/*/studies/*/operations/*}', @@ -1164,6 +1206,15 @@ export class EndpointServiceClient { { get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + get: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, { get: '/ui/{name=projects/*/locations/*/persistentResources/*/operations/*}', }, @@ -1270,6 +1321,15 @@ export class EndpointServiceClient { { get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + get: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, {get: '/v1/{name=projects/*/locations/*/studies/*/operations/*}'}, { get: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', @@ -1387,6 +1447,15 @@ export class EndpointServiceClient { { get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*}/operations', }, + { + get: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimes/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*}/operations', + }, {get: '/ui/{name=projects/*/locations/*/studies/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/studies/*/trials/*}/operations', @@ -1489,6 +1558,15 @@ export class EndpointServiceClient { { get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*}/operations', }, + { + get: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimes/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*}/operations', + }, {get: '/v1/{name=projects/*/locations/*/studies/*}/operations'}, { get: '/v1/{name=projects/*/locations/*/studies/*/trials/*}/operations', @@ -1626,6 +1704,15 @@ export class EndpointServiceClient { { post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:wait', }, @@ -1741,6 +1828,15 @@ export class EndpointServiceClient { { post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', }, + { + post: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:wait', + }, { post: '/v1/{name=projects/*/locations/*/studies/*/operations/*}:wait', }, diff --git a/packages/google-cloud-aiplatform/src/v1/feature_online_store_admin_service_client.ts b/packages/google-cloud-aiplatform/src/v1/feature_online_store_admin_service_client.ts index 35ca7c3f220..1b1ecd4d9cb 100644 --- a/packages/google-cloud-aiplatform/src/v1/feature_online_store_admin_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/feature_online_store_admin_service_client.ts @@ -630,6 +630,15 @@ export class FeatureOnlineStoreAdminServiceClient { { post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/persistentResources/*/operations/*}:cancel', }, @@ -736,6 +745,15 @@ export class FeatureOnlineStoreAdminServiceClient { { post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', }, + { + post: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:cancel', + }, { post: '/v1/{name=projects/*/locations/*/persistentResources/*/operations/*}:cancel', }, @@ -882,6 +900,18 @@ export class FeatureOnlineStoreAdminServiceClient { delete: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, { delete: '/ui/{name=projects/*/locations/*/persistentResources/*/operations/*}', @@ -1032,6 +1062,18 @@ export class FeatureOnlineStoreAdminServiceClient { delete: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + delete: + '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, { delete: '/v1/{name=projects/*/locations/*/studies/*/operations/*}', @@ -1179,6 +1221,15 @@ export class FeatureOnlineStoreAdminServiceClient { { get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + get: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, { get: '/ui/{name=projects/*/locations/*/persistentResources/*/operations/*}', }, @@ -1285,6 +1336,15 @@ export class FeatureOnlineStoreAdminServiceClient { { get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + get: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, {get: '/v1/{name=projects/*/locations/*/studies/*/operations/*}'}, { get: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', @@ -1402,6 +1462,15 @@ export class FeatureOnlineStoreAdminServiceClient { { get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*}/operations', }, + { + get: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimes/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*}/operations', + }, {get: '/ui/{name=projects/*/locations/*/studies/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/studies/*/trials/*}/operations', @@ -1504,6 +1573,15 @@ export class FeatureOnlineStoreAdminServiceClient { { get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*}/operations', }, + { + get: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimes/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*}/operations', + }, {get: '/v1/{name=projects/*/locations/*/studies/*}/operations'}, { get: '/v1/{name=projects/*/locations/*/studies/*/trials/*}/operations', @@ -1641,6 +1719,15 @@ export class FeatureOnlineStoreAdminServiceClient { { post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:wait', }, @@ -1756,6 +1843,15 @@ export class FeatureOnlineStoreAdminServiceClient { { post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', }, + { + post: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:wait', + }, { post: '/v1/{name=projects/*/locations/*/studies/*/operations/*}:wait', }, diff --git a/packages/google-cloud-aiplatform/src/v1/feature_registry_service_client.ts b/packages/google-cloud-aiplatform/src/v1/feature_registry_service_client.ts index 049e9a22f6d..d59ed73bf4e 100644 --- a/packages/google-cloud-aiplatform/src/v1/feature_registry_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/feature_registry_service_client.ts @@ -625,6 +625,15 @@ export class FeatureRegistryServiceClient { { post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/persistentResources/*/operations/*}:cancel', }, @@ -731,6 +740,15 @@ export class FeatureRegistryServiceClient { { post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', }, + { + post: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:cancel', + }, { post: '/v1/{name=projects/*/locations/*/persistentResources/*/operations/*}:cancel', }, @@ -877,6 +895,18 @@ export class FeatureRegistryServiceClient { delete: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, { delete: '/ui/{name=projects/*/locations/*/persistentResources/*/operations/*}', @@ -1027,6 +1057,18 @@ export class FeatureRegistryServiceClient { delete: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + delete: + '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, { delete: '/v1/{name=projects/*/locations/*/studies/*/operations/*}', @@ -1174,6 +1216,15 @@ export class FeatureRegistryServiceClient { { get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + get: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, { get: '/ui/{name=projects/*/locations/*/persistentResources/*/operations/*}', }, @@ -1280,6 +1331,15 @@ export class FeatureRegistryServiceClient { { get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + get: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, {get: '/v1/{name=projects/*/locations/*/studies/*/operations/*}'}, { get: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', @@ -1397,6 +1457,15 @@ export class FeatureRegistryServiceClient { { get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*}/operations', }, + { + get: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimes/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*}/operations', + }, {get: '/ui/{name=projects/*/locations/*/studies/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/studies/*/trials/*}/operations', @@ -1499,6 +1568,15 @@ export class FeatureRegistryServiceClient { { get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*}/operations', }, + { + get: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimes/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*}/operations', + }, {get: '/v1/{name=projects/*/locations/*/studies/*}/operations'}, { get: '/v1/{name=projects/*/locations/*/studies/*/trials/*}/operations', @@ -1636,6 +1714,15 @@ export class FeatureRegistryServiceClient { { post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:wait', }, @@ -1751,6 +1838,15 @@ export class FeatureRegistryServiceClient { { post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', }, + { + post: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:wait', + }, { post: '/v1/{name=projects/*/locations/*/studies/*/operations/*}:wait', }, diff --git a/packages/google-cloud-aiplatform/src/v1/featurestore_service_client.ts b/packages/google-cloud-aiplatform/src/v1/featurestore_service_client.ts index adba9df513f..06eabef7e80 100644 --- a/packages/google-cloud-aiplatform/src/v1/featurestore_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/featurestore_service_client.ts @@ -633,6 +633,15 @@ export class FeaturestoreServiceClient { { post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/persistentResources/*/operations/*}:cancel', }, @@ -739,6 +748,15 @@ export class FeaturestoreServiceClient { { post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', }, + { + post: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:cancel', + }, { post: '/v1/{name=projects/*/locations/*/persistentResources/*/operations/*}:cancel', }, @@ -885,6 +903,18 @@ export class FeaturestoreServiceClient { delete: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, { delete: '/ui/{name=projects/*/locations/*/persistentResources/*/operations/*}', @@ -1035,6 +1065,18 @@ export class FeaturestoreServiceClient { delete: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + delete: + '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, { delete: '/v1/{name=projects/*/locations/*/studies/*/operations/*}', @@ -1182,6 +1224,15 @@ export class FeaturestoreServiceClient { { get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + get: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, { get: '/ui/{name=projects/*/locations/*/persistentResources/*/operations/*}', }, @@ -1288,6 +1339,15 @@ export class FeaturestoreServiceClient { { get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + get: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, {get: '/v1/{name=projects/*/locations/*/studies/*/operations/*}'}, { get: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', @@ -1405,6 +1465,15 @@ export class FeaturestoreServiceClient { { get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*}/operations', }, + { + get: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimes/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*}/operations', + }, {get: '/ui/{name=projects/*/locations/*/studies/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/studies/*/trials/*}/operations', @@ -1507,6 +1576,15 @@ export class FeaturestoreServiceClient { { get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*}/operations', }, + { + get: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimes/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*}/operations', + }, {get: '/v1/{name=projects/*/locations/*/studies/*}/operations'}, { get: '/v1/{name=projects/*/locations/*/studies/*/trials/*}/operations', @@ -1644,6 +1722,15 @@ export class FeaturestoreServiceClient { { post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:wait', }, @@ -1759,6 +1846,15 @@ export class FeaturestoreServiceClient { { post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', }, + { + post: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:wait', + }, { post: '/v1/{name=projects/*/locations/*/studies/*/operations/*}:wait', }, diff --git a/packages/google-cloud-aiplatform/src/v1/index_endpoint_service_client.ts b/packages/google-cloud-aiplatform/src/v1/index_endpoint_service_client.ts index 74ddea82930..0edfa6d1efa 100644 --- a/packages/google-cloud-aiplatform/src/v1/index_endpoint_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/index_endpoint_service_client.ts @@ -615,6 +615,15 @@ export class IndexEndpointServiceClient { { post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/persistentResources/*/operations/*}:cancel', }, @@ -721,6 +730,15 @@ export class IndexEndpointServiceClient { { post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', }, + { + post: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:cancel', + }, { post: '/v1/{name=projects/*/locations/*/persistentResources/*/operations/*}:cancel', }, @@ -867,6 +885,18 @@ export class IndexEndpointServiceClient { delete: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, { delete: '/ui/{name=projects/*/locations/*/persistentResources/*/operations/*}', @@ -1017,6 +1047,18 @@ export class IndexEndpointServiceClient { delete: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + delete: + '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, { delete: '/v1/{name=projects/*/locations/*/studies/*/operations/*}', @@ -1164,6 +1206,15 @@ export class IndexEndpointServiceClient { { get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + get: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, { get: '/ui/{name=projects/*/locations/*/persistentResources/*/operations/*}', }, @@ -1270,6 +1321,15 @@ export class IndexEndpointServiceClient { { get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + get: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, {get: '/v1/{name=projects/*/locations/*/studies/*/operations/*}'}, { get: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', @@ -1387,6 +1447,15 @@ export class IndexEndpointServiceClient { { get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*}/operations', }, + { + get: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimes/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*}/operations', + }, {get: '/ui/{name=projects/*/locations/*/studies/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/studies/*/trials/*}/operations', @@ -1489,6 +1558,15 @@ export class IndexEndpointServiceClient { { get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*}/operations', }, + { + get: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimes/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*}/operations', + }, {get: '/v1/{name=projects/*/locations/*/studies/*}/operations'}, { get: '/v1/{name=projects/*/locations/*/studies/*/trials/*}/operations', @@ -1626,6 +1704,15 @@ export class IndexEndpointServiceClient { { post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:wait', }, @@ -1741,6 +1828,15 @@ export class IndexEndpointServiceClient { { post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', }, + { + post: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:wait', + }, { post: '/v1/{name=projects/*/locations/*/studies/*/operations/*}:wait', }, diff --git a/packages/google-cloud-aiplatform/src/v1/index_service_client.ts b/packages/google-cloud-aiplatform/src/v1/index_service_client.ts index c60d574d7bb..fc8c9351462 100644 --- a/packages/google-cloud-aiplatform/src/v1/index_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/index_service_client.ts @@ -615,6 +615,15 @@ export class IndexServiceClient { { post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/persistentResources/*/operations/*}:cancel', }, @@ -721,6 +730,15 @@ export class IndexServiceClient { { post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', }, + { + post: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:cancel', + }, { post: '/v1/{name=projects/*/locations/*/persistentResources/*/operations/*}:cancel', }, @@ -867,6 +885,18 @@ export class IndexServiceClient { delete: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, { delete: '/ui/{name=projects/*/locations/*/persistentResources/*/operations/*}', @@ -1017,6 +1047,18 @@ export class IndexServiceClient { delete: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + delete: + '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, { delete: '/v1/{name=projects/*/locations/*/studies/*/operations/*}', @@ -1164,6 +1206,15 @@ export class IndexServiceClient { { get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + get: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, { get: '/ui/{name=projects/*/locations/*/persistentResources/*/operations/*}', }, @@ -1270,6 +1321,15 @@ export class IndexServiceClient { { get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + get: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, {get: '/v1/{name=projects/*/locations/*/studies/*/operations/*}'}, { get: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', @@ -1387,6 +1447,15 @@ export class IndexServiceClient { { get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*}/operations', }, + { + get: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimes/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*}/operations', + }, {get: '/ui/{name=projects/*/locations/*/studies/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/studies/*/trials/*}/operations', @@ -1489,6 +1558,15 @@ export class IndexServiceClient { { get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*}/operations', }, + { + get: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimes/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*}/operations', + }, {get: '/v1/{name=projects/*/locations/*/studies/*}/operations'}, { get: '/v1/{name=projects/*/locations/*/studies/*/trials/*}/operations', @@ -1626,6 +1704,15 @@ export class IndexServiceClient { { post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:wait', }, @@ -1741,6 +1828,15 @@ export class IndexServiceClient { { post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', }, + { + post: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:wait', + }, { post: '/v1/{name=projects/*/locations/*/studies/*/operations/*}:wait', }, diff --git a/packages/google-cloud-aiplatform/src/v1/job_service_client.ts b/packages/google-cloud-aiplatform/src/v1/job_service_client.ts index c75d44b3892..922baa923c4 100644 --- a/packages/google-cloud-aiplatform/src/v1/job_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/job_service_client.ts @@ -651,6 +651,15 @@ export class JobServiceClient { { post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/persistentResources/*/operations/*}:cancel', }, @@ -757,6 +766,15 @@ export class JobServiceClient { { post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', }, + { + post: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:cancel', + }, { post: '/v1/{name=projects/*/locations/*/persistentResources/*/operations/*}:cancel', }, @@ -903,6 +921,18 @@ export class JobServiceClient { delete: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, { delete: '/ui/{name=projects/*/locations/*/persistentResources/*/operations/*}', @@ -1053,6 +1083,18 @@ export class JobServiceClient { delete: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + delete: + '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, { delete: '/v1/{name=projects/*/locations/*/studies/*/operations/*}', @@ -1200,6 +1242,15 @@ export class JobServiceClient { { get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + get: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, { get: '/ui/{name=projects/*/locations/*/persistentResources/*/operations/*}', }, @@ -1306,6 +1357,15 @@ export class JobServiceClient { { get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + get: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, {get: '/v1/{name=projects/*/locations/*/studies/*/operations/*}'}, { get: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', @@ -1423,6 +1483,15 @@ export class JobServiceClient { { get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*}/operations', }, + { + get: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimes/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*}/operations', + }, {get: '/ui/{name=projects/*/locations/*/studies/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/studies/*/trials/*}/operations', @@ -1525,6 +1594,15 @@ export class JobServiceClient { { get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*}/operations', }, + { + get: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimes/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*}/operations', + }, {get: '/v1/{name=projects/*/locations/*/studies/*}/operations'}, { get: '/v1/{name=projects/*/locations/*/studies/*/trials/*}/operations', @@ -1662,6 +1740,15 @@ export class JobServiceClient { { post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:wait', }, @@ -1777,6 +1864,15 @@ export class JobServiceClient { { post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', }, + { + post: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:wait', + }, { post: '/v1/{name=projects/*/locations/*/studies/*/operations/*}:wait', }, diff --git a/packages/google-cloud-aiplatform/src/v1/metadata_service_client.ts b/packages/google-cloud-aiplatform/src/v1/metadata_service_client.ts index 38c627f1bc5..bbb7e484bc0 100644 --- a/packages/google-cloud-aiplatform/src/v1/metadata_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/metadata_service_client.ts @@ -638,6 +638,15 @@ export class MetadataServiceClient { { post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/persistentResources/*/operations/*}:cancel', }, @@ -744,6 +753,15 @@ export class MetadataServiceClient { { post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', }, + { + post: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:cancel', + }, { post: '/v1/{name=projects/*/locations/*/persistentResources/*/operations/*}:cancel', }, @@ -890,6 +908,18 @@ export class MetadataServiceClient { delete: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, { delete: '/ui/{name=projects/*/locations/*/persistentResources/*/operations/*}', @@ -1040,6 +1070,18 @@ export class MetadataServiceClient { delete: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + delete: + '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, { delete: '/v1/{name=projects/*/locations/*/studies/*/operations/*}', @@ -1187,6 +1229,15 @@ export class MetadataServiceClient { { get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + get: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, { get: '/ui/{name=projects/*/locations/*/persistentResources/*/operations/*}', }, @@ -1293,6 +1344,15 @@ export class MetadataServiceClient { { get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + get: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, {get: '/v1/{name=projects/*/locations/*/studies/*/operations/*}'}, { get: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', @@ -1410,6 +1470,15 @@ export class MetadataServiceClient { { get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*}/operations', }, + { + get: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimes/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*}/operations', + }, {get: '/ui/{name=projects/*/locations/*/studies/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/studies/*/trials/*}/operations', @@ -1512,6 +1581,15 @@ export class MetadataServiceClient { { get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*}/operations', }, + { + get: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimes/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*}/operations', + }, {get: '/v1/{name=projects/*/locations/*/studies/*}/operations'}, { get: '/v1/{name=projects/*/locations/*/studies/*/trials/*}/operations', @@ -1649,6 +1727,15 @@ export class MetadataServiceClient { { post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:wait', }, @@ -1764,6 +1851,15 @@ export class MetadataServiceClient { { post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', }, + { + post: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:wait', + }, { post: '/v1/{name=projects/*/locations/*/studies/*/operations/*}:wait', }, diff --git a/packages/google-cloud-aiplatform/src/v1/migration_service_client.ts b/packages/google-cloud-aiplatform/src/v1/migration_service_client.ts index b4ac6c35e41..ba56c7f5771 100644 --- a/packages/google-cloud-aiplatform/src/v1/migration_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/migration_service_client.ts @@ -616,6 +616,15 @@ export class MigrationServiceClient { { post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/persistentResources/*/operations/*}:cancel', }, @@ -722,6 +731,15 @@ export class MigrationServiceClient { { post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', }, + { + post: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:cancel', + }, { post: '/v1/{name=projects/*/locations/*/persistentResources/*/operations/*}:cancel', }, @@ -868,6 +886,18 @@ export class MigrationServiceClient { delete: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, { delete: '/ui/{name=projects/*/locations/*/persistentResources/*/operations/*}', @@ -1018,6 +1048,18 @@ export class MigrationServiceClient { delete: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + delete: + '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, { delete: '/v1/{name=projects/*/locations/*/studies/*/operations/*}', @@ -1165,6 +1207,15 @@ export class MigrationServiceClient { { get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + get: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, { get: '/ui/{name=projects/*/locations/*/persistentResources/*/operations/*}', }, @@ -1271,6 +1322,15 @@ export class MigrationServiceClient { { get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + get: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, {get: '/v1/{name=projects/*/locations/*/studies/*/operations/*}'}, { get: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', @@ -1388,6 +1448,15 @@ export class MigrationServiceClient { { get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*}/operations', }, + { + get: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimes/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*}/operations', + }, {get: '/ui/{name=projects/*/locations/*/studies/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/studies/*/trials/*}/operations', @@ -1490,6 +1559,15 @@ export class MigrationServiceClient { { get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*}/operations', }, + { + get: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimes/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*}/operations', + }, {get: '/v1/{name=projects/*/locations/*/studies/*}/operations'}, { get: '/v1/{name=projects/*/locations/*/studies/*/trials/*}/operations', @@ -1627,6 +1705,15 @@ export class MigrationServiceClient { { post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:wait', }, @@ -1742,6 +1829,15 @@ export class MigrationServiceClient { { post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', }, + { + post: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:wait', + }, { post: '/v1/{name=projects/*/locations/*/studies/*/operations/*}:wait', }, diff --git a/packages/google-cloud-aiplatform/src/v1/model_service_client.ts b/packages/google-cloud-aiplatform/src/v1/model_service_client.ts index 9e60afce8c2..cf047a9bc3f 100644 --- a/packages/google-cloud-aiplatform/src/v1/model_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/model_service_client.ts @@ -630,6 +630,15 @@ export class ModelServiceClient { { post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/persistentResources/*/operations/*}:cancel', }, @@ -736,6 +745,15 @@ export class ModelServiceClient { { post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', }, + { + post: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:cancel', + }, { post: '/v1/{name=projects/*/locations/*/persistentResources/*/operations/*}:cancel', }, @@ -882,6 +900,18 @@ export class ModelServiceClient { delete: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, { delete: '/ui/{name=projects/*/locations/*/persistentResources/*/operations/*}', @@ -1032,6 +1062,18 @@ export class ModelServiceClient { delete: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + delete: + '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, { delete: '/v1/{name=projects/*/locations/*/studies/*/operations/*}', @@ -1179,6 +1221,15 @@ export class ModelServiceClient { { get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + get: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, { get: '/ui/{name=projects/*/locations/*/persistentResources/*/operations/*}', }, @@ -1285,6 +1336,15 @@ export class ModelServiceClient { { get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + get: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, {get: '/v1/{name=projects/*/locations/*/studies/*/operations/*}'}, { get: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', @@ -1402,6 +1462,15 @@ export class ModelServiceClient { { get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*}/operations', }, + { + get: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimes/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*}/operations', + }, {get: '/ui/{name=projects/*/locations/*/studies/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/studies/*/trials/*}/operations', @@ -1504,6 +1573,15 @@ export class ModelServiceClient { { get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*}/operations', }, + { + get: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimes/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*}/operations', + }, {get: '/v1/{name=projects/*/locations/*/studies/*}/operations'}, { get: '/v1/{name=projects/*/locations/*/studies/*/trials/*}/operations', @@ -1641,6 +1719,15 @@ export class ModelServiceClient { { post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:wait', }, @@ -1756,6 +1843,15 @@ export class ModelServiceClient { { post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', }, + { + post: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:wait', + }, { post: '/v1/{name=projects/*/locations/*/studies/*/operations/*}:wait', }, diff --git a/packages/google-cloud-aiplatform/src/v1/notebook_service_client.ts b/packages/google-cloud-aiplatform/src/v1/notebook_service_client.ts index 3e0a0e4210b..0e2ed190b1a 100644 --- a/packages/google-cloud-aiplatform/src/v1/notebook_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/notebook_service_client.ts @@ -620,6 +620,15 @@ export class NotebookServiceClient { { post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/persistentResources/*/operations/*}:cancel', }, @@ -726,6 +735,15 @@ export class NotebookServiceClient { { post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', }, + { + post: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:cancel', + }, { post: '/v1/{name=projects/*/locations/*/persistentResources/*/operations/*}:cancel', }, @@ -872,6 +890,18 @@ export class NotebookServiceClient { delete: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, { delete: '/ui/{name=projects/*/locations/*/persistentResources/*/operations/*}', @@ -1022,6 +1052,18 @@ export class NotebookServiceClient { delete: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + delete: + '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, { delete: '/v1/{name=projects/*/locations/*/studies/*/operations/*}', @@ -1169,6 +1211,15 @@ export class NotebookServiceClient { { get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + get: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, { get: '/ui/{name=projects/*/locations/*/persistentResources/*/operations/*}', }, @@ -1275,6 +1326,15 @@ export class NotebookServiceClient { { get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + get: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, {get: '/v1/{name=projects/*/locations/*/studies/*/operations/*}'}, { get: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', @@ -1392,6 +1452,15 @@ export class NotebookServiceClient { { get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*}/operations', }, + { + get: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimes/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*}/operations', + }, {get: '/ui/{name=projects/*/locations/*/studies/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/studies/*/trials/*}/operations', @@ -1494,6 +1563,15 @@ export class NotebookServiceClient { { get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*}/operations', }, + { + get: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimes/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*}/operations', + }, {get: '/v1/{name=projects/*/locations/*/studies/*}/operations'}, { get: '/v1/{name=projects/*/locations/*/studies/*/trials/*}/operations', @@ -1631,6 +1709,15 @@ export class NotebookServiceClient { { post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:wait', }, @@ -1746,6 +1833,15 @@ export class NotebookServiceClient { { post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', }, + { + post: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:wait', + }, { post: '/v1/{name=projects/*/locations/*/studies/*/operations/*}:wait', }, diff --git a/packages/google-cloud-aiplatform/src/v1/persistent_resource_service_client.ts b/packages/google-cloud-aiplatform/src/v1/persistent_resource_service_client.ts index 6f62fc745e8..90cfcdf8217 100644 --- a/packages/google-cloud-aiplatform/src/v1/persistent_resource_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/persistent_resource_service_client.ts @@ -616,6 +616,15 @@ export class PersistentResourceServiceClient { { post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/persistentResources/*/operations/*}:cancel', }, @@ -722,6 +731,15 @@ export class PersistentResourceServiceClient { { post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', }, + { + post: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:cancel', + }, { post: '/v1/{name=projects/*/locations/*/persistentResources/*/operations/*}:cancel', }, @@ -868,6 +886,18 @@ export class PersistentResourceServiceClient { delete: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, { delete: '/ui/{name=projects/*/locations/*/persistentResources/*/operations/*}', @@ -1018,6 +1048,18 @@ export class PersistentResourceServiceClient { delete: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + delete: + '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, { delete: '/v1/{name=projects/*/locations/*/studies/*/operations/*}', @@ -1165,6 +1207,15 @@ export class PersistentResourceServiceClient { { get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + get: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, { get: '/ui/{name=projects/*/locations/*/persistentResources/*/operations/*}', }, @@ -1271,6 +1322,15 @@ export class PersistentResourceServiceClient { { get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + get: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, {get: '/v1/{name=projects/*/locations/*/studies/*/operations/*}'}, { get: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', @@ -1388,6 +1448,15 @@ export class PersistentResourceServiceClient { { get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*}/operations', }, + { + get: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimes/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*}/operations', + }, {get: '/ui/{name=projects/*/locations/*/studies/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/studies/*/trials/*}/operations', @@ -1490,6 +1559,15 @@ export class PersistentResourceServiceClient { { get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*}/operations', }, + { + get: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimes/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*}/operations', + }, {get: '/v1/{name=projects/*/locations/*/studies/*}/operations'}, { get: '/v1/{name=projects/*/locations/*/studies/*/trials/*}/operations', @@ -1627,6 +1705,15 @@ export class PersistentResourceServiceClient { { post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:wait', }, @@ -1742,6 +1829,15 @@ export class PersistentResourceServiceClient { { post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', }, + { + post: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:wait', + }, { post: '/v1/{name=projects/*/locations/*/studies/*/operations/*}:wait', }, diff --git a/packages/google-cloud-aiplatform/src/v1/pipeline_service_client.ts b/packages/google-cloud-aiplatform/src/v1/pipeline_service_client.ts index 2e7e9faed35..7168176a1b2 100644 --- a/packages/google-cloud-aiplatform/src/v1/pipeline_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/pipeline_service_client.ts @@ -625,6 +625,15 @@ export class PipelineServiceClient { { post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/persistentResources/*/operations/*}:cancel', }, @@ -731,6 +740,15 @@ export class PipelineServiceClient { { post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', }, + { + post: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:cancel', + }, { post: '/v1/{name=projects/*/locations/*/persistentResources/*/operations/*}:cancel', }, @@ -877,6 +895,18 @@ export class PipelineServiceClient { delete: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, { delete: '/ui/{name=projects/*/locations/*/persistentResources/*/operations/*}', @@ -1027,6 +1057,18 @@ export class PipelineServiceClient { delete: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + delete: + '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, { delete: '/v1/{name=projects/*/locations/*/studies/*/operations/*}', @@ -1174,6 +1216,15 @@ export class PipelineServiceClient { { get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + get: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, { get: '/ui/{name=projects/*/locations/*/persistentResources/*/operations/*}', }, @@ -1280,6 +1331,15 @@ export class PipelineServiceClient { { get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + get: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, {get: '/v1/{name=projects/*/locations/*/studies/*/operations/*}'}, { get: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', @@ -1397,6 +1457,15 @@ export class PipelineServiceClient { { get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*}/operations', }, + { + get: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimes/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*}/operations', + }, {get: '/ui/{name=projects/*/locations/*/studies/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/studies/*/trials/*}/operations', @@ -1499,6 +1568,15 @@ export class PipelineServiceClient { { get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*}/operations', }, + { + get: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimes/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*}/operations', + }, {get: '/v1/{name=projects/*/locations/*/studies/*}/operations'}, { get: '/v1/{name=projects/*/locations/*/studies/*/trials/*}/operations', @@ -1636,6 +1714,15 @@ export class PipelineServiceClient { { post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:wait', }, @@ -1751,6 +1838,15 @@ export class PipelineServiceClient { { post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', }, + { + post: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:wait', + }, { post: '/v1/{name=projects/*/locations/*/studies/*/operations/*}:wait', }, diff --git a/packages/google-cloud-aiplatform/src/v1/schedule_service_client.ts b/packages/google-cloud-aiplatform/src/v1/schedule_service_client.ts index d418efad0b6..3adf65835a0 100644 --- a/packages/google-cloud-aiplatform/src/v1/schedule_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/schedule_service_client.ts @@ -616,6 +616,15 @@ export class ScheduleServiceClient { { post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/persistentResources/*/operations/*}:cancel', }, @@ -722,6 +731,15 @@ export class ScheduleServiceClient { { post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', }, + { + post: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:cancel', + }, { post: '/v1/{name=projects/*/locations/*/persistentResources/*/operations/*}:cancel', }, @@ -868,6 +886,18 @@ export class ScheduleServiceClient { delete: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, { delete: '/ui/{name=projects/*/locations/*/persistentResources/*/operations/*}', @@ -1018,6 +1048,18 @@ export class ScheduleServiceClient { delete: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + delete: + '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, { delete: '/v1/{name=projects/*/locations/*/studies/*/operations/*}', @@ -1165,6 +1207,15 @@ export class ScheduleServiceClient { { get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + get: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, { get: '/ui/{name=projects/*/locations/*/persistentResources/*/operations/*}', }, @@ -1271,6 +1322,15 @@ export class ScheduleServiceClient { { get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + get: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, {get: '/v1/{name=projects/*/locations/*/studies/*/operations/*}'}, { get: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', @@ -1388,6 +1448,15 @@ export class ScheduleServiceClient { { get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*}/operations', }, + { + get: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimes/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*}/operations', + }, {get: '/ui/{name=projects/*/locations/*/studies/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/studies/*/trials/*}/operations', @@ -1490,6 +1559,15 @@ export class ScheduleServiceClient { { get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*}/operations', }, + { + get: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimes/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*}/operations', + }, {get: '/v1/{name=projects/*/locations/*/studies/*}/operations'}, { get: '/v1/{name=projects/*/locations/*/studies/*/trials/*}/operations', @@ -1627,6 +1705,15 @@ export class ScheduleServiceClient { { post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:wait', }, @@ -1742,6 +1829,15 @@ export class ScheduleServiceClient { { post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', }, + { + post: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:wait', + }, { post: '/v1/{name=projects/*/locations/*/studies/*/operations/*}:wait', }, diff --git a/packages/google-cloud-aiplatform/src/v1/specialist_pool_service_client.ts b/packages/google-cloud-aiplatform/src/v1/specialist_pool_service_client.ts index f14945d32f0..4c3852f4152 100644 --- a/packages/google-cloud-aiplatform/src/v1/specialist_pool_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/specialist_pool_service_client.ts @@ -621,6 +621,15 @@ export class SpecialistPoolServiceClient { { post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/persistentResources/*/operations/*}:cancel', }, @@ -727,6 +736,15 @@ export class SpecialistPoolServiceClient { { post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', }, + { + post: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:cancel', + }, { post: '/v1/{name=projects/*/locations/*/persistentResources/*/operations/*}:cancel', }, @@ -873,6 +891,18 @@ export class SpecialistPoolServiceClient { delete: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, { delete: '/ui/{name=projects/*/locations/*/persistentResources/*/operations/*}', @@ -1023,6 +1053,18 @@ export class SpecialistPoolServiceClient { delete: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + delete: + '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, { delete: '/v1/{name=projects/*/locations/*/studies/*/operations/*}', @@ -1170,6 +1212,15 @@ export class SpecialistPoolServiceClient { { get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + get: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, { get: '/ui/{name=projects/*/locations/*/persistentResources/*/operations/*}', }, @@ -1276,6 +1327,15 @@ export class SpecialistPoolServiceClient { { get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + get: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, {get: '/v1/{name=projects/*/locations/*/studies/*/operations/*}'}, { get: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', @@ -1393,6 +1453,15 @@ export class SpecialistPoolServiceClient { { get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*}/operations', }, + { + get: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimes/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*}/operations', + }, {get: '/ui/{name=projects/*/locations/*/studies/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/studies/*/trials/*}/operations', @@ -1495,6 +1564,15 @@ export class SpecialistPoolServiceClient { { get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*}/operations', }, + { + get: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimes/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*}/operations', + }, {get: '/v1/{name=projects/*/locations/*/studies/*}/operations'}, { get: '/v1/{name=projects/*/locations/*/studies/*/trials/*}/operations', @@ -1632,6 +1710,15 @@ export class SpecialistPoolServiceClient { { post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:wait', }, @@ -1747,6 +1834,15 @@ export class SpecialistPoolServiceClient { { post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', }, + { + post: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:wait', + }, { post: '/v1/{name=projects/*/locations/*/studies/*/operations/*}:wait', }, diff --git a/packages/google-cloud-aiplatform/src/v1/tensorboard_service_client.ts b/packages/google-cloud-aiplatform/src/v1/tensorboard_service_client.ts index 6ac2ec71b15..79a8e6a1b04 100644 --- a/packages/google-cloud-aiplatform/src/v1/tensorboard_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/tensorboard_service_client.ts @@ -648,6 +648,15 @@ export class TensorboardServiceClient { { post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/persistentResources/*/operations/*}:cancel', }, @@ -754,6 +763,15 @@ export class TensorboardServiceClient { { post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', }, + { + post: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:cancel', + }, { post: '/v1/{name=projects/*/locations/*/persistentResources/*/operations/*}:cancel', }, @@ -900,6 +918,18 @@ export class TensorboardServiceClient { delete: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, { delete: '/ui/{name=projects/*/locations/*/persistentResources/*/operations/*}', @@ -1050,6 +1080,18 @@ export class TensorboardServiceClient { delete: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + delete: + '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, { delete: '/v1/{name=projects/*/locations/*/studies/*/operations/*}', @@ -1197,6 +1239,15 @@ export class TensorboardServiceClient { { get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + get: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, { get: '/ui/{name=projects/*/locations/*/persistentResources/*/operations/*}', }, @@ -1303,6 +1354,15 @@ export class TensorboardServiceClient { { get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + get: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, {get: '/v1/{name=projects/*/locations/*/studies/*/operations/*}'}, { get: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', @@ -1420,6 +1480,15 @@ export class TensorboardServiceClient { { get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*}/operations', }, + { + get: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimes/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*}/operations', + }, {get: '/ui/{name=projects/*/locations/*/studies/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/studies/*/trials/*}/operations', @@ -1522,6 +1591,15 @@ export class TensorboardServiceClient { { get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*}/operations', }, + { + get: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimes/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*}/operations', + }, {get: '/v1/{name=projects/*/locations/*/studies/*}/operations'}, { get: '/v1/{name=projects/*/locations/*/studies/*/trials/*}/operations', @@ -1659,6 +1737,15 @@ export class TensorboardServiceClient { { post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:wait', }, @@ -1774,6 +1861,15 @@ export class TensorboardServiceClient { { post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', }, + { + post: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:wait', + }, { post: '/v1/{name=projects/*/locations/*/studies/*/operations/*}:wait', }, diff --git a/packages/google-cloud-aiplatform/src/v1/vizier_service_client.ts b/packages/google-cloud-aiplatform/src/v1/vizier_service_client.ts index 7543c5d663d..d2b408f6248 100644 --- a/packages/google-cloud-aiplatform/src/v1/vizier_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/vizier_service_client.ts @@ -624,6 +624,15 @@ export class VizierServiceClient { { post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', }, + { + post: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:cancel', + }, { post: '/ui/{name=projects/*/locations/*/persistentResources/*/operations/*}:cancel', }, @@ -730,6 +739,15 @@ export class VizierServiceClient { { post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', }, + { + post: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:cancel', + }, { post: '/v1/{name=projects/*/locations/*/persistentResources/*/operations/*}:cancel', }, @@ -876,6 +894,18 @@ export class VizierServiceClient { delete: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + delete: + '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, { delete: '/ui/{name=projects/*/locations/*/persistentResources/*/operations/*}', @@ -1026,6 +1056,18 @@ export class VizierServiceClient { delete: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + delete: + '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, { delete: '/v1/{name=projects/*/locations/*/studies/*/operations/*}', @@ -1173,6 +1215,15 @@ export class VizierServiceClient { { get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + get: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, { get: '/ui/{name=projects/*/locations/*/persistentResources/*/operations/*}', }, @@ -1279,6 +1330,15 @@ export class VizierServiceClient { { get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', }, + { + get: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}', + }, {get: '/v1/{name=projects/*/locations/*/studies/*/operations/*}'}, { get: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', @@ -1396,6 +1456,15 @@ export class VizierServiceClient { { get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*}/operations', }, + { + get: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimes/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*}/operations', + }, {get: '/ui/{name=projects/*/locations/*/studies/*}/operations'}, { get: '/ui/{name=projects/*/locations/*/studies/*/trials/*}/operations', @@ -1498,6 +1567,15 @@ export class VizierServiceClient { { get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*}/operations', }, + { + get: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimes/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*}/operations', + }, {get: '/v1/{name=projects/*/locations/*/studies/*}/operations'}, { get: '/v1/{name=projects/*/locations/*/studies/*/trials/*}/operations', @@ -1635,6 +1713,15 @@ export class VizierServiceClient { { post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', }, + { + post: '/ui/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:wait', + }, { post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:wait', }, @@ -1750,6 +1837,15 @@ export class VizierServiceClient { { post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', }, + { + post: '/v1/{name=projects/*/locations/*/notebookExecutionJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimes/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/notebookRuntimeTemplates/*/operations/*}:wait', + }, { post: '/v1/{name=projects/*/locations/*/studies/*/operations/*}:wait', }, diff --git a/packages/google-cloud-aiplatform/src/v1beta1/gapic_metadata.json b/packages/google-cloud-aiplatform/src/v1beta1/gapic_metadata.json index 84391f49872..697aa0a3c45 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/gapic_metadata.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/gapic_metadata.json @@ -3107,6 +3107,11 @@ "generateContent" ] }, + "StreamRawPredict": { + "methods": [ + "streamRawPredict" + ] + }, "StreamDirectPredict": { "methods": [ "streamDirectPredict" diff --git a/packages/google-cloud-aiplatform/src/v1beta1/prediction_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/prediction_service_client.ts index 6bbdece5022..d2a37f02eec 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/prediction_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/prediction_service_client.ts @@ -386,6 +386,11 @@ export class PredictionServiceClient { // Some of the methods on this service provide streaming responses. // Provide descriptors for these. this.descriptors.stream = { + streamRawPredict: new this._gaxModule.StreamDescriptor( + this._gaxModule.StreamType.SERVER_STREAMING, + !!opts.fallback, + !!opts.gaxServerStreamingRetries + ), streamDirectPredict: new this._gaxModule.StreamDescriptor( this._gaxModule.StreamType.BIDI_STREAMING, !!opts.fallback, @@ -476,6 +481,7 @@ export class PredictionServiceClient { const predictionServiceStubMethods = [ 'predict', 'rawPredict', + 'streamRawPredict', 'directPredict', 'directRawPredict', 'streamDirectPredict', @@ -1409,6 +1415,42 @@ export class PredictionServiceClient { return this.innerApiCalls.generateContent(request, options, callback); } + /** + * Perform a streaming online prediction with an arbitrary HTTP payload. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.endpoint + * Required. The name of the Endpoint requested to serve the prediction. + * Format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` + * @param {google.api.HttpBody} request.httpBody + * The prediction input. Supports HTTP headers and arbitrary data payload. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits {@link protos.google.api.HttpBody|HttpBody} on 'data' event. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#server-streaming | documentation } + * for more details and examples. + * @example include:samples/generated/v1beta1/prediction_service.stream_raw_predict.js + * region_tag:aiplatform_v1beta1_generated_PredictionService_StreamRawPredict_async + */ + streamRawPredict( + request?: protos.google.cloud.aiplatform.v1beta1.IStreamRawPredictRequest, + options?: CallOptions + ): gax.CancellableStream { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + endpoint: request.endpoint ?? '', + }); + this.initialize(); + return this.innerApiCalls.streamRawPredict(request, options); + } + /** * Perform a streaming online prediction request to a gRPC model server for * Vertex first-party products and frameworks. diff --git a/packages/google-cloud-aiplatform/src/v1beta1/prediction_service_client_config.json b/packages/google-cloud-aiplatform/src/v1beta1/prediction_service_client_config.json index c62b152f87c..06551942cc9 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/prediction_service_client_config.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/prediction_service_client_config.json @@ -29,6 +29,10 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "StreamRawPredict": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "DirectPredict": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" diff --git a/packages/google-cloud-aiplatform/test/gapic_prediction_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_prediction_service_v1beta1.ts index 1f1084217a9..3878bd8a01b 100644 --- a/packages/google-cloud-aiplatform/test/gapic_prediction_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_prediction_service_v1beta1.ts @@ -1244,6 +1244,170 @@ describe('v1beta1.PredictionServiceClient', () => { }); }); + describe('streamRawPredict', () => { + it('invokes streamRawPredict without error', async () => { + const client = + new predictionserviceModule.v1beta1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest', + ['endpoint'] + ); + request.endpoint = defaultValue1; + const expectedHeaderRequestParams = `endpoint=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.api.HttpBody() + ); + client.innerApiCalls.streamRawPredict = + stubServerStreamingCall(expectedResponse); + const stream = client.streamRawPredict(request); + const promise = new Promise((resolve, reject) => { + stream.on('data', (response: protos.google.api.HttpBody) => { + resolve(response); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.streamRawPredict as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.streamRawPredict as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes streamRawPredict without error and gaxServerStreamingRetries enabled', async () => { + const client = + new predictionserviceModule.v1beta1.PredictionServiceClient({ + gaxServerStreamingRetries: true, + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest', + ['endpoint'] + ); + request.endpoint = defaultValue1; + const expectedHeaderRequestParams = `endpoint=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.api.HttpBody() + ); + client.innerApiCalls.streamRawPredict = + stubServerStreamingCall(expectedResponse); + const stream = client.streamRawPredict(request); + const promise = new Promise((resolve, reject) => { + stream.on('data', (response: protos.google.api.HttpBody) => { + resolve(response); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.streamRawPredict as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.streamRawPredict as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes streamRawPredict with error', async () => { + const client = + new predictionserviceModule.v1beta1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest', + ['endpoint'] + ); + request.endpoint = defaultValue1; + const expectedHeaderRequestParams = `endpoint=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.streamRawPredict = stubServerStreamingCall( + undefined, + expectedError + ); + const stream = client.streamRawPredict(request); + const promise = new Promise((resolve, reject) => { + stream.on('data', (response: protos.google.api.HttpBody) => { + resolve(response); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + const actualRequest = ( + client.innerApiCalls.streamRawPredict as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.streamRawPredict as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes streamRawPredict with closed client', async () => { + const client = + new predictionserviceModule.v1beta1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest', + ['endpoint'] + ); + request.endpoint = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + const stream = client.streamRawPredict(request, { + retryRequestOptions: {noResponseRetries: 0}, + }); + const promise = new Promise((resolve, reject) => { + stream.on('data', (response: protos.google.api.HttpBody) => { + resolve(response); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + }); + it('should create a client with gaxServerStreamingRetries enabled', () => { + const client = + new predictionserviceModule.v1beta1.PredictionServiceClient({ + gaxServerStreamingRetries: true, + }); + assert(client); + }); + }); + describe('serverStreamingPredict', () => { it('invokes serverStreamingPredict without error', async () => { const client =