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 dc202fc75bf..f9f7c80b5fd 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 @@ -46,6 +46,9 @@ enum HarmCategory { // The harm category is sexually explicit content. HARM_CATEGORY_SEXUALLY_EXPLICIT = 4; + + // The harm category is civic integrity. + HARM_CATEGORY_CIVIC_INTEGRITY = 5; } // The base structured datatype containing multi-part content of a message. @@ -197,6 +200,12 @@ message GenerationConfig { // Optional. Stop sequences. repeated string stop_sequences = 6 [(google.api.field_behavior) = OPTIONAL]; + // Optional. If true, export the logprobs results in response. + optional bool response_logprobs = 18 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Logit probabilities. + optional int32 logprobs = 7 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Positive penalties. optional float presence_penalty = 8 [(google.api.field_behavior) = OPTIONAL]; @@ -247,6 +256,9 @@ message SafetySetting { // Block none. BLOCK_NONE = 4; + + // Turn off the safety filter. + OFF = 5; } // Probability vs severity. @@ -412,6 +424,10 @@ message Candidate { // Output only. Average log probability score of the candidate. double avg_logprobs = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Log-likelihood scores for the response tokens and top tokens + LogprobsResult logprobs_result = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The reason why the model stopped generating tokens. // If empty, the model has not stopped generating the tokens. FinishReason finish_reason = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -436,6 +452,34 @@ message Candidate { [(google.api.field_behavior) = OUTPUT_ONLY]; } +// Logprobs Result +message LogprobsResult { + // Candidate for the logprobs token and score. + message Candidate { + // The candidate’s token string value. + optional string token = 1; + + // The candidate’s token id value. + optional int32 token_id = 3; + + // The candidate's log probability. + optional float log_probability = 2; + } + + // Candidates with top log probabilities at each decoding step. + message TopCandidates { + // Sorted by log probability in descending order. + repeated Candidate candidates = 1; + } + + // Length = total number of decoding steps. + repeated TopCandidates top_candidates = 1; + + // Length = total number of decoding steps. + // The chosen candidates may or may not be in top_candidates. + repeated Candidate chosen_candidates = 2; +} + // Segment of the content. message Segment { // Output only. The index of a Part object within its parent Content object. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/openapi.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/openapi.proto index 24367044661..216f76aa7fa 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/openapi.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/openapi.proto @@ -54,8 +54,8 @@ enum Type { // Schema is used to define the format of input/output data. Represents a select // subset of an [OpenAPI 3.0 schema -// object](https://spec.openapis.org/oas/v3.0.3#schema). More fields may be -// added in the future as needed. +// object](https://spec.openapis.org/oas/v3.0.3#schema-object). More fields may +// be added in the future as needed. message Schema { // Optional. The type of the data. Type type = 1 [(google.api.field_behavior) = OPTIONAL]; @@ -98,6 +98,12 @@ message Schema { // Properties of Type.OBJECT. map properties = 3 [(google.api.field_behavior) = OPTIONAL]; + // Optional. The order of the properties. + // Not a standard field in open api spec. Only used to support the order of + // the properties. + repeated string property_ordering = 25 + [(google.api.field_behavior) = OPTIONAL]; + // Optional. Required properties of Type.OBJECT. repeated string required = 5 [(google.api.field_behavior) = OPTIONAL]; @@ -128,4 +134,8 @@ message Schema { // Optional. Example of the object. Will only populated when the object is the // root. google.protobuf.Value example = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The value should be validated against any (one or more) of the + // subschemas in the list. + repeated Schema any_of = 11 [(google.api.field_behavior) = OPTIONAL]; } 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 a37571ca405..4c961fd10dc 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 @@ -653,6 +653,11 @@ message CountTokensRequest { // external systems to perform an action, or set of actions, outside of // knowledge and scope of the model. repeated Tool tools = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Generation config that the model will use to generate the + // response. + optional GenerationConfig generation_config = 7 + [(google.api.field_behavior) = OPTIONAL]; } // Response message for [PredictionService.CountTokens][]. @@ -702,6 +707,15 @@ message GenerateContentRequest { // request. ToolConfig tool_config = 7 [(google.api.field_behavior) = OPTIONAL]; + // Optional. The labels with user-defined metadata for the request. It is used + // for billing and reporting only. + // + // Label keys and values can be no longer than 63 characters + // (Unicode codepoints) and can only contain lowercase letters, numeric + // characters, underscores, and dashes. International characters are allowed. + // Label values are optional. Label keys must start with a letter. + map labels = 10 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Per request settings for blocking unsafe content. // Enforced on GenerateContentResponse.candidates. repeated SafetySetting safety_settings = 3 @@ -756,12 +770,16 @@ message GenerateContentResponse { // Number of tokens in the response(s). int32 candidates_token_count = 2; + // Total token count for prompt and response candidates. int32 total_token_count = 3; } // Output only. Generated candidates. repeated Candidate candidates = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The model version used to generate the response. + string model_version = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Content filter results for a prompt sent in the request. // Note: Sent only in the first stream chunk. // Only happens when no candidates were generated due to content violations. 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 831d875988a..cfccbbd912f 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 @@ -46,6 +46,9 @@ enum HarmCategory { // The harm category is sexually explicit content. HARM_CATEGORY_SEXUALLY_EXPLICIT = 4; + + // The harm category is civic integrity. + HARM_CATEGORY_CIVIC_INTEGRITY = 5; } // The base structured datatype containing multi-part content of a message. @@ -197,6 +200,12 @@ message GenerationConfig { // Optional. Stop sequences. repeated string stop_sequences = 6 [(google.api.field_behavior) = OPTIONAL]; + // Optional. If true, export the logprobs results in response. + optional bool response_logprobs = 18 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Logit probabilities. + optional int32 logprobs = 7 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Positive penalties. optional float presence_penalty = 8 [(google.api.field_behavior) = OPTIONAL]; @@ -247,6 +256,9 @@ message SafetySetting { // Block none. BLOCK_NONE = 4; + + // Turn off the safety filter. + OFF = 5; } // Probability vs severity. @@ -409,6 +421,10 @@ message Candidate { // Output only. Average log probability score of the candidate. double avg_logprobs = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Log-likelihood scores for the response tokens and top tokens + LogprobsResult logprobs_result = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The reason why the model stopped generating tokens. // If empty, the model has not stopped generating the tokens. FinishReason finish_reason = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -433,6 +449,34 @@ message Candidate { [(google.api.field_behavior) = OUTPUT_ONLY]; } +// Logprobs Result +message LogprobsResult { + // Candidate for the logprobs token and score. + message Candidate { + // The candidate’s token string value. + optional string token = 1; + + // The candidate’s token id value. + optional int32 token_id = 3; + + // The candidate's log probability. + optional float log_probability = 2; + } + + // Candidates with top log probabilities at each decoding step. + message TopCandidates { + // Sorted by log probability in descending order. + repeated Candidate candidates = 1; + } + + // Length = total number of decoding steps. + repeated TopCandidates top_candidates = 1; + + // Length = total number of decoding steps. + // The chosen candidates may or may not be in top_candidates. + repeated Candidate chosen_candidates = 2; +} + // Segment of the content. message Segment { // Output only. The index of a Part object within its parent Content object. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index_endpoint.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index_endpoint.proto index 35b820b5711..7dc2648fc30 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index_endpoint.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index_endpoint.proto @@ -261,6 +261,12 @@ message DeployedIndex { // // Note: we only support up to 5 deployment groups(not including 'default'). string deployment_group = 11 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set for PSC deployed index, PSC connection will be + // automatically created after deployment is done and the endpoint information + // is populated in private_endpoints.psc_automated_endpoints. + repeated PSCAutomationConfig psc_automation_configs = 19 + [(google.api.field_behavior) = OPTIONAL]; } // Used to set up the auth on the DeployedIndex's private endpoint. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/io.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/io.proto index 5bc34737c09..e96c1cd89b4 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/io.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/io.proto @@ -203,3 +203,48 @@ message JiraSource { repeated JiraQueries jira_queries = 1 [(google.api.field_behavior) = REQUIRED]; } + +// The SharePointSources to pass to ImportRagFiles. +message SharePointSources { + // An individual SharePointSource. + message SharePointSource { + // The SharePoint folder source. If not provided, uses "root". + oneof folder_source { + // The path of the SharePoint folder to download from. + string sharepoint_folder_path = 5; + + // The ID of the SharePoint folder to download from. + string sharepoint_folder_id = 6; + } + + // The SharePoint drive source. + oneof drive_source { + // The name of the drive to download from. + string drive_name = 7; + + // The ID of the drive to download from. + string drive_id = 8; + } + + // The Application ID for the app registered in Microsoft Azure Portal. + // The application must also be configured with MS Graph permissions + // "Files.ReadAll", "Sites.ReadAll" and BrowserSiteLists.Read.All. + string client_id = 1; + + // The application secret for the app registered in Azure. + ApiAuth.ApiKeyConfig client_secret = 2; + + // Unique identifier of the Azure Active Directory Instance. + string tenant_id = 3; + + // The name of the SharePoint site to download from. This can be the site + // name or the site id. + string sharepoint_site_name = 4; + + // Output only. The SharePoint file id. Output only. + string file_id = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // The SharePoint sources. + repeated SharePointSource share_point_sources = 1; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/openapi.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/openapi.proto index ba8f6a753de..e17a1aeb277 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/openapi.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/openapi.proto @@ -54,8 +54,8 @@ enum Type { // Schema is used to define the format of input/output data. Represents a select // subset of an [OpenAPI 3.0 schema -// object](https://spec.openapis.org/oas/v3.0.3#schema). More fields may be -// added in the future as needed. +// object](https://spec.openapis.org/oas/v3.0.3#schema-object). More fields may +// be added in the future as needed. message Schema { // Optional. The type of the data. Type type = 1 [(google.api.field_behavior) = OPTIONAL]; @@ -98,6 +98,12 @@ message Schema { // Properties of Type.OBJECT. map properties = 3 [(google.api.field_behavior) = OPTIONAL]; + // Optional. The order of the properties. + // Not a standard field in open api spec. Only used to support the order of + // the properties. + repeated string property_ordering = 25 + [(google.api.field_behavior) = OPTIONAL]; + // Optional. Required properties of Type.OBJECT. repeated string required = 5 [(google.api.field_behavior) = OPTIONAL]; @@ -128,4 +134,8 @@ message Schema { // Optional. Example of the object. Will only populated when the object is the // root. google.protobuf.Value example = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The value should be validated against any (one or more) of the + // subschemas in the list. + repeated Schema any_of = 11 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/pipeline_job.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/pipeline_job.proto index bc6a36d97b7..7e55278baf5 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/pipeline_job.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/pipeline_job.proto @@ -24,6 +24,7 @@ import "google/cloud/aiplatform/v1beta1/encryption_spec.proto"; import "google/cloud/aiplatform/v1beta1/execution.proto"; import "google/cloud/aiplatform/v1beta1/pipeline_failure_policy.proto"; import "google/cloud/aiplatform/v1beta1/pipeline_state.proto"; +import "google/cloud/aiplatform/v1beta1/ui_pipeline_spec.proto"; import "google/cloud/aiplatform/v1beta1/value.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; @@ -222,6 +223,22 @@ message PipelineJob { // Output only. Reserved for future use. bool satisfies_pzi = 28 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The original pipeline job id if this pipeline job is a rerun + // of a previous pipeline job. + int64 original_pipeline_job_id = 29 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The rerun configs for each task in the pipeline job. + // By default, the rerun will: + // 1. Use the same input artifacts as the original run. + // 2. Use the same input parameters as the original run. + // 3. Skip all the tasks that are already succeeded in the original run. + // 4. Rerun all the tasks that are not succeeded in the original run. + // By providing this field, users can override the default behavior and + // specify the rerun config for each task. + repeated PipelineTaskRerunConfig pipeline_task_rerun_configs = 30 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Pipeline template metadata if @@ -435,3 +452,42 @@ message PipelineTaskExecutorDetail { [(google.api.field_behavior) = OUTPUT_ONLY]; } } + +// User provided rerun config to submit a rerun pipelinejob. This includes +// 1. Which task to rerun +// 2. User override input parameters and artifacts. +message PipelineTaskRerunConfig { + // A list of artifact metadata. + message ArtifactList { + // Output only. A list of artifact metadata. + repeated RuntimeArtifact artifacts = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Runtime inputs data of the task. + message Inputs { + // Output only. Input artifacts. + map artifacts = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Input parameters. + map parameter_values = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Output only. The system generated ID of the task. Retrieved from original + // run. + int64 task_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The name of the task. + string task_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The runtime input of the task overridden by the user. + Inputs inputs = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Whether to skip this task. Default value is False. + bool skip_task = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Whether to skip downstream tasks. Default value is False. + bool skip_downstream_tasks = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; +} 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 3133b859463..10446ada90d 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 @@ -714,6 +714,11 @@ message CountTokensRequest { // external systems to perform an action, or set of actions, outside of // knowledge and scope of the model. repeated Tool tools = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Generation config that the model will use to generate the + // response. + optional GenerationConfig generation_config = 7 + [(google.api.field_behavior) = OPTIONAL]; } // Response message for @@ -729,9 +734,14 @@ message CountTokensResponse { // Request message for [PredictionService.GenerateContent]. message GenerateContentRequest { - // Required. The name of the publisher model requested to serve the - // prediction. Format: + // Required. The fully qualified name of the publisher model or tuned model + // endpoint to use. + // + // Publisher model format: // `projects/{project}/locations/{location}/publishers/*/models/*` + // + // Tuned model endpoint format: + // `projects/{project}/locations/{location}/endpoints/{endpoint}` string model = 5 [(google.api.field_behavior) = REQUIRED]; // Required. The content of the current conversation with the model. @@ -771,6 +781,15 @@ message GenerateContentRequest { // request. ToolConfig tool_config = 7 [(google.api.field_behavior) = OPTIONAL]; + // Optional. The labels with user-defined metadata for the request. It is used + // for billing and reporting only. + // + // Label keys and values can be no longer than 63 characters + // (Unicode codepoints) and can only contain lowercase letters, numeric + // characters, underscores, and dashes. International characters are allowed. + // Label values are optional. Label keys must start with a letter. + map labels = 10 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Per request settings for blocking unsafe content. // Enforced on GenerateContentResponse.candidates. repeated SafetySetting safety_settings = 3 @@ -825,6 +844,7 @@ message GenerateContentResponse { // Number of tokens in the response(s). int32 candidates_token_count = 2; + // Total token count for prompt and response candidates. int32 total_token_count = 3; // Output only. Number of tokens in the cached part in the input (the cached @@ -836,6 +856,9 @@ message GenerateContentResponse { // Output only. Generated candidates. repeated Candidate candidates = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The model version used to generate the response. + string model_version = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Content filter results for a prompt sent in the request. // Note: Sent only in the first stream chunk. // Only happens when no candidates were generated due to content violations. @@ -848,9 +871,9 @@ message GenerateContentResponse { // Request message for [PredictionService.ChatCompletions] message ChatCompletionsRequest { - // Required. The name of the Endpoint requested to serve the prediction. + // Required. The name of the endpoint requested to serve the prediction. // Format: - // `projects/{project}/locations/{location}/endpoints/openapi` + // `projects/{project}/locations/{location}/endpoints/{endpoint}` string endpoint = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/service_networking.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/service_networking.proto index 53af326725f..7b26dfb9c7a 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/service_networking.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/service_networking.proto @@ -31,6 +31,21 @@ option (google.api.resource_definition) = { pattern: "projects/{project}/regions/{region}/networkAttachments/{networkattachment}" }; +// PSC config that is used to automatically create forwarding rule via +// ServiceConnectionMap. +message PSCAutomationConfig { + // Required. Project id used to create forwarding rule. + string project_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The full name of the Google Compute Engine + // [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). + // [Format](https://cloud.google.com/compute/docs/reference/rest/v1/networks/insert): + // `projects/{project}/global/networks/{network}`. + // Where {project} is a project number, as in '12345', and {network} is + // network name. + string network = 2 [(google.api.field_behavior) = REQUIRED]; +} + // Represents configuration for private service connect. message PrivateServiceConnectConfig { // Required. If true, expose the IndexEndpoint via private service connect. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/ui_pipeline_spec.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/ui_pipeline_spec.proto new file mode 100644 index 00000000000..89e2aba9cf8 --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/ui_pipeline_spec.proto @@ -0,0 +1,85 @@ +// 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 +// +// http://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. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1beta1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1beta1/value.proto"; +import "google/protobuf/struct.proto"; + +option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; +option java_multiple_files = true; +option java_outer_classname = "UiPipelineSpecProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; + +// The definition of a artifact type in MLMD. +message ArtifactTypeSchema { + oneof kind { + // The name of the type. The format of the title must be: + // `.`. + // Examples: + // - `aiplatform.Model` + // - `acme.CustomModel` + // When this field is set, the type must be pre-registered in the MLMD + // store. + string schema_title = 1; + + // Points to a YAML file stored on Cloud Storage describing the + // format. + // Deprecated. Use [PipelineArtifactTypeSchema.schema_title][] or + // [PipelineArtifactTypeSchema.instance_schema][] instead. + string schema_uri = 2 [deprecated = true]; + + // Contains a raw YAML string, describing the format of + // the properties of the type. + string instance_schema = 3; + } + + // The schema version of the artifact. If the value is not set, it defaults + // to the latest version in the system. + string schema_version = 4; +} + +// The definition of a runtime artifact. +message RuntimeArtifact { + // The name of an artifact. + string name = 1; + + // The type of the artifact. + ArtifactTypeSchema type = 2; + + // The URI of the artifact. + string uri = 3; + + // The properties of the artifact. + // Deprecated. Use + // [RuntimeArtifact.metadata][google.cloud.aiplatform.v1beta1.RuntimeArtifact.metadata] + // instead. + map<string, Value> properties = 4 [deprecated = true]; + + // The custom properties of the artifact. + // Deprecated. Use + // [RuntimeArtifact.metadata][google.cloud.aiplatform.v1beta1.RuntimeArtifact.metadata] + // instead. + map<string, Value> custom_properties = 5 [deprecated = true]; + + // Properties of the Artifact. + google.protobuf.Struct metadata = 6; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/vertex_rag_data.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/vertex_rag_data.proto index 46a482f7cab..cc23d8cbf0d 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/vertex_rag_data.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/vertex_rag_data.proto @@ -132,6 +132,13 @@ message RagVectorDbConfig { string collection_name = 2; } + // The config for the Pinecone. + message Pinecone { + // Pinecone index name. + // This value cannot be changed after it's set. + string index_name = 1; + } + // The config for the Vertex Feature Store. message VertexFeatureStore { // The resource name of the FeatureView. @@ -140,6 +147,19 @@ message RagVectorDbConfig { string feature_view_resource_name = 1; } + // The config for the Vertex Vector Search. + message VertexVectorSearch { + // The resource name of the Index Endpoint. + // Format: + // `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` + string index_endpoint = 1; + + // The resource name of the Index. + // Format: + // `projects/{project}/locations/{location}/indexes/{index}` + string index = 2; + } + // The config for the Vector DB. oneof vector_db { // The config for the RAG-managed Vector DB. @@ -148,8 +168,14 @@ message RagVectorDbConfig { // The config for the Weaviate. Weaviate weaviate = 2; + // The config for the Pinecone. + Pinecone pinecone = 3; + // The config for the Vertex Feature Store. VertexFeatureStore vertex_feature_store = 4; + + // The config for the Vertex Vector Search. + VertexVectorSearch vertex_vector_search = 6; } // Authentication config for the chosen Vector DB. @@ -291,6 +317,9 @@ message RagFile { // The RagFile is imported from a Jira query. JiraSource jira_source = 12; + + // The RagFile is imported from a SharePoint source. + SharePointSources share_point_sources = 14; } // Output only. The resource name of the RagFile. @@ -362,6 +391,23 @@ message ImportRagFilesConfig { // Jira queries with their corresponding authentication. JiraSource jira_source = 7; + + // SharePoint sources. + SharePointSources share_point_sources = 13; + } + + // Optional. If provided, all partial failures are written to the sink. + oneof partial_failure_sink { + // The Cloud Storage path to write partial failures to. + GcsDestination partial_failure_gcs_sink = 11; + + // The BigQuery destination to write partial failures to. It should be a + // bigquery table resource name (e.g. + // "bq://projectId.bqDatasetId.bqTableId"). If the dataset id does not + // exist, it will be created. If the table does not exist, it will be + // created with the expected schema. If the table exists, the schema will be + // validated and data will be added to this existing table. + BigQueryDestination partial_failure_bigquery_sink = 12; } // Specifies the size and overlap of chunks after importing RagFiles. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/vertex_rag_data_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/vertex_rag_data_service.proto index 0410c817f01..7b28718df53 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/vertex_rag_data_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/vertex_rag_data_service.proto @@ -295,6 +295,16 @@ message ImportRagFilesRequest { // Response message for // [VertexRagDataService.ImportRagFiles][google.cloud.aiplatform.v1beta1.VertexRagDataService.ImportRagFiles]. message ImportRagFilesResponse { + // The location into which the partial failures were written. + oneof partial_failure_sink { + // The Google Cloud Storage path into which the partial failures were + // written. + string partial_failures_gcs_path = 4; + + // The BigQuery table into which the partial failures were written. + string partial_failures_bigquery_table = 5; + } + // The number of RagFiles that had been imported into the RagCorpus. int64 imported_rag_files_count = 1; diff --git a/packages/google-cloud-aiplatform/protos/protos.d.ts b/packages/google-cloud-aiplatform/protos/protos.d.ts index f6ea02fc421..508cfe35ac3 100644 --- a/packages/google-cloud-aiplatform/protos/protos.d.ts +++ b/packages/google-cloud-aiplatform/protos/protos.d.ts @@ -8734,7 +8734,8 @@ export namespace google { HARM_CATEGORY_HATE_SPEECH = 1, HARM_CATEGORY_DANGEROUS_CONTENT = 2, HARM_CATEGORY_HARASSMENT = 3, - HARM_CATEGORY_SEXUALLY_EXPLICIT = 4 + HARM_CATEGORY_SEXUALLY_EXPLICIT = 4, + HARM_CATEGORY_CIVIC_INTEGRITY = 5 } /** Properties of a Content. */ @@ -9303,6 +9304,12 @@ export namespace google { /** GenerationConfig stopSequences */ stopSequences?: (string[]|null); + /** GenerationConfig responseLogprobs */ + responseLogprobs?: (boolean|null); + + /** GenerationConfig logprobs */ + logprobs?: (number|null); + /** GenerationConfig presencePenalty */ presencePenalty?: (number|null); @@ -9349,6 +9356,12 @@ export namespace google { /** GenerationConfig stopSequences. */ public stopSequences: string[]; + /** GenerationConfig responseLogprobs. */ + public responseLogprobs?: (boolean|null); + + /** GenerationConfig logprobs. */ + public logprobs?: (number|null); + /** GenerationConfig presencePenalty. */ public presencePenalty?: (number|null); @@ -9382,6 +9395,12 @@ export namespace google { /** GenerationConfig _maxOutputTokens. */ public _maxOutputTokens?: "maxOutputTokens"; + /** GenerationConfig _responseLogprobs. */ + public _responseLogprobs?: "responseLogprobs"; + + /** GenerationConfig _logprobs. */ + public _logprobs?: "logprobs"; + /** GenerationConfig _presencePenalty. */ public _presencePenalty?: "presencePenalty"; @@ -9915,7 +9934,8 @@ export namespace google { BLOCK_LOW_AND_ABOVE = 1, BLOCK_MEDIUM_AND_ABOVE = 2, BLOCK_ONLY_HIGH = 3, - BLOCK_NONE = 4 + BLOCK_NONE = 4, + OFF = 5 } /** HarmBlockMethod enum. */ @@ -10313,6 +10333,9 @@ export namespace google { /** Candidate avgLogprobs */ avgLogprobs?: (number|null); + /** Candidate logprobsResult */ + logprobsResult?: (google.cloud.aiplatform.v1.ILogprobsResult|null); + /** Candidate finishReason */ finishReason?: (google.cloud.aiplatform.v1.Candidate.FinishReason|keyof typeof google.cloud.aiplatform.v1.Candidate.FinishReason|null); @@ -10350,6 +10373,9 @@ export namespace google { /** Candidate avgLogprobs. */ public avgLogprobs: number; + /** Candidate logprobsResult. */ + public logprobsResult?: (google.cloud.aiplatform.v1.ILogprobsResult|null); + /** Candidate finishReason. */ public finishReason: (google.cloud.aiplatform.v1.Candidate.FinishReason|keyof typeof google.cloud.aiplatform.v1.Candidate.FinishReason); @@ -10463,6 +10489,327 @@ export namespace google { } } + /** Properties of a LogprobsResult. */ + interface ILogprobsResult { + + /** LogprobsResult topCandidates */ + topCandidates?: (google.cloud.aiplatform.v1.LogprobsResult.ITopCandidates[]|null); + + /** LogprobsResult chosenCandidates */ + chosenCandidates?: (google.cloud.aiplatform.v1.LogprobsResult.ICandidate[]|null); + } + + /** Represents a LogprobsResult. */ + class LogprobsResult implements ILogprobsResult { + + /** + * Constructs a new LogprobsResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ILogprobsResult); + + /** LogprobsResult topCandidates. */ + public topCandidates: google.cloud.aiplatform.v1.LogprobsResult.ITopCandidates[]; + + /** LogprobsResult chosenCandidates. */ + public chosenCandidates: google.cloud.aiplatform.v1.LogprobsResult.ICandidate[]; + + /** + * Creates a new LogprobsResult instance using the specified properties. + * @param [properties] Properties to set + * @returns LogprobsResult instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ILogprobsResult): google.cloud.aiplatform.v1.LogprobsResult; + + /** + * Encodes the specified LogprobsResult message. Does not implicitly {@link google.cloud.aiplatform.v1.LogprobsResult.verify|verify} messages. + * @param message LogprobsResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ILogprobsResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified LogprobsResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.LogprobsResult.verify|verify} messages. + * @param message LogprobsResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ILogprobsResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LogprobsResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LogprobsResult + * @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.v1.LogprobsResult; + + /** + * Decodes a LogprobsResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns LogprobsResult + * @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.v1.LogprobsResult; + + /** + * Verifies a LogprobsResult 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 LogprobsResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns LogprobsResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.LogprobsResult; + + /** + * Creates a plain object from a LogprobsResult message. Also converts values to other types if specified. + * @param message LogprobsResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.LogprobsResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this LogprobsResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for LogprobsResult + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace LogprobsResult { + + /** Properties of a Candidate. */ + interface ICandidate { + + /** Candidate token */ + token?: (string|null); + + /** Candidate tokenId */ + tokenId?: (number|null); + + /** Candidate logProbability */ + logProbability?: (number|null); + } + + /** Represents a Candidate. */ + class Candidate implements ICandidate { + + /** + * Constructs a new Candidate. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.LogprobsResult.ICandidate); + + /** Candidate token. */ + public token?: (string|null); + + /** Candidate tokenId. */ + public tokenId?: (number|null); + + /** Candidate logProbability. */ + public logProbability?: (number|null); + + /** Candidate _token. */ + public _token?: "token"; + + /** Candidate _tokenId. */ + public _tokenId?: "tokenId"; + + /** Candidate _logProbability. */ + public _logProbability?: "logProbability"; + + /** + * Creates a new Candidate instance using the specified properties. + * @param [properties] Properties to set + * @returns Candidate instance + */ + public static create(properties?: google.cloud.aiplatform.v1.LogprobsResult.ICandidate): google.cloud.aiplatform.v1.LogprobsResult.Candidate; + + /** + * Encodes the specified Candidate message. Does not implicitly {@link google.cloud.aiplatform.v1.LogprobsResult.Candidate.verify|verify} messages. + * @param message Candidate message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.LogprobsResult.ICandidate, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Candidate message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.LogprobsResult.Candidate.verify|verify} messages. + * @param message Candidate message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.LogprobsResult.ICandidate, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Candidate message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Candidate + * @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.v1.LogprobsResult.Candidate; + + /** + * Decodes a Candidate message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Candidate + * @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.v1.LogprobsResult.Candidate; + + /** + * Verifies a Candidate 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 Candidate message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Candidate + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.LogprobsResult.Candidate; + + /** + * Creates a plain object from a Candidate message. Also converts values to other types if specified. + * @param message Candidate + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.LogprobsResult.Candidate, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Candidate to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Candidate + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a TopCandidates. */ + interface ITopCandidates { + + /** TopCandidates candidates */ + candidates?: (google.cloud.aiplatform.v1.LogprobsResult.ICandidate[]|null); + } + + /** Represents a TopCandidates. */ + class TopCandidates implements ITopCandidates { + + /** + * Constructs a new TopCandidates. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.LogprobsResult.ITopCandidates); + + /** TopCandidates candidates. */ + public candidates: google.cloud.aiplatform.v1.LogprobsResult.ICandidate[]; + + /** + * Creates a new TopCandidates instance using the specified properties. + * @param [properties] Properties to set + * @returns TopCandidates instance + */ + public static create(properties?: google.cloud.aiplatform.v1.LogprobsResult.ITopCandidates): google.cloud.aiplatform.v1.LogprobsResult.TopCandidates; + + /** + * Encodes the specified TopCandidates message. Does not implicitly {@link google.cloud.aiplatform.v1.LogprobsResult.TopCandidates.verify|verify} messages. + * @param message TopCandidates message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.LogprobsResult.ITopCandidates, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TopCandidates message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.LogprobsResult.TopCandidates.verify|verify} messages. + * @param message TopCandidates message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.LogprobsResult.ITopCandidates, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TopCandidates message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TopCandidates + * @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.v1.LogprobsResult.TopCandidates; + + /** + * Decodes a TopCandidates message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TopCandidates + * @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.v1.LogprobsResult.TopCandidates; + + /** + * Verifies a TopCandidates 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 TopCandidates message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TopCandidates + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.LogprobsResult.TopCandidates; + + /** + * Creates a plain object from a TopCandidates message. Also converts values to other types if specified. + * @param message TopCandidates + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.LogprobsResult.TopCandidates, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TopCandidates to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TopCandidates + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + /** Properties of a Segment. */ interface ISegment { @@ -11285,6 +11632,9 @@ export namespace google { /** Schema properties */ properties?: ({ [k: string]: google.cloud.aiplatform.v1.ISchema }|null); + /** Schema propertyOrdering */ + propertyOrdering?: (string[]|null); + /** Schema required */ required?: (string[]|null); @@ -11311,6 +11661,9 @@ export namespace google { /** Schema example */ example?: (google.protobuf.IValue|null); + + /** Schema anyOf */ + anyOf?: (google.cloud.aiplatform.v1.ISchema[]|null); } /** Represents a Schema. */ @@ -11355,6 +11708,9 @@ export namespace google { /** Schema properties. */ public properties: { [k: string]: google.cloud.aiplatform.v1.ISchema }; + /** Schema propertyOrdering. */ + public propertyOrdering: string[]; + /** Schema required. */ public required: string[]; @@ -11382,6 +11738,9 @@ export namespace google { /** Schema example. */ public example?: (google.protobuf.IValue|null); + /** Schema anyOf. */ + public anyOf: google.cloud.aiplatform.v1.ISchema[]; + /** * Creates a new Schema instance using the specified properties. * @param [properties] Properties to set @@ -73835,6 +74194,9 @@ export namespace google { /** CountTokensRequest tools */ tools?: (google.cloud.aiplatform.v1.ITool[]|null); + + /** CountTokensRequest generationConfig */ + generationConfig?: (google.cloud.aiplatform.v1.IGenerationConfig|null); } /** Represents a CountTokensRequest. */ @@ -73864,9 +74226,15 @@ export namespace google { /** CountTokensRequest tools. */ public tools: google.cloud.aiplatform.v1.ITool[]; + /** CountTokensRequest generationConfig. */ + public generationConfig?: (google.cloud.aiplatform.v1.IGenerationConfig|null); + /** CountTokensRequest _systemInstruction. */ public _systemInstruction?: "systemInstruction"; + /** CountTokensRequest _generationConfig. */ + public _generationConfig?: "generationConfig"; + /** * Creates a new CountTokensRequest instance using the specified properties. * @param [properties] Properties to set @@ -74066,6 +74434,9 @@ export namespace google { /** GenerateContentRequest toolConfig */ toolConfig?: (google.cloud.aiplatform.v1.IToolConfig|null); + /** GenerateContentRequest labels */ + labels?: ({ [k: string]: string }|null); + /** GenerateContentRequest safetySettings */ safetySettings?: (google.cloud.aiplatform.v1.ISafetySetting[]|null); @@ -74097,6 +74468,9 @@ export namespace google { /** GenerateContentRequest toolConfig. */ public toolConfig?: (google.cloud.aiplatform.v1.IToolConfig|null); + /** GenerateContentRequest labels. */ + public labels: { [k: string]: string }; + /** GenerateContentRequest safetySettings. */ public safetySettings: google.cloud.aiplatform.v1.ISafetySetting[]; @@ -74190,6 +74564,9 @@ export namespace google { /** GenerateContentResponse candidates */ candidates?: (google.cloud.aiplatform.v1.ICandidate[]|null); + /** GenerateContentResponse modelVersion */ + modelVersion?: (string|null); + /** GenerateContentResponse promptFeedback */ promptFeedback?: (google.cloud.aiplatform.v1.GenerateContentResponse.IPromptFeedback|null); @@ -74209,6 +74586,9 @@ export namespace google { /** GenerateContentResponse candidates. */ public candidates: google.cloud.aiplatform.v1.ICandidate[]; + /** GenerateContentResponse modelVersion. */ + public modelVersion: string; + /** GenerateContentResponse promptFeedback. */ public promptFeedback?: (google.cloud.aiplatform.v1.GenerateContentResponse.IPromptFeedback|null); @@ -126096,6 +126476,257 @@ export namespace google { } } + /** Properties of a SharePointSources. */ + interface ISharePointSources { + + /** SharePointSources sharePointSources */ + sharePointSources?: (google.cloud.aiplatform.v1beta1.SharePointSources.ISharePointSource[]|null); + } + + /** Represents a SharePointSources. */ + class SharePointSources implements ISharePointSources { + + /** + * Constructs a new SharePointSources. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ISharePointSources); + + /** SharePointSources sharePointSources. */ + public sharePointSources: google.cloud.aiplatform.v1beta1.SharePointSources.ISharePointSource[]; + + /** + * Creates a new SharePointSources instance using the specified properties. + * @param [properties] Properties to set + * @returns SharePointSources instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ISharePointSources): google.cloud.aiplatform.v1beta1.SharePointSources; + + /** + * Encodes the specified SharePointSources message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SharePointSources.verify|verify} messages. + * @param message SharePointSources message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ISharePointSources, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SharePointSources message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SharePointSources.verify|verify} messages. + * @param message SharePointSources message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISharePointSources, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SharePointSources message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SharePointSources + * @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.SharePointSources; + + /** + * Decodes a SharePointSources message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SharePointSources + * @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.SharePointSources; + + /** + * Verifies a SharePointSources 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 SharePointSources message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SharePointSources + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SharePointSources; + + /** + * Creates a plain object from a SharePointSources message. Also converts values to other types if specified. + * @param message SharePointSources + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.SharePointSources, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SharePointSources to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SharePointSources + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace SharePointSources { + + /** Properties of a SharePointSource. */ + interface ISharePointSource { + + /** SharePointSource sharepointFolderPath */ + sharepointFolderPath?: (string|null); + + /** SharePointSource sharepointFolderId */ + sharepointFolderId?: (string|null); + + /** SharePointSource driveName */ + driveName?: (string|null); + + /** SharePointSource driveId */ + driveId?: (string|null); + + /** SharePointSource clientId */ + clientId?: (string|null); + + /** SharePointSource clientSecret */ + clientSecret?: (google.cloud.aiplatform.v1beta1.ApiAuth.IApiKeyConfig|null); + + /** SharePointSource tenantId */ + tenantId?: (string|null); + + /** SharePointSource sharepointSiteName */ + sharepointSiteName?: (string|null); + + /** SharePointSource fileId */ + fileId?: (string|null); + } + + /** Represents a SharePointSource. */ + class SharePointSource implements ISharePointSource { + + /** + * Constructs a new SharePointSource. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.SharePointSources.ISharePointSource); + + /** SharePointSource sharepointFolderPath. */ + public sharepointFolderPath?: (string|null); + + /** SharePointSource sharepointFolderId. */ + public sharepointFolderId?: (string|null); + + /** SharePointSource driveName. */ + public driveName?: (string|null); + + /** SharePointSource driveId. */ + public driveId?: (string|null); + + /** SharePointSource clientId. */ + public clientId: string; + + /** SharePointSource clientSecret. */ + public clientSecret?: (google.cloud.aiplatform.v1beta1.ApiAuth.IApiKeyConfig|null); + + /** SharePointSource tenantId. */ + public tenantId: string; + + /** SharePointSource sharepointSiteName. */ + public sharepointSiteName: string; + + /** SharePointSource fileId. */ + public fileId: string; + + /** SharePointSource folderSource. */ + public folderSource?: ("sharepointFolderPath"|"sharepointFolderId"); + + /** SharePointSource driveSource. */ + public driveSource?: ("driveName"|"driveId"); + + /** + * Creates a new SharePointSource instance using the specified properties. + * @param [properties] Properties to set + * @returns SharePointSource instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.SharePointSources.ISharePointSource): google.cloud.aiplatform.v1beta1.SharePointSources.SharePointSource; + + /** + * Encodes the specified SharePointSource message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SharePointSources.SharePointSource.verify|verify} messages. + * @param message SharePointSource message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.SharePointSources.ISharePointSource, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SharePointSource message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SharePointSources.SharePointSource.verify|verify} messages. + * @param message SharePointSource message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.SharePointSources.ISharePointSource, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SharePointSource message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SharePointSource + * @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.SharePointSources.SharePointSource; + + /** + * Decodes a SharePointSource message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SharePointSource + * @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.SharePointSources.SharePointSource; + + /** + * Verifies a SharePointSource 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 SharePointSource message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SharePointSource + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SharePointSources.SharePointSource; + + /** + * Creates a plain object from a SharePointSource message. Also converts values to other types if specified. + * @param message SharePointSource + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.SharePointSources.SharePointSource, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SharePointSource to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SharePointSource + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + /** JobState enum. */ enum JobState { JOB_STATE_UNSPECIFIED = 0, @@ -131986,7 +132617,8 @@ export namespace google { HARM_CATEGORY_HATE_SPEECH = 1, HARM_CATEGORY_DANGEROUS_CONTENT = 2, HARM_CATEGORY_HARASSMENT = 3, - HARM_CATEGORY_SEXUALLY_EXPLICIT = 4 + HARM_CATEGORY_SEXUALLY_EXPLICIT = 4, + HARM_CATEGORY_CIVIC_INTEGRITY = 5 } /** Properties of a Content. */ @@ -132555,6 +133187,12 @@ export namespace google { /** GenerationConfig stopSequences */ stopSequences?: (string[]|null); + /** GenerationConfig responseLogprobs */ + responseLogprobs?: (boolean|null); + + /** GenerationConfig logprobs */ + logprobs?: (number|null); + /** GenerationConfig presencePenalty */ presencePenalty?: (number|null); @@ -132601,6 +133239,12 @@ export namespace google { /** GenerationConfig stopSequences. */ public stopSequences: string[]; + /** GenerationConfig responseLogprobs. */ + public responseLogprobs?: (boolean|null); + + /** GenerationConfig logprobs. */ + public logprobs?: (number|null); + /** GenerationConfig presencePenalty. */ public presencePenalty?: (number|null); @@ -132634,6 +133278,12 @@ export namespace google { /** GenerationConfig _maxOutputTokens. */ public _maxOutputTokens?: "maxOutputTokens"; + /** GenerationConfig _responseLogprobs. */ + public _responseLogprobs?: "responseLogprobs"; + + /** GenerationConfig _logprobs. */ + public _logprobs?: "logprobs"; + /** GenerationConfig _presencePenalty. */ public _presencePenalty?: "presencePenalty"; @@ -133167,7 +133817,8 @@ export namespace google { BLOCK_LOW_AND_ABOVE = 1, BLOCK_MEDIUM_AND_ABOVE = 2, BLOCK_ONLY_HIGH = 3, - BLOCK_NONE = 4 + BLOCK_NONE = 4, + OFF = 5 } /** HarmBlockMethod enum. */ @@ -133562,6 +134213,9 @@ export namespace google { /** Candidate avgLogprobs */ avgLogprobs?: (number|null); + /** Candidate logprobsResult */ + logprobsResult?: (google.cloud.aiplatform.v1beta1.ILogprobsResult|null); + /** Candidate finishReason */ finishReason?: (google.cloud.aiplatform.v1beta1.Candidate.FinishReason|keyof typeof google.cloud.aiplatform.v1beta1.Candidate.FinishReason|null); @@ -133596,6 +134250,9 @@ export namespace google { /** Candidate avgLogprobs. */ public avgLogprobs: number; + /** Candidate logprobsResult. */ + public logprobsResult?: (google.cloud.aiplatform.v1beta1.ILogprobsResult|null); + /** Candidate finishReason. */ public finishReason: (google.cloud.aiplatform.v1beta1.Candidate.FinishReason|keyof typeof google.cloud.aiplatform.v1beta1.Candidate.FinishReason); @@ -133709,6 +134366,327 @@ export namespace google { } } + /** Properties of a LogprobsResult. */ + interface ILogprobsResult { + + /** LogprobsResult topCandidates */ + topCandidates?: (google.cloud.aiplatform.v1beta1.LogprobsResult.ITopCandidates[]|null); + + /** LogprobsResult chosenCandidates */ + chosenCandidates?: (google.cloud.aiplatform.v1beta1.LogprobsResult.ICandidate[]|null); + } + + /** Represents a LogprobsResult. */ + class LogprobsResult implements ILogprobsResult { + + /** + * Constructs a new LogprobsResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ILogprobsResult); + + /** LogprobsResult topCandidates. */ + public topCandidates: google.cloud.aiplatform.v1beta1.LogprobsResult.ITopCandidates[]; + + /** LogprobsResult chosenCandidates. */ + public chosenCandidates: google.cloud.aiplatform.v1beta1.LogprobsResult.ICandidate[]; + + /** + * Creates a new LogprobsResult instance using the specified properties. + * @param [properties] Properties to set + * @returns LogprobsResult instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ILogprobsResult): google.cloud.aiplatform.v1beta1.LogprobsResult; + + /** + * Encodes the specified LogprobsResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.LogprobsResult.verify|verify} messages. + * @param message LogprobsResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ILogprobsResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified LogprobsResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.LogprobsResult.verify|verify} messages. + * @param message LogprobsResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ILogprobsResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LogprobsResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LogprobsResult + * @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.LogprobsResult; + + /** + * Decodes a LogprobsResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns LogprobsResult + * @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.LogprobsResult; + + /** + * Verifies a LogprobsResult 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 LogprobsResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns LogprobsResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.LogprobsResult; + + /** + * Creates a plain object from a LogprobsResult message. Also converts values to other types if specified. + * @param message LogprobsResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.LogprobsResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this LogprobsResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for LogprobsResult + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace LogprobsResult { + + /** Properties of a Candidate. */ + interface ICandidate { + + /** Candidate token */ + token?: (string|null); + + /** Candidate tokenId */ + tokenId?: (number|null); + + /** Candidate logProbability */ + logProbability?: (number|null); + } + + /** Represents a Candidate. */ + class Candidate implements ICandidate { + + /** + * Constructs a new Candidate. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.LogprobsResult.ICandidate); + + /** Candidate token. */ + public token?: (string|null); + + /** Candidate tokenId. */ + public tokenId?: (number|null); + + /** Candidate logProbability. */ + public logProbability?: (number|null); + + /** Candidate _token. */ + public _token?: "token"; + + /** Candidate _tokenId. */ + public _tokenId?: "tokenId"; + + /** Candidate _logProbability. */ + public _logProbability?: "logProbability"; + + /** + * Creates a new Candidate instance using the specified properties. + * @param [properties] Properties to set + * @returns Candidate instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.LogprobsResult.ICandidate): google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate; + + /** + * Encodes the specified Candidate message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate.verify|verify} messages. + * @param message Candidate message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.LogprobsResult.ICandidate, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Candidate message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate.verify|verify} messages. + * @param message Candidate message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.LogprobsResult.ICandidate, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Candidate message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Candidate + * @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.LogprobsResult.Candidate; + + /** + * Decodes a Candidate message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Candidate + * @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.LogprobsResult.Candidate; + + /** + * Verifies a Candidate 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 Candidate message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Candidate + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate; + + /** + * Creates a plain object from a Candidate message. Also converts values to other types if specified. + * @param message Candidate + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Candidate to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Candidate + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a TopCandidates. */ + interface ITopCandidates { + + /** TopCandidates candidates */ + candidates?: (google.cloud.aiplatform.v1beta1.LogprobsResult.ICandidate[]|null); + } + + /** Represents a TopCandidates. */ + class TopCandidates implements ITopCandidates { + + /** + * Constructs a new TopCandidates. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.LogprobsResult.ITopCandidates); + + /** TopCandidates candidates. */ + public candidates: google.cloud.aiplatform.v1beta1.LogprobsResult.ICandidate[]; + + /** + * Creates a new TopCandidates instance using the specified properties. + * @param [properties] Properties to set + * @returns TopCandidates instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.LogprobsResult.ITopCandidates): google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates; + + /** + * Encodes the specified TopCandidates message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates.verify|verify} messages. + * @param message TopCandidates message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.LogprobsResult.ITopCandidates, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TopCandidates message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates.verify|verify} messages. + * @param message TopCandidates message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.LogprobsResult.ITopCandidates, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TopCandidates message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TopCandidates + * @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.LogprobsResult.TopCandidates; + + /** + * Decodes a TopCandidates message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TopCandidates + * @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.LogprobsResult.TopCandidates; + + /** + * Verifies a TopCandidates 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 TopCandidates message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TopCandidates + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates; + + /** + * Creates a plain object from a TopCandidates message. Also converts values to other types if specified. + * @param message TopCandidates + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TopCandidates to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TopCandidates + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + /** Properties of a Segment. */ interface ISegment { @@ -134537,6 +135515,9 @@ export namespace google { /** Schema properties */ properties?: ({ [k: string]: google.cloud.aiplatform.v1beta1.ISchema }|null); + /** Schema propertyOrdering */ + propertyOrdering?: (string[]|null); + /** Schema required */ required?: (string[]|null); @@ -134563,6 +135544,9 @@ export namespace google { /** Schema example */ example?: (google.protobuf.IValue|null); + + /** Schema anyOf */ + anyOf?: (google.cloud.aiplatform.v1beta1.ISchema[]|null); } /** Represents a Schema. */ @@ -134607,6 +135591,9 @@ export namespace google { /** Schema properties. */ public properties: { [k: string]: google.cloud.aiplatform.v1beta1.ISchema }; + /** Schema propertyOrdering. */ + public propertyOrdering: string[]; + /** Schema required. */ public required: string[]; @@ -134634,6 +135621,9 @@ export namespace google { /** Schema example. */ public example?: (google.protobuf.IValue|null); + /** Schema anyOf. */ + public anyOf: google.cloud.aiplatform.v1beta1.ISchema[]; + /** * Creates a new Schema instance using the specified properties. * @param [properties] Properties to set @@ -144947,6 +145937,109 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a PSCAutomationConfig. */ + interface IPSCAutomationConfig { + + /** PSCAutomationConfig projectId */ + projectId?: (string|null); + + /** PSCAutomationConfig network */ + network?: (string|null); + } + + /** Represents a PSCAutomationConfig. */ + class PSCAutomationConfig implements IPSCAutomationConfig { + + /** + * Constructs a new PSCAutomationConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IPSCAutomationConfig); + + /** PSCAutomationConfig projectId. */ + public projectId: string; + + /** PSCAutomationConfig network. */ + public network: string; + + /** + * Creates a new PSCAutomationConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns PSCAutomationConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IPSCAutomationConfig): google.cloud.aiplatform.v1beta1.PSCAutomationConfig; + + /** + * Encodes the specified PSCAutomationConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PSCAutomationConfig.verify|verify} messages. + * @param message PSCAutomationConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IPSCAutomationConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PSCAutomationConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PSCAutomationConfig.verify|verify} messages. + * @param message PSCAutomationConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPSCAutomationConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PSCAutomationConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PSCAutomationConfig + * @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.PSCAutomationConfig; + + /** + * Decodes a PSCAutomationConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PSCAutomationConfig + * @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.PSCAutomationConfig; + + /** + * Verifies a PSCAutomationConfig 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 PSCAutomationConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PSCAutomationConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PSCAutomationConfig; + + /** + * Creates a plain object from a PSCAutomationConfig message. Also converts values to other types if specified. + * @param message PSCAutomationConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.PSCAutomationConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PSCAutomationConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PSCAutomationConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a PrivateServiceConnectConfig. */ interface IPrivateServiceConnectConfig { @@ -187235,6 +188328,9 @@ export namespace google { /** DeployedIndex deploymentGroup */ deploymentGroup?: (string|null); + + /** DeployedIndex pscAutomationConfigs */ + pscAutomationConfigs?: (google.cloud.aiplatform.v1beta1.IPSCAutomationConfig[]|null); } /** Represents a DeployedIndex. */ @@ -187282,6 +188378,9 @@ export namespace google { /** DeployedIndex deploymentGroup. */ public deploymentGroup: string; + /** DeployedIndex pscAutomationConfigs. */ + public pscAutomationConfigs: google.cloud.aiplatform.v1beta1.IPSCAutomationConfig[]; + /** * Creates a new DeployedIndex instance using the specified properties. * @param [properties] Properties to set @@ -227212,6 +228311,12 @@ export namespace google { /** PipelineJob satisfiesPzi */ satisfiesPzi?: (boolean|null); + + /** PipelineJob originalPipelineJobId */ + originalPipelineJobId?: (number|Long|string|null); + + /** PipelineJob pipelineTaskRerunConfigs */ + pipelineTaskRerunConfigs?: (google.cloud.aiplatform.v1beta1.IPipelineTaskRerunConfig[]|null); } /** Represents a PipelineJob. */ @@ -227289,6 +228394,12 @@ export namespace google { /** PipelineJob satisfiesPzi. */ public satisfiesPzi: boolean; + /** PipelineJob originalPipelineJobId. */ + public originalPipelineJobId: (number|Long|string); + + /** PipelineJob pipelineTaskRerunConfigs. */ + public pipelineTaskRerunConfigs: google.cloud.aiplatform.v1beta1.IPipelineTaskRerunConfig[]; + /** * Creates a new PipelineJob instance using the specified properties. * @param [properties] Properties to set @@ -228519,6 +229630,330 @@ export namespace google { } } + /** Properties of a PipelineTaskRerunConfig. */ + interface IPipelineTaskRerunConfig { + + /** PipelineTaskRerunConfig taskId */ + taskId?: (number|Long|string|null); + + /** PipelineTaskRerunConfig taskName */ + taskName?: (string|null); + + /** PipelineTaskRerunConfig inputs */ + inputs?: (google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.IInputs|null); + + /** PipelineTaskRerunConfig skipTask */ + skipTask?: (boolean|null); + + /** PipelineTaskRerunConfig skipDownstreamTasks */ + skipDownstreamTasks?: (boolean|null); + } + + /** Represents a PipelineTaskRerunConfig. */ + class PipelineTaskRerunConfig implements IPipelineTaskRerunConfig { + + /** + * Constructs a new PipelineTaskRerunConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IPipelineTaskRerunConfig); + + /** PipelineTaskRerunConfig taskId. */ + public taskId: (number|Long|string); + + /** PipelineTaskRerunConfig taskName. */ + public taskName: string; + + /** PipelineTaskRerunConfig inputs. */ + public inputs?: (google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.IInputs|null); + + /** PipelineTaskRerunConfig skipTask. */ + public skipTask: boolean; + + /** PipelineTaskRerunConfig skipDownstreamTasks. */ + public skipDownstreamTasks: boolean; + + /** + * Creates a new PipelineTaskRerunConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns PipelineTaskRerunConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IPipelineTaskRerunConfig): google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig; + + /** + * Encodes the specified PipelineTaskRerunConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.verify|verify} messages. + * @param message PipelineTaskRerunConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IPipelineTaskRerunConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PipelineTaskRerunConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.verify|verify} messages. + * @param message PipelineTaskRerunConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPipelineTaskRerunConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PipelineTaskRerunConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PipelineTaskRerunConfig + * @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.PipelineTaskRerunConfig; + + /** + * Decodes a PipelineTaskRerunConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PipelineTaskRerunConfig + * @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.PipelineTaskRerunConfig; + + /** + * Verifies a PipelineTaskRerunConfig 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 PipelineTaskRerunConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PipelineTaskRerunConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig; + + /** + * Creates a plain object from a PipelineTaskRerunConfig message. Also converts values to other types if specified. + * @param message PipelineTaskRerunConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PipelineTaskRerunConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PipelineTaskRerunConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace PipelineTaskRerunConfig { + + /** Properties of an ArtifactList. */ + interface IArtifactList { + + /** ArtifactList artifacts */ + artifacts?: (google.cloud.aiplatform.v1beta1.IRuntimeArtifact[]|null); + } + + /** Represents an ArtifactList. */ + class ArtifactList implements IArtifactList { + + /** + * Constructs a new ArtifactList. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.IArtifactList); + + /** ArtifactList artifacts. */ + public artifacts: google.cloud.aiplatform.v1beta1.IRuntimeArtifact[]; + + /** + * Creates a new ArtifactList instance using the specified properties. + * @param [properties] Properties to set + * @returns ArtifactList instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.IArtifactList): google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.ArtifactList; + + /** + * Encodes the specified ArtifactList message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.ArtifactList.verify|verify} messages. + * @param message ArtifactList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.IArtifactList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ArtifactList message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.ArtifactList.verify|verify} messages. + * @param message ArtifactList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.IArtifactList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ArtifactList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ArtifactList + * @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.PipelineTaskRerunConfig.ArtifactList; + + /** + * Decodes an ArtifactList message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ArtifactList + * @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.PipelineTaskRerunConfig.ArtifactList; + + /** + * Verifies an ArtifactList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ArtifactList message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ArtifactList + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.ArtifactList; + + /** + * Creates a plain object from an ArtifactList message. Also converts values to other types if specified. + * @param message ArtifactList + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.ArtifactList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ArtifactList to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ArtifactList + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an Inputs. */ + interface IInputs { + + /** Inputs artifacts */ + artifacts?: ({ [k: string]: google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.IArtifactList }|null); + + /** Inputs parameterValues */ + parameterValues?: ({ [k: string]: google.protobuf.IValue }|null); + } + + /** Represents an Inputs. */ + class Inputs implements IInputs { + + /** + * Constructs a new Inputs. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.IInputs); + + /** Inputs artifacts. */ + public artifacts: { [k: string]: google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.IArtifactList }; + + /** Inputs parameterValues. */ + public parameterValues: { [k: string]: google.protobuf.IValue }; + + /** + * Creates a new Inputs instance using the specified properties. + * @param [properties] Properties to set + * @returns Inputs instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.IInputs): google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.Inputs; + + /** + * Encodes the specified Inputs message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.Inputs.verify|verify} messages. + * @param message Inputs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.IInputs, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Inputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.Inputs.verify|verify} messages. + * @param message Inputs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.IInputs, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Inputs message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Inputs + * @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.PipelineTaskRerunConfig.Inputs; + + /** + * Decodes an Inputs message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Inputs + * @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.PipelineTaskRerunConfig.Inputs; + + /** + * Verifies an Inputs message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an Inputs message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Inputs + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.Inputs; + + /** + * Creates a plain object from an Inputs message. Also converts values to other types if specified. + * @param message Inputs + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.Inputs, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Inputs to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Inputs + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + /** PipelineState enum. */ enum PipelineState { PIPELINE_STATE_UNSPECIFIED = 0, @@ -228532,6 +229967,251 @@ export namespace google { PIPELINE_STATE_PAUSED = 8 } + /** Properties of an ArtifactTypeSchema. */ + interface IArtifactTypeSchema { + + /** ArtifactTypeSchema schemaTitle */ + schemaTitle?: (string|null); + + /** ArtifactTypeSchema schemaUri */ + schemaUri?: (string|null); + + /** ArtifactTypeSchema instanceSchema */ + instanceSchema?: (string|null); + + /** ArtifactTypeSchema schemaVersion */ + schemaVersion?: (string|null); + } + + /** Represents an ArtifactTypeSchema. */ + class ArtifactTypeSchema implements IArtifactTypeSchema { + + /** + * Constructs a new ArtifactTypeSchema. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IArtifactTypeSchema); + + /** ArtifactTypeSchema schemaTitle. */ + public schemaTitle?: (string|null); + + /** ArtifactTypeSchema schemaUri. */ + public schemaUri?: (string|null); + + /** ArtifactTypeSchema instanceSchema. */ + public instanceSchema?: (string|null); + + /** ArtifactTypeSchema schemaVersion. */ + public schemaVersion: string; + + /** ArtifactTypeSchema kind. */ + public kind?: ("schemaTitle"|"schemaUri"|"instanceSchema"); + + /** + * Creates a new ArtifactTypeSchema instance using the specified properties. + * @param [properties] Properties to set + * @returns ArtifactTypeSchema instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IArtifactTypeSchema): google.cloud.aiplatform.v1beta1.ArtifactTypeSchema; + + /** + * Encodes the specified ArtifactTypeSchema message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ArtifactTypeSchema.verify|verify} messages. + * @param message ArtifactTypeSchema message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IArtifactTypeSchema, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ArtifactTypeSchema message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ArtifactTypeSchema.verify|verify} messages. + * @param message ArtifactTypeSchema message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IArtifactTypeSchema, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ArtifactTypeSchema message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ArtifactTypeSchema + * @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.ArtifactTypeSchema; + + /** + * Decodes an ArtifactTypeSchema message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ArtifactTypeSchema + * @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.ArtifactTypeSchema; + + /** + * Verifies an ArtifactTypeSchema message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ArtifactTypeSchema message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ArtifactTypeSchema + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ArtifactTypeSchema; + + /** + * Creates a plain object from an ArtifactTypeSchema message. Also converts values to other types if specified. + * @param message ArtifactTypeSchema + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ArtifactTypeSchema, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ArtifactTypeSchema to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ArtifactTypeSchema + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RuntimeArtifact. */ + interface IRuntimeArtifact { + + /** RuntimeArtifact name */ + name?: (string|null); + + /** RuntimeArtifact type */ + type?: (google.cloud.aiplatform.v1beta1.IArtifactTypeSchema|null); + + /** RuntimeArtifact uri */ + uri?: (string|null); + + /** RuntimeArtifact properties */ + properties?: ({ [k: string]: google.cloud.aiplatform.v1beta1.IValue }|null); + + /** RuntimeArtifact customProperties */ + customProperties?: ({ [k: string]: google.cloud.aiplatform.v1beta1.IValue }|null); + + /** RuntimeArtifact metadata */ + metadata?: (google.protobuf.IStruct|null); + } + + /** Represents a RuntimeArtifact. */ + class RuntimeArtifact implements IRuntimeArtifact { + + /** + * Constructs a new RuntimeArtifact. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IRuntimeArtifact); + + /** RuntimeArtifact name. */ + public name: string; + + /** RuntimeArtifact type. */ + public type?: (google.cloud.aiplatform.v1beta1.IArtifactTypeSchema|null); + + /** RuntimeArtifact uri. */ + public uri: string; + + /** RuntimeArtifact properties. */ + public properties: { [k: string]: google.cloud.aiplatform.v1beta1.IValue }; + + /** RuntimeArtifact customProperties. */ + public customProperties: { [k: string]: google.cloud.aiplatform.v1beta1.IValue }; + + /** RuntimeArtifact metadata. */ + public metadata?: (google.protobuf.IStruct|null); + + /** + * Creates a new RuntimeArtifact instance using the specified properties. + * @param [properties] Properties to set + * @returns RuntimeArtifact instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IRuntimeArtifact): google.cloud.aiplatform.v1beta1.RuntimeArtifact; + + /** + * Encodes the specified RuntimeArtifact message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RuntimeArtifact.verify|verify} messages. + * @param message RuntimeArtifact message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IRuntimeArtifact, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RuntimeArtifact message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RuntimeArtifact.verify|verify} messages. + * @param message RuntimeArtifact message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IRuntimeArtifact, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RuntimeArtifact message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RuntimeArtifact + * @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.RuntimeArtifact; + + /** + * Decodes a RuntimeArtifact message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RuntimeArtifact + * @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.RuntimeArtifact; + + /** + * Verifies a RuntimeArtifact 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 RuntimeArtifact message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RuntimeArtifact + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.RuntimeArtifact; + + /** + * Creates a plain object from a RuntimeArtifact message. Also converts values to other types if specified. + * @param message RuntimeArtifact + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.RuntimeArtifact, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RuntimeArtifact to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RuntimeArtifact + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a Value. */ interface IValue { @@ -233969,6 +235649,9 @@ export namespace google { /** CountTokensRequest tools */ tools?: (google.cloud.aiplatform.v1beta1.ITool[]|null); + + /** CountTokensRequest generationConfig */ + generationConfig?: (google.cloud.aiplatform.v1beta1.IGenerationConfig|null); } /** Represents a CountTokensRequest. */ @@ -233998,9 +235681,15 @@ export namespace google { /** CountTokensRequest tools. */ public tools: google.cloud.aiplatform.v1beta1.ITool[]; + /** CountTokensRequest generationConfig. */ + public generationConfig?: (google.cloud.aiplatform.v1beta1.IGenerationConfig|null); + /** CountTokensRequest _systemInstruction. */ public _systemInstruction?: "systemInstruction"; + /** CountTokensRequest _generationConfig. */ + public _generationConfig?: "generationConfig"; + /** * Creates a new CountTokensRequest instance using the specified properties. * @param [properties] Properties to set @@ -234203,6 +235892,9 @@ export namespace google { /** GenerateContentRequest toolConfig */ toolConfig?: (google.cloud.aiplatform.v1beta1.IToolConfig|null); + /** GenerateContentRequest labels */ + labels?: ({ [k: string]: string }|null); + /** GenerateContentRequest safetySettings */ safetySettings?: (google.cloud.aiplatform.v1beta1.ISafetySetting[]|null); @@ -234237,6 +235929,9 @@ export namespace google { /** GenerateContentRequest toolConfig. */ public toolConfig?: (google.cloud.aiplatform.v1beta1.IToolConfig|null); + /** GenerateContentRequest labels. */ + public labels: { [k: string]: string }; + /** GenerateContentRequest safetySettings. */ public safetySettings: google.cloud.aiplatform.v1beta1.ISafetySetting[]; @@ -234330,6 +236025,9 @@ export namespace google { /** GenerateContentResponse candidates */ candidates?: (google.cloud.aiplatform.v1beta1.ICandidate[]|null); + /** GenerateContentResponse modelVersion */ + modelVersion?: (string|null); + /** GenerateContentResponse promptFeedback */ promptFeedback?: (google.cloud.aiplatform.v1beta1.GenerateContentResponse.IPromptFeedback|null); @@ -234349,6 +236047,9 @@ export namespace google { /** GenerateContentResponse candidates. */ public candidates: google.cloud.aiplatform.v1beta1.ICandidate[]; + /** GenerateContentResponse modelVersion. */ + public modelVersion: string; + /** GenerateContentResponse promptFeedback. */ public promptFeedback?: (google.cloud.aiplatform.v1beta1.GenerateContentResponse.IPromptFeedback|null); @@ -257442,9 +259143,15 @@ export namespace google { /** RagVectorDbConfig weaviate */ weaviate?: (google.cloud.aiplatform.v1beta1.RagVectorDbConfig.IWeaviate|null); + /** RagVectorDbConfig pinecone */ + pinecone?: (google.cloud.aiplatform.v1beta1.RagVectorDbConfig.IPinecone|null); + /** RagVectorDbConfig vertexFeatureStore */ vertexFeatureStore?: (google.cloud.aiplatform.v1beta1.RagVectorDbConfig.IVertexFeatureStore|null); + /** RagVectorDbConfig vertexVectorSearch */ + vertexVectorSearch?: (google.cloud.aiplatform.v1beta1.RagVectorDbConfig.IVertexVectorSearch|null); + /** RagVectorDbConfig apiAuth */ apiAuth?: (google.cloud.aiplatform.v1beta1.IApiAuth|null); } @@ -257464,14 +259171,20 @@ export namespace google { /** RagVectorDbConfig weaviate. */ public weaviate?: (google.cloud.aiplatform.v1beta1.RagVectorDbConfig.IWeaviate|null); + /** RagVectorDbConfig pinecone. */ + public pinecone?: (google.cloud.aiplatform.v1beta1.RagVectorDbConfig.IPinecone|null); + /** RagVectorDbConfig vertexFeatureStore. */ public vertexFeatureStore?: (google.cloud.aiplatform.v1beta1.RagVectorDbConfig.IVertexFeatureStore|null); + /** RagVectorDbConfig vertexVectorSearch. */ + public vertexVectorSearch?: (google.cloud.aiplatform.v1beta1.RagVectorDbConfig.IVertexVectorSearch|null); + /** RagVectorDbConfig apiAuth. */ public apiAuth?: (google.cloud.aiplatform.v1beta1.IApiAuth|null); /** RagVectorDbConfig vectorDb. */ - public vectorDb?: ("ragManagedDb"|"weaviate"|"vertexFeatureStore"); + public vectorDb?: ("ragManagedDb"|"weaviate"|"pinecone"|"vertexFeatureStore"|"vertexVectorSearch"); /** * Creates a new RagVectorDbConfig instance using the specified properties. @@ -257747,6 +259460,103 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a Pinecone. */ + interface IPinecone { + + /** Pinecone indexName */ + indexName?: (string|null); + } + + /** Represents a Pinecone. */ + class Pinecone implements IPinecone { + + /** + * Constructs a new Pinecone. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.RagVectorDbConfig.IPinecone); + + /** Pinecone indexName. */ + public indexName: string; + + /** + * Creates a new Pinecone instance using the specified properties. + * @param [properties] Properties to set + * @returns Pinecone instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.RagVectorDbConfig.IPinecone): google.cloud.aiplatform.v1beta1.RagVectorDbConfig.Pinecone; + + /** + * Encodes the specified Pinecone message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RagVectorDbConfig.Pinecone.verify|verify} messages. + * @param message Pinecone message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.RagVectorDbConfig.IPinecone, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Pinecone message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RagVectorDbConfig.Pinecone.verify|verify} messages. + * @param message Pinecone message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.RagVectorDbConfig.IPinecone, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Pinecone message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Pinecone + * @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.RagVectorDbConfig.Pinecone; + + /** + * Decodes a Pinecone message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Pinecone + * @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.RagVectorDbConfig.Pinecone; + + /** + * Verifies a Pinecone 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 Pinecone message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Pinecone + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.RagVectorDbConfig.Pinecone; + + /** + * Creates a plain object from a Pinecone message. Also converts values to other types if specified. + * @param message Pinecone + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.RagVectorDbConfig.Pinecone, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Pinecone to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Pinecone + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a VertexFeatureStore. */ interface IVertexFeatureStore { @@ -257843,6 +259653,109 @@ export namespace google { */ public static getTypeUrl(typeUrlPrefix?: string): string; } + + /** Properties of a VertexVectorSearch. */ + interface IVertexVectorSearch { + + /** VertexVectorSearch indexEndpoint */ + indexEndpoint?: (string|null); + + /** VertexVectorSearch index */ + index?: (string|null); + } + + /** Represents a VertexVectorSearch. */ + class VertexVectorSearch implements IVertexVectorSearch { + + /** + * Constructs a new VertexVectorSearch. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.RagVectorDbConfig.IVertexVectorSearch); + + /** VertexVectorSearch indexEndpoint. */ + public indexEndpoint: string; + + /** VertexVectorSearch index. */ + public index: string; + + /** + * Creates a new VertexVectorSearch instance using the specified properties. + * @param [properties] Properties to set + * @returns VertexVectorSearch instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.RagVectorDbConfig.IVertexVectorSearch): google.cloud.aiplatform.v1beta1.RagVectorDbConfig.VertexVectorSearch; + + /** + * Encodes the specified VertexVectorSearch message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RagVectorDbConfig.VertexVectorSearch.verify|verify} messages. + * @param message VertexVectorSearch message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.RagVectorDbConfig.IVertexVectorSearch, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified VertexVectorSearch message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RagVectorDbConfig.VertexVectorSearch.verify|verify} messages. + * @param message VertexVectorSearch message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.RagVectorDbConfig.IVertexVectorSearch, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VertexVectorSearch message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VertexVectorSearch + * @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.RagVectorDbConfig.VertexVectorSearch; + + /** + * Decodes a VertexVectorSearch message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VertexVectorSearch + * @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.RagVectorDbConfig.VertexVectorSearch; + + /** + * Verifies a VertexVectorSearch 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 VertexVectorSearch message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VertexVectorSearch + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.RagVectorDbConfig.VertexVectorSearch; + + /** + * Creates a plain object from a VertexVectorSearch message. Also converts values to other types if specified. + * @param message VertexVectorSearch + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.RagVectorDbConfig.VertexVectorSearch, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this VertexVectorSearch to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for VertexVectorSearch + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } /** Properties of a FileStatus. */ @@ -258229,6 +260142,9 @@ export namespace google { /** RagFile jiraSource */ jiraSource?: (google.cloud.aiplatform.v1beta1.IJiraSource|null); + /** RagFile sharePointSources */ + sharePointSources?: (google.cloud.aiplatform.v1beta1.ISharePointSources|null); + /** RagFile name */ name?: (string|null); @@ -258278,6 +260194,9 @@ export namespace google { /** RagFile jiraSource. */ public jiraSource?: (google.cloud.aiplatform.v1beta1.IJiraSource|null); + /** RagFile sharePointSources. */ + public sharePointSources?: (google.cloud.aiplatform.v1beta1.ISharePointSources|null); + /** RagFile name. */ public name: string; @@ -258303,7 +260222,7 @@ export namespace google { public fileStatus?: (google.cloud.aiplatform.v1beta1.IFileStatus|null); /** RagFile ragFileSource. */ - public ragFileSource?: ("gcsSource"|"googleDriveSource"|"directUploadSource"|"slackSource"|"jiraSource"); + public ragFileSource?: ("gcsSource"|"googleDriveSource"|"directUploadSource"|"slackSource"|"jiraSource"|"sharePointSources"); /** * Creates a new RagFile instance using the specified properties. @@ -258705,6 +260624,15 @@ export namespace google { /** ImportRagFilesConfig jiraSource */ jiraSource?: (google.cloud.aiplatform.v1beta1.IJiraSource|null); + /** ImportRagFilesConfig sharePointSources */ + sharePointSources?: (google.cloud.aiplatform.v1beta1.ISharePointSources|null); + + /** ImportRagFilesConfig partialFailureGcsSink */ + partialFailureGcsSink?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + + /** ImportRagFilesConfig partialFailureBigquerySink */ + partialFailureBigquerySink?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); + /** ImportRagFilesConfig ragFileChunkingConfig */ ragFileChunkingConfig?: (google.cloud.aiplatform.v1beta1.IRagFileChunkingConfig|null); @@ -258736,6 +260664,15 @@ export namespace google { /** ImportRagFilesConfig jiraSource. */ public jiraSource?: (google.cloud.aiplatform.v1beta1.IJiraSource|null); + /** ImportRagFilesConfig sharePointSources. */ + public sharePointSources?: (google.cloud.aiplatform.v1beta1.ISharePointSources|null); + + /** ImportRagFilesConfig partialFailureGcsSink. */ + public partialFailureGcsSink?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + + /** ImportRagFilesConfig partialFailureBigquerySink. */ + public partialFailureBigquerySink?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); + /** ImportRagFilesConfig ragFileChunkingConfig. */ public ragFileChunkingConfig?: (google.cloud.aiplatform.v1beta1.IRagFileChunkingConfig|null); @@ -258746,7 +260683,10 @@ export namespace google { public maxEmbeddingRequestsPerMin: number; /** ImportRagFilesConfig importSource. */ - public importSource?: ("gcsSource"|"googleDriveSource"|"slackSource"|"jiraSource"); + public importSource?: ("gcsSource"|"googleDriveSource"|"slackSource"|"jiraSource"|"sharePointSources"); + + /** ImportRagFilesConfig partialFailureSink. */ + public partialFailureSink?: ("partialFailureGcsSink"|"partialFailureBigquerySink"); /** * Creates a new ImportRagFilesConfig instance using the specified properties. @@ -259896,6 +261836,12 @@ export namespace google { /** Properties of an ImportRagFilesResponse. */ interface IImportRagFilesResponse { + /** ImportRagFilesResponse partialFailuresGcsPath */ + partialFailuresGcsPath?: (string|null); + + /** ImportRagFilesResponse partialFailuresBigqueryTable */ + partialFailuresBigqueryTable?: (string|null); + /** ImportRagFilesResponse importedRagFilesCount */ importedRagFilesCount?: (number|Long|string|null); @@ -259915,6 +261861,12 @@ export namespace google { */ constructor(properties?: google.cloud.aiplatform.v1beta1.IImportRagFilesResponse); + /** ImportRagFilesResponse partialFailuresGcsPath. */ + public partialFailuresGcsPath?: (string|null); + + /** ImportRagFilesResponse partialFailuresBigqueryTable. */ + public partialFailuresBigqueryTable?: (string|null); + /** ImportRagFilesResponse importedRagFilesCount. */ public importedRagFilesCount: (number|Long|string); @@ -259924,6 +261876,9 @@ export namespace google { /** ImportRagFilesResponse skippedRagFilesCount. */ public skippedRagFilesCount: (number|Long|string); + /** ImportRagFilesResponse partialFailureSink. */ + public partialFailureSink?: ("partialFailuresGcsPath"|"partialFailuresBigqueryTable"); + /** * Creates a new ImportRagFilesResponse instance using the specified properties. * @param [properties] Properties to set diff --git a/packages/google-cloud-aiplatform/protos/protos.js b/packages/google-cloud-aiplatform/protos/protos.js index 09409ceb086..d4a6a7c79b1 100644 --- a/packages/google-cloud-aiplatform/protos/protos.js +++ b/packages/google-cloud-aiplatform/protos/protos.js @@ -22575,6 +22575,7 @@ * @property {number} HARM_CATEGORY_DANGEROUS_CONTENT=2 HARM_CATEGORY_DANGEROUS_CONTENT value * @property {number} HARM_CATEGORY_HARASSMENT=3 HARM_CATEGORY_HARASSMENT value * @property {number} HARM_CATEGORY_SEXUALLY_EXPLICIT=4 HARM_CATEGORY_SEXUALLY_EXPLICIT value + * @property {number} HARM_CATEGORY_CIVIC_INTEGRITY=5 HARM_CATEGORY_CIVIC_INTEGRITY value */ v1.HarmCategory = (function() { var valuesById = {}, values = Object.create(valuesById); @@ -22583,6 +22584,7 @@ values[valuesById[2] = "HARM_CATEGORY_DANGEROUS_CONTENT"] = 2; values[valuesById[3] = "HARM_CATEGORY_HARASSMENT"] = 3; values[valuesById[4] = "HARM_CATEGORY_SEXUALLY_EXPLICIT"] = 4; + values[valuesById[5] = "HARM_CATEGORY_CIVIC_INTEGRITY"] = 5; return values; })(); @@ -23951,6 +23953,8 @@ * @property {number|null} [candidateCount] GenerationConfig candidateCount * @property {number|null} [maxOutputTokens] GenerationConfig maxOutputTokens * @property {Array.<string>|null} [stopSequences] GenerationConfig stopSequences + * @property {boolean|null} [responseLogprobs] GenerationConfig responseLogprobs + * @property {number|null} [logprobs] GenerationConfig logprobs * @property {number|null} [presencePenalty] GenerationConfig presencePenalty * @property {number|null} [frequencyPenalty] GenerationConfig frequencyPenalty * @property {number|null} [seed] GenerationConfig seed @@ -24023,6 +24027,22 @@ */ GenerationConfig.prototype.stopSequences = $util.emptyArray; + /** + * GenerationConfig responseLogprobs. + * @member {boolean|null|undefined} responseLogprobs + * @memberof google.cloud.aiplatform.v1.GenerationConfig + * @instance + */ + GenerationConfig.prototype.responseLogprobs = null; + + /** + * GenerationConfig logprobs. + * @member {number|null|undefined} logprobs + * @memberof google.cloud.aiplatform.v1.GenerationConfig + * @instance + */ + GenerationConfig.prototype.logprobs = null; + /** * GenerationConfig presencePenalty. * @member {number|null|undefined} presencePenalty @@ -24129,6 +24149,28 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * GenerationConfig _responseLogprobs. + * @member {"responseLogprobs"|undefined} _responseLogprobs + * @memberof google.cloud.aiplatform.v1.GenerationConfig + * @instance + */ + Object.defineProperty(GenerationConfig.prototype, "_responseLogprobs", { + get: $util.oneOfGetter($oneOfFields = ["responseLogprobs"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * GenerationConfig _logprobs. + * @member {"logprobs"|undefined} _logprobs + * @memberof google.cloud.aiplatform.v1.GenerationConfig + * @instance + */ + Object.defineProperty(GenerationConfig.prototype, "_logprobs", { + get: $util.oneOfGetter($oneOfFields = ["logprobs"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * GenerationConfig _presencePenalty. * @member {"presencePenalty"|undefined} _presencePenalty @@ -24221,6 +24263,8 @@ if (message.stopSequences != null && message.stopSequences.length) for (var i = 0; i < message.stopSequences.length; ++i) writer.uint32(/* id 6, wireType 2 =*/50).string(message.stopSequences[i]); + if (message.logprobs != null && Object.hasOwnProperty.call(message, "logprobs")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.logprobs); if (message.presencePenalty != null && Object.hasOwnProperty.call(message, "presencePenalty")) writer.uint32(/* id 8, wireType 5 =*/69).float(message.presencePenalty); if (message.frequencyPenalty != null && Object.hasOwnProperty.call(message, "frequencyPenalty")) @@ -24233,6 +24277,8 @@ $root.google.cloud.aiplatform.v1.Schema.encode(message.responseSchema, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); if (message.routingConfig != null && Object.hasOwnProperty.call(message, "routingConfig")) $root.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.encode(message.routingConfig, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); + if (message.responseLogprobs != null && Object.hasOwnProperty.call(message, "responseLogprobs")) + writer.uint32(/* id 18, wireType 0 =*/144).bool(message.responseLogprobs); return writer; }; @@ -24293,6 +24339,14 @@ message.stopSequences.push(reader.string()); break; } + case 18: { + message.responseLogprobs = reader.bool(); + break; + } + case 7: { + message.logprobs = reader.int32(); + break; + } case 8: { message.presencePenalty = reader.float(); break; @@ -24385,6 +24439,16 @@ if (!$util.isString(message.stopSequences[i])) return "stopSequences: string[] expected"; } + if (message.responseLogprobs != null && message.hasOwnProperty("responseLogprobs")) { + properties._responseLogprobs = 1; + if (typeof message.responseLogprobs !== "boolean") + return "responseLogprobs: boolean expected"; + } + if (message.logprobs != null && message.hasOwnProperty("logprobs")) { + properties._logprobs = 1; + if (!$util.isInteger(message.logprobs)) + return "logprobs: integer expected"; + } if (message.presencePenalty != null && message.hasOwnProperty("presencePenalty")) { properties._presencePenalty = 1; if (typeof message.presencePenalty !== "number") @@ -24451,6 +24515,10 @@ for (var i = 0; i < object.stopSequences.length; ++i) message.stopSequences[i] = String(object.stopSequences[i]); } + if (object.responseLogprobs != null) + message.responseLogprobs = Boolean(object.responseLogprobs); + if (object.logprobs != null) + message.logprobs = object.logprobs | 0; if (object.presencePenalty != null) message.presencePenalty = Number(object.presencePenalty); if (object.frequencyPenalty != null) @@ -24519,6 +24587,11 @@ for (var j = 0; j < message.stopSequences.length; ++j) object.stopSequences[j] = message.stopSequences[j]; } + if (message.logprobs != null && message.hasOwnProperty("logprobs")) { + object.logprobs = message.logprobs; + if (options.oneofs) + object._logprobs = "logprobs"; + } if (message.presencePenalty != null && message.hasOwnProperty("presencePenalty")) { object.presencePenalty = options.json && !isFinite(message.presencePenalty) ? String(message.presencePenalty) : message.presencePenalty; if (options.oneofs) @@ -24546,6 +24619,11 @@ if (options.oneofs) object._routingConfig = "routingConfig"; } + if (message.responseLogprobs != null && message.hasOwnProperty("responseLogprobs")) { + object.responseLogprobs = message.responseLogprobs; + if (options.oneofs) + object._responseLogprobs = "responseLogprobs"; + } return object; }; @@ -25499,6 +25577,7 @@ case 2: case 3: case 4: + case 5: break; } if (message.threshold != null && message.hasOwnProperty("threshold")) @@ -25510,6 +25589,7 @@ case 2: case 3: case 4: + case 5: break; } if (message.method != null && message.hasOwnProperty("method")) @@ -25563,6 +25643,10 @@ case 4: message.category = 4; break; + case "HARM_CATEGORY_CIVIC_INTEGRITY": + case 5: + message.category = 5; + break; } switch (object.threshold) { default: @@ -25591,6 +25675,10 @@ case 4: message.threshold = 4; break; + case "OFF": + case 5: + message.threshold = 5; + break; } switch (object.method) { default: @@ -25677,6 +25765,7 @@ * @property {number} BLOCK_MEDIUM_AND_ABOVE=2 BLOCK_MEDIUM_AND_ABOVE value * @property {number} BLOCK_ONLY_HIGH=3 BLOCK_ONLY_HIGH value * @property {number} BLOCK_NONE=4 BLOCK_NONE value + * @property {number} OFF=5 OFF value */ SafetySetting.HarmBlockThreshold = (function() { var valuesById = {}, values = Object.create(valuesById); @@ -25685,6 +25774,7 @@ values[valuesById[2] = "BLOCK_MEDIUM_AND_ABOVE"] = 2; values[valuesById[3] = "BLOCK_ONLY_HIGH"] = 3; values[valuesById[4] = "BLOCK_NONE"] = 4; + values[valuesById[5] = "OFF"] = 5; return values; })(); @@ -25922,6 +26012,7 @@ case 2: case 3: case 4: + case 5: break; } if (message.probability != null && message.hasOwnProperty("probability")) @@ -25997,6 +26088,10 @@ case 4: message.category = 4; break; + case "HARM_CATEGORY_CIVIC_INTEGRITY": + case 5: + message.category = 5; + break; } switch (object.probability) { default: @@ -26726,6 +26821,7 @@ * @property {google.cloud.aiplatform.v1.IContent|null} [content] Candidate content * @property {number|null} [score] Candidate score * @property {number|null} [avgLogprobs] Candidate avgLogprobs + * @property {google.cloud.aiplatform.v1.ILogprobsResult|null} [logprobsResult] Candidate logprobsResult * @property {google.cloud.aiplatform.v1.Candidate.FinishReason|null} [finishReason] Candidate finishReason * @property {Array.<google.cloud.aiplatform.v1.ISafetyRating>|null} [safetyRatings] Candidate safetyRatings * @property {string|null} [finishMessage] Candidate finishMessage @@ -26781,6 +26877,14 @@ */ Candidate.prototype.avgLogprobs = 0; + /** + * Candidate logprobsResult. + * @member {google.cloud.aiplatform.v1.ILogprobsResult|null|undefined} logprobsResult + * @memberof google.cloud.aiplatform.v1.Candidate + * @instance + */ + Candidate.prototype.logprobsResult = null; + /** * Candidate finishReason. * @member {google.cloud.aiplatform.v1.Candidate.FinishReason} finishReason @@ -26878,6 +26982,8 @@ writer.uint32(/* id 8, wireType 1 =*/65).double(message.score); if (message.avgLogprobs != null && Object.hasOwnProperty.call(message, "avgLogprobs")) writer.uint32(/* id 9, wireType 1 =*/73).double(message.avgLogprobs); + if (message.logprobsResult != null && Object.hasOwnProperty.call(message, "logprobsResult")) + $root.google.cloud.aiplatform.v1.LogprobsResult.encode(message.logprobsResult, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); return writer; }; @@ -26928,6 +27034,10 @@ message.avgLogprobs = reader.double(); break; } + case 10: { + message.logprobsResult = $root.google.cloud.aiplatform.v1.LogprobsResult.decode(reader, reader.uint32()); + break; + } case 3: { message.finishReason = reader.int32(); break; @@ -27000,6 +27110,11 @@ if (message.avgLogprobs != null && message.hasOwnProperty("avgLogprobs")) if (typeof message.avgLogprobs !== "number") return "avgLogprobs: number expected"; + if (message.logprobsResult != null && message.hasOwnProperty("logprobsResult")) { + var error = $root.google.cloud.aiplatform.v1.LogprobsResult.verify(message.logprobsResult); + if (error) + return "logprobsResult." + error; + } if (message.finishReason != null && message.hasOwnProperty("finishReason")) switch (message.finishReason) { default: @@ -27066,6 +27181,11 @@ message.score = Number(object.score); if (object.avgLogprobs != null) message.avgLogprobs = Number(object.avgLogprobs); + if (object.logprobsResult != null) { + if (typeof object.logprobsResult !== "object") + throw TypeError(".google.cloud.aiplatform.v1.Candidate.logprobsResult: object expected"); + message.logprobsResult = $root.google.cloud.aiplatform.v1.LogprobsResult.fromObject(object.logprobsResult); + } switch (object.finishReason) { default: if (typeof object.finishReason === "number") { @@ -27162,6 +27282,7 @@ object.groundingMetadata = null; object.score = 0; object.avgLogprobs = 0; + object.logprobsResult = null; } if (message.index != null && message.hasOwnProperty("index")) object.index = message.index; @@ -27187,6 +27308,8 @@ object.score = options.json && !isFinite(message.score) ? String(message.score) : message.score; if (message.avgLogprobs != null && message.hasOwnProperty("avgLogprobs")) object.avgLogprobs = options.json && !isFinite(message.avgLogprobs) ? String(message.avgLogprobs) : message.avgLogprobs; + if (message.logprobsResult != null && message.hasOwnProperty("logprobsResult")) + object.logprobsResult = $root.google.cloud.aiplatform.v1.LogprobsResult.toObject(message.logprobsResult, options); return object; }; @@ -27249,6 +27372,796 @@ return Candidate; })(); + v1.LogprobsResult = (function() { + + /** + * Properties of a LogprobsResult. + * @memberof google.cloud.aiplatform.v1 + * @interface ILogprobsResult + * @property {Array.<google.cloud.aiplatform.v1.LogprobsResult.ITopCandidates>|null} [topCandidates] LogprobsResult topCandidates + * @property {Array.<google.cloud.aiplatform.v1.LogprobsResult.ICandidate>|null} [chosenCandidates] LogprobsResult chosenCandidates + */ + + /** + * Constructs a new LogprobsResult. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a LogprobsResult. + * @implements ILogprobsResult + * @constructor + * @param {google.cloud.aiplatform.v1.ILogprobsResult=} [properties] Properties to set + */ + function LogprobsResult(properties) { + this.topCandidates = []; + this.chosenCandidates = []; + 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]]; + } + + /** + * LogprobsResult topCandidates. + * @member {Array.<google.cloud.aiplatform.v1.LogprobsResult.ITopCandidates>} topCandidates + * @memberof google.cloud.aiplatform.v1.LogprobsResult + * @instance + */ + LogprobsResult.prototype.topCandidates = $util.emptyArray; + + /** + * LogprobsResult chosenCandidates. + * @member {Array.<google.cloud.aiplatform.v1.LogprobsResult.ICandidate>} chosenCandidates + * @memberof google.cloud.aiplatform.v1.LogprobsResult + * @instance + */ + LogprobsResult.prototype.chosenCandidates = $util.emptyArray; + + /** + * Creates a new LogprobsResult instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.LogprobsResult + * @static + * @param {google.cloud.aiplatform.v1.ILogprobsResult=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.LogprobsResult} LogprobsResult instance + */ + LogprobsResult.create = function create(properties) { + return new LogprobsResult(properties); + }; + + /** + * Encodes the specified LogprobsResult message. Does not implicitly {@link google.cloud.aiplatform.v1.LogprobsResult.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.LogprobsResult + * @static + * @param {google.cloud.aiplatform.v1.ILogprobsResult} message LogprobsResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LogprobsResult.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.topCandidates != null && message.topCandidates.length) + for (var i = 0; i < message.topCandidates.length; ++i) + $root.google.cloud.aiplatform.v1.LogprobsResult.TopCandidates.encode(message.topCandidates[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.chosenCandidates != null && message.chosenCandidates.length) + for (var i = 0; i < message.chosenCandidates.length; ++i) + $root.google.cloud.aiplatform.v1.LogprobsResult.Candidate.encode(message.chosenCandidates[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified LogprobsResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.LogprobsResult.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.LogprobsResult + * @static + * @param {google.cloud.aiplatform.v1.ILogprobsResult} message LogprobsResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LogprobsResult.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a LogprobsResult message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.LogprobsResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.LogprobsResult} LogprobsResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LogprobsResult.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.v1.LogprobsResult(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.topCandidates && message.topCandidates.length)) + message.topCandidates = []; + message.topCandidates.push($root.google.cloud.aiplatform.v1.LogprobsResult.TopCandidates.decode(reader, reader.uint32())); + break; + } + case 2: { + if (!(message.chosenCandidates && message.chosenCandidates.length)) + message.chosenCandidates = []; + message.chosenCandidates.push($root.google.cloud.aiplatform.v1.LogprobsResult.Candidate.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a LogprobsResult message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.LogprobsResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.LogprobsResult} LogprobsResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LogprobsResult.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a LogprobsResult message. + * @function verify + * @memberof google.cloud.aiplatform.v1.LogprobsResult + * @static + * @param {Object.<string,*>} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LogprobsResult.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.topCandidates != null && message.hasOwnProperty("topCandidates")) { + if (!Array.isArray(message.topCandidates)) + return "topCandidates: array expected"; + for (var i = 0; i < message.topCandidates.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.LogprobsResult.TopCandidates.verify(message.topCandidates[i]); + if (error) + return "topCandidates." + error; + } + } + if (message.chosenCandidates != null && message.hasOwnProperty("chosenCandidates")) { + if (!Array.isArray(message.chosenCandidates)) + return "chosenCandidates: array expected"; + for (var i = 0; i < message.chosenCandidates.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.LogprobsResult.Candidate.verify(message.chosenCandidates[i]); + if (error) + return "chosenCandidates." + error; + } + } + return null; + }; + + /** + * Creates a LogprobsResult message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.LogprobsResult + * @static + * @param {Object.<string,*>} object Plain object + * @returns {google.cloud.aiplatform.v1.LogprobsResult} LogprobsResult + */ + LogprobsResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.LogprobsResult) + return object; + var message = new $root.google.cloud.aiplatform.v1.LogprobsResult(); + if (object.topCandidates) { + if (!Array.isArray(object.topCandidates)) + throw TypeError(".google.cloud.aiplatform.v1.LogprobsResult.topCandidates: array expected"); + message.topCandidates = []; + for (var i = 0; i < object.topCandidates.length; ++i) { + if (typeof object.topCandidates[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.LogprobsResult.topCandidates: object expected"); + message.topCandidates[i] = $root.google.cloud.aiplatform.v1.LogprobsResult.TopCandidates.fromObject(object.topCandidates[i]); + } + } + if (object.chosenCandidates) { + if (!Array.isArray(object.chosenCandidates)) + throw TypeError(".google.cloud.aiplatform.v1.LogprobsResult.chosenCandidates: array expected"); + message.chosenCandidates = []; + for (var i = 0; i < object.chosenCandidates.length; ++i) { + if (typeof object.chosenCandidates[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.LogprobsResult.chosenCandidates: object expected"); + message.chosenCandidates[i] = $root.google.cloud.aiplatform.v1.LogprobsResult.Candidate.fromObject(object.chosenCandidates[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a LogprobsResult message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.LogprobsResult + * @static + * @param {google.cloud.aiplatform.v1.LogprobsResult} message LogprobsResult + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.<string,*>} Plain object + */ + LogprobsResult.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.topCandidates = []; + object.chosenCandidates = []; + } + if (message.topCandidates && message.topCandidates.length) { + object.topCandidates = []; + for (var j = 0; j < message.topCandidates.length; ++j) + object.topCandidates[j] = $root.google.cloud.aiplatform.v1.LogprobsResult.TopCandidates.toObject(message.topCandidates[j], options); + } + if (message.chosenCandidates && message.chosenCandidates.length) { + object.chosenCandidates = []; + for (var j = 0; j < message.chosenCandidates.length; ++j) + object.chosenCandidates[j] = $root.google.cloud.aiplatform.v1.LogprobsResult.Candidate.toObject(message.chosenCandidates[j], options); + } + return object; + }; + + /** + * Converts this LogprobsResult to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.LogprobsResult + * @instance + * @returns {Object.<string,*>} JSON object + */ + LogprobsResult.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for LogprobsResult + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.LogprobsResult + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + LogprobsResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.LogprobsResult"; + }; + + LogprobsResult.Candidate = (function() { + + /** + * Properties of a Candidate. + * @memberof google.cloud.aiplatform.v1.LogprobsResult + * @interface ICandidate + * @property {string|null} [token] Candidate token + * @property {number|null} [tokenId] Candidate tokenId + * @property {number|null} [logProbability] Candidate logProbability + */ + + /** + * Constructs a new Candidate. + * @memberof google.cloud.aiplatform.v1.LogprobsResult + * @classdesc Represents a Candidate. + * @implements ICandidate + * @constructor + * @param {google.cloud.aiplatform.v1.LogprobsResult.ICandidate=} [properties] Properties to set + */ + function Candidate(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]]; + } + + /** + * Candidate token. + * @member {string|null|undefined} token + * @memberof google.cloud.aiplatform.v1.LogprobsResult.Candidate + * @instance + */ + Candidate.prototype.token = null; + + /** + * Candidate tokenId. + * @member {number|null|undefined} tokenId + * @memberof google.cloud.aiplatform.v1.LogprobsResult.Candidate + * @instance + */ + Candidate.prototype.tokenId = null; + + /** + * Candidate logProbability. + * @member {number|null|undefined} logProbability + * @memberof google.cloud.aiplatform.v1.LogprobsResult.Candidate + * @instance + */ + Candidate.prototype.logProbability = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Candidate _token. + * @member {"token"|undefined} _token + * @memberof google.cloud.aiplatform.v1.LogprobsResult.Candidate + * @instance + */ + Object.defineProperty(Candidate.prototype, "_token", { + get: $util.oneOfGetter($oneOfFields = ["token"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Candidate _tokenId. + * @member {"tokenId"|undefined} _tokenId + * @memberof google.cloud.aiplatform.v1.LogprobsResult.Candidate + * @instance + */ + Object.defineProperty(Candidate.prototype, "_tokenId", { + get: $util.oneOfGetter($oneOfFields = ["tokenId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Candidate _logProbability. + * @member {"logProbability"|undefined} _logProbability + * @memberof google.cloud.aiplatform.v1.LogprobsResult.Candidate + * @instance + */ + Object.defineProperty(Candidate.prototype, "_logProbability", { + get: $util.oneOfGetter($oneOfFields = ["logProbability"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Candidate instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.LogprobsResult.Candidate + * @static + * @param {google.cloud.aiplatform.v1.LogprobsResult.ICandidate=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.LogprobsResult.Candidate} Candidate instance + */ + Candidate.create = function create(properties) { + return new Candidate(properties); + }; + + /** + * Encodes the specified Candidate message. Does not implicitly {@link google.cloud.aiplatform.v1.LogprobsResult.Candidate.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.LogprobsResult.Candidate + * @static + * @param {google.cloud.aiplatform.v1.LogprobsResult.ICandidate} message Candidate message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Candidate.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.token != null && Object.hasOwnProperty.call(message, "token")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.token); + if (message.logProbability != null && Object.hasOwnProperty.call(message, "logProbability")) + writer.uint32(/* id 2, wireType 5 =*/21).float(message.logProbability); + if (message.tokenId != null && Object.hasOwnProperty.call(message, "tokenId")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.tokenId); + return writer; + }; + + /** + * Encodes the specified Candidate message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.LogprobsResult.Candidate.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.LogprobsResult.Candidate + * @static + * @param {google.cloud.aiplatform.v1.LogprobsResult.ICandidate} message Candidate message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Candidate.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Candidate message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.LogprobsResult.Candidate + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.LogprobsResult.Candidate} Candidate + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Candidate.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.v1.LogprobsResult.Candidate(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.token = reader.string(); + break; + } + case 3: { + message.tokenId = reader.int32(); + break; + } + case 2: { + message.logProbability = reader.float(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Candidate message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.LogprobsResult.Candidate + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.LogprobsResult.Candidate} Candidate + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Candidate.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Candidate message. + * @function verify + * @memberof google.cloud.aiplatform.v1.LogprobsResult.Candidate + * @static + * @param {Object.<string,*>} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Candidate.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.token != null && message.hasOwnProperty("token")) { + properties._token = 1; + if (!$util.isString(message.token)) + return "token: string expected"; + } + if (message.tokenId != null && message.hasOwnProperty("tokenId")) { + properties._tokenId = 1; + if (!$util.isInteger(message.tokenId)) + return "tokenId: integer expected"; + } + if (message.logProbability != null && message.hasOwnProperty("logProbability")) { + properties._logProbability = 1; + if (typeof message.logProbability !== "number") + return "logProbability: number expected"; + } + return null; + }; + + /** + * Creates a Candidate message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.LogprobsResult.Candidate + * @static + * @param {Object.<string,*>} object Plain object + * @returns {google.cloud.aiplatform.v1.LogprobsResult.Candidate} Candidate + */ + Candidate.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.LogprobsResult.Candidate) + return object; + var message = new $root.google.cloud.aiplatform.v1.LogprobsResult.Candidate(); + if (object.token != null) + message.token = String(object.token); + if (object.tokenId != null) + message.tokenId = object.tokenId | 0; + if (object.logProbability != null) + message.logProbability = Number(object.logProbability); + return message; + }; + + /** + * Creates a plain object from a Candidate message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.LogprobsResult.Candidate + * @static + * @param {google.cloud.aiplatform.v1.LogprobsResult.Candidate} message Candidate + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.<string,*>} Plain object + */ + Candidate.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.token != null && message.hasOwnProperty("token")) { + object.token = message.token; + if (options.oneofs) + object._token = "token"; + } + if (message.logProbability != null && message.hasOwnProperty("logProbability")) { + object.logProbability = options.json && !isFinite(message.logProbability) ? String(message.logProbability) : message.logProbability; + if (options.oneofs) + object._logProbability = "logProbability"; + } + if (message.tokenId != null && message.hasOwnProperty("tokenId")) { + object.tokenId = message.tokenId; + if (options.oneofs) + object._tokenId = "tokenId"; + } + return object; + }; + + /** + * Converts this Candidate to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.LogprobsResult.Candidate + * @instance + * @returns {Object.<string,*>} JSON object + */ + Candidate.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Candidate + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.LogprobsResult.Candidate + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Candidate.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.LogprobsResult.Candidate"; + }; + + return Candidate; + })(); + + LogprobsResult.TopCandidates = (function() { + + /** + * Properties of a TopCandidates. + * @memberof google.cloud.aiplatform.v1.LogprobsResult + * @interface ITopCandidates + * @property {Array.<google.cloud.aiplatform.v1.LogprobsResult.ICandidate>|null} [candidates] TopCandidates candidates + */ + + /** + * Constructs a new TopCandidates. + * @memberof google.cloud.aiplatform.v1.LogprobsResult + * @classdesc Represents a TopCandidates. + * @implements ITopCandidates + * @constructor + * @param {google.cloud.aiplatform.v1.LogprobsResult.ITopCandidates=} [properties] Properties to set + */ + function TopCandidates(properties) { + this.candidates = []; + 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]]; + } + + /** + * TopCandidates candidates. + * @member {Array.<google.cloud.aiplatform.v1.LogprobsResult.ICandidate>} candidates + * @memberof google.cloud.aiplatform.v1.LogprobsResult.TopCandidates + * @instance + */ + TopCandidates.prototype.candidates = $util.emptyArray; + + /** + * Creates a new TopCandidates instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.LogprobsResult.TopCandidates + * @static + * @param {google.cloud.aiplatform.v1.LogprobsResult.ITopCandidates=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.LogprobsResult.TopCandidates} TopCandidates instance + */ + TopCandidates.create = function create(properties) { + return new TopCandidates(properties); + }; + + /** + * Encodes the specified TopCandidates message. Does not implicitly {@link google.cloud.aiplatform.v1.LogprobsResult.TopCandidates.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.LogprobsResult.TopCandidates + * @static + * @param {google.cloud.aiplatform.v1.LogprobsResult.ITopCandidates} message TopCandidates message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TopCandidates.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.candidates != null && message.candidates.length) + for (var i = 0; i < message.candidates.length; ++i) + $root.google.cloud.aiplatform.v1.LogprobsResult.Candidate.encode(message.candidates[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified TopCandidates message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.LogprobsResult.TopCandidates.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.LogprobsResult.TopCandidates + * @static + * @param {google.cloud.aiplatform.v1.LogprobsResult.ITopCandidates} message TopCandidates message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TopCandidates.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TopCandidates message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.LogprobsResult.TopCandidates + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.LogprobsResult.TopCandidates} TopCandidates + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TopCandidates.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.v1.LogprobsResult.TopCandidates(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.candidates && message.candidates.length)) + message.candidates = []; + message.candidates.push($root.google.cloud.aiplatform.v1.LogprobsResult.Candidate.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TopCandidates message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.LogprobsResult.TopCandidates + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.LogprobsResult.TopCandidates} TopCandidates + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TopCandidates.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TopCandidates message. + * @function verify + * @memberof google.cloud.aiplatform.v1.LogprobsResult.TopCandidates + * @static + * @param {Object.<string,*>} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TopCandidates.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.candidates != null && message.hasOwnProperty("candidates")) { + if (!Array.isArray(message.candidates)) + return "candidates: array expected"; + for (var i = 0; i < message.candidates.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.LogprobsResult.Candidate.verify(message.candidates[i]); + if (error) + return "candidates." + error; + } + } + return null; + }; + + /** + * Creates a TopCandidates message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.LogprobsResult.TopCandidates + * @static + * @param {Object.<string,*>} object Plain object + * @returns {google.cloud.aiplatform.v1.LogprobsResult.TopCandidates} TopCandidates + */ + TopCandidates.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.LogprobsResult.TopCandidates) + return object; + var message = new $root.google.cloud.aiplatform.v1.LogprobsResult.TopCandidates(); + if (object.candidates) { + if (!Array.isArray(object.candidates)) + throw TypeError(".google.cloud.aiplatform.v1.LogprobsResult.TopCandidates.candidates: array expected"); + message.candidates = []; + for (var i = 0; i < object.candidates.length; ++i) { + if (typeof object.candidates[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.LogprobsResult.TopCandidates.candidates: object expected"); + message.candidates[i] = $root.google.cloud.aiplatform.v1.LogprobsResult.Candidate.fromObject(object.candidates[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a TopCandidates message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.LogprobsResult.TopCandidates + * @static + * @param {google.cloud.aiplatform.v1.LogprobsResult.TopCandidates} message TopCandidates + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.<string,*>} Plain object + */ + TopCandidates.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.candidates = []; + if (message.candidates && message.candidates.length) { + object.candidates = []; + for (var j = 0; j < message.candidates.length; ++j) + object.candidates[j] = $root.google.cloud.aiplatform.v1.LogprobsResult.Candidate.toObject(message.candidates[j], options); + } + return object; + }; + + /** + * Converts this TopCandidates to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.LogprobsResult.TopCandidates + * @instance + * @returns {Object.<string,*>} JSON object + */ + TopCandidates.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for TopCandidates + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.LogprobsResult.TopCandidates + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TopCandidates.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.LogprobsResult.TopCandidates"; + }; + + return TopCandidates; + })(); + + return LogprobsResult; + })(); + v1.Segment = (function() { /** @@ -29258,6 +30171,7 @@ * @property {number|Long|null} [maxItems] Schema maxItems * @property {Array.<string>|null} ["enum"] Schema enum * @property {Object.<string,google.cloud.aiplatform.v1.ISchema>|null} [properties] Schema properties + * @property {Array.<string>|null} [propertyOrdering] Schema propertyOrdering * @property {Array.<string>|null} [required] Schema required * @property {number|Long|null} [minProperties] Schema minProperties * @property {number|Long|null} [maxProperties] Schema maxProperties @@ -29267,6 +30181,7 @@ * @property {number|Long|null} [maxLength] Schema maxLength * @property {string|null} [pattern] Schema pattern * @property {google.protobuf.IValue|null} [example] Schema example + * @property {Array.<google.cloud.aiplatform.v1.ISchema>|null} [anyOf] Schema anyOf */ /** @@ -29280,7 +30195,9 @@ function Schema(properties) { this["enum"] = []; this.properties = {}; + this.propertyOrdering = []; this.required = []; + this.anyOf = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -29375,6 +30292,14 @@ */ Schema.prototype.properties = $util.emptyObject; + /** + * Schema propertyOrdering. + * @member {Array.<string>} propertyOrdering + * @memberof google.cloud.aiplatform.v1.Schema + * @instance + */ + Schema.prototype.propertyOrdering = $util.emptyArray; + /** * Schema required. * @member {Array.<string>} required @@ -29447,6 +30372,14 @@ */ Schema.prototype.example = null; + /** + * Schema anyOf. + * @member {Array.<google.cloud.aiplatform.v1.ISchema>} anyOf + * @memberof google.cloud.aiplatform.v1.Schema + * @instance + */ + Schema.prototype.anyOf = $util.emptyArray; + /** * Creates a new Schema instance using the specified properties. * @function create @@ -29494,6 +30427,9 @@ if (message["enum"] != null && message["enum"].length) for (var i = 0; i < message["enum"].length; ++i) writer.uint32(/* id 9, wireType 2 =*/74).string(message["enum"][i]); + if (message.anyOf != null && message.anyOf.length) + for (var i = 0; i < message.anyOf.length; ++i) + $root.google.cloud.aiplatform.v1.Schema.encode(message.anyOf[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); if (message.minProperties != null && Object.hasOwnProperty.call(message, "minProperties")) writer.uint32(/* id 14, wireType 0 =*/112).int64(message.minProperties); if (message.maxProperties != null && Object.hasOwnProperty.call(message, "maxProperties")) @@ -29516,6 +30452,9 @@ $root.google.protobuf.Value.encode(message["default"], writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim(); if (message.title != null && Object.hasOwnProperty.call(message, "title")) writer.uint32(/* id 24, wireType 2 =*/194).string(message.title); + if (message.propertyOrdering != null && message.propertyOrdering.length) + for (var i = 0; i < message.propertyOrdering.length; ++i) + writer.uint32(/* id 25, wireType 2 =*/202).string(message.propertyOrdering[i]); return writer; }; @@ -29615,6 +30554,12 @@ message.properties[key] = value; break; } + case 25: { + if (!(message.propertyOrdering && message.propertyOrdering.length)) + message.propertyOrdering = []; + message.propertyOrdering.push(reader.string()); + break; + } case 5: { if (!(message.required && message.required.length)) message.required = []; @@ -29653,6 +30598,12 @@ message.example = $root.google.protobuf.Value.decode(reader, reader.uint32()); break; } + case 11: { + if (!(message.anyOf && message.anyOf.length)) + message.anyOf = []; + message.anyOf.push($root.google.cloud.aiplatform.v1.Schema.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -29746,6 +30697,13 @@ return "properties." + error; } } + if (message.propertyOrdering != null && message.hasOwnProperty("propertyOrdering")) { + if (!Array.isArray(message.propertyOrdering)) + return "propertyOrdering: array expected"; + for (var i = 0; i < message.propertyOrdering.length; ++i) + if (!$util.isString(message.propertyOrdering[i])) + return "propertyOrdering: string[] expected"; + } if (message.required != null && message.hasOwnProperty("required")) { if (!Array.isArray(message.required)) return "required: array expected"; @@ -29779,6 +30737,15 @@ if (error) return "example." + error; } + if (message.anyOf != null && message.hasOwnProperty("anyOf")) { + if (!Array.isArray(message.anyOf)) + return "anyOf: array expected"; + for (var i = 0; i < message.anyOf.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.Schema.verify(message.anyOf[i]); + if (error) + return "anyOf." + error; + } + } return null; }; @@ -29883,6 +30850,13 @@ message.properties[keys[i]] = $root.google.cloud.aiplatform.v1.Schema.fromObject(object.properties[keys[i]]); } } + if (object.propertyOrdering) { + if (!Array.isArray(object.propertyOrdering)) + throw TypeError(".google.cloud.aiplatform.v1.Schema.propertyOrdering: array expected"); + message.propertyOrdering = []; + for (var i = 0; i < object.propertyOrdering.length; ++i) + message.propertyOrdering[i] = String(object.propertyOrdering[i]); + } if (object.required) { if (!Array.isArray(object.required)) throw TypeError(".google.cloud.aiplatform.v1.Schema.required: array expected"); @@ -29937,6 +30911,16 @@ throw TypeError(".google.cloud.aiplatform.v1.Schema.example: object expected"); message.example = $root.google.protobuf.Value.fromObject(object.example); } + if (object.anyOf) { + if (!Array.isArray(object.anyOf)) + throw TypeError(".google.cloud.aiplatform.v1.Schema.anyOf: array expected"); + message.anyOf = []; + for (var i = 0; i < object.anyOf.length; ++i) { + if (typeof object.anyOf[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.Schema.anyOf: object expected"); + message.anyOf[i] = $root.google.cloud.aiplatform.v1.Schema.fromObject(object.anyOf[i]); + } + } return message; }; @@ -29956,6 +30940,8 @@ if (options.arrays || options.defaults) { object.required = []; object["enum"] = []; + object.anyOf = []; + object.propertyOrdering = []; } if (options.objects || options.defaults) object.properties = {}; @@ -30030,6 +31016,11 @@ for (var j = 0; j < message["enum"].length; ++j) object["enum"][j] = message["enum"][j]; } + if (message.anyOf && message.anyOf.length) { + object.anyOf = []; + for (var j = 0; j < message.anyOf.length; ++j) + object.anyOf[j] = $root.google.cloud.aiplatform.v1.Schema.toObject(message.anyOf[j], options); + } if (message.minProperties != null && message.hasOwnProperty("minProperties")) if (typeof message.minProperties === "number") object.minProperties = options.longs === String ? String(message.minProperties) : message.minProperties; @@ -30070,6 +31061,11 @@ object["default"] = $root.google.protobuf.Value.toObject(message["default"], options); if (message.title != null && message.hasOwnProperty("title")) object.title = message.title; + if (message.propertyOrdering && message.propertyOrdering.length) { + object.propertyOrdering = []; + for (var j = 0; j < message.propertyOrdering.length; ++j) + object.propertyOrdering[j] = message.propertyOrdering[j]; + } return object; }; @@ -182266,6 +183262,7 @@ * @property {Array.<google.cloud.aiplatform.v1.IContent>|null} [contents] CountTokensRequest contents * @property {google.cloud.aiplatform.v1.IContent|null} [systemInstruction] CountTokensRequest systemInstruction * @property {Array.<google.cloud.aiplatform.v1.ITool>|null} [tools] CountTokensRequest tools + * @property {google.cloud.aiplatform.v1.IGenerationConfig|null} [generationConfig] CountTokensRequest generationConfig */ /** @@ -182334,6 +183331,14 @@ */ CountTokensRequest.prototype.tools = $util.emptyArray; + /** + * CountTokensRequest generationConfig. + * @member {google.cloud.aiplatform.v1.IGenerationConfig|null|undefined} generationConfig + * @memberof google.cloud.aiplatform.v1.CountTokensRequest + * @instance + */ + CountTokensRequest.prototype.generationConfig = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -182348,6 +183353,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * CountTokensRequest _generationConfig. + * @member {"generationConfig"|undefined} _generationConfig + * @memberof google.cloud.aiplatform.v1.CountTokensRequest + * @instance + */ + Object.defineProperty(CountTokensRequest.prototype, "_generationConfig", { + get: $util.oneOfGetter($oneOfFields = ["generationConfig"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new CountTokensRequest instance using the specified properties. * @function create @@ -182387,6 +183403,8 @@ if (message.tools != null && message.tools.length) for (var i = 0; i < message.tools.length; ++i) $root.google.cloud.aiplatform.v1.Tool.encode(message.tools[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.generationConfig != null && Object.hasOwnProperty.call(message, "generationConfig")) + $root.google.cloud.aiplatform.v1.GenerationConfig.encode(message.generationConfig, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); return writer; }; @@ -182451,6 +183469,10 @@ message.tools.push($root.google.cloud.aiplatform.v1.Tool.decode(reader, reader.uint32())); break; } + case 7: { + message.generationConfig = $root.google.cloud.aiplatform.v1.GenerationConfig.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -182528,6 +183550,14 @@ return "tools." + error; } } + if (message.generationConfig != null && message.hasOwnProperty("generationConfig")) { + properties._generationConfig = 1; + { + var error = $root.google.cloud.aiplatform.v1.GenerationConfig.verify(message.generationConfig); + if (error) + return "generationConfig." + error; + } + } return null; }; @@ -182582,6 +183612,11 @@ message.tools[i] = $root.google.cloud.aiplatform.v1.Tool.fromObject(object.tools[i]); } } + if (object.generationConfig != null) { + if (typeof object.generationConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1.CountTokensRequest.generationConfig: object expected"); + message.generationConfig = $root.google.cloud.aiplatform.v1.GenerationConfig.fromObject(object.generationConfig); + } return message; }; @@ -182631,6 +183666,11 @@ for (var j = 0; j < message.tools.length; ++j) object.tools[j] = $root.google.cloud.aiplatform.v1.Tool.toObject(message.tools[j], options); } + if (message.generationConfig != null && message.hasOwnProperty("generationConfig")) { + object.generationConfig = $root.google.cloud.aiplatform.v1.GenerationConfig.toObject(message.generationConfig, options); + if (options.oneofs) + object._generationConfig = "generationConfig"; + } return object; }; @@ -182901,6 +183941,7 @@ * @property {google.cloud.aiplatform.v1.IContent|null} [systemInstruction] GenerateContentRequest systemInstruction * @property {Array.<google.cloud.aiplatform.v1.ITool>|null} [tools] GenerateContentRequest tools * @property {google.cloud.aiplatform.v1.IToolConfig|null} [toolConfig] GenerateContentRequest toolConfig + * @property {Object.<string,string>|null} [labels] GenerateContentRequest labels * @property {Array.<google.cloud.aiplatform.v1.ISafetySetting>|null} [safetySettings] GenerateContentRequest safetySettings * @property {google.cloud.aiplatform.v1.IGenerationConfig|null} [generationConfig] GenerateContentRequest generationConfig */ @@ -182916,6 +183957,7 @@ function GenerateContentRequest(properties) { this.contents = []; this.tools = []; + this.labels = {}; this.safetySettings = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) @@ -182963,6 +184005,14 @@ */ GenerateContentRequest.prototype.toolConfig = null; + /** + * GenerateContentRequest labels. + * @member {Object.<string,string>} labels + * @memberof google.cloud.aiplatform.v1.GenerateContentRequest + * @instance + */ + GenerateContentRequest.prototype.labels = $util.emptyObject; + /** * GenerateContentRequest safetySettings. * @member {Array.<google.cloud.aiplatform.v1.ISafetySetting>} safetySettings @@ -183034,6 +184084,9 @@ $root.google.cloud.aiplatform.v1.ToolConfig.encode(message.toolConfig, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); if (message.systemInstruction != null && Object.hasOwnProperty.call(message, "systemInstruction")) $root.google.cloud.aiplatform.v1.Content.encode(message.systemInstruction, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); return writer; }; @@ -183064,7 +184117,7 @@ GenerateContentRequest.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.v1.GenerateContentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GenerateContentRequest(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -183092,6 +184145,29 @@ message.toolConfig = $root.google.cloud.aiplatform.v1.ToolConfig.decode(reader, reader.uint32()); break; } + case 10: { + if (message.labels === $util.emptyObject) + message.labels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.labels[key] = value; + break; + } case 3: { if (!(message.safetySettings && message.safetySettings.length)) message.safetySettings = []; @@ -183172,6 +184248,14 @@ if (error) return "toolConfig." + error; } + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } if (message.safetySettings != null && message.hasOwnProperty("safetySettings")) { if (!Array.isArray(message.safetySettings)) return "safetySettings: array expected"; @@ -183233,6 +184317,13 @@ throw TypeError(".google.cloud.aiplatform.v1.GenerateContentRequest.toolConfig: object expected"); message.toolConfig = $root.google.cloud.aiplatform.v1.ToolConfig.fromObject(object.toolConfig); } + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.aiplatform.v1.GenerateContentRequest.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); + } if (object.safetySettings) { if (!Array.isArray(object.safetySettings)) throw TypeError(".google.cloud.aiplatform.v1.GenerateContentRequest.safetySettings: array expected"); @@ -183269,6 +184360,8 @@ object.safetySettings = []; object.tools = []; } + if (options.objects || options.defaults) + object.labels = {}; if (options.defaults) { object.generationConfig = null; object.model = ""; @@ -183300,6 +184393,12 @@ if (options.oneofs) object._systemInstruction = "systemInstruction"; } + var keys2; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; + } return object; }; @@ -183339,6 +184438,7 @@ * @memberof google.cloud.aiplatform.v1 * @interface IGenerateContentResponse * @property {Array.<google.cloud.aiplatform.v1.ICandidate>|null} [candidates] GenerateContentResponse candidates + * @property {string|null} [modelVersion] GenerateContentResponse modelVersion * @property {google.cloud.aiplatform.v1.GenerateContentResponse.IPromptFeedback|null} [promptFeedback] GenerateContentResponse promptFeedback * @property {google.cloud.aiplatform.v1.GenerateContentResponse.IUsageMetadata|null} [usageMetadata] GenerateContentResponse usageMetadata */ @@ -183367,6 +184467,14 @@ */ GenerateContentResponse.prototype.candidates = $util.emptyArray; + /** + * GenerateContentResponse modelVersion. + * @member {string} modelVersion + * @memberof google.cloud.aiplatform.v1.GenerateContentResponse + * @instance + */ + GenerateContentResponse.prototype.modelVersion = ""; + /** * GenerateContentResponse promptFeedback. * @member {google.cloud.aiplatform.v1.GenerateContentResponse.IPromptFeedback|null|undefined} promptFeedback @@ -183414,6 +184522,8 @@ $root.google.cloud.aiplatform.v1.GenerateContentResponse.PromptFeedback.encode(message.promptFeedback, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.usageMetadata != null && Object.hasOwnProperty.call(message, "usageMetadata")) $root.google.cloud.aiplatform.v1.GenerateContentResponse.UsageMetadata.encode(message.usageMetadata, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.modelVersion != null && Object.hasOwnProperty.call(message, "modelVersion")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.modelVersion); return writer; }; @@ -183454,6 +184564,10 @@ message.candidates.push($root.google.cloud.aiplatform.v1.Candidate.decode(reader, reader.uint32())); break; } + case 11: { + message.modelVersion = reader.string(); + break; + } case 3: { message.promptFeedback = $root.google.cloud.aiplatform.v1.GenerateContentResponse.PromptFeedback.decode(reader, reader.uint32()); break; @@ -183506,6 +184620,9 @@ return "candidates." + error; } } + if (message.modelVersion != null && message.hasOwnProperty("modelVersion")) + if (!$util.isString(message.modelVersion)) + return "modelVersion: string expected"; if (message.promptFeedback != null && message.hasOwnProperty("promptFeedback")) { var error = $root.google.cloud.aiplatform.v1.GenerateContentResponse.PromptFeedback.verify(message.promptFeedback); if (error) @@ -183541,6 +184658,8 @@ message.candidates[i] = $root.google.cloud.aiplatform.v1.Candidate.fromObject(object.candidates[i]); } } + if (object.modelVersion != null) + message.modelVersion = String(object.modelVersion); if (object.promptFeedback != null) { if (typeof object.promptFeedback !== "object") throw TypeError(".google.cloud.aiplatform.v1.GenerateContentResponse.promptFeedback: object expected"); @@ -183572,6 +184691,7 @@ if (options.defaults) { object.promptFeedback = null; object.usageMetadata = null; + object.modelVersion = ""; } if (message.candidates && message.candidates.length) { object.candidates = []; @@ -183582,6 +184702,8 @@ object.promptFeedback = $root.google.cloud.aiplatform.v1.GenerateContentResponse.PromptFeedback.toObject(message.promptFeedback, options); if (message.usageMetadata != null && message.hasOwnProperty("usageMetadata")) object.usageMetadata = $root.google.cloud.aiplatform.v1.GenerateContentResponse.UsageMetadata.toObject(message.usageMetadata, options); + if (message.modelVersion != null && message.hasOwnProperty("modelVersion")) + object.modelVersion = message.modelVersion; return object; }; @@ -306949,6 +308071,669 @@ return JiraSource; })(); + v1beta1.SharePointSources = (function() { + + /** + * Properties of a SharePointSources. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface ISharePointSources + * @property {Array.<google.cloud.aiplatform.v1beta1.SharePointSources.ISharePointSource>|null} [sharePointSources] SharePointSources sharePointSources + */ + + /** + * Constructs a new SharePointSources. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a SharePointSources. + * @implements ISharePointSources + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ISharePointSources=} [properties] Properties to set + */ + function SharePointSources(properties) { + this.sharePointSources = []; + 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]]; + } + + /** + * SharePointSources sharePointSources. + * @member {Array.<google.cloud.aiplatform.v1beta1.SharePointSources.ISharePointSource>} sharePointSources + * @memberof google.cloud.aiplatform.v1beta1.SharePointSources + * @instance + */ + SharePointSources.prototype.sharePointSources = $util.emptyArray; + + /** + * Creates a new SharePointSources instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.SharePointSources + * @static + * @param {google.cloud.aiplatform.v1beta1.ISharePointSources=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.SharePointSources} SharePointSources instance + */ + SharePointSources.create = function create(properties) { + return new SharePointSources(properties); + }; + + /** + * Encodes the specified SharePointSources message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SharePointSources.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.SharePointSources + * @static + * @param {google.cloud.aiplatform.v1beta1.ISharePointSources} message SharePointSources message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SharePointSources.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.sharePointSources != null && message.sharePointSources.length) + for (var i = 0; i < message.sharePointSources.length; ++i) + $root.google.cloud.aiplatform.v1beta1.SharePointSources.SharePointSource.encode(message.sharePointSources[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified SharePointSources message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SharePointSources.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.SharePointSources + * @static + * @param {google.cloud.aiplatform.v1beta1.ISharePointSources} message SharePointSources message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SharePointSources.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SharePointSources message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.SharePointSources + * @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.SharePointSources} SharePointSources + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SharePointSources.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.SharePointSources(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.sharePointSources && message.sharePointSources.length)) + message.sharePointSources = []; + message.sharePointSources.push($root.google.cloud.aiplatform.v1beta1.SharePointSources.SharePointSource.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SharePointSources message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.SharePointSources + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.SharePointSources} SharePointSources + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SharePointSources.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SharePointSources message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.SharePointSources + * @static + * @param {Object.<string,*>} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SharePointSources.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.sharePointSources != null && message.hasOwnProperty("sharePointSources")) { + if (!Array.isArray(message.sharePointSources)) + return "sharePointSources: array expected"; + for (var i = 0; i < message.sharePointSources.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.SharePointSources.SharePointSource.verify(message.sharePointSources[i]); + if (error) + return "sharePointSources." + error; + } + } + return null; + }; + + /** + * Creates a SharePointSources message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.SharePointSources + * @static + * @param {Object.<string,*>} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.SharePointSources} SharePointSources + */ + SharePointSources.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.SharePointSources) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.SharePointSources(); + if (object.sharePointSources) { + if (!Array.isArray(object.sharePointSources)) + throw TypeError(".google.cloud.aiplatform.v1beta1.SharePointSources.sharePointSources: array expected"); + message.sharePointSources = []; + for (var i = 0; i < object.sharePointSources.length; ++i) { + if (typeof object.sharePointSources[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.SharePointSources.sharePointSources: object expected"); + message.sharePointSources[i] = $root.google.cloud.aiplatform.v1beta1.SharePointSources.SharePointSource.fromObject(object.sharePointSources[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a SharePointSources message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.SharePointSources + * @static + * @param {google.cloud.aiplatform.v1beta1.SharePointSources} message SharePointSources + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.<string,*>} Plain object + */ + SharePointSources.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.sharePointSources = []; + if (message.sharePointSources && message.sharePointSources.length) { + object.sharePointSources = []; + for (var j = 0; j < message.sharePointSources.length; ++j) + object.sharePointSources[j] = $root.google.cloud.aiplatform.v1beta1.SharePointSources.SharePointSource.toObject(message.sharePointSources[j], options); + } + return object; + }; + + /** + * Converts this SharePointSources to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.SharePointSources + * @instance + * @returns {Object.<string,*>} JSON object + */ + SharePointSources.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SharePointSources + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.SharePointSources + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SharePointSources.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.SharePointSources"; + }; + + SharePointSources.SharePointSource = (function() { + + /** + * Properties of a SharePointSource. + * @memberof google.cloud.aiplatform.v1beta1.SharePointSources + * @interface ISharePointSource + * @property {string|null} [sharepointFolderPath] SharePointSource sharepointFolderPath + * @property {string|null} [sharepointFolderId] SharePointSource sharepointFolderId + * @property {string|null} [driveName] SharePointSource driveName + * @property {string|null} [driveId] SharePointSource driveId + * @property {string|null} [clientId] SharePointSource clientId + * @property {google.cloud.aiplatform.v1beta1.ApiAuth.IApiKeyConfig|null} [clientSecret] SharePointSource clientSecret + * @property {string|null} [tenantId] SharePointSource tenantId + * @property {string|null} [sharepointSiteName] SharePointSource sharepointSiteName + * @property {string|null} [fileId] SharePointSource fileId + */ + + /** + * Constructs a new SharePointSource. + * @memberof google.cloud.aiplatform.v1beta1.SharePointSources + * @classdesc Represents a SharePointSource. + * @implements ISharePointSource + * @constructor + * @param {google.cloud.aiplatform.v1beta1.SharePointSources.ISharePointSource=} [properties] Properties to set + */ + function SharePointSource(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]]; + } + + /** + * SharePointSource sharepointFolderPath. + * @member {string|null|undefined} sharepointFolderPath + * @memberof google.cloud.aiplatform.v1beta1.SharePointSources.SharePointSource + * @instance + */ + SharePointSource.prototype.sharepointFolderPath = null; + + /** + * SharePointSource sharepointFolderId. + * @member {string|null|undefined} sharepointFolderId + * @memberof google.cloud.aiplatform.v1beta1.SharePointSources.SharePointSource + * @instance + */ + SharePointSource.prototype.sharepointFolderId = null; + + /** + * SharePointSource driveName. + * @member {string|null|undefined} driveName + * @memberof google.cloud.aiplatform.v1beta1.SharePointSources.SharePointSource + * @instance + */ + SharePointSource.prototype.driveName = null; + + /** + * SharePointSource driveId. + * @member {string|null|undefined} driveId + * @memberof google.cloud.aiplatform.v1beta1.SharePointSources.SharePointSource + * @instance + */ + SharePointSource.prototype.driveId = null; + + /** + * SharePointSource clientId. + * @member {string} clientId + * @memberof google.cloud.aiplatform.v1beta1.SharePointSources.SharePointSource + * @instance + */ + SharePointSource.prototype.clientId = ""; + + /** + * SharePointSource clientSecret. + * @member {google.cloud.aiplatform.v1beta1.ApiAuth.IApiKeyConfig|null|undefined} clientSecret + * @memberof google.cloud.aiplatform.v1beta1.SharePointSources.SharePointSource + * @instance + */ + SharePointSource.prototype.clientSecret = null; + + /** + * SharePointSource tenantId. + * @member {string} tenantId + * @memberof google.cloud.aiplatform.v1beta1.SharePointSources.SharePointSource + * @instance + */ + SharePointSource.prototype.tenantId = ""; + + /** + * SharePointSource sharepointSiteName. + * @member {string} sharepointSiteName + * @memberof google.cloud.aiplatform.v1beta1.SharePointSources.SharePointSource + * @instance + */ + SharePointSource.prototype.sharepointSiteName = ""; + + /** + * SharePointSource fileId. + * @member {string} fileId + * @memberof google.cloud.aiplatform.v1beta1.SharePointSources.SharePointSource + * @instance + */ + SharePointSource.prototype.fileId = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * SharePointSource folderSource. + * @member {"sharepointFolderPath"|"sharepointFolderId"|undefined} folderSource + * @memberof google.cloud.aiplatform.v1beta1.SharePointSources.SharePointSource + * @instance + */ + Object.defineProperty(SharePointSource.prototype, "folderSource", { + get: $util.oneOfGetter($oneOfFields = ["sharepointFolderPath", "sharepointFolderId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SharePointSource driveSource. + * @member {"driveName"|"driveId"|undefined} driveSource + * @memberof google.cloud.aiplatform.v1beta1.SharePointSources.SharePointSource + * @instance + */ + Object.defineProperty(SharePointSource.prototype, "driveSource", { + get: $util.oneOfGetter($oneOfFields = ["driveName", "driveId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new SharePointSource instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.SharePointSources.SharePointSource + * @static + * @param {google.cloud.aiplatform.v1beta1.SharePointSources.ISharePointSource=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.SharePointSources.SharePointSource} SharePointSource instance + */ + SharePointSource.create = function create(properties) { + return new SharePointSource(properties); + }; + + /** + * Encodes the specified SharePointSource message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SharePointSources.SharePointSource.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.SharePointSources.SharePointSource + * @static + * @param {google.cloud.aiplatform.v1beta1.SharePointSources.ISharePointSource} message SharePointSource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SharePointSource.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.clientId != null && Object.hasOwnProperty.call(message, "clientId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.clientId); + if (message.clientSecret != null && Object.hasOwnProperty.call(message, "clientSecret")) + $root.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig.encode(message.clientSecret, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.tenantId != null && Object.hasOwnProperty.call(message, "tenantId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.tenantId); + if (message.sharepointSiteName != null && Object.hasOwnProperty.call(message, "sharepointSiteName")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.sharepointSiteName); + if (message.sharepointFolderPath != null && Object.hasOwnProperty.call(message, "sharepointFolderPath")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.sharepointFolderPath); + if (message.sharepointFolderId != null && Object.hasOwnProperty.call(message, "sharepointFolderId")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.sharepointFolderId); + if (message.driveName != null && Object.hasOwnProperty.call(message, "driveName")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.driveName); + if (message.driveId != null && Object.hasOwnProperty.call(message, "driveId")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.driveId); + if (message.fileId != null && Object.hasOwnProperty.call(message, "fileId")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.fileId); + return writer; + }; + + /** + * Encodes the specified SharePointSource message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SharePointSources.SharePointSource.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.SharePointSources.SharePointSource + * @static + * @param {google.cloud.aiplatform.v1beta1.SharePointSources.ISharePointSource} message SharePointSource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SharePointSource.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SharePointSource message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.SharePointSources.SharePointSource + * @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.SharePointSources.SharePointSource} SharePointSource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SharePointSource.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.SharePointSources.SharePointSource(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 5: { + message.sharepointFolderPath = reader.string(); + break; + } + case 6: { + message.sharepointFolderId = reader.string(); + break; + } + case 7: { + message.driveName = reader.string(); + break; + } + case 8: { + message.driveId = reader.string(); + break; + } + case 1: { + message.clientId = reader.string(); + break; + } + case 2: { + message.clientSecret = $root.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig.decode(reader, reader.uint32()); + break; + } + case 3: { + message.tenantId = reader.string(); + break; + } + case 4: { + message.sharepointSiteName = reader.string(); + break; + } + case 9: { + message.fileId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SharePointSource message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.SharePointSources.SharePointSource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.SharePointSources.SharePointSource} SharePointSource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SharePointSource.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SharePointSource message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.SharePointSources.SharePointSource + * @static + * @param {Object.<string,*>} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SharePointSource.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.sharepointFolderPath != null && message.hasOwnProperty("sharepointFolderPath")) { + properties.folderSource = 1; + if (!$util.isString(message.sharepointFolderPath)) + return "sharepointFolderPath: string expected"; + } + if (message.sharepointFolderId != null && message.hasOwnProperty("sharepointFolderId")) { + if (properties.folderSource === 1) + return "folderSource: multiple values"; + properties.folderSource = 1; + if (!$util.isString(message.sharepointFolderId)) + return "sharepointFolderId: string expected"; + } + if (message.driveName != null && message.hasOwnProperty("driveName")) { + properties.driveSource = 1; + if (!$util.isString(message.driveName)) + return "driveName: string expected"; + } + if (message.driveId != null && message.hasOwnProperty("driveId")) { + if (properties.driveSource === 1) + return "driveSource: multiple values"; + properties.driveSource = 1; + if (!$util.isString(message.driveId)) + return "driveId: string expected"; + } + if (message.clientId != null && message.hasOwnProperty("clientId")) + if (!$util.isString(message.clientId)) + return "clientId: string expected"; + if (message.clientSecret != null && message.hasOwnProperty("clientSecret")) { + var error = $root.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig.verify(message.clientSecret); + if (error) + return "clientSecret." + error; + } + if (message.tenantId != null && message.hasOwnProperty("tenantId")) + if (!$util.isString(message.tenantId)) + return "tenantId: string expected"; + if (message.sharepointSiteName != null && message.hasOwnProperty("sharepointSiteName")) + if (!$util.isString(message.sharepointSiteName)) + return "sharepointSiteName: string expected"; + if (message.fileId != null && message.hasOwnProperty("fileId")) + if (!$util.isString(message.fileId)) + return "fileId: string expected"; + return null; + }; + + /** + * Creates a SharePointSource message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.SharePointSources.SharePointSource + * @static + * @param {Object.<string,*>} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.SharePointSources.SharePointSource} SharePointSource + */ + SharePointSource.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.SharePointSources.SharePointSource) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.SharePointSources.SharePointSource(); + if (object.sharepointFolderPath != null) + message.sharepointFolderPath = String(object.sharepointFolderPath); + if (object.sharepointFolderId != null) + message.sharepointFolderId = String(object.sharepointFolderId); + if (object.driveName != null) + message.driveName = String(object.driveName); + if (object.driveId != null) + message.driveId = String(object.driveId); + if (object.clientId != null) + message.clientId = String(object.clientId); + if (object.clientSecret != null) { + if (typeof object.clientSecret !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.SharePointSources.SharePointSource.clientSecret: object expected"); + message.clientSecret = $root.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig.fromObject(object.clientSecret); + } + if (object.tenantId != null) + message.tenantId = String(object.tenantId); + if (object.sharepointSiteName != null) + message.sharepointSiteName = String(object.sharepointSiteName); + if (object.fileId != null) + message.fileId = String(object.fileId); + return message; + }; + + /** + * Creates a plain object from a SharePointSource message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.SharePointSources.SharePointSource + * @static + * @param {google.cloud.aiplatform.v1beta1.SharePointSources.SharePointSource} message SharePointSource + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.<string,*>} Plain object + */ + SharePointSource.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.clientId = ""; + object.clientSecret = null; + object.tenantId = ""; + object.sharepointSiteName = ""; + object.fileId = ""; + } + if (message.clientId != null && message.hasOwnProperty("clientId")) + object.clientId = message.clientId; + if (message.clientSecret != null && message.hasOwnProperty("clientSecret")) + object.clientSecret = $root.google.cloud.aiplatform.v1beta1.ApiAuth.ApiKeyConfig.toObject(message.clientSecret, options); + if (message.tenantId != null && message.hasOwnProperty("tenantId")) + object.tenantId = message.tenantId; + if (message.sharepointSiteName != null && message.hasOwnProperty("sharepointSiteName")) + object.sharepointSiteName = message.sharepointSiteName; + if (message.sharepointFolderPath != null && message.hasOwnProperty("sharepointFolderPath")) { + object.sharepointFolderPath = message.sharepointFolderPath; + if (options.oneofs) + object.folderSource = "sharepointFolderPath"; + } + if (message.sharepointFolderId != null && message.hasOwnProperty("sharepointFolderId")) { + object.sharepointFolderId = message.sharepointFolderId; + if (options.oneofs) + object.folderSource = "sharepointFolderId"; + } + if (message.driveName != null && message.hasOwnProperty("driveName")) { + object.driveName = message.driveName; + if (options.oneofs) + object.driveSource = "driveName"; + } + if (message.driveId != null && message.hasOwnProperty("driveId")) { + object.driveId = message.driveId; + if (options.oneofs) + object.driveSource = "driveId"; + } + if (message.fileId != null && message.hasOwnProperty("fileId")) + object.fileId = message.fileId; + return object; + }; + + /** + * Converts this SharePointSource to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.SharePointSources.SharePointSource + * @instance + * @returns {Object.<string,*>} JSON object + */ + SharePointSource.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SharePointSource + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.SharePointSources.SharePointSource + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SharePointSource.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.SharePointSources.SharePointSource"; + }; + + return SharePointSource; + })(); + + return SharePointSources; + })(); + /** * JobState enum. * @name google.cloud.aiplatform.v1beta1.JobState @@ -322388,6 +324173,7 @@ * @property {number} HARM_CATEGORY_DANGEROUS_CONTENT=2 HARM_CATEGORY_DANGEROUS_CONTENT value * @property {number} HARM_CATEGORY_HARASSMENT=3 HARM_CATEGORY_HARASSMENT value * @property {number} HARM_CATEGORY_SEXUALLY_EXPLICIT=4 HARM_CATEGORY_SEXUALLY_EXPLICIT value + * @property {number} HARM_CATEGORY_CIVIC_INTEGRITY=5 HARM_CATEGORY_CIVIC_INTEGRITY value */ v1beta1.HarmCategory = (function() { var valuesById = {}, values = Object.create(valuesById); @@ -322396,6 +324182,7 @@ values[valuesById[2] = "HARM_CATEGORY_DANGEROUS_CONTENT"] = 2; values[valuesById[3] = "HARM_CATEGORY_HARASSMENT"] = 3; values[valuesById[4] = "HARM_CATEGORY_SEXUALLY_EXPLICIT"] = 4; + values[valuesById[5] = "HARM_CATEGORY_CIVIC_INTEGRITY"] = 5; return values; })(); @@ -323764,6 +325551,8 @@ * @property {number|null} [candidateCount] GenerationConfig candidateCount * @property {number|null} [maxOutputTokens] GenerationConfig maxOutputTokens * @property {Array.<string>|null} [stopSequences] GenerationConfig stopSequences + * @property {boolean|null} [responseLogprobs] GenerationConfig responseLogprobs + * @property {number|null} [logprobs] GenerationConfig logprobs * @property {number|null} [presencePenalty] GenerationConfig presencePenalty * @property {number|null} [frequencyPenalty] GenerationConfig frequencyPenalty * @property {number|null} [seed] GenerationConfig seed @@ -323836,6 +325625,22 @@ */ GenerationConfig.prototype.stopSequences = $util.emptyArray; + /** + * GenerationConfig responseLogprobs. + * @member {boolean|null|undefined} responseLogprobs + * @memberof google.cloud.aiplatform.v1beta1.GenerationConfig + * @instance + */ + GenerationConfig.prototype.responseLogprobs = null; + + /** + * GenerationConfig logprobs. + * @member {number|null|undefined} logprobs + * @memberof google.cloud.aiplatform.v1beta1.GenerationConfig + * @instance + */ + GenerationConfig.prototype.logprobs = null; + /** * GenerationConfig presencePenalty. * @member {number|null|undefined} presencePenalty @@ -323942,6 +325747,28 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * GenerationConfig _responseLogprobs. + * @member {"responseLogprobs"|undefined} _responseLogprobs + * @memberof google.cloud.aiplatform.v1beta1.GenerationConfig + * @instance + */ + Object.defineProperty(GenerationConfig.prototype, "_responseLogprobs", { + get: $util.oneOfGetter($oneOfFields = ["responseLogprobs"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * GenerationConfig _logprobs. + * @member {"logprobs"|undefined} _logprobs + * @memberof google.cloud.aiplatform.v1beta1.GenerationConfig + * @instance + */ + Object.defineProperty(GenerationConfig.prototype, "_logprobs", { + get: $util.oneOfGetter($oneOfFields = ["logprobs"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * GenerationConfig _presencePenalty. * @member {"presencePenalty"|undefined} _presencePenalty @@ -324034,6 +325861,8 @@ if (message.stopSequences != null && message.stopSequences.length) for (var i = 0; i < message.stopSequences.length; ++i) writer.uint32(/* id 6, wireType 2 =*/50).string(message.stopSequences[i]); + if (message.logprobs != null && Object.hasOwnProperty.call(message, "logprobs")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.logprobs); if (message.presencePenalty != null && Object.hasOwnProperty.call(message, "presencePenalty")) writer.uint32(/* id 8, wireType 5 =*/69).float(message.presencePenalty); if (message.frequencyPenalty != null && Object.hasOwnProperty.call(message, "frequencyPenalty")) @@ -324046,6 +325875,8 @@ $root.google.cloud.aiplatform.v1beta1.Schema.encode(message.responseSchema, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); if (message.routingConfig != null && Object.hasOwnProperty.call(message, "routingConfig")) $root.google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.encode(message.routingConfig, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); + if (message.responseLogprobs != null && Object.hasOwnProperty.call(message, "responseLogprobs")) + writer.uint32(/* id 18, wireType 0 =*/144).bool(message.responseLogprobs); return writer; }; @@ -324106,6 +325937,14 @@ message.stopSequences.push(reader.string()); break; } + case 18: { + message.responseLogprobs = reader.bool(); + break; + } + case 7: { + message.logprobs = reader.int32(); + break; + } case 8: { message.presencePenalty = reader.float(); break; @@ -324198,6 +326037,16 @@ if (!$util.isString(message.stopSequences[i])) return "stopSequences: string[] expected"; } + if (message.responseLogprobs != null && message.hasOwnProperty("responseLogprobs")) { + properties._responseLogprobs = 1; + if (typeof message.responseLogprobs !== "boolean") + return "responseLogprobs: boolean expected"; + } + if (message.logprobs != null && message.hasOwnProperty("logprobs")) { + properties._logprobs = 1; + if (!$util.isInteger(message.logprobs)) + return "logprobs: integer expected"; + } if (message.presencePenalty != null && message.hasOwnProperty("presencePenalty")) { properties._presencePenalty = 1; if (typeof message.presencePenalty !== "number") @@ -324264,6 +326113,10 @@ for (var i = 0; i < object.stopSequences.length; ++i) message.stopSequences[i] = String(object.stopSequences[i]); } + if (object.responseLogprobs != null) + message.responseLogprobs = Boolean(object.responseLogprobs); + if (object.logprobs != null) + message.logprobs = object.logprobs | 0; if (object.presencePenalty != null) message.presencePenalty = Number(object.presencePenalty); if (object.frequencyPenalty != null) @@ -324332,6 +326185,11 @@ for (var j = 0; j < message.stopSequences.length; ++j) object.stopSequences[j] = message.stopSequences[j]; } + if (message.logprobs != null && message.hasOwnProperty("logprobs")) { + object.logprobs = message.logprobs; + if (options.oneofs) + object._logprobs = "logprobs"; + } if (message.presencePenalty != null && message.hasOwnProperty("presencePenalty")) { object.presencePenalty = options.json && !isFinite(message.presencePenalty) ? String(message.presencePenalty) : message.presencePenalty; if (options.oneofs) @@ -324359,6 +326217,11 @@ if (options.oneofs) object._routingConfig = "routingConfig"; } + if (message.responseLogprobs != null && message.hasOwnProperty("responseLogprobs")) { + object.responseLogprobs = message.responseLogprobs; + if (options.oneofs) + object._responseLogprobs = "responseLogprobs"; + } return object; }; @@ -325312,6 +327175,7 @@ case 2: case 3: case 4: + case 5: break; } if (message.threshold != null && message.hasOwnProperty("threshold")) @@ -325323,6 +327187,7 @@ case 2: case 3: case 4: + case 5: break; } if (message.method != null && message.hasOwnProperty("method")) @@ -325376,6 +327241,10 @@ case 4: message.category = 4; break; + case "HARM_CATEGORY_CIVIC_INTEGRITY": + case 5: + message.category = 5; + break; } switch (object.threshold) { default: @@ -325404,6 +327273,10 @@ case 4: message.threshold = 4; break; + case "OFF": + case 5: + message.threshold = 5; + break; } switch (object.method) { default: @@ -325490,6 +327363,7 @@ * @property {number} BLOCK_MEDIUM_AND_ABOVE=2 BLOCK_MEDIUM_AND_ABOVE value * @property {number} BLOCK_ONLY_HIGH=3 BLOCK_ONLY_HIGH value * @property {number} BLOCK_NONE=4 BLOCK_NONE value + * @property {number} OFF=5 OFF value */ SafetySetting.HarmBlockThreshold = (function() { var valuesById = {}, values = Object.create(valuesById); @@ -325498,6 +327372,7 @@ values[valuesById[2] = "BLOCK_MEDIUM_AND_ABOVE"] = 2; values[valuesById[3] = "BLOCK_ONLY_HIGH"] = 3; values[valuesById[4] = "BLOCK_NONE"] = 4; + values[valuesById[5] = "OFF"] = 5; return values; })(); @@ -325735,6 +327610,7 @@ case 2: case 3: case 4: + case 5: break; } if (message.probability != null && message.hasOwnProperty("probability")) @@ -325810,6 +327686,10 @@ case 4: message.category = 4; break; + case "HARM_CATEGORY_CIVIC_INTEGRITY": + case 5: + message.category = 5; + break; } switch (object.probability) { default: @@ -326538,6 +328418,7 @@ * @property {number|null} [index] Candidate index * @property {google.cloud.aiplatform.v1beta1.IContent|null} [content] Candidate content * @property {number|null} [avgLogprobs] Candidate avgLogprobs + * @property {google.cloud.aiplatform.v1beta1.ILogprobsResult|null} [logprobsResult] Candidate logprobsResult * @property {google.cloud.aiplatform.v1beta1.Candidate.FinishReason|null} [finishReason] Candidate finishReason * @property {Array.<google.cloud.aiplatform.v1beta1.ISafetyRating>|null} [safetyRatings] Candidate safetyRatings * @property {string|null} [finishMessage] Candidate finishMessage @@ -326585,6 +328466,14 @@ */ Candidate.prototype.avgLogprobs = 0; + /** + * Candidate logprobsResult. + * @member {google.cloud.aiplatform.v1beta1.ILogprobsResult|null|undefined} logprobsResult + * @memberof google.cloud.aiplatform.v1beta1.Candidate + * @instance + */ + Candidate.prototype.logprobsResult = null; + /** * Candidate finishReason. * @member {google.cloud.aiplatform.v1beta1.Candidate.FinishReason} finishReason @@ -326680,6 +328569,8 @@ $root.google.cloud.aiplatform.v1beta1.GroundingMetadata.encode(message.groundingMetadata, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); if (message.avgLogprobs != null && Object.hasOwnProperty.call(message, "avgLogprobs")) writer.uint32(/* id 9, wireType 1 =*/73).double(message.avgLogprobs); + if (message.logprobsResult != null && Object.hasOwnProperty.call(message, "logprobsResult")) + $root.google.cloud.aiplatform.v1beta1.LogprobsResult.encode(message.logprobsResult, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); return writer; }; @@ -326726,6 +328617,10 @@ message.avgLogprobs = reader.double(); break; } + case 10: { + message.logprobsResult = $root.google.cloud.aiplatform.v1beta1.LogprobsResult.decode(reader, reader.uint32()); + break; + } case 3: { message.finishReason = reader.int32(); break; @@ -326795,6 +328690,11 @@ if (message.avgLogprobs != null && message.hasOwnProperty("avgLogprobs")) if (typeof message.avgLogprobs !== "number") return "avgLogprobs: number expected"; + if (message.logprobsResult != null && message.hasOwnProperty("logprobsResult")) { + var error = $root.google.cloud.aiplatform.v1beta1.LogprobsResult.verify(message.logprobsResult); + if (error) + return "logprobsResult." + error; + } if (message.finishReason != null && message.hasOwnProperty("finishReason")) switch (message.finishReason) { default: @@ -326859,6 +328759,11 @@ } if (object.avgLogprobs != null) message.avgLogprobs = Number(object.avgLogprobs); + if (object.logprobsResult != null) { + if (typeof object.logprobsResult !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Candidate.logprobsResult: object expected"); + message.logprobsResult = $root.google.cloud.aiplatform.v1beta1.LogprobsResult.fromObject(object.logprobsResult); + } switch (object.finishReason) { default: if (typeof object.finishReason === "number") { @@ -326954,6 +328859,7 @@ object.citationMetadata = null; object.groundingMetadata = null; object.avgLogprobs = 0; + object.logprobsResult = null; } if (message.index != null && message.hasOwnProperty("index")) object.index = message.index; @@ -326977,6 +328883,8 @@ object.groundingMetadata = $root.google.cloud.aiplatform.v1beta1.GroundingMetadata.toObject(message.groundingMetadata, options); if (message.avgLogprobs != null && message.hasOwnProperty("avgLogprobs")) object.avgLogprobs = options.json && !isFinite(message.avgLogprobs) ? String(message.avgLogprobs) : message.avgLogprobs; + if (message.logprobsResult != null && message.hasOwnProperty("logprobsResult")) + object.logprobsResult = $root.google.cloud.aiplatform.v1beta1.LogprobsResult.toObject(message.logprobsResult, options); return object; }; @@ -327039,6 +328947,796 @@ return Candidate; })(); + v1beta1.LogprobsResult = (function() { + + /** + * Properties of a LogprobsResult. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface ILogprobsResult + * @property {Array.<google.cloud.aiplatform.v1beta1.LogprobsResult.ITopCandidates>|null} [topCandidates] LogprobsResult topCandidates + * @property {Array.<google.cloud.aiplatform.v1beta1.LogprobsResult.ICandidate>|null} [chosenCandidates] LogprobsResult chosenCandidates + */ + + /** + * Constructs a new LogprobsResult. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a LogprobsResult. + * @implements ILogprobsResult + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ILogprobsResult=} [properties] Properties to set + */ + function LogprobsResult(properties) { + this.topCandidates = []; + this.chosenCandidates = []; + 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]]; + } + + /** + * LogprobsResult topCandidates. + * @member {Array.<google.cloud.aiplatform.v1beta1.LogprobsResult.ITopCandidates>} topCandidates + * @memberof google.cloud.aiplatform.v1beta1.LogprobsResult + * @instance + */ + LogprobsResult.prototype.topCandidates = $util.emptyArray; + + /** + * LogprobsResult chosenCandidates. + * @member {Array.<google.cloud.aiplatform.v1beta1.LogprobsResult.ICandidate>} chosenCandidates + * @memberof google.cloud.aiplatform.v1beta1.LogprobsResult + * @instance + */ + LogprobsResult.prototype.chosenCandidates = $util.emptyArray; + + /** + * Creates a new LogprobsResult instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.LogprobsResult + * @static + * @param {google.cloud.aiplatform.v1beta1.ILogprobsResult=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.LogprobsResult} LogprobsResult instance + */ + LogprobsResult.create = function create(properties) { + return new LogprobsResult(properties); + }; + + /** + * Encodes the specified LogprobsResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.LogprobsResult.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.LogprobsResult + * @static + * @param {google.cloud.aiplatform.v1beta1.ILogprobsResult} message LogprobsResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LogprobsResult.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.topCandidates != null && message.topCandidates.length) + for (var i = 0; i < message.topCandidates.length; ++i) + $root.google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates.encode(message.topCandidates[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.chosenCandidates != null && message.chosenCandidates.length) + for (var i = 0; i < message.chosenCandidates.length; ++i) + $root.google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate.encode(message.chosenCandidates[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified LogprobsResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.LogprobsResult.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.LogprobsResult + * @static + * @param {google.cloud.aiplatform.v1beta1.ILogprobsResult} message LogprobsResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LogprobsResult.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a LogprobsResult message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.LogprobsResult + * @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.LogprobsResult} LogprobsResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LogprobsResult.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.LogprobsResult(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.topCandidates && message.topCandidates.length)) + message.topCandidates = []; + message.topCandidates.push($root.google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates.decode(reader, reader.uint32())); + break; + } + case 2: { + if (!(message.chosenCandidates && message.chosenCandidates.length)) + message.chosenCandidates = []; + message.chosenCandidates.push($root.google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a LogprobsResult message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.LogprobsResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.LogprobsResult} LogprobsResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LogprobsResult.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a LogprobsResult message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.LogprobsResult + * @static + * @param {Object.<string,*>} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LogprobsResult.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.topCandidates != null && message.hasOwnProperty("topCandidates")) { + if (!Array.isArray(message.topCandidates)) + return "topCandidates: array expected"; + for (var i = 0; i < message.topCandidates.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates.verify(message.topCandidates[i]); + if (error) + return "topCandidates." + error; + } + } + if (message.chosenCandidates != null && message.hasOwnProperty("chosenCandidates")) { + if (!Array.isArray(message.chosenCandidates)) + return "chosenCandidates: array expected"; + for (var i = 0; i < message.chosenCandidates.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate.verify(message.chosenCandidates[i]); + if (error) + return "chosenCandidates." + error; + } + } + return null; + }; + + /** + * Creates a LogprobsResult message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.LogprobsResult + * @static + * @param {Object.<string,*>} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.LogprobsResult} LogprobsResult + */ + LogprobsResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.LogprobsResult) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.LogprobsResult(); + if (object.topCandidates) { + if (!Array.isArray(object.topCandidates)) + throw TypeError(".google.cloud.aiplatform.v1beta1.LogprobsResult.topCandidates: array expected"); + message.topCandidates = []; + for (var i = 0; i < object.topCandidates.length; ++i) { + if (typeof object.topCandidates[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.LogprobsResult.topCandidates: object expected"); + message.topCandidates[i] = $root.google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates.fromObject(object.topCandidates[i]); + } + } + if (object.chosenCandidates) { + if (!Array.isArray(object.chosenCandidates)) + throw TypeError(".google.cloud.aiplatform.v1beta1.LogprobsResult.chosenCandidates: array expected"); + message.chosenCandidates = []; + for (var i = 0; i < object.chosenCandidates.length; ++i) { + if (typeof object.chosenCandidates[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.LogprobsResult.chosenCandidates: object expected"); + message.chosenCandidates[i] = $root.google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate.fromObject(object.chosenCandidates[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a LogprobsResult message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.LogprobsResult + * @static + * @param {google.cloud.aiplatform.v1beta1.LogprobsResult} message LogprobsResult + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.<string,*>} Plain object + */ + LogprobsResult.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.topCandidates = []; + object.chosenCandidates = []; + } + if (message.topCandidates && message.topCandidates.length) { + object.topCandidates = []; + for (var j = 0; j < message.topCandidates.length; ++j) + object.topCandidates[j] = $root.google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates.toObject(message.topCandidates[j], options); + } + if (message.chosenCandidates && message.chosenCandidates.length) { + object.chosenCandidates = []; + for (var j = 0; j < message.chosenCandidates.length; ++j) + object.chosenCandidates[j] = $root.google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate.toObject(message.chosenCandidates[j], options); + } + return object; + }; + + /** + * Converts this LogprobsResult to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.LogprobsResult + * @instance + * @returns {Object.<string,*>} JSON object + */ + LogprobsResult.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for LogprobsResult + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.LogprobsResult + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + LogprobsResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.LogprobsResult"; + }; + + LogprobsResult.Candidate = (function() { + + /** + * Properties of a Candidate. + * @memberof google.cloud.aiplatform.v1beta1.LogprobsResult + * @interface ICandidate + * @property {string|null} [token] Candidate token + * @property {number|null} [tokenId] Candidate tokenId + * @property {number|null} [logProbability] Candidate logProbability + */ + + /** + * Constructs a new Candidate. + * @memberof google.cloud.aiplatform.v1beta1.LogprobsResult + * @classdesc Represents a Candidate. + * @implements ICandidate + * @constructor + * @param {google.cloud.aiplatform.v1beta1.LogprobsResult.ICandidate=} [properties] Properties to set + */ + function Candidate(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]]; + } + + /** + * Candidate token. + * @member {string|null|undefined} token + * @memberof google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate + * @instance + */ + Candidate.prototype.token = null; + + /** + * Candidate tokenId. + * @member {number|null|undefined} tokenId + * @memberof google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate + * @instance + */ + Candidate.prototype.tokenId = null; + + /** + * Candidate logProbability. + * @member {number|null|undefined} logProbability + * @memberof google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate + * @instance + */ + Candidate.prototype.logProbability = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Candidate _token. + * @member {"token"|undefined} _token + * @memberof google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate + * @instance + */ + Object.defineProperty(Candidate.prototype, "_token", { + get: $util.oneOfGetter($oneOfFields = ["token"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Candidate _tokenId. + * @member {"tokenId"|undefined} _tokenId + * @memberof google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate + * @instance + */ + Object.defineProperty(Candidate.prototype, "_tokenId", { + get: $util.oneOfGetter($oneOfFields = ["tokenId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Candidate _logProbability. + * @member {"logProbability"|undefined} _logProbability + * @memberof google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate + * @instance + */ + Object.defineProperty(Candidate.prototype, "_logProbability", { + get: $util.oneOfGetter($oneOfFields = ["logProbability"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Candidate instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate + * @static + * @param {google.cloud.aiplatform.v1beta1.LogprobsResult.ICandidate=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate} Candidate instance + */ + Candidate.create = function create(properties) { + return new Candidate(properties); + }; + + /** + * Encodes the specified Candidate message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate + * @static + * @param {google.cloud.aiplatform.v1beta1.LogprobsResult.ICandidate} message Candidate message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Candidate.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.token != null && Object.hasOwnProperty.call(message, "token")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.token); + if (message.logProbability != null && Object.hasOwnProperty.call(message, "logProbability")) + writer.uint32(/* id 2, wireType 5 =*/21).float(message.logProbability); + if (message.tokenId != null && Object.hasOwnProperty.call(message, "tokenId")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.tokenId); + return writer; + }; + + /** + * Encodes the specified Candidate message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate + * @static + * @param {google.cloud.aiplatform.v1beta1.LogprobsResult.ICandidate} message Candidate message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Candidate.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Candidate message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate + * @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.LogprobsResult.Candidate} Candidate + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Candidate.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.LogprobsResult.Candidate(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.token = reader.string(); + break; + } + case 3: { + message.tokenId = reader.int32(); + break; + } + case 2: { + message.logProbability = reader.float(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Candidate message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate} Candidate + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Candidate.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Candidate message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate + * @static + * @param {Object.<string,*>} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Candidate.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.token != null && message.hasOwnProperty("token")) { + properties._token = 1; + if (!$util.isString(message.token)) + return "token: string expected"; + } + if (message.tokenId != null && message.hasOwnProperty("tokenId")) { + properties._tokenId = 1; + if (!$util.isInteger(message.tokenId)) + return "tokenId: integer expected"; + } + if (message.logProbability != null && message.hasOwnProperty("logProbability")) { + properties._logProbability = 1; + if (typeof message.logProbability !== "number") + return "logProbability: number expected"; + } + return null; + }; + + /** + * Creates a Candidate message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate + * @static + * @param {Object.<string,*>} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate} Candidate + */ + Candidate.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate(); + if (object.token != null) + message.token = String(object.token); + if (object.tokenId != null) + message.tokenId = object.tokenId | 0; + if (object.logProbability != null) + message.logProbability = Number(object.logProbability); + return message; + }; + + /** + * Creates a plain object from a Candidate message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate + * @static + * @param {google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate} message Candidate + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.<string,*>} Plain object + */ + Candidate.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.token != null && message.hasOwnProperty("token")) { + object.token = message.token; + if (options.oneofs) + object._token = "token"; + } + if (message.logProbability != null && message.hasOwnProperty("logProbability")) { + object.logProbability = options.json && !isFinite(message.logProbability) ? String(message.logProbability) : message.logProbability; + if (options.oneofs) + object._logProbability = "logProbability"; + } + if (message.tokenId != null && message.hasOwnProperty("tokenId")) { + object.tokenId = message.tokenId; + if (options.oneofs) + object._tokenId = "tokenId"; + } + return object; + }; + + /** + * Converts this Candidate to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate + * @instance + * @returns {Object.<string,*>} JSON object + */ + Candidate.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Candidate + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Candidate.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate"; + }; + + return Candidate; + })(); + + LogprobsResult.TopCandidates = (function() { + + /** + * Properties of a TopCandidates. + * @memberof google.cloud.aiplatform.v1beta1.LogprobsResult + * @interface ITopCandidates + * @property {Array.<google.cloud.aiplatform.v1beta1.LogprobsResult.ICandidate>|null} [candidates] TopCandidates candidates + */ + + /** + * Constructs a new TopCandidates. + * @memberof google.cloud.aiplatform.v1beta1.LogprobsResult + * @classdesc Represents a TopCandidates. + * @implements ITopCandidates + * @constructor + * @param {google.cloud.aiplatform.v1beta1.LogprobsResult.ITopCandidates=} [properties] Properties to set + */ + function TopCandidates(properties) { + this.candidates = []; + 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]]; + } + + /** + * TopCandidates candidates. + * @member {Array.<google.cloud.aiplatform.v1beta1.LogprobsResult.ICandidate>} candidates + * @memberof google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates + * @instance + */ + TopCandidates.prototype.candidates = $util.emptyArray; + + /** + * Creates a new TopCandidates instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates + * @static + * @param {google.cloud.aiplatform.v1beta1.LogprobsResult.ITopCandidates=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates} TopCandidates instance + */ + TopCandidates.create = function create(properties) { + return new TopCandidates(properties); + }; + + /** + * Encodes the specified TopCandidates message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates + * @static + * @param {google.cloud.aiplatform.v1beta1.LogprobsResult.ITopCandidates} message TopCandidates message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TopCandidates.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.candidates != null && message.candidates.length) + for (var i = 0; i < message.candidates.length; ++i) + $root.google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate.encode(message.candidates[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified TopCandidates message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates + * @static + * @param {google.cloud.aiplatform.v1beta1.LogprobsResult.ITopCandidates} message TopCandidates message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TopCandidates.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TopCandidates message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates + * @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.LogprobsResult.TopCandidates} TopCandidates + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TopCandidates.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.LogprobsResult.TopCandidates(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.candidates && message.candidates.length)) + message.candidates = []; + message.candidates.push($root.google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TopCandidates message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates} TopCandidates + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TopCandidates.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TopCandidates message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates + * @static + * @param {Object.<string,*>} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TopCandidates.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.candidates != null && message.hasOwnProperty("candidates")) { + if (!Array.isArray(message.candidates)) + return "candidates: array expected"; + for (var i = 0; i < message.candidates.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate.verify(message.candidates[i]); + if (error) + return "candidates." + error; + } + } + return null; + }; + + /** + * Creates a TopCandidates message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates + * @static + * @param {Object.<string,*>} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates} TopCandidates + */ + TopCandidates.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates(); + if (object.candidates) { + if (!Array.isArray(object.candidates)) + throw TypeError(".google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates.candidates: array expected"); + message.candidates = []; + for (var i = 0; i < object.candidates.length; ++i) { + if (typeof object.candidates[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates.candidates: object expected"); + message.candidates[i] = $root.google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate.fromObject(object.candidates[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a TopCandidates message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates + * @static + * @param {google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates} message TopCandidates + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.<string,*>} Plain object + */ + TopCandidates.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.candidates = []; + if (message.candidates && message.candidates.length) { + object.candidates = []; + for (var j = 0; j < message.candidates.length; ++j) + object.candidates[j] = $root.google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate.toObject(message.candidates[j], options); + } + return object; + }; + + /** + * Converts this TopCandidates to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates + * @instance + * @returns {Object.<string,*>} JSON object + */ + TopCandidates.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for TopCandidates + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TopCandidates.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates"; + }; + + return TopCandidates; + })(); + + return LogprobsResult; + })(); + v1beta1.Segment = (function() { /** @@ -329087,6 +331785,7 @@ * @property {number|Long|null} [maxItems] Schema maxItems * @property {Array.<string>|null} ["enum"] Schema enum * @property {Object.<string,google.cloud.aiplatform.v1beta1.ISchema>|null} [properties] Schema properties + * @property {Array.<string>|null} [propertyOrdering] Schema propertyOrdering * @property {Array.<string>|null} [required] Schema required * @property {number|Long|null} [minProperties] Schema minProperties * @property {number|Long|null} [maxProperties] Schema maxProperties @@ -329096,6 +331795,7 @@ * @property {number|Long|null} [maxLength] Schema maxLength * @property {string|null} [pattern] Schema pattern * @property {google.protobuf.IValue|null} [example] Schema example + * @property {Array.<google.cloud.aiplatform.v1beta1.ISchema>|null} [anyOf] Schema anyOf */ /** @@ -329109,7 +331809,9 @@ function Schema(properties) { this["enum"] = []; this.properties = {}; + this.propertyOrdering = []; this.required = []; + this.anyOf = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -329204,6 +331906,14 @@ */ Schema.prototype.properties = $util.emptyObject; + /** + * Schema propertyOrdering. + * @member {Array.<string>} propertyOrdering + * @memberof google.cloud.aiplatform.v1beta1.Schema + * @instance + */ + Schema.prototype.propertyOrdering = $util.emptyArray; + /** * Schema required. * @member {Array.<string>} required @@ -329276,6 +331986,14 @@ */ Schema.prototype.example = null; + /** + * Schema anyOf. + * @member {Array.<google.cloud.aiplatform.v1beta1.ISchema>} anyOf + * @memberof google.cloud.aiplatform.v1beta1.Schema + * @instance + */ + Schema.prototype.anyOf = $util.emptyArray; + /** * Creates a new Schema instance using the specified properties. * @function create @@ -329323,6 +332041,9 @@ if (message["enum"] != null && message["enum"].length) for (var i = 0; i < message["enum"].length; ++i) writer.uint32(/* id 9, wireType 2 =*/74).string(message["enum"][i]); + if (message.anyOf != null && message.anyOf.length) + for (var i = 0; i < message.anyOf.length; ++i) + $root.google.cloud.aiplatform.v1beta1.Schema.encode(message.anyOf[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); if (message.minProperties != null && Object.hasOwnProperty.call(message, "minProperties")) writer.uint32(/* id 14, wireType 0 =*/112).int64(message.minProperties); if (message.maxProperties != null && Object.hasOwnProperty.call(message, "maxProperties")) @@ -329345,6 +332066,9 @@ $root.google.protobuf.Value.encode(message["default"], writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim(); if (message.title != null && Object.hasOwnProperty.call(message, "title")) writer.uint32(/* id 24, wireType 2 =*/194).string(message.title); + if (message.propertyOrdering != null && message.propertyOrdering.length) + for (var i = 0; i < message.propertyOrdering.length; ++i) + writer.uint32(/* id 25, wireType 2 =*/202).string(message.propertyOrdering[i]); return writer; }; @@ -329444,6 +332168,12 @@ message.properties[key] = value; break; } + case 25: { + if (!(message.propertyOrdering && message.propertyOrdering.length)) + message.propertyOrdering = []; + message.propertyOrdering.push(reader.string()); + break; + } case 5: { if (!(message.required && message.required.length)) message.required = []; @@ -329482,6 +332212,12 @@ message.example = $root.google.protobuf.Value.decode(reader, reader.uint32()); break; } + case 11: { + if (!(message.anyOf && message.anyOf.length)) + message.anyOf = []; + message.anyOf.push($root.google.cloud.aiplatform.v1beta1.Schema.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -329575,6 +332311,13 @@ return "properties." + error; } } + if (message.propertyOrdering != null && message.hasOwnProperty("propertyOrdering")) { + if (!Array.isArray(message.propertyOrdering)) + return "propertyOrdering: array expected"; + for (var i = 0; i < message.propertyOrdering.length; ++i) + if (!$util.isString(message.propertyOrdering[i])) + return "propertyOrdering: string[] expected"; + } if (message.required != null && message.hasOwnProperty("required")) { if (!Array.isArray(message.required)) return "required: array expected"; @@ -329608,6 +332351,15 @@ if (error) return "example." + error; } + if (message.anyOf != null && message.hasOwnProperty("anyOf")) { + if (!Array.isArray(message.anyOf)) + return "anyOf: array expected"; + for (var i = 0; i < message.anyOf.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.Schema.verify(message.anyOf[i]); + if (error) + return "anyOf." + error; + } + } return null; }; @@ -329712,6 +332464,13 @@ message.properties[keys[i]] = $root.google.cloud.aiplatform.v1beta1.Schema.fromObject(object.properties[keys[i]]); } } + if (object.propertyOrdering) { + if (!Array.isArray(object.propertyOrdering)) + throw TypeError(".google.cloud.aiplatform.v1beta1.Schema.propertyOrdering: array expected"); + message.propertyOrdering = []; + for (var i = 0; i < object.propertyOrdering.length; ++i) + message.propertyOrdering[i] = String(object.propertyOrdering[i]); + } if (object.required) { if (!Array.isArray(object.required)) throw TypeError(".google.cloud.aiplatform.v1beta1.Schema.required: array expected"); @@ -329766,6 +332525,16 @@ throw TypeError(".google.cloud.aiplatform.v1beta1.Schema.example: object expected"); message.example = $root.google.protobuf.Value.fromObject(object.example); } + if (object.anyOf) { + if (!Array.isArray(object.anyOf)) + throw TypeError(".google.cloud.aiplatform.v1beta1.Schema.anyOf: array expected"); + message.anyOf = []; + for (var i = 0; i < object.anyOf.length; ++i) { + if (typeof object.anyOf[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Schema.anyOf: object expected"); + message.anyOf[i] = $root.google.cloud.aiplatform.v1beta1.Schema.fromObject(object.anyOf[i]); + } + } return message; }; @@ -329785,6 +332554,8 @@ if (options.arrays || options.defaults) { object.required = []; object["enum"] = []; + object.anyOf = []; + object.propertyOrdering = []; } if (options.objects || options.defaults) object.properties = {}; @@ -329859,6 +332630,11 @@ for (var j = 0; j < message["enum"].length; ++j) object["enum"][j] = message["enum"][j]; } + if (message.anyOf && message.anyOf.length) { + object.anyOf = []; + for (var j = 0; j < message.anyOf.length; ++j) + object.anyOf[j] = $root.google.cloud.aiplatform.v1beta1.Schema.toObject(message.anyOf[j], options); + } if (message.minProperties != null && message.hasOwnProperty("minProperties")) if (typeof message.minProperties === "number") object.minProperties = options.longs === String ? String(message.minProperties) : message.minProperties; @@ -329899,6 +332675,11 @@ object["default"] = $root.google.protobuf.Value.toObject(message["default"], options); if (message.title != null && message.hasOwnProperty("title")) object.title = message.title; + if (message.propertyOrdering && message.propertyOrdering.length) { + object.propertyOrdering = []; + for (var j = 0; j < message.propertyOrdering.length; ++j) + object.propertyOrdering[j] = message.propertyOrdering[j]; + } return object; }; @@ -355762,6 +358543,233 @@ return PredictRequestResponseLoggingConfig; })(); + v1beta1.PSCAutomationConfig = (function() { + + /** + * Properties of a PSCAutomationConfig. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IPSCAutomationConfig + * @property {string|null} [projectId] PSCAutomationConfig projectId + * @property {string|null} [network] PSCAutomationConfig network + */ + + /** + * Constructs a new PSCAutomationConfig. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a PSCAutomationConfig. + * @implements IPSCAutomationConfig + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IPSCAutomationConfig=} [properties] Properties to set + */ + function PSCAutomationConfig(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]]; + } + + /** + * PSCAutomationConfig projectId. + * @member {string} projectId + * @memberof google.cloud.aiplatform.v1beta1.PSCAutomationConfig + * @instance + */ + PSCAutomationConfig.prototype.projectId = ""; + + /** + * PSCAutomationConfig network. + * @member {string} network + * @memberof google.cloud.aiplatform.v1beta1.PSCAutomationConfig + * @instance + */ + PSCAutomationConfig.prototype.network = ""; + + /** + * Creates a new PSCAutomationConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.PSCAutomationConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.IPSCAutomationConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PSCAutomationConfig} PSCAutomationConfig instance + */ + PSCAutomationConfig.create = function create(properties) { + return new PSCAutomationConfig(properties); + }; + + /** + * Encodes the specified PSCAutomationConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PSCAutomationConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.PSCAutomationConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.IPSCAutomationConfig} message PSCAutomationConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PSCAutomationConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.network != null && Object.hasOwnProperty.call(message, "network")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.network); + return writer; + }; + + /** + * Encodes the specified PSCAutomationConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PSCAutomationConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.PSCAutomationConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.IPSCAutomationConfig} message PSCAutomationConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PSCAutomationConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PSCAutomationConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.PSCAutomationConfig + * @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.PSCAutomationConfig} PSCAutomationConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PSCAutomationConfig.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.PSCAutomationConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.projectId = reader.string(); + break; + } + case 2: { + message.network = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PSCAutomationConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.PSCAutomationConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.PSCAutomationConfig} PSCAutomationConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PSCAutomationConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PSCAutomationConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.PSCAutomationConfig + * @static + * @param {Object.<string,*>} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PSCAutomationConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.projectId != null && message.hasOwnProperty("projectId")) + if (!$util.isString(message.projectId)) + return "projectId: string expected"; + if (message.network != null && message.hasOwnProperty("network")) + if (!$util.isString(message.network)) + return "network: string expected"; + return null; + }; + + /** + * Creates a PSCAutomationConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.PSCAutomationConfig + * @static + * @param {Object.<string,*>} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.PSCAutomationConfig} PSCAutomationConfig + */ + PSCAutomationConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PSCAutomationConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.PSCAutomationConfig(); + if (object.projectId != null) + message.projectId = String(object.projectId); + if (object.network != null) + message.network = String(object.network); + return message; + }; + + /** + * Creates a plain object from a PSCAutomationConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.PSCAutomationConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.PSCAutomationConfig} message PSCAutomationConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.<string,*>} Plain object + */ + PSCAutomationConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.projectId = ""; + object.network = ""; + } + if (message.projectId != null && message.hasOwnProperty("projectId")) + object.projectId = message.projectId; + if (message.network != null && message.hasOwnProperty("network")) + object.network = message.network; + return object; + }; + + /** + * Converts this PSCAutomationConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.PSCAutomationConfig + * @instance + * @returns {Object.<string,*>} JSON object + */ + PSCAutomationConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PSCAutomationConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.PSCAutomationConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PSCAutomationConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PSCAutomationConfig"; + }; + + return PSCAutomationConfig; + })(); + v1beta1.PrivateServiceConnectConfig = (function() { /** @@ -459485,6 +462493,7 @@ * @property {google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig|null} [deployedIndexAuthConfig] DeployedIndex deployedIndexAuthConfig * @property {Array.<string>|null} [reservedIpRanges] DeployedIndex reservedIpRanges * @property {string|null} [deploymentGroup] DeployedIndex deploymentGroup + * @property {Array.<google.cloud.aiplatform.v1beta1.IPSCAutomationConfig>|null} [pscAutomationConfigs] DeployedIndex pscAutomationConfigs */ /** @@ -459497,6 +462506,7 @@ */ function DeployedIndex(properties) { this.reservedIpRanges = []; + this.pscAutomationConfigs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -459599,6 +462609,14 @@ */ DeployedIndex.prototype.deploymentGroup = ""; + /** + * DeployedIndex pscAutomationConfigs. + * @member {Array.<google.cloud.aiplatform.v1beta1.IPSCAutomationConfig>} pscAutomationConfigs + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @instance + */ + DeployedIndex.prototype.pscAutomationConfigs = $util.emptyArray; + /** * Creates a new DeployedIndex instance using the specified properties. * @function create @@ -459648,6 +462666,9 @@ writer.uint32(/* id 11, wireType 2 =*/90).string(message.deploymentGroup); if (message.dedicatedResources != null && Object.hasOwnProperty.call(message, "dedicatedResources")) $root.google.cloud.aiplatform.v1beta1.DedicatedResources.encode(message.dedicatedResources, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); + if (message.pscAutomationConfigs != null && message.pscAutomationConfigs.length) + for (var i = 0; i < message.pscAutomationConfigs.length; ++i) + $root.google.cloud.aiplatform.v1beta1.PSCAutomationConfig.encode(message.pscAutomationConfigs[i], writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim(); return writer; }; @@ -459732,6 +462753,12 @@ message.deploymentGroup = reader.string(); break; } + case 19: { + if (!(message.pscAutomationConfigs && message.pscAutomationConfigs.length)) + message.pscAutomationConfigs = []; + message.pscAutomationConfigs.push($root.google.cloud.aiplatform.v1beta1.PSCAutomationConfig.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -459819,6 +462846,15 @@ if (message.deploymentGroup != null && message.hasOwnProperty("deploymentGroup")) if (!$util.isString(message.deploymentGroup)) return "deploymentGroup: string expected"; + if (message.pscAutomationConfigs != null && message.hasOwnProperty("pscAutomationConfigs")) { + if (!Array.isArray(message.pscAutomationConfigs)) + return "pscAutomationConfigs: array expected"; + for (var i = 0; i < message.pscAutomationConfigs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.PSCAutomationConfig.verify(message.pscAutomationConfigs[i]); + if (error) + return "pscAutomationConfigs." + error; + } + } return null; }; @@ -459881,6 +462917,16 @@ } if (object.deploymentGroup != null) message.deploymentGroup = String(object.deploymentGroup); + if (object.pscAutomationConfigs) { + if (!Array.isArray(object.pscAutomationConfigs)) + throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndex.pscAutomationConfigs: array expected"); + message.pscAutomationConfigs = []; + for (var i = 0; i < object.pscAutomationConfigs.length; ++i) { + if (typeof object.pscAutomationConfigs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndex.pscAutomationConfigs: object expected"); + message.pscAutomationConfigs[i] = $root.google.cloud.aiplatform.v1beta1.PSCAutomationConfig.fromObject(object.pscAutomationConfigs[i]); + } + } return message; }; @@ -459897,8 +462943,10 @@ if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) + if (options.arrays || options.defaults) { object.reservedIpRanges = []; + object.pscAutomationConfigs = []; + } if (options.defaults) { object.id = ""; object.index = ""; @@ -459939,6 +462987,11 @@ object.deploymentGroup = message.deploymentGroup; if (message.dedicatedResources != null && message.hasOwnProperty("dedicatedResources")) object.dedicatedResources = $root.google.cloud.aiplatform.v1beta1.DedicatedResources.toObject(message.dedicatedResources, options); + if (message.pscAutomationConfigs && message.pscAutomationConfigs.length) { + object.pscAutomationConfigs = []; + for (var j = 0; j < message.pscAutomationConfigs.length; ++j) + object.pscAutomationConfigs[j] = $root.google.cloud.aiplatform.v1beta1.PSCAutomationConfig.toObject(message.pscAutomationConfigs[j], options); + } return object; }; @@ -552932,6 +555985,8 @@ * @property {boolean|null} [preflightValidations] PipelineJob preflightValidations * @property {boolean|null} [satisfiesPzs] PipelineJob satisfiesPzs * @property {boolean|null} [satisfiesPzi] PipelineJob satisfiesPzi + * @property {number|Long|null} [originalPipelineJobId] PipelineJob originalPipelineJobId + * @property {Array.<google.cloud.aiplatform.v1beta1.IPipelineTaskRerunConfig>|null} [pipelineTaskRerunConfigs] PipelineJob pipelineTaskRerunConfigs */ /** @@ -552945,6 +556000,7 @@ function PipelineJob(properties) { this.labels = {}; this.reservedIpRanges = []; + this.pipelineTaskRerunConfigs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -553127,6 +556183,22 @@ */ PipelineJob.prototype.satisfiesPzi = false; + /** + * PipelineJob originalPipelineJobId. + * @member {number|Long} originalPipelineJobId + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * @instance + */ + PipelineJob.prototype.originalPipelineJobId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * PipelineJob pipelineTaskRerunConfigs. + * @member {Array.<google.cloud.aiplatform.v1beta1.IPipelineTaskRerunConfig>} pipelineTaskRerunConfigs + * @memberof google.cloud.aiplatform.v1beta1.PipelineJob + * @instance + */ + PipelineJob.prototype.pipelineTaskRerunConfigs = $util.emptyArray; + /** * Creates a new PipelineJob instance using the specified properties. * @function create @@ -553197,6 +556269,11 @@ writer.uint32(/* id 27, wireType 0 =*/216).bool(message.satisfiesPzs); if (message.satisfiesPzi != null && Object.hasOwnProperty.call(message, "satisfiesPzi")) writer.uint32(/* id 28, wireType 0 =*/224).bool(message.satisfiesPzi); + if (message.originalPipelineJobId != null && Object.hasOwnProperty.call(message, "originalPipelineJobId")) + writer.uint32(/* id 29, wireType 0 =*/232).int64(message.originalPipelineJobId); + if (message.pipelineTaskRerunConfigs != null && message.pipelineTaskRerunConfigs.length) + for (var i = 0; i < message.pipelineTaskRerunConfigs.length; ++i) + $root.google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.encode(message.pipelineTaskRerunConfigs[i], writer.uint32(/* id 30, wireType 2 =*/242).fork()).ldelim(); return writer; }; @@ -553340,6 +556417,16 @@ message.satisfiesPzi = reader.bool(); break; } + case 29: { + message.originalPipelineJobId = reader.int64(); + break; + } + case 30: { + if (!(message.pipelineTaskRerunConfigs && message.pipelineTaskRerunConfigs.length)) + message.pipelineTaskRerunConfigs = []; + message.pipelineTaskRerunConfigs.push($root.google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -553482,6 +556569,18 @@ if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) if (typeof message.satisfiesPzi !== "boolean") return "satisfiesPzi: boolean expected"; + if (message.originalPipelineJobId != null && message.hasOwnProperty("originalPipelineJobId")) + if (!$util.isInteger(message.originalPipelineJobId) && !(message.originalPipelineJobId && $util.isInteger(message.originalPipelineJobId.low) && $util.isInteger(message.originalPipelineJobId.high))) + return "originalPipelineJobId: integer|Long expected"; + if (message.pipelineTaskRerunConfigs != null && message.hasOwnProperty("pipelineTaskRerunConfigs")) { + if (!Array.isArray(message.pipelineTaskRerunConfigs)) + return "pipelineTaskRerunConfigs: array expected"; + for (var i = 0; i < message.pipelineTaskRerunConfigs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.verify(message.pipelineTaskRerunConfigs[i]); + if (error) + return "pipelineTaskRerunConfigs." + error; + } + } return null; }; @@ -553623,6 +556722,25 @@ message.satisfiesPzs = Boolean(object.satisfiesPzs); if (object.satisfiesPzi != null) message.satisfiesPzi = Boolean(object.satisfiesPzi); + if (object.originalPipelineJobId != null) + if ($util.Long) + (message.originalPipelineJobId = $util.Long.fromValue(object.originalPipelineJobId)).unsigned = false; + else if (typeof object.originalPipelineJobId === "string") + message.originalPipelineJobId = parseInt(object.originalPipelineJobId, 10); + else if (typeof object.originalPipelineJobId === "number") + message.originalPipelineJobId = object.originalPipelineJobId; + else if (typeof object.originalPipelineJobId === "object") + message.originalPipelineJobId = new $util.LongBits(object.originalPipelineJobId.low >>> 0, object.originalPipelineJobId.high >>> 0).toNumber(); + if (object.pipelineTaskRerunConfigs) { + if (!Array.isArray(object.pipelineTaskRerunConfigs)) + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJob.pipelineTaskRerunConfigs: array expected"); + message.pipelineTaskRerunConfigs = []; + for (var i = 0; i < object.pipelineTaskRerunConfigs.length; ++i) { + if (typeof object.pipelineTaskRerunConfigs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineJob.pipelineTaskRerunConfigs: object expected"); + message.pipelineTaskRerunConfigs[i] = $root.google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.fromObject(object.pipelineTaskRerunConfigs[i]); + } + } return message; }; @@ -553639,8 +556757,10 @@ if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) + if (options.arrays || options.defaults) { object.reservedIpRanges = []; + object.pipelineTaskRerunConfigs = []; + } if (options.objects || options.defaults) object.labels = {}; if (options.defaults) { @@ -553664,6 +556784,11 @@ object.preflightValidations = false; object.satisfiesPzs = false; object.satisfiesPzi = false; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.originalPipelineJobId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.originalPipelineJobId = options.longs === String ? "0" : 0; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -553716,6 +556841,16 @@ object.satisfiesPzs = message.satisfiesPzs; if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) object.satisfiesPzi = message.satisfiesPzi; + if (message.originalPipelineJobId != null && message.hasOwnProperty("originalPipelineJobId")) + if (typeof message.originalPipelineJobId === "number") + object.originalPipelineJobId = options.longs === String ? String(message.originalPipelineJobId) : message.originalPipelineJobId; + else + object.originalPipelineJobId = options.longs === String ? $util.Long.prototype.toString.call(message.originalPipelineJobId) : options.longs === Number ? new $util.LongBits(message.originalPipelineJobId.low >>> 0, message.originalPipelineJobId.high >>> 0).toNumber() : message.originalPipelineJobId; + if (message.pipelineTaskRerunConfigs && message.pipelineTaskRerunConfigs.length) { + object.pipelineTaskRerunConfigs = []; + for (var j = 0; j < message.pipelineTaskRerunConfigs.length; ++j) + object.pipelineTaskRerunConfigs[j] = $root.google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.toObject(message.pipelineTaskRerunConfigs[j], options); + } return object; }; @@ -556989,6 +560124,855 @@ return PipelineTaskExecutorDetail; })(); + v1beta1.PipelineTaskRerunConfig = (function() { + + /** + * Properties of a PipelineTaskRerunConfig. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IPipelineTaskRerunConfig + * @property {number|Long|null} [taskId] PipelineTaskRerunConfig taskId + * @property {string|null} [taskName] PipelineTaskRerunConfig taskName + * @property {google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.IInputs|null} [inputs] PipelineTaskRerunConfig inputs + * @property {boolean|null} [skipTask] PipelineTaskRerunConfig skipTask + * @property {boolean|null} [skipDownstreamTasks] PipelineTaskRerunConfig skipDownstreamTasks + */ + + /** + * Constructs a new PipelineTaskRerunConfig. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a PipelineTaskRerunConfig. + * @implements IPipelineTaskRerunConfig + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IPipelineTaskRerunConfig=} [properties] Properties to set + */ + function PipelineTaskRerunConfig(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]]; + } + + /** + * PipelineTaskRerunConfig taskId. + * @member {number|Long} taskId + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig + * @instance + */ + PipelineTaskRerunConfig.prototype.taskId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * PipelineTaskRerunConfig taskName. + * @member {string} taskName + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig + * @instance + */ + PipelineTaskRerunConfig.prototype.taskName = ""; + + /** + * PipelineTaskRerunConfig inputs. + * @member {google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.IInputs|null|undefined} inputs + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig + * @instance + */ + PipelineTaskRerunConfig.prototype.inputs = null; + + /** + * PipelineTaskRerunConfig skipTask. + * @member {boolean} skipTask + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig + * @instance + */ + PipelineTaskRerunConfig.prototype.skipTask = false; + + /** + * PipelineTaskRerunConfig skipDownstreamTasks. + * @member {boolean} skipDownstreamTasks + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig + * @instance + */ + PipelineTaskRerunConfig.prototype.skipDownstreamTasks = false; + + /** + * Creates a new PipelineTaskRerunConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.IPipelineTaskRerunConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig} PipelineTaskRerunConfig instance + */ + PipelineTaskRerunConfig.create = function create(properties) { + return new PipelineTaskRerunConfig(properties); + }; + + /** + * Encodes the specified PipelineTaskRerunConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.IPipelineTaskRerunConfig} message PipelineTaskRerunConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PipelineTaskRerunConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.taskId != null && Object.hasOwnProperty.call(message, "taskId")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.taskId); + if (message.taskName != null && Object.hasOwnProperty.call(message, "taskName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.taskName); + if (message.inputs != null && Object.hasOwnProperty.call(message, "inputs")) + $root.google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.Inputs.encode(message.inputs, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.skipTask != null && Object.hasOwnProperty.call(message, "skipTask")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.skipTask); + if (message.skipDownstreamTasks != null && Object.hasOwnProperty.call(message, "skipDownstreamTasks")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.skipDownstreamTasks); + return writer; + }; + + /** + * Encodes the specified PipelineTaskRerunConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.IPipelineTaskRerunConfig} message PipelineTaskRerunConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PipelineTaskRerunConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PipelineTaskRerunConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig + * @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.PipelineTaskRerunConfig} PipelineTaskRerunConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PipelineTaskRerunConfig.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.PipelineTaskRerunConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.taskId = reader.int64(); + break; + } + case 2: { + message.taskName = reader.string(); + break; + } + case 3: { + message.inputs = $root.google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.Inputs.decode(reader, reader.uint32()); + break; + } + case 4: { + message.skipTask = reader.bool(); + break; + } + case 5: { + message.skipDownstreamTasks = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PipelineTaskRerunConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig} PipelineTaskRerunConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PipelineTaskRerunConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PipelineTaskRerunConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig + * @static + * @param {Object.<string,*>} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PipelineTaskRerunConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.taskId != null && message.hasOwnProperty("taskId")) + if (!$util.isInteger(message.taskId) && !(message.taskId && $util.isInteger(message.taskId.low) && $util.isInteger(message.taskId.high))) + return "taskId: integer|Long expected"; + if (message.taskName != null && message.hasOwnProperty("taskName")) + if (!$util.isString(message.taskName)) + return "taskName: string expected"; + if (message.inputs != null && message.hasOwnProperty("inputs")) { + var error = $root.google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.Inputs.verify(message.inputs); + if (error) + return "inputs." + error; + } + if (message.skipTask != null && message.hasOwnProperty("skipTask")) + if (typeof message.skipTask !== "boolean") + return "skipTask: boolean expected"; + if (message.skipDownstreamTasks != null && message.hasOwnProperty("skipDownstreamTasks")) + if (typeof message.skipDownstreamTasks !== "boolean") + return "skipDownstreamTasks: boolean expected"; + return null; + }; + + /** + * Creates a PipelineTaskRerunConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig + * @static + * @param {Object.<string,*>} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig} PipelineTaskRerunConfig + */ + PipelineTaskRerunConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig(); + if (object.taskId != null) + if ($util.Long) + (message.taskId = $util.Long.fromValue(object.taskId)).unsigned = false; + else if (typeof object.taskId === "string") + message.taskId = parseInt(object.taskId, 10); + else if (typeof object.taskId === "number") + message.taskId = object.taskId; + else if (typeof object.taskId === "object") + message.taskId = new $util.LongBits(object.taskId.low >>> 0, object.taskId.high >>> 0).toNumber(); + if (object.taskName != null) + message.taskName = String(object.taskName); + if (object.inputs != null) { + if (typeof object.inputs !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.inputs: object expected"); + message.inputs = $root.google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.Inputs.fromObject(object.inputs); + } + if (object.skipTask != null) + message.skipTask = Boolean(object.skipTask); + if (object.skipDownstreamTasks != null) + message.skipDownstreamTasks = Boolean(object.skipDownstreamTasks); + return message; + }; + + /** + * Creates a plain object from a PipelineTaskRerunConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig} message PipelineTaskRerunConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.<string,*>} Plain object + */ + PipelineTaskRerunConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.taskId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.taskId = options.longs === String ? "0" : 0; + object.taskName = ""; + object.inputs = null; + object.skipTask = false; + object.skipDownstreamTasks = false; + } + if (message.taskId != null && message.hasOwnProperty("taskId")) + if (typeof message.taskId === "number") + object.taskId = options.longs === String ? String(message.taskId) : message.taskId; + else + object.taskId = options.longs === String ? $util.Long.prototype.toString.call(message.taskId) : options.longs === Number ? new $util.LongBits(message.taskId.low >>> 0, message.taskId.high >>> 0).toNumber() : message.taskId; + if (message.taskName != null && message.hasOwnProperty("taskName")) + object.taskName = message.taskName; + if (message.inputs != null && message.hasOwnProperty("inputs")) + object.inputs = $root.google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.Inputs.toObject(message.inputs, options); + if (message.skipTask != null && message.hasOwnProperty("skipTask")) + object.skipTask = message.skipTask; + if (message.skipDownstreamTasks != null && message.hasOwnProperty("skipDownstreamTasks")) + object.skipDownstreamTasks = message.skipDownstreamTasks; + return object; + }; + + /** + * Converts this PipelineTaskRerunConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig + * @instance + * @returns {Object.<string,*>} JSON object + */ + PipelineTaskRerunConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PipelineTaskRerunConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PipelineTaskRerunConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig"; + }; + + PipelineTaskRerunConfig.ArtifactList = (function() { + + /** + * Properties of an ArtifactList. + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig + * @interface IArtifactList + * @property {Array.<google.cloud.aiplatform.v1beta1.IRuntimeArtifact>|null} [artifacts] ArtifactList artifacts + */ + + /** + * Constructs a new ArtifactList. + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig + * @classdesc Represents an ArtifactList. + * @implements IArtifactList + * @constructor + * @param {google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.IArtifactList=} [properties] Properties to set + */ + function ArtifactList(properties) { + this.artifacts = []; + 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]]; + } + + /** + * ArtifactList artifacts. + * @member {Array.<google.cloud.aiplatform.v1beta1.IRuntimeArtifact>} artifacts + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.ArtifactList + * @instance + */ + ArtifactList.prototype.artifacts = $util.emptyArray; + + /** + * Creates a new ArtifactList instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.ArtifactList + * @static + * @param {google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.IArtifactList=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.ArtifactList} ArtifactList instance + */ + ArtifactList.create = function create(properties) { + return new ArtifactList(properties); + }; + + /** + * Encodes the specified ArtifactList message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.ArtifactList.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.ArtifactList + * @static + * @param {google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.IArtifactList} message ArtifactList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ArtifactList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.artifacts != null && message.artifacts.length) + for (var i = 0; i < message.artifacts.length; ++i) + $root.google.cloud.aiplatform.v1beta1.RuntimeArtifact.encode(message.artifacts[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ArtifactList message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.ArtifactList.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.ArtifactList + * @static + * @param {google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.IArtifactList} message ArtifactList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ArtifactList.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ArtifactList message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.ArtifactList + * @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.PipelineTaskRerunConfig.ArtifactList} ArtifactList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ArtifactList.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.PipelineTaskRerunConfig.ArtifactList(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.artifacts && message.artifacts.length)) + message.artifacts = []; + message.artifacts.push($root.google.cloud.aiplatform.v1beta1.RuntimeArtifact.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ArtifactList message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.ArtifactList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.ArtifactList} ArtifactList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ArtifactList.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ArtifactList message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.ArtifactList + * @static + * @param {Object.<string,*>} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ArtifactList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.artifacts != null && message.hasOwnProperty("artifacts")) { + if (!Array.isArray(message.artifacts)) + return "artifacts: array expected"; + for (var i = 0; i < message.artifacts.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.RuntimeArtifact.verify(message.artifacts[i]); + if (error) + return "artifacts." + error; + } + } + return null; + }; + + /** + * Creates an ArtifactList message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.ArtifactList + * @static + * @param {Object.<string,*>} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.ArtifactList} ArtifactList + */ + ArtifactList.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.ArtifactList) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.ArtifactList(); + if (object.artifacts) { + if (!Array.isArray(object.artifacts)) + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.ArtifactList.artifacts: array expected"); + message.artifacts = []; + for (var i = 0; i < object.artifacts.length; ++i) { + if (typeof object.artifacts[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.ArtifactList.artifacts: object expected"); + message.artifacts[i] = $root.google.cloud.aiplatform.v1beta1.RuntimeArtifact.fromObject(object.artifacts[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an ArtifactList message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.ArtifactList + * @static + * @param {google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.ArtifactList} message ArtifactList + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.<string,*>} Plain object + */ + ArtifactList.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.artifacts = []; + if (message.artifacts && message.artifacts.length) { + object.artifacts = []; + for (var j = 0; j < message.artifacts.length; ++j) + object.artifacts[j] = $root.google.cloud.aiplatform.v1beta1.RuntimeArtifact.toObject(message.artifacts[j], options); + } + return object; + }; + + /** + * Converts this ArtifactList to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.ArtifactList + * @instance + * @returns {Object.<string,*>} JSON object + */ + ArtifactList.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ArtifactList + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.ArtifactList + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ArtifactList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.ArtifactList"; + }; + + return ArtifactList; + })(); + + PipelineTaskRerunConfig.Inputs = (function() { + + /** + * Properties of an Inputs. + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig + * @interface IInputs + * @property {Object.<string,google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.IArtifactList>|null} [artifacts] Inputs artifacts + * @property {Object.<string,google.protobuf.IValue>|null} [parameterValues] Inputs parameterValues + */ + + /** + * Constructs a new Inputs. + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig + * @classdesc Represents an Inputs. + * @implements IInputs + * @constructor + * @param {google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.IInputs=} [properties] Properties to set + */ + function Inputs(properties) { + this.artifacts = {}; + this.parameterValues = {}; + 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]]; + } + + /** + * Inputs artifacts. + * @member {Object.<string,google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.IArtifactList>} artifacts + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.Inputs + * @instance + */ + Inputs.prototype.artifacts = $util.emptyObject; + + /** + * Inputs parameterValues. + * @member {Object.<string,google.protobuf.IValue>} parameterValues + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.Inputs + * @instance + */ + Inputs.prototype.parameterValues = $util.emptyObject; + + /** + * Creates a new Inputs instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.Inputs + * @static + * @param {google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.IInputs=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.Inputs} Inputs instance + */ + Inputs.create = function create(properties) { + return new Inputs(properties); + }; + + /** + * Encodes the specified Inputs message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.Inputs.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.Inputs + * @static + * @param {google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.IInputs} message Inputs message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Inputs.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.artifacts != null && Object.hasOwnProperty.call(message, "artifacts")) + for (var keys = Object.keys(message.artifacts), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.ArtifactList.encode(message.artifacts[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.parameterValues != null && Object.hasOwnProperty.call(message, "parameterValues")) + for (var keys = Object.keys(message.parameterValues), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.protobuf.Value.encode(message.parameterValues[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + return writer; + }; + + /** + * Encodes the specified Inputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.Inputs.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.Inputs + * @static + * @param {google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.IInputs} message Inputs message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Inputs.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Inputs message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.Inputs + * @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.PipelineTaskRerunConfig.Inputs} Inputs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Inputs.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.PipelineTaskRerunConfig.Inputs(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (message.artifacts === $util.emptyObject) + message.artifacts = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.ArtifactList.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.artifacts[key] = value; + break; + } + case 2: { + if (message.parameterValues === $util.emptyObject) + message.parameterValues = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.parameterValues[key] = value; + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Inputs message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.Inputs + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.Inputs} Inputs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Inputs.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Inputs message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.Inputs + * @static + * @param {Object.<string,*>} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Inputs.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.artifacts != null && message.hasOwnProperty("artifacts")) { + if (!$util.isObject(message.artifacts)) + return "artifacts: object expected"; + var key = Object.keys(message.artifacts); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.ArtifactList.verify(message.artifacts[key[i]]); + if (error) + return "artifacts." + error; + } + } + if (message.parameterValues != null && message.hasOwnProperty("parameterValues")) { + if (!$util.isObject(message.parameterValues)) + return "parameterValues: object expected"; + var key = Object.keys(message.parameterValues); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.protobuf.Value.verify(message.parameterValues[key[i]]); + if (error) + return "parameterValues." + error; + } + } + return null; + }; + + /** + * Creates an Inputs message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.Inputs + * @static + * @param {Object.<string,*>} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.Inputs} Inputs + */ + Inputs.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.Inputs) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.Inputs(); + if (object.artifacts) { + if (typeof object.artifacts !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.Inputs.artifacts: object expected"); + message.artifacts = {}; + for (var keys = Object.keys(object.artifacts), i = 0; i < keys.length; ++i) { + if (typeof object.artifacts[keys[i]] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.Inputs.artifacts: object expected"); + message.artifacts[keys[i]] = $root.google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.ArtifactList.fromObject(object.artifacts[keys[i]]); + } + } + if (object.parameterValues) { + if (typeof object.parameterValues !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.Inputs.parameterValues: object expected"); + message.parameterValues = {}; + for (var keys = Object.keys(object.parameterValues), i = 0; i < keys.length; ++i) { + if (typeof object.parameterValues[keys[i]] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.Inputs.parameterValues: object expected"); + message.parameterValues[keys[i]] = $root.google.protobuf.Value.fromObject(object.parameterValues[keys[i]]); + } + } + return message; + }; + + /** + * Creates a plain object from an Inputs message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.Inputs + * @static + * @param {google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.Inputs} message Inputs + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.<string,*>} Plain object + */ + Inputs.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) { + object.artifacts = {}; + object.parameterValues = {}; + } + var keys2; + if (message.artifacts && (keys2 = Object.keys(message.artifacts)).length) { + object.artifacts = {}; + for (var j = 0; j < keys2.length; ++j) + object.artifacts[keys2[j]] = $root.google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.ArtifactList.toObject(message.artifacts[keys2[j]], options); + } + if (message.parameterValues && (keys2 = Object.keys(message.parameterValues)).length) { + object.parameterValues = {}; + for (var j = 0; j < keys2.length; ++j) + object.parameterValues[keys2[j]] = $root.google.protobuf.Value.toObject(message.parameterValues[keys2[j]], options); + } + return object; + }; + + /** + * Converts this Inputs to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.Inputs + * @instance + * @returns {Object.<string,*>} JSON object + */ + Inputs.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Inputs + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.Inputs + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Inputs.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PipelineTaskRerunConfig.Inputs"; + }; + + return Inputs; + })(); + + return PipelineTaskRerunConfig; + })(); + /** * PipelineState enum. * @name google.cloud.aiplatform.v1beta1.PipelineState @@ -557017,6 +561001,723 @@ return values; })(); + v1beta1.ArtifactTypeSchema = (function() { + + /** + * Properties of an ArtifactTypeSchema. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IArtifactTypeSchema + * @property {string|null} [schemaTitle] ArtifactTypeSchema schemaTitle + * @property {string|null} [schemaUri] ArtifactTypeSchema schemaUri + * @property {string|null} [instanceSchema] ArtifactTypeSchema instanceSchema + * @property {string|null} [schemaVersion] ArtifactTypeSchema schemaVersion + */ + + /** + * Constructs a new ArtifactTypeSchema. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents an ArtifactTypeSchema. + * @implements IArtifactTypeSchema + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IArtifactTypeSchema=} [properties] Properties to set + */ + function ArtifactTypeSchema(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]]; + } + + /** + * ArtifactTypeSchema schemaTitle. + * @member {string|null|undefined} schemaTitle + * @memberof google.cloud.aiplatform.v1beta1.ArtifactTypeSchema + * @instance + */ + ArtifactTypeSchema.prototype.schemaTitle = null; + + /** + * ArtifactTypeSchema schemaUri. + * @member {string|null|undefined} schemaUri + * @memberof google.cloud.aiplatform.v1beta1.ArtifactTypeSchema + * @instance + */ + ArtifactTypeSchema.prototype.schemaUri = null; + + /** + * ArtifactTypeSchema instanceSchema. + * @member {string|null|undefined} instanceSchema + * @memberof google.cloud.aiplatform.v1beta1.ArtifactTypeSchema + * @instance + */ + ArtifactTypeSchema.prototype.instanceSchema = null; + + /** + * ArtifactTypeSchema schemaVersion. + * @member {string} schemaVersion + * @memberof google.cloud.aiplatform.v1beta1.ArtifactTypeSchema + * @instance + */ + ArtifactTypeSchema.prototype.schemaVersion = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ArtifactTypeSchema kind. + * @member {"schemaTitle"|"schemaUri"|"instanceSchema"|undefined} kind + * @memberof google.cloud.aiplatform.v1beta1.ArtifactTypeSchema + * @instance + */ + Object.defineProperty(ArtifactTypeSchema.prototype, "kind", { + get: $util.oneOfGetter($oneOfFields = ["schemaTitle", "schemaUri", "instanceSchema"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ArtifactTypeSchema instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ArtifactTypeSchema + * @static + * @param {google.cloud.aiplatform.v1beta1.IArtifactTypeSchema=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ArtifactTypeSchema} ArtifactTypeSchema instance + */ + ArtifactTypeSchema.create = function create(properties) { + return new ArtifactTypeSchema(properties); + }; + + /** + * Encodes the specified ArtifactTypeSchema message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ArtifactTypeSchema.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ArtifactTypeSchema + * @static + * @param {google.cloud.aiplatform.v1beta1.IArtifactTypeSchema} message ArtifactTypeSchema message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ArtifactTypeSchema.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.schemaTitle != null && Object.hasOwnProperty.call(message, "schemaTitle")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.schemaTitle); + if (message.schemaUri != null && Object.hasOwnProperty.call(message, "schemaUri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.schemaUri); + if (message.instanceSchema != null && Object.hasOwnProperty.call(message, "instanceSchema")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.instanceSchema); + if (message.schemaVersion != null && Object.hasOwnProperty.call(message, "schemaVersion")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.schemaVersion); + return writer; + }; + + /** + * Encodes the specified ArtifactTypeSchema message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ArtifactTypeSchema.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ArtifactTypeSchema + * @static + * @param {google.cloud.aiplatform.v1beta1.IArtifactTypeSchema} message ArtifactTypeSchema message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ArtifactTypeSchema.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ArtifactTypeSchema message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ArtifactTypeSchema + * @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.ArtifactTypeSchema} ArtifactTypeSchema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ArtifactTypeSchema.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.ArtifactTypeSchema(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.schemaTitle = reader.string(); + break; + } + case 2: { + message.schemaUri = reader.string(); + break; + } + case 3: { + message.instanceSchema = reader.string(); + break; + } + case 4: { + message.schemaVersion = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ArtifactTypeSchema message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ArtifactTypeSchema + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ArtifactTypeSchema} ArtifactTypeSchema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ArtifactTypeSchema.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ArtifactTypeSchema message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ArtifactTypeSchema + * @static + * @param {Object.<string,*>} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ArtifactTypeSchema.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.schemaTitle != null && message.hasOwnProperty("schemaTitle")) { + properties.kind = 1; + if (!$util.isString(message.schemaTitle)) + return "schemaTitle: string expected"; + } + if (message.schemaUri != null && message.hasOwnProperty("schemaUri")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + if (!$util.isString(message.schemaUri)) + return "schemaUri: string expected"; + } + if (message.instanceSchema != null && message.hasOwnProperty("instanceSchema")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + if (!$util.isString(message.instanceSchema)) + return "instanceSchema: string expected"; + } + if (message.schemaVersion != null && message.hasOwnProperty("schemaVersion")) + if (!$util.isString(message.schemaVersion)) + return "schemaVersion: string expected"; + return null; + }; + + /** + * Creates an ArtifactTypeSchema message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ArtifactTypeSchema + * @static + * @param {Object.<string,*>} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ArtifactTypeSchema} ArtifactTypeSchema + */ + ArtifactTypeSchema.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ArtifactTypeSchema) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ArtifactTypeSchema(); + if (object.schemaTitle != null) + message.schemaTitle = String(object.schemaTitle); + if (object.schemaUri != null) + message.schemaUri = String(object.schemaUri); + if (object.instanceSchema != null) + message.instanceSchema = String(object.instanceSchema); + if (object.schemaVersion != null) + message.schemaVersion = String(object.schemaVersion); + return message; + }; + + /** + * Creates a plain object from an ArtifactTypeSchema message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ArtifactTypeSchema + * @static + * @param {google.cloud.aiplatform.v1beta1.ArtifactTypeSchema} message ArtifactTypeSchema + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.<string,*>} Plain object + */ + ArtifactTypeSchema.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.schemaVersion = ""; + if (message.schemaTitle != null && message.hasOwnProperty("schemaTitle")) { + object.schemaTitle = message.schemaTitle; + if (options.oneofs) + object.kind = "schemaTitle"; + } + if (message.schemaUri != null && message.hasOwnProperty("schemaUri")) { + object.schemaUri = message.schemaUri; + if (options.oneofs) + object.kind = "schemaUri"; + } + if (message.instanceSchema != null && message.hasOwnProperty("instanceSchema")) { + object.instanceSchema = message.instanceSchema; + if (options.oneofs) + object.kind = "instanceSchema"; + } + if (message.schemaVersion != null && message.hasOwnProperty("schemaVersion")) + object.schemaVersion = message.schemaVersion; + return object; + }; + + /** + * Converts this ArtifactTypeSchema to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ArtifactTypeSchema + * @instance + * @returns {Object.<string,*>} JSON object + */ + ArtifactTypeSchema.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ArtifactTypeSchema + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.ArtifactTypeSchema + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ArtifactTypeSchema.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ArtifactTypeSchema"; + }; + + return ArtifactTypeSchema; + })(); + + v1beta1.RuntimeArtifact = (function() { + + /** + * Properties of a RuntimeArtifact. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IRuntimeArtifact + * @property {string|null} [name] RuntimeArtifact name + * @property {google.cloud.aiplatform.v1beta1.IArtifactTypeSchema|null} [type] RuntimeArtifact type + * @property {string|null} [uri] RuntimeArtifact uri + * @property {Object.<string,google.cloud.aiplatform.v1beta1.IValue>|null} [properties] RuntimeArtifact properties + * @property {Object.<string,google.cloud.aiplatform.v1beta1.IValue>|null} [customProperties] RuntimeArtifact customProperties + * @property {google.protobuf.IStruct|null} [metadata] RuntimeArtifact metadata + */ + + /** + * Constructs a new RuntimeArtifact. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a RuntimeArtifact. + * @implements IRuntimeArtifact + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IRuntimeArtifact=} [properties] Properties to set + */ + function RuntimeArtifact(properties) { + this.properties = {}; + this.customProperties = {}; + 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]]; + } + + /** + * RuntimeArtifact name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.RuntimeArtifact + * @instance + */ + RuntimeArtifact.prototype.name = ""; + + /** + * RuntimeArtifact type. + * @member {google.cloud.aiplatform.v1beta1.IArtifactTypeSchema|null|undefined} type + * @memberof google.cloud.aiplatform.v1beta1.RuntimeArtifact + * @instance + */ + RuntimeArtifact.prototype.type = null; + + /** + * RuntimeArtifact uri. + * @member {string} uri + * @memberof google.cloud.aiplatform.v1beta1.RuntimeArtifact + * @instance + */ + RuntimeArtifact.prototype.uri = ""; + + /** + * RuntimeArtifact properties. + * @member {Object.<string,google.cloud.aiplatform.v1beta1.IValue>} properties + * @memberof google.cloud.aiplatform.v1beta1.RuntimeArtifact + * @instance + */ + RuntimeArtifact.prototype.properties = $util.emptyObject; + + /** + * RuntimeArtifact customProperties. + * @member {Object.<string,google.cloud.aiplatform.v1beta1.IValue>} customProperties + * @memberof google.cloud.aiplatform.v1beta1.RuntimeArtifact + * @instance + */ + RuntimeArtifact.prototype.customProperties = $util.emptyObject; + + /** + * RuntimeArtifact metadata. + * @member {google.protobuf.IStruct|null|undefined} metadata + * @memberof google.cloud.aiplatform.v1beta1.RuntimeArtifact + * @instance + */ + RuntimeArtifact.prototype.metadata = null; + + /** + * Creates a new RuntimeArtifact instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.RuntimeArtifact + * @static + * @param {google.cloud.aiplatform.v1beta1.IRuntimeArtifact=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.RuntimeArtifact} RuntimeArtifact instance + */ + RuntimeArtifact.create = function create(properties) { + return new RuntimeArtifact(properties); + }; + + /** + * Encodes the specified RuntimeArtifact message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RuntimeArtifact.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.RuntimeArtifact + * @static + * @param {google.cloud.aiplatform.v1beta1.IRuntimeArtifact} message RuntimeArtifact message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RuntimeArtifact.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + $root.google.cloud.aiplatform.v1beta1.ArtifactTypeSchema.encode(message.type, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.uri != null && Object.hasOwnProperty.call(message, "uri")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.uri); + if (message.properties != null && Object.hasOwnProperty.call(message, "properties")) + for (var keys = Object.keys(message.properties), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.aiplatform.v1beta1.Value.encode(message.properties[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.customProperties != null && Object.hasOwnProperty.call(message, "customProperties")) + for (var keys = Object.keys(message.customProperties), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.aiplatform.v1beta1.Value.encode(message.customProperties[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) + $root.google.protobuf.Struct.encode(message.metadata, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified RuntimeArtifact message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RuntimeArtifact.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.RuntimeArtifact + * @static + * @param {google.cloud.aiplatform.v1beta1.IRuntimeArtifact} message RuntimeArtifact message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RuntimeArtifact.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RuntimeArtifact message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.RuntimeArtifact + * @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.RuntimeArtifact} RuntimeArtifact + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RuntimeArtifact.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.RuntimeArtifact(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.type = $root.google.cloud.aiplatform.v1beta1.ArtifactTypeSchema.decode(reader, reader.uint32()); + break; + } + case 3: { + message.uri = reader.string(); + break; + } + case 4: { + if (message.properties === $util.emptyObject) + message.properties = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.cloud.aiplatform.v1beta1.Value.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.properties[key] = value; + break; + } + case 5: { + if (message.customProperties === $util.emptyObject) + message.customProperties = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.cloud.aiplatform.v1beta1.Value.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.customProperties[key] = value; + break; + } + case 6: { + message.metadata = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RuntimeArtifact message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.RuntimeArtifact + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.RuntimeArtifact} RuntimeArtifact + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RuntimeArtifact.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RuntimeArtifact message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.RuntimeArtifact + * @static + * @param {Object.<string,*>} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RuntimeArtifact.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.type != null && message.hasOwnProperty("type")) { + var error = $root.google.cloud.aiplatform.v1beta1.ArtifactTypeSchema.verify(message.type); + if (error) + return "type." + error; + } + if (message.uri != null && message.hasOwnProperty("uri")) + if (!$util.isString(message.uri)) + return "uri: string expected"; + if (message.properties != null && message.hasOwnProperty("properties")) { + if (!$util.isObject(message.properties)) + return "properties: object expected"; + var key = Object.keys(message.properties); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.Value.verify(message.properties[key[i]]); + if (error) + return "properties." + error; + } + } + if (message.customProperties != null && message.hasOwnProperty("customProperties")) { + if (!$util.isObject(message.customProperties)) + return "customProperties: object expected"; + var key = Object.keys(message.customProperties); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.Value.verify(message.customProperties[key[i]]); + if (error) + return "customProperties." + error; + } + } + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.google.protobuf.Struct.verify(message.metadata); + if (error) + return "metadata." + error; + } + return null; + }; + + /** + * Creates a RuntimeArtifact message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.RuntimeArtifact + * @static + * @param {Object.<string,*>} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.RuntimeArtifact} RuntimeArtifact + */ + RuntimeArtifact.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.RuntimeArtifact) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.RuntimeArtifact(); + if (object.name != null) + message.name = String(object.name); + if (object.type != null) { + if (typeof object.type !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.RuntimeArtifact.type: object expected"); + message.type = $root.google.cloud.aiplatform.v1beta1.ArtifactTypeSchema.fromObject(object.type); + } + if (object.uri != null) + message.uri = String(object.uri); + if (object.properties) { + if (typeof object.properties !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.RuntimeArtifact.properties: object expected"); + message.properties = {}; + for (var keys = Object.keys(object.properties), i = 0; i < keys.length; ++i) { + if (typeof object.properties[keys[i]] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.RuntimeArtifact.properties: object expected"); + message.properties[keys[i]] = $root.google.cloud.aiplatform.v1beta1.Value.fromObject(object.properties[keys[i]]); + } + } + if (object.customProperties) { + if (typeof object.customProperties !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.RuntimeArtifact.customProperties: object expected"); + message.customProperties = {}; + for (var keys = Object.keys(object.customProperties), i = 0; i < keys.length; ++i) { + if (typeof object.customProperties[keys[i]] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.RuntimeArtifact.customProperties: object expected"); + message.customProperties[keys[i]] = $root.google.cloud.aiplatform.v1beta1.Value.fromObject(object.customProperties[keys[i]]); + } + } + if (object.metadata != null) { + if (typeof object.metadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.RuntimeArtifact.metadata: object expected"); + message.metadata = $root.google.protobuf.Struct.fromObject(object.metadata); + } + return message; + }; + + /** + * Creates a plain object from a RuntimeArtifact message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.RuntimeArtifact + * @static + * @param {google.cloud.aiplatform.v1beta1.RuntimeArtifact} message RuntimeArtifact + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.<string,*>} Plain object + */ + RuntimeArtifact.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) { + object.properties = {}; + object.customProperties = {}; + } + if (options.defaults) { + object.name = ""; + object.type = null; + object.uri = ""; + object.metadata = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.type != null && message.hasOwnProperty("type")) + object.type = $root.google.cloud.aiplatform.v1beta1.ArtifactTypeSchema.toObject(message.type, options); + if (message.uri != null && message.hasOwnProperty("uri")) + object.uri = message.uri; + var keys2; + if (message.properties && (keys2 = Object.keys(message.properties)).length) { + object.properties = {}; + for (var j = 0; j < keys2.length; ++j) + object.properties[keys2[j]] = $root.google.cloud.aiplatform.v1beta1.Value.toObject(message.properties[keys2[j]], options); + } + if (message.customProperties && (keys2 = Object.keys(message.customProperties)).length) { + object.customProperties = {}; + for (var j = 0; j < keys2.length; ++j) + object.customProperties[keys2[j]] = $root.google.cloud.aiplatform.v1beta1.Value.toObject(message.customProperties[keys2[j]], options); + } + if (message.metadata != null && message.hasOwnProperty("metadata")) + object.metadata = $root.google.protobuf.Struct.toObject(message.metadata, options); + return object; + }; + + /** + * Converts this RuntimeArtifact to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.RuntimeArtifact + * @instance + * @returns {Object.<string,*>} JSON object + */ + RuntimeArtifact.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RuntimeArtifact + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.RuntimeArtifact + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RuntimeArtifact.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.RuntimeArtifact"; + }; + + return RuntimeArtifact; + })(); + v1beta1.Value = (function() { /** @@ -569838,6 +574539,7 @@ * @property {Array.<google.cloud.aiplatform.v1beta1.IContent>|null} [contents] CountTokensRequest contents * @property {google.cloud.aiplatform.v1beta1.IContent|null} [systemInstruction] CountTokensRequest systemInstruction * @property {Array.<google.cloud.aiplatform.v1beta1.ITool>|null} [tools] CountTokensRequest tools + * @property {google.cloud.aiplatform.v1beta1.IGenerationConfig|null} [generationConfig] CountTokensRequest generationConfig */ /** @@ -569906,6 +574608,14 @@ */ CountTokensRequest.prototype.tools = $util.emptyArray; + /** + * CountTokensRequest generationConfig. + * @member {google.cloud.aiplatform.v1beta1.IGenerationConfig|null|undefined} generationConfig + * @memberof google.cloud.aiplatform.v1beta1.CountTokensRequest + * @instance + */ + CountTokensRequest.prototype.generationConfig = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -569920,6 +574630,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * CountTokensRequest _generationConfig. + * @member {"generationConfig"|undefined} _generationConfig + * @memberof google.cloud.aiplatform.v1beta1.CountTokensRequest + * @instance + */ + Object.defineProperty(CountTokensRequest.prototype, "_generationConfig", { + get: $util.oneOfGetter($oneOfFields = ["generationConfig"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new CountTokensRequest instance using the specified properties. * @function create @@ -569959,6 +574680,8 @@ if (message.tools != null && message.tools.length) for (var i = 0; i < message.tools.length; ++i) $root.google.cloud.aiplatform.v1beta1.Tool.encode(message.tools[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.generationConfig != null && Object.hasOwnProperty.call(message, "generationConfig")) + $root.google.cloud.aiplatform.v1beta1.GenerationConfig.encode(message.generationConfig, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); return writer; }; @@ -570023,6 +574746,10 @@ message.tools.push($root.google.cloud.aiplatform.v1beta1.Tool.decode(reader, reader.uint32())); break; } + case 7: { + message.generationConfig = $root.google.cloud.aiplatform.v1beta1.GenerationConfig.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -570100,6 +574827,14 @@ return "tools." + error; } } + if (message.generationConfig != null && message.hasOwnProperty("generationConfig")) { + properties._generationConfig = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.GenerationConfig.verify(message.generationConfig); + if (error) + return "generationConfig." + error; + } + } return null; }; @@ -570154,6 +574889,11 @@ message.tools[i] = $root.google.cloud.aiplatform.v1beta1.Tool.fromObject(object.tools[i]); } } + if (object.generationConfig != null) { + if (typeof object.generationConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CountTokensRequest.generationConfig: object expected"); + message.generationConfig = $root.google.cloud.aiplatform.v1beta1.GenerationConfig.fromObject(object.generationConfig); + } return message; }; @@ -570203,6 +574943,11 @@ for (var j = 0; j < message.tools.length; ++j) object.tools[j] = $root.google.cloud.aiplatform.v1beta1.Tool.toObject(message.tools[j], options); } + if (message.generationConfig != null && message.hasOwnProperty("generationConfig")) { + object.generationConfig = $root.google.cloud.aiplatform.v1beta1.GenerationConfig.toObject(message.generationConfig, options); + if (options.oneofs) + object._generationConfig = "generationConfig"; + } return object; }; @@ -570474,6 +575219,7 @@ * @property {string|null} [cachedContent] GenerateContentRequest cachedContent * @property {Array.<google.cloud.aiplatform.v1beta1.ITool>|null} [tools] GenerateContentRequest tools * @property {google.cloud.aiplatform.v1beta1.IToolConfig|null} [toolConfig] GenerateContentRequest toolConfig + * @property {Object.<string,string>|null} [labels] GenerateContentRequest labels * @property {Array.<google.cloud.aiplatform.v1beta1.ISafetySetting>|null} [safetySettings] GenerateContentRequest safetySettings * @property {google.cloud.aiplatform.v1beta1.IGenerationConfig|null} [generationConfig] GenerateContentRequest generationConfig */ @@ -570489,6 +575235,7 @@ function GenerateContentRequest(properties) { this.contents = []; this.tools = []; + this.labels = {}; this.safetySettings = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) @@ -570544,6 +575291,14 @@ */ GenerateContentRequest.prototype.toolConfig = null; + /** + * GenerateContentRequest labels. + * @member {Object.<string,string>} labels + * @memberof google.cloud.aiplatform.v1beta1.GenerateContentRequest + * @instance + */ + GenerateContentRequest.prototype.labels = $util.emptyObject; + /** * GenerateContentRequest safetySettings. * @member {Array.<google.cloud.aiplatform.v1beta1.ISafetySetting>} safetySettings @@ -570617,6 +575372,9 @@ $root.google.cloud.aiplatform.v1beta1.Content.encode(message.systemInstruction, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); if (message.cachedContent != null && Object.hasOwnProperty.call(message, "cachedContent")) writer.uint32(/* id 9, wireType 2 =*/74).string(message.cachedContent); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); return writer; }; @@ -570647,7 +575405,7 @@ GenerateContentRequest.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.GenerateContentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GenerateContentRequest(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -570679,6 +575437,29 @@ message.toolConfig = $root.google.cloud.aiplatform.v1beta1.ToolConfig.decode(reader, reader.uint32()); break; } + case 10: { + if (message.labels === $util.emptyObject) + message.labels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.labels[key] = value; + break; + } case 3: { if (!(message.safetySettings && message.safetySettings.length)) message.safetySettings = []; @@ -570762,6 +575543,14 @@ if (error) return "toolConfig." + error; } + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } if (message.safetySettings != null && message.hasOwnProperty("safetySettings")) { if (!Array.isArray(message.safetySettings)) return "safetySettings: array expected"; @@ -570825,6 +575614,13 @@ throw TypeError(".google.cloud.aiplatform.v1beta1.GenerateContentRequest.toolConfig: object expected"); message.toolConfig = $root.google.cloud.aiplatform.v1beta1.ToolConfig.fromObject(object.toolConfig); } + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.GenerateContentRequest.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); + } if (object.safetySettings) { if (!Array.isArray(object.safetySettings)) throw TypeError(".google.cloud.aiplatform.v1beta1.GenerateContentRequest.safetySettings: array expected"); @@ -570861,6 +575657,8 @@ object.safetySettings = []; object.tools = []; } + if (options.objects || options.defaults) + object.labels = {}; if (options.defaults) { object.generationConfig = null; object.model = ""; @@ -570895,6 +575693,12 @@ } if (message.cachedContent != null && message.hasOwnProperty("cachedContent")) object.cachedContent = message.cachedContent; + var keys2; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; + } return object; }; @@ -570934,6 +575738,7 @@ * @memberof google.cloud.aiplatform.v1beta1 * @interface IGenerateContentResponse * @property {Array.<google.cloud.aiplatform.v1beta1.ICandidate>|null} [candidates] GenerateContentResponse candidates + * @property {string|null} [modelVersion] GenerateContentResponse modelVersion * @property {google.cloud.aiplatform.v1beta1.GenerateContentResponse.IPromptFeedback|null} [promptFeedback] GenerateContentResponse promptFeedback * @property {google.cloud.aiplatform.v1beta1.GenerateContentResponse.IUsageMetadata|null} [usageMetadata] GenerateContentResponse usageMetadata */ @@ -570962,6 +575767,14 @@ */ GenerateContentResponse.prototype.candidates = $util.emptyArray; + /** + * GenerateContentResponse modelVersion. + * @member {string} modelVersion + * @memberof google.cloud.aiplatform.v1beta1.GenerateContentResponse + * @instance + */ + GenerateContentResponse.prototype.modelVersion = ""; + /** * GenerateContentResponse promptFeedback. * @member {google.cloud.aiplatform.v1beta1.GenerateContentResponse.IPromptFeedback|null|undefined} promptFeedback @@ -571009,6 +575822,8 @@ $root.google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback.encode(message.promptFeedback, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.usageMetadata != null && Object.hasOwnProperty.call(message, "usageMetadata")) $root.google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata.encode(message.usageMetadata, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.modelVersion != null && Object.hasOwnProperty.call(message, "modelVersion")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.modelVersion); return writer; }; @@ -571049,6 +575864,10 @@ message.candidates.push($root.google.cloud.aiplatform.v1beta1.Candidate.decode(reader, reader.uint32())); break; } + case 11: { + message.modelVersion = reader.string(); + break; + } case 3: { message.promptFeedback = $root.google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback.decode(reader, reader.uint32()); break; @@ -571101,6 +575920,9 @@ return "candidates." + error; } } + if (message.modelVersion != null && message.hasOwnProperty("modelVersion")) + if (!$util.isString(message.modelVersion)) + return "modelVersion: string expected"; if (message.promptFeedback != null && message.hasOwnProperty("promptFeedback")) { var error = $root.google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback.verify(message.promptFeedback); if (error) @@ -571136,6 +575958,8 @@ message.candidates[i] = $root.google.cloud.aiplatform.v1beta1.Candidate.fromObject(object.candidates[i]); } } + if (object.modelVersion != null) + message.modelVersion = String(object.modelVersion); if (object.promptFeedback != null) { if (typeof object.promptFeedback !== "object") throw TypeError(".google.cloud.aiplatform.v1beta1.GenerateContentResponse.promptFeedback: object expected"); @@ -571167,6 +575991,7 @@ if (options.defaults) { object.promptFeedback = null; object.usageMetadata = null; + object.modelVersion = ""; } if (message.candidates && message.candidates.length) { object.candidates = []; @@ -571177,6 +576002,8 @@ object.promptFeedback = $root.google.cloud.aiplatform.v1beta1.GenerateContentResponse.PromptFeedback.toObject(message.promptFeedback, options); if (message.usageMetadata != null && message.hasOwnProperty("usageMetadata")) object.usageMetadata = $root.google.cloud.aiplatform.v1beta1.GenerateContentResponse.UsageMetadata.toObject(message.usageMetadata, options); + if (message.modelVersion != null && message.hasOwnProperty("modelVersion")) + object.modelVersion = message.modelVersion; return object; }; @@ -625200,7 +630027,9 @@ * @interface IRagVectorDbConfig * @property {google.cloud.aiplatform.v1beta1.RagVectorDbConfig.IRagManagedDb|null} [ragManagedDb] RagVectorDbConfig ragManagedDb * @property {google.cloud.aiplatform.v1beta1.RagVectorDbConfig.IWeaviate|null} [weaviate] RagVectorDbConfig weaviate + * @property {google.cloud.aiplatform.v1beta1.RagVectorDbConfig.IPinecone|null} [pinecone] RagVectorDbConfig pinecone * @property {google.cloud.aiplatform.v1beta1.RagVectorDbConfig.IVertexFeatureStore|null} [vertexFeatureStore] RagVectorDbConfig vertexFeatureStore + * @property {google.cloud.aiplatform.v1beta1.RagVectorDbConfig.IVertexVectorSearch|null} [vertexVectorSearch] RagVectorDbConfig vertexVectorSearch * @property {google.cloud.aiplatform.v1beta1.IApiAuth|null} [apiAuth] RagVectorDbConfig apiAuth */ @@ -625235,6 +630064,14 @@ */ RagVectorDbConfig.prototype.weaviate = null; + /** + * RagVectorDbConfig pinecone. + * @member {google.cloud.aiplatform.v1beta1.RagVectorDbConfig.IPinecone|null|undefined} pinecone + * @memberof google.cloud.aiplatform.v1beta1.RagVectorDbConfig + * @instance + */ + RagVectorDbConfig.prototype.pinecone = null; + /** * RagVectorDbConfig vertexFeatureStore. * @member {google.cloud.aiplatform.v1beta1.RagVectorDbConfig.IVertexFeatureStore|null|undefined} vertexFeatureStore @@ -625243,6 +630080,14 @@ */ RagVectorDbConfig.prototype.vertexFeatureStore = null; + /** + * RagVectorDbConfig vertexVectorSearch. + * @member {google.cloud.aiplatform.v1beta1.RagVectorDbConfig.IVertexVectorSearch|null|undefined} vertexVectorSearch + * @memberof google.cloud.aiplatform.v1beta1.RagVectorDbConfig + * @instance + */ + RagVectorDbConfig.prototype.vertexVectorSearch = null; + /** * RagVectorDbConfig apiAuth. * @member {google.cloud.aiplatform.v1beta1.IApiAuth|null|undefined} apiAuth @@ -625256,12 +630101,12 @@ /** * RagVectorDbConfig vectorDb. - * @member {"ragManagedDb"|"weaviate"|"vertexFeatureStore"|undefined} vectorDb + * @member {"ragManagedDb"|"weaviate"|"pinecone"|"vertexFeatureStore"|"vertexVectorSearch"|undefined} vectorDb * @memberof google.cloud.aiplatform.v1beta1.RagVectorDbConfig * @instance */ Object.defineProperty(RagVectorDbConfig.prototype, "vectorDb", { - get: $util.oneOfGetter($oneOfFields = ["ragManagedDb", "weaviate", "vertexFeatureStore"]), + get: $util.oneOfGetter($oneOfFields = ["ragManagedDb", "weaviate", "pinecone", "vertexFeatureStore", "vertexVectorSearch"]), set: $util.oneOfSetter($oneOfFields) }); @@ -625293,10 +630138,14 @@ $root.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.encode(message.ragManagedDb, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.weaviate != null && Object.hasOwnProperty.call(message, "weaviate")) $root.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.Weaviate.encode(message.weaviate, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.pinecone != null && Object.hasOwnProperty.call(message, "pinecone")) + $root.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.Pinecone.encode(message.pinecone, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.vertexFeatureStore != null && Object.hasOwnProperty.call(message, "vertexFeatureStore")) $root.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.VertexFeatureStore.encode(message.vertexFeatureStore, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); if (message.apiAuth != null && Object.hasOwnProperty.call(message, "apiAuth")) $root.google.cloud.aiplatform.v1beta1.ApiAuth.encode(message.apiAuth, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.vertexVectorSearch != null && Object.hasOwnProperty.call(message, "vertexVectorSearch")) + $root.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.VertexVectorSearch.encode(message.vertexVectorSearch, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); return writer; }; @@ -625339,10 +630188,18 @@ message.weaviate = $root.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.Weaviate.decode(reader, reader.uint32()); break; } + case 3: { + message.pinecone = $root.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.Pinecone.decode(reader, reader.uint32()); + break; + } case 4: { message.vertexFeatureStore = $root.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.VertexFeatureStore.decode(reader, reader.uint32()); break; } + case 6: { + message.vertexVectorSearch = $root.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.VertexVectorSearch.decode(reader, reader.uint32()); + break; + } case 5: { message.apiAuth = $root.google.cloud.aiplatform.v1beta1.ApiAuth.decode(reader, reader.uint32()); break; @@ -625401,6 +630258,16 @@ return "weaviate." + error; } } + if (message.pinecone != null && message.hasOwnProperty("pinecone")) { + if (properties.vectorDb === 1) + return "vectorDb: multiple values"; + properties.vectorDb = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.Pinecone.verify(message.pinecone); + if (error) + return "pinecone." + error; + } + } if (message.vertexFeatureStore != null && message.hasOwnProperty("vertexFeatureStore")) { if (properties.vectorDb === 1) return "vectorDb: multiple values"; @@ -625411,6 +630278,16 @@ return "vertexFeatureStore." + error; } } + if (message.vertexVectorSearch != null && message.hasOwnProperty("vertexVectorSearch")) { + if (properties.vectorDb === 1) + return "vectorDb: multiple values"; + properties.vectorDb = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.VertexVectorSearch.verify(message.vertexVectorSearch); + if (error) + return "vertexVectorSearch." + error; + } + } if (message.apiAuth != null && message.hasOwnProperty("apiAuth")) { var error = $root.google.cloud.aiplatform.v1beta1.ApiAuth.verify(message.apiAuth); if (error) @@ -625441,11 +630318,21 @@ throw TypeError(".google.cloud.aiplatform.v1beta1.RagVectorDbConfig.weaviate: object expected"); message.weaviate = $root.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.Weaviate.fromObject(object.weaviate); } + if (object.pinecone != null) { + if (typeof object.pinecone !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.RagVectorDbConfig.pinecone: object expected"); + message.pinecone = $root.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.Pinecone.fromObject(object.pinecone); + } if (object.vertexFeatureStore != null) { if (typeof object.vertexFeatureStore !== "object") throw TypeError(".google.cloud.aiplatform.v1beta1.RagVectorDbConfig.vertexFeatureStore: object expected"); message.vertexFeatureStore = $root.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.VertexFeatureStore.fromObject(object.vertexFeatureStore); } + if (object.vertexVectorSearch != null) { + if (typeof object.vertexVectorSearch !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.RagVectorDbConfig.vertexVectorSearch: object expected"); + message.vertexVectorSearch = $root.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.VertexVectorSearch.fromObject(object.vertexVectorSearch); + } if (object.apiAuth != null) { if (typeof object.apiAuth !== "object") throw TypeError(".google.cloud.aiplatform.v1beta1.RagVectorDbConfig.apiAuth: object expected"); @@ -625479,6 +630366,11 @@ if (options.oneofs) object.vectorDb = "weaviate"; } + if (message.pinecone != null && message.hasOwnProperty("pinecone")) { + object.pinecone = $root.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.Pinecone.toObject(message.pinecone, options); + if (options.oneofs) + object.vectorDb = "pinecone"; + } if (message.vertexFeatureStore != null && message.hasOwnProperty("vertexFeatureStore")) { object.vertexFeatureStore = $root.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.VertexFeatureStore.toObject(message.vertexFeatureStore, options); if (options.oneofs) @@ -625486,6 +630378,11 @@ } if (message.apiAuth != null && message.hasOwnProperty("apiAuth")) object.apiAuth = $root.google.cloud.aiplatform.v1beta1.ApiAuth.toObject(message.apiAuth, options); + if (message.vertexVectorSearch != null && message.hasOwnProperty("vertexVectorSearch")) { + object.vertexVectorSearch = $root.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.VertexVectorSearch.toObject(message.vertexVectorSearch, options); + if (options.oneofs) + object.vectorDb = "vertexVectorSearch"; + } return object; }; @@ -625917,6 +630814,209 @@ return Weaviate; })(); + RagVectorDbConfig.Pinecone = (function() { + + /** + * Properties of a Pinecone. + * @memberof google.cloud.aiplatform.v1beta1.RagVectorDbConfig + * @interface IPinecone + * @property {string|null} [indexName] Pinecone indexName + */ + + /** + * Constructs a new Pinecone. + * @memberof google.cloud.aiplatform.v1beta1.RagVectorDbConfig + * @classdesc Represents a Pinecone. + * @implements IPinecone + * @constructor + * @param {google.cloud.aiplatform.v1beta1.RagVectorDbConfig.IPinecone=} [properties] Properties to set + */ + function Pinecone(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]]; + } + + /** + * Pinecone indexName. + * @member {string} indexName + * @memberof google.cloud.aiplatform.v1beta1.RagVectorDbConfig.Pinecone + * @instance + */ + Pinecone.prototype.indexName = ""; + + /** + * Creates a new Pinecone instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.RagVectorDbConfig.Pinecone + * @static + * @param {google.cloud.aiplatform.v1beta1.RagVectorDbConfig.IPinecone=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.RagVectorDbConfig.Pinecone} Pinecone instance + */ + Pinecone.create = function create(properties) { + return new Pinecone(properties); + }; + + /** + * Encodes the specified Pinecone message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RagVectorDbConfig.Pinecone.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.RagVectorDbConfig.Pinecone + * @static + * @param {google.cloud.aiplatform.v1beta1.RagVectorDbConfig.IPinecone} message Pinecone message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Pinecone.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.indexName != null && Object.hasOwnProperty.call(message, "indexName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.indexName); + return writer; + }; + + /** + * Encodes the specified Pinecone message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RagVectorDbConfig.Pinecone.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.RagVectorDbConfig.Pinecone + * @static + * @param {google.cloud.aiplatform.v1beta1.RagVectorDbConfig.IPinecone} message Pinecone message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Pinecone.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Pinecone message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.RagVectorDbConfig.Pinecone + * @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.RagVectorDbConfig.Pinecone} Pinecone + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Pinecone.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.RagVectorDbConfig.Pinecone(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.indexName = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Pinecone message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.RagVectorDbConfig.Pinecone + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.RagVectorDbConfig.Pinecone} Pinecone + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Pinecone.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Pinecone message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.RagVectorDbConfig.Pinecone + * @static + * @param {Object.<string,*>} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Pinecone.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.indexName != null && message.hasOwnProperty("indexName")) + if (!$util.isString(message.indexName)) + return "indexName: string expected"; + return null; + }; + + /** + * Creates a Pinecone message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.RagVectorDbConfig.Pinecone + * @static + * @param {Object.<string,*>} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.RagVectorDbConfig.Pinecone} Pinecone + */ + Pinecone.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.Pinecone) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.Pinecone(); + if (object.indexName != null) + message.indexName = String(object.indexName); + return message; + }; + + /** + * Creates a plain object from a Pinecone message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.RagVectorDbConfig.Pinecone + * @static + * @param {google.cloud.aiplatform.v1beta1.RagVectorDbConfig.Pinecone} message Pinecone + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.<string,*>} Plain object + */ + Pinecone.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.indexName = ""; + if (message.indexName != null && message.hasOwnProperty("indexName")) + object.indexName = message.indexName; + return object; + }; + + /** + * Converts this Pinecone to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.RagVectorDbConfig.Pinecone + * @instance + * @returns {Object.<string,*>} JSON object + */ + Pinecone.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Pinecone + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.RagVectorDbConfig.Pinecone + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Pinecone.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.RagVectorDbConfig.Pinecone"; + }; + + return Pinecone; + })(); + RagVectorDbConfig.VertexFeatureStore = (function() { /** @@ -626120,6 +631220,233 @@ return VertexFeatureStore; })(); + RagVectorDbConfig.VertexVectorSearch = (function() { + + /** + * Properties of a VertexVectorSearch. + * @memberof google.cloud.aiplatform.v1beta1.RagVectorDbConfig + * @interface IVertexVectorSearch + * @property {string|null} [indexEndpoint] VertexVectorSearch indexEndpoint + * @property {string|null} [index] VertexVectorSearch index + */ + + /** + * Constructs a new VertexVectorSearch. + * @memberof google.cloud.aiplatform.v1beta1.RagVectorDbConfig + * @classdesc Represents a VertexVectorSearch. + * @implements IVertexVectorSearch + * @constructor + * @param {google.cloud.aiplatform.v1beta1.RagVectorDbConfig.IVertexVectorSearch=} [properties] Properties to set + */ + function VertexVectorSearch(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]]; + } + + /** + * VertexVectorSearch indexEndpoint. + * @member {string} indexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.RagVectorDbConfig.VertexVectorSearch + * @instance + */ + VertexVectorSearch.prototype.indexEndpoint = ""; + + /** + * VertexVectorSearch index. + * @member {string} index + * @memberof google.cloud.aiplatform.v1beta1.RagVectorDbConfig.VertexVectorSearch + * @instance + */ + VertexVectorSearch.prototype.index = ""; + + /** + * Creates a new VertexVectorSearch instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.RagVectorDbConfig.VertexVectorSearch + * @static + * @param {google.cloud.aiplatform.v1beta1.RagVectorDbConfig.IVertexVectorSearch=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.RagVectorDbConfig.VertexVectorSearch} VertexVectorSearch instance + */ + VertexVectorSearch.create = function create(properties) { + return new VertexVectorSearch(properties); + }; + + /** + * Encodes the specified VertexVectorSearch message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RagVectorDbConfig.VertexVectorSearch.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.RagVectorDbConfig.VertexVectorSearch + * @static + * @param {google.cloud.aiplatform.v1beta1.RagVectorDbConfig.IVertexVectorSearch} message VertexVectorSearch message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VertexVectorSearch.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.indexEndpoint != null && Object.hasOwnProperty.call(message, "indexEndpoint")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.indexEndpoint); + if (message.index != null && Object.hasOwnProperty.call(message, "index")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.index); + return writer; + }; + + /** + * Encodes the specified VertexVectorSearch message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RagVectorDbConfig.VertexVectorSearch.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.RagVectorDbConfig.VertexVectorSearch + * @static + * @param {google.cloud.aiplatform.v1beta1.RagVectorDbConfig.IVertexVectorSearch} message VertexVectorSearch message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VertexVectorSearch.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a VertexVectorSearch message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.RagVectorDbConfig.VertexVectorSearch + * @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.RagVectorDbConfig.VertexVectorSearch} VertexVectorSearch + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VertexVectorSearch.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.RagVectorDbConfig.VertexVectorSearch(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.indexEndpoint = reader.string(); + break; + } + case 2: { + message.index = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a VertexVectorSearch message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.RagVectorDbConfig.VertexVectorSearch + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.RagVectorDbConfig.VertexVectorSearch} VertexVectorSearch + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VertexVectorSearch.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a VertexVectorSearch message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.RagVectorDbConfig.VertexVectorSearch + * @static + * @param {Object.<string,*>} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VertexVectorSearch.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) + if (!$util.isString(message.indexEndpoint)) + return "indexEndpoint: string expected"; + if (message.index != null && message.hasOwnProperty("index")) + if (!$util.isString(message.index)) + return "index: string expected"; + return null; + }; + + /** + * Creates a VertexVectorSearch message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.RagVectorDbConfig.VertexVectorSearch + * @static + * @param {Object.<string,*>} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.RagVectorDbConfig.VertexVectorSearch} VertexVectorSearch + */ + VertexVectorSearch.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.VertexVectorSearch) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.VertexVectorSearch(); + if (object.indexEndpoint != null) + message.indexEndpoint = String(object.indexEndpoint); + if (object.index != null) + message.index = String(object.index); + return message; + }; + + /** + * Creates a plain object from a VertexVectorSearch message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.RagVectorDbConfig.VertexVectorSearch + * @static + * @param {google.cloud.aiplatform.v1beta1.RagVectorDbConfig.VertexVectorSearch} message VertexVectorSearch + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.<string,*>} Plain object + */ + VertexVectorSearch.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.indexEndpoint = ""; + object.index = ""; + } + if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) + object.indexEndpoint = message.indexEndpoint; + if (message.index != null && message.hasOwnProperty("index")) + object.index = message.index; + return object; + }; + + /** + * Converts this VertexVectorSearch to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.RagVectorDbConfig.VertexVectorSearch + * @instance + * @returns {Object.<string,*>} JSON object + */ + VertexVectorSearch.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for VertexVectorSearch + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.RagVectorDbConfig.VertexVectorSearch + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + VertexVectorSearch.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.RagVectorDbConfig.VertexVectorSearch"; + }; + + return VertexVectorSearch; + })(); + return RagVectorDbConfig; })(); @@ -627065,6 +632392,7 @@ * @property {google.cloud.aiplatform.v1beta1.IDirectUploadSource|null} [directUploadSource] RagFile directUploadSource * @property {google.cloud.aiplatform.v1beta1.ISlackSource|null} [slackSource] RagFile slackSource * @property {google.cloud.aiplatform.v1beta1.IJiraSource|null} [jiraSource] RagFile jiraSource + * @property {google.cloud.aiplatform.v1beta1.ISharePointSources|null} [sharePointSources] RagFile sharePointSources * @property {string|null} [name] RagFile name * @property {string|null} [displayName] RagFile displayName * @property {string|null} [description] RagFile description @@ -627130,6 +632458,14 @@ */ RagFile.prototype.jiraSource = null; + /** + * RagFile sharePointSources. + * @member {google.cloud.aiplatform.v1beta1.ISharePointSources|null|undefined} sharePointSources + * @memberof google.cloud.aiplatform.v1beta1.RagFile + * @instance + */ + RagFile.prototype.sharePointSources = null; + /** * RagFile name. * @member {string} name @@ -627199,12 +632535,12 @@ /** * RagFile ragFileSource. - * @member {"gcsSource"|"googleDriveSource"|"directUploadSource"|"slackSource"|"jiraSource"|undefined} ragFileSource + * @member {"gcsSource"|"googleDriveSource"|"directUploadSource"|"slackSource"|"jiraSource"|"sharePointSources"|undefined} ragFileSource * @memberof google.cloud.aiplatform.v1beta1.RagFile * @instance */ Object.defineProperty(RagFile.prototype, "ragFileSource", { - get: $util.oneOfGetter($oneOfFields = ["gcsSource", "googleDriveSource", "directUploadSource", "slackSource", "jiraSource"]), + get: $util.oneOfGetter($oneOfFields = ["gcsSource", "googleDriveSource", "directUploadSource", "slackSource", "jiraSource", "sharePointSources"]), set: $util.oneOfSetter($oneOfFields) }); @@ -627258,6 +632594,8 @@ $root.google.cloud.aiplatform.v1beta1.JiraSource.encode(message.jiraSource, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); if (message.fileStatus != null && Object.hasOwnProperty.call(message, "fileStatus")) $root.google.cloud.aiplatform.v1beta1.FileStatus.encode(message.fileStatus, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.sharePointSources != null && Object.hasOwnProperty.call(message, "sharePointSources")) + $root.google.cloud.aiplatform.v1beta1.SharePointSources.encode(message.sharePointSources, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); return writer; }; @@ -627312,6 +632650,10 @@ message.jiraSource = $root.google.cloud.aiplatform.v1beta1.JiraSource.decode(reader, reader.uint32()); break; } + case 14: { + message.sharePointSources = $root.google.cloud.aiplatform.v1beta1.SharePointSources.decode(reader, reader.uint32()); + break; + } case 1: { message.name = reader.string(); break; @@ -627428,6 +632770,16 @@ return "jiraSource." + error; } } + if (message.sharePointSources != null && message.hasOwnProperty("sharePointSources")) { + if (properties.ragFileSource === 1) + return "ragFileSource: multiple values"; + properties.ragFileSource = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.SharePointSources.verify(message.sharePointSources); + if (error) + return "sharePointSources." + error; + } + } if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; @@ -627504,6 +632856,11 @@ throw TypeError(".google.cloud.aiplatform.v1beta1.RagFile.jiraSource: object expected"); message.jiraSource = $root.google.cloud.aiplatform.v1beta1.JiraSource.fromObject(object.jiraSource); } + if (object.sharePointSources != null) { + if (typeof object.sharePointSources !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.RagFile.sharePointSources: object expected"); + message.sharePointSources = $root.google.cloud.aiplatform.v1beta1.SharePointSources.fromObject(object.sharePointSources); + } if (object.name != null) message.name = String(object.name); if (object.displayName != null) @@ -627628,6 +632985,11 @@ } if (message.fileStatus != null && message.hasOwnProperty("fileStatus")) object.fileStatus = $root.google.cloud.aiplatform.v1beta1.FileStatus.toObject(message.fileStatus, options); + if (message.sharePointSources != null && message.hasOwnProperty("sharePointSources")) { + object.sharePointSources = $root.google.cloud.aiplatform.v1beta1.SharePointSources.toObject(message.sharePointSources, options); + if (options.oneofs) + object.ragFileSource = "sharePointSources"; + } return object; }; @@ -628324,6 +633686,9 @@ * @property {google.cloud.aiplatform.v1beta1.IGoogleDriveSource|null} [googleDriveSource] ImportRagFilesConfig googleDriveSource * @property {google.cloud.aiplatform.v1beta1.ISlackSource|null} [slackSource] ImportRagFilesConfig slackSource * @property {google.cloud.aiplatform.v1beta1.IJiraSource|null} [jiraSource] ImportRagFilesConfig jiraSource + * @property {google.cloud.aiplatform.v1beta1.ISharePointSources|null} [sharePointSources] ImportRagFilesConfig sharePointSources + * @property {google.cloud.aiplatform.v1beta1.IGcsDestination|null} [partialFailureGcsSink] ImportRagFilesConfig partialFailureGcsSink + * @property {google.cloud.aiplatform.v1beta1.IBigQueryDestination|null} [partialFailureBigquerySink] ImportRagFilesConfig partialFailureBigquerySink * @property {google.cloud.aiplatform.v1beta1.IRagFileChunkingConfig|null} [ragFileChunkingConfig] ImportRagFilesConfig ragFileChunkingConfig * @property {google.cloud.aiplatform.v1beta1.IRagFileParsingConfig|null} [ragFileParsingConfig] ImportRagFilesConfig ragFileParsingConfig * @property {number|null} [maxEmbeddingRequestsPerMin] ImportRagFilesConfig maxEmbeddingRequestsPerMin @@ -628376,6 +633741,30 @@ */ ImportRagFilesConfig.prototype.jiraSource = null; + /** + * ImportRagFilesConfig sharePointSources. + * @member {google.cloud.aiplatform.v1beta1.ISharePointSources|null|undefined} sharePointSources + * @memberof google.cloud.aiplatform.v1beta1.ImportRagFilesConfig + * @instance + */ + ImportRagFilesConfig.prototype.sharePointSources = null; + + /** + * ImportRagFilesConfig partialFailureGcsSink. + * @member {google.cloud.aiplatform.v1beta1.IGcsDestination|null|undefined} partialFailureGcsSink + * @memberof google.cloud.aiplatform.v1beta1.ImportRagFilesConfig + * @instance + */ + ImportRagFilesConfig.prototype.partialFailureGcsSink = null; + + /** + * ImportRagFilesConfig partialFailureBigquerySink. + * @member {google.cloud.aiplatform.v1beta1.IBigQueryDestination|null|undefined} partialFailureBigquerySink + * @memberof google.cloud.aiplatform.v1beta1.ImportRagFilesConfig + * @instance + */ + ImportRagFilesConfig.prototype.partialFailureBigquerySink = null; + /** * ImportRagFilesConfig ragFileChunkingConfig. * @member {google.cloud.aiplatform.v1beta1.IRagFileChunkingConfig|null|undefined} ragFileChunkingConfig @@ -628405,12 +633794,23 @@ /** * ImportRagFilesConfig importSource. - * @member {"gcsSource"|"googleDriveSource"|"slackSource"|"jiraSource"|undefined} importSource + * @member {"gcsSource"|"googleDriveSource"|"slackSource"|"jiraSource"|"sharePointSources"|undefined} importSource * @memberof google.cloud.aiplatform.v1beta1.ImportRagFilesConfig * @instance */ Object.defineProperty(ImportRagFilesConfig.prototype, "importSource", { - get: $util.oneOfGetter($oneOfFields = ["gcsSource", "googleDriveSource", "slackSource", "jiraSource"]), + get: $util.oneOfGetter($oneOfFields = ["gcsSource", "googleDriveSource", "slackSource", "jiraSource", "sharePointSources"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * ImportRagFilesConfig partialFailureSink. + * @member {"partialFailureGcsSink"|"partialFailureBigquerySink"|undefined} partialFailureSink + * @memberof google.cloud.aiplatform.v1beta1.ImportRagFilesConfig + * @instance + */ + Object.defineProperty(ImportRagFilesConfig.prototype, "partialFailureSink", { + get: $util.oneOfGetter($oneOfFields = ["partialFailureGcsSink", "partialFailureBigquerySink"]), set: $util.oneOfSetter($oneOfFields) }); @@ -628452,6 +633852,12 @@ $root.google.cloud.aiplatform.v1beta1.JiraSource.encode(message.jiraSource, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); if (message.ragFileParsingConfig != null && Object.hasOwnProperty.call(message, "ragFileParsingConfig")) $root.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.encode(message.ragFileParsingConfig, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.partialFailureGcsSink != null && Object.hasOwnProperty.call(message, "partialFailureGcsSink")) + $root.google.cloud.aiplatform.v1beta1.GcsDestination.encode(message.partialFailureGcsSink, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.partialFailureBigquerySink != null && Object.hasOwnProperty.call(message, "partialFailureBigquerySink")) + $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.encode(message.partialFailureBigquerySink, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.sharePointSources != null && Object.hasOwnProperty.call(message, "sharePointSources")) + $root.google.cloud.aiplatform.v1beta1.SharePointSources.encode(message.sharePointSources, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); return writer; }; @@ -628502,6 +633908,18 @@ message.jiraSource = $root.google.cloud.aiplatform.v1beta1.JiraSource.decode(reader, reader.uint32()); break; } + case 13: { + message.sharePointSources = $root.google.cloud.aiplatform.v1beta1.SharePointSources.decode(reader, reader.uint32()); + break; + } + case 11: { + message.partialFailureGcsSink = $root.google.cloud.aiplatform.v1beta1.GcsDestination.decode(reader, reader.uint32()); + break; + } + case 12: { + message.partialFailureBigquerySink = $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.decode(reader, reader.uint32()); + break; + } case 4: { message.ragFileChunkingConfig = $root.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.decode(reader, reader.uint32()); break; @@ -628588,6 +634006,34 @@ return "jiraSource." + error; } } + if (message.sharePointSources != null && message.hasOwnProperty("sharePointSources")) { + if (properties.importSource === 1) + return "importSource: multiple values"; + properties.importSource = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.SharePointSources.verify(message.sharePointSources); + if (error) + return "sharePointSources." + error; + } + } + if (message.partialFailureGcsSink != null && message.hasOwnProperty("partialFailureGcsSink")) { + properties.partialFailureSink = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.GcsDestination.verify(message.partialFailureGcsSink); + if (error) + return "partialFailureGcsSink." + error; + } + } + if (message.partialFailureBigquerySink != null && message.hasOwnProperty("partialFailureBigquerySink")) { + if (properties.partialFailureSink === 1) + return "partialFailureSink: multiple values"; + properties.partialFailureSink = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.verify(message.partialFailureBigquerySink); + if (error) + return "partialFailureBigquerySink." + error; + } + } if (message.ragFileChunkingConfig != null && message.hasOwnProperty("ragFileChunkingConfig")) { var error = $root.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.verify(message.ragFileChunkingConfig); if (error) @@ -628636,6 +634082,21 @@ throw TypeError(".google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.jiraSource: object expected"); message.jiraSource = $root.google.cloud.aiplatform.v1beta1.JiraSource.fromObject(object.jiraSource); } + if (object.sharePointSources != null) { + if (typeof object.sharePointSources !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.sharePointSources: object expected"); + message.sharePointSources = $root.google.cloud.aiplatform.v1beta1.SharePointSources.fromObject(object.sharePointSources); + } + if (object.partialFailureGcsSink != null) { + if (typeof object.partialFailureGcsSink !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.partialFailureGcsSink: object expected"); + message.partialFailureGcsSink = $root.google.cloud.aiplatform.v1beta1.GcsDestination.fromObject(object.partialFailureGcsSink); + } + if (object.partialFailureBigquerySink != null) { + if (typeof object.partialFailureBigquerySink !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.partialFailureBigquerySink: object expected"); + message.partialFailureBigquerySink = $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.fromObject(object.partialFailureBigquerySink); + } if (object.ragFileChunkingConfig != null) { if (typeof object.ragFileChunkingConfig !== "object") throw TypeError(".google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.ragFileChunkingConfig: object expected"); @@ -628695,6 +634156,21 @@ } if (message.ragFileParsingConfig != null && message.hasOwnProperty("ragFileParsingConfig")) object.ragFileParsingConfig = $root.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.toObject(message.ragFileParsingConfig, options); + if (message.partialFailureGcsSink != null && message.hasOwnProperty("partialFailureGcsSink")) { + object.partialFailureGcsSink = $root.google.cloud.aiplatform.v1beta1.GcsDestination.toObject(message.partialFailureGcsSink, options); + if (options.oneofs) + object.partialFailureSink = "partialFailureGcsSink"; + } + if (message.partialFailureBigquerySink != null && message.hasOwnProperty("partialFailureBigquerySink")) { + object.partialFailureBigquerySink = $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.toObject(message.partialFailureBigquerySink, options); + if (options.oneofs) + object.partialFailureSink = "partialFailureBigquerySink"; + } + if (message.sharePointSources != null && message.hasOwnProperty("sharePointSources")) { + object.sharePointSources = $root.google.cloud.aiplatform.v1beta1.SharePointSources.toObject(message.sharePointSources, options); + if (options.oneofs) + object.importSource = "sharePointSources"; + } return object; }; @@ -631012,6 +636488,8 @@ * Properties of an ImportRagFilesResponse. * @memberof google.cloud.aiplatform.v1beta1 * @interface IImportRagFilesResponse + * @property {string|null} [partialFailuresGcsPath] ImportRagFilesResponse partialFailuresGcsPath + * @property {string|null} [partialFailuresBigqueryTable] ImportRagFilesResponse partialFailuresBigqueryTable * @property {number|Long|null} [importedRagFilesCount] ImportRagFilesResponse importedRagFilesCount * @property {number|Long|null} [failedRagFilesCount] ImportRagFilesResponse failedRagFilesCount * @property {number|Long|null} [skippedRagFilesCount] ImportRagFilesResponse skippedRagFilesCount @@ -631032,6 +636510,22 @@ this[keys[i]] = properties[keys[i]]; } + /** + * ImportRagFilesResponse partialFailuresGcsPath. + * @member {string|null|undefined} partialFailuresGcsPath + * @memberof google.cloud.aiplatform.v1beta1.ImportRagFilesResponse + * @instance + */ + ImportRagFilesResponse.prototype.partialFailuresGcsPath = null; + + /** + * ImportRagFilesResponse partialFailuresBigqueryTable. + * @member {string|null|undefined} partialFailuresBigqueryTable + * @memberof google.cloud.aiplatform.v1beta1.ImportRagFilesResponse + * @instance + */ + ImportRagFilesResponse.prototype.partialFailuresBigqueryTable = null; + /** * ImportRagFilesResponse importedRagFilesCount. * @member {number|Long} importedRagFilesCount @@ -631056,6 +636550,20 @@ */ ImportRagFilesResponse.prototype.skippedRagFilesCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ImportRagFilesResponse partialFailureSink. + * @member {"partialFailuresGcsPath"|"partialFailuresBigqueryTable"|undefined} partialFailureSink + * @memberof google.cloud.aiplatform.v1beta1.ImportRagFilesResponse + * @instance + */ + Object.defineProperty(ImportRagFilesResponse.prototype, "partialFailureSink", { + get: $util.oneOfGetter($oneOfFields = ["partialFailuresGcsPath", "partialFailuresBigqueryTable"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new ImportRagFilesResponse instance using the specified properties. * @function create @@ -631086,6 +636594,10 @@ writer.uint32(/* id 2, wireType 0 =*/16).int64(message.failedRagFilesCount); if (message.skippedRagFilesCount != null && Object.hasOwnProperty.call(message, "skippedRagFilesCount")) writer.uint32(/* id 3, wireType 0 =*/24).int64(message.skippedRagFilesCount); + if (message.partialFailuresGcsPath != null && Object.hasOwnProperty.call(message, "partialFailuresGcsPath")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.partialFailuresGcsPath); + if (message.partialFailuresBigqueryTable != null && Object.hasOwnProperty.call(message, "partialFailuresBigqueryTable")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.partialFailuresBigqueryTable); return writer; }; @@ -631120,6 +636632,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 4: { + message.partialFailuresGcsPath = reader.string(); + break; + } + case 5: { + message.partialFailuresBigqueryTable = reader.string(); + break; + } case 1: { message.importedRagFilesCount = reader.int64(); break; @@ -631167,6 +636687,19 @@ ImportRagFilesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + var properties = {}; + if (message.partialFailuresGcsPath != null && message.hasOwnProperty("partialFailuresGcsPath")) { + properties.partialFailureSink = 1; + if (!$util.isString(message.partialFailuresGcsPath)) + return "partialFailuresGcsPath: string expected"; + } + if (message.partialFailuresBigqueryTable != null && message.hasOwnProperty("partialFailuresBigqueryTable")) { + if (properties.partialFailureSink === 1) + return "partialFailureSink: multiple values"; + properties.partialFailureSink = 1; + if (!$util.isString(message.partialFailuresBigqueryTable)) + return "partialFailuresBigqueryTable: string expected"; + } if (message.importedRagFilesCount != null && message.hasOwnProperty("importedRagFilesCount")) if (!$util.isInteger(message.importedRagFilesCount) && !(message.importedRagFilesCount && $util.isInteger(message.importedRagFilesCount.low) && $util.isInteger(message.importedRagFilesCount.high))) return "importedRagFilesCount: integer|Long expected"; @@ -631191,6 +636724,10 @@ if (object instanceof $root.google.cloud.aiplatform.v1beta1.ImportRagFilesResponse) return object; var message = new $root.google.cloud.aiplatform.v1beta1.ImportRagFilesResponse(); + if (object.partialFailuresGcsPath != null) + message.partialFailuresGcsPath = String(object.partialFailuresGcsPath); + if (object.partialFailuresBigqueryTable != null) + message.partialFailuresBigqueryTable = String(object.partialFailuresBigqueryTable); if (object.importedRagFilesCount != null) if ($util.Long) (message.importedRagFilesCount = $util.Long.fromValue(object.importedRagFilesCount)).unsigned = false; @@ -631266,6 +636803,16 @@ object.skippedRagFilesCount = options.longs === String ? String(message.skippedRagFilesCount) : message.skippedRagFilesCount; else object.skippedRagFilesCount = options.longs === String ? $util.Long.prototype.toString.call(message.skippedRagFilesCount) : options.longs === Number ? new $util.LongBits(message.skippedRagFilesCount.low >>> 0, message.skippedRagFilesCount.high >>> 0).toNumber() : message.skippedRagFilesCount; + if (message.partialFailuresGcsPath != null && message.hasOwnProperty("partialFailuresGcsPath")) { + object.partialFailuresGcsPath = message.partialFailuresGcsPath; + if (options.oneofs) + object.partialFailureSink = "partialFailuresGcsPath"; + } + if (message.partialFailuresBigqueryTable != null && message.hasOwnProperty("partialFailuresBigqueryTable")) { + object.partialFailuresBigqueryTable = message.partialFailuresBigqueryTable; + if (options.oneofs) + object.partialFailureSink = "partialFailuresBigqueryTable"; + } return object; }; diff --git a/packages/google-cloud-aiplatform/protos/protos.json b/packages/google-cloud-aiplatform/protos/protos.json index 4f5f0629d79..305be1f321f 100644 --- a/packages/google-cloud-aiplatform/protos/protos.json +++ b/packages/google-cloud-aiplatform/protos/protos.json @@ -2204,7 +2204,8 @@ "HARM_CATEGORY_HATE_SPEECH": 1, "HARM_CATEGORY_DANGEROUS_CONTENT": 2, "HARM_CATEGORY_HARASSMENT": 3, - "HARM_CATEGORY_SEXUALLY_EXPLICIT": 4 + "HARM_CATEGORY_SEXUALLY_EXPLICIT": 4, + "HARM_CATEGORY_CIVIC_INTEGRITY": 5 } }, "Content": { @@ -2369,6 +2370,16 @@ "maxOutputTokens" ] }, + "_responseLogprobs": { + "oneof": [ + "responseLogprobs" + ] + }, + "_logprobs": { + "oneof": [ + "logprobs" + ] + }, "_presencePenalty": { "oneof": [ "presencePenalty" @@ -2444,6 +2455,22 @@ "(google.api.field_behavior)": "OPTIONAL" } }, + "responseLogprobs": { + "type": "bool", + "id": 18, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true + } + }, + "logprobs": { + "type": "int32", + "id": 7, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true + } + }, "presencePenalty": { "type": "float", "id": 8, @@ -2594,7 +2621,8 @@ "BLOCK_LOW_AND_ABOVE": 1, "BLOCK_MEDIUM_AND_ABOVE": 2, "BLOCK_ONLY_HIGH": 3, - "BLOCK_NONE": 4 + "BLOCK_NONE": 4, + "OFF": 5 } }, "HarmBlockMethod": { @@ -2767,6 +2795,13 @@ "(google.api.field_behavior)": "OUTPUT_ONLY" } }, + "logprobsResult": { + "type": "LogprobsResult", + "id": 10, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, "finishReason": { "type": "FinishReason", "id": 3, @@ -2822,6 +2857,73 @@ } } }, + "LogprobsResult": { + "fields": { + "topCandidates": { + "rule": "repeated", + "type": "TopCandidates", + "id": 1 + }, + "chosenCandidates": { + "rule": "repeated", + "type": "Candidate", + "id": 2 + } + }, + "nested": { + "Candidate": { + "oneofs": { + "_token": { + "oneof": [ + "token" + ] + }, + "_tokenId": { + "oneof": [ + "tokenId" + ] + }, + "_logProbability": { + "oneof": [ + "logProbability" + ] + } + }, + "fields": { + "token": { + "type": "string", + "id": 1, + "options": { + "proto3_optional": true + } + }, + "tokenId": { + "type": "int32", + "id": 3, + "options": { + "proto3_optional": true + } + }, + "logProbability": { + "type": "float", + "id": 2, + "options": { + "proto3_optional": true + } + } + } + }, + "TopCandidates": { + "fields": { + "candidates": { + "rule": "repeated", + "type": "Candidate", + "id": 1 + } + } + } + } + }, "Segment": { "fields": { "partIndex": { @@ -3114,6 +3216,14 @@ "(google.api.field_behavior)": "OPTIONAL" } }, + "propertyOrdering": { + "rule": "repeated", + "type": "string", + "id": 25, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, "required": { "rule": "repeated", "type": "string", @@ -3177,6 +3287,14 @@ "options": { "(google.api.field_behavior)": "OPTIONAL" } + }, + "anyOf": { + "rule": "repeated", + "type": "Schema", + "id": 11, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } }, @@ -20117,6 +20235,11 @@ "oneof": [ "systemInstruction" ] + }, + "_generationConfig": { + "oneof": [ + "generationConfig" + ] } }, "fields": { @@ -20166,6 +20289,14 @@ "options": { "(google.api.field_behavior)": "OPTIONAL" } + }, + "generationConfig": { + "type": "GenerationConfig", + "id": 7, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true + } } } }, @@ -20228,6 +20359,14 @@ "(google.api.field_behavior)": "OPTIONAL" } }, + "labels": { + "keyType": "string", + "type": "string", + "id": 10, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, "safetySettings": { "rule": "repeated", "type": "SafetySetting", @@ -20255,6 +20394,13 @@ "(google.api.field_behavior)": "OUTPUT_ONLY" } }, + "modelVersion": { + "type": "string", + "id": 11, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, "promptFeedback": { "type": "PromptFeedback", "id": 3, @@ -33448,6 +33594,74 @@ } } }, + "SharePointSources": { + "fields": { + "sharePointSources": { + "rule": "repeated", + "type": "SharePointSource", + "id": 1 + } + }, + "nested": { + "SharePointSource": { + "oneofs": { + "folderSource": { + "oneof": [ + "sharepointFolderPath", + "sharepointFolderId" + ] + }, + "driveSource": { + "oneof": [ + "driveName", + "driveId" + ] + } + }, + "fields": { + "sharepointFolderPath": { + "type": "string", + "id": 5 + }, + "sharepointFolderId": { + "type": "string", + "id": 6 + }, + "driveName": { + "type": "string", + "id": 7 + }, + "driveId": { + "type": "string", + "id": 8 + }, + "clientId": { + "type": "string", + "id": 1 + }, + "clientSecret": { + "type": "ApiAuth.ApiKeyConfig", + "id": 2 + }, + "tenantId": { + "type": "string", + "id": 3 + }, + "sharepointSiteName": { + "type": "string", + "id": 4 + }, + "fileId": { + "type": "string", + "id": 9, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + } + } + }, "JobState": { "values": { "JOB_STATE_UNSPECIFIED": 0, @@ -34968,7 +35182,8 @@ "HARM_CATEGORY_HATE_SPEECH": 1, "HARM_CATEGORY_DANGEROUS_CONTENT": 2, "HARM_CATEGORY_HARASSMENT": 3, - "HARM_CATEGORY_SEXUALLY_EXPLICIT": 4 + "HARM_CATEGORY_SEXUALLY_EXPLICIT": 4, + "HARM_CATEGORY_CIVIC_INTEGRITY": 5 } }, "Content": { @@ -35133,6 +35348,16 @@ "maxOutputTokens" ] }, + "_responseLogprobs": { + "oneof": [ + "responseLogprobs" + ] + }, + "_logprobs": { + "oneof": [ + "logprobs" + ] + }, "_presencePenalty": { "oneof": [ "presencePenalty" @@ -35208,6 +35433,22 @@ "(google.api.field_behavior)": "OPTIONAL" } }, + "responseLogprobs": { + "type": "bool", + "id": 18, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true + } + }, + "logprobs": { + "type": "int32", + "id": 7, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true + } + }, "presencePenalty": { "type": "float", "id": 8, @@ -35358,7 +35599,8 @@ "BLOCK_LOW_AND_ABOVE": 1, "BLOCK_MEDIUM_AND_ABOVE": 2, "BLOCK_ONLY_HIGH": 3, - "BLOCK_NONE": 4 + "BLOCK_NONE": 4, + "OFF": 5 } }, "HarmBlockMethod": { @@ -35524,6 +35766,13 @@ "(google.api.field_behavior)": "OUTPUT_ONLY" } }, + "logprobsResult": { + "type": "LogprobsResult", + "id": 10, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, "finishReason": { "type": "FinishReason", "id": 3, @@ -35579,6 +35828,73 @@ } } }, + "LogprobsResult": { + "fields": { + "topCandidates": { + "rule": "repeated", + "type": "TopCandidates", + "id": 1 + }, + "chosenCandidates": { + "rule": "repeated", + "type": "Candidate", + "id": 2 + } + }, + "nested": { + "Candidate": { + "oneofs": { + "_token": { + "oneof": [ + "token" + ] + }, + "_tokenId": { + "oneof": [ + "tokenId" + ] + }, + "_logProbability": { + "oneof": [ + "logProbability" + ] + } + }, + "fields": { + "token": { + "type": "string", + "id": 1, + "options": { + "proto3_optional": true + } + }, + "tokenId": { + "type": "int32", + "id": 3, + "options": { + "proto3_optional": true + } + }, + "logProbability": { + "type": "float", + "id": 2, + "options": { + "proto3_optional": true + } + } + } + }, + "TopCandidates": { + "fields": { + "candidates": { + "rule": "repeated", + "type": "Candidate", + "id": 1 + } + } + } + } + }, "Segment": { "fields": { "partIndex": { @@ -35879,6 +36195,14 @@ "(google.api.field_behavior)": "OPTIONAL" } }, + "propertyOrdering": { + "rule": "repeated", + "type": "string", + "id": 25, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, "required": { "rule": "repeated", "type": "string", @@ -35942,6 +36266,14 @@ "options": { "(google.api.field_behavior)": "OPTIONAL" } + }, + "anyOf": { + "rule": "repeated", + "type": "Schema", + "id": 11, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } }, @@ -39066,6 +39398,24 @@ } } }, + "PSCAutomationConfig": { + "fields": { + "projectId": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "network": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "PrivateServiceConnectConfig": { "fields": { "enablePrivateServiceConnect": { @@ -50496,6 +50846,14 @@ "options": { "(google.api.field_behavior)": "OPTIONAL" } + }, + "pscAutomationConfigs": { + "rule": "repeated", + "type": "PSCAutomationConfig", + "id": 19, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } }, @@ -61018,6 +61376,21 @@ "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } + }, + "originalPipelineJobId": { + "type": "int64", + "id": 29, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "pipelineTaskRerunConfigs": { + "rule": "repeated", + "type": "PipelineTaskRerunConfig", + "id": 30, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } }, "nested": { @@ -61342,6 +61715,79 @@ } } }, + "PipelineTaskRerunConfig": { + "fields": { + "taskId": { + "type": "int64", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "taskName": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "inputs": { + "type": "Inputs", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "skipTask": { + "type": "bool", + "id": 4, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "skipDownstreamTasks": { + "type": "bool", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + }, + "nested": { + "ArtifactList": { + "fields": { + "artifacts": { + "rule": "repeated", + "type": "RuntimeArtifact", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, + "Inputs": { + "fields": { + "artifacts": { + "keyType": "string", + "type": "ArtifactList", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "parameterValues": { + "keyType": "string", + "type": "google.protobuf.Value", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + } + } + }, "PipelineState": { "values": { "PIPELINE_STATE_UNSPECIFIED": 0, @@ -61355,6 +61801,74 @@ "PIPELINE_STATE_PAUSED": 8 } }, + "ArtifactTypeSchema": { + "oneofs": { + "kind": { + "oneof": [ + "schemaTitle", + "schemaUri", + "instanceSchema" + ] + } + }, + "fields": { + "schemaTitle": { + "type": "string", + "id": 1 + }, + "schemaUri": { + "type": "string", + "id": 2, + "options": { + "deprecated": true + } + }, + "instanceSchema": { + "type": "string", + "id": 3 + }, + "schemaVersion": { + "type": "string", + "id": 4 + } + } + }, + "RuntimeArtifact": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "type": { + "type": "ArtifactTypeSchema", + "id": 2 + }, + "uri": { + "type": "string", + "id": 3 + }, + "properties": { + "keyType": "string", + "type": "Value", + "id": 4, + "options": { + "deprecated": true + } + }, + "customProperties": { + "keyType": "string", + "type": "Value", + "id": 5, + "options": { + "deprecated": true + } + }, + "metadata": { + "type": "google.protobuf.Struct", + "id": 6 + } + } + }, "Value": { "oneofs": { "value": { @@ -62894,6 +63408,11 @@ "oneof": [ "systemInstruction" ] + }, + "_generationConfig": { + "oneof": [ + "generationConfig" + ] } }, "fields": { @@ -62943,6 +63462,14 @@ "options": { "(google.api.field_behavior)": "OPTIONAL" } + }, + "generationConfig": { + "type": "GenerationConfig", + "id": 7, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true + } } } }, @@ -63013,6 +63540,14 @@ "(google.api.field_behavior)": "OPTIONAL" } }, + "labels": { + "keyType": "string", + "type": "string", + "id": 10, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, "safetySettings": { "rule": "repeated", "type": "SafetySetting", @@ -63040,6 +63575,13 @@ "(google.api.field_behavior)": "OUTPUT_ONLY" } }, + "modelVersion": { + "type": "string", + "id": 11, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, "promptFeedback": { "type": "PromptFeedback", "id": 3, @@ -67986,7 +68528,9 @@ "oneof": [ "ragManagedDb", "weaviate", - "vertexFeatureStore" + "pinecone", + "vertexFeatureStore", + "vertexVectorSearch" ] } }, @@ -67999,10 +68543,18 @@ "type": "Weaviate", "id": 2 }, + "pinecone": { + "type": "Pinecone", + "id": 3 + }, "vertexFeatureStore": { "type": "VertexFeatureStore", "id": 4 }, + "vertexVectorSearch": { + "type": "VertexVectorSearch", + "id": 6 + }, "apiAuth": { "type": "ApiAuth", "id": 5 @@ -68024,6 +68576,14 @@ } } }, + "Pinecone": { + "fields": { + "indexName": { + "type": "string", + "id": 1 + } + } + }, "VertexFeatureStore": { "fields": { "featureViewResourceName": { @@ -68031,6 +68591,18 @@ "id": 1 } } + }, + "VertexVectorSearch": { + "fields": { + "indexEndpoint": { + "type": "string", + "id": 1 + }, + "index": { + "type": "string", + "id": 2 + } + } } } }, @@ -68169,7 +68741,8 @@ "googleDriveSource", "directUploadSource", "slackSource", - "jiraSource" + "jiraSource", + "sharePointSources" ] } }, @@ -68203,6 +68776,10 @@ "type": "JiraSource", "id": 12 }, + "sharePointSources": { + "type": "SharePointSources", + "id": 14 + }, "name": { "type": "string", "id": 1, @@ -68305,7 +68882,14 @@ "gcsSource", "googleDriveSource", "slackSource", - "jiraSource" + "jiraSource", + "sharePointSources" + ] + }, + "partialFailureSink": { + "oneof": [ + "partialFailureGcsSink", + "partialFailureBigquerySink" ] } }, @@ -68326,6 +68910,18 @@ "type": "JiraSource", "id": 7 }, + "sharePointSources": { + "type": "SharePointSources", + "id": 13 + }, + "partialFailureGcsSink": { + "type": "GcsDestination", + "id": 11 + }, + "partialFailureBigquerySink": { + "type": "BigQueryDestination", + "id": 12 + }, "ragFileChunkingConfig": { "type": "RagFileChunkingConfig", "id": 4 @@ -68734,7 +69330,23 @@ } }, "ImportRagFilesResponse": { + "oneofs": { + "partialFailureSink": { + "oneof": [ + "partialFailuresGcsPath", + "partialFailuresBigqueryTable" + ] + } + }, "fields": { + "partialFailuresGcsPath": { + "type": "string", + "id": 4 + }, + "partialFailuresBigqueryTable": { + "type": "string", + "id": 5 + }, "importedRagFilesCount": { "type": "int64", "id": 1 diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/llm_utility_service.count_tokens.js b/packages/google-cloud-aiplatform/samples/generated/v1/llm_utility_service.count_tokens.js index 17f2c026d27..ea7c75e01e3 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/llm_utility_service.count_tokens.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/llm_utility_service.count_tokens.js @@ -63,6 +63,11 @@ function main(endpoint) { * knowledge and scope of the model. */ // const tools = [1,2,3,4] + /** + * Optional. Generation config that the model will use to generate the + * response. + */ + // const generationConfig = {} // Imports the Aiplatform library const {LlmUtilityServiceClient} = require('@google-cloud/aiplatform').v1; diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/prediction_service.generate_content.js b/packages/google-cloud-aiplatform/samples/generated/v1/prediction_service.generate_content.js index 32ab58872c3..faffeba60fd 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/prediction_service.generate_content.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/prediction_service.generate_content.js @@ -63,6 +63,15 @@ function main(model, contents) { * request. */ // const toolConfig = {} + /** + * Optional. The labels with user-defined metadata for the request. It is used + * for billing and reporting only. + * Label keys and values can be no longer than 63 characters + * (Unicode codepoints) and can only contain lowercase letters, numeric + * characters, underscores, and dashes. International characters are allowed. + * Label values are optional. Label keys must start with a letter. + */ + // const labels = [1,2,3,4] /** * Optional. Per request settings for blocking unsafe content. * Enforced on GenerateContentResponse.candidates. diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/prediction_service.stream_generate_content.js b/packages/google-cloud-aiplatform/samples/generated/v1/prediction_service.stream_generate_content.js index 64c2e2dfe2c..1d2990e33db 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/prediction_service.stream_generate_content.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/prediction_service.stream_generate_content.js @@ -63,6 +63,15 @@ function main(model, contents) { * request. */ // const toolConfig = {} + /** + * Optional. The labels with user-defined metadata for the request. It is used + * for billing and reporting only. + * Label keys and values can be no longer than 63 characters + * (Unicode codepoints) and can only contain lowercase letters, numeric + * characters, underscores, and dashes. International characters are allowed. + * Label values are optional. Label keys must start with a letter. + */ + // const labels = [1,2,3,4] /** * Optional. Per request settings for blocking unsafe content. * Enforced on GenerateContentResponse.candidates. diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/snippet_metadata_google.cloud.aiplatform.v1.json b/packages/google-cloud-aiplatform/samples/generated/v1/snippet_metadata_google.cloud.aiplatform.v1.json index 1a35c706923..037085eebd7 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/snippet_metadata_google.cloud.aiplatform.v1.json +++ b/packages/google-cloud-aiplatform/samples/generated/v1/snippet_metadata_google.cloud.aiplatform.v1.json @@ -6514,7 +6514,7 @@ "segments": [ { "start": 25, - "end": 84, + "end": 89, "type": "FULL" } ], @@ -6546,6 +6546,10 @@ { "name": "tools", "type": "TYPE_MESSAGE[]" + }, + { + "name": "generation_config", + "type": ".google.cloud.aiplatform.v1.GenerationConfig" } ], "resultType": ".google.cloud.aiplatform.v1.CountTokensResponse", @@ -11234,7 +11238,7 @@ "segments": [ { "start": 25, - "end": 94, + "end": 103, "type": "FULL" } ], @@ -11263,6 +11267,10 @@ "name": "tool_config", "type": ".google.cloud.aiplatform.v1.ToolConfig" }, + { + "name": "labels", + "type": "TYPE_MESSAGE[]" + }, { "name": "safety_settings", "type": "TYPE_MESSAGE[]" @@ -11298,7 +11306,7 @@ "segments": [ { "start": 25, - "end": 96, + "end": 105, "type": "FULL" } ], @@ -11327,6 +11335,10 @@ "name": "tool_config", "type": ".google.cloud.aiplatform.v1.ToolConfig" }, + { + "name": "labels", + "type": "TYPE_MESSAGE[]" + }, { "name": "safety_settings", "type": "TYPE_MESSAGE[]" diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/prediction_service.chat_completions.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/prediction_service.chat_completions.js index 388810c32c6..4c176772fc2 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/prediction_service.chat_completions.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/prediction_service.chat_completions.js @@ -29,9 +29,9 @@ function main(endpoint) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Required. The name of the Endpoint requested to serve the prediction. + * Required. The name of the endpoint requested to serve the prediction. * Format: - * `projects/{project}/locations/{location}/endpoints/openapi` + * `projects/{project}/locations/{location}/endpoints/{endpoint}` */ // const endpoint = 'abc123' /** diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/prediction_service.count_tokens.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/prediction_service.count_tokens.js index d8a1892aac3..a094732947c 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/prediction_service.count_tokens.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/prediction_service.count_tokens.js @@ -63,6 +63,11 @@ function main(endpoint) { * knowledge and scope of the model. */ // const tools = [1,2,3,4] + /** + * Optional. Generation config that the model will use to generate the + * response. + */ + // const generationConfig = {} // Imports the Aiplatform library const {PredictionServiceClient} = require('@google-cloud/aiplatform').v1beta1; diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/prediction_service.generate_content.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/prediction_service.generate_content.js index 39d964f4c3c..9e81a0c10b8 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/prediction_service.generate_content.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/prediction_service.generate_content.js @@ -29,9 +29,12 @@ function main(model, contents) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Required. The name of the publisher model requested to serve the - * prediction. Format: + * Required. The fully qualified name of the publisher model or tuned model + * endpoint to use. + * Publisher model format: * `projects/{project}/locations/{location}/publishers/* /models/*` + * Tuned model endpoint format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` */ // const model = 'abc123' /** @@ -68,6 +71,15 @@ function main(model, contents) { * request. */ // const toolConfig = {} + /** + * Optional. The labels with user-defined metadata for the request. It is used + * for billing and reporting only. + * Label keys and values can be no longer than 63 characters + * (Unicode codepoints) and can only contain lowercase letters, numeric + * characters, underscores, and dashes. International characters are allowed. + * Label values are optional. Label keys must start with a letter. + */ + // const labels = [1,2,3,4] /** * Optional. Per request settings for blocking unsafe content. * Enforced on GenerateContentResponse.candidates. diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/prediction_service.stream_generate_content.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/prediction_service.stream_generate_content.js index b8ed748e6f2..8dd3defdb0b 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/prediction_service.stream_generate_content.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/prediction_service.stream_generate_content.js @@ -29,9 +29,12 @@ function main(model, contents) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Required. The name of the publisher model requested to serve the - * prediction. Format: + * Required. The fully qualified name of the publisher model or tuned model + * endpoint to use. + * Publisher model format: * `projects/{project}/locations/{location}/publishers/* /models/*` + * Tuned model endpoint format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` */ // const model = 'abc123' /** @@ -68,6 +71,15 @@ function main(model, contents) { * request. */ // const toolConfig = {} + /** + * Optional. The labels with user-defined metadata for the request. It is used + * for billing and reporting only. + * Label keys and values can be no longer than 63 characters + * (Unicode codepoints) and can only contain lowercase letters, numeric + * characters, underscores, and dashes. International characters are allowed. + * Label values are optional. Label keys must start with a letter. + */ + // const labels = [1,2,3,4] /** * Optional. Per request settings for blocking unsafe content. * Enforced on GenerateContentResponse.candidates. 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 75091e1005d..aa840262b82 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 @@ -12362,7 +12362,7 @@ "segments": [ { "start": 25, - "end": 84, + "end": 89, "type": "FULL" } ], @@ -12394,6 +12394,10 @@ { "name": "tools", "type": "TYPE_MESSAGE[]" + }, + { + "name": "generation_config", + "type": ".google.cloud.aiplatform.v1beta1.GenerationConfig" } ], "resultType": ".google.cloud.aiplatform.v1beta1.CountTokensResponse", @@ -12422,7 +12426,7 @@ "segments": [ { "start": 25, - "end": 99, + "end": 111, "type": "FULL" } ], @@ -12455,6 +12459,10 @@ "name": "tool_config", "type": ".google.cloud.aiplatform.v1beta1.ToolConfig" }, + { + "name": "labels", + "type": "TYPE_MESSAGE[]" + }, { "name": "safety_settings", "type": "TYPE_MESSAGE[]" @@ -12490,7 +12498,7 @@ "segments": [ { "start": 25, - "end": 101, + "end": 113, "type": "FULL" } ], @@ -12523,6 +12531,10 @@ "name": "tool_config", "type": ".google.cloud.aiplatform.v1beta1.ToolConfig" }, + { + "name": "labels", + "type": "TYPE_MESSAGE[]" + }, { "name": "safety_settings", "type": "TYPE_MESSAGE[]" diff --git a/packages/google-cloud-aiplatform/src/v1/llm_utility_service_client.ts b/packages/google-cloud-aiplatform/src/v1/llm_utility_service_client.ts index 513be4cbc8c..330dbfb9a45 100644 --- a/packages/google-cloud-aiplatform/src/v1/llm_utility_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/llm_utility_service_client.ts @@ -557,6 +557,9 @@ export class LlmUtilityServiceClient { * A `Tool` is a piece of code that enables the system to interact with * external systems to perform an action, or set of actions, outside of * knowledge and scope of the model. + * @param {google.cloud.aiplatform.v1.GenerationConfig} [request.generationConfig] + * Optional. Generation config that the model will use to generate the + * response. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. diff --git a/packages/google-cloud-aiplatform/src/v1/prediction_service_client.ts b/packages/google-cloud-aiplatform/src/v1/prediction_service_client.ts index 52d23a024d0..0fc3d36241e 100644 --- a/packages/google-cloud-aiplatform/src/v1/prediction_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/prediction_service_client.ts @@ -1166,6 +1166,14 @@ export class PredictionServiceClient { * @param {google.cloud.aiplatform.v1.ToolConfig} [request.toolConfig] * Optional. Tool config. This config is shared for all tools provided in the * request. + * @param {number[]} [request.labels] + * Optional. The labels with user-defined metadata for the request. It is used + * for billing and reporting only. + * + * Label keys and values can be no longer than 63 characters + * (Unicode codepoints) and can only contain lowercase letters, numeric + * characters, underscores, and dashes. International characters are allowed. + * Label values are optional. Label keys must start with a letter. * @param {number[]} [request.safetySettings] * Optional. Per request settings for blocking unsafe content. * Enforced on GenerateContentResponse.candidates. @@ -1443,6 +1451,14 @@ export class PredictionServiceClient { * @param {google.cloud.aiplatform.v1.ToolConfig} [request.toolConfig] * Optional. Tool config. This config is shared for all tools provided in the * request. + * @param {number[]} [request.labels] + * Optional. The labels with user-defined metadata for the request. It is used + * for billing and reporting only. + * + * Label keys and values can be no longer than 63 characters + * (Unicode codepoints) and can only contain lowercase letters, numeric + * characters, underscores, and dashes. International characters are allowed. + * Label values are optional. Label keys must start with a letter. * @param {number[]} [request.safetySettings] * Optional. Per request settings for blocking unsafe content. * Enforced on GenerateContentResponse.candidates. diff --git a/packages/google-cloud-aiplatform/src/v1beta1/dataset_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/dataset_service_proto_list.json index 3255894b4d5..d5e6efb45ff 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/dataset_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/dataset_service_proto_list.json @@ -162,6 +162,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/training_pipeline.proto", "../../protos/google/cloud/aiplatform/v1beta1/tuning_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/types.proto", + "../../protos/google/cloud/aiplatform/v1beta1/ui_pipeline_spec.proto", "../../protos/google/cloud/aiplatform/v1beta1/unmanaged_container_model.proto", "../../protos/google/cloud/aiplatform/v1beta1/user_action_reference.proto", "../../protos/google/cloud/aiplatform/v1beta1/value.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/deployment_resource_pool_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/deployment_resource_pool_service_proto_list.json index 3255894b4d5..d5e6efb45ff 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/deployment_resource_pool_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/deployment_resource_pool_service_proto_list.json @@ -162,6 +162,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/training_pipeline.proto", "../../protos/google/cloud/aiplatform/v1beta1/tuning_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/types.proto", + "../../protos/google/cloud/aiplatform/v1beta1/ui_pipeline_spec.proto", "../../protos/google/cloud/aiplatform/v1beta1/unmanaged_container_model.proto", "../../protos/google/cloud/aiplatform/v1beta1/user_action_reference.proto", "../../protos/google/cloud/aiplatform/v1beta1/value.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/endpoint_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/endpoint_service_proto_list.json index 3255894b4d5..d5e6efb45ff 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/endpoint_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/endpoint_service_proto_list.json @@ -162,6 +162,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/training_pipeline.proto", "../../protos/google/cloud/aiplatform/v1beta1/tuning_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/types.proto", + "../../protos/google/cloud/aiplatform/v1beta1/ui_pipeline_spec.proto", "../../protos/google/cloud/aiplatform/v1beta1/unmanaged_container_model.proto", "../../protos/google/cloud/aiplatform/v1beta1/user_action_reference.proto", "../../protos/google/cloud/aiplatform/v1beta1/value.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/evaluation_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/evaluation_service_proto_list.json index 3255894b4d5..d5e6efb45ff 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/evaluation_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/evaluation_service_proto_list.json @@ -162,6 +162,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/training_pipeline.proto", "../../protos/google/cloud/aiplatform/v1beta1/tuning_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/types.proto", + "../../protos/google/cloud/aiplatform/v1beta1/ui_pipeline_spec.proto", "../../protos/google/cloud/aiplatform/v1beta1/unmanaged_container_model.proto", "../../protos/google/cloud/aiplatform/v1beta1/user_action_reference.proto", "../../protos/google/cloud/aiplatform/v1beta1/value.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/extension_execution_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/extension_execution_service_proto_list.json index 3255894b4d5..d5e6efb45ff 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/extension_execution_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/extension_execution_service_proto_list.json @@ -162,6 +162,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/training_pipeline.proto", "../../protos/google/cloud/aiplatform/v1beta1/tuning_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/types.proto", + "../../protos/google/cloud/aiplatform/v1beta1/ui_pipeline_spec.proto", "../../protos/google/cloud/aiplatform/v1beta1/unmanaged_container_model.proto", "../../protos/google/cloud/aiplatform/v1beta1/user_action_reference.proto", "../../protos/google/cloud/aiplatform/v1beta1/value.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/extension_registry_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/extension_registry_service_proto_list.json index 3255894b4d5..d5e6efb45ff 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/extension_registry_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/extension_registry_service_proto_list.json @@ -162,6 +162,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/training_pipeline.proto", "../../protos/google/cloud/aiplatform/v1beta1/tuning_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/types.proto", + "../../protos/google/cloud/aiplatform/v1beta1/ui_pipeline_spec.proto", "../../protos/google/cloud/aiplatform/v1beta1/unmanaged_container_model.proto", "../../protos/google/cloud/aiplatform/v1beta1/user_action_reference.proto", "../../protos/google/cloud/aiplatform/v1beta1/value.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/feature_online_store_admin_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/feature_online_store_admin_service_proto_list.json index 3255894b4d5..d5e6efb45ff 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/feature_online_store_admin_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/feature_online_store_admin_service_proto_list.json @@ -162,6 +162,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/training_pipeline.proto", "../../protos/google/cloud/aiplatform/v1beta1/tuning_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/types.proto", + "../../protos/google/cloud/aiplatform/v1beta1/ui_pipeline_spec.proto", "../../protos/google/cloud/aiplatform/v1beta1/unmanaged_container_model.proto", "../../protos/google/cloud/aiplatform/v1beta1/user_action_reference.proto", "../../protos/google/cloud/aiplatform/v1beta1/value.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/feature_online_store_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/feature_online_store_service_proto_list.json index 3255894b4d5..d5e6efb45ff 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/feature_online_store_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/feature_online_store_service_proto_list.json @@ -162,6 +162,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/training_pipeline.proto", "../../protos/google/cloud/aiplatform/v1beta1/tuning_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/types.proto", + "../../protos/google/cloud/aiplatform/v1beta1/ui_pipeline_spec.proto", "../../protos/google/cloud/aiplatform/v1beta1/unmanaged_container_model.proto", "../../protos/google/cloud/aiplatform/v1beta1/user_action_reference.proto", "../../protos/google/cloud/aiplatform/v1beta1/value.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/feature_registry_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/feature_registry_service_proto_list.json index 3255894b4d5..d5e6efb45ff 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/feature_registry_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/feature_registry_service_proto_list.json @@ -162,6 +162,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/training_pipeline.proto", "../../protos/google/cloud/aiplatform/v1beta1/tuning_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/types.proto", + "../../protos/google/cloud/aiplatform/v1beta1/ui_pipeline_spec.proto", "../../protos/google/cloud/aiplatform/v1beta1/unmanaged_container_model.proto", "../../protos/google/cloud/aiplatform/v1beta1/user_action_reference.proto", "../../protos/google/cloud/aiplatform/v1beta1/value.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/featurestore_online_serving_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/featurestore_online_serving_service_proto_list.json index 3255894b4d5..d5e6efb45ff 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/featurestore_online_serving_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/featurestore_online_serving_service_proto_list.json @@ -162,6 +162,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/training_pipeline.proto", "../../protos/google/cloud/aiplatform/v1beta1/tuning_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/types.proto", + "../../protos/google/cloud/aiplatform/v1beta1/ui_pipeline_spec.proto", "../../protos/google/cloud/aiplatform/v1beta1/unmanaged_container_model.proto", "../../protos/google/cloud/aiplatform/v1beta1/user_action_reference.proto", "../../protos/google/cloud/aiplatform/v1beta1/value.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/featurestore_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/featurestore_service_proto_list.json index 3255894b4d5..d5e6efb45ff 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/featurestore_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/featurestore_service_proto_list.json @@ -162,6 +162,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/training_pipeline.proto", "../../protos/google/cloud/aiplatform/v1beta1/tuning_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/types.proto", + "../../protos/google/cloud/aiplatform/v1beta1/ui_pipeline_spec.proto", "../../protos/google/cloud/aiplatform/v1beta1/unmanaged_container_model.proto", "../../protos/google/cloud/aiplatform/v1beta1/user_action_reference.proto", "../../protos/google/cloud/aiplatform/v1beta1/value.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/gen_ai_cache_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/gen_ai_cache_service_proto_list.json index 3255894b4d5..d5e6efb45ff 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/gen_ai_cache_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/gen_ai_cache_service_proto_list.json @@ -162,6 +162,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/training_pipeline.proto", "../../protos/google/cloud/aiplatform/v1beta1/tuning_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/types.proto", + "../../protos/google/cloud/aiplatform/v1beta1/ui_pipeline_spec.proto", "../../protos/google/cloud/aiplatform/v1beta1/unmanaged_container_model.proto", "../../protos/google/cloud/aiplatform/v1beta1/user_action_reference.proto", "../../protos/google/cloud/aiplatform/v1beta1/value.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/gen_ai_tuning_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/gen_ai_tuning_service_proto_list.json index 3255894b4d5..d5e6efb45ff 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/gen_ai_tuning_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/gen_ai_tuning_service_proto_list.json @@ -162,6 +162,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/training_pipeline.proto", "../../protos/google/cloud/aiplatform/v1beta1/tuning_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/types.proto", + "../../protos/google/cloud/aiplatform/v1beta1/ui_pipeline_spec.proto", "../../protos/google/cloud/aiplatform/v1beta1/unmanaged_container_model.proto", "../../protos/google/cloud/aiplatform/v1beta1/user_action_reference.proto", "../../protos/google/cloud/aiplatform/v1beta1/value.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/index_endpoint_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/index_endpoint_service_proto_list.json index 3255894b4d5..d5e6efb45ff 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/index_endpoint_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/index_endpoint_service_proto_list.json @@ -162,6 +162,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/training_pipeline.proto", "../../protos/google/cloud/aiplatform/v1beta1/tuning_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/types.proto", + "../../protos/google/cloud/aiplatform/v1beta1/ui_pipeline_spec.proto", "../../protos/google/cloud/aiplatform/v1beta1/unmanaged_container_model.proto", "../../protos/google/cloud/aiplatform/v1beta1/user_action_reference.proto", "../../protos/google/cloud/aiplatform/v1beta1/value.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/index_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/index_service_proto_list.json index 3255894b4d5..d5e6efb45ff 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/index_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/index_service_proto_list.json @@ -162,6 +162,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/training_pipeline.proto", "../../protos/google/cloud/aiplatform/v1beta1/tuning_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/types.proto", + "../../protos/google/cloud/aiplatform/v1beta1/ui_pipeline_spec.proto", "../../protos/google/cloud/aiplatform/v1beta1/unmanaged_container_model.proto", "../../protos/google/cloud/aiplatform/v1beta1/user_action_reference.proto", "../../protos/google/cloud/aiplatform/v1beta1/value.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/job_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/job_service_proto_list.json index 3255894b4d5..d5e6efb45ff 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/job_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/job_service_proto_list.json @@ -162,6 +162,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/training_pipeline.proto", "../../protos/google/cloud/aiplatform/v1beta1/tuning_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/types.proto", + "../../protos/google/cloud/aiplatform/v1beta1/ui_pipeline_spec.proto", "../../protos/google/cloud/aiplatform/v1beta1/unmanaged_container_model.proto", "../../protos/google/cloud/aiplatform/v1beta1/user_action_reference.proto", "../../protos/google/cloud/aiplatform/v1beta1/value.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/llm_utility_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/llm_utility_service_proto_list.json index 3255894b4d5..d5e6efb45ff 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/llm_utility_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/llm_utility_service_proto_list.json @@ -162,6 +162,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/training_pipeline.proto", "../../protos/google/cloud/aiplatform/v1beta1/tuning_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/types.proto", + "../../protos/google/cloud/aiplatform/v1beta1/ui_pipeline_spec.proto", "../../protos/google/cloud/aiplatform/v1beta1/unmanaged_container_model.proto", "../../protos/google/cloud/aiplatform/v1beta1/user_action_reference.proto", "../../protos/google/cloud/aiplatform/v1beta1/value.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/match_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/match_service_proto_list.json index 3255894b4d5..d5e6efb45ff 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/match_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/match_service_proto_list.json @@ -162,6 +162,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/training_pipeline.proto", "../../protos/google/cloud/aiplatform/v1beta1/tuning_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/types.proto", + "../../protos/google/cloud/aiplatform/v1beta1/ui_pipeline_spec.proto", "../../protos/google/cloud/aiplatform/v1beta1/unmanaged_container_model.proto", "../../protos/google/cloud/aiplatform/v1beta1/user_action_reference.proto", "../../protos/google/cloud/aiplatform/v1beta1/value.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/metadata_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/metadata_service_proto_list.json index 3255894b4d5..d5e6efb45ff 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/metadata_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/metadata_service_proto_list.json @@ -162,6 +162,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/training_pipeline.proto", "../../protos/google/cloud/aiplatform/v1beta1/tuning_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/types.proto", + "../../protos/google/cloud/aiplatform/v1beta1/ui_pipeline_spec.proto", "../../protos/google/cloud/aiplatform/v1beta1/unmanaged_container_model.proto", "../../protos/google/cloud/aiplatform/v1beta1/user_action_reference.proto", "../../protos/google/cloud/aiplatform/v1beta1/value.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/migration_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/migration_service_proto_list.json index 3255894b4d5..d5e6efb45ff 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/migration_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/migration_service_proto_list.json @@ -162,6 +162,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/training_pipeline.proto", "../../protos/google/cloud/aiplatform/v1beta1/tuning_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/types.proto", + "../../protos/google/cloud/aiplatform/v1beta1/ui_pipeline_spec.proto", "../../protos/google/cloud/aiplatform/v1beta1/unmanaged_container_model.proto", "../../protos/google/cloud/aiplatform/v1beta1/user_action_reference.proto", "../../protos/google/cloud/aiplatform/v1beta1/value.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/model_garden_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/model_garden_service_proto_list.json index 3255894b4d5..d5e6efb45ff 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/model_garden_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/model_garden_service_proto_list.json @@ -162,6 +162,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/training_pipeline.proto", "../../protos/google/cloud/aiplatform/v1beta1/tuning_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/types.proto", + "../../protos/google/cloud/aiplatform/v1beta1/ui_pipeline_spec.proto", "../../protos/google/cloud/aiplatform/v1beta1/unmanaged_container_model.proto", "../../protos/google/cloud/aiplatform/v1beta1/user_action_reference.proto", "../../protos/google/cloud/aiplatform/v1beta1/value.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/model_monitoring_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/model_monitoring_service_proto_list.json index 3255894b4d5..d5e6efb45ff 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/model_monitoring_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/model_monitoring_service_proto_list.json @@ -162,6 +162,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/training_pipeline.proto", "../../protos/google/cloud/aiplatform/v1beta1/tuning_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/types.proto", + "../../protos/google/cloud/aiplatform/v1beta1/ui_pipeline_spec.proto", "../../protos/google/cloud/aiplatform/v1beta1/unmanaged_container_model.proto", "../../protos/google/cloud/aiplatform/v1beta1/user_action_reference.proto", "../../protos/google/cloud/aiplatform/v1beta1/value.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/model_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/model_service_proto_list.json index 3255894b4d5..d5e6efb45ff 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/model_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/model_service_proto_list.json @@ -162,6 +162,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/training_pipeline.proto", "../../protos/google/cloud/aiplatform/v1beta1/tuning_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/types.proto", + "../../protos/google/cloud/aiplatform/v1beta1/ui_pipeline_spec.proto", "../../protos/google/cloud/aiplatform/v1beta1/unmanaged_container_model.proto", "../../protos/google/cloud/aiplatform/v1beta1/user_action_reference.proto", "../../protos/google/cloud/aiplatform/v1beta1/value.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/notebook_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/notebook_service_proto_list.json index 3255894b4d5..d5e6efb45ff 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/notebook_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/notebook_service_proto_list.json @@ -162,6 +162,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/training_pipeline.proto", "../../protos/google/cloud/aiplatform/v1beta1/tuning_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/types.proto", + "../../protos/google/cloud/aiplatform/v1beta1/ui_pipeline_spec.proto", "../../protos/google/cloud/aiplatform/v1beta1/unmanaged_container_model.proto", "../../protos/google/cloud/aiplatform/v1beta1/user_action_reference.proto", "../../protos/google/cloud/aiplatform/v1beta1/value.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/persistent_resource_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/persistent_resource_service_proto_list.json index 3255894b4d5..d5e6efb45ff 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/persistent_resource_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/persistent_resource_service_proto_list.json @@ -162,6 +162,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/training_pipeline.proto", "../../protos/google/cloud/aiplatform/v1beta1/tuning_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/types.proto", + "../../protos/google/cloud/aiplatform/v1beta1/ui_pipeline_spec.proto", "../../protos/google/cloud/aiplatform/v1beta1/unmanaged_container_model.proto", "../../protos/google/cloud/aiplatform/v1beta1/user_action_reference.proto", "../../protos/google/cloud/aiplatform/v1beta1/value.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/pipeline_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/pipeline_service_proto_list.json index 3255894b4d5..d5e6efb45ff 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/pipeline_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/pipeline_service_proto_list.json @@ -162,6 +162,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/training_pipeline.proto", "../../protos/google/cloud/aiplatform/v1beta1/tuning_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/types.proto", + "../../protos/google/cloud/aiplatform/v1beta1/ui_pipeline_spec.proto", "../../protos/google/cloud/aiplatform/v1beta1/unmanaged_container_model.proto", "../../protos/google/cloud/aiplatform/v1beta1/user_action_reference.proto", "../../protos/google/cloud/aiplatform/v1beta1/value.proto", 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 f87169f1bae..6b14a308210 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/prediction_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/prediction_service_client.ts @@ -1216,6 +1216,9 @@ export class PredictionServiceClient { * A `Tool` is a piece of code that enables the system to interact with * external systems to perform an action, or set of actions, outside of * knowledge and scope of the model. + * @param {google.cloud.aiplatform.v1beta1.GenerationConfig} [request.generationConfig] + * Optional. Generation config that the model will use to generate the + * response. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1305,9 +1308,14 @@ export class PredictionServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.model - * Required. The name of the publisher model requested to serve the - * prediction. Format: + * Required. The fully qualified name of the publisher model or tuned model + * endpoint to use. + * + * Publisher model format: * `projects/{project}/locations/{location}/publishers/* /models/*` + * + * Tuned model endpoint format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` * @param {number[]} request.contents * Required. The content of the current conversation with the model. * @@ -1334,6 +1342,14 @@ export class PredictionServiceClient { * @param {google.cloud.aiplatform.v1beta1.ToolConfig} [request.toolConfig] * Optional. Tool config. This config is shared for all tools provided in the * request. + * @param {number[]} [request.labels] + * Optional. The labels with user-defined metadata for the request. It is used + * for billing and reporting only. + * + * Label keys and values can be no longer than 63 characters + * (Unicode codepoints) and can only contain lowercase letters, numeric + * characters, underscores, and dashes. International characters are allowed. + * Label values are optional. Label keys must start with a letter. * @param {number[]} [request.safetySettings] * Optional. Per request settings for blocking unsafe content. * Enforced on GenerateContentResponse.candidates. @@ -1589,9 +1605,14 @@ export class PredictionServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.model - * Required. The name of the publisher model requested to serve the - * prediction. Format: + * Required. The fully qualified name of the publisher model or tuned model + * endpoint to use. + * + * Publisher model format: * `projects/{project}/locations/{location}/publishers/* /models/*` + * + * Tuned model endpoint format: + * `projects/{project}/locations/{location}/endpoints/{endpoint}` * @param {number[]} request.contents * Required. The content of the current conversation with the model. * @@ -1618,6 +1639,14 @@ export class PredictionServiceClient { * @param {google.cloud.aiplatform.v1beta1.ToolConfig} [request.toolConfig] * Optional. Tool config. This config is shared for all tools provided in the * request. + * @param {number[]} [request.labels] + * Optional. The labels with user-defined metadata for the request. It is used + * for billing and reporting only. + * + * Label keys and values can be no longer than 63 characters + * (Unicode codepoints) and can only contain lowercase letters, numeric + * characters, underscores, and dashes. International characters are allowed. + * Label values are optional. Label keys must start with a letter. * @param {number[]} [request.safetySettings] * Optional. Per request settings for blocking unsafe content. * Enforced on GenerateContentResponse.candidates. @@ -1654,9 +1683,9 @@ export class PredictionServiceClient { * @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. + * Required. The name of the endpoint requested to serve the prediction. * Format: - * `projects/{project}/locations/{location}/endpoints/openapi` + * `projects/{project}/locations/{location}/endpoints/{endpoint}` * @param {google.api.HttpBody} [request.httpBody] * Optional. The prediction input. Supports HTTP headers and arbitrary data * payload. diff --git a/packages/google-cloud-aiplatform/src/v1beta1/prediction_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/prediction_service_proto_list.json index 3255894b4d5..d5e6efb45ff 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/prediction_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/prediction_service_proto_list.json @@ -162,6 +162,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/training_pipeline.proto", "../../protos/google/cloud/aiplatform/v1beta1/tuning_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/types.proto", + "../../protos/google/cloud/aiplatform/v1beta1/ui_pipeline_spec.proto", "../../protos/google/cloud/aiplatform/v1beta1/unmanaged_container_model.proto", "../../protos/google/cloud/aiplatform/v1beta1/user_action_reference.proto", "../../protos/google/cloud/aiplatform/v1beta1/value.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/reasoning_engine_execution_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/reasoning_engine_execution_service_proto_list.json index 3255894b4d5..d5e6efb45ff 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/reasoning_engine_execution_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/reasoning_engine_execution_service_proto_list.json @@ -162,6 +162,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/training_pipeline.proto", "../../protos/google/cloud/aiplatform/v1beta1/tuning_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/types.proto", + "../../protos/google/cloud/aiplatform/v1beta1/ui_pipeline_spec.proto", "../../protos/google/cloud/aiplatform/v1beta1/unmanaged_container_model.proto", "../../protos/google/cloud/aiplatform/v1beta1/user_action_reference.proto", "../../protos/google/cloud/aiplatform/v1beta1/value.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/reasoning_engine_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/reasoning_engine_service_proto_list.json index 3255894b4d5..d5e6efb45ff 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/reasoning_engine_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/reasoning_engine_service_proto_list.json @@ -162,6 +162,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/training_pipeline.proto", "../../protos/google/cloud/aiplatform/v1beta1/tuning_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/types.proto", + "../../protos/google/cloud/aiplatform/v1beta1/ui_pipeline_spec.proto", "../../protos/google/cloud/aiplatform/v1beta1/unmanaged_container_model.proto", "../../protos/google/cloud/aiplatform/v1beta1/user_action_reference.proto", "../../protos/google/cloud/aiplatform/v1beta1/value.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/schedule_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/schedule_service_proto_list.json index 3255894b4d5..d5e6efb45ff 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/schedule_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/schedule_service_proto_list.json @@ -162,6 +162,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/training_pipeline.proto", "../../protos/google/cloud/aiplatform/v1beta1/tuning_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/types.proto", + "../../protos/google/cloud/aiplatform/v1beta1/ui_pipeline_spec.proto", "../../protos/google/cloud/aiplatform/v1beta1/unmanaged_container_model.proto", "../../protos/google/cloud/aiplatform/v1beta1/user_action_reference.proto", "../../protos/google/cloud/aiplatform/v1beta1/value.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/specialist_pool_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/specialist_pool_service_proto_list.json index 3255894b4d5..d5e6efb45ff 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/specialist_pool_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/specialist_pool_service_proto_list.json @@ -162,6 +162,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/training_pipeline.proto", "../../protos/google/cloud/aiplatform/v1beta1/tuning_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/types.proto", + "../../protos/google/cloud/aiplatform/v1beta1/ui_pipeline_spec.proto", "../../protos/google/cloud/aiplatform/v1beta1/unmanaged_container_model.proto", "../../protos/google/cloud/aiplatform/v1beta1/user_action_reference.proto", "../../protos/google/cloud/aiplatform/v1beta1/value.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/tensorboard_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/tensorboard_service_proto_list.json index 3255894b4d5..d5e6efb45ff 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/tensorboard_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/tensorboard_service_proto_list.json @@ -162,6 +162,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/training_pipeline.proto", "../../protos/google/cloud/aiplatform/v1beta1/tuning_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/types.proto", + "../../protos/google/cloud/aiplatform/v1beta1/ui_pipeline_spec.proto", "../../protos/google/cloud/aiplatform/v1beta1/unmanaged_container_model.proto", "../../protos/google/cloud/aiplatform/v1beta1/user_action_reference.proto", "../../protos/google/cloud/aiplatform/v1beta1/value.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/vertex_rag_data_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/vertex_rag_data_service_proto_list.json index 3255894b4d5..d5e6efb45ff 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/vertex_rag_data_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/vertex_rag_data_service_proto_list.json @@ -162,6 +162,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/training_pipeline.proto", "../../protos/google/cloud/aiplatform/v1beta1/tuning_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/types.proto", + "../../protos/google/cloud/aiplatform/v1beta1/ui_pipeline_spec.proto", "../../protos/google/cloud/aiplatform/v1beta1/unmanaged_container_model.proto", "../../protos/google/cloud/aiplatform/v1beta1/user_action_reference.proto", "../../protos/google/cloud/aiplatform/v1beta1/value.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/vertex_rag_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/vertex_rag_service_proto_list.json index 3255894b4d5..d5e6efb45ff 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/vertex_rag_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/vertex_rag_service_proto_list.json @@ -162,6 +162,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/training_pipeline.proto", "../../protos/google/cloud/aiplatform/v1beta1/tuning_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/types.proto", + "../../protos/google/cloud/aiplatform/v1beta1/ui_pipeline_spec.proto", "../../protos/google/cloud/aiplatform/v1beta1/unmanaged_container_model.proto", "../../protos/google/cloud/aiplatform/v1beta1/user_action_reference.proto", "../../protos/google/cloud/aiplatform/v1beta1/value.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/vizier_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/vizier_service_proto_list.json index 3255894b4d5..d5e6efb45ff 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/vizier_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/vizier_service_proto_list.json @@ -162,6 +162,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/training_pipeline.proto", "../../protos/google/cloud/aiplatform/v1beta1/tuning_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/types.proto", + "../../protos/google/cloud/aiplatform/v1beta1/ui_pipeline_spec.proto", "../../protos/google/cloud/aiplatform/v1beta1/unmanaged_container_model.proto", "../../protos/google/cloud/aiplatform/v1beta1/user_action_reference.proto", "../../protos/google/cloud/aiplatform/v1beta1/value.proto",