diff --git a/packages/google-cloud-aiplatform/README.md b/packages/google-cloud-aiplatform/README.md index 0c2f306fb9d..232a78ada84 100644 --- a/packages/google-cloud-aiplatform/README.md +++ b/packages/google-cloud-aiplatform/README.md @@ -135,6 +135,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/ | Endpoint_service.mutate_deployed_model | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/endpoint_service.mutate_deployed_model.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/endpoint_service.mutate_deployed_model.js,packages/google-cloud-aiplatform/samples/README.md) | | Endpoint_service.undeploy_model | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/endpoint_service.undeploy_model.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/endpoint_service.undeploy_model.js,packages/google-cloud-aiplatform/samples/README.md) | | Endpoint_service.update_endpoint | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/endpoint_service.update_endpoint.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/endpoint_service.update_endpoint.js,packages/google-cloud-aiplatform/samples/README.md) | +| Evaluation_service.evaluate_instances | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/evaluation_service.evaluate_instances.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/evaluation_service.evaluate_instances.js,packages/google-cloud-aiplatform/samples/README.md) | | Feature_online_store_admin_service.create_feature_online_store | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.create_feature_online_store.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.create_feature_online_store.js,packages/google-cloud-aiplatform/samples/README.md) | | Feature_online_store_admin_service.create_feature_view | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.create_feature_view.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.create_feature_view.js,packages/google-cloud-aiplatform/samples/README.md) | | Feature_online_store_admin_service.delete_feature_online_store | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.delete_feature_online_store.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.delete_feature_online_store.js,packages/google-cloud-aiplatform/samples/README.md) | diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/accelerator_type.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/accelerator_type.proto index 328f3151e4a..790eddc6f6c 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/accelerator_type.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/accelerator_type.proto @@ -29,7 +29,8 @@ enum AcceleratorType { // Unspecified accelerator type, which means no accelerator. ACCELERATOR_TYPE_UNSPECIFIED = 0; - // Nvidia Tesla K80 GPU. + // Deprecated: Nvidia Tesla K80 GPU has reached end of support, + // see https://cloud.google.com/compute/docs/eol/k80-eol. NVIDIA_TESLA_K80 = 1 [deprecated = true]; // Nvidia Tesla P100 GPU. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/batch_prediction_job.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/batch_prediction_job.proto index 1b0a032aaf5..3688ad8d16e 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/batch_prediction_job.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/batch_prediction_job.proto @@ -457,4 +457,10 @@ message BatchPredictionJob { // // User can disable container logging by setting this flag to true. bool disable_container_logging = 34; + + // Output only. Reserved for future use. + bool satisfies_pzs = 36 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + bool satisfies_pzi = 37 [(google.api.field_behavior) = OUTPUT_ONLY]; } 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 b3ae0348e7d..dc202fc75bf 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 @@ -137,6 +137,48 @@ message VideoMetadata { // Generation config. message GenerationConfig { + // The configuration for routing the request to a specific model. + message RoutingConfig { + // When automated routing is specified, the routing will be determined by + // the pretrained routing model and customer provided model routing + // preference. + message AutoRoutingMode { + // The model routing preference. + enum ModelRoutingPreference { + // Unspecified model routing preference. + UNKNOWN = 0; + + // Prefer higher quality over low cost. + PRIORITIZE_QUALITY = 1; + + // Balanced model routing preference. + BALANCED = 2; + + // Prefer lower cost over higher quality. + PRIORITIZE_COST = 3; + } + + // The model routing preference. + optional ModelRoutingPreference model_routing_preference = 1; + } + + // When manual routing is set, the specified model will be used directly. + message ManualRoutingMode { + // The model name to use. Only the public LLM models are accepted. e.g. + // 'gemini-1.5-pro-001'. + optional string model_name = 1; + } + + // Routing mode. + oneof routing_config { + // Automated routing. + AutoRoutingMode auto_mode = 1; + + // Manual routing. + ManualRoutingMode manual_mode = 2; + } + } + // Optional. Controls the randomness of predictions. optional float temperature = 1 [(google.api.field_behavior) = OPTIONAL]; @@ -161,6 +203,9 @@ message GenerationConfig { // Optional. Frequency penalties. optional float frequency_penalty = 9 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Seed. + optional int32 seed = 12 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Output response mimetype of the generated candidate text. // Supported mimetype: // - `text/plain`: (default) Text output. @@ -178,6 +223,10 @@ message GenerationConfig { // Compatible mimetypes: // `application/json`: Schema for JSON response. optional Schema response_schema = 16 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Routing configuration. + optional RoutingConfig routing_config = 17 + [(google.api.field_behavior) = OPTIONAL]; } // Safety settings. @@ -317,34 +366,34 @@ message Candidate { // The finish reason is unspecified. FINISH_REASON_UNSPECIFIED = 0; - // Natural stop point of the model or provided stop sequence. + // Token generation reached a natural stopping point or a configured stop + // sequence. STOP = 1; - // The maximum number of tokens as specified in the request was reached. + // Token generation reached the configured maximum output tokens. MAX_TOKENS = 2; - // The token generation was stopped as the response was flagged for safety - // reasons. NOTE: When streaming the Candidate.content will be empty if - // content filters blocked the output. + // Token generation stopped because the content potentially contains safety + // violations. NOTE: When streaming, + // [content][google.cloud.aiplatform.v1.Candidate.content] is empty if + // content filters blocks the output. SAFETY = 3; - // The token generation was stopped as the response was flagged for - // unauthorized citations. + // Token generation stopped because the content potentially contains + // copyright violations. RECITATION = 4; - // All other reasons that stopped the token generation + // All other reasons that stopped the token generation. OTHER = 5; - // The token generation was stopped as the response was flagged for the - // terms which are included from the terminology blocklist. + // Token generation stopped because the content contains forbidden terms. BLOCKLIST = 6; - // The token generation was stopped as the response was flagged for - // the prohibited contents. + // Token generation stopped for potentially containing prohibited content. PROHIBITED_CONTENT = 7; - // The token generation was stopped as the response was flagged for - // Sensitive Personally Identifiable Information (SPII) contents. + // Token generation stopped because the content potentially contains + // Sensitive Personally Identifiable Information (SPII). SPII = 8; // The function call generated by the model is invalid. @@ -360,6 +409,9 @@ message Candidate { // Output only. Confidence score of the candidate. double score = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Average log probability score of the candidate. + double avg_logprobs = 9 [(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]; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/custom_job.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/custom_job.proto index d3f2c140de3..0cfeb63f297 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/custom_job.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/custom_job.proto @@ -109,6 +109,12 @@ message CustomJob { // The values are the URIs for each node's interactive shell. map web_access_uris = 16 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + bool satisfies_pzs = 18 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + bool satisfies_pzi = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Represents the spec of a CustomJob. @@ -352,19 +358,25 @@ message PythonPackageSpec { // All parameters related to queuing and scheduling of custom jobs. message Scheduling { // Optional. This determines which type of scheduling strategy to use. Right - // now users have two options such as ON_DEMAND which will use regular on - // demand resources to schedule the job, the other is LOW_COST which would + // now users have two options such as STANDARD which will use regular on + // demand resources to schedule the job, the other is SPOT which would // leverage spot resources alongwith regular resources to schedule // the job. enum Strategy { - // Strategy will default to ON_DEMAND. + // Strategy will default to STANDARD. STRATEGY_UNSPECIFIED = 0; // Regular on-demand provisioning strategy. - ON_DEMAND = 1; + ON_DEMAND = 1 [deprecated = true]; // Low cost by making potential use of spot resources. - LOW_COST = 2; + LOW_COST = 2 [deprecated = true]; + + // Standard provisioning strategy uses regular on-demand resources. + STANDARD = 3; + + // Spot provisioning strategy uses spot resources. + SPOT = 4; } // The maximum job running time. The default is 7 days. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/data_item.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/data_item.proto index bb4f038315b..baef10ad0eb 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/data_item.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/data_item.proto @@ -70,4 +70,10 @@ message DataItem { // Optional. Used to perform consistent read-modify-write updates. If not set, // a blind "overwrite" update happens. string etag = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Reserved for future use. + bool satisfies_pzs = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + bool satisfies_pzi = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/dataset.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/dataset.proto index 1e9f3b96615..8aa4e9608fa 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/dataset.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/dataset.proto @@ -118,6 +118,12 @@ message Dataset { // Optional. Reference to the public base model last used by the dataset. Only // set for prompt datasets. string model_reference = 18 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Reserved for future use. + bool satisfies_pzs = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + bool satisfies_pzi = 20 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Describes the location from where we import data into a Dataset, together diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/dataset_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/dataset_service.proto index 8637c667bc1..72b247be7f1 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/dataset_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/dataset_service.proto @@ -52,6 +52,7 @@ service DatasetService { option (google.api.http) = { post: "/v1/{parent=projects/*/locations/*}/datasets" body: "dataset" + additional_bindings { post: "/v1/datasets" body: "dataset" } }; option (google.api.method_signature) = "parent,dataset"; option (google.longrunning.operation_info) = { @@ -64,6 +65,7 @@ service DatasetService { rpc GetDataset(GetDatasetRequest) returns (Dataset) { option (google.api.http) = { get: "/v1/{name=projects/*/locations/*/datasets/*}" + additional_bindings { get: "/v1/{name=datasets/*}" } }; option (google.api.method_signature) = "name"; } @@ -73,6 +75,10 @@ service DatasetService { option (google.api.http) = { patch: "/v1/{dataset.name=projects/*/locations/*/datasets/*}" body: "dataset" + additional_bindings { + patch: "/v1/{dataset.name=datasets/*}" + body: "dataset" + } }; option (google.api.method_signature) = "dataset,update_mask"; } @@ -81,6 +87,7 @@ service DatasetService { rpc ListDatasets(ListDatasetsRequest) returns (ListDatasetsResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*}/datasets" + additional_bindings { get: "/v1/datasets" } }; option (google.api.method_signature) = "parent"; } @@ -90,6 +97,7 @@ service DatasetService { returns (google.longrunning.Operation) { option (google.api.http) = { delete: "/v1/{name=projects/*/locations/*/datasets/*}" + additional_bindings { delete: "/v1/{name=datasets/*}" } }; option (google.api.method_signature) = "name"; option (google.longrunning.operation_info) = { @@ -130,6 +138,10 @@ service DatasetService { option (google.api.http) = { post: "/v1/{parent=projects/*/locations/*/datasets/*}/datasetVersions" body: "dataset_version" + additional_bindings { + post: "/v1/{parent=datasets/*}/datasetVersions" + body: "dataset_version" + } }; option (google.api.method_signature) = "parent,dataset_version"; option (google.longrunning.operation_info) = { @@ -144,6 +156,10 @@ service DatasetService { option (google.api.http) = { patch: "/v1/{dataset_version.name=projects/*/locations/*/datasets/*/datasetVersions/*}" body: "dataset_version" + additional_bindings { + patch: "/v1/{dataset_version.name=datasets/*/datasetVersions/*}" + body: "dataset_version" + } }; option (google.api.method_signature) = "dataset_version,update_mask"; } @@ -153,6 +169,7 @@ service DatasetService { returns (google.longrunning.Operation) { option (google.api.http) = { delete: "/v1/{name=projects/*/locations/*/datasets/*/datasetVersions/*}" + additional_bindings { delete: "/v1/{name=datasets/*/datasetVersions/*}" } }; option (google.api.method_signature) = "name"; option (google.longrunning.operation_info) = { @@ -165,6 +182,7 @@ service DatasetService { rpc GetDatasetVersion(GetDatasetVersionRequest) returns (DatasetVersion) { option (google.api.http) = { get: "/v1/{name=projects/*/locations/*/datasets/*/datasetVersions/*}" + additional_bindings { get: "/v1/{name=datasets/*/datasetVersions/*}" } }; option (google.api.method_signature) = "name"; } @@ -174,6 +192,7 @@ service DatasetService { returns (ListDatasetVersionsResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*/datasets/*}/datasetVersions" + additional_bindings { get: "/v1/{parent=datasets/*}/datasetVersions" } }; option (google.api.method_signature) = "parent"; } @@ -183,6 +202,9 @@ service DatasetService { returns (google.longrunning.Operation) { option (google.api.http) = { get: "/v1/{name=projects/*/locations/*/datasets/*/datasetVersions/*}:restore" + additional_bindings { + get: "/v1/{name=datasets/*/datasetVersions/*}:restore" + } }; option (google.api.method_signature) = "name"; option (google.longrunning.operation_info) = { diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/dataset_version.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/dataset_version.proto index 3880ad5433d..f363de9bd16 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/dataset_version.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/dataset_version.proto @@ -71,4 +71,10 @@ message DatasetVersion { // Output only. Reference to the public base model last used by the dataset // version. Only set for prompt dataset versions. string model_reference = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + bool satisfies_pzs = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + bool satisfies_pzi = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/deployment_resource_pool.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/deployment_resource_pool.proto index 0f16f38d9ae..2dffa0fda0d 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/deployment_resource_pool.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/deployment_resource_pool.proto @@ -74,4 +74,10 @@ message DeploymentResourcePool { // Output only. Timestamp when this DeploymentResourcePool was created. google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + bool satisfies_pzs = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + bool satisfies_pzi = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/entity_type.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/entity_type.proto index 9d239ae6d9a..bc67a3c2a69 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/entity_type.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/entity_type.proto @@ -95,4 +95,10 @@ message EntityType { // values older than `offline_storage_ttl_days` since the feature generation // time. If unset (or explicitly set to 0), default to 4000 days TTL. int32 offline_storage_ttl_days = 10 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Reserved for future use. + bool satisfies_pzs = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + bool satisfies_pzi = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/evaluation_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/evaluation_service.proto new file mode 100644 index 00000000000..b96317cb226 --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/evaluation_service.proto @@ -0,0 +1,1193 @@ +// 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.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Cloud.AIPlatform.V1"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; +option java_multiple_files = true; +option java_outer_classname = "EvaluationServiceProto"; +option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; + +// Vertex AI Online Evaluation Service. +service EvaluationService { + option (google.api.default_host) = "aiplatform.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Evaluates instances based on a given metric. + rpc EvaluateInstances(EvaluateInstancesRequest) + returns (EvaluateInstancesResponse) { + option (google.api.http) = { + post: "/v1/{location=projects/*/locations/*}:evaluateInstances" + body: "*" + }; + } +} + +// Pairwise prediction autorater preference. +enum PairwiseChoice { + // Unspecified prediction choice. + PAIRWISE_CHOICE_UNSPECIFIED = 0; + + // Baseline prediction wins + BASELINE = 1; + + // Candidate prediction wins + CANDIDATE = 2; + + // Winner cannot be determined + TIE = 3; +} + +// Request message for EvaluationService.EvaluateInstances. +message EvaluateInstancesRequest { + // Instances and specs for evaluation + oneof metric_inputs { + // Auto metric instances. + // Instances and metric spec for exact match metric. + ExactMatchInput exact_match_input = 2; + + // Instances and metric spec for bleu metric. + BleuInput bleu_input = 3; + + // Instances and metric spec for rouge metric. + RougeInput rouge_input = 4; + + // LLM-based metric instance. + // General text generation metrics, applicable to other categories. + // Input for fluency metric. + FluencyInput fluency_input = 5; + + // Input for coherence metric. + CoherenceInput coherence_input = 6; + + // Input for safety metric. + SafetyInput safety_input = 8; + + // Input for groundedness metric. + GroundednessInput groundedness_input = 9; + + // Input for fulfillment metric. + FulfillmentInput fulfillment_input = 12; + + // Input for summarization quality metric. + SummarizationQualityInput summarization_quality_input = 7; + + // Input for pairwise summarization quality metric. + PairwiseSummarizationQualityInput pairwise_summarization_quality_input = 23; + + // Input for summarization helpfulness metric. + SummarizationHelpfulnessInput summarization_helpfulness_input = 14; + + // Input for summarization verbosity metric. + SummarizationVerbosityInput summarization_verbosity_input = 15; + + // Input for question answering quality metric. + QuestionAnsweringQualityInput question_answering_quality_input = 10; + + // Input for pairwise question answering quality metric. + PairwiseQuestionAnsweringQualityInput + pairwise_question_answering_quality_input = 24; + + // Input for question answering relevance metric. + QuestionAnsweringRelevanceInput question_answering_relevance_input = 16; + + // Input for question answering helpfulness + // metric. + QuestionAnsweringHelpfulnessInput question_answering_helpfulness_input = 17; + + // Input for question answering correctness + // metric. + QuestionAnsweringCorrectnessInput question_answering_correctness_input = 18; + + // Input for pointwise metric. + PointwiseMetricInput pointwise_metric_input = 28; + + // Input for pairwise metric. + PairwiseMetricInput pairwise_metric_input = 29; + + // Tool call metric instances. + // Input for tool call valid metric. + ToolCallValidInput tool_call_valid_input = 19; + + // Input for tool name match metric. + ToolNameMatchInput tool_name_match_input = 20; + + // Input for tool parameter key match metric. + ToolParameterKeyMatchInput tool_parameter_key_match_input = 21; + + // Input for tool parameter key value match metric. + ToolParameterKVMatchInput tool_parameter_kv_match_input = 22; + } + + // Required. The resource name of the Location to evaluate the instances. + // Format: `projects/{project}/locations/{location}` + string location = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; +} + +// Response message for EvaluationService.EvaluateInstances. +message EvaluateInstancesResponse { + // Evaluation results will be served in the same order as presented in + // EvaluationRequest.instances. + oneof evaluation_results { + // Auto metric evaluation results. + // Results for exact match metric. + ExactMatchResults exact_match_results = 1; + + // Results for bleu metric. + BleuResults bleu_results = 2; + + // Results for rouge metric. + RougeResults rouge_results = 3; + + // LLM-based metric evaluation result. + // General text generation metrics, applicable to other categories. + // Result for fluency metric. + FluencyResult fluency_result = 4; + + // Result for coherence metric. + CoherenceResult coherence_result = 5; + + // Result for safety metric. + SafetyResult safety_result = 7; + + // Result for groundedness metric. + GroundednessResult groundedness_result = 8; + + // Result for fulfillment metric. + FulfillmentResult fulfillment_result = 11; + + // Summarization only metrics. + // Result for summarization quality metric. + SummarizationQualityResult summarization_quality_result = 6; + + // Result for pairwise summarization quality metric. + PairwiseSummarizationQualityResult pairwise_summarization_quality_result = + 22; + + // Result for summarization helpfulness metric. + SummarizationHelpfulnessResult summarization_helpfulness_result = 13; + + // Result for summarization verbosity metric. + SummarizationVerbosityResult summarization_verbosity_result = 14; + + // Question answering only metrics. + // Result for question answering quality metric. + QuestionAnsweringQualityResult question_answering_quality_result = 9; + + // Result for pairwise question answering quality metric. + PairwiseQuestionAnsweringQualityResult + pairwise_question_answering_quality_result = 23; + + // Result for question answering relevance metric. + QuestionAnsweringRelevanceResult question_answering_relevance_result = 15; + + // Result for question answering helpfulness metric. + QuestionAnsweringHelpfulnessResult question_answering_helpfulness_result = + 16; + + // Result for question answering correctness metric. + QuestionAnsweringCorrectnessResult question_answering_correctness_result = + 17; + + // Generic metrics. + // Result for pointwise metric. + PointwiseMetricResult pointwise_metric_result = 27; + + // Result for pairwise metric. + PairwiseMetricResult pairwise_metric_result = 28; + + // Tool call metrics. + // Results for tool call valid metric. + ToolCallValidResults tool_call_valid_results = 18; + + // Results for tool name match metric. + ToolNameMatchResults tool_name_match_results = 19; + + // Results for tool parameter key match metric. + ToolParameterKeyMatchResults tool_parameter_key_match_results = 20; + + // Results for tool parameter key value match metric. + ToolParameterKVMatchResults tool_parameter_kv_match_results = 21; + } +} + +// Input for exact match metric. +message ExactMatchInput { + // Required. Spec for exact match metric. + ExactMatchSpec metric_spec = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Repeated exact match instances. + repeated ExactMatchInstance instances = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Spec for exact match instance. +message ExactMatchInstance { + // Required. Output of the evaluated model. + optional string prediction = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Ground truth used to compare against the prediction. + optional string reference = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Spec for exact match metric - returns 1 if prediction and reference exactly +// matches, otherwise 0. +message ExactMatchSpec {} + +// Results for exact match metric. +message ExactMatchResults { + // Output only. Exact match metric values. + repeated ExactMatchMetricValue exact_match_metric_values = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Exact match metric value for an instance. +message ExactMatchMetricValue { + // Output only. Exact match score. + optional float score = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Input for bleu metric. +message BleuInput { + // Required. Spec for bleu score metric. + BleuSpec metric_spec = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Repeated bleu instances. + repeated BleuInstance instances = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Spec for bleu instance. +message BleuInstance { + // Required. Output of the evaluated model. + optional string prediction = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Ground truth used to compare against the prediction. + optional string reference = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Spec for bleu score metric - calculates the precision of n-grams in the +// prediction as compared to reference - returns a score ranging between 0 to 1. +message BleuSpec { + // Optional. Whether to use_effective_order to compute bleu score. + bool use_effective_order = 1 [(google.api.field_behavior) = OPTIONAL]; +} + +// Results for bleu metric. +message BleuResults { + // Output only. Bleu metric values. + repeated BleuMetricValue bleu_metric_values = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Bleu metric value for an instance. +message BleuMetricValue { + // Output only. Bleu score. + optional float score = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Input for rouge metric. +message RougeInput { + // Required. Spec for rouge score metric. + RougeSpec metric_spec = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Repeated rouge instances. + repeated RougeInstance instances = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Spec for rouge instance. +message RougeInstance { + // Required. Output of the evaluated model. + optional string prediction = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Ground truth used to compare against the prediction. + optional string reference = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Spec for rouge score metric - calculates the recall of n-grams in prediction +// as compared to reference - returns a score ranging between 0 and 1. +message RougeSpec { + // Optional. Supported rouge types are rougen[1-9], rougeL, and rougeLsum. + string rouge_type = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether to use stemmer to compute rouge score. + bool use_stemmer = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether to split summaries while using rougeLsum. + bool split_summaries = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Results for rouge metric. +message RougeResults { + // Output only. Rouge metric values. + repeated RougeMetricValue rouge_metric_values = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Rouge metric value for an instance. +message RougeMetricValue { + // Output only. Rouge score. + optional float score = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Input for coherence metric. +message CoherenceInput { + // Required. Spec for coherence score metric. + CoherenceSpec metric_spec = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Coherence instance. + CoherenceInstance instance = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Spec for coherence instance. +message CoherenceInstance { + // Required. Output of the evaluated model. + optional string prediction = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Spec for coherence score metric. +message CoherenceSpec { + // Optional. Which version to use for evaluation. + int32 version = 1 [(google.api.field_behavior) = OPTIONAL]; +} + +// Spec for coherence result. +message CoherenceResult { + // Output only. Coherence score. + optional float score = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Explanation for coherence score. + string explanation = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Confidence for coherence score. + optional float confidence = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Input for fluency metric. +message FluencyInput { + // Required. Spec for fluency score metric. + FluencySpec metric_spec = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Fluency instance. + FluencyInstance instance = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Spec for fluency instance. +message FluencyInstance { + // Required. Output of the evaluated model. + optional string prediction = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Spec for fluency score metric. +message FluencySpec { + // Optional. Which version to use for evaluation. + int32 version = 1 [(google.api.field_behavior) = OPTIONAL]; +} + +// Spec for fluency result. +message FluencyResult { + // Output only. Fluency score. + optional float score = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Explanation for fluency score. + string explanation = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Confidence for fluency score. + optional float confidence = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Input for safety metric. +message SafetyInput { + // Required. Spec for safety metric. + SafetySpec metric_spec = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Safety instance. + SafetyInstance instance = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Spec for safety instance. +message SafetyInstance { + // Required. Output of the evaluated model. + optional string prediction = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Spec for safety metric. +message SafetySpec { + // Optional. Which version to use for evaluation. + int32 version = 1 [(google.api.field_behavior) = OPTIONAL]; +} + +// Spec for safety result. +message SafetyResult { + // Output only. Safety score. + optional float score = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Explanation for safety score. + string explanation = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Confidence for safety score. + optional float confidence = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Input for groundedness metric. +message GroundednessInput { + // Required. Spec for groundedness metric. + GroundednessSpec metric_spec = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Groundedness instance. + GroundednessInstance instance = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Spec for groundedness instance. +message GroundednessInstance { + // Required. Output of the evaluated model. + optional string prediction = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Background information provided in context used to compare + // against the prediction. + optional string context = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Spec for groundedness metric. +message GroundednessSpec { + // Optional. Which version to use for evaluation. + int32 version = 1 [(google.api.field_behavior) = OPTIONAL]; +} + +// Spec for groundedness result. +message GroundednessResult { + // Output only. Groundedness score. + optional float score = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Explanation for groundedness score. + string explanation = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Confidence for groundedness score. + optional float confidence = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Input for fulfillment metric. +message FulfillmentInput { + // Required. Spec for fulfillment score metric. + FulfillmentSpec metric_spec = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Fulfillment instance. + FulfillmentInstance instance = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Spec for fulfillment instance. +message FulfillmentInstance { + // Required. Output of the evaluated model. + optional string prediction = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Inference instruction prompt to compare prediction with. + optional string instruction = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Spec for fulfillment metric. +message FulfillmentSpec { + // Optional. Which version to use for evaluation. + int32 version = 1 [(google.api.field_behavior) = OPTIONAL]; +} + +// Spec for fulfillment result. +message FulfillmentResult { + // Output only. Fulfillment score. + optional float score = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Explanation for fulfillment score. + string explanation = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Confidence for fulfillment score. + optional float confidence = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Input for summarization quality metric. +message SummarizationQualityInput { + // Required. Spec for summarization quality score metric. + SummarizationQualitySpec metric_spec = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Summarization quality instance. + SummarizationQualityInstance instance = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Spec for summarization quality instance. +message SummarizationQualityInstance { + // Required. Output of the evaluated model. + optional string prediction = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Ground truth used to compare against the prediction. + optional string reference = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Text to be summarized. + optional string context = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. Summarization prompt for LLM. + optional string instruction = 4 [(google.api.field_behavior) = REQUIRED]; +} + +// Spec for summarization quality score metric. +message SummarizationQualitySpec { + // Optional. Whether to use instance.reference to compute summarization + // quality. + bool use_reference = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Which version to use for evaluation. + int32 version = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Spec for summarization quality result. +message SummarizationQualityResult { + // Output only. Summarization Quality score. + optional float score = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Explanation for summarization quality score. + string explanation = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Confidence for summarization quality score. + optional float confidence = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Input for pairwise summarization quality metric. +message PairwiseSummarizationQualityInput { + // Required. Spec for pairwise summarization quality score metric. + PairwiseSummarizationQualitySpec metric_spec = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Pairwise summarization quality instance. + PairwiseSummarizationQualityInstance instance = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Spec for pairwise summarization quality instance. +message PairwiseSummarizationQualityInstance { + // Required. Output of the candidate model. + optional string prediction = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Output of the baseline model. + optional string baseline_prediction = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. Ground truth used to compare against the prediction. + optional string reference = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Text to be summarized. + optional string context = 4 [(google.api.field_behavior) = REQUIRED]; + + // Required. Summarization prompt for LLM. + optional string instruction = 5 [(google.api.field_behavior) = REQUIRED]; +} + +// Spec for pairwise summarization quality score metric. +message PairwiseSummarizationQualitySpec { + // Optional. Whether to use instance.reference to compute pairwise + // summarization quality. + bool use_reference = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Which version to use for evaluation. + int32 version = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Spec for pairwise summarization quality result. +message PairwiseSummarizationQualityResult { + // Output only. Pairwise summarization prediction choice. + PairwiseChoice pairwise_choice = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Explanation for summarization quality score. + string explanation = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Confidence for summarization quality score. + optional float confidence = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Input for summarization helpfulness metric. +message SummarizationHelpfulnessInput { + // Required. Spec for summarization helpfulness score metric. + SummarizationHelpfulnessSpec metric_spec = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Summarization helpfulness instance. + SummarizationHelpfulnessInstance instance = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Spec for summarization helpfulness instance. +message SummarizationHelpfulnessInstance { + // Required. Output of the evaluated model. + optional string prediction = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Ground truth used to compare against the prediction. + optional string reference = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Text to be summarized. + optional string context = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Summarization prompt for LLM. + optional string instruction = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Spec for summarization helpfulness score metric. +message SummarizationHelpfulnessSpec { + // Optional. Whether to use instance.reference to compute summarization + // helpfulness. + bool use_reference = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Which version to use for evaluation. + int32 version = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Spec for summarization helpfulness result. +message SummarizationHelpfulnessResult { + // Output only. Summarization Helpfulness score. + optional float score = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Explanation for summarization helpfulness score. + string explanation = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Confidence for summarization helpfulness score. + optional float confidence = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Input for summarization verbosity metric. +message SummarizationVerbosityInput { + // Required. Spec for summarization verbosity score metric. + SummarizationVerbositySpec metric_spec = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Summarization verbosity instance. + SummarizationVerbosityInstance instance = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Spec for summarization verbosity instance. +message SummarizationVerbosityInstance { + // Required. Output of the evaluated model. + optional string prediction = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Ground truth used to compare against the prediction. + optional string reference = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Text to be summarized. + optional string context = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Summarization prompt for LLM. + optional string instruction = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Spec for summarization verbosity score metric. +message SummarizationVerbositySpec { + // Optional. Whether to use instance.reference to compute summarization + // verbosity. + bool use_reference = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Which version to use for evaluation. + int32 version = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Spec for summarization verbosity result. +message SummarizationVerbosityResult { + // Output only. Summarization Verbosity score. + optional float score = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Explanation for summarization verbosity score. + string explanation = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Confidence for summarization verbosity score. + optional float confidence = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Input for question answering quality metric. +message QuestionAnsweringQualityInput { + // Required. Spec for question answering quality score metric. + QuestionAnsweringQualitySpec metric_spec = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Question answering quality instance. + QuestionAnsweringQualityInstance instance = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Spec for question answering quality instance. +message QuestionAnsweringQualityInstance { + // Required. Output of the evaluated model. + optional string prediction = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Ground truth used to compare against the prediction. + optional string reference = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Text to answer the question. + optional string context = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. Question Answering prompt for LLM. + optional string instruction = 4 [(google.api.field_behavior) = REQUIRED]; +} + +// Spec for question answering quality score metric. +message QuestionAnsweringQualitySpec { + // Optional. Whether to use instance.reference to compute question answering + // quality. + bool use_reference = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Which version to use for evaluation. + int32 version = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Spec for question answering quality result. +message QuestionAnsweringQualityResult { + // Output only. Question Answering Quality score. + optional float score = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Explanation for question answering quality score. + string explanation = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Confidence for question answering quality score. + optional float confidence = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Input for pairwise question answering quality metric. +message PairwiseQuestionAnsweringQualityInput { + // Required. Spec for pairwise question answering quality score metric. + PairwiseQuestionAnsweringQualitySpec metric_spec = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Pairwise question answering quality instance. + PairwiseQuestionAnsweringQualityInstance instance = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Spec for pairwise question answering quality instance. +message PairwiseQuestionAnsweringQualityInstance { + // Required. Output of the candidate model. + optional string prediction = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Output of the baseline model. + optional string baseline_prediction = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. Ground truth used to compare against the prediction. + optional string reference = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Text to answer the question. + optional string context = 4 [(google.api.field_behavior) = REQUIRED]; + + // Required. Question Answering prompt for LLM. + optional string instruction = 5 [(google.api.field_behavior) = REQUIRED]; +} + +// Spec for pairwise question answering quality score metric. +message PairwiseQuestionAnsweringQualitySpec { + // Optional. Whether to use instance.reference to compute question answering + // quality. + bool use_reference = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Which version to use for evaluation. + int32 version = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Spec for pairwise question answering quality result. +message PairwiseQuestionAnsweringQualityResult { + // Output only. Pairwise question answering prediction choice. + PairwiseChoice pairwise_choice = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Explanation for question answering quality score. + string explanation = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Confidence for question answering quality score. + optional float confidence = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Input for question answering relevance metric. +message QuestionAnsweringRelevanceInput { + // Required. Spec for question answering relevance score metric. + QuestionAnsweringRelevanceSpec metric_spec = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Question answering relevance instance. + QuestionAnsweringRelevanceInstance instance = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Spec for question answering relevance instance. +message QuestionAnsweringRelevanceInstance { + // Required. Output of the evaluated model. + optional string prediction = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Ground truth used to compare against the prediction. + optional string reference = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Text provided as context to answer the question. + optional string context = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The question asked and other instruction in the inference prompt. + optional string instruction = 4 [(google.api.field_behavior) = REQUIRED]; +} + +// Spec for question answering relevance metric. +message QuestionAnsweringRelevanceSpec { + // Optional. Whether to use instance.reference to compute question answering + // relevance. + bool use_reference = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Which version to use for evaluation. + int32 version = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Spec for question answering relevance result. +message QuestionAnsweringRelevanceResult { + // Output only. Question Answering Relevance score. + optional float score = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Explanation for question answering relevance score. + string explanation = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Confidence for question answering relevance score. + optional float confidence = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Input for question answering helpfulness metric. +message QuestionAnsweringHelpfulnessInput { + // Required. Spec for question answering helpfulness score metric. + QuestionAnsweringHelpfulnessSpec metric_spec = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Question answering helpfulness instance. + QuestionAnsweringHelpfulnessInstance instance = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Spec for question answering helpfulness instance. +message QuestionAnsweringHelpfulnessInstance { + // Required. Output of the evaluated model. + optional string prediction = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Ground truth used to compare against the prediction. + optional string reference = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Text provided as context to answer the question. + optional string context = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The question asked and other instruction in the inference prompt. + optional string instruction = 4 [(google.api.field_behavior) = REQUIRED]; +} + +// Spec for question answering helpfulness metric. +message QuestionAnsweringHelpfulnessSpec { + // Optional. Whether to use instance.reference to compute question answering + // helpfulness. + bool use_reference = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Which version to use for evaluation. + int32 version = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Spec for question answering helpfulness result. +message QuestionAnsweringHelpfulnessResult { + // Output only. Question Answering Helpfulness score. + optional float score = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Explanation for question answering helpfulness score. + string explanation = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Confidence for question answering helpfulness score. + optional float confidence = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Input for question answering correctness metric. +message QuestionAnsweringCorrectnessInput { + // Required. Spec for question answering correctness score metric. + QuestionAnsweringCorrectnessSpec metric_spec = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Question answering correctness instance. + QuestionAnsweringCorrectnessInstance instance = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Spec for question answering correctness instance. +message QuestionAnsweringCorrectnessInstance { + // Required. Output of the evaluated model. + optional string prediction = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Ground truth used to compare against the prediction. + optional string reference = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Text provided as context to answer the question. + optional string context = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The question asked and other instruction in the inference prompt. + optional string instruction = 4 [(google.api.field_behavior) = REQUIRED]; +} + +// Spec for question answering correctness metric. +message QuestionAnsweringCorrectnessSpec { + // Optional. Whether to use instance.reference to compute question answering + // correctness. + bool use_reference = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Which version to use for evaluation. + int32 version = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Spec for question answering correctness result. +message QuestionAnsweringCorrectnessResult { + // Output only. Question Answering Correctness score. + optional float score = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Explanation for question answering correctness score. + string explanation = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Confidence for question answering correctness score. + optional float confidence = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Input for pointwise metric. +message PointwiseMetricInput { + // Required. Spec for pointwise metric. + PointwiseMetricSpec metric_spec = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Pointwise metric instance. + PointwiseMetricInstance instance = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Pointwise metric instance. Usually one instance corresponds to one row in an +// evaluation dataset. +message PointwiseMetricInstance { + // Instance for pointwise metric. + oneof instance { + // Instance specified as a json string. String key-value pairs are expected + // in the json_instance to render + // PointwiseMetricSpec.instance_prompt_template. + string json_instance = 1; + } +} + +// Spec for pointwise metric. +message PointwiseMetricSpec { + // Required. Metric prompt template for pointwise metric. + optional string metric_prompt_template = 1 + [(google.api.field_behavior) = REQUIRED]; +} + +// Spec for pointwise metric result. +message PointwiseMetricResult { + // Output only. Pointwise metric score. + optional float score = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Explanation for pointwise metric score. + string explanation = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Input for pairwise metric. +message PairwiseMetricInput { + // Required. Spec for pairwise metric. + PairwiseMetricSpec metric_spec = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Pairwise metric instance. + PairwiseMetricInstance instance = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Pairwise metric instance. Usually one instance corresponds to one row in an +// evaluation dataset. +message PairwiseMetricInstance { + // Instance for pairwise metric. + oneof instance { + // Instance specified as a json string. String key-value pairs are expected + // in the json_instance to render + // PairwiseMetricSpec.instance_prompt_template. + string json_instance = 1; + } +} + +// Spec for pairwise metric. +message PairwiseMetricSpec { + // Required. Metric prompt template for pairwise metric. + optional string metric_prompt_template = 1 + [(google.api.field_behavior) = REQUIRED]; +} + +// Spec for pairwise metric result. +message PairwiseMetricResult { + // Output only. Pairwise metric choice. + PairwiseChoice pairwise_choice = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Explanation for pairwise metric score. + string explanation = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Input for tool call valid metric. +message ToolCallValidInput { + // Required. Spec for tool call valid metric. + ToolCallValidSpec metric_spec = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Repeated tool call valid instances. + repeated ToolCallValidInstance instances = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Spec for tool call valid metric. +message ToolCallValidSpec {} + +// Spec for tool call valid instance. +message ToolCallValidInstance { + // Required. Output of the evaluated model. + optional string prediction = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Ground truth used to compare against the prediction. + optional string reference = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Results for tool call valid metric. +message ToolCallValidResults { + // Output only. Tool call valid metric values. + repeated ToolCallValidMetricValue tool_call_valid_metric_values = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Tool call valid metric value for an instance. +message ToolCallValidMetricValue { + // Output only. Tool call valid score. + optional float score = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Input for tool name match metric. +message ToolNameMatchInput { + // Required. Spec for tool name match metric. + ToolNameMatchSpec metric_spec = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Repeated tool name match instances. + repeated ToolNameMatchInstance instances = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Spec for tool name match metric. +message ToolNameMatchSpec {} + +// Spec for tool name match instance. +message ToolNameMatchInstance { + // Required. Output of the evaluated model. + optional string prediction = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Ground truth used to compare against the prediction. + optional string reference = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Results for tool name match metric. +message ToolNameMatchResults { + // Output only. Tool name match metric values. + repeated ToolNameMatchMetricValue tool_name_match_metric_values = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Tool name match metric value for an instance. +message ToolNameMatchMetricValue { + // Output only. Tool name match score. + optional float score = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Input for tool parameter key match metric. +message ToolParameterKeyMatchInput { + // Required. Spec for tool parameter key match metric. + ToolParameterKeyMatchSpec metric_spec = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Repeated tool parameter key match instances. + repeated ToolParameterKeyMatchInstance instances = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Spec for tool parameter key match metric. +message ToolParameterKeyMatchSpec {} + +// Spec for tool parameter key match instance. +message ToolParameterKeyMatchInstance { + // Required. Output of the evaluated model. + optional string prediction = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Ground truth used to compare against the prediction. + optional string reference = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Results for tool parameter key match metric. +message ToolParameterKeyMatchResults { + // Output only. Tool parameter key match metric values. + repeated ToolParameterKeyMatchMetricValue + tool_parameter_key_match_metric_values = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Tool parameter key match metric value for an instance. +message ToolParameterKeyMatchMetricValue { + // Output only. Tool parameter key match score. + optional float score = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Input for tool parameter key value match metric. +message ToolParameterKVMatchInput { + // Required. Spec for tool parameter key value match metric. + ToolParameterKVMatchSpec metric_spec = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Repeated tool parameter key value match instances. + repeated ToolParameterKVMatchInstance instances = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Spec for tool parameter key value match metric. +message ToolParameterKVMatchSpec { + // Optional. Whether to use STRCIT string match on parameter values. + bool use_strict_string_match = 1 [(google.api.field_behavior) = OPTIONAL]; +} + +// Spec for tool parameter key value match instance. +message ToolParameterKVMatchInstance { + // Required. Output of the evaluated model. + optional string prediction = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Ground truth used to compare against the prediction. + optional string reference = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Results for tool parameter key value match metric. +message ToolParameterKVMatchResults { + // Output only. Tool parameter key value match metric values. + repeated ToolParameterKVMatchMetricValue + tool_parameter_kv_match_metric_values = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Tool parameter key value match metric value for an instance. +message ToolParameterKVMatchMetricValue { + // Output only. Tool parameter key value match score. + optional float score = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature_group.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature_group.proto index 63b44b1a4cc..696aa10c15e 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature_group.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature_group.proto @@ -40,6 +40,14 @@ message FeatureGroup { // Input source type for BigQuery Tables and Views. message BigQuery { + message TimeSeries { + // Optional. Column hosting timestamp values for a time-series source. + // Will be used to determine the latest `feature_values` for each entity. + // Optional. If not provided, column named `feature_timestamp` of + // type `TIMESTAMP` will be used. + string timestamp_column = 1 [(google.api.field_behavior) = OPTIONAL]; + } + // Required. Immutable. The BigQuery source URI that points to either a // BigQuery Table or View. BigQuerySource big_query_source = 1 [ @@ -51,6 +59,13 @@ message FeatureGroup { // If not provided defaults to `entity_id`. repeated string entity_id_columns = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If the source is a time-series source, this can be set to + // control how downstream sources (ex: + // [FeatureView][google.cloud.aiplatform.v1.FeatureView] ) will treat + // time-series sources. If not set, will treat the source as a time-series + // source with `feature_timestamp` as timestamp column and no scan boundary. + TimeSeries time_series = 4 [(google.api.field_behavior) = OPTIONAL]; } oneof source { diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature_online_store.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature_online_store.proto index 4e623117365..be3bb26eb83 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature_online_store.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature_online_store.proto @@ -159,4 +159,10 @@ message FeatureOnlineStore { // Optional. Customer-managed encryption key spec for data storage. If set, // online store will be secured by this key. EncryptionSpec encryption_spec = 13 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Reserved for future use. + bool satisfies_pzs = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + bool satisfies_pzi = 16 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature_view.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature_view.proto index 4c0cb443815..20423657f02 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature_view.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature_view.proto @@ -208,4 +208,10 @@ message FeatureView { // so that approximate nearest neighbor (a.k.a ANN) algorithms search can be // performed during online serving. IndexConfig index_config = 15 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Reserved for future use. + bool satisfies_pzs = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + bool satisfies_pzi = 20 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature_view_sync.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature_view_sync.proto index c50817da93d..cf54825480e 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature_view_sync.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/feature_view_sync.proto @@ -67,4 +67,10 @@ message FeatureViewSync { // Output only. Summary of the sync job. SyncSummary sync_summary = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + bool satisfies_pzs = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + bool satisfies_pzi = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/featurestore.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/featurestore.proto index 9c7dd98196c..cc6068f51f7 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/featurestore.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/featurestore.proto @@ -149,4 +149,10 @@ message Featurestore { // Optional. Customer-managed encryption key spec for data storage. If set, // both of the online and offline data storage will be secured by this key. EncryptionSpec encryption_spec = 10 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Reserved for future use. + bool satisfies_pzs = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + bool satisfies_pzi = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/hyperparameter_tuning_job.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/hyperparameter_tuning_job.proto index df860b268ee..caed8050d3f 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/hyperparameter_tuning_job.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/hyperparameter_tuning_job.proto @@ -113,4 +113,10 @@ message HyperparameterTuningJob { // If this is set, then all resources created by the HyperparameterTuningJob // will be encrypted with the provided encryption key. EncryptionSpec encryption_spec = 17; + + // Output only. Reserved for future use. + bool satisfies_pzs = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + bool satisfies_pzi = 20 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index.proto index fa435b67a89..7b83e6f3726 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index.proto @@ -125,6 +125,12 @@ message Index { // Immutable. Customer-managed encryption key spec for an Index. If set, this // Index and all sub-resources of this Index will be secured by this key. EncryptionSpec encryption_spec = 17 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. Reserved for future use. + bool satisfies_pzs = 18 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + bool satisfies_pzi = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; } // A datapoint of Index. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index_endpoint.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index_endpoint.proto index a0780dfc85d..0c49765c0b3 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index_endpoint.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index_endpoint.proto @@ -128,6 +128,12 @@ message IndexEndpoint { // set, this IndexEndpoint and all sub-resources of this IndexEndpoint will be // secured by this key. EncryptionSpec encryption_spec = 15 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. Reserved for future use. + bool satisfies_pzs = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + bool satisfies_pzi = 18 [(google.api.field_behavior) = OUTPUT_ONLY]; } // A deployment of an Index. IndexEndpoints contain one or more DeployedIndexes. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/llm_utility_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/llm_utility_service.proto index e6e8d8e8dd1..a73781e8221 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/llm_utility_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/llm_utility_service.proto @@ -47,6 +47,14 @@ service LlmUtilityService { post: "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:countTokens" body: "*" } + additional_bindings { + post: "/v1/{endpoint=endpoints/*}:countTokens" + body: "*" + } + additional_bindings { + post: "/v1/{endpoint=publishers/*/models/*}:countTokens" + body: "*" + } }; option (google.api.method_signature) = "endpoint,instances"; } @@ -60,6 +68,14 @@ service LlmUtilityService { post: "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:computeTokens" body: "*" } + additional_bindings { + post: "/v1/{endpoint=endpoints/*}:computeTokens" + body: "*" + } + additional_bindings { + post: "/v1/{endpoint=publishers/*/models/*}:computeTokens" + body: "*" + } }; option (google.api.method_signature) = "endpoint,instances"; } diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/machine_resources.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/machine_resources.proto index 30bad8f790f..52112a88601 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/machine_resources.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/machine_resources.proto @@ -18,6 +18,7 @@ package google.cloud.aiplatform.v1; import "google/api/field_behavior.proto"; import "google/cloud/aiplatform/v1/accelerator_type.proto"; +import "google/cloud/aiplatform/v1/reservation_affinity.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; @@ -56,6 +57,13 @@ message MachineSpec { // Immutable. The topology of the TPUs. Corresponds to the TPU topologies // available from GKE. (Example: tpu_topology: "2x2x1"). string tpu_topology = 4 [(google.api.field_behavior) = IMMUTABLE]; + + // Optional. Immutable. Configuration controlling how this resource pool + // consumes reservation. + ReservationAffinity reservation_affinity = 5 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = OPTIONAL + ]; } // A description of resources that are dedicated to a DeployedModel, and @@ -121,6 +129,10 @@ message DedicatedResources { // to `80`. repeated AutoscalingMetricSpec autoscaling_metric_specs = 4 [(google.api.field_behavior) = IMMUTABLE]; + + // Optional. If true, schedule the deployment workload on [spot + // VMs](https://cloud.google.com/kubernetes-engine/docs/concepts/spot-vms). + bool spot = 5 [(google.api.field_behavior) = OPTIONAL]; } // A description of resources that to large degree are decided by Vertex AI, diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_deployment_monitoring_job.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_deployment_monitoring_job.proto index 8e65d15a430..f16140336c7 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_deployment_monitoring_job.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_deployment_monitoring_job.proto @@ -224,6 +224,12 @@ message ModelDeploymentMonitoringJob { // Output only. Only populated when the job's state is `JOB_STATE_FAILED` or // `JOB_STATE_CANCELLED`. google.rpc.Status error = 23 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + bool satisfies_pzs = 26 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + bool satisfies_pzi = 27 [(google.api.field_behavior) = OUTPUT_ONLY]; } // ModelDeploymentMonitoringBigQueryTable specifies the BigQuery table name diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_garden_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_garden_service.proto index d45fede2f8d..bfbb6dc025d 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_garden_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/model_garden_service.proto @@ -84,4 +84,7 @@ message GetPublisherModelRequest { // Optional. Boolean indicates whether the requested model is a Hugging Face // model. bool is_hugging_face_model = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Token used to access Hugging Face gated models. + string hugging_face_token = 6 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/nas_job.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/nas_job.proto index b2c038efdd5..4cc3c327984 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/nas_job.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/nas_job.proto @@ -97,6 +97,12 @@ message NasJob { // and restricted image training for tenant project. bool enable_restricted_image_training = 14 [deprecated = true, (google.api.field_behavior) = OPTIONAL]; + + // Output only. Reserved for future use. + bool satisfies_pzs = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + bool satisfies_pzi = 16 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Represents a NasTrial details along with its parameters. If there is a diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/notebook_execution_job.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/notebook_execution_job.proto index 003bff43ad2..43c961e31f4 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/notebook_execution_job.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/notebook_execution_job.proto @@ -18,6 +18,7 @@ package google.cloud.aiplatform.v1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1/encryption_spec.proto"; import "google/cloud/aiplatform/v1/job_state.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; @@ -155,4 +156,9 @@ message NotebookExecutionJob { // System reserved label keys are prefixed with "aiplatform.googleapis.com/" // and are immutable. map labels = 19; + + // Customer-managed encryption key spec for the notebook execution job. + // This field is auto-populated if the + // [NotebookService.NotebookRuntimeTemplate][] has an encryption spec. + EncryptionSpec encryption_spec = 22; } 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 bc603c07053..a37571ca405 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 @@ -174,6 +174,14 @@ service PredictionService { post: "/v1/{model=projects/*/locations/*/publishers/*/models/*}:generateContent" body: "*" } + additional_bindings { + post: "/v1/{model=endpoints/*}:generateContent" + body: "*" + } + additional_bindings { + post: "/v1/{model=publishers/*/models/*}:generateContent" + body: "*" + } }; option (google.api.method_signature) = "model,contents"; } @@ -188,6 +196,14 @@ service PredictionService { post: "/v1/{model=projects/*/locations/*/publishers/*/models/*}:streamGenerateContent" body: "*" } + additional_bindings { + post: "/v1/{model=endpoints/*}:streamGenerateContent" + body: "*" + } + additional_bindings { + post: "/v1/{model=publishers/*/models/*}:streamGenerateContent" + body: "*" + } }; option (google.api.method_signature) = "model,contents"; } @@ -651,9 +667,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. @@ -727,7 +748,9 @@ message GenerateContentResponse { // Usage metadata about response(s). message UsageMetadata { - // Number of tokens in the request. + // Number of tokens in the request. When `cached_content` is set, this is + // still the total effective prompt size meaning this includes the number of + // tokens in the cached content. int32 prompt_token_count = 1; // Number of tokens in the response(s). diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/publisher_model.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/publisher_model.proto index bf99e150f47..d34884e247c 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/publisher_model.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/publisher_model.proto @@ -121,6 +121,9 @@ message PublisherModel { // Optional. Labels for the deployment. For managing deployment config // like verifying, source of deployment config, etc. map labels = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Sample request for deployed endpoint. + string sample_request = 2 [(google.api.field_behavior) = OPTIONAL]; } // The prediction (for example, the machine) resources that the diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/reservation_affinity.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/reservation_affinity.proto new file mode 100644 index 00000000000..ba9d188b610 --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/reservation_affinity.proto @@ -0,0 +1,71 @@ +// 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.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Cloud.AIPlatform.V1"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; +option java_multiple_files = true; +option java_outer_classname = "ReservationAffinityProto"; +option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; +option (google.api.resource_definition) = { + type: "compute.googleapis.com/Reservation" + pattern: "projects/{project_id_or_number}/zones/{zone}/reservations/{reservation_name}" +}; + +// A ReservationAffinity can be used to configure a Vertex AI resource (e.g., a +// DeployedModel) to draw its Compute Engine resources from a Shared +// Reservation, or exclusively from on-demand capacity. +message ReservationAffinity { + // Identifies a type of reservation affinity. + enum Type { + // Default value. This should not be used. + TYPE_UNSPECIFIED = 0; + + // Do not consume from any reserved capacity, only use on-demand. + NO_RESERVATION = 1; + + // Consume any reservation available, falling back to on-demand. + ANY_RESERVATION = 2; + + // Consume from a specific reservation. When chosen, the reservation + // must be identified via the `key` and `values` fields. + SPECIFIC_RESERVATION = 3; + } + + // Required. Specifies the reservation affinity type. + Type reservation_affinity_type = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Corresponds to the label key of a reservation resource. To target + // a SPECIFIC_RESERVATION by name, use + // `compute.googleapis.com/reservation-name` as the key and specify the name + // of your reservation as its value. + string key = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Corresponds to the label values of a reservation resource. This + // must be the full resource name of the reservation. + repeated string values = 3 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "compute.googleapis.com/Reservation" + } + ]; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/service_networking.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/service_networking.proto index e941e04b368..1fb56151d3a 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/service_networking.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/service_networking.proto @@ -26,6 +26,10 @@ option java_outer_classname = "ServiceNetworkingProto"; option java_package = "com.google.cloud.aiplatform.v1"; option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; option ruby_package = "Google::Cloud::AIPlatform::V1"; +option (google.api.resource_definition) = { + type: "compute.googleapis.com/NetworkAttachment" + pattern: "projects/{project}/regions/{region}/networkAttachments/{networkattachment}" +}; // Represents configuration for private service connect. message PrivateServiceConnectConfig { @@ -36,6 +40,11 @@ message PrivateServiceConnectConfig { // A list of Projects from which the forwarding rule will target the service // attachment. repeated string project_allowlist = 2; + + // Output only. The name of the generated service attachment resource. + // This is only populated if the endpoint is deployed with + // PrivateServiceConnect. + string service_attachment = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; } // PscAutomatedEndpoints defines the output of the forwarding rule diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/tool.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/tool.proto index c610e059800..9ac803fc1a8 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/tool.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/tool.proto @@ -159,7 +159,7 @@ message FunctionCallingConfig { MODE_UNSPECIFIED = 0; // Default model behavior, model decides to predict either a function call - // or a natural language repspose. + // or a natural language response. AUTO = 1; // Model is constrained to always predicting a function call only. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/tuning_job.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/tuning_job.proto index cf3aa3f756f..8cd6d71ae8f 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/tuning_job.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/tuning_job.proto @@ -235,6 +235,14 @@ message SupervisedTuningDataStats { // Output only. Sample user messages in the training dataset uri. repeated Content user_dataset_examples = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The number of examples in the dataset that have been truncated by any + // amount. + int64 total_truncated_example_count = 10; + + // A partial sample of the indices (starting from 1) of the truncated + // examples. + repeated int64 truncated_example_indices = 11; } // The tuning data statistic values for diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/accelerator_type.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/accelerator_type.proto index 6ae4818b4d2..0d1f673efd1 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/accelerator_type.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/accelerator_type.proto @@ -29,7 +29,8 @@ enum AcceleratorType { // Unspecified accelerator type, which means no accelerator. ACCELERATOR_TYPE_UNSPECIFIED = 0; - // Nvidia Tesla K80 GPU. + // Deprecated: Nvidia Tesla K80 GPU has reached end of support, + // see https://cloud.google.com/compute/docs/eol/k80-eol. NVIDIA_TESLA_K80 = 1 [deprecated = true]; // Nvidia Tesla P100 GPU. 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 f139feb2b03..831d875988a 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 @@ -137,6 +137,48 @@ message VideoMetadata { // Generation config. message GenerationConfig { + // The configuration for routing the request to a specific model. + message RoutingConfig { + // When automated routing is specified, the routing will be determined by + // the pretrained routing model and customer provided model routing + // preference. + message AutoRoutingMode { + // The model routing preference. + enum ModelRoutingPreference { + // Unspecified model routing preference. + UNKNOWN = 0; + + // Prefer higher quality over low cost. + PRIORITIZE_QUALITY = 1; + + // Balanced model routing preference. + BALANCED = 2; + + // Prefer lower cost over higher quality. + PRIORITIZE_COST = 3; + } + + // The model routing preference. + optional ModelRoutingPreference model_routing_preference = 1; + } + + // When manual routing is set, the specified model will be used directly. + message ManualRoutingMode { + // The model name to use. Only the public LLM models are accepted. e.g. + // 'gemini-1.5-pro-001'. + optional string model_name = 1; + } + + // Routing mode. + oneof routing_config { + // Automated routing. + AutoRoutingMode auto_mode = 1; + + // Manual routing. + ManualRoutingMode manual_mode = 2; + } + } + // Optional. Controls the randomness of predictions. optional float temperature = 1 [(google.api.field_behavior) = OPTIONAL]; @@ -161,6 +203,9 @@ message GenerationConfig { // Optional. Frequency penalties. optional float frequency_penalty = 9 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Seed. + optional int32 seed = 12 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Output response mimetype of the generated candidate text. // Supported mimetype: // - `text/plain`: (default) Text output. @@ -178,6 +223,10 @@ message GenerationConfig { // Compatible mimetypes: // `application/json`: Schema for JSON response. optional Schema response_schema = 16 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Routing configuration. + optional RoutingConfig routing_config = 17 + [(google.api.field_behavior) = OPTIONAL]; } // Safety settings. @@ -317,34 +366,34 @@ message Candidate { // The finish reason is unspecified. FINISH_REASON_UNSPECIFIED = 0; - // Natural stop point of the model or provided stop sequence. + // Token generation reached a natural stopping point or a configured stop + // sequence. STOP = 1; - // The maximum number of tokens as specified in the request was reached. + // Token generation reached the configured maximum output tokens. MAX_TOKENS = 2; - // The token generation was stopped as the response was flagged for safety - // reasons. NOTE: When streaming the Candidate.content will be empty if - // content filters blocked the output. + // Token generation stopped because the content potentially contains safety + // violations. NOTE: When streaming, + // [content][google.cloud.aiplatform.v1beta1.Candidate.content] is empty if + // content filters blocks the output. SAFETY = 3; - // The token generation was stopped as the response was flagged for - // unauthorized citations. + // Token generation stopped because the content potentially contains + // copyright violations. RECITATION = 4; - // All other reasons that stopped the token generation + // All other reasons that stopped the token generation. OTHER = 5; - // The token generation was stopped as the response was flagged for the - // terms which are included from the terminology blocklist. + // Token generation stopped because the content contains forbidden terms. BLOCKLIST = 6; - // The token generation was stopped as the response was flagged for - // the prohibited contents. + // Token generation stopped for potentially containing prohibited content. PROHIBITED_CONTENT = 7; - // The token generation was stopped as the response was flagged for - // Sensitive Personally Identifiable Information (SPII) contents. + // Token generation stopped because the content potentially contains + // Sensitive Personally Identifiable Information (SPII). SPII = 8; // The function call generated by the model is invalid. @@ -357,6 +406,9 @@ message Candidate { // Output only. Content parts of the candidate. Content content = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Average log probability score of the candidate. + double avg_logprobs = 9 [(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]; @@ -445,46 +497,6 @@ message GroundingSupport { repeated float confidence_scores = 3; } -// Grounding attribution. -message GroundingAttribution { - // Attribution from the web. - message Web { - // Output only. URI reference of the attribution. - string uri = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Title of the attribution. - string title = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // Attribution from context retrieved by the retrieval tools. - message RetrievedContext { - // Output only. URI reference of the attribution. - string uri = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Title of the attribution. - string title = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - oneof reference { - // Optional. Attribution from the web. - Web web = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Attribution from context retrieved by the retrieval tools. - RetrievedContext retrieved_context = 4 - [(google.api.field_behavior) = OPTIONAL]; - } - - // Output only. Segment of the content this attribution belongs to. - Segment segment = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Optional. Output only. Confidence score of the attribution. Ranges from 0 - // to 1. 1 is the most confident. - optional float confidence_score = 2 [ - (google.api.field_behavior) = OPTIONAL, - (google.api.field_behavior) = OUTPUT_ONLY - ]; -} - // Metadata returned to client when grounding is enabled. message GroundingMetadata { // Optional. Web search queries for the following-up web search. @@ -499,10 +511,6 @@ message GroundingMetadata { repeated string retrieval_queries = 3 [(google.api.field_behavior) = OPTIONAL]; - // Optional. List of grounding attributions. - repeated GroundingAttribution grounding_attributions = 2 - [(google.api.field_behavior) = OPTIONAL]; - // List of supporting references retrieved from specified grounding source. repeated GroundingChunk grounding_chunks = 5; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/custom_job.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/custom_job.proto index aeed90cc78a..405dd8480c3 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/custom_job.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/custom_job.proto @@ -109,6 +109,12 @@ message CustomJob { // The values are the URIs for each node's interactive shell. map web_access_uris = 16 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + bool satisfies_pzs = 18 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + bool satisfies_pzi = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Represents the spec of a CustomJob. @@ -352,19 +358,25 @@ message PythonPackageSpec { // All parameters related to queuing and scheduling of custom jobs. message Scheduling { // Optional. This determines which type of scheduling strategy to use. Right - // now users have two options such as ON_DEMAND which will use regular on - // demand resources to schedule the job, the other is LOW_COST which would + // now users have two options such as STANDARD which will use regular on + // demand resources to schedule the job, the other is SPOT which would // leverage spot resources alongwith regular resources to schedule // the job. enum Strategy { - // Strategy will default to ON_DEMAND. + // Strategy will default to STANDARD. STRATEGY_UNSPECIFIED = 0; // Regular on-demand provisioning strategy. - ON_DEMAND = 1; + ON_DEMAND = 1 [deprecated = true]; // Low cost by making potential use of spot resources. - LOW_COST = 2; + LOW_COST = 2 [deprecated = true]; + + // Standard provisioning strategy uses regular on-demand resources. + STANDARD = 3; + + // Spot provisioning strategy uses spot resources. + SPOT = 4; } // The maximum job running time. The default is 7 days. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/dataset_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/dataset_service.proto index 76a46750da1..63797d5f82d 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/dataset_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/dataset_service.proto @@ -51,6 +51,7 @@ service DatasetService { option (google.api.http) = { post: "/v1beta1/{parent=projects/*/locations/*}/datasets" body: "dataset" + additional_bindings { post: "/v1beta1/datasets" body: "dataset" } }; option (google.api.method_signature) = "parent,dataset"; option (google.longrunning.operation_info) = { @@ -63,6 +64,7 @@ service DatasetService { rpc GetDataset(GetDatasetRequest) returns (Dataset) { option (google.api.http) = { get: "/v1beta1/{name=projects/*/locations/*/datasets/*}" + additional_bindings { get: "/v1beta1/{name=datasets/*}" } }; option (google.api.method_signature) = "name"; } @@ -72,6 +74,10 @@ service DatasetService { option (google.api.http) = { patch: "/v1beta1/{dataset.name=projects/*/locations/*/datasets/*}" body: "dataset" + additional_bindings { + patch: "/v1beta1/{dataset.name=datasets/*}" + body: "dataset" + } }; option (google.api.method_signature) = "dataset,update_mask"; } @@ -80,6 +86,7 @@ service DatasetService { rpc ListDatasets(ListDatasetsRequest) returns (ListDatasetsResponse) { option (google.api.http) = { get: "/v1beta1/{parent=projects/*/locations/*}/datasets" + additional_bindings { get: "/v1beta1/datasets" } }; option (google.api.method_signature) = "parent"; } @@ -89,6 +96,7 @@ service DatasetService { returns (google.longrunning.Operation) { option (google.api.http) = { delete: "/v1beta1/{name=projects/*/locations/*/datasets/*}" + additional_bindings { delete: "/v1beta1/{name=datasets/*}" } }; option (google.api.method_signature) = "name"; option (google.longrunning.operation_info) = { @@ -129,6 +137,10 @@ service DatasetService { option (google.api.http) = { post: "/v1beta1/{parent=projects/*/locations/*/datasets/*}/datasetVersions" body: "dataset_version" + additional_bindings { + post: "/v1beta1/{parent=datasets/*}/datasetVersions" + body: "dataset_version" + } }; option (google.api.method_signature) = "parent,dataset_version"; option (google.longrunning.operation_info) = { @@ -143,6 +155,10 @@ service DatasetService { option (google.api.http) = { patch: "/v1beta1/{dataset_version.name=projects/*/locations/*/datasets/*/datasetVersions/*}" body: "dataset_version" + additional_bindings { + patch: "/v1beta1/{dataset_version.name=datasets/*/datasetVersions/*}" + body: "dataset_version" + } }; option (google.api.method_signature) = "dataset_version,update_mask"; } @@ -152,6 +168,9 @@ service DatasetService { returns (google.longrunning.Operation) { option (google.api.http) = { delete: "/v1beta1/{name=projects/*/locations/*/datasets/*/datasetVersions/*}" + additional_bindings { + delete: "/v1beta1/{name=datasets/*/datasetVersions/*}" + } }; option (google.api.method_signature) = "name"; option (google.longrunning.operation_info) = { @@ -164,6 +183,9 @@ service DatasetService { rpc GetDatasetVersion(GetDatasetVersionRequest) returns (DatasetVersion) { option (google.api.http) = { get: "/v1beta1/{name=projects/*/locations/*/datasets/*/datasetVersions/*}" + additional_bindings { + get: "/v1beta1/{name=datasets/*/datasetVersions/*}" + } }; option (google.api.method_signature) = "name"; } @@ -173,6 +195,9 @@ service DatasetService { returns (ListDatasetVersionsResponse) { option (google.api.http) = { get: "/v1beta1/{parent=projects/*/locations/*/datasets/*}/datasetVersions" + additional_bindings { + get: "/v1beta1/{parent=datasets/*}/datasetVersions" + } }; option (google.api.method_signature) = "parent"; } @@ -182,6 +207,9 @@ service DatasetService { returns (google.longrunning.Operation) { option (google.api.http) = { get: "/v1beta1/{name=projects/*/locations/*/datasets/*/datasetVersions/*}:restore" + additional_bindings { + get: "/v1beta1/{name=datasets/*/datasetVersions/*}:restore" + } }; option (google.api.method_signature) = "name"; option (google.longrunning.operation_info) = { diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/entity_type.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/entity_type.proto index f37a185a6a8..83528407df0 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/entity_type.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/entity_type.proto @@ -95,4 +95,10 @@ message EntityType { // values older than `offline_storage_ttl_days` since the feature generation // time. If unset (or explicitly set to 0), default to 4000 days TTL. int32 offline_storage_ttl_days = 10 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Reserved for future use. + bool satisfies_pzs = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + bool satisfies_pzi = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/evaluation_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/evaluation_service.proto index beac5d5cdda..3c32c1290d8 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/evaluation_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/evaluation_service.proto @@ -121,6 +121,12 @@ message EvaluateInstancesRequest { // metric. QuestionAnsweringCorrectnessInput question_answering_correctness_input = 18; + // Input for pointwise metric. + PointwiseMetricInput pointwise_metric_input = 28; + + // Input for pairwise metric. + PairwiseMetricInput pairwise_metric_input = 29; + // Tool call metric instances. // Input for tool call valid metric. ToolCallValidInput tool_call_valid_input = 19; @@ -210,6 +216,13 @@ message EvaluateInstancesResponse { QuestionAnsweringCorrectnessResult question_answering_correctness_result = 17; + // Generic metrics. + // Result for pointwise metric. + PointwiseMetricResult pointwise_metric_result = 27; + + // Result for pairwise metric. + PairwiseMetricResult pairwise_metric_result = 28; + // Tool call metrics. // Results for tool call valid metric. ToolCallValidResults tool_call_valid_results = 18; @@ -957,6 +970,81 @@ message QuestionAnsweringCorrectnessResult { optional float confidence = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; } +// Input for pointwise metric. +message PointwiseMetricInput { + // Required. Spec for pointwise metric. + PointwiseMetricSpec metric_spec = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Pointwise metric instance. + PointwiseMetricInstance instance = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Pointwise metric instance. Usually one instance corresponds to one row in an +// evaluation dataset. +message PointwiseMetricInstance { + // Instance for pointwise metric. + oneof instance { + // Instance specified as a json string. String key-value pairs are expected + // in the json_instance to render + // PointwiseMetricSpec.instance_prompt_template. + string json_instance = 1; + } +} + +// Spec for pointwise metric. +message PointwiseMetricSpec { + // Required. Metric prompt template for pointwise metric. + optional string metric_prompt_template = 1 + [(google.api.field_behavior) = REQUIRED]; +} + +// Spec for pointwise metric result. +message PointwiseMetricResult { + // Output only. Pointwise metric score. + optional float score = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Explanation for pointwise metric score. + string explanation = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Input for pairwise metric. +message PairwiseMetricInput { + // Required. Spec for pairwise metric. + PairwiseMetricSpec metric_spec = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Pairwise metric instance. + PairwiseMetricInstance instance = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Pairwise metric instance. Usually one instance corresponds to one row in an +// evaluation dataset. +message PairwiseMetricInstance { + // Instance for pairwise metric. + oneof instance { + // Instance specified as a json string. String key-value pairs are expected + // in the json_instance to render + // PairwiseMetricSpec.instance_prompt_template. + string json_instance = 1; + } +} + +// Spec for pairwise metric. +message PairwiseMetricSpec { + // Required. Metric prompt template for pairwise metric. + optional string metric_prompt_template = 1 + [(google.api.field_behavior) = REQUIRED]; +} + +// Spec for pairwise metric result. +message PairwiseMetricResult { + // Output only. Pairwise metric choice. + PairwiseChoice pairwise_choice = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Explanation for pairwise metric score. + string explanation = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // Input for tool call valid metric. message ToolCallValidInput { // Required. Spec for tool call valid metric. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_group.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_group.proto index 611dcfb8cd6..b6f2e8d0cc0 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_group.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_group.proto @@ -40,6 +40,14 @@ message FeatureGroup { // Input source type for BigQuery Tables and Views. message BigQuery { + message TimeSeries { + // Optional. Column hosting timestamp values for a time-series source. + // Will be used to determine the latest `feature_values` for each entity. + // Optional. If not provided, column named `feature_timestamp` of + // type `TIMESTAMP` will be used. + string timestamp_column = 1 [(google.api.field_behavior) = OPTIONAL]; + } + // Required. Immutable. The BigQuery source URI that points to either a // BigQuery Table or View. BigQuerySource big_query_source = 1 [ @@ -51,6 +59,13 @@ message FeatureGroup { // If not provided defaults to `entity_id`. repeated string entity_id_columns = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If the source is a time-series source, this can be set to + // control how downstream sources (ex: + // [FeatureView][google.cloud.aiplatform.v1beta1.FeatureView] ) will treat + // time-series sources. If not set, will treat the source as a time-series + // source with `feature_timestamp` as timestamp column and no scan boundary. + TimeSeries time_series = 4 [(google.api.field_behavior) = OPTIONAL]; } oneof source { diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_online_store.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_online_store.proto index cd37404e4cf..84becd50ddb 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_online_store.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_online_store.proto @@ -179,4 +179,10 @@ message FeatureOnlineStore { // Optional. Customer-managed encryption key spec for data storage. If set, // online store will be secured by this key. EncryptionSpec encryption_spec = 13 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Reserved for future use. + bool satisfies_pzs = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + bool satisfies_pzi = 16 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_view.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_view.proto index 0afe1723064..29ebb0af5bd 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_view.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_view.proto @@ -324,4 +324,10 @@ message FeatureView { // bigquery.dataViewer should be granted to this service account to allow // Vertex AI Feature Store to sync data to the online store. string service_account_email = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + bool satisfies_pzs = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + bool satisfies_pzi = 20 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_view_sync.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_view_sync.proto index eac71f7bb8e..f960b1d97d7 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_view_sync.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/feature_view_sync.proto @@ -67,4 +67,10 @@ message FeatureViewSync { // Output only. Summary of the sync job. SyncSummary sync_summary = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + bool satisfies_pzs = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + bool satisfies_pzi = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/featurestore.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/featurestore.proto index 90371930f5e..052e6d3b570 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/featurestore.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/featurestore.proto @@ -149,4 +149,10 @@ message Featurestore { // Optional. Customer-managed encryption key spec for data storage. If set, // both of the online and offline data storage will be secured by this key. EncryptionSpec encryption_spec = 10 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Reserved for future use. + bool satisfies_pzs = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + bool satisfies_pzi = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/hyperparameter_tuning_job.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/hyperparameter_tuning_job.proto index abc835822d9..c79a649ac95 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/hyperparameter_tuning_job.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/hyperparameter_tuning_job.proto @@ -113,4 +113,10 @@ message HyperparameterTuningJob { // If this is set, then all resources created by the HyperparameterTuningJob // will be encrypted with the provided encryption key. EncryptionSpec encryption_spec = 17; + + // Output only. Reserved for future use. + bool satisfies_pzs = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + bool satisfies_pzi = 20 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index.proto index af235fbe722..f0c71a59ac1 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index.proto @@ -125,6 +125,12 @@ message Index { // Immutable. Customer-managed encryption key spec for an Index. If set, this // Index and all sub-resources of this Index will be secured by this key. EncryptionSpec encryption_spec = 17 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. Reserved for future use. + bool satisfies_pzs = 18 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + bool satisfies_pzi = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; } // A datapoint of Index. 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 4fa4b3b3e51..35b820b5711 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 @@ -128,6 +128,12 @@ message IndexEndpoint { // set, this IndexEndpoint and all sub-resources of this IndexEndpoint will be // secured by this key. EncryptionSpec encryption_spec = 15 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. Reserved for future use. + bool satisfies_pzs = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + bool satisfies_pzi = 18 [(google.api.field_behavior) = OUTPUT_ONLY]; } // A deployment of an Index. IndexEndpoints contain one or more DeployedIndexes. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/llm_utility_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/llm_utility_service.proto index f5f554937cc..a03d4a4ddf7 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/llm_utility_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/llm_utility_service.proto @@ -46,6 +46,14 @@ service LlmUtilityService { post: "/v1beta1/{endpoint=projects/*/locations/*/publishers/*/models/*}:computeTokens" body: "*" } + additional_bindings { + post: "/v1beta1/{endpoint=endpoints/*}:computeTokens" + body: "*" + } + additional_bindings { + post: "/v1beta1/{endpoint=publishers/*/models/*}:computeTokens" + body: "*" + } }; option (google.api.method_signature) = "endpoint,instances"; } diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/machine_resources.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/machine_resources.proto index b2fc4492668..3951f0e3914 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/machine_resources.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/machine_resources.proto @@ -18,6 +18,7 @@ package google.cloud.aiplatform.v1beta1; import "google/api/field_behavior.proto"; import "google/cloud/aiplatform/v1beta1/accelerator_type.proto"; +import "google/cloud/aiplatform/v1beta1/reservation_affinity.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; @@ -56,6 +57,13 @@ message MachineSpec { // Immutable. The topology of the TPUs. Corresponds to the TPU topologies // available from GKE. (Example: tpu_topology: "2x2x1"). string tpu_topology = 4 [(google.api.field_behavior) = IMMUTABLE]; + + // Optional. Immutable. Configuration controlling how this resource pool + // consumes reservation. + ReservationAffinity reservation_affinity = 5 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = OPTIONAL + ]; } // A description of resources that are dedicated to a DeployedModel, and @@ -121,6 +129,10 @@ message DedicatedResources { // to `80`. repeated AutoscalingMetricSpec autoscaling_metric_specs = 4 [(google.api.field_behavior) = IMMUTABLE]; + + // Optional. If true, schedule the deployment workload on [spot + // VMs](https://cloud.google.com/kubernetes-engine/docs/concepts/spot-vms). + bool spot = 5 [(google.api.field_behavior) = OPTIONAL]; } // A description of resources that to large degree are decided by Vertex AI, diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_deployment_monitoring_job.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_deployment_monitoring_job.proto index a83fa125327..3ed7eb06a29 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_deployment_monitoring_job.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_deployment_monitoring_job.proto @@ -224,6 +224,12 @@ message ModelDeploymentMonitoringJob { // Output only. Only populated when the job's state is `JOB_STATE_FAILED` or // `JOB_STATE_CANCELLED`. google.rpc.Status error = 23 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + bool satisfies_pzs = 26 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + bool satisfies_pzi = 27 [(google.api.field_behavior) = OUTPUT_ONLY]; } // ModelDeploymentMonitoringBigQueryTable specifies the BigQuery table name diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_garden_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_garden_service.proto index 981782d0a5b..1a6e1374214 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_garden_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/model_garden_service.proto @@ -93,6 +93,9 @@ message GetPublisherModelRequest { // Optional. Boolean indicates whether the requested model is a Hugging Face // model. bool is_hugging_face_model = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Token used to access Hugging Face gated models. + string hugging_face_token = 6 [(google.api.field_behavior) = OPTIONAL]; } // Request message for diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/nas_job.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/nas_job.proto index 18a0e011b77..0074669de5b 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/nas_job.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/nas_job.proto @@ -97,6 +97,12 @@ message NasJob { // and restricted image training for tenant project. bool enable_restricted_image_training = 14 [deprecated = true, (google.api.field_behavior) = OPTIONAL]; + + // Output only. Reserved for future use. + bool satisfies_pzs = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + bool satisfies_pzi = 16 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Represents a NasTrial details along with its parameters. If there is a diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/notebook_execution_job.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/notebook_execution_job.proto index 3b544a27d84..9ed515260c7 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/notebook_execution_job.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/notebook_execution_job.proto @@ -18,6 +18,7 @@ package google.cloud.aiplatform.v1beta1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1beta1/encryption_spec.proto"; import "google/cloud/aiplatform/v1beta1/job_state.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; @@ -155,4 +156,9 @@ message NotebookExecutionJob { // System reserved label keys are prefixed with "aiplatform.googleapis.com/" // and are immutable. map labels = 19; + + // Customer-managed encryption key spec for the notebook execution job. + // This field is auto-populated if the + // [NotebookService.NotebookRuntimeTemplate][] has an encryption spec. + EncryptionSpec encryption_spec = 22; } 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 62cc50668c3..4a7aa74988c 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 @@ -173,6 +173,14 @@ service PredictionService { post: "/v1beta1/{endpoint=projects/*/locations/*/publishers/*/models/*}:countTokens" body: "*" } + additional_bindings { + post: "/v1beta1/{endpoint=endpoints/*}:countTokens" + body: "*" + } + additional_bindings { + post: "/v1beta1/{endpoint=publishers/*/models/*}:countTokens" + body: "*" + } }; option (google.api.method_signature) = "endpoint,instances"; } @@ -187,6 +195,14 @@ service PredictionService { post: "/v1beta1/{model=projects/*/locations/*/publishers/*/models/*}:generateContent" body: "*" } + additional_bindings { + post: "/v1beta1/{model=endpoints/*}:generateContent" + body: "*" + } + additional_bindings { + post: "/v1beta1/{model=publishers/*/models/*}:generateContent" + body: "*" + } }; option (google.api.method_signature) = "model,contents"; } @@ -201,6 +217,14 @@ service PredictionService { post: "/v1beta1/{model=projects/*/locations/*/publishers/*/models/*}:streamGenerateContent" body: "*" } + additional_bindings { + post: "/v1beta1/{model=endpoints/*}:streamGenerateContent" + body: "*" + } + additional_bindings { + post: "/v1beta1/{model=publishers/*/models/*}:streamGenerateContent" + body: "*" + } }; option (google.api.method_signature) = "model,contents"; } @@ -793,7 +817,9 @@ message GenerateContentResponse { // Usage metadata about response(s). message UsageMetadata { - // Number of tokens in the request. + // Number of tokens in the request. When `cached_content` is set, this is + // still the total effective prompt size meaning this includes the number of + // tokens in the cached content. int32 prompt_token_count = 1; // Number of tokens in the response(s). diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/publisher_model.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/publisher_model.proto index eff93af47e0..19bc412c473 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/publisher_model.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/publisher_model.proto @@ -131,6 +131,9 @@ message PublisherModel { // Optional. Labels for the deployment. For managing deployment config // like verifying, source of deployment config, etc. map labels = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Sample request for deployed endpoint. + string sample_request = 2 [(google.api.field_behavior) = OPTIONAL]; } // The prediction (for example, the machine) resources that the diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/reservation_affinity.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/reservation_affinity.proto new file mode 100644 index 00000000000..49fb148e51a --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/reservation_affinity.proto @@ -0,0 +1,71 @@ +// 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"; + +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 = "ReservationAffinityProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; +option (google.api.resource_definition) = { + type: "compute.googleapis.com/Reservation" + pattern: "projects/{project_id_or_number}/zones/{zone}/reservations/{reservation_name}" +}; + +// A ReservationAffinity can be used to configure a Vertex AI resource (e.g., a +// DeployedModel) to draw its Compute Engine resources from a Shared +// Reservation, or exclusively from on-demand capacity. +message ReservationAffinity { + // Identifies a type of reservation affinity. + enum Type { + // Default value. This should not be used. + TYPE_UNSPECIFIED = 0; + + // Do not consume from any reserved capacity, only use on-demand. + NO_RESERVATION = 1; + + // Consume any reservation available, falling back to on-demand. + ANY_RESERVATION = 2; + + // Consume from a specific reservation. When chosen, the reservation + // must be identified via the `key` and `values` fields. + SPECIFIC_RESERVATION = 3; + } + + // Required. Specifies the reservation affinity type. + Type reservation_affinity_type = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Corresponds to the label key of a reservation resource. To target + // a SPECIFIC_RESERVATION by name, use + // `compute.googleapis.com/reservation-name` as the key and specify the name + // of your reservation as its value. + string key = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Corresponds to the label values of a reservation resource. This + // must be the full resource name of the reservation. + repeated string values = 3 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "compute.googleapis.com/Reservation" + } + ]; +} 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 a1ffb2c4905..53af326725f 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 @@ -40,6 +40,11 @@ message PrivateServiceConnectConfig { // A list of Projects from which the forwarding rule will target the service // attachment. repeated string project_allowlist = 2; + + // Output only. The name of the generated service attachment resource. + // This is only populated if the endpoint is deployed with + // PrivateServiceConnect. + string service_attachment = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; } // PscAutomatedEndpoints defines the output of the forwarding rule diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tool.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tool.proto index 279dfd0e563..03fc230580a 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tool.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tool.proto @@ -233,12 +233,7 @@ message VertexAISearch { } // Tool to retrieve public web data for grounding, powered by Google. -message GoogleSearchRetrieval { - // Optional. Disable using the result from this tool in detecting grounding - // attribution. This does not affect how the result is given to the model for - // generation. - bool disable_attribution = 1 [(google.api.field_behavior) = OPTIONAL]; -} +message GoogleSearchRetrieval {} // Tool config. This config is shared for all tools provided in the request. message ToolConfig { @@ -255,7 +250,7 @@ message FunctionCallingConfig { MODE_UNSPECIFIED = 0; // Default model behavior, model decides to predict either a function call - // or a natural language repspose. + // or a natural language response. AUTO = 1; // Model is constrained to always predicting a function call only. diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tuning_job.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tuning_job.proto index 4bbf8d74c71..308b2bc9640 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tuning_job.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/tuning_job.proto @@ -248,6 +248,14 @@ message SupervisedTuningDataStats { // Output only. Sample user messages in the training dataset uri. repeated Content user_dataset_examples = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The number of examples in the dataset that have been truncated by any + // amount. + int64 total_truncated_example_count = 10; + + // A partial sample of the indices (starting from 1) of the truncated + // examples. + repeated int64 truncated_example_indices = 11; } // Distribution computed over a tuning dataset. 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 ae8aff9915e..91fdedeb82d 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 @@ -187,6 +187,12 @@ message RagFileChunkingConfig { int32 chunk_overlap = 2; } +// Specifies the parsing config for RagFiles. +message RagFileParsingConfig { + // Whether to use advanced PDF parsing. + bool use_advanced_pdf_parsing = 2; +} + // Config for uploading RagFile. message UploadRagFileConfig { // Specifies the size and overlap of chunks after uploading RagFile. @@ -217,6 +223,9 @@ message ImportRagFilesConfig { // Specifies the size and overlap of chunks after importing RagFiles. RagFileChunkingConfig rag_file_chunking_config = 4; + // Specifies the parsing config for RagFiles. + RagFileParsingConfig rag_file_parsing_config = 8; + // Optional. The max number of queries per minute that this job is allowed to // make to the embedding model specified on the corpus. This value is specific // to this job and not shared across other import jobs. Consult the Quotas diff --git a/packages/google-cloud-aiplatform/protos/protos.d.ts b/packages/google-cloud-aiplatform/protos/protos.d.ts index 933b8afab91..60fa419c568 100644 --- a/packages/google-cloud-aiplatform/protos/protos.d.ts +++ b/packages/google-cloud-aiplatform/protos/protos.d.ts @@ -672,6 +672,12 @@ export namespace google { /** BatchPredictionJob disableContainerLogging */ disableContainerLogging?: (boolean|null); + + /** BatchPredictionJob satisfiesPzs */ + satisfiesPzs?: (boolean|null); + + /** BatchPredictionJob satisfiesPzi */ + satisfiesPzi?: (boolean|null); } /** Represents a BatchPredictionJob. */ @@ -764,6 +770,12 @@ export namespace google { /** BatchPredictionJob disableContainerLogging. */ public disableContainerLogging: boolean; + /** BatchPredictionJob satisfiesPzs. */ + public satisfiesPzs: boolean; + + /** BatchPredictionJob satisfiesPzi. */ + public satisfiesPzi: boolean; + /** * Creates a new BatchPredictionJob instance using the specified properties. * @param [properties] Properties to set @@ -5399,6 +5411,9 @@ export namespace google { /** MachineSpec tpuTopology */ tpuTopology?: (string|null); + + /** MachineSpec reservationAffinity */ + reservationAffinity?: (google.cloud.aiplatform.v1.IReservationAffinity|null); } /** Represents a MachineSpec. */ @@ -5422,6 +5437,9 @@ export namespace google { /** MachineSpec tpuTopology. */ public tpuTopology: string; + /** MachineSpec reservationAffinity. */ + public reservationAffinity?: (google.cloud.aiplatform.v1.IReservationAffinity|null); + /** * Creates a new MachineSpec instance using the specified properties. * @param [properties] Properties to set @@ -5514,6 +5532,9 @@ export namespace google { /** DedicatedResources autoscalingMetricSpecs */ autoscalingMetricSpecs?: (google.cloud.aiplatform.v1.IAutoscalingMetricSpec[]|null); + + /** DedicatedResources spot */ + spot?: (boolean|null); } /** Represents a DedicatedResources. */ @@ -5537,6 +5558,9 @@ export namespace google { /** DedicatedResources autoscalingMetricSpecs. */ public autoscalingMetricSpecs: google.cloud.aiplatform.v1.IAutoscalingMetricSpec[]; + /** DedicatedResources spot. */ + public spot: boolean; + /** * Creates a new DedicatedResources instance using the specified properties. * @param [properties] Properties to set @@ -6439,6 +6463,126 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a ReservationAffinity. */ + interface IReservationAffinity { + + /** ReservationAffinity reservationAffinityType */ + reservationAffinityType?: (google.cloud.aiplatform.v1.ReservationAffinity.Type|keyof typeof google.cloud.aiplatform.v1.ReservationAffinity.Type|null); + + /** ReservationAffinity key */ + key?: (string|null); + + /** ReservationAffinity values */ + values?: (string[]|null); + } + + /** Represents a ReservationAffinity. */ + class ReservationAffinity implements IReservationAffinity { + + /** + * Constructs a new ReservationAffinity. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IReservationAffinity); + + /** ReservationAffinity reservationAffinityType. */ + public reservationAffinityType: (google.cloud.aiplatform.v1.ReservationAffinity.Type|keyof typeof google.cloud.aiplatform.v1.ReservationAffinity.Type); + + /** ReservationAffinity key. */ + public key: string; + + /** ReservationAffinity values. */ + public values: string[]; + + /** + * Creates a new ReservationAffinity instance using the specified properties. + * @param [properties] Properties to set + * @returns ReservationAffinity instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IReservationAffinity): google.cloud.aiplatform.v1.ReservationAffinity; + + /** + * Encodes the specified ReservationAffinity message. Does not implicitly {@link google.cloud.aiplatform.v1.ReservationAffinity.verify|verify} messages. + * @param message ReservationAffinity message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IReservationAffinity, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReservationAffinity message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReservationAffinity.verify|verify} messages. + * @param message ReservationAffinity message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IReservationAffinity, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReservationAffinity message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReservationAffinity + * @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.ReservationAffinity; + + /** + * Decodes a ReservationAffinity message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReservationAffinity + * @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.ReservationAffinity; + + /** + * Verifies a ReservationAffinity 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 ReservationAffinity message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReservationAffinity + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ReservationAffinity; + + /** + * Creates a plain object from a ReservationAffinity message. Also converts values to other types if specified. + * @param message ReservationAffinity + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ReservationAffinity, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReservationAffinity to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReservationAffinity + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace ReservationAffinity { + + /** Type enum. */ + enum Type { + TYPE_UNSPECIFIED = 0, + NO_RESERVATION = 1, + ANY_RESERVATION = 2, + SPECIFIC_RESERVATION = 3 + } + } + /** Properties of a ManualBatchTuningParameters. */ interface IManualBatchTuningParameters { @@ -9165,11 +9309,17 @@ export namespace google { /** GenerationConfig frequencyPenalty */ frequencyPenalty?: (number|null); + /** GenerationConfig seed */ + seed?: (number|null); + /** GenerationConfig responseMimeType */ responseMimeType?: (string|null); /** GenerationConfig responseSchema */ responseSchema?: (google.cloud.aiplatform.v1.ISchema|null); + + /** GenerationConfig routingConfig */ + routingConfig?: (google.cloud.aiplatform.v1.GenerationConfig.IRoutingConfig|null); } /** Represents a GenerationConfig. */ @@ -9205,12 +9355,18 @@ export namespace google { /** GenerationConfig frequencyPenalty. */ public frequencyPenalty?: (number|null); + /** GenerationConfig seed. */ + public seed?: (number|null); + /** GenerationConfig responseMimeType. */ public responseMimeType: string; /** GenerationConfig responseSchema. */ public responseSchema?: (google.cloud.aiplatform.v1.ISchema|null); + /** GenerationConfig routingConfig. */ + public routingConfig?: (google.cloud.aiplatform.v1.GenerationConfig.IRoutingConfig|null); + /** GenerationConfig _temperature. */ public _temperature?: "temperature"; @@ -9232,9 +9388,15 @@ export namespace google { /** GenerationConfig _frequencyPenalty. */ public _frequencyPenalty?: "frequencyPenalty"; + /** GenerationConfig _seed. */ + public _seed?: "seed"; + /** GenerationConfig _responseSchema. */ public _responseSchema?: "responseSchema"; + /** GenerationConfig _routingConfig. */ + public _routingConfig?: "routingConfig"; + /** * Creates a new GenerationConfig instance using the specified properties. * @param [properties] Properties to set @@ -9313,6 +9475,329 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + namespace GenerationConfig { + + /** Properties of a RoutingConfig. */ + interface IRoutingConfig { + + /** RoutingConfig autoMode */ + autoMode?: (google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.IAutoRoutingMode|null); + + /** RoutingConfig manualMode */ + manualMode?: (google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.IManualRoutingMode|null); + } + + /** Represents a RoutingConfig. */ + class RoutingConfig implements IRoutingConfig { + + /** + * Constructs a new RoutingConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.GenerationConfig.IRoutingConfig); + + /** RoutingConfig autoMode. */ + public autoMode?: (google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.IAutoRoutingMode|null); + + /** RoutingConfig manualMode. */ + public manualMode?: (google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.IManualRoutingMode|null); + + /** RoutingConfig routingConfig. */ + public routingConfig?: ("autoMode"|"manualMode"); + + /** + * Creates a new RoutingConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns RoutingConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1.GenerationConfig.IRoutingConfig): google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig; + + /** + * Encodes the specified RoutingConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.verify|verify} messages. + * @param message RoutingConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.GenerationConfig.IRoutingConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RoutingConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.verify|verify} messages. + * @param message RoutingConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.GenerationConfig.IRoutingConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RoutingConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RoutingConfig + * @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.GenerationConfig.RoutingConfig; + + /** + * Decodes a RoutingConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RoutingConfig + * @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.GenerationConfig.RoutingConfig; + + /** + * Verifies a RoutingConfig 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 RoutingConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RoutingConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig; + + /** + * Creates a plain object from a RoutingConfig message. Also converts values to other types if specified. + * @param message RoutingConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RoutingConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RoutingConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace RoutingConfig { + + /** Properties of an AutoRoutingMode. */ + interface IAutoRoutingMode { + + /** AutoRoutingMode modelRoutingPreference */ + modelRoutingPreference?: (google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.AutoRoutingMode.ModelRoutingPreference|keyof typeof google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.AutoRoutingMode.ModelRoutingPreference|null); + } + + /** Represents an AutoRoutingMode. */ + class AutoRoutingMode implements IAutoRoutingMode { + + /** + * Constructs a new AutoRoutingMode. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.IAutoRoutingMode); + + /** AutoRoutingMode modelRoutingPreference. */ + public modelRoutingPreference?: (google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.AutoRoutingMode.ModelRoutingPreference|keyof typeof google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.AutoRoutingMode.ModelRoutingPreference|null); + + /** AutoRoutingMode _modelRoutingPreference. */ + public _modelRoutingPreference?: "modelRoutingPreference"; + + /** + * Creates a new AutoRoutingMode instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoRoutingMode instance + */ + public static create(properties?: google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.IAutoRoutingMode): google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.AutoRoutingMode; + + /** + * Encodes the specified AutoRoutingMode message. Does not implicitly {@link google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.AutoRoutingMode.verify|verify} messages. + * @param message AutoRoutingMode message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.IAutoRoutingMode, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutoRoutingMode message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.AutoRoutingMode.verify|verify} messages. + * @param message AutoRoutingMode message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.IAutoRoutingMode, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutoRoutingMode message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoRoutingMode + * @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.GenerationConfig.RoutingConfig.AutoRoutingMode; + + /** + * Decodes an AutoRoutingMode message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoRoutingMode + * @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.GenerationConfig.RoutingConfig.AutoRoutingMode; + + /** + * Verifies an AutoRoutingMode 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 AutoRoutingMode message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoRoutingMode + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.AutoRoutingMode; + + /** + * Creates a plain object from an AutoRoutingMode message. Also converts values to other types if specified. + * @param message AutoRoutingMode + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.AutoRoutingMode, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutoRoutingMode to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AutoRoutingMode + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace AutoRoutingMode { + + /** ModelRoutingPreference enum. */ + enum ModelRoutingPreference { + UNKNOWN = 0, + PRIORITIZE_QUALITY = 1, + BALANCED = 2, + PRIORITIZE_COST = 3 + } + } + + /** Properties of a ManualRoutingMode. */ + interface IManualRoutingMode { + + /** ManualRoutingMode modelName */ + modelName?: (string|null); + } + + /** Represents a ManualRoutingMode. */ + class ManualRoutingMode implements IManualRoutingMode { + + /** + * Constructs a new ManualRoutingMode. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.IManualRoutingMode); + + /** ManualRoutingMode modelName. */ + public modelName?: (string|null); + + /** ManualRoutingMode _modelName. */ + public _modelName?: "modelName"; + + /** + * Creates a new ManualRoutingMode instance using the specified properties. + * @param [properties] Properties to set + * @returns ManualRoutingMode instance + */ + public static create(properties?: google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.IManualRoutingMode): google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.ManualRoutingMode; + + /** + * Encodes the specified ManualRoutingMode message. Does not implicitly {@link google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.ManualRoutingMode.verify|verify} messages. + * @param message ManualRoutingMode message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.IManualRoutingMode, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ManualRoutingMode message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.ManualRoutingMode.verify|verify} messages. + * @param message ManualRoutingMode message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.IManualRoutingMode, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ManualRoutingMode message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ManualRoutingMode + * @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.GenerationConfig.RoutingConfig.ManualRoutingMode; + + /** + * Decodes a ManualRoutingMode message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ManualRoutingMode + * @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.GenerationConfig.RoutingConfig.ManualRoutingMode; + + /** + * Verifies a ManualRoutingMode 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 ManualRoutingMode message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ManualRoutingMode + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.ManualRoutingMode; + + /** + * Creates a plain object from a ManualRoutingMode message. Also converts values to other types if specified. + * @param message ManualRoutingMode + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.ManualRoutingMode, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ManualRoutingMode to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ManualRoutingMode + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + } + /** Properties of a SafetySetting. */ interface ISafetySetting { @@ -9825,6 +10310,9 @@ export namespace google { /** Candidate score */ score?: (number|null); + /** Candidate avgLogprobs */ + avgLogprobs?: (number|null); + /** Candidate finishReason */ finishReason?: (google.cloud.aiplatform.v1.Candidate.FinishReason|keyof typeof google.cloud.aiplatform.v1.Candidate.FinishReason|null); @@ -9859,6 +10347,9 @@ export namespace google { /** Candidate score. */ public score: number; + /** Candidate avgLogprobs. */ + public avgLogprobs: number; + /** Candidate finishReason. */ public finishReason: (google.cloud.aiplatform.v1.Candidate.FinishReason|keyof typeof google.cloud.aiplatform.v1.Candidate.FinishReason); @@ -12093,6 +12584,12 @@ export namespace google { /** CustomJob webAccessUris */ webAccessUris?: ({ [k: string]: string }|null); + + /** CustomJob satisfiesPzs */ + satisfiesPzs?: (boolean|null); + + /** CustomJob satisfiesPzi */ + satisfiesPzi?: (boolean|null); } /** Represents a CustomJob. */ @@ -12140,6 +12637,12 @@ export namespace google { /** CustomJob webAccessUris. */ public webAccessUris: { [k: string]: string }; + /** CustomJob satisfiesPzs. */ + public satisfiesPzs: boolean; + + /** CustomJob satisfiesPzi. */ + public satisfiesPzi: boolean; + /** * Creates a new CustomJob instance using the specified properties. * @param [properties] Properties to set @@ -12880,7 +13383,9 @@ export namespace google { enum Strategy { STRATEGY_UNSPECIFIED = 0, ON_DEMAND = 1, - LOW_COST = 2 + LOW_COST = 2, + STANDARD = 3, + SPOT = 4 } } @@ -12904,6 +13409,12 @@ export namespace google { /** DataItem etag */ etag?: (string|null); + + /** DataItem satisfiesPzs */ + satisfiesPzs?: (boolean|null); + + /** DataItem satisfiesPzi */ + satisfiesPzi?: (boolean|null); } /** Represents a DataItem. */ @@ -12933,6 +13444,12 @@ export namespace google { /** DataItem etag. */ public etag: string; + /** DataItem satisfiesPzs. */ + public satisfiesPzs: boolean; + + /** DataItem satisfiesPzi. */ + public satisfiesPzi: boolean; + /** * Creates a new DataItem instance using the specified properties. * @param [properties] Properties to set @@ -13593,6 +14110,12 @@ export namespace google { /** Dataset modelReference */ modelReference?: (string|null); + + /** Dataset satisfiesPzs */ + satisfiesPzs?: (boolean|null); + + /** Dataset satisfiesPzi */ + satisfiesPzi?: (boolean|null); } /** Represents a Dataset. */ @@ -13646,6 +14169,12 @@ export namespace google { /** Dataset modelReference. */ public modelReference: string; + /** Dataset satisfiesPzs. */ + public satisfiesPzs: boolean; + + /** Dataset satisfiesPzi. */ + public satisfiesPzi: boolean; + /** * Creates a new Dataset instance using the specified properties. * @param [properties] Properties to set @@ -18448,6 +18977,12 @@ export namespace google { /** DatasetVersion modelReference */ modelReference?: (string|null); + + /** DatasetVersion satisfiesPzs */ + satisfiesPzs?: (boolean|null); + + /** DatasetVersion satisfiesPzi */ + satisfiesPzi?: (boolean|null); } /** Represents a DatasetVersion. */ @@ -18483,6 +19018,12 @@ export namespace google { /** DatasetVersion modelReference. */ public modelReference: string; + /** DatasetVersion satisfiesPzs. */ + public satisfiesPzs: boolean; + + /** DatasetVersion satisfiesPzi. */ + public satisfiesPzi: boolean; + /** * Creates a new DatasetVersion instance using the specified properties. * @param [properties] Properties to set @@ -18896,6 +19437,12 @@ export namespace google { /** DeploymentResourcePool createTime */ createTime?: (google.protobuf.ITimestamp|null); + + /** DeploymentResourcePool satisfiesPzs */ + satisfiesPzs?: (boolean|null); + + /** DeploymentResourcePool satisfiesPzi */ + satisfiesPzi?: (boolean|null); } /** Represents a DeploymentResourcePool. */ @@ -18925,6 +19472,12 @@ export namespace google { /** DeploymentResourcePool createTime. */ public createTime?: (google.protobuf.ITimestamp|null); + /** DeploymentResourcePool satisfiesPzs. */ + public satisfiesPzs: boolean; + + /** DeploymentResourcePool satisfiesPzi. */ + public satisfiesPzi: boolean; + /** * Creates a new DeploymentResourcePool instance using the specified properties. * @param [properties] Properties to set @@ -20810,6 +21363,9 @@ export namespace google { /** PrivateServiceConnectConfig projectAllowlist */ projectAllowlist?: (string[]|null); + + /** PrivateServiceConnectConfig serviceAttachment */ + serviceAttachment?: (string|null); } /** Represents a PrivateServiceConnectConfig. */ @@ -20827,6 +21383,9 @@ export namespace google { /** PrivateServiceConnectConfig projectAllowlist. */ public projectAllowlist: string[]; + /** PrivateServiceConnectConfig serviceAttachment. */ + public serviceAttachment: string; + /** * Creates a new PrivateServiceConnectConfig instance using the specified properties. * @param [properties] Properties to set @@ -22868,6 +23427,12 @@ export namespace google { /** EntityType offlineStorageTtlDays */ offlineStorageTtlDays?: (number|null); + + /** EntityType satisfiesPzs */ + satisfiesPzs?: (boolean|null); + + /** EntityType satisfiesPzi */ + satisfiesPzi?: (boolean|null); } /** Represents an EntityType. */ @@ -22900,1012 +23465,12023 @@ export namespace google { /** EntityType monitoringConfig. */ public monitoringConfig?: (google.cloud.aiplatform.v1.IFeaturestoreMonitoringConfig|null); - /** EntityType offlineStorageTtlDays. */ - public offlineStorageTtlDays: number; + /** EntityType offlineStorageTtlDays. */ + public offlineStorageTtlDays: number; + + /** EntityType satisfiesPzs. */ + public satisfiesPzs: boolean; + + /** EntityType satisfiesPzi. */ + public satisfiesPzi: boolean; + + /** + * Creates a new EntityType instance using the specified properties. + * @param [properties] Properties to set + * @returns EntityType instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IEntityType): google.cloud.aiplatform.v1.EntityType; + + /** + * Encodes the specified EntityType message. Does not implicitly {@link google.cloud.aiplatform.v1.EntityType.verify|verify} messages. + * @param message EntityType message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IEntityType, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EntityType message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.EntityType.verify|verify} messages. + * @param message EntityType message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IEntityType, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EntityType message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EntityType + * @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.EntityType; + + /** + * Decodes an EntityType message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EntityType + * @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.EntityType; + + /** + * Verifies an EntityType 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 EntityType message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EntityType + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.EntityType; + + /** + * Creates a plain object from an EntityType message. Also converts values to other types if specified. + * @param message EntityType + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.EntityType, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EntityType to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EntityType + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a FeaturestoreMonitoringConfig. */ + interface IFeaturestoreMonitoringConfig { + + /** FeaturestoreMonitoringConfig snapshotAnalysis */ + snapshotAnalysis?: (google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ISnapshotAnalysis|null); + + /** FeaturestoreMonitoringConfig importFeaturesAnalysis */ + importFeaturesAnalysis?: (google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis|null); + + /** FeaturestoreMonitoringConfig numericalThresholdConfig */ + numericalThresholdConfig?: (google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.IThresholdConfig|null); + + /** FeaturestoreMonitoringConfig categoricalThresholdConfig */ + categoricalThresholdConfig?: (google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.IThresholdConfig|null); + } + + /** Represents a FeaturestoreMonitoringConfig. */ + class FeaturestoreMonitoringConfig implements IFeaturestoreMonitoringConfig { + + /** + * Constructs a new FeaturestoreMonitoringConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IFeaturestoreMonitoringConfig); + + /** FeaturestoreMonitoringConfig snapshotAnalysis. */ + public snapshotAnalysis?: (google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ISnapshotAnalysis|null); + + /** FeaturestoreMonitoringConfig importFeaturesAnalysis. */ + public importFeaturesAnalysis?: (google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis|null); + + /** FeaturestoreMonitoringConfig numericalThresholdConfig. */ + public numericalThresholdConfig?: (google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.IThresholdConfig|null); + + /** FeaturestoreMonitoringConfig categoricalThresholdConfig. */ + public categoricalThresholdConfig?: (google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.IThresholdConfig|null); + + /** + * Creates a new FeaturestoreMonitoringConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns FeaturestoreMonitoringConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IFeaturestoreMonitoringConfig): google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig; + + /** + * Encodes the specified FeaturestoreMonitoringConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.verify|verify} messages. + * @param message FeaturestoreMonitoringConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IFeaturestoreMonitoringConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FeaturestoreMonitoringConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.verify|verify} messages. + * @param message FeaturestoreMonitoringConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IFeaturestoreMonitoringConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FeaturestoreMonitoringConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FeaturestoreMonitoringConfig + * @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.FeaturestoreMonitoringConfig; + + /** + * Decodes a FeaturestoreMonitoringConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FeaturestoreMonitoringConfig + * @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.FeaturestoreMonitoringConfig; + + /** + * Verifies a FeaturestoreMonitoringConfig 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 FeaturestoreMonitoringConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FeaturestoreMonitoringConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig; + + /** + * Creates a plain object from a FeaturestoreMonitoringConfig message. Also converts values to other types if specified. + * @param message FeaturestoreMonitoringConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FeaturestoreMonitoringConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FeaturestoreMonitoringConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace FeaturestoreMonitoringConfig { + + /** Properties of a SnapshotAnalysis. */ + interface ISnapshotAnalysis { + + /** SnapshotAnalysis disabled */ + disabled?: (boolean|null); + + /** SnapshotAnalysis monitoringIntervalDays */ + monitoringIntervalDays?: (number|null); + + /** SnapshotAnalysis stalenessDays */ + stalenessDays?: (number|null); + } + + /** Represents a SnapshotAnalysis. */ + class SnapshotAnalysis implements ISnapshotAnalysis { + + /** + * Constructs a new SnapshotAnalysis. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ISnapshotAnalysis); + + /** SnapshotAnalysis disabled. */ + public disabled: boolean; + + /** SnapshotAnalysis monitoringIntervalDays. */ + public monitoringIntervalDays: number; + + /** SnapshotAnalysis stalenessDays. */ + public stalenessDays: number; + + /** + * Creates a new SnapshotAnalysis instance using the specified properties. + * @param [properties] Properties to set + * @returns SnapshotAnalysis instance + */ + public static create(properties?: google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ISnapshotAnalysis): google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.SnapshotAnalysis; + + /** + * Encodes the specified SnapshotAnalysis message. Does not implicitly {@link google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.SnapshotAnalysis.verify|verify} messages. + * @param message SnapshotAnalysis message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ISnapshotAnalysis, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SnapshotAnalysis message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.SnapshotAnalysis.verify|verify} messages. + * @param message SnapshotAnalysis message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ISnapshotAnalysis, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SnapshotAnalysis message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SnapshotAnalysis + * @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.FeaturestoreMonitoringConfig.SnapshotAnalysis; + + /** + * Decodes a SnapshotAnalysis message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SnapshotAnalysis + * @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.FeaturestoreMonitoringConfig.SnapshotAnalysis; + + /** + * Verifies a SnapshotAnalysis 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 SnapshotAnalysis message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SnapshotAnalysis + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.SnapshotAnalysis; + + /** + * Creates a plain object from a SnapshotAnalysis message. Also converts values to other types if specified. + * @param message SnapshotAnalysis + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.SnapshotAnalysis, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SnapshotAnalysis to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SnapshotAnalysis + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ImportFeaturesAnalysis. */ + interface IImportFeaturesAnalysis { + + /** ImportFeaturesAnalysis state */ + state?: (google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.State|keyof typeof google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.State|null); + + /** ImportFeaturesAnalysis anomalyDetectionBaseline */ + anomalyDetectionBaseline?: (google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.Baseline|keyof typeof google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.Baseline|null); + } + + /** Represents an ImportFeaturesAnalysis. */ + class ImportFeaturesAnalysis implements IImportFeaturesAnalysis { + + /** + * Constructs a new ImportFeaturesAnalysis. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis); + + /** ImportFeaturesAnalysis state. */ + public state: (google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.State|keyof typeof google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.State); + + /** ImportFeaturesAnalysis anomalyDetectionBaseline. */ + public anomalyDetectionBaseline: (google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.Baseline|keyof typeof google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.Baseline); + + /** + * Creates a new ImportFeaturesAnalysis instance using the specified properties. + * @param [properties] Properties to set + * @returns ImportFeaturesAnalysis instance + */ + public static create(properties?: google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis): google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis; + + /** + * Encodes the specified ImportFeaturesAnalysis message. Does not implicitly {@link google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.verify|verify} messages. + * @param message ImportFeaturesAnalysis message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ImportFeaturesAnalysis message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.verify|verify} messages. + * @param message ImportFeaturesAnalysis message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ImportFeaturesAnalysis message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ImportFeaturesAnalysis + * @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.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis; + + /** + * Decodes an ImportFeaturesAnalysis message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ImportFeaturesAnalysis + * @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.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis; + + /** + * Verifies an ImportFeaturesAnalysis 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 ImportFeaturesAnalysis message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ImportFeaturesAnalysis + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis; + + /** + * Creates a plain object from an ImportFeaturesAnalysis message. Also converts values to other types if specified. + * @param message ImportFeaturesAnalysis + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ImportFeaturesAnalysis to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ImportFeaturesAnalysis + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace ImportFeaturesAnalysis { + + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + DEFAULT = 1, + ENABLED = 2, + DISABLED = 3 + } + + /** Baseline enum. */ + enum Baseline { + BASELINE_UNSPECIFIED = 0, + LATEST_STATS = 1, + MOST_RECENT_SNAPSHOT_STATS = 2, + PREVIOUS_IMPORT_FEATURES_STATS = 3 + } + } + + /** Properties of a ThresholdConfig. */ + interface IThresholdConfig { + + /** ThresholdConfig value */ + value?: (number|null); + } + + /** Represents a ThresholdConfig. */ + class ThresholdConfig implements IThresholdConfig { + + /** + * Constructs a new ThresholdConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.IThresholdConfig); + + /** ThresholdConfig value. */ + public value?: (number|null); + + /** ThresholdConfig threshold. */ + public threshold?: "value"; + + /** + * Creates a new ThresholdConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns ThresholdConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.IThresholdConfig): google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ThresholdConfig; + + /** + * Encodes the specified ThresholdConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ThresholdConfig.verify|verify} messages. + * @param message ThresholdConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.IThresholdConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ThresholdConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ThresholdConfig.verify|verify} messages. + * @param message ThresholdConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.IThresholdConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ThresholdConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ThresholdConfig + * @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.FeaturestoreMonitoringConfig.ThresholdConfig; + + /** + * Decodes a ThresholdConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ThresholdConfig + * @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.FeaturestoreMonitoringConfig.ThresholdConfig; + + /** + * Verifies a ThresholdConfig 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 ThresholdConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ThresholdConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ThresholdConfig; + + /** + * Creates a plain object from a ThresholdConfig message. Also converts values to other types if specified. + * @param message ThresholdConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ThresholdConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ThresholdConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ThresholdConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of an EvaluatedAnnotation. */ + interface IEvaluatedAnnotation { + + /** EvaluatedAnnotation type */ + type?: (google.cloud.aiplatform.v1.EvaluatedAnnotation.EvaluatedAnnotationType|keyof typeof google.cloud.aiplatform.v1.EvaluatedAnnotation.EvaluatedAnnotationType|null); + + /** EvaluatedAnnotation predictions */ + predictions?: (google.protobuf.IValue[]|null); + + /** EvaluatedAnnotation groundTruths */ + groundTruths?: (google.protobuf.IValue[]|null); + + /** EvaluatedAnnotation dataItemPayload */ + dataItemPayload?: (google.protobuf.IValue|null); + + /** EvaluatedAnnotation evaluatedDataItemViewId */ + evaluatedDataItemViewId?: (string|null); + + /** EvaluatedAnnotation explanations */ + explanations?: (google.cloud.aiplatform.v1.IEvaluatedAnnotationExplanation[]|null); + + /** EvaluatedAnnotation errorAnalysisAnnotations */ + errorAnalysisAnnotations?: (google.cloud.aiplatform.v1.IErrorAnalysisAnnotation[]|null); + } + + /** Represents an EvaluatedAnnotation. */ + class EvaluatedAnnotation implements IEvaluatedAnnotation { + + /** + * Constructs a new EvaluatedAnnotation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IEvaluatedAnnotation); + + /** EvaluatedAnnotation type. */ + public type: (google.cloud.aiplatform.v1.EvaluatedAnnotation.EvaluatedAnnotationType|keyof typeof google.cloud.aiplatform.v1.EvaluatedAnnotation.EvaluatedAnnotationType); + + /** EvaluatedAnnotation predictions. */ + public predictions: google.protobuf.IValue[]; + + /** EvaluatedAnnotation groundTruths. */ + public groundTruths: google.protobuf.IValue[]; + + /** EvaluatedAnnotation dataItemPayload. */ + public dataItemPayload?: (google.protobuf.IValue|null); + + /** EvaluatedAnnotation evaluatedDataItemViewId. */ + public evaluatedDataItemViewId: string; + + /** EvaluatedAnnotation explanations. */ + public explanations: google.cloud.aiplatform.v1.IEvaluatedAnnotationExplanation[]; + + /** EvaluatedAnnotation errorAnalysisAnnotations. */ + public errorAnalysisAnnotations: google.cloud.aiplatform.v1.IErrorAnalysisAnnotation[]; + + /** + * Creates a new EvaluatedAnnotation instance using the specified properties. + * @param [properties] Properties to set + * @returns EvaluatedAnnotation instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IEvaluatedAnnotation): google.cloud.aiplatform.v1.EvaluatedAnnotation; + + /** + * Encodes the specified EvaluatedAnnotation message. Does not implicitly {@link google.cloud.aiplatform.v1.EvaluatedAnnotation.verify|verify} messages. + * @param message EvaluatedAnnotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IEvaluatedAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EvaluatedAnnotation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.EvaluatedAnnotation.verify|verify} messages. + * @param message EvaluatedAnnotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IEvaluatedAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EvaluatedAnnotation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EvaluatedAnnotation + * @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.EvaluatedAnnotation; + + /** + * Decodes an EvaluatedAnnotation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EvaluatedAnnotation + * @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.EvaluatedAnnotation; + + /** + * Verifies an EvaluatedAnnotation 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 EvaluatedAnnotation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EvaluatedAnnotation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.EvaluatedAnnotation; + + /** + * Creates a plain object from an EvaluatedAnnotation message. Also converts values to other types if specified. + * @param message EvaluatedAnnotation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.EvaluatedAnnotation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EvaluatedAnnotation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EvaluatedAnnotation + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace EvaluatedAnnotation { + + /** EvaluatedAnnotationType enum. */ + enum EvaluatedAnnotationType { + EVALUATED_ANNOTATION_TYPE_UNSPECIFIED = 0, + TRUE_POSITIVE = 1, + FALSE_POSITIVE = 2, + FALSE_NEGATIVE = 3 + } + } + + /** Properties of an EvaluatedAnnotationExplanation. */ + interface IEvaluatedAnnotationExplanation { + + /** EvaluatedAnnotationExplanation explanationType */ + explanationType?: (string|null); + + /** EvaluatedAnnotationExplanation explanation */ + explanation?: (google.cloud.aiplatform.v1.IExplanation|null); + } + + /** Represents an EvaluatedAnnotationExplanation. */ + class EvaluatedAnnotationExplanation implements IEvaluatedAnnotationExplanation { + + /** + * Constructs a new EvaluatedAnnotationExplanation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IEvaluatedAnnotationExplanation); + + /** EvaluatedAnnotationExplanation explanationType. */ + public explanationType: string; + + /** EvaluatedAnnotationExplanation explanation. */ + public explanation?: (google.cloud.aiplatform.v1.IExplanation|null); + + /** + * Creates a new EvaluatedAnnotationExplanation instance using the specified properties. + * @param [properties] Properties to set + * @returns EvaluatedAnnotationExplanation instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IEvaluatedAnnotationExplanation): google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation; + + /** + * Encodes the specified EvaluatedAnnotationExplanation message. Does not implicitly {@link google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation.verify|verify} messages. + * @param message EvaluatedAnnotationExplanation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IEvaluatedAnnotationExplanation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EvaluatedAnnotationExplanation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation.verify|verify} messages. + * @param message EvaluatedAnnotationExplanation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IEvaluatedAnnotationExplanation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EvaluatedAnnotationExplanation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EvaluatedAnnotationExplanation + * @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.EvaluatedAnnotationExplanation; + + /** + * Decodes an EvaluatedAnnotationExplanation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EvaluatedAnnotationExplanation + * @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.EvaluatedAnnotationExplanation; + + /** + * Verifies an EvaluatedAnnotationExplanation 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 EvaluatedAnnotationExplanation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EvaluatedAnnotationExplanation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation; + + /** + * Creates a plain object from an EvaluatedAnnotationExplanation message. Also converts values to other types if specified. + * @param message EvaluatedAnnotationExplanation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EvaluatedAnnotationExplanation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EvaluatedAnnotationExplanation + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ErrorAnalysisAnnotation. */ + interface IErrorAnalysisAnnotation { + + /** ErrorAnalysisAnnotation attributedItems */ + attributedItems?: (google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.IAttributedItem[]|null); + + /** ErrorAnalysisAnnotation queryType */ + queryType?: (google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.QueryType|keyof typeof google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.QueryType|null); + + /** ErrorAnalysisAnnotation outlierScore */ + outlierScore?: (number|null); + + /** ErrorAnalysisAnnotation outlierThreshold */ + outlierThreshold?: (number|null); + } + + /** Represents an ErrorAnalysisAnnotation. */ + class ErrorAnalysisAnnotation implements IErrorAnalysisAnnotation { + + /** + * Constructs a new ErrorAnalysisAnnotation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IErrorAnalysisAnnotation); + + /** ErrorAnalysisAnnotation attributedItems. */ + public attributedItems: google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.IAttributedItem[]; + + /** ErrorAnalysisAnnotation queryType. */ + public queryType: (google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.QueryType|keyof typeof google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.QueryType); + + /** ErrorAnalysisAnnotation outlierScore. */ + public outlierScore: number; + + /** ErrorAnalysisAnnotation outlierThreshold. */ + public outlierThreshold: number; + + /** + * Creates a new ErrorAnalysisAnnotation instance using the specified properties. + * @param [properties] Properties to set + * @returns ErrorAnalysisAnnotation instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IErrorAnalysisAnnotation): google.cloud.aiplatform.v1.ErrorAnalysisAnnotation; + + /** + * Encodes the specified ErrorAnalysisAnnotation message. Does not implicitly {@link google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.verify|verify} messages. + * @param message ErrorAnalysisAnnotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IErrorAnalysisAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ErrorAnalysisAnnotation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.verify|verify} messages. + * @param message ErrorAnalysisAnnotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IErrorAnalysisAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ErrorAnalysisAnnotation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ErrorAnalysisAnnotation + * @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.ErrorAnalysisAnnotation; + + /** + * Decodes an ErrorAnalysisAnnotation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ErrorAnalysisAnnotation + * @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.ErrorAnalysisAnnotation; + + /** + * Verifies an ErrorAnalysisAnnotation 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 ErrorAnalysisAnnotation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ErrorAnalysisAnnotation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ErrorAnalysisAnnotation; + + /** + * Creates a plain object from an ErrorAnalysisAnnotation message. Also converts values to other types if specified. + * @param message ErrorAnalysisAnnotation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ErrorAnalysisAnnotation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ErrorAnalysisAnnotation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ErrorAnalysisAnnotation + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace ErrorAnalysisAnnotation { + + /** Properties of an AttributedItem. */ + interface IAttributedItem { + + /** AttributedItem annotationResourceName */ + annotationResourceName?: (string|null); + + /** AttributedItem distance */ + distance?: (number|null); + } + + /** Represents an AttributedItem. */ + class AttributedItem implements IAttributedItem { + + /** + * Constructs a new AttributedItem. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.IAttributedItem); + + /** AttributedItem annotationResourceName. */ + public annotationResourceName: string; + + /** AttributedItem distance. */ + public distance: number; + + /** + * Creates a new AttributedItem instance using the specified properties. + * @param [properties] Properties to set + * @returns AttributedItem instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.IAttributedItem): google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem; + + /** + * Encodes the specified AttributedItem message. Does not implicitly {@link google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem.verify|verify} messages. + * @param message AttributedItem message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.IAttributedItem, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AttributedItem message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem.verify|verify} messages. + * @param message AttributedItem message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.IAttributedItem, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AttributedItem message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AttributedItem + * @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.ErrorAnalysisAnnotation.AttributedItem; + + /** + * Decodes an AttributedItem message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AttributedItem + * @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.ErrorAnalysisAnnotation.AttributedItem; + + /** + * Verifies an AttributedItem 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 AttributedItem message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AttributedItem + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem; + + /** + * Creates a plain object from an AttributedItem message. Also converts values to other types if specified. + * @param message AttributedItem + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AttributedItem to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AttributedItem + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** QueryType enum. */ + enum QueryType { + QUERY_TYPE_UNSPECIFIED = 0, + ALL_SIMILAR = 1, + SAME_CLASS_SIMILAR = 2, + SAME_CLASS_DISSIMILAR = 3 + } + } + + /** Represents an EvaluationService */ + class EvaluationService extends $protobuf.rpc.Service { + + /** + * Constructs a new EvaluationService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new EvaluationService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): EvaluationService; + + /** + * Calls EvaluateInstances. + * @param request EvaluateInstancesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and EvaluateInstancesResponse + */ + public evaluateInstances(request: google.cloud.aiplatform.v1.IEvaluateInstancesRequest, callback: google.cloud.aiplatform.v1.EvaluationService.EvaluateInstancesCallback): void; + + /** + * Calls EvaluateInstances. + * @param request EvaluateInstancesRequest message or plain object + * @returns Promise + */ + public evaluateInstances(request: google.cloud.aiplatform.v1.IEvaluateInstancesRequest): Promise; + } + + namespace EvaluationService { + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.EvaluationService|evaluateInstances}. + * @param error Error, if any + * @param [response] EvaluateInstancesResponse + */ + type EvaluateInstancesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.EvaluateInstancesResponse) => void; + } + + /** PairwiseChoice enum. */ + enum PairwiseChoice { + PAIRWISE_CHOICE_UNSPECIFIED = 0, + BASELINE = 1, + CANDIDATE = 2, + TIE = 3 + } + + /** Properties of an EvaluateInstancesRequest. */ + interface IEvaluateInstancesRequest { + + /** EvaluateInstancesRequest exactMatchInput */ + exactMatchInput?: (google.cloud.aiplatform.v1.IExactMatchInput|null); + + /** EvaluateInstancesRequest bleuInput */ + bleuInput?: (google.cloud.aiplatform.v1.IBleuInput|null); + + /** EvaluateInstancesRequest rougeInput */ + rougeInput?: (google.cloud.aiplatform.v1.IRougeInput|null); + + /** EvaluateInstancesRequest fluencyInput */ + fluencyInput?: (google.cloud.aiplatform.v1.IFluencyInput|null); + + /** EvaluateInstancesRequest coherenceInput */ + coherenceInput?: (google.cloud.aiplatform.v1.ICoherenceInput|null); + + /** EvaluateInstancesRequest safetyInput */ + safetyInput?: (google.cloud.aiplatform.v1.ISafetyInput|null); + + /** EvaluateInstancesRequest groundednessInput */ + groundednessInput?: (google.cloud.aiplatform.v1.IGroundednessInput|null); + + /** EvaluateInstancesRequest fulfillmentInput */ + fulfillmentInput?: (google.cloud.aiplatform.v1.IFulfillmentInput|null); + + /** EvaluateInstancesRequest summarizationQualityInput */ + summarizationQualityInput?: (google.cloud.aiplatform.v1.ISummarizationQualityInput|null); + + /** EvaluateInstancesRequest pairwiseSummarizationQualityInput */ + pairwiseSummarizationQualityInput?: (google.cloud.aiplatform.v1.IPairwiseSummarizationQualityInput|null); + + /** EvaluateInstancesRequest summarizationHelpfulnessInput */ + summarizationHelpfulnessInput?: (google.cloud.aiplatform.v1.ISummarizationHelpfulnessInput|null); + + /** EvaluateInstancesRequest summarizationVerbosityInput */ + summarizationVerbosityInput?: (google.cloud.aiplatform.v1.ISummarizationVerbosityInput|null); + + /** EvaluateInstancesRequest questionAnsweringQualityInput */ + questionAnsweringQualityInput?: (google.cloud.aiplatform.v1.IQuestionAnsweringQualityInput|null); + + /** EvaluateInstancesRequest pairwiseQuestionAnsweringQualityInput */ + pairwiseQuestionAnsweringQualityInput?: (google.cloud.aiplatform.v1.IPairwiseQuestionAnsweringQualityInput|null); + + /** EvaluateInstancesRequest questionAnsweringRelevanceInput */ + questionAnsweringRelevanceInput?: (google.cloud.aiplatform.v1.IQuestionAnsweringRelevanceInput|null); + + /** EvaluateInstancesRequest questionAnsweringHelpfulnessInput */ + questionAnsweringHelpfulnessInput?: (google.cloud.aiplatform.v1.IQuestionAnsweringHelpfulnessInput|null); + + /** EvaluateInstancesRequest questionAnsweringCorrectnessInput */ + questionAnsweringCorrectnessInput?: (google.cloud.aiplatform.v1.IQuestionAnsweringCorrectnessInput|null); + + /** EvaluateInstancesRequest pointwiseMetricInput */ + pointwiseMetricInput?: (google.cloud.aiplatform.v1.IPointwiseMetricInput|null); + + /** EvaluateInstancesRequest pairwiseMetricInput */ + pairwiseMetricInput?: (google.cloud.aiplatform.v1.IPairwiseMetricInput|null); + + /** EvaluateInstancesRequest toolCallValidInput */ + toolCallValidInput?: (google.cloud.aiplatform.v1.IToolCallValidInput|null); + + /** EvaluateInstancesRequest toolNameMatchInput */ + toolNameMatchInput?: (google.cloud.aiplatform.v1.IToolNameMatchInput|null); + + /** EvaluateInstancesRequest toolParameterKeyMatchInput */ + toolParameterKeyMatchInput?: (google.cloud.aiplatform.v1.IToolParameterKeyMatchInput|null); + + /** EvaluateInstancesRequest toolParameterKvMatchInput */ + toolParameterKvMatchInput?: (google.cloud.aiplatform.v1.IToolParameterKVMatchInput|null); + + /** EvaluateInstancesRequest location */ + location?: (string|null); + } + + /** Represents an EvaluateInstancesRequest. */ + class EvaluateInstancesRequest implements IEvaluateInstancesRequest { + + /** + * Constructs a new EvaluateInstancesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IEvaluateInstancesRequest); + + /** EvaluateInstancesRequest exactMatchInput. */ + public exactMatchInput?: (google.cloud.aiplatform.v1.IExactMatchInput|null); + + /** EvaluateInstancesRequest bleuInput. */ + public bleuInput?: (google.cloud.aiplatform.v1.IBleuInput|null); + + /** EvaluateInstancesRequest rougeInput. */ + public rougeInput?: (google.cloud.aiplatform.v1.IRougeInput|null); + + /** EvaluateInstancesRequest fluencyInput. */ + public fluencyInput?: (google.cloud.aiplatform.v1.IFluencyInput|null); + + /** EvaluateInstancesRequest coherenceInput. */ + public coherenceInput?: (google.cloud.aiplatform.v1.ICoherenceInput|null); + + /** EvaluateInstancesRequest safetyInput. */ + public safetyInput?: (google.cloud.aiplatform.v1.ISafetyInput|null); + + /** EvaluateInstancesRequest groundednessInput. */ + public groundednessInput?: (google.cloud.aiplatform.v1.IGroundednessInput|null); + + /** EvaluateInstancesRequest fulfillmentInput. */ + public fulfillmentInput?: (google.cloud.aiplatform.v1.IFulfillmentInput|null); + + /** EvaluateInstancesRequest summarizationQualityInput. */ + public summarizationQualityInput?: (google.cloud.aiplatform.v1.ISummarizationQualityInput|null); + + /** EvaluateInstancesRequest pairwiseSummarizationQualityInput. */ + public pairwiseSummarizationQualityInput?: (google.cloud.aiplatform.v1.IPairwiseSummarizationQualityInput|null); + + /** EvaluateInstancesRequest summarizationHelpfulnessInput. */ + public summarizationHelpfulnessInput?: (google.cloud.aiplatform.v1.ISummarizationHelpfulnessInput|null); + + /** EvaluateInstancesRequest summarizationVerbosityInput. */ + public summarizationVerbosityInput?: (google.cloud.aiplatform.v1.ISummarizationVerbosityInput|null); + + /** EvaluateInstancesRequest questionAnsweringQualityInput. */ + public questionAnsweringQualityInput?: (google.cloud.aiplatform.v1.IQuestionAnsweringQualityInput|null); + + /** EvaluateInstancesRequest pairwiseQuestionAnsweringQualityInput. */ + public pairwiseQuestionAnsweringQualityInput?: (google.cloud.aiplatform.v1.IPairwiseQuestionAnsweringQualityInput|null); + + /** EvaluateInstancesRequest questionAnsweringRelevanceInput. */ + public questionAnsweringRelevanceInput?: (google.cloud.aiplatform.v1.IQuestionAnsweringRelevanceInput|null); + + /** EvaluateInstancesRequest questionAnsweringHelpfulnessInput. */ + public questionAnsweringHelpfulnessInput?: (google.cloud.aiplatform.v1.IQuestionAnsweringHelpfulnessInput|null); + + /** EvaluateInstancesRequest questionAnsweringCorrectnessInput. */ + public questionAnsweringCorrectnessInput?: (google.cloud.aiplatform.v1.IQuestionAnsweringCorrectnessInput|null); + + /** EvaluateInstancesRequest pointwiseMetricInput. */ + public pointwiseMetricInput?: (google.cloud.aiplatform.v1.IPointwiseMetricInput|null); + + /** EvaluateInstancesRequest pairwiseMetricInput. */ + public pairwiseMetricInput?: (google.cloud.aiplatform.v1.IPairwiseMetricInput|null); + + /** EvaluateInstancesRequest toolCallValidInput. */ + public toolCallValidInput?: (google.cloud.aiplatform.v1.IToolCallValidInput|null); + + /** EvaluateInstancesRequest toolNameMatchInput. */ + public toolNameMatchInput?: (google.cloud.aiplatform.v1.IToolNameMatchInput|null); + + /** EvaluateInstancesRequest toolParameterKeyMatchInput. */ + public toolParameterKeyMatchInput?: (google.cloud.aiplatform.v1.IToolParameterKeyMatchInput|null); + + /** EvaluateInstancesRequest toolParameterKvMatchInput. */ + public toolParameterKvMatchInput?: (google.cloud.aiplatform.v1.IToolParameterKVMatchInput|null); + + /** EvaluateInstancesRequest location. */ + public location: string; + + /** EvaluateInstancesRequest metricInputs. */ + public metricInputs?: ("exactMatchInput"|"bleuInput"|"rougeInput"|"fluencyInput"|"coherenceInput"|"safetyInput"|"groundednessInput"|"fulfillmentInput"|"summarizationQualityInput"|"pairwiseSummarizationQualityInput"|"summarizationHelpfulnessInput"|"summarizationVerbosityInput"|"questionAnsweringQualityInput"|"pairwiseQuestionAnsweringQualityInput"|"questionAnsweringRelevanceInput"|"questionAnsweringHelpfulnessInput"|"questionAnsweringCorrectnessInput"|"pointwiseMetricInput"|"pairwiseMetricInput"|"toolCallValidInput"|"toolNameMatchInput"|"toolParameterKeyMatchInput"|"toolParameterKvMatchInput"); + + /** + * Creates a new EvaluateInstancesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns EvaluateInstancesRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IEvaluateInstancesRequest): google.cloud.aiplatform.v1.EvaluateInstancesRequest; + + /** + * Encodes the specified EvaluateInstancesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.EvaluateInstancesRequest.verify|verify} messages. + * @param message EvaluateInstancesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IEvaluateInstancesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EvaluateInstancesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.EvaluateInstancesRequest.verify|verify} messages. + * @param message EvaluateInstancesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IEvaluateInstancesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EvaluateInstancesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EvaluateInstancesRequest + * @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.EvaluateInstancesRequest; + + /** + * Decodes an EvaluateInstancesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EvaluateInstancesRequest + * @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.EvaluateInstancesRequest; + + /** + * Verifies an EvaluateInstancesRequest 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 EvaluateInstancesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EvaluateInstancesRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.EvaluateInstancesRequest; + + /** + * Creates a plain object from an EvaluateInstancesRequest message. Also converts values to other types if specified. + * @param message EvaluateInstancesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.EvaluateInstancesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EvaluateInstancesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EvaluateInstancesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an EvaluateInstancesResponse. */ + interface IEvaluateInstancesResponse { + + /** EvaluateInstancesResponse exactMatchResults */ + exactMatchResults?: (google.cloud.aiplatform.v1.IExactMatchResults|null); + + /** EvaluateInstancesResponse bleuResults */ + bleuResults?: (google.cloud.aiplatform.v1.IBleuResults|null); + + /** EvaluateInstancesResponse rougeResults */ + rougeResults?: (google.cloud.aiplatform.v1.IRougeResults|null); + + /** EvaluateInstancesResponse fluencyResult */ + fluencyResult?: (google.cloud.aiplatform.v1.IFluencyResult|null); + + /** EvaluateInstancesResponse coherenceResult */ + coherenceResult?: (google.cloud.aiplatform.v1.ICoherenceResult|null); + + /** EvaluateInstancesResponse safetyResult */ + safetyResult?: (google.cloud.aiplatform.v1.ISafetyResult|null); + + /** EvaluateInstancesResponse groundednessResult */ + groundednessResult?: (google.cloud.aiplatform.v1.IGroundednessResult|null); + + /** EvaluateInstancesResponse fulfillmentResult */ + fulfillmentResult?: (google.cloud.aiplatform.v1.IFulfillmentResult|null); + + /** EvaluateInstancesResponse summarizationQualityResult */ + summarizationQualityResult?: (google.cloud.aiplatform.v1.ISummarizationQualityResult|null); + + /** EvaluateInstancesResponse pairwiseSummarizationQualityResult */ + pairwiseSummarizationQualityResult?: (google.cloud.aiplatform.v1.IPairwiseSummarizationQualityResult|null); + + /** EvaluateInstancesResponse summarizationHelpfulnessResult */ + summarizationHelpfulnessResult?: (google.cloud.aiplatform.v1.ISummarizationHelpfulnessResult|null); + + /** EvaluateInstancesResponse summarizationVerbosityResult */ + summarizationVerbosityResult?: (google.cloud.aiplatform.v1.ISummarizationVerbosityResult|null); + + /** EvaluateInstancesResponse questionAnsweringQualityResult */ + questionAnsweringQualityResult?: (google.cloud.aiplatform.v1.IQuestionAnsweringQualityResult|null); + + /** EvaluateInstancesResponse pairwiseQuestionAnsweringQualityResult */ + pairwiseQuestionAnsweringQualityResult?: (google.cloud.aiplatform.v1.IPairwiseQuestionAnsweringQualityResult|null); + + /** EvaluateInstancesResponse questionAnsweringRelevanceResult */ + questionAnsweringRelevanceResult?: (google.cloud.aiplatform.v1.IQuestionAnsweringRelevanceResult|null); + + /** EvaluateInstancesResponse questionAnsweringHelpfulnessResult */ + questionAnsweringHelpfulnessResult?: (google.cloud.aiplatform.v1.IQuestionAnsweringHelpfulnessResult|null); + + /** EvaluateInstancesResponse questionAnsweringCorrectnessResult */ + questionAnsweringCorrectnessResult?: (google.cloud.aiplatform.v1.IQuestionAnsweringCorrectnessResult|null); + + /** EvaluateInstancesResponse pointwiseMetricResult */ + pointwiseMetricResult?: (google.cloud.aiplatform.v1.IPointwiseMetricResult|null); + + /** EvaluateInstancesResponse pairwiseMetricResult */ + pairwiseMetricResult?: (google.cloud.aiplatform.v1.IPairwiseMetricResult|null); + + /** EvaluateInstancesResponse toolCallValidResults */ + toolCallValidResults?: (google.cloud.aiplatform.v1.IToolCallValidResults|null); + + /** EvaluateInstancesResponse toolNameMatchResults */ + toolNameMatchResults?: (google.cloud.aiplatform.v1.IToolNameMatchResults|null); + + /** EvaluateInstancesResponse toolParameterKeyMatchResults */ + toolParameterKeyMatchResults?: (google.cloud.aiplatform.v1.IToolParameterKeyMatchResults|null); + + /** EvaluateInstancesResponse toolParameterKvMatchResults */ + toolParameterKvMatchResults?: (google.cloud.aiplatform.v1.IToolParameterKVMatchResults|null); + } + + /** Represents an EvaluateInstancesResponse. */ + class EvaluateInstancesResponse implements IEvaluateInstancesResponse { + + /** + * Constructs a new EvaluateInstancesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IEvaluateInstancesResponse); + + /** EvaluateInstancesResponse exactMatchResults. */ + public exactMatchResults?: (google.cloud.aiplatform.v1.IExactMatchResults|null); + + /** EvaluateInstancesResponse bleuResults. */ + public bleuResults?: (google.cloud.aiplatform.v1.IBleuResults|null); + + /** EvaluateInstancesResponse rougeResults. */ + public rougeResults?: (google.cloud.aiplatform.v1.IRougeResults|null); + + /** EvaluateInstancesResponse fluencyResult. */ + public fluencyResult?: (google.cloud.aiplatform.v1.IFluencyResult|null); + + /** EvaluateInstancesResponse coherenceResult. */ + public coherenceResult?: (google.cloud.aiplatform.v1.ICoherenceResult|null); + + /** EvaluateInstancesResponse safetyResult. */ + public safetyResult?: (google.cloud.aiplatform.v1.ISafetyResult|null); + + /** EvaluateInstancesResponse groundednessResult. */ + public groundednessResult?: (google.cloud.aiplatform.v1.IGroundednessResult|null); + + /** EvaluateInstancesResponse fulfillmentResult. */ + public fulfillmentResult?: (google.cloud.aiplatform.v1.IFulfillmentResult|null); + + /** EvaluateInstancesResponse summarizationQualityResult. */ + public summarizationQualityResult?: (google.cloud.aiplatform.v1.ISummarizationQualityResult|null); + + /** EvaluateInstancesResponse pairwiseSummarizationQualityResult. */ + public pairwiseSummarizationQualityResult?: (google.cloud.aiplatform.v1.IPairwiseSummarizationQualityResult|null); + + /** EvaluateInstancesResponse summarizationHelpfulnessResult. */ + public summarizationHelpfulnessResult?: (google.cloud.aiplatform.v1.ISummarizationHelpfulnessResult|null); + + /** EvaluateInstancesResponse summarizationVerbosityResult. */ + public summarizationVerbosityResult?: (google.cloud.aiplatform.v1.ISummarizationVerbosityResult|null); + + /** EvaluateInstancesResponse questionAnsweringQualityResult. */ + public questionAnsweringQualityResult?: (google.cloud.aiplatform.v1.IQuestionAnsweringQualityResult|null); + + /** EvaluateInstancesResponse pairwiseQuestionAnsweringQualityResult. */ + public pairwiseQuestionAnsweringQualityResult?: (google.cloud.aiplatform.v1.IPairwiseQuestionAnsweringQualityResult|null); + + /** EvaluateInstancesResponse questionAnsweringRelevanceResult. */ + public questionAnsweringRelevanceResult?: (google.cloud.aiplatform.v1.IQuestionAnsweringRelevanceResult|null); + + /** EvaluateInstancesResponse questionAnsweringHelpfulnessResult. */ + public questionAnsweringHelpfulnessResult?: (google.cloud.aiplatform.v1.IQuestionAnsweringHelpfulnessResult|null); + + /** EvaluateInstancesResponse questionAnsweringCorrectnessResult. */ + public questionAnsweringCorrectnessResult?: (google.cloud.aiplatform.v1.IQuestionAnsweringCorrectnessResult|null); + + /** EvaluateInstancesResponse pointwiseMetricResult. */ + public pointwiseMetricResult?: (google.cloud.aiplatform.v1.IPointwiseMetricResult|null); + + /** EvaluateInstancesResponse pairwiseMetricResult. */ + public pairwiseMetricResult?: (google.cloud.aiplatform.v1.IPairwiseMetricResult|null); + + /** EvaluateInstancesResponse toolCallValidResults. */ + public toolCallValidResults?: (google.cloud.aiplatform.v1.IToolCallValidResults|null); + + /** EvaluateInstancesResponse toolNameMatchResults. */ + public toolNameMatchResults?: (google.cloud.aiplatform.v1.IToolNameMatchResults|null); + + /** EvaluateInstancesResponse toolParameterKeyMatchResults. */ + public toolParameterKeyMatchResults?: (google.cloud.aiplatform.v1.IToolParameterKeyMatchResults|null); + + /** EvaluateInstancesResponse toolParameterKvMatchResults. */ + public toolParameterKvMatchResults?: (google.cloud.aiplatform.v1.IToolParameterKVMatchResults|null); + + /** EvaluateInstancesResponse evaluationResults. */ + public evaluationResults?: ("exactMatchResults"|"bleuResults"|"rougeResults"|"fluencyResult"|"coherenceResult"|"safetyResult"|"groundednessResult"|"fulfillmentResult"|"summarizationQualityResult"|"pairwiseSummarizationQualityResult"|"summarizationHelpfulnessResult"|"summarizationVerbosityResult"|"questionAnsweringQualityResult"|"pairwiseQuestionAnsweringQualityResult"|"questionAnsweringRelevanceResult"|"questionAnsweringHelpfulnessResult"|"questionAnsweringCorrectnessResult"|"pointwiseMetricResult"|"pairwiseMetricResult"|"toolCallValidResults"|"toolNameMatchResults"|"toolParameterKeyMatchResults"|"toolParameterKvMatchResults"); + + /** + * Creates a new EvaluateInstancesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns EvaluateInstancesResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IEvaluateInstancesResponse): google.cloud.aiplatform.v1.EvaluateInstancesResponse; + + /** + * Encodes the specified EvaluateInstancesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.EvaluateInstancesResponse.verify|verify} messages. + * @param message EvaluateInstancesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IEvaluateInstancesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EvaluateInstancesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.EvaluateInstancesResponse.verify|verify} messages. + * @param message EvaluateInstancesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IEvaluateInstancesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EvaluateInstancesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EvaluateInstancesResponse + * @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.EvaluateInstancesResponse; + + /** + * Decodes an EvaluateInstancesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EvaluateInstancesResponse + * @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.EvaluateInstancesResponse; + + /** + * Verifies an EvaluateInstancesResponse 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 EvaluateInstancesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EvaluateInstancesResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.EvaluateInstancesResponse; + + /** + * Creates a plain object from an EvaluateInstancesResponse message. Also converts values to other types if specified. + * @param message EvaluateInstancesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.EvaluateInstancesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EvaluateInstancesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EvaluateInstancesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ExactMatchInput. */ + interface IExactMatchInput { + + /** ExactMatchInput metricSpec */ + metricSpec?: (google.cloud.aiplatform.v1.IExactMatchSpec|null); + + /** ExactMatchInput instances */ + instances?: (google.cloud.aiplatform.v1.IExactMatchInstance[]|null); + } + + /** Represents an ExactMatchInput. */ + class ExactMatchInput implements IExactMatchInput { + + /** + * Constructs a new ExactMatchInput. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IExactMatchInput); + + /** ExactMatchInput metricSpec. */ + public metricSpec?: (google.cloud.aiplatform.v1.IExactMatchSpec|null); + + /** ExactMatchInput instances. */ + public instances: google.cloud.aiplatform.v1.IExactMatchInstance[]; + + /** + * Creates a new ExactMatchInput instance using the specified properties. + * @param [properties] Properties to set + * @returns ExactMatchInput instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IExactMatchInput): google.cloud.aiplatform.v1.ExactMatchInput; + + /** + * Encodes the specified ExactMatchInput message. Does not implicitly {@link google.cloud.aiplatform.v1.ExactMatchInput.verify|verify} messages. + * @param message ExactMatchInput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IExactMatchInput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExactMatchInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExactMatchInput.verify|verify} messages. + * @param message ExactMatchInput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IExactMatchInput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExactMatchInput message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExactMatchInput + * @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.ExactMatchInput; + + /** + * Decodes an ExactMatchInput message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExactMatchInput + * @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.ExactMatchInput; + + /** + * Verifies an ExactMatchInput 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 ExactMatchInput message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExactMatchInput + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ExactMatchInput; + + /** + * Creates a plain object from an ExactMatchInput message. Also converts values to other types if specified. + * @param message ExactMatchInput + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ExactMatchInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExactMatchInput to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExactMatchInput + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ExactMatchInstance. */ + interface IExactMatchInstance { + + /** ExactMatchInstance prediction */ + prediction?: (string|null); + + /** ExactMatchInstance reference */ + reference?: (string|null); + } + + /** Represents an ExactMatchInstance. */ + class ExactMatchInstance implements IExactMatchInstance { + + /** + * Constructs a new ExactMatchInstance. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IExactMatchInstance); + + /** ExactMatchInstance prediction. */ + public prediction?: (string|null); + + /** ExactMatchInstance reference. */ + public reference?: (string|null); + + /** ExactMatchInstance _prediction. */ + public _prediction?: "prediction"; + + /** ExactMatchInstance _reference. */ + public _reference?: "reference"; + + /** + * Creates a new ExactMatchInstance instance using the specified properties. + * @param [properties] Properties to set + * @returns ExactMatchInstance instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IExactMatchInstance): google.cloud.aiplatform.v1.ExactMatchInstance; + + /** + * Encodes the specified ExactMatchInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.ExactMatchInstance.verify|verify} messages. + * @param message ExactMatchInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IExactMatchInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExactMatchInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExactMatchInstance.verify|verify} messages. + * @param message ExactMatchInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IExactMatchInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExactMatchInstance message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExactMatchInstance + * @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.ExactMatchInstance; + + /** + * Decodes an ExactMatchInstance message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExactMatchInstance + * @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.ExactMatchInstance; + + /** + * Verifies an ExactMatchInstance 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 ExactMatchInstance message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExactMatchInstance + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ExactMatchInstance; + + /** + * Creates a plain object from an ExactMatchInstance message. Also converts values to other types if specified. + * @param message ExactMatchInstance + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ExactMatchInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExactMatchInstance to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExactMatchInstance + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ExactMatchSpec. */ + interface IExactMatchSpec { + } + + /** Represents an ExactMatchSpec. */ + class ExactMatchSpec implements IExactMatchSpec { + + /** + * Constructs a new ExactMatchSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IExactMatchSpec); + + /** + * Creates a new ExactMatchSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns ExactMatchSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IExactMatchSpec): google.cloud.aiplatform.v1.ExactMatchSpec; + + /** + * Encodes the specified ExactMatchSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.ExactMatchSpec.verify|verify} messages. + * @param message ExactMatchSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IExactMatchSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExactMatchSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExactMatchSpec.verify|verify} messages. + * @param message ExactMatchSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IExactMatchSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExactMatchSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExactMatchSpec + * @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.ExactMatchSpec; + + /** + * Decodes an ExactMatchSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExactMatchSpec + * @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.ExactMatchSpec; + + /** + * Verifies an ExactMatchSpec 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 ExactMatchSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExactMatchSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ExactMatchSpec; + + /** + * Creates a plain object from an ExactMatchSpec message. Also converts values to other types if specified. + * @param message ExactMatchSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ExactMatchSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExactMatchSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExactMatchSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ExactMatchResults. */ + interface IExactMatchResults { + + /** ExactMatchResults exactMatchMetricValues */ + exactMatchMetricValues?: (google.cloud.aiplatform.v1.IExactMatchMetricValue[]|null); + } + + /** Represents an ExactMatchResults. */ + class ExactMatchResults implements IExactMatchResults { + + /** + * Constructs a new ExactMatchResults. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IExactMatchResults); + + /** ExactMatchResults exactMatchMetricValues. */ + public exactMatchMetricValues: google.cloud.aiplatform.v1.IExactMatchMetricValue[]; + + /** + * Creates a new ExactMatchResults instance using the specified properties. + * @param [properties] Properties to set + * @returns ExactMatchResults instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IExactMatchResults): google.cloud.aiplatform.v1.ExactMatchResults; + + /** + * Encodes the specified ExactMatchResults message. Does not implicitly {@link google.cloud.aiplatform.v1.ExactMatchResults.verify|verify} messages. + * @param message ExactMatchResults message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IExactMatchResults, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExactMatchResults message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExactMatchResults.verify|verify} messages. + * @param message ExactMatchResults message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IExactMatchResults, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExactMatchResults message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExactMatchResults + * @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.ExactMatchResults; + + /** + * Decodes an ExactMatchResults message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExactMatchResults + * @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.ExactMatchResults; + + /** + * Verifies an ExactMatchResults 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 ExactMatchResults message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExactMatchResults + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ExactMatchResults; + + /** + * Creates a plain object from an ExactMatchResults message. Also converts values to other types if specified. + * @param message ExactMatchResults + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ExactMatchResults, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExactMatchResults to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExactMatchResults + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ExactMatchMetricValue. */ + interface IExactMatchMetricValue { + + /** ExactMatchMetricValue score */ + score?: (number|null); + } + + /** Represents an ExactMatchMetricValue. */ + class ExactMatchMetricValue implements IExactMatchMetricValue { + + /** + * Constructs a new ExactMatchMetricValue. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IExactMatchMetricValue); + + /** ExactMatchMetricValue score. */ + public score?: (number|null); + + /** ExactMatchMetricValue _score. */ + public _score?: "score"; + + /** + * Creates a new ExactMatchMetricValue instance using the specified properties. + * @param [properties] Properties to set + * @returns ExactMatchMetricValue instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IExactMatchMetricValue): google.cloud.aiplatform.v1.ExactMatchMetricValue; + + /** + * Encodes the specified ExactMatchMetricValue message. Does not implicitly {@link google.cloud.aiplatform.v1.ExactMatchMetricValue.verify|verify} messages. + * @param message ExactMatchMetricValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IExactMatchMetricValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExactMatchMetricValue message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExactMatchMetricValue.verify|verify} messages. + * @param message ExactMatchMetricValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IExactMatchMetricValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExactMatchMetricValue message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExactMatchMetricValue + * @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.ExactMatchMetricValue; + + /** + * Decodes an ExactMatchMetricValue message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExactMatchMetricValue + * @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.ExactMatchMetricValue; + + /** + * Verifies an ExactMatchMetricValue 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 ExactMatchMetricValue message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExactMatchMetricValue + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ExactMatchMetricValue; + + /** + * Creates a plain object from an ExactMatchMetricValue message. Also converts values to other types if specified. + * @param message ExactMatchMetricValue + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ExactMatchMetricValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExactMatchMetricValue to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExactMatchMetricValue + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a BleuInput. */ + interface IBleuInput { + + /** BleuInput metricSpec */ + metricSpec?: (google.cloud.aiplatform.v1.IBleuSpec|null); + + /** BleuInput instances */ + instances?: (google.cloud.aiplatform.v1.IBleuInstance[]|null); + } + + /** Represents a BleuInput. */ + class BleuInput implements IBleuInput { + + /** + * Constructs a new BleuInput. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IBleuInput); + + /** BleuInput metricSpec. */ + public metricSpec?: (google.cloud.aiplatform.v1.IBleuSpec|null); + + /** BleuInput instances. */ + public instances: google.cloud.aiplatform.v1.IBleuInstance[]; + + /** + * Creates a new BleuInput instance using the specified properties. + * @param [properties] Properties to set + * @returns BleuInput instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IBleuInput): google.cloud.aiplatform.v1.BleuInput; + + /** + * Encodes the specified BleuInput message. Does not implicitly {@link google.cloud.aiplatform.v1.BleuInput.verify|verify} messages. + * @param message BleuInput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IBleuInput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BleuInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BleuInput.verify|verify} messages. + * @param message BleuInput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IBleuInput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BleuInput message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BleuInput + * @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.BleuInput; + + /** + * Decodes a BleuInput message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BleuInput + * @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.BleuInput; + + /** + * Verifies a BleuInput 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 BleuInput message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BleuInput + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BleuInput; + + /** + * Creates a plain object from a BleuInput message. Also converts values to other types if specified. + * @param message BleuInput + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.BleuInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BleuInput to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BleuInput + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a BleuInstance. */ + interface IBleuInstance { + + /** BleuInstance prediction */ + prediction?: (string|null); + + /** BleuInstance reference */ + reference?: (string|null); + } + + /** Represents a BleuInstance. */ + class BleuInstance implements IBleuInstance { + + /** + * Constructs a new BleuInstance. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IBleuInstance); + + /** BleuInstance prediction. */ + public prediction?: (string|null); + + /** BleuInstance reference. */ + public reference?: (string|null); + + /** BleuInstance _prediction. */ + public _prediction?: "prediction"; + + /** BleuInstance _reference. */ + public _reference?: "reference"; + + /** + * Creates a new BleuInstance instance using the specified properties. + * @param [properties] Properties to set + * @returns BleuInstance instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IBleuInstance): google.cloud.aiplatform.v1.BleuInstance; + + /** + * Encodes the specified BleuInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.BleuInstance.verify|verify} messages. + * @param message BleuInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IBleuInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BleuInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BleuInstance.verify|verify} messages. + * @param message BleuInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IBleuInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BleuInstance message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BleuInstance + * @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.BleuInstance; + + /** + * Decodes a BleuInstance message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BleuInstance + * @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.BleuInstance; + + /** + * Verifies a BleuInstance 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 BleuInstance message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BleuInstance + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BleuInstance; + + /** + * Creates a plain object from a BleuInstance message. Also converts values to other types if specified. + * @param message BleuInstance + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.BleuInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BleuInstance to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BleuInstance + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a BleuSpec. */ + interface IBleuSpec { + + /** BleuSpec useEffectiveOrder */ + useEffectiveOrder?: (boolean|null); + } + + /** Represents a BleuSpec. */ + class BleuSpec implements IBleuSpec { + + /** + * Constructs a new BleuSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IBleuSpec); + + /** BleuSpec useEffectiveOrder. */ + public useEffectiveOrder: boolean; + + /** + * Creates a new BleuSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns BleuSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IBleuSpec): google.cloud.aiplatform.v1.BleuSpec; + + /** + * Encodes the specified BleuSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.BleuSpec.verify|verify} messages. + * @param message BleuSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IBleuSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BleuSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BleuSpec.verify|verify} messages. + * @param message BleuSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IBleuSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BleuSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BleuSpec + * @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.BleuSpec; + + /** + * Decodes a BleuSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BleuSpec + * @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.BleuSpec; + + /** + * Verifies a BleuSpec 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 BleuSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BleuSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BleuSpec; + + /** + * Creates a plain object from a BleuSpec message. Also converts values to other types if specified. + * @param message BleuSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.BleuSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BleuSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BleuSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a BleuResults. */ + interface IBleuResults { + + /** BleuResults bleuMetricValues */ + bleuMetricValues?: (google.cloud.aiplatform.v1.IBleuMetricValue[]|null); + } + + /** Represents a BleuResults. */ + class BleuResults implements IBleuResults { + + /** + * Constructs a new BleuResults. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IBleuResults); + + /** BleuResults bleuMetricValues. */ + public bleuMetricValues: google.cloud.aiplatform.v1.IBleuMetricValue[]; + + /** + * Creates a new BleuResults instance using the specified properties. + * @param [properties] Properties to set + * @returns BleuResults instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IBleuResults): google.cloud.aiplatform.v1.BleuResults; + + /** + * Encodes the specified BleuResults message. Does not implicitly {@link google.cloud.aiplatform.v1.BleuResults.verify|verify} messages. + * @param message BleuResults message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IBleuResults, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BleuResults message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BleuResults.verify|verify} messages. + * @param message BleuResults message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IBleuResults, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BleuResults message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BleuResults + * @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.BleuResults; + + /** + * Decodes a BleuResults message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BleuResults + * @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.BleuResults; + + /** + * Verifies a BleuResults 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 BleuResults message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BleuResults + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BleuResults; + + /** + * Creates a plain object from a BleuResults message. Also converts values to other types if specified. + * @param message BleuResults + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.BleuResults, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BleuResults to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BleuResults + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a BleuMetricValue. */ + interface IBleuMetricValue { + + /** BleuMetricValue score */ + score?: (number|null); + } + + /** Represents a BleuMetricValue. */ + class BleuMetricValue implements IBleuMetricValue { + + /** + * Constructs a new BleuMetricValue. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IBleuMetricValue); + + /** BleuMetricValue score. */ + public score?: (number|null); + + /** BleuMetricValue _score. */ + public _score?: "score"; + + /** + * Creates a new BleuMetricValue instance using the specified properties. + * @param [properties] Properties to set + * @returns BleuMetricValue instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IBleuMetricValue): google.cloud.aiplatform.v1.BleuMetricValue; + + /** + * Encodes the specified BleuMetricValue message. Does not implicitly {@link google.cloud.aiplatform.v1.BleuMetricValue.verify|verify} messages. + * @param message BleuMetricValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IBleuMetricValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BleuMetricValue message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BleuMetricValue.verify|verify} messages. + * @param message BleuMetricValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IBleuMetricValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BleuMetricValue message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BleuMetricValue + * @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.BleuMetricValue; + + /** + * Decodes a BleuMetricValue message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BleuMetricValue + * @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.BleuMetricValue; + + /** + * Verifies a BleuMetricValue 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 BleuMetricValue message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BleuMetricValue + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BleuMetricValue; + + /** + * Creates a plain object from a BleuMetricValue message. Also converts values to other types if specified. + * @param message BleuMetricValue + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.BleuMetricValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BleuMetricValue to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BleuMetricValue + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RougeInput. */ + interface IRougeInput { + + /** RougeInput metricSpec */ + metricSpec?: (google.cloud.aiplatform.v1.IRougeSpec|null); + + /** RougeInput instances */ + instances?: (google.cloud.aiplatform.v1.IRougeInstance[]|null); + } + + /** Represents a RougeInput. */ + class RougeInput implements IRougeInput { + + /** + * Constructs a new RougeInput. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IRougeInput); + + /** RougeInput metricSpec. */ + public metricSpec?: (google.cloud.aiplatform.v1.IRougeSpec|null); + + /** RougeInput instances. */ + public instances: google.cloud.aiplatform.v1.IRougeInstance[]; + + /** + * Creates a new RougeInput instance using the specified properties. + * @param [properties] Properties to set + * @returns RougeInput instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IRougeInput): google.cloud.aiplatform.v1.RougeInput; + + /** + * Encodes the specified RougeInput message. Does not implicitly {@link google.cloud.aiplatform.v1.RougeInput.verify|verify} messages. + * @param message RougeInput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IRougeInput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RougeInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.RougeInput.verify|verify} messages. + * @param message RougeInput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IRougeInput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RougeInput message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RougeInput + * @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.RougeInput; + + /** + * Decodes a RougeInput message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RougeInput + * @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.RougeInput; + + /** + * Verifies a RougeInput 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 RougeInput message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RougeInput + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.RougeInput; + + /** + * Creates a plain object from a RougeInput message. Also converts values to other types if specified. + * @param message RougeInput + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.RougeInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RougeInput to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RougeInput + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RougeInstance. */ + interface IRougeInstance { + + /** RougeInstance prediction */ + prediction?: (string|null); + + /** RougeInstance reference */ + reference?: (string|null); + } + + /** Represents a RougeInstance. */ + class RougeInstance implements IRougeInstance { + + /** + * Constructs a new RougeInstance. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IRougeInstance); + + /** RougeInstance prediction. */ + public prediction?: (string|null); + + /** RougeInstance reference. */ + public reference?: (string|null); + + /** RougeInstance _prediction. */ + public _prediction?: "prediction"; + + /** RougeInstance _reference. */ + public _reference?: "reference"; + + /** + * Creates a new RougeInstance instance using the specified properties. + * @param [properties] Properties to set + * @returns RougeInstance instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IRougeInstance): google.cloud.aiplatform.v1.RougeInstance; + + /** + * Encodes the specified RougeInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.RougeInstance.verify|verify} messages. + * @param message RougeInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IRougeInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RougeInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.RougeInstance.verify|verify} messages. + * @param message RougeInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IRougeInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RougeInstance message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RougeInstance + * @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.RougeInstance; + + /** + * Decodes a RougeInstance message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RougeInstance + * @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.RougeInstance; + + /** + * Verifies a RougeInstance 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 RougeInstance message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RougeInstance + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.RougeInstance; + + /** + * Creates a plain object from a RougeInstance message. Also converts values to other types if specified. + * @param message RougeInstance + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.RougeInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RougeInstance to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RougeInstance + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RougeSpec. */ + interface IRougeSpec { + + /** RougeSpec rougeType */ + rougeType?: (string|null); + + /** RougeSpec useStemmer */ + useStemmer?: (boolean|null); + + /** RougeSpec splitSummaries */ + splitSummaries?: (boolean|null); + } + + /** Represents a RougeSpec. */ + class RougeSpec implements IRougeSpec { + + /** + * Constructs a new RougeSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IRougeSpec); + + /** RougeSpec rougeType. */ + public rougeType: string; + + /** RougeSpec useStemmer. */ + public useStemmer: boolean; + + /** RougeSpec splitSummaries. */ + public splitSummaries: boolean; + + /** + * Creates a new RougeSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns RougeSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IRougeSpec): google.cloud.aiplatform.v1.RougeSpec; + + /** + * Encodes the specified RougeSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.RougeSpec.verify|verify} messages. + * @param message RougeSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IRougeSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RougeSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.RougeSpec.verify|verify} messages. + * @param message RougeSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IRougeSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RougeSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RougeSpec + * @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.RougeSpec; + + /** + * Decodes a RougeSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RougeSpec + * @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.RougeSpec; + + /** + * Verifies a RougeSpec 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 RougeSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RougeSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.RougeSpec; + + /** + * Creates a plain object from a RougeSpec message. Also converts values to other types if specified. + * @param message RougeSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.RougeSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RougeSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RougeSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RougeResults. */ + interface IRougeResults { + + /** RougeResults rougeMetricValues */ + rougeMetricValues?: (google.cloud.aiplatform.v1.IRougeMetricValue[]|null); + } + + /** Represents a RougeResults. */ + class RougeResults implements IRougeResults { + + /** + * Constructs a new RougeResults. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IRougeResults); + + /** RougeResults rougeMetricValues. */ + public rougeMetricValues: google.cloud.aiplatform.v1.IRougeMetricValue[]; + + /** + * Creates a new RougeResults instance using the specified properties. + * @param [properties] Properties to set + * @returns RougeResults instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IRougeResults): google.cloud.aiplatform.v1.RougeResults; + + /** + * Encodes the specified RougeResults message. Does not implicitly {@link google.cloud.aiplatform.v1.RougeResults.verify|verify} messages. + * @param message RougeResults message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IRougeResults, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RougeResults message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.RougeResults.verify|verify} messages. + * @param message RougeResults message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IRougeResults, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RougeResults message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RougeResults + * @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.RougeResults; + + /** + * Decodes a RougeResults message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RougeResults + * @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.RougeResults; + + /** + * Verifies a RougeResults 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 RougeResults message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RougeResults + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.RougeResults; + + /** + * Creates a plain object from a RougeResults message. Also converts values to other types if specified. + * @param message RougeResults + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.RougeResults, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RougeResults to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RougeResults + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a RougeMetricValue. */ + interface IRougeMetricValue { + + /** RougeMetricValue score */ + score?: (number|null); + } + + /** Represents a RougeMetricValue. */ + class RougeMetricValue implements IRougeMetricValue { + + /** + * Constructs a new RougeMetricValue. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IRougeMetricValue); + + /** RougeMetricValue score. */ + public score?: (number|null); + + /** RougeMetricValue _score. */ + public _score?: "score"; + + /** + * Creates a new RougeMetricValue instance using the specified properties. + * @param [properties] Properties to set + * @returns RougeMetricValue instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IRougeMetricValue): google.cloud.aiplatform.v1.RougeMetricValue; + + /** + * Encodes the specified RougeMetricValue message. Does not implicitly {@link google.cloud.aiplatform.v1.RougeMetricValue.verify|verify} messages. + * @param message RougeMetricValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IRougeMetricValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RougeMetricValue message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.RougeMetricValue.verify|verify} messages. + * @param message RougeMetricValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IRougeMetricValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RougeMetricValue message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RougeMetricValue + * @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.RougeMetricValue; + + /** + * Decodes a RougeMetricValue message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RougeMetricValue + * @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.RougeMetricValue; + + /** + * Verifies a RougeMetricValue 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 RougeMetricValue message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RougeMetricValue + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.RougeMetricValue; + + /** + * Creates a plain object from a RougeMetricValue message. Also converts values to other types if specified. + * @param message RougeMetricValue + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.RougeMetricValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RougeMetricValue to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RougeMetricValue + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CoherenceInput. */ + interface ICoherenceInput { + + /** CoherenceInput metricSpec */ + metricSpec?: (google.cloud.aiplatform.v1.ICoherenceSpec|null); + + /** CoherenceInput instance */ + instance?: (google.cloud.aiplatform.v1.ICoherenceInstance|null); + } + + /** Represents a CoherenceInput. */ + class CoherenceInput implements ICoherenceInput { + + /** + * Constructs a new CoherenceInput. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ICoherenceInput); + + /** CoherenceInput metricSpec. */ + public metricSpec?: (google.cloud.aiplatform.v1.ICoherenceSpec|null); + + /** CoherenceInput instance. */ + public instance?: (google.cloud.aiplatform.v1.ICoherenceInstance|null); + + /** + * Creates a new CoherenceInput instance using the specified properties. + * @param [properties] Properties to set + * @returns CoherenceInput instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ICoherenceInput): google.cloud.aiplatform.v1.CoherenceInput; + + /** + * Encodes the specified CoherenceInput message. Does not implicitly {@link google.cloud.aiplatform.v1.CoherenceInput.verify|verify} messages. + * @param message CoherenceInput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ICoherenceInput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CoherenceInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CoherenceInput.verify|verify} messages. + * @param message CoherenceInput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICoherenceInput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CoherenceInput message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CoherenceInput + * @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.CoherenceInput; + + /** + * Decodes a CoherenceInput message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CoherenceInput + * @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.CoherenceInput; + + /** + * Verifies a CoherenceInput 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 CoherenceInput message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CoherenceInput + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CoherenceInput; + + /** + * Creates a plain object from a CoherenceInput message. Also converts values to other types if specified. + * @param message CoherenceInput + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.CoherenceInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CoherenceInput to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CoherenceInput + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CoherenceInstance. */ + interface ICoherenceInstance { + + /** CoherenceInstance prediction */ + prediction?: (string|null); + } + + /** Represents a CoherenceInstance. */ + class CoherenceInstance implements ICoherenceInstance { + + /** + * Constructs a new CoherenceInstance. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ICoherenceInstance); + + /** CoherenceInstance prediction. */ + public prediction?: (string|null); + + /** CoherenceInstance _prediction. */ + public _prediction?: "prediction"; + + /** + * Creates a new CoherenceInstance instance using the specified properties. + * @param [properties] Properties to set + * @returns CoherenceInstance instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ICoherenceInstance): google.cloud.aiplatform.v1.CoherenceInstance; + + /** + * Encodes the specified CoherenceInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.CoherenceInstance.verify|verify} messages. + * @param message CoherenceInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ICoherenceInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CoherenceInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CoherenceInstance.verify|verify} messages. + * @param message CoherenceInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICoherenceInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CoherenceInstance message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CoherenceInstance + * @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.CoherenceInstance; + + /** + * Decodes a CoherenceInstance message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CoherenceInstance + * @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.CoherenceInstance; + + /** + * Verifies a CoherenceInstance 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 CoherenceInstance message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CoherenceInstance + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CoherenceInstance; + + /** + * Creates a plain object from a CoherenceInstance message. Also converts values to other types if specified. + * @param message CoherenceInstance + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.CoherenceInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CoherenceInstance to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CoherenceInstance + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CoherenceSpec. */ + interface ICoherenceSpec { + + /** CoherenceSpec version */ + version?: (number|null); + } + + /** Represents a CoherenceSpec. */ + class CoherenceSpec implements ICoherenceSpec { + + /** + * Constructs a new CoherenceSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ICoherenceSpec); + + /** CoherenceSpec version. */ + public version: number; + + /** + * Creates a new CoherenceSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns CoherenceSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ICoherenceSpec): google.cloud.aiplatform.v1.CoherenceSpec; + + /** + * Encodes the specified CoherenceSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.CoherenceSpec.verify|verify} messages. + * @param message CoherenceSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ICoherenceSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CoherenceSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CoherenceSpec.verify|verify} messages. + * @param message CoherenceSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICoherenceSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CoherenceSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CoherenceSpec + * @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.CoherenceSpec; + + /** + * Decodes a CoherenceSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CoherenceSpec + * @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.CoherenceSpec; + + /** + * Verifies a CoherenceSpec 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 CoherenceSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CoherenceSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CoherenceSpec; + + /** + * Creates a plain object from a CoherenceSpec message. Also converts values to other types if specified. + * @param message CoherenceSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.CoherenceSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CoherenceSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CoherenceSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CoherenceResult. */ + interface ICoherenceResult { + + /** CoherenceResult score */ + score?: (number|null); + + /** CoherenceResult explanation */ + explanation?: (string|null); + + /** CoherenceResult confidence */ + confidence?: (number|null); + } + + /** Represents a CoherenceResult. */ + class CoherenceResult implements ICoherenceResult { + + /** + * Constructs a new CoherenceResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ICoherenceResult); + + /** CoherenceResult score. */ + public score?: (number|null); + + /** CoherenceResult explanation. */ + public explanation: string; + + /** CoherenceResult confidence. */ + public confidence?: (number|null); + + /** CoherenceResult _score. */ + public _score?: "score"; + + /** CoherenceResult _confidence. */ + public _confidence?: "confidence"; + + /** + * Creates a new CoherenceResult instance using the specified properties. + * @param [properties] Properties to set + * @returns CoherenceResult instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ICoherenceResult): google.cloud.aiplatform.v1.CoherenceResult; + + /** + * Encodes the specified CoherenceResult message. Does not implicitly {@link google.cloud.aiplatform.v1.CoherenceResult.verify|verify} messages. + * @param message CoherenceResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ICoherenceResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CoherenceResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CoherenceResult.verify|verify} messages. + * @param message CoherenceResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICoherenceResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CoherenceResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CoherenceResult + * @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.CoherenceResult; + + /** + * Decodes a CoherenceResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CoherenceResult + * @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.CoherenceResult; + + /** + * Verifies a CoherenceResult 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 CoherenceResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CoherenceResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CoherenceResult; + + /** + * Creates a plain object from a CoherenceResult message. Also converts values to other types if specified. + * @param message CoherenceResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.CoherenceResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CoherenceResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CoherenceResult + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a FluencyInput. */ + interface IFluencyInput { + + /** FluencyInput metricSpec */ + metricSpec?: (google.cloud.aiplatform.v1.IFluencySpec|null); + + /** FluencyInput instance */ + instance?: (google.cloud.aiplatform.v1.IFluencyInstance|null); + } + + /** Represents a FluencyInput. */ + class FluencyInput implements IFluencyInput { + + /** + * Constructs a new FluencyInput. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IFluencyInput); + + /** FluencyInput metricSpec. */ + public metricSpec?: (google.cloud.aiplatform.v1.IFluencySpec|null); + + /** FluencyInput instance. */ + public instance?: (google.cloud.aiplatform.v1.IFluencyInstance|null); + + /** + * Creates a new FluencyInput instance using the specified properties. + * @param [properties] Properties to set + * @returns FluencyInput instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IFluencyInput): google.cloud.aiplatform.v1.FluencyInput; + + /** + * Encodes the specified FluencyInput message. Does not implicitly {@link google.cloud.aiplatform.v1.FluencyInput.verify|verify} messages. + * @param message FluencyInput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IFluencyInput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FluencyInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FluencyInput.verify|verify} messages. + * @param message FluencyInput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IFluencyInput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FluencyInput message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FluencyInput + * @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.FluencyInput; + + /** + * Decodes a FluencyInput message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FluencyInput + * @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.FluencyInput; + + /** + * Verifies a FluencyInput 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 FluencyInput message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FluencyInput + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.FluencyInput; + + /** + * Creates a plain object from a FluencyInput message. Also converts values to other types if specified. + * @param message FluencyInput + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.FluencyInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FluencyInput to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FluencyInput + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a FluencyInstance. */ + interface IFluencyInstance { + + /** FluencyInstance prediction */ + prediction?: (string|null); + } + + /** Represents a FluencyInstance. */ + class FluencyInstance implements IFluencyInstance { + + /** + * Constructs a new FluencyInstance. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IFluencyInstance); + + /** FluencyInstance prediction. */ + public prediction?: (string|null); + + /** FluencyInstance _prediction. */ + public _prediction?: "prediction"; + + /** + * Creates a new FluencyInstance instance using the specified properties. + * @param [properties] Properties to set + * @returns FluencyInstance instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IFluencyInstance): google.cloud.aiplatform.v1.FluencyInstance; + + /** + * Encodes the specified FluencyInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.FluencyInstance.verify|verify} messages. + * @param message FluencyInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IFluencyInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FluencyInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FluencyInstance.verify|verify} messages. + * @param message FluencyInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IFluencyInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FluencyInstance message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FluencyInstance + * @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.FluencyInstance; + + /** + * Decodes a FluencyInstance message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FluencyInstance + * @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.FluencyInstance; + + /** + * Verifies a FluencyInstance 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 FluencyInstance message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FluencyInstance + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.FluencyInstance; + + /** + * Creates a plain object from a FluencyInstance message. Also converts values to other types if specified. + * @param message FluencyInstance + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.FluencyInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FluencyInstance to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FluencyInstance + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a FluencySpec. */ + interface IFluencySpec { + + /** FluencySpec version */ + version?: (number|null); + } + + /** Represents a FluencySpec. */ + class FluencySpec implements IFluencySpec { + + /** + * Constructs a new FluencySpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IFluencySpec); + + /** FluencySpec version. */ + public version: number; + + /** + * Creates a new FluencySpec instance using the specified properties. + * @param [properties] Properties to set + * @returns FluencySpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IFluencySpec): google.cloud.aiplatform.v1.FluencySpec; + + /** + * Encodes the specified FluencySpec message. Does not implicitly {@link google.cloud.aiplatform.v1.FluencySpec.verify|verify} messages. + * @param message FluencySpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IFluencySpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FluencySpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FluencySpec.verify|verify} messages. + * @param message FluencySpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IFluencySpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FluencySpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FluencySpec + * @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.FluencySpec; + + /** + * Decodes a FluencySpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FluencySpec + * @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.FluencySpec; + + /** + * Verifies a FluencySpec 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 FluencySpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FluencySpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.FluencySpec; + + /** + * Creates a plain object from a FluencySpec message. Also converts values to other types if specified. + * @param message FluencySpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.FluencySpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FluencySpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FluencySpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a FluencyResult. */ + interface IFluencyResult { + + /** FluencyResult score */ + score?: (number|null); + + /** FluencyResult explanation */ + explanation?: (string|null); + + /** FluencyResult confidence */ + confidence?: (number|null); + } + + /** Represents a FluencyResult. */ + class FluencyResult implements IFluencyResult { + + /** + * Constructs a new FluencyResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IFluencyResult); + + /** FluencyResult score. */ + public score?: (number|null); + + /** FluencyResult explanation. */ + public explanation: string; + + /** FluencyResult confidence. */ + public confidence?: (number|null); + + /** FluencyResult _score. */ + public _score?: "score"; + + /** FluencyResult _confidence. */ + public _confidence?: "confidence"; + + /** + * Creates a new FluencyResult instance using the specified properties. + * @param [properties] Properties to set + * @returns FluencyResult instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IFluencyResult): google.cloud.aiplatform.v1.FluencyResult; + + /** + * Encodes the specified FluencyResult message. Does not implicitly {@link google.cloud.aiplatform.v1.FluencyResult.verify|verify} messages. + * @param message FluencyResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IFluencyResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FluencyResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FluencyResult.verify|verify} messages. + * @param message FluencyResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IFluencyResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FluencyResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FluencyResult + * @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.FluencyResult; + + /** + * Decodes a FluencyResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FluencyResult + * @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.FluencyResult; + + /** + * Verifies a FluencyResult 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 FluencyResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FluencyResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.FluencyResult; + + /** + * Creates a plain object from a FluencyResult message. Also converts values to other types if specified. + * @param message FluencyResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.FluencyResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FluencyResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FluencyResult + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SafetyInput. */ + interface ISafetyInput { + + /** SafetyInput metricSpec */ + metricSpec?: (google.cloud.aiplatform.v1.ISafetySpec|null); + + /** SafetyInput instance */ + instance?: (google.cloud.aiplatform.v1.ISafetyInstance|null); + } + + /** Represents a SafetyInput. */ + class SafetyInput implements ISafetyInput { + + /** + * Constructs a new SafetyInput. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ISafetyInput); + + /** SafetyInput metricSpec. */ + public metricSpec?: (google.cloud.aiplatform.v1.ISafetySpec|null); + + /** SafetyInput instance. */ + public instance?: (google.cloud.aiplatform.v1.ISafetyInstance|null); + + /** + * Creates a new SafetyInput instance using the specified properties. + * @param [properties] Properties to set + * @returns SafetyInput instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ISafetyInput): google.cloud.aiplatform.v1.SafetyInput; + + /** + * Encodes the specified SafetyInput message. Does not implicitly {@link google.cloud.aiplatform.v1.SafetyInput.verify|verify} messages. + * @param message SafetyInput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ISafetyInput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SafetyInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SafetyInput.verify|verify} messages. + * @param message SafetyInput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ISafetyInput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SafetyInput message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SafetyInput + * @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.SafetyInput; + + /** + * Decodes a SafetyInput message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SafetyInput + * @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.SafetyInput; + + /** + * Verifies a SafetyInput 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 SafetyInput message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SafetyInput + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SafetyInput; + + /** + * Creates a plain object from a SafetyInput message. Also converts values to other types if specified. + * @param message SafetyInput + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.SafetyInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SafetyInput to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SafetyInput + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SafetyInstance. */ + interface ISafetyInstance { + + /** SafetyInstance prediction */ + prediction?: (string|null); + } + + /** Represents a SafetyInstance. */ + class SafetyInstance implements ISafetyInstance { + + /** + * Constructs a new SafetyInstance. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ISafetyInstance); + + /** SafetyInstance prediction. */ + public prediction?: (string|null); + + /** SafetyInstance _prediction. */ + public _prediction?: "prediction"; + + /** + * Creates a new SafetyInstance instance using the specified properties. + * @param [properties] Properties to set + * @returns SafetyInstance instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ISafetyInstance): google.cloud.aiplatform.v1.SafetyInstance; + + /** + * Encodes the specified SafetyInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.SafetyInstance.verify|verify} messages. + * @param message SafetyInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ISafetyInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SafetyInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SafetyInstance.verify|verify} messages. + * @param message SafetyInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ISafetyInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SafetyInstance message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SafetyInstance + * @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.SafetyInstance; + + /** + * Decodes a SafetyInstance message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SafetyInstance + * @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.SafetyInstance; + + /** + * Verifies a SafetyInstance 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 SafetyInstance message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SafetyInstance + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SafetyInstance; + + /** + * Creates a plain object from a SafetyInstance message. Also converts values to other types if specified. + * @param message SafetyInstance + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.SafetyInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SafetyInstance to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SafetyInstance + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SafetySpec. */ + interface ISafetySpec { + + /** SafetySpec version */ + version?: (number|null); + } + + /** Represents a SafetySpec. */ + class SafetySpec implements ISafetySpec { + + /** + * Constructs a new SafetySpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ISafetySpec); + + /** SafetySpec version. */ + public version: number; + + /** + * Creates a new SafetySpec instance using the specified properties. + * @param [properties] Properties to set + * @returns SafetySpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ISafetySpec): google.cloud.aiplatform.v1.SafetySpec; + + /** + * Encodes the specified SafetySpec message. Does not implicitly {@link google.cloud.aiplatform.v1.SafetySpec.verify|verify} messages. + * @param message SafetySpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ISafetySpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SafetySpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SafetySpec.verify|verify} messages. + * @param message SafetySpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ISafetySpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SafetySpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SafetySpec + * @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.SafetySpec; + + /** + * Decodes a SafetySpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SafetySpec + * @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.SafetySpec; + + /** + * Verifies a SafetySpec 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 SafetySpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SafetySpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SafetySpec; + + /** + * Creates a plain object from a SafetySpec message. Also converts values to other types if specified. + * @param message SafetySpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.SafetySpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SafetySpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SafetySpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SafetyResult. */ + interface ISafetyResult { + + /** SafetyResult score */ + score?: (number|null); + + /** SafetyResult explanation */ + explanation?: (string|null); + + /** SafetyResult confidence */ + confidence?: (number|null); + } + + /** Represents a SafetyResult. */ + class SafetyResult implements ISafetyResult { + + /** + * Constructs a new SafetyResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ISafetyResult); + + /** SafetyResult score. */ + public score?: (number|null); + + /** SafetyResult explanation. */ + public explanation: string; + + /** SafetyResult confidence. */ + public confidence?: (number|null); + + /** SafetyResult _score. */ + public _score?: "score"; + + /** SafetyResult _confidence. */ + public _confidence?: "confidence"; + + /** + * Creates a new SafetyResult instance using the specified properties. + * @param [properties] Properties to set + * @returns SafetyResult instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ISafetyResult): google.cloud.aiplatform.v1.SafetyResult; + + /** + * Encodes the specified SafetyResult message. Does not implicitly {@link google.cloud.aiplatform.v1.SafetyResult.verify|verify} messages. + * @param message SafetyResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ISafetyResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SafetyResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SafetyResult.verify|verify} messages. + * @param message SafetyResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ISafetyResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SafetyResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SafetyResult + * @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.SafetyResult; + + /** + * Decodes a SafetyResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SafetyResult + * @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.SafetyResult; + + /** + * Verifies a SafetyResult 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 SafetyResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SafetyResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SafetyResult; + + /** + * Creates a plain object from a SafetyResult message. Also converts values to other types if specified. + * @param message SafetyResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.SafetyResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SafetyResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SafetyResult + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GroundednessInput. */ + interface IGroundednessInput { + + /** GroundednessInput metricSpec */ + metricSpec?: (google.cloud.aiplatform.v1.IGroundednessSpec|null); + + /** GroundednessInput instance */ + instance?: (google.cloud.aiplatform.v1.IGroundednessInstance|null); + } + + /** Represents a GroundednessInput. */ + class GroundednessInput implements IGroundednessInput { + + /** + * Constructs a new GroundednessInput. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IGroundednessInput); + + /** GroundednessInput metricSpec. */ + public metricSpec?: (google.cloud.aiplatform.v1.IGroundednessSpec|null); + + /** GroundednessInput instance. */ + public instance?: (google.cloud.aiplatform.v1.IGroundednessInstance|null); + + /** + * Creates a new GroundednessInput instance using the specified properties. + * @param [properties] Properties to set + * @returns GroundednessInput instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IGroundednessInput): google.cloud.aiplatform.v1.GroundednessInput; + + /** + * Encodes the specified GroundednessInput message. Does not implicitly {@link google.cloud.aiplatform.v1.GroundednessInput.verify|verify} messages. + * @param message GroundednessInput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IGroundednessInput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GroundednessInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GroundednessInput.verify|verify} messages. + * @param message GroundednessInput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IGroundednessInput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GroundednessInput message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GroundednessInput + * @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.GroundednessInput; + + /** + * Decodes a GroundednessInput message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GroundednessInput + * @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.GroundednessInput; + + /** + * Verifies a GroundednessInput 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 GroundednessInput message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GroundednessInput + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GroundednessInput; + + /** + * Creates a plain object from a GroundednessInput message. Also converts values to other types if specified. + * @param message GroundednessInput + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.GroundednessInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GroundednessInput to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GroundednessInput + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GroundednessInstance. */ + interface IGroundednessInstance { + + /** GroundednessInstance prediction */ + prediction?: (string|null); + + /** GroundednessInstance context */ + context?: (string|null); + } + + /** Represents a GroundednessInstance. */ + class GroundednessInstance implements IGroundednessInstance { + + /** + * Constructs a new GroundednessInstance. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IGroundednessInstance); + + /** GroundednessInstance prediction. */ + public prediction?: (string|null); + + /** GroundednessInstance context. */ + public context?: (string|null); + + /** GroundednessInstance _prediction. */ + public _prediction?: "prediction"; + + /** GroundednessInstance _context. */ + public _context?: "context"; + + /** + * Creates a new GroundednessInstance instance using the specified properties. + * @param [properties] Properties to set + * @returns GroundednessInstance instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IGroundednessInstance): google.cloud.aiplatform.v1.GroundednessInstance; + + /** + * Encodes the specified GroundednessInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.GroundednessInstance.verify|verify} messages. + * @param message GroundednessInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IGroundednessInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GroundednessInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GroundednessInstance.verify|verify} messages. + * @param message GroundednessInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IGroundednessInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GroundednessInstance message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GroundednessInstance + * @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.GroundednessInstance; + + /** + * Decodes a GroundednessInstance message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GroundednessInstance + * @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.GroundednessInstance; + + /** + * Verifies a GroundednessInstance 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 GroundednessInstance message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GroundednessInstance + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GroundednessInstance; + + /** + * Creates a plain object from a GroundednessInstance message. Also converts values to other types if specified. + * @param message GroundednessInstance + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.GroundednessInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GroundednessInstance to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GroundednessInstance + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GroundednessSpec. */ + interface IGroundednessSpec { + + /** GroundednessSpec version */ + version?: (number|null); + } + + /** Represents a GroundednessSpec. */ + class GroundednessSpec implements IGroundednessSpec { + + /** + * Constructs a new GroundednessSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IGroundednessSpec); + + /** GroundednessSpec version. */ + public version: number; + + /** + * Creates a new GroundednessSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns GroundednessSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IGroundednessSpec): google.cloud.aiplatform.v1.GroundednessSpec; + + /** + * Encodes the specified GroundednessSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.GroundednessSpec.verify|verify} messages. + * @param message GroundednessSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IGroundednessSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GroundednessSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GroundednessSpec.verify|verify} messages. + * @param message GroundednessSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IGroundednessSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GroundednessSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GroundednessSpec + * @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.GroundednessSpec; + + /** + * Decodes a GroundednessSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GroundednessSpec + * @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.GroundednessSpec; + + /** + * Verifies a GroundednessSpec 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 GroundednessSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GroundednessSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GroundednessSpec; + + /** + * Creates a plain object from a GroundednessSpec message. Also converts values to other types if specified. + * @param message GroundednessSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.GroundednessSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GroundednessSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GroundednessSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GroundednessResult. */ + interface IGroundednessResult { + + /** GroundednessResult score */ + score?: (number|null); + + /** GroundednessResult explanation */ + explanation?: (string|null); + + /** GroundednessResult confidence */ + confidence?: (number|null); + } + + /** Represents a GroundednessResult. */ + class GroundednessResult implements IGroundednessResult { + + /** + * Constructs a new GroundednessResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IGroundednessResult); + + /** GroundednessResult score. */ + public score?: (number|null); + + /** GroundednessResult explanation. */ + public explanation: string; + + /** GroundednessResult confidence. */ + public confidence?: (number|null); + + /** GroundednessResult _score. */ + public _score?: "score"; + + /** GroundednessResult _confidence. */ + public _confidence?: "confidence"; + + /** + * Creates a new GroundednessResult instance using the specified properties. + * @param [properties] Properties to set + * @returns GroundednessResult instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IGroundednessResult): google.cloud.aiplatform.v1.GroundednessResult; + + /** + * Encodes the specified GroundednessResult message. Does not implicitly {@link google.cloud.aiplatform.v1.GroundednessResult.verify|verify} messages. + * @param message GroundednessResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IGroundednessResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GroundednessResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GroundednessResult.verify|verify} messages. + * @param message GroundednessResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IGroundednessResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GroundednessResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GroundednessResult + * @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.GroundednessResult; + + /** + * Decodes a GroundednessResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GroundednessResult + * @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.GroundednessResult; + + /** + * Verifies a GroundednessResult 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 GroundednessResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GroundednessResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GroundednessResult; + + /** + * Creates a plain object from a GroundednessResult message. Also converts values to other types if specified. + * @param message GroundednessResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.GroundednessResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GroundednessResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GroundednessResult + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a FulfillmentInput. */ + interface IFulfillmentInput { + + /** FulfillmentInput metricSpec */ + metricSpec?: (google.cloud.aiplatform.v1.IFulfillmentSpec|null); + + /** FulfillmentInput instance */ + instance?: (google.cloud.aiplatform.v1.IFulfillmentInstance|null); + } + + /** Represents a FulfillmentInput. */ + class FulfillmentInput implements IFulfillmentInput { + + /** + * Constructs a new FulfillmentInput. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IFulfillmentInput); + + /** FulfillmentInput metricSpec. */ + public metricSpec?: (google.cloud.aiplatform.v1.IFulfillmentSpec|null); + + /** FulfillmentInput instance. */ + public instance?: (google.cloud.aiplatform.v1.IFulfillmentInstance|null); + + /** + * Creates a new FulfillmentInput instance using the specified properties. + * @param [properties] Properties to set + * @returns FulfillmentInput instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IFulfillmentInput): google.cloud.aiplatform.v1.FulfillmentInput; + + /** + * Encodes the specified FulfillmentInput message. Does not implicitly {@link google.cloud.aiplatform.v1.FulfillmentInput.verify|verify} messages. + * @param message FulfillmentInput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IFulfillmentInput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FulfillmentInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FulfillmentInput.verify|verify} messages. + * @param message FulfillmentInput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IFulfillmentInput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FulfillmentInput message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FulfillmentInput + * @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.FulfillmentInput; + + /** + * Decodes a FulfillmentInput message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FulfillmentInput + * @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.FulfillmentInput; + + /** + * Verifies a FulfillmentInput 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 FulfillmentInput message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FulfillmentInput + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.FulfillmentInput; + + /** + * Creates a plain object from a FulfillmentInput message. Also converts values to other types if specified. + * @param message FulfillmentInput + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.FulfillmentInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FulfillmentInput to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FulfillmentInput + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a FulfillmentInstance. */ + interface IFulfillmentInstance { + + /** FulfillmentInstance prediction */ + prediction?: (string|null); + + /** FulfillmentInstance instruction */ + instruction?: (string|null); + } + + /** Represents a FulfillmentInstance. */ + class FulfillmentInstance implements IFulfillmentInstance { + + /** + * Constructs a new FulfillmentInstance. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IFulfillmentInstance); + + /** FulfillmentInstance prediction. */ + public prediction?: (string|null); + + /** FulfillmentInstance instruction. */ + public instruction?: (string|null); + + /** FulfillmentInstance _prediction. */ + public _prediction?: "prediction"; + + /** FulfillmentInstance _instruction. */ + public _instruction?: "instruction"; + + /** + * Creates a new FulfillmentInstance instance using the specified properties. + * @param [properties] Properties to set + * @returns FulfillmentInstance instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IFulfillmentInstance): google.cloud.aiplatform.v1.FulfillmentInstance; + + /** + * Encodes the specified FulfillmentInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.FulfillmentInstance.verify|verify} messages. + * @param message FulfillmentInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IFulfillmentInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FulfillmentInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FulfillmentInstance.verify|verify} messages. + * @param message FulfillmentInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IFulfillmentInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FulfillmentInstance message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FulfillmentInstance + * @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.FulfillmentInstance; + + /** + * Decodes a FulfillmentInstance message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FulfillmentInstance + * @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.FulfillmentInstance; + + /** + * Verifies a FulfillmentInstance 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 FulfillmentInstance message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FulfillmentInstance + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.FulfillmentInstance; + + /** + * Creates a plain object from a FulfillmentInstance message. Also converts values to other types if specified. + * @param message FulfillmentInstance + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.FulfillmentInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FulfillmentInstance to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FulfillmentInstance + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a FulfillmentSpec. */ + interface IFulfillmentSpec { + + /** FulfillmentSpec version */ + version?: (number|null); + } + + /** Represents a FulfillmentSpec. */ + class FulfillmentSpec implements IFulfillmentSpec { + + /** + * Constructs a new FulfillmentSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IFulfillmentSpec); + + /** FulfillmentSpec version. */ + public version: number; + + /** + * Creates a new FulfillmentSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns FulfillmentSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IFulfillmentSpec): google.cloud.aiplatform.v1.FulfillmentSpec; + + /** + * Encodes the specified FulfillmentSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.FulfillmentSpec.verify|verify} messages. + * @param message FulfillmentSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IFulfillmentSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FulfillmentSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FulfillmentSpec.verify|verify} messages. + * @param message FulfillmentSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IFulfillmentSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FulfillmentSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FulfillmentSpec + * @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.FulfillmentSpec; + + /** + * Decodes a FulfillmentSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FulfillmentSpec + * @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.FulfillmentSpec; + + /** + * Verifies a FulfillmentSpec 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 FulfillmentSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FulfillmentSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.FulfillmentSpec; + + /** + * Creates a plain object from a FulfillmentSpec message. Also converts values to other types if specified. + * @param message FulfillmentSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.FulfillmentSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FulfillmentSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FulfillmentSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a FulfillmentResult. */ + interface IFulfillmentResult { + + /** FulfillmentResult score */ + score?: (number|null); + + /** FulfillmentResult explanation */ + explanation?: (string|null); + + /** FulfillmentResult confidence */ + confidence?: (number|null); + } + + /** Represents a FulfillmentResult. */ + class FulfillmentResult implements IFulfillmentResult { + + /** + * Constructs a new FulfillmentResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IFulfillmentResult); + + /** FulfillmentResult score. */ + public score?: (number|null); + + /** FulfillmentResult explanation. */ + public explanation: string; + + /** FulfillmentResult confidence. */ + public confidence?: (number|null); + + /** FulfillmentResult _score. */ + public _score?: "score"; + + /** FulfillmentResult _confidence. */ + public _confidence?: "confidence"; + + /** + * Creates a new FulfillmentResult instance using the specified properties. + * @param [properties] Properties to set + * @returns FulfillmentResult instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IFulfillmentResult): google.cloud.aiplatform.v1.FulfillmentResult; + + /** + * Encodes the specified FulfillmentResult message. Does not implicitly {@link google.cloud.aiplatform.v1.FulfillmentResult.verify|verify} messages. + * @param message FulfillmentResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IFulfillmentResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FulfillmentResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FulfillmentResult.verify|verify} messages. + * @param message FulfillmentResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IFulfillmentResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FulfillmentResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FulfillmentResult + * @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.FulfillmentResult; + + /** + * Decodes a FulfillmentResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FulfillmentResult + * @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.FulfillmentResult; + + /** + * Verifies a FulfillmentResult 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 FulfillmentResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FulfillmentResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.FulfillmentResult; + + /** + * Creates a plain object from a FulfillmentResult message. Also converts values to other types if specified. + * @param message FulfillmentResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.FulfillmentResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FulfillmentResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FulfillmentResult + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SummarizationQualityInput. */ + interface ISummarizationQualityInput { + + /** SummarizationQualityInput metricSpec */ + metricSpec?: (google.cloud.aiplatform.v1.ISummarizationQualitySpec|null); + + /** SummarizationQualityInput instance */ + instance?: (google.cloud.aiplatform.v1.ISummarizationQualityInstance|null); + } + + /** Represents a SummarizationQualityInput. */ + class SummarizationQualityInput implements ISummarizationQualityInput { + + /** + * Constructs a new SummarizationQualityInput. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ISummarizationQualityInput); + + /** SummarizationQualityInput metricSpec. */ + public metricSpec?: (google.cloud.aiplatform.v1.ISummarizationQualitySpec|null); + + /** SummarizationQualityInput instance. */ + public instance?: (google.cloud.aiplatform.v1.ISummarizationQualityInstance|null); + + /** + * Creates a new SummarizationQualityInput instance using the specified properties. + * @param [properties] Properties to set + * @returns SummarizationQualityInput instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ISummarizationQualityInput): google.cloud.aiplatform.v1.SummarizationQualityInput; + + /** + * Encodes the specified SummarizationQualityInput message. Does not implicitly {@link google.cloud.aiplatform.v1.SummarizationQualityInput.verify|verify} messages. + * @param message SummarizationQualityInput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ISummarizationQualityInput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SummarizationQualityInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SummarizationQualityInput.verify|verify} messages. + * @param message SummarizationQualityInput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ISummarizationQualityInput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SummarizationQualityInput message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SummarizationQualityInput + * @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.SummarizationQualityInput; + + /** + * Decodes a SummarizationQualityInput message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SummarizationQualityInput + * @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.SummarizationQualityInput; + + /** + * Verifies a SummarizationQualityInput 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 SummarizationQualityInput message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SummarizationQualityInput + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SummarizationQualityInput; + + /** + * Creates a plain object from a SummarizationQualityInput message. Also converts values to other types if specified. + * @param message SummarizationQualityInput + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.SummarizationQualityInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SummarizationQualityInput to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SummarizationQualityInput + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SummarizationQualityInstance. */ + interface ISummarizationQualityInstance { + + /** SummarizationQualityInstance prediction */ + prediction?: (string|null); + + /** SummarizationQualityInstance reference */ + reference?: (string|null); + + /** SummarizationQualityInstance context */ + context?: (string|null); + + /** SummarizationQualityInstance instruction */ + instruction?: (string|null); + } + + /** Represents a SummarizationQualityInstance. */ + class SummarizationQualityInstance implements ISummarizationQualityInstance { + + /** + * Constructs a new SummarizationQualityInstance. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ISummarizationQualityInstance); + + /** SummarizationQualityInstance prediction. */ + public prediction?: (string|null); + + /** SummarizationQualityInstance reference. */ + public reference?: (string|null); + + /** SummarizationQualityInstance context. */ + public context?: (string|null); + + /** SummarizationQualityInstance instruction. */ + public instruction?: (string|null); + + /** SummarizationQualityInstance _prediction. */ + public _prediction?: "prediction"; + + /** SummarizationQualityInstance _reference. */ + public _reference?: "reference"; + + /** SummarizationQualityInstance _context. */ + public _context?: "context"; + + /** SummarizationQualityInstance _instruction. */ + public _instruction?: "instruction"; + + /** + * Creates a new SummarizationQualityInstance instance using the specified properties. + * @param [properties] Properties to set + * @returns SummarizationQualityInstance instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ISummarizationQualityInstance): google.cloud.aiplatform.v1.SummarizationQualityInstance; + + /** + * Encodes the specified SummarizationQualityInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.SummarizationQualityInstance.verify|verify} messages. + * @param message SummarizationQualityInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ISummarizationQualityInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SummarizationQualityInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SummarizationQualityInstance.verify|verify} messages. + * @param message SummarizationQualityInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ISummarizationQualityInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SummarizationQualityInstance message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SummarizationQualityInstance + * @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.SummarizationQualityInstance; + + /** + * Decodes a SummarizationQualityInstance message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SummarizationQualityInstance + * @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.SummarizationQualityInstance; + + /** + * Verifies a SummarizationQualityInstance 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 SummarizationQualityInstance message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SummarizationQualityInstance + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SummarizationQualityInstance; + + /** + * Creates a plain object from a SummarizationQualityInstance message. Also converts values to other types if specified. + * @param message SummarizationQualityInstance + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.SummarizationQualityInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SummarizationQualityInstance to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SummarizationQualityInstance + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SummarizationQualitySpec. */ + interface ISummarizationQualitySpec { + + /** SummarizationQualitySpec useReference */ + useReference?: (boolean|null); + + /** SummarizationQualitySpec version */ + version?: (number|null); + } + + /** Represents a SummarizationQualitySpec. */ + class SummarizationQualitySpec implements ISummarizationQualitySpec { + + /** + * Constructs a new SummarizationQualitySpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ISummarizationQualitySpec); + + /** SummarizationQualitySpec useReference. */ + public useReference: boolean; + + /** SummarizationQualitySpec version. */ + public version: number; + + /** + * Creates a new SummarizationQualitySpec instance using the specified properties. + * @param [properties] Properties to set + * @returns SummarizationQualitySpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ISummarizationQualitySpec): google.cloud.aiplatform.v1.SummarizationQualitySpec; + + /** + * Encodes the specified SummarizationQualitySpec message. Does not implicitly {@link google.cloud.aiplatform.v1.SummarizationQualitySpec.verify|verify} messages. + * @param message SummarizationQualitySpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ISummarizationQualitySpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SummarizationQualitySpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SummarizationQualitySpec.verify|verify} messages. + * @param message SummarizationQualitySpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ISummarizationQualitySpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SummarizationQualitySpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SummarizationQualitySpec + * @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.SummarizationQualitySpec; + + /** + * Decodes a SummarizationQualitySpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SummarizationQualitySpec + * @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.SummarizationQualitySpec; + + /** + * Verifies a SummarizationQualitySpec 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 SummarizationQualitySpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SummarizationQualitySpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SummarizationQualitySpec; + + /** + * Creates a plain object from a SummarizationQualitySpec message. Also converts values to other types if specified. + * @param message SummarizationQualitySpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.SummarizationQualitySpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SummarizationQualitySpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SummarizationQualitySpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SummarizationQualityResult. */ + interface ISummarizationQualityResult { + + /** SummarizationQualityResult score */ + score?: (number|null); + + /** SummarizationQualityResult explanation */ + explanation?: (string|null); + + /** SummarizationQualityResult confidence */ + confidence?: (number|null); + } + + /** Represents a SummarizationQualityResult. */ + class SummarizationQualityResult implements ISummarizationQualityResult { + + /** + * Constructs a new SummarizationQualityResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ISummarizationQualityResult); + + /** SummarizationQualityResult score. */ + public score?: (number|null); + + /** SummarizationQualityResult explanation. */ + public explanation: string; + + /** SummarizationQualityResult confidence. */ + public confidence?: (number|null); + + /** SummarizationQualityResult _score. */ + public _score?: "score"; + + /** SummarizationQualityResult _confidence. */ + public _confidence?: "confidence"; + + /** + * Creates a new SummarizationQualityResult instance using the specified properties. + * @param [properties] Properties to set + * @returns SummarizationQualityResult instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ISummarizationQualityResult): google.cloud.aiplatform.v1.SummarizationQualityResult; + + /** + * Encodes the specified SummarizationQualityResult message. Does not implicitly {@link google.cloud.aiplatform.v1.SummarizationQualityResult.verify|verify} messages. + * @param message SummarizationQualityResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ISummarizationQualityResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SummarizationQualityResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SummarizationQualityResult.verify|verify} messages. + * @param message SummarizationQualityResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ISummarizationQualityResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SummarizationQualityResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SummarizationQualityResult + * @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.SummarizationQualityResult; + + /** + * Decodes a SummarizationQualityResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SummarizationQualityResult + * @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.SummarizationQualityResult; + + /** + * Verifies a SummarizationQualityResult 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 SummarizationQualityResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SummarizationQualityResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SummarizationQualityResult; + + /** + * Creates a plain object from a SummarizationQualityResult message. Also converts values to other types if specified. + * @param message SummarizationQualityResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.SummarizationQualityResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SummarizationQualityResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SummarizationQualityResult + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a PairwiseSummarizationQualityInput. */ + interface IPairwiseSummarizationQualityInput { + + /** PairwiseSummarizationQualityInput metricSpec */ + metricSpec?: (google.cloud.aiplatform.v1.IPairwiseSummarizationQualitySpec|null); + + /** PairwiseSummarizationQualityInput instance */ + instance?: (google.cloud.aiplatform.v1.IPairwiseSummarizationQualityInstance|null); + } + + /** Represents a PairwiseSummarizationQualityInput. */ + class PairwiseSummarizationQualityInput implements IPairwiseSummarizationQualityInput { + + /** + * Constructs a new PairwiseSummarizationQualityInput. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IPairwiseSummarizationQualityInput); + + /** PairwiseSummarizationQualityInput metricSpec. */ + public metricSpec?: (google.cloud.aiplatform.v1.IPairwiseSummarizationQualitySpec|null); + + /** PairwiseSummarizationQualityInput instance. */ + public instance?: (google.cloud.aiplatform.v1.IPairwiseSummarizationQualityInstance|null); + + /** + * Creates a new PairwiseSummarizationQualityInput instance using the specified properties. + * @param [properties] Properties to set + * @returns PairwiseSummarizationQualityInput instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IPairwiseSummarizationQualityInput): google.cloud.aiplatform.v1.PairwiseSummarizationQualityInput; + + /** + * Encodes the specified PairwiseSummarizationQualityInput message. Does not implicitly {@link google.cloud.aiplatform.v1.PairwiseSummarizationQualityInput.verify|verify} messages. + * @param message PairwiseSummarizationQualityInput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IPairwiseSummarizationQualityInput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PairwiseSummarizationQualityInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PairwiseSummarizationQualityInput.verify|verify} messages. + * @param message PairwiseSummarizationQualityInput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IPairwiseSummarizationQualityInput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PairwiseSummarizationQualityInput message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PairwiseSummarizationQualityInput + * @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.PairwiseSummarizationQualityInput; + + /** + * Decodes a PairwiseSummarizationQualityInput message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PairwiseSummarizationQualityInput + * @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.PairwiseSummarizationQualityInput; + + /** + * Verifies a PairwiseSummarizationQualityInput 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 PairwiseSummarizationQualityInput message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PairwiseSummarizationQualityInput + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PairwiseSummarizationQualityInput; + + /** + * Creates a plain object from a PairwiseSummarizationQualityInput message. Also converts values to other types if specified. + * @param message PairwiseSummarizationQualityInput + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.PairwiseSummarizationQualityInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PairwiseSummarizationQualityInput to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PairwiseSummarizationQualityInput + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a PairwiseSummarizationQualityInstance. */ + interface IPairwiseSummarizationQualityInstance { + + /** PairwiseSummarizationQualityInstance prediction */ + prediction?: (string|null); + + /** PairwiseSummarizationQualityInstance baselinePrediction */ + baselinePrediction?: (string|null); + + /** PairwiseSummarizationQualityInstance reference */ + reference?: (string|null); + + /** PairwiseSummarizationQualityInstance context */ + context?: (string|null); + + /** PairwiseSummarizationQualityInstance instruction */ + instruction?: (string|null); + } + + /** Represents a PairwiseSummarizationQualityInstance. */ + class PairwiseSummarizationQualityInstance implements IPairwiseSummarizationQualityInstance { + + /** + * Constructs a new PairwiseSummarizationQualityInstance. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IPairwiseSummarizationQualityInstance); + + /** PairwiseSummarizationQualityInstance prediction. */ + public prediction?: (string|null); + + /** PairwiseSummarizationQualityInstance baselinePrediction. */ + public baselinePrediction?: (string|null); + + /** PairwiseSummarizationQualityInstance reference. */ + public reference?: (string|null); + + /** PairwiseSummarizationQualityInstance context. */ + public context?: (string|null); + + /** PairwiseSummarizationQualityInstance instruction. */ + public instruction?: (string|null); + + /** PairwiseSummarizationQualityInstance _prediction. */ + public _prediction?: "prediction"; + + /** PairwiseSummarizationQualityInstance _baselinePrediction. */ + public _baselinePrediction?: "baselinePrediction"; + + /** PairwiseSummarizationQualityInstance _reference. */ + public _reference?: "reference"; + + /** PairwiseSummarizationQualityInstance _context. */ + public _context?: "context"; + + /** PairwiseSummarizationQualityInstance _instruction. */ + public _instruction?: "instruction"; + + /** + * Creates a new PairwiseSummarizationQualityInstance instance using the specified properties. + * @param [properties] Properties to set + * @returns PairwiseSummarizationQualityInstance instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IPairwiseSummarizationQualityInstance): google.cloud.aiplatform.v1.PairwiseSummarizationQualityInstance; + + /** + * Encodes the specified PairwiseSummarizationQualityInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.PairwiseSummarizationQualityInstance.verify|verify} messages. + * @param message PairwiseSummarizationQualityInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IPairwiseSummarizationQualityInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PairwiseSummarizationQualityInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PairwiseSummarizationQualityInstance.verify|verify} messages. + * @param message PairwiseSummarizationQualityInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IPairwiseSummarizationQualityInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PairwiseSummarizationQualityInstance message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PairwiseSummarizationQualityInstance + * @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.PairwiseSummarizationQualityInstance; + + /** + * Decodes a PairwiseSummarizationQualityInstance message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PairwiseSummarizationQualityInstance + * @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.PairwiseSummarizationQualityInstance; + + /** + * Verifies a PairwiseSummarizationQualityInstance 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 PairwiseSummarizationQualityInstance message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PairwiseSummarizationQualityInstance + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PairwiseSummarizationQualityInstance; + + /** + * Creates a plain object from a PairwiseSummarizationQualityInstance message. Also converts values to other types if specified. + * @param message PairwiseSummarizationQualityInstance + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.PairwiseSummarizationQualityInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PairwiseSummarizationQualityInstance to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PairwiseSummarizationQualityInstance + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a PairwiseSummarizationQualitySpec. */ + interface IPairwiseSummarizationQualitySpec { + + /** PairwiseSummarizationQualitySpec useReference */ + useReference?: (boolean|null); + + /** PairwiseSummarizationQualitySpec version */ + version?: (number|null); + } + + /** Represents a PairwiseSummarizationQualitySpec. */ + class PairwiseSummarizationQualitySpec implements IPairwiseSummarizationQualitySpec { + + /** + * Constructs a new PairwiseSummarizationQualitySpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IPairwiseSummarizationQualitySpec); + + /** PairwiseSummarizationQualitySpec useReference. */ + public useReference: boolean; + + /** PairwiseSummarizationQualitySpec version. */ + public version: number; + + /** + * Creates a new PairwiseSummarizationQualitySpec instance using the specified properties. + * @param [properties] Properties to set + * @returns PairwiseSummarizationQualitySpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IPairwiseSummarizationQualitySpec): google.cloud.aiplatform.v1.PairwiseSummarizationQualitySpec; + + /** + * Encodes the specified PairwiseSummarizationQualitySpec message. Does not implicitly {@link google.cloud.aiplatform.v1.PairwiseSummarizationQualitySpec.verify|verify} messages. + * @param message PairwiseSummarizationQualitySpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IPairwiseSummarizationQualitySpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PairwiseSummarizationQualitySpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PairwiseSummarizationQualitySpec.verify|verify} messages. + * @param message PairwiseSummarizationQualitySpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IPairwiseSummarizationQualitySpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PairwiseSummarizationQualitySpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PairwiseSummarizationQualitySpec + * @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.PairwiseSummarizationQualitySpec; + + /** + * Decodes a PairwiseSummarizationQualitySpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PairwiseSummarizationQualitySpec + * @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.PairwiseSummarizationQualitySpec; + + /** + * Verifies a PairwiseSummarizationQualitySpec 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 PairwiseSummarizationQualitySpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PairwiseSummarizationQualitySpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PairwiseSummarizationQualitySpec; + + /** + * Creates a plain object from a PairwiseSummarizationQualitySpec message. Also converts values to other types if specified. + * @param message PairwiseSummarizationQualitySpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.PairwiseSummarizationQualitySpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PairwiseSummarizationQualitySpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PairwiseSummarizationQualitySpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a PairwiseSummarizationQualityResult. */ + interface IPairwiseSummarizationQualityResult { + + /** PairwiseSummarizationQualityResult pairwiseChoice */ + pairwiseChoice?: (google.cloud.aiplatform.v1.PairwiseChoice|keyof typeof google.cloud.aiplatform.v1.PairwiseChoice|null); + + /** PairwiseSummarizationQualityResult explanation */ + explanation?: (string|null); + + /** PairwiseSummarizationQualityResult confidence */ + confidence?: (number|null); + } + + /** Represents a PairwiseSummarizationQualityResult. */ + class PairwiseSummarizationQualityResult implements IPairwiseSummarizationQualityResult { + + /** + * Constructs a new PairwiseSummarizationQualityResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IPairwiseSummarizationQualityResult); + + /** PairwiseSummarizationQualityResult pairwiseChoice. */ + public pairwiseChoice: (google.cloud.aiplatform.v1.PairwiseChoice|keyof typeof google.cloud.aiplatform.v1.PairwiseChoice); + + /** PairwiseSummarizationQualityResult explanation. */ + public explanation: string; + + /** PairwiseSummarizationQualityResult confidence. */ + public confidence?: (number|null); + + /** PairwiseSummarizationQualityResult _confidence. */ + public _confidence?: "confidence"; + + /** + * Creates a new PairwiseSummarizationQualityResult instance using the specified properties. + * @param [properties] Properties to set + * @returns PairwiseSummarizationQualityResult instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IPairwiseSummarizationQualityResult): google.cloud.aiplatform.v1.PairwiseSummarizationQualityResult; + + /** + * Encodes the specified PairwiseSummarizationQualityResult message. Does not implicitly {@link google.cloud.aiplatform.v1.PairwiseSummarizationQualityResult.verify|verify} messages. + * @param message PairwiseSummarizationQualityResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IPairwiseSummarizationQualityResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PairwiseSummarizationQualityResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PairwiseSummarizationQualityResult.verify|verify} messages. + * @param message PairwiseSummarizationQualityResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IPairwiseSummarizationQualityResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PairwiseSummarizationQualityResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PairwiseSummarizationQualityResult + * @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.PairwiseSummarizationQualityResult; + + /** + * Decodes a PairwiseSummarizationQualityResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PairwiseSummarizationQualityResult + * @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.PairwiseSummarizationQualityResult; + + /** + * Verifies a PairwiseSummarizationQualityResult 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 PairwiseSummarizationQualityResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PairwiseSummarizationQualityResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PairwiseSummarizationQualityResult; + + /** + * Creates a plain object from a PairwiseSummarizationQualityResult message. Also converts values to other types if specified. + * @param message PairwiseSummarizationQualityResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.PairwiseSummarizationQualityResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PairwiseSummarizationQualityResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PairwiseSummarizationQualityResult + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SummarizationHelpfulnessInput. */ + interface ISummarizationHelpfulnessInput { + + /** SummarizationHelpfulnessInput metricSpec */ + metricSpec?: (google.cloud.aiplatform.v1.ISummarizationHelpfulnessSpec|null); + + /** SummarizationHelpfulnessInput instance */ + instance?: (google.cloud.aiplatform.v1.ISummarizationHelpfulnessInstance|null); + } + + /** Represents a SummarizationHelpfulnessInput. */ + class SummarizationHelpfulnessInput implements ISummarizationHelpfulnessInput { + + /** + * Constructs a new SummarizationHelpfulnessInput. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ISummarizationHelpfulnessInput); + + /** SummarizationHelpfulnessInput metricSpec. */ + public metricSpec?: (google.cloud.aiplatform.v1.ISummarizationHelpfulnessSpec|null); + + /** SummarizationHelpfulnessInput instance. */ + public instance?: (google.cloud.aiplatform.v1.ISummarizationHelpfulnessInstance|null); + + /** + * Creates a new SummarizationHelpfulnessInput instance using the specified properties. + * @param [properties] Properties to set + * @returns SummarizationHelpfulnessInput instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ISummarizationHelpfulnessInput): google.cloud.aiplatform.v1.SummarizationHelpfulnessInput; + + /** + * Encodes the specified SummarizationHelpfulnessInput message. Does not implicitly {@link google.cloud.aiplatform.v1.SummarizationHelpfulnessInput.verify|verify} messages. + * @param message SummarizationHelpfulnessInput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ISummarizationHelpfulnessInput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SummarizationHelpfulnessInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SummarizationHelpfulnessInput.verify|verify} messages. + * @param message SummarizationHelpfulnessInput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ISummarizationHelpfulnessInput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SummarizationHelpfulnessInput message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SummarizationHelpfulnessInput + * @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.SummarizationHelpfulnessInput; + + /** + * Decodes a SummarizationHelpfulnessInput message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SummarizationHelpfulnessInput + * @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.SummarizationHelpfulnessInput; + + /** + * Verifies a SummarizationHelpfulnessInput 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 SummarizationHelpfulnessInput message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SummarizationHelpfulnessInput + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SummarizationHelpfulnessInput; + + /** + * Creates a plain object from a SummarizationHelpfulnessInput message. Also converts values to other types if specified. + * @param message SummarizationHelpfulnessInput + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.SummarizationHelpfulnessInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SummarizationHelpfulnessInput to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SummarizationHelpfulnessInput + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SummarizationHelpfulnessInstance. */ + interface ISummarizationHelpfulnessInstance { + + /** SummarizationHelpfulnessInstance prediction */ + prediction?: (string|null); + + /** SummarizationHelpfulnessInstance reference */ + reference?: (string|null); + + /** SummarizationHelpfulnessInstance context */ + context?: (string|null); + + /** SummarizationHelpfulnessInstance instruction */ + instruction?: (string|null); + } + + /** Represents a SummarizationHelpfulnessInstance. */ + class SummarizationHelpfulnessInstance implements ISummarizationHelpfulnessInstance { + + /** + * Constructs a new SummarizationHelpfulnessInstance. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ISummarizationHelpfulnessInstance); + + /** SummarizationHelpfulnessInstance prediction. */ + public prediction?: (string|null); + + /** SummarizationHelpfulnessInstance reference. */ + public reference?: (string|null); + + /** SummarizationHelpfulnessInstance context. */ + public context?: (string|null); + + /** SummarizationHelpfulnessInstance instruction. */ + public instruction?: (string|null); + + /** SummarizationHelpfulnessInstance _prediction. */ + public _prediction?: "prediction"; + + /** SummarizationHelpfulnessInstance _reference. */ + public _reference?: "reference"; + + /** SummarizationHelpfulnessInstance _context. */ + public _context?: "context"; + + /** SummarizationHelpfulnessInstance _instruction. */ + public _instruction?: "instruction"; + + /** + * Creates a new SummarizationHelpfulnessInstance instance using the specified properties. + * @param [properties] Properties to set + * @returns SummarizationHelpfulnessInstance instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ISummarizationHelpfulnessInstance): google.cloud.aiplatform.v1.SummarizationHelpfulnessInstance; + + /** + * Encodes the specified SummarizationHelpfulnessInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.SummarizationHelpfulnessInstance.verify|verify} messages. + * @param message SummarizationHelpfulnessInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ISummarizationHelpfulnessInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SummarizationHelpfulnessInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SummarizationHelpfulnessInstance.verify|verify} messages. + * @param message SummarizationHelpfulnessInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ISummarizationHelpfulnessInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SummarizationHelpfulnessInstance message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SummarizationHelpfulnessInstance + * @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.SummarizationHelpfulnessInstance; + + /** + * Decodes a SummarizationHelpfulnessInstance message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SummarizationHelpfulnessInstance + * @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.SummarizationHelpfulnessInstance; + + /** + * Verifies a SummarizationHelpfulnessInstance 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 SummarizationHelpfulnessInstance message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SummarizationHelpfulnessInstance + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SummarizationHelpfulnessInstance; + + /** + * Creates a plain object from a SummarizationHelpfulnessInstance message. Also converts values to other types if specified. + * @param message SummarizationHelpfulnessInstance + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.SummarizationHelpfulnessInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SummarizationHelpfulnessInstance to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SummarizationHelpfulnessInstance + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SummarizationHelpfulnessSpec. */ + interface ISummarizationHelpfulnessSpec { + + /** SummarizationHelpfulnessSpec useReference */ + useReference?: (boolean|null); + + /** SummarizationHelpfulnessSpec version */ + version?: (number|null); + } + + /** Represents a SummarizationHelpfulnessSpec. */ + class SummarizationHelpfulnessSpec implements ISummarizationHelpfulnessSpec { + + /** + * Constructs a new SummarizationHelpfulnessSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ISummarizationHelpfulnessSpec); + + /** SummarizationHelpfulnessSpec useReference. */ + public useReference: boolean; + + /** SummarizationHelpfulnessSpec version. */ + public version: number; + + /** + * Creates a new SummarizationHelpfulnessSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns SummarizationHelpfulnessSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ISummarizationHelpfulnessSpec): google.cloud.aiplatform.v1.SummarizationHelpfulnessSpec; + + /** + * Encodes the specified SummarizationHelpfulnessSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.SummarizationHelpfulnessSpec.verify|verify} messages. + * @param message SummarizationHelpfulnessSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ISummarizationHelpfulnessSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SummarizationHelpfulnessSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SummarizationHelpfulnessSpec.verify|verify} messages. + * @param message SummarizationHelpfulnessSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ISummarizationHelpfulnessSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SummarizationHelpfulnessSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SummarizationHelpfulnessSpec + * @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.SummarizationHelpfulnessSpec; + + /** + * Decodes a SummarizationHelpfulnessSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SummarizationHelpfulnessSpec + * @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.SummarizationHelpfulnessSpec; + + /** + * Verifies a SummarizationHelpfulnessSpec 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 SummarizationHelpfulnessSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SummarizationHelpfulnessSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SummarizationHelpfulnessSpec; + + /** + * Creates a plain object from a SummarizationHelpfulnessSpec message. Also converts values to other types if specified. + * @param message SummarizationHelpfulnessSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.SummarizationHelpfulnessSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SummarizationHelpfulnessSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SummarizationHelpfulnessSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SummarizationHelpfulnessResult. */ + interface ISummarizationHelpfulnessResult { + + /** SummarizationHelpfulnessResult score */ + score?: (number|null); + + /** SummarizationHelpfulnessResult explanation */ + explanation?: (string|null); + + /** SummarizationHelpfulnessResult confidence */ + confidence?: (number|null); + } + + /** Represents a SummarizationHelpfulnessResult. */ + class SummarizationHelpfulnessResult implements ISummarizationHelpfulnessResult { + + /** + * Constructs a new SummarizationHelpfulnessResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ISummarizationHelpfulnessResult); + + /** SummarizationHelpfulnessResult score. */ + public score?: (number|null); + + /** SummarizationHelpfulnessResult explanation. */ + public explanation: string; + + /** SummarizationHelpfulnessResult confidence. */ + public confidence?: (number|null); + + /** SummarizationHelpfulnessResult _score. */ + public _score?: "score"; + + /** SummarizationHelpfulnessResult _confidence. */ + public _confidence?: "confidence"; + + /** + * Creates a new SummarizationHelpfulnessResult instance using the specified properties. + * @param [properties] Properties to set + * @returns SummarizationHelpfulnessResult instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ISummarizationHelpfulnessResult): google.cloud.aiplatform.v1.SummarizationHelpfulnessResult; + + /** + * Encodes the specified SummarizationHelpfulnessResult message. Does not implicitly {@link google.cloud.aiplatform.v1.SummarizationHelpfulnessResult.verify|verify} messages. + * @param message SummarizationHelpfulnessResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ISummarizationHelpfulnessResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SummarizationHelpfulnessResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SummarizationHelpfulnessResult.verify|verify} messages. + * @param message SummarizationHelpfulnessResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ISummarizationHelpfulnessResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SummarizationHelpfulnessResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SummarizationHelpfulnessResult + * @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.SummarizationHelpfulnessResult; + + /** + * Decodes a SummarizationHelpfulnessResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SummarizationHelpfulnessResult + * @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.SummarizationHelpfulnessResult; + + /** + * Verifies a SummarizationHelpfulnessResult 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 SummarizationHelpfulnessResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SummarizationHelpfulnessResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SummarizationHelpfulnessResult; + + /** + * Creates a plain object from a SummarizationHelpfulnessResult message. Also converts values to other types if specified. + * @param message SummarizationHelpfulnessResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.SummarizationHelpfulnessResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SummarizationHelpfulnessResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SummarizationHelpfulnessResult + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SummarizationVerbosityInput. */ + interface ISummarizationVerbosityInput { + + /** SummarizationVerbosityInput metricSpec */ + metricSpec?: (google.cloud.aiplatform.v1.ISummarizationVerbositySpec|null); + + /** SummarizationVerbosityInput instance */ + instance?: (google.cloud.aiplatform.v1.ISummarizationVerbosityInstance|null); + } + + /** Represents a SummarizationVerbosityInput. */ + class SummarizationVerbosityInput implements ISummarizationVerbosityInput { + + /** + * Constructs a new SummarizationVerbosityInput. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ISummarizationVerbosityInput); + + /** SummarizationVerbosityInput metricSpec. */ + public metricSpec?: (google.cloud.aiplatform.v1.ISummarizationVerbositySpec|null); + + /** SummarizationVerbosityInput instance. */ + public instance?: (google.cloud.aiplatform.v1.ISummarizationVerbosityInstance|null); + + /** + * Creates a new SummarizationVerbosityInput instance using the specified properties. + * @param [properties] Properties to set + * @returns SummarizationVerbosityInput instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ISummarizationVerbosityInput): google.cloud.aiplatform.v1.SummarizationVerbosityInput; + + /** + * Encodes the specified SummarizationVerbosityInput message. Does not implicitly {@link google.cloud.aiplatform.v1.SummarizationVerbosityInput.verify|verify} messages. + * @param message SummarizationVerbosityInput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ISummarizationVerbosityInput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SummarizationVerbosityInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SummarizationVerbosityInput.verify|verify} messages. + * @param message SummarizationVerbosityInput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ISummarizationVerbosityInput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SummarizationVerbosityInput message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SummarizationVerbosityInput + * @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.SummarizationVerbosityInput; + + /** + * Decodes a SummarizationVerbosityInput message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SummarizationVerbosityInput + * @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.SummarizationVerbosityInput; + + /** + * Verifies a SummarizationVerbosityInput 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 SummarizationVerbosityInput message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SummarizationVerbosityInput + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SummarizationVerbosityInput; + + /** + * Creates a plain object from a SummarizationVerbosityInput message. Also converts values to other types if specified. + * @param message SummarizationVerbosityInput + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.SummarizationVerbosityInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SummarizationVerbosityInput to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SummarizationVerbosityInput + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SummarizationVerbosityInstance. */ + interface ISummarizationVerbosityInstance { + + /** SummarizationVerbosityInstance prediction */ + prediction?: (string|null); + + /** SummarizationVerbosityInstance reference */ + reference?: (string|null); + + /** SummarizationVerbosityInstance context */ + context?: (string|null); + + /** SummarizationVerbosityInstance instruction */ + instruction?: (string|null); + } + + /** Represents a SummarizationVerbosityInstance. */ + class SummarizationVerbosityInstance implements ISummarizationVerbosityInstance { + + /** + * Constructs a new SummarizationVerbosityInstance. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ISummarizationVerbosityInstance); + + /** SummarizationVerbosityInstance prediction. */ + public prediction?: (string|null); + + /** SummarizationVerbosityInstance reference. */ + public reference?: (string|null); + + /** SummarizationVerbosityInstance context. */ + public context?: (string|null); + + /** SummarizationVerbosityInstance instruction. */ + public instruction?: (string|null); + + /** SummarizationVerbosityInstance _prediction. */ + public _prediction?: "prediction"; + + /** SummarizationVerbosityInstance _reference. */ + public _reference?: "reference"; + + /** SummarizationVerbosityInstance _context. */ + public _context?: "context"; + + /** SummarizationVerbosityInstance _instruction. */ + public _instruction?: "instruction"; + + /** + * Creates a new SummarizationVerbosityInstance instance using the specified properties. + * @param [properties] Properties to set + * @returns SummarizationVerbosityInstance instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ISummarizationVerbosityInstance): google.cloud.aiplatform.v1.SummarizationVerbosityInstance; + + /** + * Encodes the specified SummarizationVerbosityInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.SummarizationVerbosityInstance.verify|verify} messages. + * @param message SummarizationVerbosityInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ISummarizationVerbosityInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SummarizationVerbosityInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SummarizationVerbosityInstance.verify|verify} messages. + * @param message SummarizationVerbosityInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ISummarizationVerbosityInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SummarizationVerbosityInstance message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SummarizationVerbosityInstance + * @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.SummarizationVerbosityInstance; + + /** + * Decodes a SummarizationVerbosityInstance message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SummarizationVerbosityInstance + * @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.SummarizationVerbosityInstance; + + /** + * Verifies a SummarizationVerbosityInstance 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 SummarizationVerbosityInstance message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SummarizationVerbosityInstance + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SummarizationVerbosityInstance; + + /** + * Creates a plain object from a SummarizationVerbosityInstance message. Also converts values to other types if specified. + * @param message SummarizationVerbosityInstance + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.SummarizationVerbosityInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SummarizationVerbosityInstance to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SummarizationVerbosityInstance + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SummarizationVerbositySpec. */ + interface ISummarizationVerbositySpec { + + /** SummarizationVerbositySpec useReference */ + useReference?: (boolean|null); + + /** SummarizationVerbositySpec version */ + version?: (number|null); + } + + /** Represents a SummarizationVerbositySpec. */ + class SummarizationVerbositySpec implements ISummarizationVerbositySpec { + + /** + * Constructs a new SummarizationVerbositySpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ISummarizationVerbositySpec); + + /** SummarizationVerbositySpec useReference. */ + public useReference: boolean; + + /** SummarizationVerbositySpec version. */ + public version: number; + + /** + * Creates a new SummarizationVerbositySpec instance using the specified properties. + * @param [properties] Properties to set + * @returns SummarizationVerbositySpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ISummarizationVerbositySpec): google.cloud.aiplatform.v1.SummarizationVerbositySpec; + + /** + * Encodes the specified SummarizationVerbositySpec message. Does not implicitly {@link google.cloud.aiplatform.v1.SummarizationVerbositySpec.verify|verify} messages. + * @param message SummarizationVerbositySpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ISummarizationVerbositySpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SummarizationVerbositySpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SummarizationVerbositySpec.verify|verify} messages. + * @param message SummarizationVerbositySpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ISummarizationVerbositySpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SummarizationVerbositySpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SummarizationVerbositySpec + * @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.SummarizationVerbositySpec; + + /** + * Decodes a SummarizationVerbositySpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SummarizationVerbositySpec + * @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.SummarizationVerbositySpec; + + /** + * Verifies a SummarizationVerbositySpec 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 SummarizationVerbositySpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SummarizationVerbositySpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SummarizationVerbositySpec; + + /** + * Creates a plain object from a SummarizationVerbositySpec message. Also converts values to other types if specified. + * @param message SummarizationVerbositySpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.SummarizationVerbositySpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SummarizationVerbositySpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SummarizationVerbositySpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SummarizationVerbosityResult. */ + interface ISummarizationVerbosityResult { + + /** SummarizationVerbosityResult score */ + score?: (number|null); + + /** SummarizationVerbosityResult explanation */ + explanation?: (string|null); + + /** SummarizationVerbosityResult confidence */ + confidence?: (number|null); + } + + /** Represents a SummarizationVerbosityResult. */ + class SummarizationVerbosityResult implements ISummarizationVerbosityResult { + + /** + * Constructs a new SummarizationVerbosityResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ISummarizationVerbosityResult); + + /** SummarizationVerbosityResult score. */ + public score?: (number|null); + + /** SummarizationVerbosityResult explanation. */ + public explanation: string; + + /** SummarizationVerbosityResult confidence. */ + public confidence?: (number|null); + + /** SummarizationVerbosityResult _score. */ + public _score?: "score"; + + /** SummarizationVerbosityResult _confidence. */ + public _confidence?: "confidence"; + + /** + * Creates a new SummarizationVerbosityResult instance using the specified properties. + * @param [properties] Properties to set + * @returns SummarizationVerbosityResult instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ISummarizationVerbosityResult): google.cloud.aiplatform.v1.SummarizationVerbosityResult; + + /** + * Encodes the specified SummarizationVerbosityResult message. Does not implicitly {@link google.cloud.aiplatform.v1.SummarizationVerbosityResult.verify|verify} messages. + * @param message SummarizationVerbosityResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ISummarizationVerbosityResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SummarizationVerbosityResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SummarizationVerbosityResult.verify|verify} messages. + * @param message SummarizationVerbosityResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ISummarizationVerbosityResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SummarizationVerbosityResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SummarizationVerbosityResult + * @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.SummarizationVerbosityResult; + + /** + * Decodes a SummarizationVerbosityResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SummarizationVerbosityResult + * @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.SummarizationVerbosityResult; + + /** + * Verifies a SummarizationVerbosityResult 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 SummarizationVerbosityResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SummarizationVerbosityResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SummarizationVerbosityResult; + + /** + * Creates a plain object from a SummarizationVerbosityResult message. Also converts values to other types if specified. + * @param message SummarizationVerbosityResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.SummarizationVerbosityResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SummarizationVerbosityResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SummarizationVerbosityResult + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a QuestionAnsweringQualityInput. */ + interface IQuestionAnsweringQualityInput { + + /** QuestionAnsweringQualityInput metricSpec */ + metricSpec?: (google.cloud.aiplatform.v1.IQuestionAnsweringQualitySpec|null); + + /** QuestionAnsweringQualityInput instance */ + instance?: (google.cloud.aiplatform.v1.IQuestionAnsweringQualityInstance|null); + } + + /** Represents a QuestionAnsweringQualityInput. */ + class QuestionAnsweringQualityInput implements IQuestionAnsweringQualityInput { + + /** + * Constructs a new QuestionAnsweringQualityInput. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IQuestionAnsweringQualityInput); + + /** QuestionAnsweringQualityInput metricSpec. */ + public metricSpec?: (google.cloud.aiplatform.v1.IQuestionAnsweringQualitySpec|null); + + /** QuestionAnsweringQualityInput instance. */ + public instance?: (google.cloud.aiplatform.v1.IQuestionAnsweringQualityInstance|null); + + /** + * Creates a new QuestionAnsweringQualityInput instance using the specified properties. + * @param [properties] Properties to set + * @returns QuestionAnsweringQualityInput instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IQuestionAnsweringQualityInput): google.cloud.aiplatform.v1.QuestionAnsweringQualityInput; + + /** + * Encodes the specified QuestionAnsweringQualityInput message. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringQualityInput.verify|verify} messages. + * @param message QuestionAnsweringQualityInput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IQuestionAnsweringQualityInput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified QuestionAnsweringQualityInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringQualityInput.verify|verify} messages. + * @param message QuestionAnsweringQualityInput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IQuestionAnsweringQualityInput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a QuestionAnsweringQualityInput message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns QuestionAnsweringQualityInput + * @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.QuestionAnsweringQualityInput; + + /** + * Decodes a QuestionAnsweringQualityInput message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns QuestionAnsweringQualityInput + * @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.QuestionAnsweringQualityInput; + + /** + * Verifies a QuestionAnsweringQualityInput 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 QuestionAnsweringQualityInput message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns QuestionAnsweringQualityInput + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.QuestionAnsweringQualityInput; + + /** + * Creates a plain object from a QuestionAnsweringQualityInput message. Also converts values to other types if specified. + * @param message QuestionAnsweringQualityInput + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.QuestionAnsweringQualityInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this QuestionAnsweringQualityInput to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for QuestionAnsweringQualityInput + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a QuestionAnsweringQualityInstance. */ + interface IQuestionAnsweringQualityInstance { + + /** QuestionAnsweringQualityInstance prediction */ + prediction?: (string|null); + + /** QuestionAnsweringQualityInstance reference */ + reference?: (string|null); + + /** QuestionAnsweringQualityInstance context */ + context?: (string|null); + + /** QuestionAnsweringQualityInstance instruction */ + instruction?: (string|null); + } + + /** Represents a QuestionAnsweringQualityInstance. */ + class QuestionAnsweringQualityInstance implements IQuestionAnsweringQualityInstance { + + /** + * Constructs a new QuestionAnsweringQualityInstance. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IQuestionAnsweringQualityInstance); + + /** QuestionAnsweringQualityInstance prediction. */ + public prediction?: (string|null); + + /** QuestionAnsweringQualityInstance reference. */ + public reference?: (string|null); + + /** QuestionAnsweringQualityInstance context. */ + public context?: (string|null); + + /** QuestionAnsweringQualityInstance instruction. */ + public instruction?: (string|null); + + /** QuestionAnsweringQualityInstance _prediction. */ + public _prediction?: "prediction"; + + /** QuestionAnsweringQualityInstance _reference. */ + public _reference?: "reference"; + + /** QuestionAnsweringQualityInstance _context. */ + public _context?: "context"; + + /** QuestionAnsweringQualityInstance _instruction. */ + public _instruction?: "instruction"; + + /** + * Creates a new QuestionAnsweringQualityInstance instance using the specified properties. + * @param [properties] Properties to set + * @returns QuestionAnsweringQualityInstance instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IQuestionAnsweringQualityInstance): google.cloud.aiplatform.v1.QuestionAnsweringQualityInstance; + + /** + * Encodes the specified QuestionAnsweringQualityInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringQualityInstance.verify|verify} messages. + * @param message QuestionAnsweringQualityInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IQuestionAnsweringQualityInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified QuestionAnsweringQualityInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringQualityInstance.verify|verify} messages. + * @param message QuestionAnsweringQualityInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IQuestionAnsweringQualityInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a QuestionAnsweringQualityInstance message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns QuestionAnsweringQualityInstance + * @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.QuestionAnsweringQualityInstance; + + /** + * Decodes a QuestionAnsweringQualityInstance message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns QuestionAnsweringQualityInstance + * @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.QuestionAnsweringQualityInstance; + + /** + * Verifies a QuestionAnsweringQualityInstance 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 QuestionAnsweringQualityInstance message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns QuestionAnsweringQualityInstance + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.QuestionAnsweringQualityInstance; + + /** + * Creates a plain object from a QuestionAnsweringQualityInstance message. Also converts values to other types if specified. + * @param message QuestionAnsweringQualityInstance + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.QuestionAnsweringQualityInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this QuestionAnsweringQualityInstance to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for QuestionAnsweringQualityInstance + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a QuestionAnsweringQualitySpec. */ + interface IQuestionAnsweringQualitySpec { + + /** QuestionAnsweringQualitySpec useReference */ + useReference?: (boolean|null); + + /** QuestionAnsweringQualitySpec version */ + version?: (number|null); + } + + /** Represents a QuestionAnsweringQualitySpec. */ + class QuestionAnsweringQualitySpec implements IQuestionAnsweringQualitySpec { + + /** + * Constructs a new QuestionAnsweringQualitySpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IQuestionAnsweringQualitySpec); + + /** QuestionAnsweringQualitySpec useReference. */ + public useReference: boolean; + + /** QuestionAnsweringQualitySpec version. */ + public version: number; + + /** + * Creates a new QuestionAnsweringQualitySpec instance using the specified properties. + * @param [properties] Properties to set + * @returns QuestionAnsweringQualitySpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IQuestionAnsweringQualitySpec): google.cloud.aiplatform.v1.QuestionAnsweringQualitySpec; + + /** + * Encodes the specified QuestionAnsweringQualitySpec message. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringQualitySpec.verify|verify} messages. + * @param message QuestionAnsweringQualitySpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IQuestionAnsweringQualitySpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified QuestionAnsweringQualitySpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringQualitySpec.verify|verify} messages. + * @param message QuestionAnsweringQualitySpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IQuestionAnsweringQualitySpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a QuestionAnsweringQualitySpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns QuestionAnsweringQualitySpec + * @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.QuestionAnsweringQualitySpec; + + /** + * Decodes a QuestionAnsweringQualitySpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns QuestionAnsweringQualitySpec + * @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.QuestionAnsweringQualitySpec; + + /** + * Verifies a QuestionAnsweringQualitySpec 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 QuestionAnsweringQualitySpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns QuestionAnsweringQualitySpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.QuestionAnsweringQualitySpec; + + /** + * Creates a plain object from a QuestionAnsweringQualitySpec message. Also converts values to other types if specified. + * @param message QuestionAnsweringQualitySpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.QuestionAnsweringQualitySpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this QuestionAnsweringQualitySpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for QuestionAnsweringQualitySpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a QuestionAnsweringQualityResult. */ + interface IQuestionAnsweringQualityResult { + + /** QuestionAnsweringQualityResult score */ + score?: (number|null); + + /** QuestionAnsweringQualityResult explanation */ + explanation?: (string|null); + + /** QuestionAnsweringQualityResult confidence */ + confidence?: (number|null); + } + + /** Represents a QuestionAnsweringQualityResult. */ + class QuestionAnsweringQualityResult implements IQuestionAnsweringQualityResult { + + /** + * Constructs a new QuestionAnsweringQualityResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IQuestionAnsweringQualityResult); + + /** QuestionAnsweringQualityResult score. */ + public score?: (number|null); + + /** QuestionAnsweringQualityResult explanation. */ + public explanation: string; + + /** QuestionAnsweringQualityResult confidence. */ + public confidence?: (number|null); + + /** QuestionAnsweringQualityResult _score. */ + public _score?: "score"; + + /** QuestionAnsweringQualityResult _confidence. */ + public _confidence?: "confidence"; + + /** + * Creates a new QuestionAnsweringQualityResult instance using the specified properties. + * @param [properties] Properties to set + * @returns QuestionAnsweringQualityResult instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IQuestionAnsweringQualityResult): google.cloud.aiplatform.v1.QuestionAnsweringQualityResult; + + /** + * Encodes the specified QuestionAnsweringQualityResult message. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringQualityResult.verify|verify} messages. + * @param message QuestionAnsweringQualityResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IQuestionAnsweringQualityResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified QuestionAnsweringQualityResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringQualityResult.verify|verify} messages. + * @param message QuestionAnsweringQualityResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IQuestionAnsweringQualityResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a QuestionAnsweringQualityResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns QuestionAnsweringQualityResult + * @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.QuestionAnsweringQualityResult; + + /** + * Decodes a QuestionAnsweringQualityResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns QuestionAnsweringQualityResult + * @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.QuestionAnsweringQualityResult; + + /** + * Verifies a QuestionAnsweringQualityResult 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 QuestionAnsweringQualityResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns QuestionAnsweringQualityResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.QuestionAnsweringQualityResult; + + /** + * Creates a plain object from a QuestionAnsweringQualityResult message. Also converts values to other types if specified. + * @param message QuestionAnsweringQualityResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.QuestionAnsweringQualityResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this QuestionAnsweringQualityResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for QuestionAnsweringQualityResult + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a PairwiseQuestionAnsweringQualityInput. */ + interface IPairwiseQuestionAnsweringQualityInput { + + /** PairwiseQuestionAnsweringQualityInput metricSpec */ + metricSpec?: (google.cloud.aiplatform.v1.IPairwiseQuestionAnsweringQualitySpec|null); + + /** PairwiseQuestionAnsweringQualityInput instance */ + instance?: (google.cloud.aiplatform.v1.IPairwiseQuestionAnsweringQualityInstance|null); + } + + /** Represents a PairwiseQuestionAnsweringQualityInput. */ + class PairwiseQuestionAnsweringQualityInput implements IPairwiseQuestionAnsweringQualityInput { + + /** + * Constructs a new PairwiseQuestionAnsweringQualityInput. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IPairwiseQuestionAnsweringQualityInput); + + /** PairwiseQuestionAnsweringQualityInput metricSpec. */ + public metricSpec?: (google.cloud.aiplatform.v1.IPairwiseQuestionAnsweringQualitySpec|null); + + /** PairwiseQuestionAnsweringQualityInput instance. */ + public instance?: (google.cloud.aiplatform.v1.IPairwiseQuestionAnsweringQualityInstance|null); + + /** + * Creates a new PairwiseQuestionAnsweringQualityInput instance using the specified properties. + * @param [properties] Properties to set + * @returns PairwiseQuestionAnsweringQualityInput instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IPairwiseQuestionAnsweringQualityInput): google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInput; + + /** + * Encodes the specified PairwiseQuestionAnsweringQualityInput message. Does not implicitly {@link google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInput.verify|verify} messages. + * @param message PairwiseQuestionAnsweringQualityInput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IPairwiseQuestionAnsweringQualityInput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PairwiseQuestionAnsweringQualityInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInput.verify|verify} messages. + * @param message PairwiseQuestionAnsweringQualityInput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IPairwiseQuestionAnsweringQualityInput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PairwiseQuestionAnsweringQualityInput message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PairwiseQuestionAnsweringQualityInput + * @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.PairwiseQuestionAnsweringQualityInput; + + /** + * Decodes a PairwiseQuestionAnsweringQualityInput message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PairwiseQuestionAnsweringQualityInput + * @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.PairwiseQuestionAnsweringQualityInput; + + /** + * Verifies a PairwiseQuestionAnsweringQualityInput 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 PairwiseQuestionAnsweringQualityInput message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PairwiseQuestionAnsweringQualityInput + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInput; + + /** + * Creates a plain object from a PairwiseQuestionAnsweringQualityInput message. Also converts values to other types if specified. + * @param message PairwiseQuestionAnsweringQualityInput + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PairwiseQuestionAnsweringQualityInput to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PairwiseQuestionAnsweringQualityInput + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a PairwiseQuestionAnsweringQualityInstance. */ + interface IPairwiseQuestionAnsweringQualityInstance { + + /** PairwiseQuestionAnsweringQualityInstance prediction */ + prediction?: (string|null); + + /** PairwiseQuestionAnsweringQualityInstance baselinePrediction */ + baselinePrediction?: (string|null); + + /** PairwiseQuestionAnsweringQualityInstance reference */ + reference?: (string|null); + + /** PairwiseQuestionAnsweringQualityInstance context */ + context?: (string|null); + + /** PairwiseQuestionAnsweringQualityInstance instruction */ + instruction?: (string|null); + } + + /** Represents a PairwiseQuestionAnsweringQualityInstance. */ + class PairwiseQuestionAnsweringQualityInstance implements IPairwiseQuestionAnsweringQualityInstance { + + /** + * Constructs a new PairwiseQuestionAnsweringQualityInstance. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IPairwiseQuestionAnsweringQualityInstance); + + /** PairwiseQuestionAnsweringQualityInstance prediction. */ + public prediction?: (string|null); + + /** PairwiseQuestionAnsweringQualityInstance baselinePrediction. */ + public baselinePrediction?: (string|null); + + /** PairwiseQuestionAnsweringQualityInstance reference. */ + public reference?: (string|null); + + /** PairwiseQuestionAnsweringQualityInstance context. */ + public context?: (string|null); + + /** PairwiseQuestionAnsweringQualityInstance instruction. */ + public instruction?: (string|null); + + /** PairwiseQuestionAnsweringQualityInstance _prediction. */ + public _prediction?: "prediction"; + + /** PairwiseQuestionAnsweringQualityInstance _baselinePrediction. */ + public _baselinePrediction?: "baselinePrediction"; + + /** PairwiseQuestionAnsweringQualityInstance _reference. */ + public _reference?: "reference"; + + /** PairwiseQuestionAnsweringQualityInstance _context. */ + public _context?: "context"; + + /** PairwiseQuestionAnsweringQualityInstance _instruction. */ + public _instruction?: "instruction"; + + /** + * Creates a new PairwiseQuestionAnsweringQualityInstance instance using the specified properties. + * @param [properties] Properties to set + * @returns PairwiseQuestionAnsweringQualityInstance instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IPairwiseQuestionAnsweringQualityInstance): google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInstance; + + /** + * Encodes the specified PairwiseQuestionAnsweringQualityInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInstance.verify|verify} messages. + * @param message PairwiseQuestionAnsweringQualityInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IPairwiseQuestionAnsweringQualityInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PairwiseQuestionAnsweringQualityInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInstance.verify|verify} messages. + * @param message PairwiseQuestionAnsweringQualityInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IPairwiseQuestionAnsweringQualityInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PairwiseQuestionAnsweringQualityInstance message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PairwiseQuestionAnsweringQualityInstance + * @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.PairwiseQuestionAnsweringQualityInstance; + + /** + * Decodes a PairwiseQuestionAnsweringQualityInstance message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PairwiseQuestionAnsweringQualityInstance + * @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.PairwiseQuestionAnsweringQualityInstance; + + /** + * Verifies a PairwiseQuestionAnsweringQualityInstance 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 PairwiseQuestionAnsweringQualityInstance message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PairwiseQuestionAnsweringQualityInstance + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInstance; + + /** + * Creates a plain object from a PairwiseQuestionAnsweringQualityInstance message. Also converts values to other types if specified. + * @param message PairwiseQuestionAnsweringQualityInstance + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PairwiseQuestionAnsweringQualityInstance to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PairwiseQuestionAnsweringQualityInstance + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a PairwiseQuestionAnsweringQualitySpec. */ + interface IPairwiseQuestionAnsweringQualitySpec { + + /** PairwiseQuestionAnsweringQualitySpec useReference */ + useReference?: (boolean|null); + + /** PairwiseQuestionAnsweringQualitySpec version */ + version?: (number|null); + } + + /** Represents a PairwiseQuestionAnsweringQualitySpec. */ + class PairwiseQuestionAnsweringQualitySpec implements IPairwiseQuestionAnsweringQualitySpec { + + /** + * Constructs a new PairwiseQuestionAnsweringQualitySpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IPairwiseQuestionAnsweringQualitySpec); + + /** PairwiseQuestionAnsweringQualitySpec useReference. */ + public useReference: boolean; + + /** PairwiseQuestionAnsweringQualitySpec version. */ + public version: number; + + /** + * Creates a new PairwiseQuestionAnsweringQualitySpec instance using the specified properties. + * @param [properties] Properties to set + * @returns PairwiseQuestionAnsweringQualitySpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IPairwiseQuestionAnsweringQualitySpec): google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualitySpec; + + /** + * Encodes the specified PairwiseQuestionAnsweringQualitySpec message. Does not implicitly {@link google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualitySpec.verify|verify} messages. + * @param message PairwiseQuestionAnsweringQualitySpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IPairwiseQuestionAnsweringQualitySpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PairwiseQuestionAnsweringQualitySpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualitySpec.verify|verify} messages. + * @param message PairwiseQuestionAnsweringQualitySpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IPairwiseQuestionAnsweringQualitySpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PairwiseQuestionAnsweringQualitySpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PairwiseQuestionAnsweringQualitySpec + * @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.PairwiseQuestionAnsweringQualitySpec; + + /** + * Decodes a PairwiseQuestionAnsweringQualitySpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PairwiseQuestionAnsweringQualitySpec + * @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.PairwiseQuestionAnsweringQualitySpec; + + /** + * Verifies a PairwiseQuestionAnsweringQualitySpec 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 PairwiseQuestionAnsweringQualitySpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PairwiseQuestionAnsweringQualitySpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualitySpec; + + /** + * Creates a plain object from a PairwiseQuestionAnsweringQualitySpec message. Also converts values to other types if specified. + * @param message PairwiseQuestionAnsweringQualitySpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualitySpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PairwiseQuestionAnsweringQualitySpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PairwiseQuestionAnsweringQualitySpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a PairwiseQuestionAnsweringQualityResult. */ + interface IPairwiseQuestionAnsweringQualityResult { + + /** PairwiseQuestionAnsweringQualityResult pairwiseChoice */ + pairwiseChoice?: (google.cloud.aiplatform.v1.PairwiseChoice|keyof typeof google.cloud.aiplatform.v1.PairwiseChoice|null); + + /** PairwiseQuestionAnsweringQualityResult explanation */ + explanation?: (string|null); + + /** PairwiseQuestionAnsweringQualityResult confidence */ + confidence?: (number|null); + } + + /** Represents a PairwiseQuestionAnsweringQualityResult. */ + class PairwiseQuestionAnsweringQualityResult implements IPairwiseQuestionAnsweringQualityResult { + + /** + * Constructs a new PairwiseQuestionAnsweringQualityResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IPairwiseQuestionAnsweringQualityResult); + + /** PairwiseQuestionAnsweringQualityResult pairwiseChoice. */ + public pairwiseChoice: (google.cloud.aiplatform.v1.PairwiseChoice|keyof typeof google.cloud.aiplatform.v1.PairwiseChoice); + + /** PairwiseQuestionAnsweringQualityResult explanation. */ + public explanation: string; + + /** PairwiseQuestionAnsweringQualityResult confidence. */ + public confidence?: (number|null); + + /** PairwiseQuestionAnsweringQualityResult _confidence. */ + public _confidence?: "confidence"; + + /** + * Creates a new PairwiseQuestionAnsweringQualityResult instance using the specified properties. + * @param [properties] Properties to set + * @returns PairwiseQuestionAnsweringQualityResult instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IPairwiseQuestionAnsweringQualityResult): google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityResult; + + /** + * Encodes the specified PairwiseQuestionAnsweringQualityResult message. Does not implicitly {@link google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityResult.verify|verify} messages. + * @param message PairwiseQuestionAnsweringQualityResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IPairwiseQuestionAnsweringQualityResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PairwiseQuestionAnsweringQualityResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityResult.verify|verify} messages. + * @param message PairwiseQuestionAnsweringQualityResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IPairwiseQuestionAnsweringQualityResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PairwiseQuestionAnsweringQualityResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PairwiseQuestionAnsweringQualityResult + * @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.PairwiseQuestionAnsweringQualityResult; + + /** + * Decodes a PairwiseQuestionAnsweringQualityResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PairwiseQuestionAnsweringQualityResult + * @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.PairwiseQuestionAnsweringQualityResult; + + /** + * Verifies a PairwiseQuestionAnsweringQualityResult 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 PairwiseQuestionAnsweringQualityResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PairwiseQuestionAnsweringQualityResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityResult; + + /** + * Creates a plain object from a PairwiseQuestionAnsweringQualityResult message. Also converts values to other types if specified. + * @param message PairwiseQuestionAnsweringQualityResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PairwiseQuestionAnsweringQualityResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PairwiseQuestionAnsweringQualityResult + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a QuestionAnsweringRelevanceInput. */ + interface IQuestionAnsweringRelevanceInput { + + /** QuestionAnsweringRelevanceInput metricSpec */ + metricSpec?: (google.cloud.aiplatform.v1.IQuestionAnsweringRelevanceSpec|null); + + /** QuestionAnsweringRelevanceInput instance */ + instance?: (google.cloud.aiplatform.v1.IQuestionAnsweringRelevanceInstance|null); + } + + /** Represents a QuestionAnsweringRelevanceInput. */ + class QuestionAnsweringRelevanceInput implements IQuestionAnsweringRelevanceInput { + + /** + * Constructs a new QuestionAnsweringRelevanceInput. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IQuestionAnsweringRelevanceInput); + + /** QuestionAnsweringRelevanceInput metricSpec. */ + public metricSpec?: (google.cloud.aiplatform.v1.IQuestionAnsweringRelevanceSpec|null); + + /** QuestionAnsweringRelevanceInput instance. */ + public instance?: (google.cloud.aiplatform.v1.IQuestionAnsweringRelevanceInstance|null); + + /** + * Creates a new QuestionAnsweringRelevanceInput instance using the specified properties. + * @param [properties] Properties to set + * @returns QuestionAnsweringRelevanceInput instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IQuestionAnsweringRelevanceInput): google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInput; + + /** + * Encodes the specified QuestionAnsweringRelevanceInput message. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInput.verify|verify} messages. + * @param message QuestionAnsweringRelevanceInput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IQuestionAnsweringRelevanceInput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified QuestionAnsweringRelevanceInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInput.verify|verify} messages. + * @param message QuestionAnsweringRelevanceInput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IQuestionAnsweringRelevanceInput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a QuestionAnsweringRelevanceInput message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns QuestionAnsweringRelevanceInput + * @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.QuestionAnsweringRelevanceInput; + + /** + * Decodes a QuestionAnsweringRelevanceInput message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns QuestionAnsweringRelevanceInput + * @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.QuestionAnsweringRelevanceInput; + + /** + * Verifies a QuestionAnsweringRelevanceInput 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 QuestionAnsweringRelevanceInput message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns QuestionAnsweringRelevanceInput + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInput; + + /** + * Creates a plain object from a QuestionAnsweringRelevanceInput message. Also converts values to other types if specified. + * @param message QuestionAnsweringRelevanceInput + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this QuestionAnsweringRelevanceInput to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for QuestionAnsweringRelevanceInput + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a QuestionAnsweringRelevanceInstance. */ + interface IQuestionAnsweringRelevanceInstance { + + /** QuestionAnsweringRelevanceInstance prediction */ + prediction?: (string|null); + + /** QuestionAnsweringRelevanceInstance reference */ + reference?: (string|null); + + /** QuestionAnsweringRelevanceInstance context */ + context?: (string|null); + + /** QuestionAnsweringRelevanceInstance instruction */ + instruction?: (string|null); + } + + /** Represents a QuestionAnsweringRelevanceInstance. */ + class QuestionAnsweringRelevanceInstance implements IQuestionAnsweringRelevanceInstance { + + /** + * Constructs a new QuestionAnsweringRelevanceInstance. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IQuestionAnsweringRelevanceInstance); + + /** QuestionAnsweringRelevanceInstance prediction. */ + public prediction?: (string|null); + + /** QuestionAnsweringRelevanceInstance reference. */ + public reference?: (string|null); + + /** QuestionAnsweringRelevanceInstance context. */ + public context?: (string|null); + + /** QuestionAnsweringRelevanceInstance instruction. */ + public instruction?: (string|null); + + /** QuestionAnsweringRelevanceInstance _prediction. */ + public _prediction?: "prediction"; + + /** QuestionAnsweringRelevanceInstance _reference. */ + public _reference?: "reference"; + + /** QuestionAnsweringRelevanceInstance _context. */ + public _context?: "context"; + + /** QuestionAnsweringRelevanceInstance _instruction. */ + public _instruction?: "instruction"; + + /** + * Creates a new QuestionAnsweringRelevanceInstance instance using the specified properties. + * @param [properties] Properties to set + * @returns QuestionAnsweringRelevanceInstance instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IQuestionAnsweringRelevanceInstance): google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInstance; + + /** + * Encodes the specified QuestionAnsweringRelevanceInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInstance.verify|verify} messages. + * @param message QuestionAnsweringRelevanceInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IQuestionAnsweringRelevanceInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified QuestionAnsweringRelevanceInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInstance.verify|verify} messages. + * @param message QuestionAnsweringRelevanceInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IQuestionAnsweringRelevanceInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a QuestionAnsweringRelevanceInstance message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns QuestionAnsweringRelevanceInstance + * @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.QuestionAnsweringRelevanceInstance; + + /** + * Decodes a QuestionAnsweringRelevanceInstance message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns QuestionAnsweringRelevanceInstance + * @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.QuestionAnsweringRelevanceInstance; + + /** + * Verifies a QuestionAnsweringRelevanceInstance 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 QuestionAnsweringRelevanceInstance message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns QuestionAnsweringRelevanceInstance + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInstance; + + /** + * Creates a plain object from a QuestionAnsweringRelevanceInstance message. Also converts values to other types if specified. + * @param message QuestionAnsweringRelevanceInstance + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this QuestionAnsweringRelevanceInstance to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for QuestionAnsweringRelevanceInstance + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a QuestionAnsweringRelevanceSpec. */ + interface IQuestionAnsweringRelevanceSpec { + + /** QuestionAnsweringRelevanceSpec useReference */ + useReference?: (boolean|null); + + /** QuestionAnsweringRelevanceSpec version */ + version?: (number|null); + } + + /** Represents a QuestionAnsweringRelevanceSpec. */ + class QuestionAnsweringRelevanceSpec implements IQuestionAnsweringRelevanceSpec { + + /** + * Constructs a new QuestionAnsweringRelevanceSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IQuestionAnsweringRelevanceSpec); + + /** QuestionAnsweringRelevanceSpec useReference. */ + public useReference: boolean; + + /** QuestionAnsweringRelevanceSpec version. */ + public version: number; + + /** + * Creates a new QuestionAnsweringRelevanceSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns QuestionAnsweringRelevanceSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IQuestionAnsweringRelevanceSpec): google.cloud.aiplatform.v1.QuestionAnsweringRelevanceSpec; + + /** + * Encodes the specified QuestionAnsweringRelevanceSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringRelevanceSpec.verify|verify} messages. + * @param message QuestionAnsweringRelevanceSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IQuestionAnsweringRelevanceSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified QuestionAnsweringRelevanceSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringRelevanceSpec.verify|verify} messages. + * @param message QuestionAnsweringRelevanceSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IQuestionAnsweringRelevanceSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a QuestionAnsweringRelevanceSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns QuestionAnsweringRelevanceSpec + * @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.QuestionAnsweringRelevanceSpec; + + /** + * Decodes a QuestionAnsweringRelevanceSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns QuestionAnsweringRelevanceSpec + * @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.QuestionAnsweringRelevanceSpec; + + /** + * Verifies a QuestionAnsweringRelevanceSpec 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 QuestionAnsweringRelevanceSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns QuestionAnsweringRelevanceSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.QuestionAnsweringRelevanceSpec; + + /** + * Creates a plain object from a QuestionAnsweringRelevanceSpec message. Also converts values to other types if specified. + * @param message QuestionAnsweringRelevanceSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.QuestionAnsweringRelevanceSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this QuestionAnsweringRelevanceSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for QuestionAnsweringRelevanceSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a QuestionAnsweringRelevanceResult. */ + interface IQuestionAnsweringRelevanceResult { + + /** QuestionAnsweringRelevanceResult score */ + score?: (number|null); + + /** QuestionAnsweringRelevanceResult explanation */ + explanation?: (string|null); + + /** QuestionAnsweringRelevanceResult confidence */ + confidence?: (number|null); + } + + /** Represents a QuestionAnsweringRelevanceResult. */ + class QuestionAnsweringRelevanceResult implements IQuestionAnsweringRelevanceResult { + + /** + * Constructs a new QuestionAnsweringRelevanceResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IQuestionAnsweringRelevanceResult); + + /** QuestionAnsweringRelevanceResult score. */ + public score?: (number|null); + + /** QuestionAnsweringRelevanceResult explanation. */ + public explanation: string; + + /** QuestionAnsweringRelevanceResult confidence. */ + public confidence?: (number|null); + + /** QuestionAnsweringRelevanceResult _score. */ + public _score?: "score"; + + /** QuestionAnsweringRelevanceResult _confidence. */ + public _confidence?: "confidence"; + + /** + * Creates a new QuestionAnsweringRelevanceResult instance using the specified properties. + * @param [properties] Properties to set + * @returns QuestionAnsweringRelevanceResult instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IQuestionAnsweringRelevanceResult): google.cloud.aiplatform.v1.QuestionAnsweringRelevanceResult; + + /** + * Encodes the specified QuestionAnsweringRelevanceResult message. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringRelevanceResult.verify|verify} messages. + * @param message QuestionAnsweringRelevanceResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IQuestionAnsweringRelevanceResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified QuestionAnsweringRelevanceResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringRelevanceResult.verify|verify} messages. + * @param message QuestionAnsweringRelevanceResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IQuestionAnsweringRelevanceResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a QuestionAnsweringRelevanceResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns QuestionAnsweringRelevanceResult + * @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.QuestionAnsweringRelevanceResult; + + /** + * Decodes a QuestionAnsweringRelevanceResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns QuestionAnsweringRelevanceResult + * @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.QuestionAnsweringRelevanceResult; + + /** + * Verifies a QuestionAnsweringRelevanceResult 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 QuestionAnsweringRelevanceResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns QuestionAnsweringRelevanceResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.QuestionAnsweringRelevanceResult; + + /** + * Creates a plain object from a QuestionAnsweringRelevanceResult message. Also converts values to other types if specified. + * @param message QuestionAnsweringRelevanceResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.QuestionAnsweringRelevanceResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this QuestionAnsweringRelevanceResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for QuestionAnsweringRelevanceResult + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a QuestionAnsweringHelpfulnessInput. */ + interface IQuestionAnsweringHelpfulnessInput { + + /** QuestionAnsweringHelpfulnessInput metricSpec */ + metricSpec?: (google.cloud.aiplatform.v1.IQuestionAnsweringHelpfulnessSpec|null); + + /** QuestionAnsweringHelpfulnessInput instance */ + instance?: (google.cloud.aiplatform.v1.IQuestionAnsweringHelpfulnessInstance|null); + } + + /** Represents a QuestionAnsweringHelpfulnessInput. */ + class QuestionAnsweringHelpfulnessInput implements IQuestionAnsweringHelpfulnessInput { + + /** + * Constructs a new QuestionAnsweringHelpfulnessInput. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IQuestionAnsweringHelpfulnessInput); + + /** QuestionAnsweringHelpfulnessInput metricSpec. */ + public metricSpec?: (google.cloud.aiplatform.v1.IQuestionAnsweringHelpfulnessSpec|null); + + /** QuestionAnsweringHelpfulnessInput instance. */ + public instance?: (google.cloud.aiplatform.v1.IQuestionAnsweringHelpfulnessInstance|null); + + /** + * Creates a new QuestionAnsweringHelpfulnessInput instance using the specified properties. + * @param [properties] Properties to set + * @returns QuestionAnsweringHelpfulnessInput instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IQuestionAnsweringHelpfulnessInput): google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInput; + + /** + * Encodes the specified QuestionAnsweringHelpfulnessInput message. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInput.verify|verify} messages. + * @param message QuestionAnsweringHelpfulnessInput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IQuestionAnsweringHelpfulnessInput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified QuestionAnsweringHelpfulnessInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInput.verify|verify} messages. + * @param message QuestionAnsweringHelpfulnessInput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IQuestionAnsweringHelpfulnessInput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a QuestionAnsweringHelpfulnessInput message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns QuestionAnsweringHelpfulnessInput + * @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.QuestionAnsweringHelpfulnessInput; + + /** + * Decodes a QuestionAnsweringHelpfulnessInput message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns QuestionAnsweringHelpfulnessInput + * @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.QuestionAnsweringHelpfulnessInput; + + /** + * Verifies a QuestionAnsweringHelpfulnessInput 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 QuestionAnsweringHelpfulnessInput message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns QuestionAnsweringHelpfulnessInput + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInput; + + /** + * Creates a plain object from a QuestionAnsweringHelpfulnessInput message. Also converts values to other types if specified. + * @param message QuestionAnsweringHelpfulnessInput + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this QuestionAnsweringHelpfulnessInput to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for QuestionAnsweringHelpfulnessInput + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a QuestionAnsweringHelpfulnessInstance. */ + interface IQuestionAnsweringHelpfulnessInstance { + + /** QuestionAnsweringHelpfulnessInstance prediction */ + prediction?: (string|null); + + /** QuestionAnsweringHelpfulnessInstance reference */ + reference?: (string|null); + + /** QuestionAnsweringHelpfulnessInstance context */ + context?: (string|null); + + /** QuestionAnsweringHelpfulnessInstance instruction */ + instruction?: (string|null); + } + + /** Represents a QuestionAnsweringHelpfulnessInstance. */ + class QuestionAnsweringHelpfulnessInstance implements IQuestionAnsweringHelpfulnessInstance { + + /** + * Constructs a new QuestionAnsweringHelpfulnessInstance. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IQuestionAnsweringHelpfulnessInstance); + + /** QuestionAnsweringHelpfulnessInstance prediction. */ + public prediction?: (string|null); + + /** QuestionAnsweringHelpfulnessInstance reference. */ + public reference?: (string|null); + + /** QuestionAnsweringHelpfulnessInstance context. */ + public context?: (string|null); + + /** QuestionAnsweringHelpfulnessInstance instruction. */ + public instruction?: (string|null); + + /** QuestionAnsweringHelpfulnessInstance _prediction. */ + public _prediction?: "prediction"; + + /** QuestionAnsweringHelpfulnessInstance _reference. */ + public _reference?: "reference"; + + /** QuestionAnsweringHelpfulnessInstance _context. */ + public _context?: "context"; + + /** QuestionAnsweringHelpfulnessInstance _instruction. */ + public _instruction?: "instruction"; + + /** + * Creates a new QuestionAnsweringHelpfulnessInstance instance using the specified properties. + * @param [properties] Properties to set + * @returns QuestionAnsweringHelpfulnessInstance instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IQuestionAnsweringHelpfulnessInstance): google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInstance; + + /** + * Encodes the specified QuestionAnsweringHelpfulnessInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInstance.verify|verify} messages. + * @param message QuestionAnsweringHelpfulnessInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IQuestionAnsweringHelpfulnessInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified QuestionAnsweringHelpfulnessInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInstance.verify|verify} messages. + * @param message QuestionAnsweringHelpfulnessInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IQuestionAnsweringHelpfulnessInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a QuestionAnsweringHelpfulnessInstance message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns QuestionAnsweringHelpfulnessInstance + * @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.QuestionAnsweringHelpfulnessInstance; + + /** + * Decodes a QuestionAnsweringHelpfulnessInstance message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns QuestionAnsweringHelpfulnessInstance + * @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.QuestionAnsweringHelpfulnessInstance; + + /** + * Verifies a QuestionAnsweringHelpfulnessInstance 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 QuestionAnsweringHelpfulnessInstance message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns QuestionAnsweringHelpfulnessInstance + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInstance; + + /** + * Creates a plain object from a QuestionAnsweringHelpfulnessInstance message. Also converts values to other types if specified. + * @param message QuestionAnsweringHelpfulnessInstance + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this QuestionAnsweringHelpfulnessInstance to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for QuestionAnsweringHelpfulnessInstance + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a QuestionAnsweringHelpfulnessSpec. */ + interface IQuestionAnsweringHelpfulnessSpec { + + /** QuestionAnsweringHelpfulnessSpec useReference */ + useReference?: (boolean|null); + + /** QuestionAnsweringHelpfulnessSpec version */ + version?: (number|null); + } + + /** Represents a QuestionAnsweringHelpfulnessSpec. */ + class QuestionAnsweringHelpfulnessSpec implements IQuestionAnsweringHelpfulnessSpec { + + /** + * Constructs a new QuestionAnsweringHelpfulnessSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IQuestionAnsweringHelpfulnessSpec); + + /** QuestionAnsweringHelpfulnessSpec useReference. */ + public useReference: boolean; + + /** QuestionAnsweringHelpfulnessSpec version. */ + public version: number; + + /** + * Creates a new QuestionAnsweringHelpfulnessSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns QuestionAnsweringHelpfulnessSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IQuestionAnsweringHelpfulnessSpec): google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessSpec; + + /** + * Encodes the specified QuestionAnsweringHelpfulnessSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessSpec.verify|verify} messages. + * @param message QuestionAnsweringHelpfulnessSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IQuestionAnsweringHelpfulnessSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified QuestionAnsweringHelpfulnessSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessSpec.verify|verify} messages. + * @param message QuestionAnsweringHelpfulnessSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IQuestionAnsweringHelpfulnessSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a QuestionAnsweringHelpfulnessSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns QuestionAnsweringHelpfulnessSpec + * @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.QuestionAnsweringHelpfulnessSpec; + + /** + * Decodes a QuestionAnsweringHelpfulnessSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns QuestionAnsweringHelpfulnessSpec + * @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.QuestionAnsweringHelpfulnessSpec; + + /** + * Verifies a QuestionAnsweringHelpfulnessSpec 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 QuestionAnsweringHelpfulnessSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns QuestionAnsweringHelpfulnessSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessSpec; + + /** + * Creates a plain object from a QuestionAnsweringHelpfulnessSpec message. Also converts values to other types if specified. + * @param message QuestionAnsweringHelpfulnessSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this QuestionAnsweringHelpfulnessSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for QuestionAnsweringHelpfulnessSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a QuestionAnsweringHelpfulnessResult. */ + interface IQuestionAnsweringHelpfulnessResult { + + /** QuestionAnsweringHelpfulnessResult score */ + score?: (number|null); + + /** QuestionAnsweringHelpfulnessResult explanation */ + explanation?: (string|null); + + /** QuestionAnsweringHelpfulnessResult confidence */ + confidence?: (number|null); + } + + /** Represents a QuestionAnsweringHelpfulnessResult. */ + class QuestionAnsweringHelpfulnessResult implements IQuestionAnsweringHelpfulnessResult { + + /** + * Constructs a new QuestionAnsweringHelpfulnessResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IQuestionAnsweringHelpfulnessResult); + + /** QuestionAnsweringHelpfulnessResult score. */ + public score?: (number|null); + + /** QuestionAnsweringHelpfulnessResult explanation. */ + public explanation: string; + + /** QuestionAnsweringHelpfulnessResult confidence. */ + public confidence?: (number|null); + + /** QuestionAnsweringHelpfulnessResult _score. */ + public _score?: "score"; + + /** QuestionAnsweringHelpfulnessResult _confidence. */ + public _confidence?: "confidence"; + + /** + * Creates a new QuestionAnsweringHelpfulnessResult instance using the specified properties. + * @param [properties] Properties to set + * @returns QuestionAnsweringHelpfulnessResult instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IQuestionAnsweringHelpfulnessResult): google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessResult; + + /** + * Encodes the specified QuestionAnsweringHelpfulnessResult message. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessResult.verify|verify} messages. + * @param message QuestionAnsweringHelpfulnessResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IQuestionAnsweringHelpfulnessResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified QuestionAnsweringHelpfulnessResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessResult.verify|verify} messages. + * @param message QuestionAnsweringHelpfulnessResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IQuestionAnsweringHelpfulnessResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a QuestionAnsweringHelpfulnessResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns QuestionAnsweringHelpfulnessResult + * @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.QuestionAnsweringHelpfulnessResult; + + /** + * Decodes a QuestionAnsweringHelpfulnessResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns QuestionAnsweringHelpfulnessResult + * @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.QuestionAnsweringHelpfulnessResult; + + /** + * Verifies a QuestionAnsweringHelpfulnessResult 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 QuestionAnsweringHelpfulnessResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns QuestionAnsweringHelpfulnessResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessResult; + + /** + * Creates a plain object from a QuestionAnsweringHelpfulnessResult message. Also converts values to other types if specified. + * @param message QuestionAnsweringHelpfulnessResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this QuestionAnsweringHelpfulnessResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for QuestionAnsweringHelpfulnessResult + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a QuestionAnsweringCorrectnessInput. */ + interface IQuestionAnsweringCorrectnessInput { + + /** QuestionAnsweringCorrectnessInput metricSpec */ + metricSpec?: (google.cloud.aiplatform.v1.IQuestionAnsweringCorrectnessSpec|null); + + /** QuestionAnsweringCorrectnessInput instance */ + instance?: (google.cloud.aiplatform.v1.IQuestionAnsweringCorrectnessInstance|null); + } + + /** Represents a QuestionAnsweringCorrectnessInput. */ + class QuestionAnsweringCorrectnessInput implements IQuestionAnsweringCorrectnessInput { + + /** + * Constructs a new QuestionAnsweringCorrectnessInput. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IQuestionAnsweringCorrectnessInput); + + /** QuestionAnsweringCorrectnessInput metricSpec. */ + public metricSpec?: (google.cloud.aiplatform.v1.IQuestionAnsweringCorrectnessSpec|null); + + /** QuestionAnsweringCorrectnessInput instance. */ + public instance?: (google.cloud.aiplatform.v1.IQuestionAnsweringCorrectnessInstance|null); + + /** + * Creates a new QuestionAnsweringCorrectnessInput instance using the specified properties. + * @param [properties] Properties to set + * @returns QuestionAnsweringCorrectnessInput instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IQuestionAnsweringCorrectnessInput): google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInput; + + /** + * Encodes the specified QuestionAnsweringCorrectnessInput message. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInput.verify|verify} messages. + * @param message QuestionAnsweringCorrectnessInput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IQuestionAnsweringCorrectnessInput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified QuestionAnsweringCorrectnessInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInput.verify|verify} messages. + * @param message QuestionAnsweringCorrectnessInput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IQuestionAnsweringCorrectnessInput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a QuestionAnsweringCorrectnessInput message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns QuestionAnsweringCorrectnessInput + * @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.QuestionAnsweringCorrectnessInput; + + /** + * Decodes a QuestionAnsweringCorrectnessInput message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns QuestionAnsweringCorrectnessInput + * @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.QuestionAnsweringCorrectnessInput; + + /** + * Verifies a QuestionAnsweringCorrectnessInput 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 QuestionAnsweringCorrectnessInput message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns QuestionAnsweringCorrectnessInput + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInput; + + /** + * Creates a plain object from a QuestionAnsweringCorrectnessInput message. Also converts values to other types if specified. + * @param message QuestionAnsweringCorrectnessInput + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this QuestionAnsweringCorrectnessInput to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for QuestionAnsweringCorrectnessInput + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a QuestionAnsweringCorrectnessInstance. */ + interface IQuestionAnsweringCorrectnessInstance { + + /** QuestionAnsweringCorrectnessInstance prediction */ + prediction?: (string|null); + + /** QuestionAnsweringCorrectnessInstance reference */ + reference?: (string|null); + + /** QuestionAnsweringCorrectnessInstance context */ + context?: (string|null); + + /** QuestionAnsweringCorrectnessInstance instruction */ + instruction?: (string|null); + } + + /** Represents a QuestionAnsweringCorrectnessInstance. */ + class QuestionAnsweringCorrectnessInstance implements IQuestionAnsweringCorrectnessInstance { + + /** + * Constructs a new QuestionAnsweringCorrectnessInstance. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IQuestionAnsweringCorrectnessInstance); + + /** QuestionAnsweringCorrectnessInstance prediction. */ + public prediction?: (string|null); + + /** QuestionAnsweringCorrectnessInstance reference. */ + public reference?: (string|null); + + /** QuestionAnsweringCorrectnessInstance context. */ + public context?: (string|null); + + /** QuestionAnsweringCorrectnessInstance instruction. */ + public instruction?: (string|null); + + /** QuestionAnsweringCorrectnessInstance _prediction. */ + public _prediction?: "prediction"; + + /** QuestionAnsweringCorrectnessInstance _reference. */ + public _reference?: "reference"; + + /** QuestionAnsweringCorrectnessInstance _context. */ + public _context?: "context"; + + /** QuestionAnsweringCorrectnessInstance _instruction. */ + public _instruction?: "instruction"; + + /** + * Creates a new QuestionAnsweringCorrectnessInstance instance using the specified properties. + * @param [properties] Properties to set + * @returns QuestionAnsweringCorrectnessInstance instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IQuestionAnsweringCorrectnessInstance): google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInstance; + + /** + * Encodes the specified QuestionAnsweringCorrectnessInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInstance.verify|verify} messages. + * @param message QuestionAnsweringCorrectnessInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IQuestionAnsweringCorrectnessInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified QuestionAnsweringCorrectnessInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInstance.verify|verify} messages. + * @param message QuestionAnsweringCorrectnessInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IQuestionAnsweringCorrectnessInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a QuestionAnsweringCorrectnessInstance message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns QuestionAnsweringCorrectnessInstance + * @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.QuestionAnsweringCorrectnessInstance; + + /** + * Decodes a QuestionAnsweringCorrectnessInstance message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns QuestionAnsweringCorrectnessInstance + * @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.QuestionAnsweringCorrectnessInstance; + + /** + * Verifies a QuestionAnsweringCorrectnessInstance 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 QuestionAnsweringCorrectnessInstance message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns QuestionAnsweringCorrectnessInstance + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInstance; + + /** + * Creates a plain object from a QuestionAnsweringCorrectnessInstance message. Also converts values to other types if specified. + * @param message QuestionAnsweringCorrectnessInstance + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this QuestionAnsweringCorrectnessInstance to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for QuestionAnsweringCorrectnessInstance + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a QuestionAnsweringCorrectnessSpec. */ + interface IQuestionAnsweringCorrectnessSpec { + + /** QuestionAnsweringCorrectnessSpec useReference */ + useReference?: (boolean|null); + + /** QuestionAnsweringCorrectnessSpec version */ + version?: (number|null); + } + + /** Represents a QuestionAnsweringCorrectnessSpec. */ + class QuestionAnsweringCorrectnessSpec implements IQuestionAnsweringCorrectnessSpec { + + /** + * Constructs a new QuestionAnsweringCorrectnessSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IQuestionAnsweringCorrectnessSpec); + + /** QuestionAnsweringCorrectnessSpec useReference. */ + public useReference: boolean; + + /** QuestionAnsweringCorrectnessSpec version. */ + public version: number; + + /** + * Creates a new QuestionAnsweringCorrectnessSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns QuestionAnsweringCorrectnessSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IQuestionAnsweringCorrectnessSpec): google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessSpec; + + /** + * Encodes the specified QuestionAnsweringCorrectnessSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessSpec.verify|verify} messages. + * @param message QuestionAnsweringCorrectnessSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IQuestionAnsweringCorrectnessSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified QuestionAnsweringCorrectnessSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessSpec.verify|verify} messages. + * @param message QuestionAnsweringCorrectnessSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IQuestionAnsweringCorrectnessSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a QuestionAnsweringCorrectnessSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns QuestionAnsweringCorrectnessSpec + * @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.QuestionAnsweringCorrectnessSpec; + + /** + * Decodes a QuestionAnsweringCorrectnessSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns QuestionAnsweringCorrectnessSpec + * @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.QuestionAnsweringCorrectnessSpec; + + /** + * Verifies a QuestionAnsweringCorrectnessSpec 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 QuestionAnsweringCorrectnessSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns QuestionAnsweringCorrectnessSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessSpec; + + /** + * Creates a plain object from a QuestionAnsweringCorrectnessSpec message. Also converts values to other types if specified. + * @param message QuestionAnsweringCorrectnessSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this QuestionAnsweringCorrectnessSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for QuestionAnsweringCorrectnessSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a QuestionAnsweringCorrectnessResult. */ + interface IQuestionAnsweringCorrectnessResult { + + /** QuestionAnsweringCorrectnessResult score */ + score?: (number|null); + + /** QuestionAnsweringCorrectnessResult explanation */ + explanation?: (string|null); + + /** QuestionAnsweringCorrectnessResult confidence */ + confidence?: (number|null); + } + + /** Represents a QuestionAnsweringCorrectnessResult. */ + class QuestionAnsweringCorrectnessResult implements IQuestionAnsweringCorrectnessResult { + + /** + * Constructs a new QuestionAnsweringCorrectnessResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IQuestionAnsweringCorrectnessResult); + + /** QuestionAnsweringCorrectnessResult score. */ + public score?: (number|null); + + /** QuestionAnsweringCorrectnessResult explanation. */ + public explanation: string; + + /** QuestionAnsweringCorrectnessResult confidence. */ + public confidence?: (number|null); + + /** QuestionAnsweringCorrectnessResult _score. */ + public _score?: "score"; + + /** QuestionAnsweringCorrectnessResult _confidence. */ + public _confidence?: "confidence"; + + /** + * Creates a new QuestionAnsweringCorrectnessResult instance using the specified properties. + * @param [properties] Properties to set + * @returns QuestionAnsweringCorrectnessResult instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IQuestionAnsweringCorrectnessResult): google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessResult; + + /** + * Encodes the specified QuestionAnsweringCorrectnessResult message. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessResult.verify|verify} messages. + * @param message QuestionAnsweringCorrectnessResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IQuestionAnsweringCorrectnessResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified QuestionAnsweringCorrectnessResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessResult.verify|verify} messages. + * @param message QuestionAnsweringCorrectnessResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IQuestionAnsweringCorrectnessResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a QuestionAnsweringCorrectnessResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns QuestionAnsweringCorrectnessResult + * @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.QuestionAnsweringCorrectnessResult; + + /** + * Decodes a QuestionAnsweringCorrectnessResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns QuestionAnsweringCorrectnessResult + * @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.QuestionAnsweringCorrectnessResult; + + /** + * Verifies a QuestionAnsweringCorrectnessResult 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 QuestionAnsweringCorrectnessResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns QuestionAnsweringCorrectnessResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessResult; + + /** + * Creates a plain object from a QuestionAnsweringCorrectnessResult message. Also converts values to other types if specified. + * @param message QuestionAnsweringCorrectnessResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this QuestionAnsweringCorrectnessResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for QuestionAnsweringCorrectnessResult + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a PointwiseMetricInput. */ + interface IPointwiseMetricInput { + + /** PointwiseMetricInput metricSpec */ + metricSpec?: (google.cloud.aiplatform.v1.IPointwiseMetricSpec|null); + + /** PointwiseMetricInput instance */ + instance?: (google.cloud.aiplatform.v1.IPointwiseMetricInstance|null); + } + + /** Represents a PointwiseMetricInput. */ + class PointwiseMetricInput implements IPointwiseMetricInput { + + /** + * Constructs a new PointwiseMetricInput. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IPointwiseMetricInput); + + /** PointwiseMetricInput metricSpec. */ + public metricSpec?: (google.cloud.aiplatform.v1.IPointwiseMetricSpec|null); + + /** PointwiseMetricInput instance. */ + public instance?: (google.cloud.aiplatform.v1.IPointwiseMetricInstance|null); + + /** + * Creates a new PointwiseMetricInput instance using the specified properties. + * @param [properties] Properties to set + * @returns PointwiseMetricInput instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IPointwiseMetricInput): google.cloud.aiplatform.v1.PointwiseMetricInput; + + /** + * Encodes the specified PointwiseMetricInput message. Does not implicitly {@link google.cloud.aiplatform.v1.PointwiseMetricInput.verify|verify} messages. + * @param message PointwiseMetricInput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IPointwiseMetricInput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PointwiseMetricInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PointwiseMetricInput.verify|verify} messages. + * @param message PointwiseMetricInput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IPointwiseMetricInput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PointwiseMetricInput message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PointwiseMetricInput + * @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.PointwiseMetricInput; + + /** + * Decodes a PointwiseMetricInput message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PointwiseMetricInput + * @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.PointwiseMetricInput; + + /** + * Verifies a PointwiseMetricInput 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 PointwiseMetricInput message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PointwiseMetricInput + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PointwiseMetricInput; + + /** + * Creates a plain object from a PointwiseMetricInput message. Also converts values to other types if specified. + * @param message PointwiseMetricInput + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.PointwiseMetricInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PointwiseMetricInput to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PointwiseMetricInput + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a PointwiseMetricInstance. */ + interface IPointwiseMetricInstance { + + /** PointwiseMetricInstance jsonInstance */ + jsonInstance?: (string|null); + } + + /** Represents a PointwiseMetricInstance. */ + class PointwiseMetricInstance implements IPointwiseMetricInstance { + + /** + * Constructs a new PointwiseMetricInstance. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IPointwiseMetricInstance); + + /** PointwiseMetricInstance jsonInstance. */ + public jsonInstance?: (string|null); + + /** PointwiseMetricInstance instance. */ + public instance?: "jsonInstance"; + + /** + * Creates a new PointwiseMetricInstance instance using the specified properties. + * @param [properties] Properties to set + * @returns PointwiseMetricInstance instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IPointwiseMetricInstance): google.cloud.aiplatform.v1.PointwiseMetricInstance; + + /** + * Encodes the specified PointwiseMetricInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.PointwiseMetricInstance.verify|verify} messages. + * @param message PointwiseMetricInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IPointwiseMetricInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PointwiseMetricInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PointwiseMetricInstance.verify|verify} messages. + * @param message PointwiseMetricInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IPointwiseMetricInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PointwiseMetricInstance message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PointwiseMetricInstance + * @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.PointwiseMetricInstance; + + /** + * Decodes a PointwiseMetricInstance message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PointwiseMetricInstance + * @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.PointwiseMetricInstance; + + /** + * Verifies a PointwiseMetricInstance 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 PointwiseMetricInstance message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PointwiseMetricInstance + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PointwiseMetricInstance; + + /** + * Creates a plain object from a PointwiseMetricInstance message. Also converts values to other types if specified. + * @param message PointwiseMetricInstance + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.PointwiseMetricInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PointwiseMetricInstance to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PointwiseMetricInstance + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a PointwiseMetricSpec. */ + interface IPointwiseMetricSpec { + + /** PointwiseMetricSpec metricPromptTemplate */ + metricPromptTemplate?: (string|null); + } + + /** Represents a PointwiseMetricSpec. */ + class PointwiseMetricSpec implements IPointwiseMetricSpec { + + /** + * Constructs a new PointwiseMetricSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IPointwiseMetricSpec); + + /** PointwiseMetricSpec metricPromptTemplate. */ + public metricPromptTemplate?: (string|null); + + /** PointwiseMetricSpec _metricPromptTemplate. */ + public _metricPromptTemplate?: "metricPromptTemplate"; + + /** + * Creates a new PointwiseMetricSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns PointwiseMetricSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IPointwiseMetricSpec): google.cloud.aiplatform.v1.PointwiseMetricSpec; + + /** + * Encodes the specified PointwiseMetricSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.PointwiseMetricSpec.verify|verify} messages. + * @param message PointwiseMetricSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IPointwiseMetricSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PointwiseMetricSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PointwiseMetricSpec.verify|verify} messages. + * @param message PointwiseMetricSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IPointwiseMetricSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PointwiseMetricSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PointwiseMetricSpec + * @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.PointwiseMetricSpec; + + /** + * Decodes a PointwiseMetricSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PointwiseMetricSpec + * @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.PointwiseMetricSpec; + + /** + * Verifies a PointwiseMetricSpec 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 PointwiseMetricSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PointwiseMetricSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PointwiseMetricSpec; + + /** + * Creates a plain object from a PointwiseMetricSpec message. Also converts values to other types if specified. + * @param message PointwiseMetricSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.PointwiseMetricSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PointwiseMetricSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PointwiseMetricSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a PointwiseMetricResult. */ + interface IPointwiseMetricResult { + + /** PointwiseMetricResult score */ + score?: (number|null); + + /** PointwiseMetricResult explanation */ + explanation?: (string|null); + } + + /** Represents a PointwiseMetricResult. */ + class PointwiseMetricResult implements IPointwiseMetricResult { + + /** + * Constructs a new PointwiseMetricResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IPointwiseMetricResult); + + /** PointwiseMetricResult score. */ + public score?: (number|null); + + /** PointwiseMetricResult explanation. */ + public explanation: string; + + /** PointwiseMetricResult _score. */ + public _score?: "score"; + + /** + * Creates a new PointwiseMetricResult instance using the specified properties. + * @param [properties] Properties to set + * @returns PointwiseMetricResult instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IPointwiseMetricResult): google.cloud.aiplatform.v1.PointwiseMetricResult; + + /** + * Encodes the specified PointwiseMetricResult message. Does not implicitly {@link google.cloud.aiplatform.v1.PointwiseMetricResult.verify|verify} messages. + * @param message PointwiseMetricResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IPointwiseMetricResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PointwiseMetricResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PointwiseMetricResult.verify|verify} messages. + * @param message PointwiseMetricResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IPointwiseMetricResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PointwiseMetricResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PointwiseMetricResult + * @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.PointwiseMetricResult; + + /** + * Decodes a PointwiseMetricResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PointwiseMetricResult + * @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.PointwiseMetricResult; + + /** + * Verifies a PointwiseMetricResult 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 PointwiseMetricResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PointwiseMetricResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PointwiseMetricResult; + + /** + * Creates a plain object from a PointwiseMetricResult message. Also converts values to other types if specified. + * @param message PointwiseMetricResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.PointwiseMetricResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PointwiseMetricResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PointwiseMetricResult + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a PairwiseMetricInput. */ + interface IPairwiseMetricInput { + + /** PairwiseMetricInput metricSpec */ + metricSpec?: (google.cloud.aiplatform.v1.IPairwiseMetricSpec|null); + + /** PairwiseMetricInput instance */ + instance?: (google.cloud.aiplatform.v1.IPairwiseMetricInstance|null); + } + + /** Represents a PairwiseMetricInput. */ + class PairwiseMetricInput implements IPairwiseMetricInput { + + /** + * Constructs a new PairwiseMetricInput. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IPairwiseMetricInput); + + /** PairwiseMetricInput metricSpec. */ + public metricSpec?: (google.cloud.aiplatform.v1.IPairwiseMetricSpec|null); + + /** PairwiseMetricInput instance. */ + public instance?: (google.cloud.aiplatform.v1.IPairwiseMetricInstance|null); + + /** + * Creates a new PairwiseMetricInput instance using the specified properties. + * @param [properties] Properties to set + * @returns PairwiseMetricInput instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IPairwiseMetricInput): google.cloud.aiplatform.v1.PairwiseMetricInput; + + /** + * Encodes the specified PairwiseMetricInput message. Does not implicitly {@link google.cloud.aiplatform.v1.PairwiseMetricInput.verify|verify} messages. + * @param message PairwiseMetricInput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IPairwiseMetricInput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PairwiseMetricInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PairwiseMetricInput.verify|verify} messages. + * @param message PairwiseMetricInput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IPairwiseMetricInput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PairwiseMetricInput message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PairwiseMetricInput + * @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.PairwiseMetricInput; + + /** + * Decodes a PairwiseMetricInput message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PairwiseMetricInput + * @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.PairwiseMetricInput; + + /** + * Verifies a PairwiseMetricInput 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 PairwiseMetricInput message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PairwiseMetricInput + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PairwiseMetricInput; + + /** + * Creates a plain object from a PairwiseMetricInput message. Also converts values to other types if specified. + * @param message PairwiseMetricInput + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.PairwiseMetricInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PairwiseMetricInput to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PairwiseMetricInput + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a PairwiseMetricInstance. */ + interface IPairwiseMetricInstance { + + /** PairwiseMetricInstance jsonInstance */ + jsonInstance?: (string|null); + } + + /** Represents a PairwiseMetricInstance. */ + class PairwiseMetricInstance implements IPairwiseMetricInstance { + + /** + * Constructs a new PairwiseMetricInstance. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IPairwiseMetricInstance); + + /** PairwiseMetricInstance jsonInstance. */ + public jsonInstance?: (string|null); + + /** PairwiseMetricInstance instance. */ + public instance?: "jsonInstance"; + + /** + * Creates a new PairwiseMetricInstance instance using the specified properties. + * @param [properties] Properties to set + * @returns PairwiseMetricInstance instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IPairwiseMetricInstance): google.cloud.aiplatform.v1.PairwiseMetricInstance; + + /** + * Encodes the specified PairwiseMetricInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.PairwiseMetricInstance.verify|verify} messages. + * @param message PairwiseMetricInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IPairwiseMetricInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PairwiseMetricInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PairwiseMetricInstance.verify|verify} messages. + * @param message PairwiseMetricInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IPairwiseMetricInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PairwiseMetricInstance message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PairwiseMetricInstance + * @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.PairwiseMetricInstance; + + /** + * Decodes a PairwiseMetricInstance message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PairwiseMetricInstance + * @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.PairwiseMetricInstance; + + /** + * Verifies a PairwiseMetricInstance 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 PairwiseMetricInstance message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PairwiseMetricInstance + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PairwiseMetricInstance; + + /** + * Creates a plain object from a PairwiseMetricInstance message. Also converts values to other types if specified. + * @param message PairwiseMetricInstance + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.PairwiseMetricInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PairwiseMetricInstance to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PairwiseMetricInstance + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a PairwiseMetricSpec. */ + interface IPairwiseMetricSpec { + + /** PairwiseMetricSpec metricPromptTemplate */ + metricPromptTemplate?: (string|null); + } + + /** Represents a PairwiseMetricSpec. */ + class PairwiseMetricSpec implements IPairwiseMetricSpec { + + /** + * Constructs a new PairwiseMetricSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IPairwiseMetricSpec); + + /** PairwiseMetricSpec metricPromptTemplate. */ + public metricPromptTemplate?: (string|null); + + /** PairwiseMetricSpec _metricPromptTemplate. */ + public _metricPromptTemplate?: "metricPromptTemplate"; + + /** + * Creates a new PairwiseMetricSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns PairwiseMetricSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IPairwiseMetricSpec): google.cloud.aiplatform.v1.PairwiseMetricSpec; + + /** + * Encodes the specified PairwiseMetricSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.PairwiseMetricSpec.verify|verify} messages. + * @param message PairwiseMetricSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IPairwiseMetricSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PairwiseMetricSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PairwiseMetricSpec.verify|verify} messages. + * @param message PairwiseMetricSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IPairwiseMetricSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PairwiseMetricSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PairwiseMetricSpec + * @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.PairwiseMetricSpec; + + /** + * Decodes a PairwiseMetricSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PairwiseMetricSpec + * @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.PairwiseMetricSpec; + + /** + * Verifies a PairwiseMetricSpec 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 PairwiseMetricSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PairwiseMetricSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PairwiseMetricSpec; + + /** + * Creates a plain object from a PairwiseMetricSpec message. Also converts values to other types if specified. + * @param message PairwiseMetricSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.PairwiseMetricSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PairwiseMetricSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PairwiseMetricSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a PairwiseMetricResult. */ + interface IPairwiseMetricResult { + + /** PairwiseMetricResult pairwiseChoice */ + pairwiseChoice?: (google.cloud.aiplatform.v1.PairwiseChoice|keyof typeof google.cloud.aiplatform.v1.PairwiseChoice|null); + + /** PairwiseMetricResult explanation */ + explanation?: (string|null); + } + + /** Represents a PairwiseMetricResult. */ + class PairwiseMetricResult implements IPairwiseMetricResult { + + /** + * Constructs a new PairwiseMetricResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IPairwiseMetricResult); + + /** PairwiseMetricResult pairwiseChoice. */ + public pairwiseChoice: (google.cloud.aiplatform.v1.PairwiseChoice|keyof typeof google.cloud.aiplatform.v1.PairwiseChoice); + + /** PairwiseMetricResult explanation. */ + public explanation: string; + + /** + * Creates a new PairwiseMetricResult instance using the specified properties. + * @param [properties] Properties to set + * @returns PairwiseMetricResult instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IPairwiseMetricResult): google.cloud.aiplatform.v1.PairwiseMetricResult; + + /** + * Encodes the specified PairwiseMetricResult message. Does not implicitly {@link google.cloud.aiplatform.v1.PairwiseMetricResult.verify|verify} messages. + * @param message PairwiseMetricResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IPairwiseMetricResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PairwiseMetricResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PairwiseMetricResult.verify|verify} messages. + * @param message PairwiseMetricResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IPairwiseMetricResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PairwiseMetricResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PairwiseMetricResult + * @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.PairwiseMetricResult; + + /** + * Decodes a PairwiseMetricResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PairwiseMetricResult + * @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.PairwiseMetricResult; + + /** + * Verifies a PairwiseMetricResult 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 PairwiseMetricResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PairwiseMetricResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PairwiseMetricResult; + + /** + * Creates a plain object from a PairwiseMetricResult message. Also converts values to other types if specified. + * @param message PairwiseMetricResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.PairwiseMetricResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PairwiseMetricResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PairwiseMetricResult + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ToolCallValidInput. */ + interface IToolCallValidInput { + + /** ToolCallValidInput metricSpec */ + metricSpec?: (google.cloud.aiplatform.v1.IToolCallValidSpec|null); + + /** ToolCallValidInput instances */ + instances?: (google.cloud.aiplatform.v1.IToolCallValidInstance[]|null); + } + + /** Represents a ToolCallValidInput. */ + class ToolCallValidInput implements IToolCallValidInput { + + /** + * Constructs a new ToolCallValidInput. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IToolCallValidInput); + + /** ToolCallValidInput metricSpec. */ + public metricSpec?: (google.cloud.aiplatform.v1.IToolCallValidSpec|null); + + /** ToolCallValidInput instances. */ + public instances: google.cloud.aiplatform.v1.IToolCallValidInstance[]; + + /** + * Creates a new ToolCallValidInput instance using the specified properties. + * @param [properties] Properties to set + * @returns ToolCallValidInput instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IToolCallValidInput): google.cloud.aiplatform.v1.ToolCallValidInput; + + /** + * Encodes the specified ToolCallValidInput message. Does not implicitly {@link google.cloud.aiplatform.v1.ToolCallValidInput.verify|verify} messages. + * @param message ToolCallValidInput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IToolCallValidInput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ToolCallValidInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ToolCallValidInput.verify|verify} messages. + * @param message ToolCallValidInput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IToolCallValidInput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ToolCallValidInput message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ToolCallValidInput + * @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.ToolCallValidInput; + + /** + * Decodes a ToolCallValidInput message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ToolCallValidInput + * @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.ToolCallValidInput; + + /** + * Verifies a ToolCallValidInput 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 ToolCallValidInput message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ToolCallValidInput + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ToolCallValidInput; + + /** + * Creates a plain object from a ToolCallValidInput message. Also converts values to other types if specified. + * @param message ToolCallValidInput + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ToolCallValidInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ToolCallValidInput to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ToolCallValidInput + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ToolCallValidSpec. */ + interface IToolCallValidSpec { + } + + /** Represents a ToolCallValidSpec. */ + class ToolCallValidSpec implements IToolCallValidSpec { + + /** + * Constructs a new ToolCallValidSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IToolCallValidSpec); + + /** + * Creates a new ToolCallValidSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns ToolCallValidSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IToolCallValidSpec): google.cloud.aiplatform.v1.ToolCallValidSpec; + + /** + * Encodes the specified ToolCallValidSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.ToolCallValidSpec.verify|verify} messages. + * @param message ToolCallValidSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IToolCallValidSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ToolCallValidSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ToolCallValidSpec.verify|verify} messages. + * @param message ToolCallValidSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IToolCallValidSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ToolCallValidSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ToolCallValidSpec + * @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.ToolCallValidSpec; + + /** + * Decodes a ToolCallValidSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ToolCallValidSpec + * @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.ToolCallValidSpec; + + /** + * Verifies a ToolCallValidSpec 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 ToolCallValidSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ToolCallValidSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ToolCallValidSpec; + + /** + * Creates a plain object from a ToolCallValidSpec message. Also converts values to other types if specified. + * @param message ToolCallValidSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ToolCallValidSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ToolCallValidSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ToolCallValidSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ToolCallValidInstance. */ + interface IToolCallValidInstance { + + /** ToolCallValidInstance prediction */ + prediction?: (string|null); + + /** ToolCallValidInstance reference */ + reference?: (string|null); + } + + /** Represents a ToolCallValidInstance. */ + class ToolCallValidInstance implements IToolCallValidInstance { + + /** + * Constructs a new ToolCallValidInstance. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IToolCallValidInstance); + + /** ToolCallValidInstance prediction. */ + public prediction?: (string|null); + + /** ToolCallValidInstance reference. */ + public reference?: (string|null); + + /** ToolCallValidInstance _prediction. */ + public _prediction?: "prediction"; + + /** ToolCallValidInstance _reference. */ + public _reference?: "reference"; + + /** + * Creates a new ToolCallValidInstance instance using the specified properties. + * @param [properties] Properties to set + * @returns ToolCallValidInstance instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IToolCallValidInstance): google.cloud.aiplatform.v1.ToolCallValidInstance; + + /** + * Encodes the specified ToolCallValidInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.ToolCallValidInstance.verify|verify} messages. + * @param message ToolCallValidInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IToolCallValidInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ToolCallValidInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ToolCallValidInstance.verify|verify} messages. + * @param message ToolCallValidInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IToolCallValidInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ToolCallValidInstance message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ToolCallValidInstance + * @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.ToolCallValidInstance; + + /** + * Decodes a ToolCallValidInstance message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ToolCallValidInstance + * @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.ToolCallValidInstance; + + /** + * Verifies a ToolCallValidInstance 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 ToolCallValidInstance message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ToolCallValidInstance + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ToolCallValidInstance; + + /** + * Creates a plain object from a ToolCallValidInstance message. Also converts values to other types if specified. + * @param message ToolCallValidInstance + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ToolCallValidInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ToolCallValidInstance to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ToolCallValidInstance + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ToolCallValidResults. */ + interface IToolCallValidResults { + + /** ToolCallValidResults toolCallValidMetricValues */ + toolCallValidMetricValues?: (google.cloud.aiplatform.v1.IToolCallValidMetricValue[]|null); + } + + /** Represents a ToolCallValidResults. */ + class ToolCallValidResults implements IToolCallValidResults { + + /** + * Constructs a new ToolCallValidResults. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IToolCallValidResults); + + /** ToolCallValidResults toolCallValidMetricValues. */ + public toolCallValidMetricValues: google.cloud.aiplatform.v1.IToolCallValidMetricValue[]; + + /** + * Creates a new ToolCallValidResults instance using the specified properties. + * @param [properties] Properties to set + * @returns ToolCallValidResults instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IToolCallValidResults): google.cloud.aiplatform.v1.ToolCallValidResults; + + /** + * Encodes the specified ToolCallValidResults message. Does not implicitly {@link google.cloud.aiplatform.v1.ToolCallValidResults.verify|verify} messages. + * @param message ToolCallValidResults message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IToolCallValidResults, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ToolCallValidResults message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ToolCallValidResults.verify|verify} messages. + * @param message ToolCallValidResults message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IToolCallValidResults, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ToolCallValidResults message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ToolCallValidResults + * @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.ToolCallValidResults; + + /** + * Decodes a ToolCallValidResults message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ToolCallValidResults + * @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.ToolCallValidResults; + + /** + * Verifies a ToolCallValidResults 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 ToolCallValidResults message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ToolCallValidResults + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ToolCallValidResults; + + /** + * Creates a plain object from a ToolCallValidResults message. Also converts values to other types if specified. + * @param message ToolCallValidResults + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ToolCallValidResults, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ToolCallValidResults to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ToolCallValidResults + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ToolCallValidMetricValue. */ + interface IToolCallValidMetricValue { + + /** ToolCallValidMetricValue score */ + score?: (number|null); + } + + /** Represents a ToolCallValidMetricValue. */ + class ToolCallValidMetricValue implements IToolCallValidMetricValue { + + /** + * Constructs a new ToolCallValidMetricValue. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IToolCallValidMetricValue); + + /** ToolCallValidMetricValue score. */ + public score?: (number|null); + + /** ToolCallValidMetricValue _score. */ + public _score?: "score"; + + /** + * Creates a new ToolCallValidMetricValue instance using the specified properties. + * @param [properties] Properties to set + * @returns ToolCallValidMetricValue instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IToolCallValidMetricValue): google.cloud.aiplatform.v1.ToolCallValidMetricValue; + + /** + * Encodes the specified ToolCallValidMetricValue message. Does not implicitly {@link google.cloud.aiplatform.v1.ToolCallValidMetricValue.verify|verify} messages. + * @param message ToolCallValidMetricValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IToolCallValidMetricValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ToolCallValidMetricValue message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ToolCallValidMetricValue.verify|verify} messages. + * @param message ToolCallValidMetricValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IToolCallValidMetricValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ToolCallValidMetricValue message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ToolCallValidMetricValue + * @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.ToolCallValidMetricValue; + + /** + * Decodes a ToolCallValidMetricValue message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ToolCallValidMetricValue + * @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.ToolCallValidMetricValue; + + /** + * Verifies a ToolCallValidMetricValue 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 ToolCallValidMetricValue message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ToolCallValidMetricValue + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ToolCallValidMetricValue; + + /** + * Creates a plain object from a ToolCallValidMetricValue message. Also converts values to other types if specified. + * @param message ToolCallValidMetricValue + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ToolCallValidMetricValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ToolCallValidMetricValue to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ToolCallValidMetricValue + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ToolNameMatchInput. */ + interface IToolNameMatchInput { + + /** ToolNameMatchInput metricSpec */ + metricSpec?: (google.cloud.aiplatform.v1.IToolNameMatchSpec|null); + + /** ToolNameMatchInput instances */ + instances?: (google.cloud.aiplatform.v1.IToolNameMatchInstance[]|null); + } + + /** Represents a ToolNameMatchInput. */ + class ToolNameMatchInput implements IToolNameMatchInput { + + /** + * Constructs a new ToolNameMatchInput. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IToolNameMatchInput); + + /** ToolNameMatchInput metricSpec. */ + public metricSpec?: (google.cloud.aiplatform.v1.IToolNameMatchSpec|null); + + /** ToolNameMatchInput instances. */ + public instances: google.cloud.aiplatform.v1.IToolNameMatchInstance[]; + + /** + * Creates a new ToolNameMatchInput instance using the specified properties. + * @param [properties] Properties to set + * @returns ToolNameMatchInput instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IToolNameMatchInput): google.cloud.aiplatform.v1.ToolNameMatchInput; + + /** + * Encodes the specified ToolNameMatchInput message. Does not implicitly {@link google.cloud.aiplatform.v1.ToolNameMatchInput.verify|verify} messages. + * @param message ToolNameMatchInput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IToolNameMatchInput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ToolNameMatchInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ToolNameMatchInput.verify|verify} messages. + * @param message ToolNameMatchInput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IToolNameMatchInput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ToolNameMatchInput message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ToolNameMatchInput + * @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.ToolNameMatchInput; + + /** + * Decodes a ToolNameMatchInput message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ToolNameMatchInput + * @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.ToolNameMatchInput; + + /** + * Verifies a ToolNameMatchInput 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 ToolNameMatchInput message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ToolNameMatchInput + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ToolNameMatchInput; + + /** + * Creates a plain object from a ToolNameMatchInput message. Also converts values to other types if specified. + * @param message ToolNameMatchInput + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ToolNameMatchInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ToolNameMatchInput to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ToolNameMatchInput + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ToolNameMatchSpec. */ + interface IToolNameMatchSpec { + } + + /** Represents a ToolNameMatchSpec. */ + class ToolNameMatchSpec implements IToolNameMatchSpec { + + /** + * Constructs a new ToolNameMatchSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IToolNameMatchSpec); + + /** + * Creates a new ToolNameMatchSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns ToolNameMatchSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IToolNameMatchSpec): google.cloud.aiplatform.v1.ToolNameMatchSpec; + + /** + * Encodes the specified ToolNameMatchSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.ToolNameMatchSpec.verify|verify} messages. + * @param message ToolNameMatchSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IToolNameMatchSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ToolNameMatchSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ToolNameMatchSpec.verify|verify} messages. + * @param message ToolNameMatchSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IToolNameMatchSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ToolNameMatchSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ToolNameMatchSpec + * @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.ToolNameMatchSpec; + + /** + * Decodes a ToolNameMatchSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ToolNameMatchSpec + * @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.ToolNameMatchSpec; + + /** + * Verifies a ToolNameMatchSpec 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 ToolNameMatchSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ToolNameMatchSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ToolNameMatchSpec; + + /** + * Creates a plain object from a ToolNameMatchSpec message. Also converts values to other types if specified. + * @param message ToolNameMatchSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ToolNameMatchSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ToolNameMatchSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ToolNameMatchSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ToolNameMatchInstance. */ + interface IToolNameMatchInstance { + + /** ToolNameMatchInstance prediction */ + prediction?: (string|null); + + /** ToolNameMatchInstance reference */ + reference?: (string|null); + } + + /** Represents a ToolNameMatchInstance. */ + class ToolNameMatchInstance implements IToolNameMatchInstance { + + /** + * Constructs a new ToolNameMatchInstance. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IToolNameMatchInstance); + + /** ToolNameMatchInstance prediction. */ + public prediction?: (string|null); + + /** ToolNameMatchInstance reference. */ + public reference?: (string|null); + + /** ToolNameMatchInstance _prediction. */ + public _prediction?: "prediction"; + + /** ToolNameMatchInstance _reference. */ + public _reference?: "reference"; + + /** + * Creates a new ToolNameMatchInstance instance using the specified properties. + * @param [properties] Properties to set + * @returns ToolNameMatchInstance instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IToolNameMatchInstance): google.cloud.aiplatform.v1.ToolNameMatchInstance; + + /** + * Encodes the specified ToolNameMatchInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.ToolNameMatchInstance.verify|verify} messages. + * @param message ToolNameMatchInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IToolNameMatchInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ToolNameMatchInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ToolNameMatchInstance.verify|verify} messages. + * @param message ToolNameMatchInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IToolNameMatchInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ToolNameMatchInstance message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ToolNameMatchInstance + * @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.ToolNameMatchInstance; + + /** + * Decodes a ToolNameMatchInstance message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ToolNameMatchInstance + * @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.ToolNameMatchInstance; + + /** + * Verifies a ToolNameMatchInstance 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 ToolNameMatchInstance message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ToolNameMatchInstance + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ToolNameMatchInstance; + + /** + * Creates a plain object from a ToolNameMatchInstance message. Also converts values to other types if specified. + * @param message ToolNameMatchInstance + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ToolNameMatchInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ToolNameMatchInstance to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ToolNameMatchInstance + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ToolNameMatchResults. */ + interface IToolNameMatchResults { + + /** ToolNameMatchResults toolNameMatchMetricValues */ + toolNameMatchMetricValues?: (google.cloud.aiplatform.v1.IToolNameMatchMetricValue[]|null); + } + + /** Represents a ToolNameMatchResults. */ + class ToolNameMatchResults implements IToolNameMatchResults { + + /** + * Constructs a new ToolNameMatchResults. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IToolNameMatchResults); + + /** ToolNameMatchResults toolNameMatchMetricValues. */ + public toolNameMatchMetricValues: google.cloud.aiplatform.v1.IToolNameMatchMetricValue[]; + + /** + * Creates a new ToolNameMatchResults instance using the specified properties. + * @param [properties] Properties to set + * @returns ToolNameMatchResults instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IToolNameMatchResults): google.cloud.aiplatform.v1.ToolNameMatchResults; + + /** + * Encodes the specified ToolNameMatchResults message. Does not implicitly {@link google.cloud.aiplatform.v1.ToolNameMatchResults.verify|verify} messages. + * @param message ToolNameMatchResults message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IToolNameMatchResults, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ToolNameMatchResults message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ToolNameMatchResults.verify|verify} messages. + * @param message ToolNameMatchResults message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IToolNameMatchResults, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ToolNameMatchResults message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ToolNameMatchResults + * @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.ToolNameMatchResults; + + /** + * Decodes a ToolNameMatchResults message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ToolNameMatchResults + * @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.ToolNameMatchResults; + + /** + * Verifies a ToolNameMatchResults 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 ToolNameMatchResults message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ToolNameMatchResults + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ToolNameMatchResults; + + /** + * Creates a plain object from a ToolNameMatchResults message. Also converts values to other types if specified. + * @param message ToolNameMatchResults + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ToolNameMatchResults, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ToolNameMatchResults to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ToolNameMatchResults + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ToolNameMatchMetricValue. */ + interface IToolNameMatchMetricValue { + + /** ToolNameMatchMetricValue score */ + score?: (number|null); + } + + /** Represents a ToolNameMatchMetricValue. */ + class ToolNameMatchMetricValue implements IToolNameMatchMetricValue { + + /** + * Constructs a new ToolNameMatchMetricValue. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IToolNameMatchMetricValue); + + /** ToolNameMatchMetricValue score. */ + public score?: (number|null); + + /** ToolNameMatchMetricValue _score. */ + public _score?: "score"; + + /** + * Creates a new ToolNameMatchMetricValue instance using the specified properties. + * @param [properties] Properties to set + * @returns ToolNameMatchMetricValue instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IToolNameMatchMetricValue): google.cloud.aiplatform.v1.ToolNameMatchMetricValue; + + /** + * Encodes the specified ToolNameMatchMetricValue message. Does not implicitly {@link google.cloud.aiplatform.v1.ToolNameMatchMetricValue.verify|verify} messages. + * @param message ToolNameMatchMetricValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IToolNameMatchMetricValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ToolNameMatchMetricValue message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ToolNameMatchMetricValue.verify|verify} messages. + * @param message ToolNameMatchMetricValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IToolNameMatchMetricValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ToolNameMatchMetricValue message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ToolNameMatchMetricValue + * @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.ToolNameMatchMetricValue; + + /** + * Decodes a ToolNameMatchMetricValue message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ToolNameMatchMetricValue + * @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.ToolNameMatchMetricValue; + + /** + * Verifies a ToolNameMatchMetricValue 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 ToolNameMatchMetricValue message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ToolNameMatchMetricValue + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ToolNameMatchMetricValue; + + /** + * Creates a plain object from a ToolNameMatchMetricValue message. Also converts values to other types if specified. + * @param message ToolNameMatchMetricValue + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ToolNameMatchMetricValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ToolNameMatchMetricValue to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ToolNameMatchMetricValue + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ToolParameterKeyMatchInput. */ + interface IToolParameterKeyMatchInput { + + /** ToolParameterKeyMatchInput metricSpec */ + metricSpec?: (google.cloud.aiplatform.v1.IToolParameterKeyMatchSpec|null); + + /** ToolParameterKeyMatchInput instances */ + instances?: (google.cloud.aiplatform.v1.IToolParameterKeyMatchInstance[]|null); + } + + /** Represents a ToolParameterKeyMatchInput. */ + class ToolParameterKeyMatchInput implements IToolParameterKeyMatchInput { + + /** + * Constructs a new ToolParameterKeyMatchInput. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IToolParameterKeyMatchInput); + + /** ToolParameterKeyMatchInput metricSpec. */ + public metricSpec?: (google.cloud.aiplatform.v1.IToolParameterKeyMatchSpec|null); + + /** ToolParameterKeyMatchInput instances. */ + public instances: google.cloud.aiplatform.v1.IToolParameterKeyMatchInstance[]; + + /** + * Creates a new ToolParameterKeyMatchInput instance using the specified properties. + * @param [properties] Properties to set + * @returns ToolParameterKeyMatchInput instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IToolParameterKeyMatchInput): google.cloud.aiplatform.v1.ToolParameterKeyMatchInput; + + /** + * Encodes the specified ToolParameterKeyMatchInput message. Does not implicitly {@link google.cloud.aiplatform.v1.ToolParameterKeyMatchInput.verify|verify} messages. + * @param message ToolParameterKeyMatchInput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IToolParameterKeyMatchInput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ToolParameterKeyMatchInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ToolParameterKeyMatchInput.verify|verify} messages. + * @param message ToolParameterKeyMatchInput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IToolParameterKeyMatchInput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ToolParameterKeyMatchInput message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ToolParameterKeyMatchInput + * @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.ToolParameterKeyMatchInput; + + /** + * Decodes a ToolParameterKeyMatchInput message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ToolParameterKeyMatchInput + * @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.ToolParameterKeyMatchInput; + + /** + * Verifies a ToolParameterKeyMatchInput 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 ToolParameterKeyMatchInput message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ToolParameterKeyMatchInput + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ToolParameterKeyMatchInput; + + /** + * Creates a plain object from a ToolParameterKeyMatchInput message. Also converts values to other types if specified. + * @param message ToolParameterKeyMatchInput + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ToolParameterKeyMatchInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ToolParameterKeyMatchInput to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ToolParameterKeyMatchInput + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ToolParameterKeyMatchSpec. */ + interface IToolParameterKeyMatchSpec { + } + + /** Represents a ToolParameterKeyMatchSpec. */ + class ToolParameterKeyMatchSpec implements IToolParameterKeyMatchSpec { + + /** + * Constructs a new ToolParameterKeyMatchSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IToolParameterKeyMatchSpec); + + /** + * Creates a new ToolParameterKeyMatchSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns ToolParameterKeyMatchSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IToolParameterKeyMatchSpec): google.cloud.aiplatform.v1.ToolParameterKeyMatchSpec; + + /** + * Encodes the specified ToolParameterKeyMatchSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.ToolParameterKeyMatchSpec.verify|verify} messages. + * @param message ToolParameterKeyMatchSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IToolParameterKeyMatchSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ToolParameterKeyMatchSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ToolParameterKeyMatchSpec.verify|verify} messages. + * @param message ToolParameterKeyMatchSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IToolParameterKeyMatchSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ToolParameterKeyMatchSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ToolParameterKeyMatchSpec + * @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.ToolParameterKeyMatchSpec; + + /** + * Decodes a ToolParameterKeyMatchSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ToolParameterKeyMatchSpec + * @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.ToolParameterKeyMatchSpec; + + /** + * Verifies a ToolParameterKeyMatchSpec 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 ToolParameterKeyMatchSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ToolParameterKeyMatchSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ToolParameterKeyMatchSpec; + + /** + * Creates a plain object from a ToolParameterKeyMatchSpec message. Also converts values to other types if specified. + * @param message ToolParameterKeyMatchSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ToolParameterKeyMatchSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ToolParameterKeyMatchSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ToolParameterKeyMatchSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ToolParameterKeyMatchInstance. */ + interface IToolParameterKeyMatchInstance { + + /** ToolParameterKeyMatchInstance prediction */ + prediction?: (string|null); + + /** ToolParameterKeyMatchInstance reference */ + reference?: (string|null); + } + + /** Represents a ToolParameterKeyMatchInstance. */ + class ToolParameterKeyMatchInstance implements IToolParameterKeyMatchInstance { + + /** + * Constructs a new ToolParameterKeyMatchInstance. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IToolParameterKeyMatchInstance); + + /** ToolParameterKeyMatchInstance prediction. */ + public prediction?: (string|null); + + /** ToolParameterKeyMatchInstance reference. */ + public reference?: (string|null); + + /** ToolParameterKeyMatchInstance _prediction. */ + public _prediction?: "prediction"; + + /** ToolParameterKeyMatchInstance _reference. */ + public _reference?: "reference"; + + /** + * Creates a new ToolParameterKeyMatchInstance instance using the specified properties. + * @param [properties] Properties to set + * @returns ToolParameterKeyMatchInstance instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IToolParameterKeyMatchInstance): google.cloud.aiplatform.v1.ToolParameterKeyMatchInstance; + + /** + * Encodes the specified ToolParameterKeyMatchInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.ToolParameterKeyMatchInstance.verify|verify} messages. + * @param message ToolParameterKeyMatchInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IToolParameterKeyMatchInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ToolParameterKeyMatchInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ToolParameterKeyMatchInstance.verify|verify} messages. + * @param message ToolParameterKeyMatchInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IToolParameterKeyMatchInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ToolParameterKeyMatchInstance message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ToolParameterKeyMatchInstance + * @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.ToolParameterKeyMatchInstance; + + /** + * Decodes a ToolParameterKeyMatchInstance message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ToolParameterKeyMatchInstance + * @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.ToolParameterKeyMatchInstance; + + /** + * Verifies a ToolParameterKeyMatchInstance 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 ToolParameterKeyMatchInstance message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ToolParameterKeyMatchInstance + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ToolParameterKeyMatchInstance; + + /** + * Creates a plain object from a ToolParameterKeyMatchInstance message. Also converts values to other types if specified. + * @param message ToolParameterKeyMatchInstance + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ToolParameterKeyMatchInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ToolParameterKeyMatchInstance to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ToolParameterKeyMatchInstance + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ToolParameterKeyMatchResults. */ + interface IToolParameterKeyMatchResults { + + /** ToolParameterKeyMatchResults toolParameterKeyMatchMetricValues */ + toolParameterKeyMatchMetricValues?: (google.cloud.aiplatform.v1.IToolParameterKeyMatchMetricValue[]|null); + } + + /** Represents a ToolParameterKeyMatchResults. */ + class ToolParameterKeyMatchResults implements IToolParameterKeyMatchResults { + + /** + * Constructs a new ToolParameterKeyMatchResults. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IToolParameterKeyMatchResults); + + /** ToolParameterKeyMatchResults toolParameterKeyMatchMetricValues. */ + public toolParameterKeyMatchMetricValues: google.cloud.aiplatform.v1.IToolParameterKeyMatchMetricValue[]; + + /** + * Creates a new ToolParameterKeyMatchResults instance using the specified properties. + * @param [properties] Properties to set + * @returns ToolParameterKeyMatchResults instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IToolParameterKeyMatchResults): google.cloud.aiplatform.v1.ToolParameterKeyMatchResults; + + /** + * Encodes the specified ToolParameterKeyMatchResults message. Does not implicitly {@link google.cloud.aiplatform.v1.ToolParameterKeyMatchResults.verify|verify} messages. + * @param message ToolParameterKeyMatchResults message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IToolParameterKeyMatchResults, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ToolParameterKeyMatchResults message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ToolParameterKeyMatchResults.verify|verify} messages. + * @param message ToolParameterKeyMatchResults message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IToolParameterKeyMatchResults, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ToolParameterKeyMatchResults message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ToolParameterKeyMatchResults + * @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.ToolParameterKeyMatchResults; + + /** + * Decodes a ToolParameterKeyMatchResults message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ToolParameterKeyMatchResults + * @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.ToolParameterKeyMatchResults; + + /** + * Verifies a ToolParameterKeyMatchResults 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 ToolParameterKeyMatchResults message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ToolParameterKeyMatchResults + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ToolParameterKeyMatchResults; + + /** + * Creates a plain object from a ToolParameterKeyMatchResults message. Also converts values to other types if specified. + * @param message ToolParameterKeyMatchResults + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ToolParameterKeyMatchResults, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ToolParameterKeyMatchResults to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ToolParameterKeyMatchResults + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ToolParameterKeyMatchMetricValue. */ + interface IToolParameterKeyMatchMetricValue { + + /** ToolParameterKeyMatchMetricValue score */ + score?: (number|null); + } + + /** Represents a ToolParameterKeyMatchMetricValue. */ + class ToolParameterKeyMatchMetricValue implements IToolParameterKeyMatchMetricValue { + + /** + * Constructs a new ToolParameterKeyMatchMetricValue. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IToolParameterKeyMatchMetricValue); + + /** ToolParameterKeyMatchMetricValue score. */ + public score?: (number|null); + + /** ToolParameterKeyMatchMetricValue _score. */ + public _score?: "score"; /** - * Creates a new EntityType instance using the specified properties. + * Creates a new ToolParameterKeyMatchMetricValue instance using the specified properties. * @param [properties] Properties to set - * @returns EntityType instance + * @returns ToolParameterKeyMatchMetricValue instance */ - public static create(properties?: google.cloud.aiplatform.v1.IEntityType): google.cloud.aiplatform.v1.EntityType; + public static create(properties?: google.cloud.aiplatform.v1.IToolParameterKeyMatchMetricValue): google.cloud.aiplatform.v1.ToolParameterKeyMatchMetricValue; /** - * Encodes the specified EntityType message. Does not implicitly {@link google.cloud.aiplatform.v1.EntityType.verify|verify} messages. - * @param message EntityType message or plain object to encode + * Encodes the specified ToolParameterKeyMatchMetricValue message. Does not implicitly {@link google.cloud.aiplatform.v1.ToolParameterKeyMatchMetricValue.verify|verify} messages. + * @param message ToolParameterKeyMatchMetricValue message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IEntityType, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IToolParameterKeyMatchMetricValue, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified EntityType message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.EntityType.verify|verify} messages. - * @param message EntityType message or plain object to encode + * Encodes the specified ToolParameterKeyMatchMetricValue message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ToolParameterKeyMatchMetricValue.verify|verify} messages. + * @param message ToolParameterKeyMatchMetricValue message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IEntityType, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IToolParameterKeyMatchMetricValue, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EntityType message from the specified reader or buffer. + * Decodes a ToolParameterKeyMatchMetricValue message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EntityType + * @returns ToolParameterKeyMatchMetricValue * @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.EntityType; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ToolParameterKeyMatchMetricValue; /** - * Decodes an EntityType message from the specified reader or buffer, length delimited. + * Decodes a ToolParameterKeyMatchMetricValue message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns EntityType + * @returns ToolParameterKeyMatchMetricValue * @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.EntityType; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ToolParameterKeyMatchMetricValue; /** - * Verifies an EntityType message. + * Verifies a ToolParameterKeyMatchMetricValue 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 EntityType message from a plain object. Also converts values to their respective internal types. + * Creates a ToolParameterKeyMatchMetricValue message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EntityType + * @returns ToolParameterKeyMatchMetricValue */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.EntityType; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ToolParameterKeyMatchMetricValue; /** - * Creates a plain object from an EntityType message. Also converts values to other types if specified. - * @param message EntityType + * Creates a plain object from a ToolParameterKeyMatchMetricValue message. Also converts values to other types if specified. + * @param message ToolParameterKeyMatchMetricValue * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.EntityType, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ToolParameterKeyMatchMetricValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EntityType to JSON. + * Converts this ToolParameterKeyMatchMetricValue to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for EntityType + * Gets the default type url for ToolParameterKeyMatchMetricValue * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a FeaturestoreMonitoringConfig. */ - interface IFeaturestoreMonitoringConfig { - - /** FeaturestoreMonitoringConfig snapshotAnalysis */ - snapshotAnalysis?: (google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ISnapshotAnalysis|null); - - /** FeaturestoreMonitoringConfig importFeaturesAnalysis */ - importFeaturesAnalysis?: (google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis|null); + /** Properties of a ToolParameterKVMatchInput. */ + interface IToolParameterKVMatchInput { - /** FeaturestoreMonitoringConfig numericalThresholdConfig */ - numericalThresholdConfig?: (google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.IThresholdConfig|null); + /** ToolParameterKVMatchInput metricSpec */ + metricSpec?: (google.cloud.aiplatform.v1.IToolParameterKVMatchSpec|null); - /** FeaturestoreMonitoringConfig categoricalThresholdConfig */ - categoricalThresholdConfig?: (google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.IThresholdConfig|null); + /** ToolParameterKVMatchInput instances */ + instances?: (google.cloud.aiplatform.v1.IToolParameterKVMatchInstance[]|null); } - /** Represents a FeaturestoreMonitoringConfig. */ - class FeaturestoreMonitoringConfig implements IFeaturestoreMonitoringConfig { + /** Represents a ToolParameterKVMatchInput. */ + class ToolParameterKVMatchInput implements IToolParameterKVMatchInput { /** - * Constructs a new FeaturestoreMonitoringConfig. + * Constructs a new ToolParameterKVMatchInput. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IFeaturestoreMonitoringConfig); - - /** FeaturestoreMonitoringConfig snapshotAnalysis. */ - public snapshotAnalysis?: (google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ISnapshotAnalysis|null); - - /** FeaturestoreMonitoringConfig importFeaturesAnalysis. */ - public importFeaturesAnalysis?: (google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis|null); + constructor(properties?: google.cloud.aiplatform.v1.IToolParameterKVMatchInput); - /** FeaturestoreMonitoringConfig numericalThresholdConfig. */ - public numericalThresholdConfig?: (google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.IThresholdConfig|null); + /** ToolParameterKVMatchInput metricSpec. */ + public metricSpec?: (google.cloud.aiplatform.v1.IToolParameterKVMatchSpec|null); - /** FeaturestoreMonitoringConfig categoricalThresholdConfig. */ - public categoricalThresholdConfig?: (google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.IThresholdConfig|null); + /** ToolParameterKVMatchInput instances. */ + public instances: google.cloud.aiplatform.v1.IToolParameterKVMatchInstance[]; /** - * Creates a new FeaturestoreMonitoringConfig instance using the specified properties. + * Creates a new ToolParameterKVMatchInput instance using the specified properties. * @param [properties] Properties to set - * @returns FeaturestoreMonitoringConfig instance + * @returns ToolParameterKVMatchInput instance */ - public static create(properties?: google.cloud.aiplatform.v1.IFeaturestoreMonitoringConfig): google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig; + public static create(properties?: google.cloud.aiplatform.v1.IToolParameterKVMatchInput): google.cloud.aiplatform.v1.ToolParameterKVMatchInput; /** - * Encodes the specified FeaturestoreMonitoringConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.verify|verify} messages. - * @param message FeaturestoreMonitoringConfig message or plain object to encode + * Encodes the specified ToolParameterKVMatchInput message. Does not implicitly {@link google.cloud.aiplatform.v1.ToolParameterKVMatchInput.verify|verify} messages. + * @param message ToolParameterKVMatchInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IFeaturestoreMonitoringConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IToolParameterKVMatchInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FeaturestoreMonitoringConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.verify|verify} messages. - * @param message FeaturestoreMonitoringConfig message or plain object to encode + * Encodes the specified ToolParameterKVMatchInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ToolParameterKVMatchInput.verify|verify} messages. + * @param message ToolParameterKVMatchInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IFeaturestoreMonitoringConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IToolParameterKVMatchInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FeaturestoreMonitoringConfig message from the specified reader or buffer. + * Decodes a ToolParameterKVMatchInput message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FeaturestoreMonitoringConfig + * @returns ToolParameterKVMatchInput * @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.FeaturestoreMonitoringConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ToolParameterKVMatchInput; /** - * Decodes a FeaturestoreMonitoringConfig message from the specified reader or buffer, length delimited. + * Decodes a ToolParameterKVMatchInput message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FeaturestoreMonitoringConfig + * @returns ToolParameterKVMatchInput * @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.FeaturestoreMonitoringConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ToolParameterKVMatchInput; /** - * Verifies a FeaturestoreMonitoringConfig message. + * Verifies a ToolParameterKVMatchInput 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 FeaturestoreMonitoringConfig message from a plain object. Also converts values to their respective internal types. + * Creates a ToolParameterKVMatchInput message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FeaturestoreMonitoringConfig + * @returns ToolParameterKVMatchInput */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ToolParameterKVMatchInput; /** - * Creates a plain object from a FeaturestoreMonitoringConfig message. Also converts values to other types if specified. - * @param message FeaturestoreMonitoringConfig + * Creates a plain object from a ToolParameterKVMatchInput message. Also converts values to other types if specified. + * @param message ToolParameterKVMatchInput * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ToolParameterKVMatchInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FeaturestoreMonitoringConfig to JSON. + * Converts this ToolParameterKVMatchInput to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FeaturestoreMonitoringConfig + * Gets the default type url for ToolParameterKVMatchInput * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace FeaturestoreMonitoringConfig { - - /** Properties of a SnapshotAnalysis. */ - interface ISnapshotAnalysis { - - /** SnapshotAnalysis disabled */ - disabled?: (boolean|null); - - /** SnapshotAnalysis monitoringIntervalDays */ - monitoringIntervalDays?: (number|null); - - /** SnapshotAnalysis stalenessDays */ - stalenessDays?: (number|null); - } - - /** Represents a SnapshotAnalysis. */ - class SnapshotAnalysis implements ISnapshotAnalysis { - - /** - * Constructs a new SnapshotAnalysis. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ISnapshotAnalysis); - - /** SnapshotAnalysis disabled. */ - public disabled: boolean; - - /** SnapshotAnalysis monitoringIntervalDays. */ - public monitoringIntervalDays: number; - - /** SnapshotAnalysis stalenessDays. */ - public stalenessDays: number; - - /** - * Creates a new SnapshotAnalysis instance using the specified properties. - * @param [properties] Properties to set - * @returns SnapshotAnalysis instance - */ - public static create(properties?: google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ISnapshotAnalysis): google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.SnapshotAnalysis; - - /** - * Encodes the specified SnapshotAnalysis message. Does not implicitly {@link google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.SnapshotAnalysis.verify|verify} messages. - * @param message SnapshotAnalysis message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ISnapshotAnalysis, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SnapshotAnalysis message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.SnapshotAnalysis.verify|verify} messages. - * @param message SnapshotAnalysis message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ISnapshotAnalysis, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SnapshotAnalysis message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SnapshotAnalysis - * @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.FeaturestoreMonitoringConfig.SnapshotAnalysis; - - /** - * Decodes a SnapshotAnalysis message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SnapshotAnalysis - * @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.FeaturestoreMonitoringConfig.SnapshotAnalysis; - - /** - * Verifies a SnapshotAnalysis 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 SnapshotAnalysis message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SnapshotAnalysis - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.SnapshotAnalysis; - - /** - * Creates a plain object from a SnapshotAnalysis message. Also converts values to other types if specified. - * @param message SnapshotAnalysis - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.SnapshotAnalysis, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SnapshotAnalysis to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for SnapshotAnalysis - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an ImportFeaturesAnalysis. */ - interface IImportFeaturesAnalysis { - - /** ImportFeaturesAnalysis state */ - state?: (google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.State|keyof typeof google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.State|null); - - /** ImportFeaturesAnalysis anomalyDetectionBaseline */ - anomalyDetectionBaseline?: (google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.Baseline|keyof typeof google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.Baseline|null); - } - - /** Represents an ImportFeaturesAnalysis. */ - class ImportFeaturesAnalysis implements IImportFeaturesAnalysis { - - /** - * Constructs a new ImportFeaturesAnalysis. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis); - - /** ImportFeaturesAnalysis state. */ - public state: (google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.State|keyof typeof google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.State); - - /** ImportFeaturesAnalysis anomalyDetectionBaseline. */ - public anomalyDetectionBaseline: (google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.Baseline|keyof typeof google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.Baseline); - - /** - * Creates a new ImportFeaturesAnalysis instance using the specified properties. - * @param [properties] Properties to set - * @returns ImportFeaturesAnalysis instance - */ - public static create(properties?: google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis): google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis; - - /** - * Encodes the specified ImportFeaturesAnalysis message. Does not implicitly {@link google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.verify|verify} messages. - * @param message ImportFeaturesAnalysis message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ImportFeaturesAnalysis message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.verify|verify} messages. - * @param message ImportFeaturesAnalysis message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ImportFeaturesAnalysis message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ImportFeaturesAnalysis - * @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.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis; - - /** - * Decodes an ImportFeaturesAnalysis message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ImportFeaturesAnalysis - * @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.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis; - - /** - * Verifies an ImportFeaturesAnalysis 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 ImportFeaturesAnalysis message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ImportFeaturesAnalysis - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis; - - /** - * Creates a plain object from an ImportFeaturesAnalysis message. Also converts values to other types if specified. - * @param message ImportFeaturesAnalysis - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ImportFeaturesAnalysis to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ImportFeaturesAnalysis - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace ImportFeaturesAnalysis { - - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - DEFAULT = 1, - ENABLED = 2, - DISABLED = 3 - } - - /** Baseline enum. */ - enum Baseline { - BASELINE_UNSPECIFIED = 0, - LATEST_STATS = 1, - MOST_RECENT_SNAPSHOT_STATS = 2, - PREVIOUS_IMPORT_FEATURES_STATS = 3 - } - } - - /** Properties of a ThresholdConfig. */ - interface IThresholdConfig { - - /** ThresholdConfig value */ - value?: (number|null); - } + /** Properties of a ToolParameterKVMatchSpec. */ + interface IToolParameterKVMatchSpec { - /** Represents a ThresholdConfig. */ - class ThresholdConfig implements IThresholdConfig { + /** ToolParameterKVMatchSpec useStrictStringMatch */ + useStrictStringMatch?: (boolean|null); + } - /** - * Constructs a new ThresholdConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.IThresholdConfig); + /** Represents a ToolParameterKVMatchSpec. */ + class ToolParameterKVMatchSpec implements IToolParameterKVMatchSpec { - /** ThresholdConfig value. */ - public value?: (number|null); + /** + * Constructs a new ToolParameterKVMatchSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IToolParameterKVMatchSpec); - /** ThresholdConfig threshold. */ - public threshold?: "value"; + /** ToolParameterKVMatchSpec useStrictStringMatch. */ + public useStrictStringMatch: boolean; - /** - * Creates a new ThresholdConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns ThresholdConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.IThresholdConfig): google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ThresholdConfig; + /** + * Creates a new ToolParameterKVMatchSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns ToolParameterKVMatchSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IToolParameterKVMatchSpec): google.cloud.aiplatform.v1.ToolParameterKVMatchSpec; - /** - * Encodes the specified ThresholdConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ThresholdConfig.verify|verify} messages. - * @param message ThresholdConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.IThresholdConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified ToolParameterKVMatchSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.ToolParameterKVMatchSpec.verify|verify} messages. + * @param message ToolParameterKVMatchSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IToolParameterKVMatchSpec, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ThresholdConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ThresholdConfig.verify|verify} messages. - * @param message ThresholdConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.IThresholdConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified ToolParameterKVMatchSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ToolParameterKVMatchSpec.verify|verify} messages. + * @param message ToolParameterKVMatchSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IToolParameterKVMatchSpec, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a ThresholdConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ThresholdConfig - * @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.FeaturestoreMonitoringConfig.ThresholdConfig; + /** + * Decodes a ToolParameterKVMatchSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ToolParameterKVMatchSpec + * @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.ToolParameterKVMatchSpec; - /** - * Decodes a ThresholdConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ThresholdConfig - * @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.FeaturestoreMonitoringConfig.ThresholdConfig; + /** + * Decodes a ToolParameterKVMatchSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ToolParameterKVMatchSpec + * @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.ToolParameterKVMatchSpec; - /** - * Verifies a ThresholdConfig 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); + /** + * Verifies a ToolParameterKVMatchSpec 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 ThresholdConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ThresholdConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ThresholdConfig; + /** + * Creates a ToolParameterKVMatchSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ToolParameterKVMatchSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ToolParameterKVMatchSpec; - /** - * Creates a plain object from a ThresholdConfig message. Also converts values to other types if specified. - * @param message ThresholdConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.ThresholdConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a ToolParameterKVMatchSpec message. Also converts values to other types if specified. + * @param message ToolParameterKVMatchSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ToolParameterKVMatchSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this ThresholdConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this ToolParameterKVMatchSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for ThresholdConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Gets the default type url for ToolParameterKVMatchSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an EvaluatedAnnotation. */ - interface IEvaluatedAnnotation { - - /** EvaluatedAnnotation type */ - type?: (google.cloud.aiplatform.v1.EvaluatedAnnotation.EvaluatedAnnotationType|keyof typeof google.cloud.aiplatform.v1.EvaluatedAnnotation.EvaluatedAnnotationType|null); - - /** EvaluatedAnnotation predictions */ - predictions?: (google.protobuf.IValue[]|null); - - /** EvaluatedAnnotation groundTruths */ - groundTruths?: (google.protobuf.IValue[]|null); - - /** EvaluatedAnnotation dataItemPayload */ - dataItemPayload?: (google.protobuf.IValue|null); - - /** EvaluatedAnnotation evaluatedDataItemViewId */ - evaluatedDataItemViewId?: (string|null); + /** Properties of a ToolParameterKVMatchInstance. */ + interface IToolParameterKVMatchInstance { - /** EvaluatedAnnotation explanations */ - explanations?: (google.cloud.aiplatform.v1.IEvaluatedAnnotationExplanation[]|null); + /** ToolParameterKVMatchInstance prediction */ + prediction?: (string|null); - /** EvaluatedAnnotation errorAnalysisAnnotations */ - errorAnalysisAnnotations?: (google.cloud.aiplatform.v1.IErrorAnalysisAnnotation[]|null); + /** ToolParameterKVMatchInstance reference */ + reference?: (string|null); } - /** Represents an EvaluatedAnnotation. */ - class EvaluatedAnnotation implements IEvaluatedAnnotation { + /** Represents a ToolParameterKVMatchInstance. */ + class ToolParameterKVMatchInstance implements IToolParameterKVMatchInstance { /** - * Constructs a new EvaluatedAnnotation. + * Constructs a new ToolParameterKVMatchInstance. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IEvaluatedAnnotation); - - /** EvaluatedAnnotation type. */ - public type: (google.cloud.aiplatform.v1.EvaluatedAnnotation.EvaluatedAnnotationType|keyof typeof google.cloud.aiplatform.v1.EvaluatedAnnotation.EvaluatedAnnotationType); + constructor(properties?: google.cloud.aiplatform.v1.IToolParameterKVMatchInstance); - /** EvaluatedAnnotation predictions. */ - public predictions: google.protobuf.IValue[]; - - /** EvaluatedAnnotation groundTruths. */ - public groundTruths: google.protobuf.IValue[]; - - /** EvaluatedAnnotation dataItemPayload. */ - public dataItemPayload?: (google.protobuf.IValue|null); + /** ToolParameterKVMatchInstance prediction. */ + public prediction?: (string|null); - /** EvaluatedAnnotation evaluatedDataItemViewId. */ - public evaluatedDataItemViewId: string; + /** ToolParameterKVMatchInstance reference. */ + public reference?: (string|null); - /** EvaluatedAnnotation explanations. */ - public explanations: google.cloud.aiplatform.v1.IEvaluatedAnnotationExplanation[]; + /** ToolParameterKVMatchInstance _prediction. */ + public _prediction?: "prediction"; - /** EvaluatedAnnotation errorAnalysisAnnotations. */ - public errorAnalysisAnnotations: google.cloud.aiplatform.v1.IErrorAnalysisAnnotation[]; + /** ToolParameterKVMatchInstance _reference. */ + public _reference?: "reference"; /** - * Creates a new EvaluatedAnnotation instance using the specified properties. + * Creates a new ToolParameterKVMatchInstance instance using the specified properties. * @param [properties] Properties to set - * @returns EvaluatedAnnotation instance + * @returns ToolParameterKVMatchInstance instance */ - public static create(properties?: google.cloud.aiplatform.v1.IEvaluatedAnnotation): google.cloud.aiplatform.v1.EvaluatedAnnotation; + public static create(properties?: google.cloud.aiplatform.v1.IToolParameterKVMatchInstance): google.cloud.aiplatform.v1.ToolParameterKVMatchInstance; /** - * Encodes the specified EvaluatedAnnotation message. Does not implicitly {@link google.cloud.aiplatform.v1.EvaluatedAnnotation.verify|verify} messages. - * @param message EvaluatedAnnotation message or plain object to encode + * Encodes the specified ToolParameterKVMatchInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.ToolParameterKVMatchInstance.verify|verify} messages. + * @param message ToolParameterKVMatchInstance message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IEvaluatedAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IToolParameterKVMatchInstance, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified EvaluatedAnnotation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.EvaluatedAnnotation.verify|verify} messages. - * @param message EvaluatedAnnotation message or plain object to encode + * Encodes the specified ToolParameterKVMatchInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ToolParameterKVMatchInstance.verify|verify} messages. + * @param message ToolParameterKVMatchInstance message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IEvaluatedAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IToolParameterKVMatchInstance, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EvaluatedAnnotation message from the specified reader or buffer. + * Decodes a ToolParameterKVMatchInstance message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EvaluatedAnnotation + * @returns ToolParameterKVMatchInstance * @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.EvaluatedAnnotation; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ToolParameterKVMatchInstance; /** - * Decodes an EvaluatedAnnotation message from the specified reader or buffer, length delimited. + * Decodes a ToolParameterKVMatchInstance message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns EvaluatedAnnotation + * @returns ToolParameterKVMatchInstance * @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.EvaluatedAnnotation; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ToolParameterKVMatchInstance; /** - * Verifies an EvaluatedAnnotation message. + * Verifies a ToolParameterKVMatchInstance 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 EvaluatedAnnotation message from a plain object. Also converts values to their respective internal types. + * Creates a ToolParameterKVMatchInstance message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EvaluatedAnnotation + * @returns ToolParameterKVMatchInstance */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.EvaluatedAnnotation; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ToolParameterKVMatchInstance; /** - * Creates a plain object from an EvaluatedAnnotation message. Also converts values to other types if specified. - * @param message EvaluatedAnnotation + * Creates a plain object from a ToolParameterKVMatchInstance message. Also converts values to other types if specified. + * @param message ToolParameterKVMatchInstance * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.EvaluatedAnnotation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ToolParameterKVMatchInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EvaluatedAnnotation to JSON. + * Converts this ToolParameterKVMatchInstance to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for EvaluatedAnnotation + * Gets the default type url for ToolParameterKVMatchInstance * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace EvaluatedAnnotation { - - /** EvaluatedAnnotationType enum. */ - enum EvaluatedAnnotationType { - EVALUATED_ANNOTATION_TYPE_UNSPECIFIED = 0, - TRUE_POSITIVE = 1, - FALSE_POSITIVE = 2, - FALSE_NEGATIVE = 3 - } - } - - /** Properties of an EvaluatedAnnotationExplanation. */ - interface IEvaluatedAnnotationExplanation { - - /** EvaluatedAnnotationExplanation explanationType */ - explanationType?: (string|null); + /** Properties of a ToolParameterKVMatchResults. */ + interface IToolParameterKVMatchResults { - /** EvaluatedAnnotationExplanation explanation */ - explanation?: (google.cloud.aiplatform.v1.IExplanation|null); + /** ToolParameterKVMatchResults toolParameterKvMatchMetricValues */ + toolParameterKvMatchMetricValues?: (google.cloud.aiplatform.v1.IToolParameterKVMatchMetricValue[]|null); } - /** Represents an EvaluatedAnnotationExplanation. */ - class EvaluatedAnnotationExplanation implements IEvaluatedAnnotationExplanation { + /** Represents a ToolParameterKVMatchResults. */ + class ToolParameterKVMatchResults implements IToolParameterKVMatchResults { /** - * Constructs a new EvaluatedAnnotationExplanation. + * Constructs a new ToolParameterKVMatchResults. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IEvaluatedAnnotationExplanation); - - /** EvaluatedAnnotationExplanation explanationType. */ - public explanationType: string; + constructor(properties?: google.cloud.aiplatform.v1.IToolParameterKVMatchResults); - /** EvaluatedAnnotationExplanation explanation. */ - public explanation?: (google.cloud.aiplatform.v1.IExplanation|null); + /** ToolParameterKVMatchResults toolParameterKvMatchMetricValues. */ + public toolParameterKvMatchMetricValues: google.cloud.aiplatform.v1.IToolParameterKVMatchMetricValue[]; /** - * Creates a new EvaluatedAnnotationExplanation instance using the specified properties. + * Creates a new ToolParameterKVMatchResults instance using the specified properties. * @param [properties] Properties to set - * @returns EvaluatedAnnotationExplanation instance + * @returns ToolParameterKVMatchResults instance */ - public static create(properties?: google.cloud.aiplatform.v1.IEvaluatedAnnotationExplanation): google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation; + public static create(properties?: google.cloud.aiplatform.v1.IToolParameterKVMatchResults): google.cloud.aiplatform.v1.ToolParameterKVMatchResults; /** - * Encodes the specified EvaluatedAnnotationExplanation message. Does not implicitly {@link google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation.verify|verify} messages. - * @param message EvaluatedAnnotationExplanation message or plain object to encode + * Encodes the specified ToolParameterKVMatchResults message. Does not implicitly {@link google.cloud.aiplatform.v1.ToolParameterKVMatchResults.verify|verify} messages. + * @param message ToolParameterKVMatchResults message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IEvaluatedAnnotationExplanation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IToolParameterKVMatchResults, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified EvaluatedAnnotationExplanation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation.verify|verify} messages. - * @param message EvaluatedAnnotationExplanation message or plain object to encode + * Encodes the specified ToolParameterKVMatchResults message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ToolParameterKVMatchResults.verify|verify} messages. + * @param message ToolParameterKVMatchResults message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IEvaluatedAnnotationExplanation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IToolParameterKVMatchResults, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EvaluatedAnnotationExplanation message from the specified reader or buffer. + * Decodes a ToolParameterKVMatchResults message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EvaluatedAnnotationExplanation + * @returns ToolParameterKVMatchResults * @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.EvaluatedAnnotationExplanation; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ToolParameterKVMatchResults; /** - * Decodes an EvaluatedAnnotationExplanation message from the specified reader or buffer, length delimited. + * Decodes a ToolParameterKVMatchResults message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns EvaluatedAnnotationExplanation + * @returns ToolParameterKVMatchResults * @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.EvaluatedAnnotationExplanation; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ToolParameterKVMatchResults; /** - * Verifies an EvaluatedAnnotationExplanation message. + * Verifies a ToolParameterKVMatchResults 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 EvaluatedAnnotationExplanation message from a plain object. Also converts values to their respective internal types. + * Creates a ToolParameterKVMatchResults message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EvaluatedAnnotationExplanation + * @returns ToolParameterKVMatchResults */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ToolParameterKVMatchResults; /** - * Creates a plain object from an EvaluatedAnnotationExplanation message. Also converts values to other types if specified. - * @param message EvaluatedAnnotationExplanation + * Creates a plain object from a ToolParameterKVMatchResults message. Also converts values to other types if specified. + * @param message ToolParameterKVMatchResults * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ToolParameterKVMatchResults, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EvaluatedAnnotationExplanation to JSON. + * Converts this ToolParameterKVMatchResults to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for EvaluatedAnnotationExplanation + * Gets the default type url for ToolParameterKVMatchResults * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ErrorAnalysisAnnotation. */ - interface IErrorAnalysisAnnotation { - - /** ErrorAnalysisAnnotation attributedItems */ - attributedItems?: (google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.IAttributedItem[]|null); - - /** ErrorAnalysisAnnotation queryType */ - queryType?: (google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.QueryType|keyof typeof google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.QueryType|null); - - /** ErrorAnalysisAnnotation outlierScore */ - outlierScore?: (number|null); + /** Properties of a ToolParameterKVMatchMetricValue. */ + interface IToolParameterKVMatchMetricValue { - /** ErrorAnalysisAnnotation outlierThreshold */ - outlierThreshold?: (number|null); + /** ToolParameterKVMatchMetricValue score */ + score?: (number|null); } - /** Represents an ErrorAnalysisAnnotation. */ - class ErrorAnalysisAnnotation implements IErrorAnalysisAnnotation { + /** Represents a ToolParameterKVMatchMetricValue. */ + class ToolParameterKVMatchMetricValue implements IToolParameterKVMatchMetricValue { /** - * Constructs a new ErrorAnalysisAnnotation. + * Constructs a new ToolParameterKVMatchMetricValue. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IErrorAnalysisAnnotation); - - /** ErrorAnalysisAnnotation attributedItems. */ - public attributedItems: google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.IAttributedItem[]; - - /** ErrorAnalysisAnnotation queryType. */ - public queryType: (google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.QueryType|keyof typeof google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.QueryType); + constructor(properties?: google.cloud.aiplatform.v1.IToolParameterKVMatchMetricValue); - /** ErrorAnalysisAnnotation outlierScore. */ - public outlierScore: number; + /** ToolParameterKVMatchMetricValue score. */ + public score?: (number|null); - /** ErrorAnalysisAnnotation outlierThreshold. */ - public outlierThreshold: number; + /** ToolParameterKVMatchMetricValue _score. */ + public _score?: "score"; /** - * Creates a new ErrorAnalysisAnnotation instance using the specified properties. + * Creates a new ToolParameterKVMatchMetricValue instance using the specified properties. * @param [properties] Properties to set - * @returns ErrorAnalysisAnnotation instance + * @returns ToolParameterKVMatchMetricValue instance */ - public static create(properties?: google.cloud.aiplatform.v1.IErrorAnalysisAnnotation): google.cloud.aiplatform.v1.ErrorAnalysisAnnotation; + public static create(properties?: google.cloud.aiplatform.v1.IToolParameterKVMatchMetricValue): google.cloud.aiplatform.v1.ToolParameterKVMatchMetricValue; /** - * Encodes the specified ErrorAnalysisAnnotation message. Does not implicitly {@link google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.verify|verify} messages. - * @param message ErrorAnalysisAnnotation message or plain object to encode + * Encodes the specified ToolParameterKVMatchMetricValue message. Does not implicitly {@link google.cloud.aiplatform.v1.ToolParameterKVMatchMetricValue.verify|verify} messages. + * @param message ToolParameterKVMatchMetricValue message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IErrorAnalysisAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IToolParameterKVMatchMetricValue, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ErrorAnalysisAnnotation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.verify|verify} messages. - * @param message ErrorAnalysisAnnotation message or plain object to encode + * Encodes the specified ToolParameterKVMatchMetricValue message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ToolParameterKVMatchMetricValue.verify|verify} messages. + * @param message ToolParameterKVMatchMetricValue message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IErrorAnalysisAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IToolParameterKVMatchMetricValue, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ErrorAnalysisAnnotation message from the specified reader or buffer. + * Decodes a ToolParameterKVMatchMetricValue message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ErrorAnalysisAnnotation + * @returns ToolParameterKVMatchMetricValue * @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.ErrorAnalysisAnnotation; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ToolParameterKVMatchMetricValue; /** - * Decodes an ErrorAnalysisAnnotation message from the specified reader or buffer, length delimited. + * Decodes a ToolParameterKVMatchMetricValue message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ErrorAnalysisAnnotation + * @returns ToolParameterKVMatchMetricValue * @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.ErrorAnalysisAnnotation; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ToolParameterKVMatchMetricValue; /** - * Verifies an ErrorAnalysisAnnotation message. + * Verifies a ToolParameterKVMatchMetricValue 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 ErrorAnalysisAnnotation message from a plain object. Also converts values to their respective internal types. + * Creates a ToolParameterKVMatchMetricValue message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ErrorAnalysisAnnotation + * @returns ToolParameterKVMatchMetricValue */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ErrorAnalysisAnnotation; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ToolParameterKVMatchMetricValue; /** - * Creates a plain object from an ErrorAnalysisAnnotation message. Also converts values to other types if specified. - * @param message ErrorAnalysisAnnotation + * Creates a plain object from a ToolParameterKVMatchMetricValue message. Also converts values to other types if specified. + * @param message ToolParameterKVMatchMetricValue * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ErrorAnalysisAnnotation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ToolParameterKVMatchMetricValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ErrorAnalysisAnnotation to JSON. + * Converts this ToolParameterKVMatchMetricValue to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ErrorAnalysisAnnotation + * Gets the default type url for ToolParameterKVMatchMetricValue * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ErrorAnalysisAnnotation { - - /** Properties of an AttributedItem. */ - interface IAttributedItem { - - /** AttributedItem annotationResourceName */ - annotationResourceName?: (string|null); - - /** AttributedItem distance */ - distance?: (number|null); - } - - /** Represents an AttributedItem. */ - class AttributedItem implements IAttributedItem { - - /** - * Constructs a new AttributedItem. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.IAttributedItem); - - /** AttributedItem annotationResourceName. */ - public annotationResourceName: string; - - /** AttributedItem distance. */ - public distance: number; - - /** - * Creates a new AttributedItem instance using the specified properties. - * @param [properties] Properties to set - * @returns AttributedItem instance - */ - public static create(properties?: google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.IAttributedItem): google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem; - - /** - * Encodes the specified AttributedItem message. Does not implicitly {@link google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem.verify|verify} messages. - * @param message AttributedItem message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.IAttributedItem, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified AttributedItem message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem.verify|verify} messages. - * @param message AttributedItem message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.IAttributedItem, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an AttributedItem message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns AttributedItem - * @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.ErrorAnalysisAnnotation.AttributedItem; - - /** - * Decodes an AttributedItem message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AttributedItem - * @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.ErrorAnalysisAnnotation.AttributedItem; - - /** - * Verifies an AttributedItem 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 AttributedItem message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns AttributedItem - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem; - - /** - * Creates a plain object from an AttributedItem message. Also converts values to other types if specified. - * @param message AttributedItem - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.ErrorAnalysisAnnotation.AttributedItem, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this AttributedItem to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for AttributedItem - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** QueryType enum. */ - enum QueryType { - QUERY_TYPE_UNSPECIFIED = 0, - ALL_SIMILAR = 1, - SAME_CLASS_SIMILAR = 2, - SAME_CLASS_DISSIMILAR = 3 - } - } - /** Properties of an Event. */ interface IEvent { @@ -24775,6 +36351,9 @@ export namespace google { /** BigQuery entityIdColumns */ entityIdColumns?: (string[]|null); + + /** BigQuery timeSeries */ + timeSeries?: (google.cloud.aiplatform.v1.FeatureGroup.BigQuery.ITimeSeries|null); } /** Represents a BigQuery. */ @@ -24792,6 +36371,9 @@ export namespace google { /** BigQuery entityIdColumns. */ public entityIdColumns: string[]; + /** BigQuery timeSeries. */ + public timeSeries?: (google.cloud.aiplatform.v1.FeatureGroup.BigQuery.ITimeSeries|null); + /** * Creates a new BigQuery instance using the specified properties. * @param [properties] Properties to set @@ -24869,6 +36451,106 @@ export namespace google { */ public static getTypeUrl(typeUrlPrefix?: string): string; } + + namespace BigQuery { + + /** Properties of a TimeSeries. */ + interface ITimeSeries { + + /** TimeSeries timestampColumn */ + timestampColumn?: (string|null); + } + + /** Represents a TimeSeries. */ + class TimeSeries implements ITimeSeries { + + /** + * Constructs a new TimeSeries. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.FeatureGroup.BigQuery.ITimeSeries); + + /** TimeSeries timestampColumn. */ + public timestampColumn: string; + + /** + * Creates a new TimeSeries instance using the specified properties. + * @param [properties] Properties to set + * @returns TimeSeries instance + */ + public static create(properties?: google.cloud.aiplatform.v1.FeatureGroup.BigQuery.ITimeSeries): google.cloud.aiplatform.v1.FeatureGroup.BigQuery.TimeSeries; + + /** + * Encodes the specified TimeSeries message. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureGroup.BigQuery.TimeSeries.verify|verify} messages. + * @param message TimeSeries message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.FeatureGroup.BigQuery.ITimeSeries, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TimeSeries message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureGroup.BigQuery.TimeSeries.verify|verify} messages. + * @param message TimeSeries message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.FeatureGroup.BigQuery.ITimeSeries, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TimeSeries message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TimeSeries + * @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.FeatureGroup.BigQuery.TimeSeries; + + /** + * Decodes a TimeSeries message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TimeSeries + * @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.FeatureGroup.BigQuery.TimeSeries; + + /** + * Verifies a TimeSeries 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 TimeSeries message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TimeSeries + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.FeatureGroup.BigQuery.TimeSeries; + + /** + * Creates a plain object from a TimeSeries message. Also converts values to other types if specified. + * @param message TimeSeries + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.FeatureGroup.BigQuery.TimeSeries, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TimeSeries to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TimeSeries + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } } /** Properties of a FeatureOnlineStore. */ @@ -24903,6 +36585,12 @@ export namespace google { /** FeatureOnlineStore encryptionSpec */ encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + + /** FeatureOnlineStore satisfiesPzs */ + satisfiesPzs?: (boolean|null); + + /** FeatureOnlineStore satisfiesPzi */ + satisfiesPzi?: (boolean|null); } /** Represents a FeatureOnlineStore. */ @@ -24944,6 +36632,12 @@ export namespace google { /** FeatureOnlineStore encryptionSpec. */ public encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + /** FeatureOnlineStore satisfiesPzs. */ + public satisfiesPzs: boolean; + + /** FeatureOnlineStore satisfiesPzi. */ + public satisfiesPzi: boolean; + /** FeatureOnlineStore storageType. */ public storageType?: ("bigtable"|"optimized"); @@ -27945,6 +39639,12 @@ export namespace google { /** FeatureView indexConfig */ indexConfig?: (google.cloud.aiplatform.v1.FeatureView.IIndexConfig|null); + + /** FeatureView satisfiesPzs */ + satisfiesPzs?: (boolean|null); + + /** FeatureView satisfiesPzi */ + satisfiesPzi?: (boolean|null); } /** Represents a FeatureView. */ @@ -27983,6 +39683,12 @@ export namespace google { /** FeatureView indexConfig. */ public indexConfig?: (google.cloud.aiplatform.v1.FeatureView.IIndexConfig|null); + /** FeatureView satisfiesPzs. */ + public satisfiesPzs: boolean; + + /** FeatureView satisfiesPzi. */ + public satisfiesPzi: boolean; + /** FeatureView source. */ public source?: ("bigQuerySource"|"featureRegistrySource"); @@ -28837,6 +40543,12 @@ export namespace google { /** FeatureViewSync syncSummary */ syncSummary?: (google.cloud.aiplatform.v1.FeatureViewSync.ISyncSummary|null); + + /** FeatureViewSync satisfiesPzs */ + satisfiesPzs?: (boolean|null); + + /** FeatureViewSync satisfiesPzi */ + satisfiesPzi?: (boolean|null); } /** Represents a FeatureViewSync. */ @@ -28863,6 +40575,12 @@ export namespace google { /** FeatureViewSync syncSummary. */ public syncSummary?: (google.cloud.aiplatform.v1.FeatureViewSync.ISyncSummary|null); + /** FeatureViewSync satisfiesPzs. */ + public satisfiesPzs: boolean; + + /** FeatureViewSync satisfiesPzi. */ + public satisfiesPzi: boolean; + /** * Creates a new FeatureViewSync instance using the specified properties. * @param [properties] Properties to set @@ -40432,6 +52150,12 @@ export namespace google { /** Featurestore encryptionSpec */ encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + + /** Featurestore satisfiesPzs */ + satisfiesPzs?: (boolean|null); + + /** Featurestore satisfiesPzi */ + satisfiesPzi?: (boolean|null); } /** Represents a Featurestore. */ @@ -40470,6 +52194,12 @@ export namespace google { /** Featurestore encryptionSpec. */ public encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + /** Featurestore satisfiesPzs. */ + public satisfiesPzs: boolean; + + /** Featurestore satisfiesPzi. */ + public satisfiesPzi: boolean; + /** * Creates a new Featurestore instance using the specified properties. * @param [properties] Properties to set @@ -41978,6 +53708,12 @@ export namespace google { /** SupervisedTuningDataStats userDatasetExamples */ userDatasetExamples?: (google.cloud.aiplatform.v1.IContent[]|null); + + /** SupervisedTuningDataStats totalTruncatedExampleCount */ + totalTruncatedExampleCount?: (number|Long|string|null); + + /** SupervisedTuningDataStats truncatedExampleIndices */ + truncatedExampleIndices?: ((number|Long|string)[]|null); } /** Represents a SupervisedTuningDataStats. */ @@ -42016,6 +53752,12 @@ export namespace google { /** SupervisedTuningDataStats userDatasetExamples. */ public userDatasetExamples: google.cloud.aiplatform.v1.IContent[]; + /** SupervisedTuningDataStats totalTruncatedExampleCount. */ + public totalTruncatedExampleCount: (number|Long|string); + + /** SupervisedTuningDataStats truncatedExampleIndices. */ + public truncatedExampleIndices: (number|Long|string)[]; + /** * Creates a new SupervisedTuningDataStats instance using the specified properties. * @param [properties] Properties to set @@ -42474,6 +54216,12 @@ export namespace google { /** HyperparameterTuningJob encryptionSpec */ encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + + /** HyperparameterTuningJob satisfiesPzs */ + satisfiesPzs?: (boolean|null); + + /** HyperparameterTuningJob satisfiesPzi */ + satisfiesPzi?: (boolean|null); } /** Represents a HyperparameterTuningJob. */ @@ -42533,6 +54281,12 @@ export namespace google { /** HyperparameterTuningJob encryptionSpec. */ public encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + /** HyperparameterTuningJob satisfiesPzs. */ + public satisfiesPzs: boolean; + + /** HyperparameterTuningJob satisfiesPzi. */ + public satisfiesPzi: boolean; + /** * Creates a new HyperparameterTuningJob instance using the specified properties. * @param [properties] Properties to set @@ -45348,6 +57102,12 @@ export namespace google { /** Index encryptionSpec */ encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + + /** Index satisfiesPzs */ + satisfiesPzs?: (boolean|null); + + /** Index satisfiesPzi */ + satisfiesPzi?: (boolean|null); } /** Represents an Index. */ @@ -45398,6 +57158,12 @@ export namespace google { /** Index encryptionSpec. */ public encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + /** Index satisfiesPzs. */ + public satisfiesPzs: boolean; + + /** Index satisfiesPzi. */ + public satisfiesPzi: boolean; + /** * Creates a new Index instance using the specified properties. * @param [properties] Properties to set @@ -46216,6 +57982,12 @@ export namespace google { /** IndexEndpoint encryptionSpec */ encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + + /** IndexEndpoint satisfiesPzs */ + satisfiesPzs?: (boolean|null); + + /** IndexEndpoint satisfiesPzi */ + satisfiesPzi?: (boolean|null); } /** Represents an IndexEndpoint. */ @@ -46269,6 +58041,12 @@ export namespace google { /** IndexEndpoint encryptionSpec. */ public encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + /** IndexEndpoint satisfiesPzs. */ + public satisfiesPzs: boolean; + + /** IndexEndpoint satisfiesPzi. */ + public satisfiesPzi: boolean; + /** * Creates a new IndexEndpoint instance using the specified properties. * @param [properties] Properties to set @@ -55913,6 +67691,12 @@ export namespace google { /** ModelDeploymentMonitoringJob error */ error?: (google.rpc.IStatus|null); + + /** ModelDeploymentMonitoringJob satisfiesPzs */ + satisfiesPzs?: (boolean|null); + + /** ModelDeploymentMonitoringJob satisfiesPzi */ + satisfiesPzi?: (boolean|null); } /** Represents a ModelDeploymentMonitoringJob. */ @@ -55993,6 +67777,12 @@ export namespace google { /** ModelDeploymentMonitoringJob error. */ public error?: (google.rpc.IStatus|null); + /** ModelDeploymentMonitoringJob satisfiesPzs. */ + public satisfiesPzs: boolean; + + /** ModelDeploymentMonitoringJob satisfiesPzi. */ + public satisfiesPzi: boolean; + /** * Creates a new ModelDeploymentMonitoringJob instance using the specified properties. * @param [properties] Properties to set @@ -58000,6 +69790,12 @@ export namespace google { /** NasJob enableRestrictedImageTraining */ enableRestrictedImageTraining?: (boolean|null); + + /** NasJob satisfiesPzs */ + satisfiesPzs?: (boolean|null); + + /** NasJob satisfiesPzi */ + satisfiesPzi?: (boolean|null); } /** Represents a NasJob. */ @@ -58050,6 +69846,12 @@ export namespace google { /** NasJob enableRestrictedImageTraining. */ public enableRestrictedImageTraining: boolean; + /** NasJob satisfiesPzs. */ + public satisfiesPzs: boolean; + + /** NasJob satisfiesPzi. */ + public satisfiesPzi: boolean; + /** * Creates a new NasJob instance using the specified properties. * @param [properties] Properties to set @@ -72884,6 +84686,9 @@ export namespace google { /** GetPublisherModelRequest isHuggingFaceModel */ isHuggingFaceModel?: (boolean|null); + + /** GetPublisherModelRequest huggingFaceToken */ + huggingFaceToken?: (string|null); } /** Represents a GetPublisherModelRequest. */ @@ -72907,6 +84712,9 @@ export namespace google { /** GetPublisherModelRequest isHuggingFaceModel. */ public isHuggingFaceModel: boolean; + /** GetPublisherModelRequest huggingFaceToken. */ + public huggingFaceToken: string; + /** * Creates a new GetPublisherModelRequest instance using the specified properties. * @param [properties] Properties to set @@ -74130,6 +85938,9 @@ export namespace google { /** DeployMetadata labels */ labels?: ({ [k: string]: string }|null); + + /** DeployMetadata sampleRequest */ + sampleRequest?: (string|null); } /** Represents a DeployMetadata. */ @@ -74144,6 +85955,9 @@ export namespace google { /** DeployMetadata labels. */ public labels: { [k: string]: string }; + /** DeployMetadata sampleRequest. */ + public sampleRequest: string; + /** * Creates a new DeployMetadata instance using the specified properties. * @param [properties] Properties to set @@ -78565,6 +90379,9 @@ export namespace google { /** NotebookExecutionJob labels */ labels?: ({ [k: string]: string }|null); + + /** NotebookExecutionJob encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); } /** Represents a NotebookExecutionJob. */ @@ -78624,6 +90441,9 @@ export namespace google { /** NotebookExecutionJob labels. */ public labels: { [k: string]: string }; + /** NotebookExecutionJob encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + /** NotebookExecutionJob notebookSource. */ public notebookSource?: ("dataformRepositorySource"|"gcsNotebookSource"|"directNotebookSource"); @@ -114157,6 +125977,9 @@ export namespace google { /** MachineSpec tpuTopology */ tpuTopology?: (string|null); + + /** MachineSpec reservationAffinity */ + reservationAffinity?: (google.cloud.aiplatform.v1beta1.IReservationAffinity|null); } /** Represents a MachineSpec. */ @@ -114180,6 +126003,9 @@ export namespace google { /** MachineSpec tpuTopology. */ public tpuTopology: string; + /** MachineSpec reservationAffinity. */ + public reservationAffinity?: (google.cloud.aiplatform.v1beta1.IReservationAffinity|null); + /** * Creates a new MachineSpec instance using the specified properties. * @param [properties] Properties to set @@ -114272,6 +126098,9 @@ export namespace google { /** DedicatedResources autoscalingMetricSpecs */ autoscalingMetricSpecs?: (google.cloud.aiplatform.v1beta1.IAutoscalingMetricSpec[]|null); + + /** DedicatedResources spot */ + spot?: (boolean|null); } /** Represents a DedicatedResources. */ @@ -114295,6 +126124,9 @@ export namespace google { /** DedicatedResources autoscalingMetricSpecs. */ public autoscalingMetricSpecs: google.cloud.aiplatform.v1beta1.IAutoscalingMetricSpec[]; + /** DedicatedResources spot. */ + public spot: boolean; + /** * Creates a new DedicatedResources instance using the specified properties. * @param [properties] Properties to set @@ -115197,6 +127029,126 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a ReservationAffinity. */ + interface IReservationAffinity { + + /** ReservationAffinity reservationAffinityType */ + reservationAffinityType?: (google.cloud.aiplatform.v1beta1.ReservationAffinity.Type|keyof typeof google.cloud.aiplatform.v1beta1.ReservationAffinity.Type|null); + + /** ReservationAffinity key */ + key?: (string|null); + + /** ReservationAffinity values */ + values?: (string[]|null); + } + + /** Represents a ReservationAffinity. */ + class ReservationAffinity implements IReservationAffinity { + + /** + * Constructs a new ReservationAffinity. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IReservationAffinity); + + /** ReservationAffinity reservationAffinityType. */ + public reservationAffinityType: (google.cloud.aiplatform.v1beta1.ReservationAffinity.Type|keyof typeof google.cloud.aiplatform.v1beta1.ReservationAffinity.Type); + + /** ReservationAffinity key. */ + public key: string; + + /** ReservationAffinity values. */ + public values: string[]; + + /** + * Creates a new ReservationAffinity instance using the specified properties. + * @param [properties] Properties to set + * @returns ReservationAffinity instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IReservationAffinity): google.cloud.aiplatform.v1beta1.ReservationAffinity; + + /** + * Encodes the specified ReservationAffinity message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReservationAffinity.verify|verify} messages. + * @param message ReservationAffinity message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IReservationAffinity, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReservationAffinity message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReservationAffinity.verify|verify} messages. + * @param message ReservationAffinity message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IReservationAffinity, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReservationAffinity message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReservationAffinity + * @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.ReservationAffinity; + + /** + * Decodes a ReservationAffinity message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReservationAffinity + * @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.ReservationAffinity; + + /** + * Verifies a ReservationAffinity 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 ReservationAffinity message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReservationAffinity + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ReservationAffinity; + + /** + * Creates a plain object from a ReservationAffinity message. Also converts values to other types if specified. + * @param message ReservationAffinity + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ReservationAffinity, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReservationAffinity to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReservationAffinity + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace ReservationAffinity { + + /** Type enum. */ + enum Type { + TYPE_UNSPECIFIED = 0, + NO_RESERVATION = 1, + ANY_RESERVATION = 2, + SPECIFIC_RESERVATION = 3 + } + } + /** Properties of a ManualBatchTuningParameters. */ interface IManualBatchTuningParameters { @@ -115374,6 +127326,12 @@ export namespace google { /** ModelDeploymentMonitoringJob error */ error?: (google.rpc.IStatus|null); + + /** ModelDeploymentMonitoringJob satisfiesPzs */ + satisfiesPzs?: (boolean|null); + + /** ModelDeploymentMonitoringJob satisfiesPzi */ + satisfiesPzi?: (boolean|null); } /** Represents a ModelDeploymentMonitoringJob. */ @@ -115454,6 +127412,12 @@ export namespace google { /** ModelDeploymentMonitoringJob error. */ public error?: (google.rpc.IStatus|null); + /** ModelDeploymentMonitoringJob satisfiesPzs. */ + public satisfiesPzs: boolean; + + /** ModelDeploymentMonitoringJob satisfiesPzi. */ + public satisfiesPzi: boolean; + /** * Creates a new ModelDeploymentMonitoringJob instance using the specified properties. * @param [properties] Properties to set @@ -120318,11 +132282,17 @@ export namespace google { /** GenerationConfig frequencyPenalty */ frequencyPenalty?: (number|null); + /** GenerationConfig seed */ + seed?: (number|null); + /** GenerationConfig responseMimeType */ responseMimeType?: (string|null); /** GenerationConfig responseSchema */ responseSchema?: (google.cloud.aiplatform.v1beta1.ISchema|null); + + /** GenerationConfig routingConfig */ + routingConfig?: (google.cloud.aiplatform.v1beta1.GenerationConfig.IRoutingConfig|null); } /** Represents a GenerationConfig. */ @@ -120358,12 +132328,18 @@ export namespace google { /** GenerationConfig frequencyPenalty. */ public frequencyPenalty?: (number|null); + /** GenerationConfig seed. */ + public seed?: (number|null); + /** GenerationConfig responseMimeType. */ public responseMimeType: string; /** GenerationConfig responseSchema. */ public responseSchema?: (google.cloud.aiplatform.v1beta1.ISchema|null); + /** GenerationConfig routingConfig. */ + public routingConfig?: (google.cloud.aiplatform.v1beta1.GenerationConfig.IRoutingConfig|null); + /** GenerationConfig _temperature. */ public _temperature?: "temperature"; @@ -120385,9 +132361,15 @@ export namespace google { /** GenerationConfig _frequencyPenalty. */ public _frequencyPenalty?: "frequencyPenalty"; + /** GenerationConfig _seed. */ + public _seed?: "seed"; + /** GenerationConfig _responseSchema. */ public _responseSchema?: "responseSchema"; + /** GenerationConfig _routingConfig. */ + public _routingConfig?: "routingConfig"; + /** * Creates a new GenerationConfig instance using the specified properties. * @param [properties] Properties to set @@ -120466,6 +132448,329 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + namespace GenerationConfig { + + /** Properties of a RoutingConfig. */ + interface IRoutingConfig { + + /** RoutingConfig autoMode */ + autoMode?: (google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.IAutoRoutingMode|null); + + /** RoutingConfig manualMode */ + manualMode?: (google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.IManualRoutingMode|null); + } + + /** Represents a RoutingConfig. */ + class RoutingConfig implements IRoutingConfig { + + /** + * Constructs a new RoutingConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.GenerationConfig.IRoutingConfig); + + /** RoutingConfig autoMode. */ + public autoMode?: (google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.IAutoRoutingMode|null); + + /** RoutingConfig manualMode. */ + public manualMode?: (google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.IManualRoutingMode|null); + + /** RoutingConfig routingConfig. */ + public routingConfig?: ("autoMode"|"manualMode"); + + /** + * Creates a new RoutingConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns RoutingConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.GenerationConfig.IRoutingConfig): google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig; + + /** + * Encodes the specified RoutingConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.verify|verify} messages. + * @param message RoutingConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.GenerationConfig.IRoutingConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RoutingConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.verify|verify} messages. + * @param message RoutingConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.GenerationConfig.IRoutingConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RoutingConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RoutingConfig + * @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.GenerationConfig.RoutingConfig; + + /** + * Decodes a RoutingConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RoutingConfig + * @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.GenerationConfig.RoutingConfig; + + /** + * Verifies a RoutingConfig 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 RoutingConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RoutingConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig; + + /** + * Creates a plain object from a RoutingConfig message. Also converts values to other types if specified. + * @param message RoutingConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RoutingConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RoutingConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace RoutingConfig { + + /** Properties of an AutoRoutingMode. */ + interface IAutoRoutingMode { + + /** AutoRoutingMode modelRoutingPreference */ + modelRoutingPreference?: (google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.AutoRoutingMode.ModelRoutingPreference|keyof typeof google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.AutoRoutingMode.ModelRoutingPreference|null); + } + + /** Represents an AutoRoutingMode. */ + class AutoRoutingMode implements IAutoRoutingMode { + + /** + * Constructs a new AutoRoutingMode. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.IAutoRoutingMode); + + /** AutoRoutingMode modelRoutingPreference. */ + public modelRoutingPreference?: (google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.AutoRoutingMode.ModelRoutingPreference|keyof typeof google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.AutoRoutingMode.ModelRoutingPreference|null); + + /** AutoRoutingMode _modelRoutingPreference. */ + public _modelRoutingPreference?: "modelRoutingPreference"; + + /** + * Creates a new AutoRoutingMode instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoRoutingMode instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.IAutoRoutingMode): google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.AutoRoutingMode; + + /** + * Encodes the specified AutoRoutingMode message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.AutoRoutingMode.verify|verify} messages. + * @param message AutoRoutingMode message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.IAutoRoutingMode, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutoRoutingMode message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.AutoRoutingMode.verify|verify} messages. + * @param message AutoRoutingMode message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.IAutoRoutingMode, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutoRoutingMode message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoRoutingMode + * @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.GenerationConfig.RoutingConfig.AutoRoutingMode; + + /** + * Decodes an AutoRoutingMode message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoRoutingMode + * @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.GenerationConfig.RoutingConfig.AutoRoutingMode; + + /** + * Verifies an AutoRoutingMode 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 AutoRoutingMode message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoRoutingMode + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.AutoRoutingMode; + + /** + * Creates a plain object from an AutoRoutingMode message. Also converts values to other types if specified. + * @param message AutoRoutingMode + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.AutoRoutingMode, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutoRoutingMode to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AutoRoutingMode + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace AutoRoutingMode { + + /** ModelRoutingPreference enum. */ + enum ModelRoutingPreference { + UNKNOWN = 0, + PRIORITIZE_QUALITY = 1, + BALANCED = 2, + PRIORITIZE_COST = 3 + } + } + + /** Properties of a ManualRoutingMode. */ + interface IManualRoutingMode { + + /** ManualRoutingMode modelName */ + modelName?: (string|null); + } + + /** Represents a ManualRoutingMode. */ + class ManualRoutingMode implements IManualRoutingMode { + + /** + * Constructs a new ManualRoutingMode. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.IManualRoutingMode); + + /** ManualRoutingMode modelName. */ + public modelName?: (string|null); + + /** ManualRoutingMode _modelName. */ + public _modelName?: "modelName"; + + /** + * Creates a new ManualRoutingMode instance using the specified properties. + * @param [properties] Properties to set + * @returns ManualRoutingMode instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.IManualRoutingMode): google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.ManualRoutingMode; + + /** + * Encodes the specified ManualRoutingMode message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.ManualRoutingMode.verify|verify} messages. + * @param message ManualRoutingMode message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.IManualRoutingMode, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ManualRoutingMode message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.ManualRoutingMode.verify|verify} messages. + * @param message ManualRoutingMode message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.IManualRoutingMode, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ManualRoutingMode message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ManualRoutingMode + * @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.GenerationConfig.RoutingConfig.ManualRoutingMode; + + /** + * Decodes a ManualRoutingMode message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ManualRoutingMode + * @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.GenerationConfig.RoutingConfig.ManualRoutingMode; + + /** + * Verifies a ManualRoutingMode 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 ManualRoutingMode message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ManualRoutingMode + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.ManualRoutingMode; + + /** + * Creates a plain object from a ManualRoutingMode message. Also converts values to other types if specified. + * @param message ManualRoutingMode + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.ManualRoutingMode, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ManualRoutingMode to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ManualRoutingMode + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + } + /** Properties of a SafetySetting. */ interface ISafetySetting { @@ -120975,6 +133280,9 @@ export namespace google { /** Candidate content */ content?: (google.cloud.aiplatform.v1beta1.IContent|null); + /** Candidate avgLogprobs */ + avgLogprobs?: (number|null); + /** Candidate finishReason */ finishReason?: (google.cloud.aiplatform.v1beta1.Candidate.FinishReason|keyof typeof google.cloud.aiplatform.v1beta1.Candidate.FinishReason|null); @@ -121006,6 +133314,9 @@ export namespace google { /** Candidate content. */ public content?: (google.cloud.aiplatform.v1beta1.IContent|null); + /** Candidate avgLogprobs. */ + public avgLogprobs: number; + /** Candidate finishReason. */ public finishReason: (google.cloud.aiplatform.v1beta1.Candidate.FinishReason|keyof typeof google.cloud.aiplatform.v1beta1.Candidate.FinishReason); @@ -121673,336 +133984,6 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GroundingAttribution. */ - interface IGroundingAttribution { - - /** GroundingAttribution web */ - web?: (google.cloud.aiplatform.v1beta1.GroundingAttribution.IWeb|null); - - /** GroundingAttribution retrievedContext */ - retrievedContext?: (google.cloud.aiplatform.v1beta1.GroundingAttribution.IRetrievedContext|null); - - /** GroundingAttribution segment */ - segment?: (google.cloud.aiplatform.v1beta1.ISegment|null); - - /** GroundingAttribution confidenceScore */ - confidenceScore?: (number|null); - } - - /** Represents a GroundingAttribution. */ - class GroundingAttribution implements IGroundingAttribution { - - /** - * Constructs a new GroundingAttribution. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGroundingAttribution); - - /** GroundingAttribution web. */ - public web?: (google.cloud.aiplatform.v1beta1.GroundingAttribution.IWeb|null); - - /** GroundingAttribution retrievedContext. */ - public retrievedContext?: (google.cloud.aiplatform.v1beta1.GroundingAttribution.IRetrievedContext|null); - - /** GroundingAttribution segment. */ - public segment?: (google.cloud.aiplatform.v1beta1.ISegment|null); - - /** GroundingAttribution confidenceScore. */ - public confidenceScore?: (number|null); - - /** GroundingAttribution reference. */ - public reference?: ("web"|"retrievedContext"); - - /** GroundingAttribution _confidenceScore. */ - public _confidenceScore?: "confidenceScore"; - - /** - * Creates a new GroundingAttribution instance using the specified properties. - * @param [properties] Properties to set - * @returns GroundingAttribution instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGroundingAttribution): google.cloud.aiplatform.v1beta1.GroundingAttribution; - - /** - * Encodes the specified GroundingAttribution message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundingAttribution.verify|verify} messages. - * @param message GroundingAttribution message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGroundingAttribution, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified GroundingAttribution message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundingAttribution.verify|verify} messages. - * @param message GroundingAttribution message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGroundingAttribution, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GroundingAttribution message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GroundingAttribution - * @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.GroundingAttribution; - - /** - * Decodes a GroundingAttribution message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GroundingAttribution - * @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.GroundingAttribution; - - /** - * Verifies a GroundingAttribution 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 GroundingAttribution message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GroundingAttribution - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GroundingAttribution; - - /** - * Creates a plain object from a GroundingAttribution message. Also converts values to other types if specified. - * @param message GroundingAttribution - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GroundingAttribution, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GroundingAttribution to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GroundingAttribution - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace GroundingAttribution { - - /** Properties of a Web. */ - interface IWeb { - - /** Web uri */ - uri?: (string|null); - - /** Web title */ - title?: (string|null); - } - - /** Represents a Web. */ - class Web implements IWeb { - - /** - * Constructs a new Web. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.GroundingAttribution.IWeb); - - /** Web uri. */ - public uri: string; - - /** Web title. */ - public title: string; - - /** - * Creates a new Web instance using the specified properties. - * @param [properties] Properties to set - * @returns Web instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.GroundingAttribution.IWeb): google.cloud.aiplatform.v1beta1.GroundingAttribution.Web; - - /** - * Encodes the specified Web message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundingAttribution.Web.verify|verify} messages. - * @param message Web message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.GroundingAttribution.IWeb, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Web message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundingAttribution.Web.verify|verify} messages. - * @param message Web message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.GroundingAttribution.IWeb, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Web message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Web - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GroundingAttribution.Web; - - /** - * Decodes a Web message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Web - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GroundingAttribution.Web; - - /** - * Verifies a Web message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Web message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Web - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GroundingAttribution.Web; - - /** - * Creates a plain object from a Web message. Also converts values to other types if specified. - * @param message Web - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GroundingAttribution.Web, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Web to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Web - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a RetrievedContext. */ - interface IRetrievedContext { - - /** RetrievedContext uri */ - uri?: (string|null); - - /** RetrievedContext title */ - title?: (string|null); - } - - /** Represents a RetrievedContext. */ - class RetrievedContext implements IRetrievedContext { - - /** - * Constructs a new RetrievedContext. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.GroundingAttribution.IRetrievedContext); - - /** RetrievedContext uri. */ - public uri: string; - - /** RetrievedContext title. */ - public title: string; - - /** - * Creates a new RetrievedContext instance using the specified properties. - * @param [properties] Properties to set - * @returns RetrievedContext instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.GroundingAttribution.IRetrievedContext): google.cloud.aiplatform.v1beta1.GroundingAttribution.RetrievedContext; - - /** - * Encodes the specified RetrievedContext message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundingAttribution.RetrievedContext.verify|verify} messages. - * @param message RetrievedContext message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.GroundingAttribution.IRetrievedContext, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RetrievedContext message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundingAttribution.RetrievedContext.verify|verify} messages. - * @param message RetrievedContext message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.GroundingAttribution.IRetrievedContext, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RetrievedContext message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RetrievedContext - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GroundingAttribution.RetrievedContext; - - /** - * Decodes a RetrievedContext message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RetrievedContext - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GroundingAttribution.RetrievedContext; - - /** - * Verifies a RetrievedContext message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RetrievedContext message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RetrievedContext - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GroundingAttribution.RetrievedContext; - - /** - * Creates a plain object from a RetrievedContext message. Also converts values to other types if specified. - * @param message RetrievedContext - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GroundingAttribution.RetrievedContext, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RetrievedContext to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RetrievedContext - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - /** Properties of a GroundingMetadata. */ interface IGroundingMetadata { @@ -122015,9 +133996,6 @@ export namespace google { /** GroundingMetadata retrievalQueries */ retrievalQueries?: (string[]|null); - /** GroundingMetadata groundingAttributions */ - groundingAttributions?: (google.cloud.aiplatform.v1beta1.IGroundingAttribution[]|null); - /** GroundingMetadata groundingChunks */ groundingChunks?: (google.cloud.aiplatform.v1beta1.IGroundingChunk[]|null); @@ -122043,9 +134021,6 @@ export namespace google { /** GroundingMetadata retrievalQueries. */ public retrievalQueries: string[]; - /** GroundingMetadata groundingAttributions. */ - public groundingAttributions: google.cloud.aiplatform.v1beta1.IGroundingAttribution[]; - /** GroundingMetadata groundingChunks. */ public groundingChunks: google.cloud.aiplatform.v1beta1.IGroundingChunk[]; @@ -123568,9 +135543,6 @@ export namespace google { /** Properties of a GoogleSearchRetrieval. */ interface IGoogleSearchRetrieval { - - /** GoogleSearchRetrieval disableAttribution */ - disableAttribution?: (boolean|null); } /** Represents a GoogleSearchRetrieval. */ @@ -123582,9 +135554,6 @@ export namespace google { */ constructor(properties?: google.cloud.aiplatform.v1beta1.IGoogleSearchRetrieval); - /** GoogleSearchRetrieval disableAttribution. */ - public disableAttribution: boolean; - /** * Creates a new GoogleSearchRetrieval instance using the specified properties. * @param [properties] Properties to set @@ -124069,6 +136038,12 @@ export namespace google { /** CustomJob webAccessUris */ webAccessUris?: ({ [k: string]: string }|null); + + /** CustomJob satisfiesPzs */ + satisfiesPzs?: (boolean|null); + + /** CustomJob satisfiesPzi */ + satisfiesPzi?: (boolean|null); } /** Represents a CustomJob. */ @@ -124116,6 +136091,12 @@ export namespace google { /** CustomJob webAccessUris. */ public webAccessUris: { [k: string]: string }; + /** CustomJob satisfiesPzs. */ + public satisfiesPzs: boolean; + + /** CustomJob satisfiesPzi. */ + public satisfiesPzi: boolean; + /** * Creates a new CustomJob instance using the specified properties. * @param [properties] Properties to set @@ -124856,7 +136837,9 @@ export namespace google { enum Strategy { STRATEGY_UNSPECIFIED = 0, ON_DEMAND = 1, - LOW_COST = 2 + LOW_COST = 2, + STANDARD = 3, + SPOT = 4 } } @@ -132686,6 +144669,9 @@ export namespace google { /** PrivateServiceConnectConfig projectAllowlist */ projectAllowlist?: (string[]|null); + + /** PrivateServiceConnectConfig serviceAttachment */ + serviceAttachment?: (string|null); } /** Represents a PrivateServiceConnectConfig. */ @@ -132703,6 +144689,9 @@ export namespace google { /** PrivateServiceConnectConfig projectAllowlist. */ public projectAllowlist: string[]; + /** PrivateServiceConnectConfig serviceAttachment. */ + public serviceAttachment: string; + /** * Creates a new PrivateServiceConnectConfig instance using the specified properties. * @param [properties] Properties to set @@ -134835,6 +146824,12 @@ export namespace google { /** EntityType offlineStorageTtlDays */ offlineStorageTtlDays?: (number|null); + + /** EntityType satisfiesPzs */ + satisfiesPzs?: (boolean|null); + + /** EntityType satisfiesPzi */ + satisfiesPzi?: (boolean|null); } /** Represents an EntityType. */ @@ -134870,6 +146865,12 @@ export namespace google { /** EntityType offlineStorageTtlDays. */ public offlineStorageTtlDays: number; + /** EntityType satisfiesPzs. */ + public satisfiesPzs: boolean; + + /** EntityType satisfiesPzi. */ + public satisfiesPzi: boolean; + /** * Creates a new EntityType instance using the specified properties. * @param [properties] Properties to set @@ -135986,6 +147987,12 @@ export namespace google { /** EvaluateInstancesRequest questionAnsweringCorrectnessInput */ questionAnsweringCorrectnessInput?: (google.cloud.aiplatform.v1beta1.IQuestionAnsweringCorrectnessInput|null); + /** EvaluateInstancesRequest pointwiseMetricInput */ + pointwiseMetricInput?: (google.cloud.aiplatform.v1beta1.IPointwiseMetricInput|null); + + /** EvaluateInstancesRequest pairwiseMetricInput */ + pairwiseMetricInput?: (google.cloud.aiplatform.v1beta1.IPairwiseMetricInput|null); + /** EvaluateInstancesRequest toolCallValidInput */ toolCallValidInput?: (google.cloud.aiplatform.v1beta1.IToolCallValidInput|null); @@ -136062,6 +148069,12 @@ export namespace google { /** EvaluateInstancesRequest questionAnsweringCorrectnessInput. */ public questionAnsweringCorrectnessInput?: (google.cloud.aiplatform.v1beta1.IQuestionAnsweringCorrectnessInput|null); + /** EvaluateInstancesRequest pointwiseMetricInput. */ + public pointwiseMetricInput?: (google.cloud.aiplatform.v1beta1.IPointwiseMetricInput|null); + + /** EvaluateInstancesRequest pairwiseMetricInput. */ + public pairwiseMetricInput?: (google.cloud.aiplatform.v1beta1.IPairwiseMetricInput|null); + /** EvaluateInstancesRequest toolCallValidInput. */ public toolCallValidInput?: (google.cloud.aiplatform.v1beta1.IToolCallValidInput|null); @@ -136078,7 +148091,7 @@ export namespace google { public location: string; /** EvaluateInstancesRequest metricInputs. */ - public metricInputs?: ("exactMatchInput"|"bleuInput"|"rougeInput"|"fluencyInput"|"coherenceInput"|"safetyInput"|"groundednessInput"|"fulfillmentInput"|"summarizationQualityInput"|"pairwiseSummarizationQualityInput"|"summarizationHelpfulnessInput"|"summarizationVerbosityInput"|"questionAnsweringQualityInput"|"pairwiseQuestionAnsweringQualityInput"|"questionAnsweringRelevanceInput"|"questionAnsweringHelpfulnessInput"|"questionAnsweringCorrectnessInput"|"toolCallValidInput"|"toolNameMatchInput"|"toolParameterKeyMatchInput"|"toolParameterKvMatchInput"); + public metricInputs?: ("exactMatchInput"|"bleuInput"|"rougeInput"|"fluencyInput"|"coherenceInput"|"safetyInput"|"groundednessInput"|"fulfillmentInput"|"summarizationQualityInput"|"pairwiseSummarizationQualityInput"|"summarizationHelpfulnessInput"|"summarizationVerbosityInput"|"questionAnsweringQualityInput"|"pairwiseQuestionAnsweringQualityInput"|"questionAnsweringRelevanceInput"|"questionAnsweringHelpfulnessInput"|"questionAnsweringCorrectnessInput"|"pointwiseMetricInput"|"pairwiseMetricInput"|"toolCallValidInput"|"toolNameMatchInput"|"toolParameterKeyMatchInput"|"toolParameterKvMatchInput"); /** * Creates a new EvaluateInstancesRequest instance using the specified properties. @@ -136212,6 +148225,12 @@ export namespace google { /** EvaluateInstancesResponse questionAnsweringCorrectnessResult */ questionAnsweringCorrectnessResult?: (google.cloud.aiplatform.v1beta1.IQuestionAnsweringCorrectnessResult|null); + /** EvaluateInstancesResponse pointwiseMetricResult */ + pointwiseMetricResult?: (google.cloud.aiplatform.v1beta1.IPointwiseMetricResult|null); + + /** EvaluateInstancesResponse pairwiseMetricResult */ + pairwiseMetricResult?: (google.cloud.aiplatform.v1beta1.IPairwiseMetricResult|null); + /** EvaluateInstancesResponse toolCallValidResults */ toolCallValidResults?: (google.cloud.aiplatform.v1beta1.IToolCallValidResults|null); @@ -136285,6 +148304,12 @@ export namespace google { /** EvaluateInstancesResponse questionAnsweringCorrectnessResult. */ public questionAnsweringCorrectnessResult?: (google.cloud.aiplatform.v1beta1.IQuestionAnsweringCorrectnessResult|null); + /** EvaluateInstancesResponse pointwiseMetricResult. */ + public pointwiseMetricResult?: (google.cloud.aiplatform.v1beta1.IPointwiseMetricResult|null); + + /** EvaluateInstancesResponse pairwiseMetricResult. */ + public pairwiseMetricResult?: (google.cloud.aiplatform.v1beta1.IPairwiseMetricResult|null); + /** EvaluateInstancesResponse toolCallValidResults. */ public toolCallValidResults?: (google.cloud.aiplatform.v1beta1.IToolCallValidResults|null); @@ -136298,7 +148323,7 @@ export namespace google { public toolParameterKvMatchResults?: (google.cloud.aiplatform.v1beta1.IToolParameterKVMatchResults|null); /** EvaluateInstancesResponse evaluationResults. */ - public evaluationResults?: ("exactMatchResults"|"bleuResults"|"rougeResults"|"fluencyResult"|"coherenceResult"|"safetyResult"|"groundednessResult"|"fulfillmentResult"|"summarizationQualityResult"|"pairwiseSummarizationQualityResult"|"summarizationHelpfulnessResult"|"summarizationVerbosityResult"|"questionAnsweringQualityResult"|"pairwiseQuestionAnsweringQualityResult"|"questionAnsweringRelevanceResult"|"questionAnsweringHelpfulnessResult"|"questionAnsweringCorrectnessResult"|"toolCallValidResults"|"toolNameMatchResults"|"toolParameterKeyMatchResults"|"toolParameterKvMatchResults"); + public evaluationResults?: ("exactMatchResults"|"bleuResults"|"rougeResults"|"fluencyResult"|"coherenceResult"|"safetyResult"|"groundednessResult"|"fulfillmentResult"|"summarizationQualityResult"|"pairwiseSummarizationQualityResult"|"summarizationHelpfulnessResult"|"summarizationVerbosityResult"|"questionAnsweringQualityResult"|"pairwiseQuestionAnsweringQualityResult"|"questionAnsweringRelevanceResult"|"questionAnsweringHelpfulnessResult"|"questionAnsweringCorrectnessResult"|"pointwiseMetricResult"|"pairwiseMetricResult"|"toolCallValidResults"|"toolNameMatchResults"|"toolParameterKeyMatchResults"|"toolParameterKvMatchResults"); /** * Creates a new EvaluateInstancesResponse instance using the specified properties. @@ -144039,6 +156064,821 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a PointwiseMetricInput. */ + interface IPointwiseMetricInput { + + /** PointwiseMetricInput metricSpec */ + metricSpec?: (google.cloud.aiplatform.v1beta1.IPointwiseMetricSpec|null); + + /** PointwiseMetricInput instance */ + instance?: (google.cloud.aiplatform.v1beta1.IPointwiseMetricInstance|null); + } + + /** Represents a PointwiseMetricInput. */ + class PointwiseMetricInput implements IPointwiseMetricInput { + + /** + * Constructs a new PointwiseMetricInput. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IPointwiseMetricInput); + + /** PointwiseMetricInput metricSpec. */ + public metricSpec?: (google.cloud.aiplatform.v1beta1.IPointwiseMetricSpec|null); + + /** PointwiseMetricInput instance. */ + public instance?: (google.cloud.aiplatform.v1beta1.IPointwiseMetricInstance|null); + + /** + * Creates a new PointwiseMetricInput instance using the specified properties. + * @param [properties] Properties to set + * @returns PointwiseMetricInput instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IPointwiseMetricInput): google.cloud.aiplatform.v1beta1.PointwiseMetricInput; + + /** + * Encodes the specified PointwiseMetricInput message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PointwiseMetricInput.verify|verify} messages. + * @param message PointwiseMetricInput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IPointwiseMetricInput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PointwiseMetricInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PointwiseMetricInput.verify|verify} messages. + * @param message PointwiseMetricInput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPointwiseMetricInput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PointwiseMetricInput message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PointwiseMetricInput + * @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.PointwiseMetricInput; + + /** + * Decodes a PointwiseMetricInput message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PointwiseMetricInput + * @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.PointwiseMetricInput; + + /** + * Verifies a PointwiseMetricInput 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 PointwiseMetricInput message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PointwiseMetricInput + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PointwiseMetricInput; + + /** + * Creates a plain object from a PointwiseMetricInput message. Also converts values to other types if specified. + * @param message PointwiseMetricInput + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.PointwiseMetricInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PointwiseMetricInput to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PointwiseMetricInput + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a PointwiseMetricInstance. */ + interface IPointwiseMetricInstance { + + /** PointwiseMetricInstance jsonInstance */ + jsonInstance?: (string|null); + } + + /** Represents a PointwiseMetricInstance. */ + class PointwiseMetricInstance implements IPointwiseMetricInstance { + + /** + * Constructs a new PointwiseMetricInstance. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IPointwiseMetricInstance); + + /** PointwiseMetricInstance jsonInstance. */ + public jsonInstance?: (string|null); + + /** PointwiseMetricInstance instance. */ + public instance?: "jsonInstance"; + + /** + * Creates a new PointwiseMetricInstance instance using the specified properties. + * @param [properties] Properties to set + * @returns PointwiseMetricInstance instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IPointwiseMetricInstance): google.cloud.aiplatform.v1beta1.PointwiseMetricInstance; + + /** + * Encodes the specified PointwiseMetricInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PointwiseMetricInstance.verify|verify} messages. + * @param message PointwiseMetricInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IPointwiseMetricInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PointwiseMetricInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PointwiseMetricInstance.verify|verify} messages. + * @param message PointwiseMetricInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPointwiseMetricInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PointwiseMetricInstance message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PointwiseMetricInstance + * @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.PointwiseMetricInstance; + + /** + * Decodes a PointwiseMetricInstance message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PointwiseMetricInstance + * @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.PointwiseMetricInstance; + + /** + * Verifies a PointwiseMetricInstance 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 PointwiseMetricInstance message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PointwiseMetricInstance + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PointwiseMetricInstance; + + /** + * Creates a plain object from a PointwiseMetricInstance message. Also converts values to other types if specified. + * @param message PointwiseMetricInstance + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.PointwiseMetricInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PointwiseMetricInstance to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PointwiseMetricInstance + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a PointwiseMetricSpec. */ + interface IPointwiseMetricSpec { + + /** PointwiseMetricSpec metricPromptTemplate */ + metricPromptTemplate?: (string|null); + } + + /** Represents a PointwiseMetricSpec. */ + class PointwiseMetricSpec implements IPointwiseMetricSpec { + + /** + * Constructs a new PointwiseMetricSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IPointwiseMetricSpec); + + /** PointwiseMetricSpec metricPromptTemplate. */ + public metricPromptTemplate?: (string|null); + + /** PointwiseMetricSpec _metricPromptTemplate. */ + public _metricPromptTemplate?: "metricPromptTemplate"; + + /** + * Creates a new PointwiseMetricSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns PointwiseMetricSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IPointwiseMetricSpec): google.cloud.aiplatform.v1beta1.PointwiseMetricSpec; + + /** + * Encodes the specified PointwiseMetricSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PointwiseMetricSpec.verify|verify} messages. + * @param message PointwiseMetricSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IPointwiseMetricSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PointwiseMetricSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PointwiseMetricSpec.verify|verify} messages. + * @param message PointwiseMetricSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPointwiseMetricSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PointwiseMetricSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PointwiseMetricSpec + * @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.PointwiseMetricSpec; + + /** + * Decodes a PointwiseMetricSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PointwiseMetricSpec + * @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.PointwiseMetricSpec; + + /** + * Verifies a PointwiseMetricSpec 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 PointwiseMetricSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PointwiseMetricSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PointwiseMetricSpec; + + /** + * Creates a plain object from a PointwiseMetricSpec message. Also converts values to other types if specified. + * @param message PointwiseMetricSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.PointwiseMetricSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PointwiseMetricSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PointwiseMetricSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a PointwiseMetricResult. */ + interface IPointwiseMetricResult { + + /** PointwiseMetricResult score */ + score?: (number|null); + + /** PointwiseMetricResult explanation */ + explanation?: (string|null); + } + + /** Represents a PointwiseMetricResult. */ + class PointwiseMetricResult implements IPointwiseMetricResult { + + /** + * Constructs a new PointwiseMetricResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IPointwiseMetricResult); + + /** PointwiseMetricResult score. */ + public score?: (number|null); + + /** PointwiseMetricResult explanation. */ + public explanation: string; + + /** PointwiseMetricResult _score. */ + public _score?: "score"; + + /** + * Creates a new PointwiseMetricResult instance using the specified properties. + * @param [properties] Properties to set + * @returns PointwiseMetricResult instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IPointwiseMetricResult): google.cloud.aiplatform.v1beta1.PointwiseMetricResult; + + /** + * Encodes the specified PointwiseMetricResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PointwiseMetricResult.verify|verify} messages. + * @param message PointwiseMetricResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IPointwiseMetricResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PointwiseMetricResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PointwiseMetricResult.verify|verify} messages. + * @param message PointwiseMetricResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPointwiseMetricResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PointwiseMetricResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PointwiseMetricResult + * @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.PointwiseMetricResult; + + /** + * Decodes a PointwiseMetricResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PointwiseMetricResult + * @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.PointwiseMetricResult; + + /** + * Verifies a PointwiseMetricResult 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 PointwiseMetricResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PointwiseMetricResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PointwiseMetricResult; + + /** + * Creates a plain object from a PointwiseMetricResult message. Also converts values to other types if specified. + * @param message PointwiseMetricResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.PointwiseMetricResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PointwiseMetricResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PointwiseMetricResult + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a PairwiseMetricInput. */ + interface IPairwiseMetricInput { + + /** PairwiseMetricInput metricSpec */ + metricSpec?: (google.cloud.aiplatform.v1beta1.IPairwiseMetricSpec|null); + + /** PairwiseMetricInput instance */ + instance?: (google.cloud.aiplatform.v1beta1.IPairwiseMetricInstance|null); + } + + /** Represents a PairwiseMetricInput. */ + class PairwiseMetricInput implements IPairwiseMetricInput { + + /** + * Constructs a new PairwiseMetricInput. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IPairwiseMetricInput); + + /** PairwiseMetricInput metricSpec. */ + public metricSpec?: (google.cloud.aiplatform.v1beta1.IPairwiseMetricSpec|null); + + /** PairwiseMetricInput instance. */ + public instance?: (google.cloud.aiplatform.v1beta1.IPairwiseMetricInstance|null); + + /** + * Creates a new PairwiseMetricInput instance using the specified properties. + * @param [properties] Properties to set + * @returns PairwiseMetricInput instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IPairwiseMetricInput): google.cloud.aiplatform.v1beta1.PairwiseMetricInput; + + /** + * Encodes the specified PairwiseMetricInput message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PairwiseMetricInput.verify|verify} messages. + * @param message PairwiseMetricInput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IPairwiseMetricInput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PairwiseMetricInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PairwiseMetricInput.verify|verify} messages. + * @param message PairwiseMetricInput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPairwiseMetricInput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PairwiseMetricInput message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PairwiseMetricInput + * @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.PairwiseMetricInput; + + /** + * Decodes a PairwiseMetricInput message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PairwiseMetricInput + * @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.PairwiseMetricInput; + + /** + * Verifies a PairwiseMetricInput 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 PairwiseMetricInput message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PairwiseMetricInput + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PairwiseMetricInput; + + /** + * Creates a plain object from a PairwiseMetricInput message. Also converts values to other types if specified. + * @param message PairwiseMetricInput + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.PairwiseMetricInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PairwiseMetricInput to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PairwiseMetricInput + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a PairwiseMetricInstance. */ + interface IPairwiseMetricInstance { + + /** PairwiseMetricInstance jsonInstance */ + jsonInstance?: (string|null); + } + + /** Represents a PairwiseMetricInstance. */ + class PairwiseMetricInstance implements IPairwiseMetricInstance { + + /** + * Constructs a new PairwiseMetricInstance. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IPairwiseMetricInstance); + + /** PairwiseMetricInstance jsonInstance. */ + public jsonInstance?: (string|null); + + /** PairwiseMetricInstance instance. */ + public instance?: "jsonInstance"; + + /** + * Creates a new PairwiseMetricInstance instance using the specified properties. + * @param [properties] Properties to set + * @returns PairwiseMetricInstance instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IPairwiseMetricInstance): google.cloud.aiplatform.v1beta1.PairwiseMetricInstance; + + /** + * Encodes the specified PairwiseMetricInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PairwiseMetricInstance.verify|verify} messages. + * @param message PairwiseMetricInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IPairwiseMetricInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PairwiseMetricInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PairwiseMetricInstance.verify|verify} messages. + * @param message PairwiseMetricInstance message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPairwiseMetricInstance, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PairwiseMetricInstance message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PairwiseMetricInstance + * @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.PairwiseMetricInstance; + + /** + * Decodes a PairwiseMetricInstance message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PairwiseMetricInstance + * @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.PairwiseMetricInstance; + + /** + * Verifies a PairwiseMetricInstance 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 PairwiseMetricInstance message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PairwiseMetricInstance + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PairwiseMetricInstance; + + /** + * Creates a plain object from a PairwiseMetricInstance message. Also converts values to other types if specified. + * @param message PairwiseMetricInstance + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.PairwiseMetricInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PairwiseMetricInstance to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PairwiseMetricInstance + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a PairwiseMetricSpec. */ + interface IPairwiseMetricSpec { + + /** PairwiseMetricSpec metricPromptTemplate */ + metricPromptTemplate?: (string|null); + } + + /** Represents a PairwiseMetricSpec. */ + class PairwiseMetricSpec implements IPairwiseMetricSpec { + + /** + * Constructs a new PairwiseMetricSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IPairwiseMetricSpec); + + /** PairwiseMetricSpec metricPromptTemplate. */ + public metricPromptTemplate?: (string|null); + + /** PairwiseMetricSpec _metricPromptTemplate. */ + public _metricPromptTemplate?: "metricPromptTemplate"; + + /** + * Creates a new PairwiseMetricSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns PairwiseMetricSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IPairwiseMetricSpec): google.cloud.aiplatform.v1beta1.PairwiseMetricSpec; + + /** + * Encodes the specified PairwiseMetricSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PairwiseMetricSpec.verify|verify} messages. + * @param message PairwiseMetricSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IPairwiseMetricSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PairwiseMetricSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PairwiseMetricSpec.verify|verify} messages. + * @param message PairwiseMetricSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPairwiseMetricSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PairwiseMetricSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PairwiseMetricSpec + * @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.PairwiseMetricSpec; + + /** + * Decodes a PairwiseMetricSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PairwiseMetricSpec + * @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.PairwiseMetricSpec; + + /** + * Verifies a PairwiseMetricSpec 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 PairwiseMetricSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PairwiseMetricSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PairwiseMetricSpec; + + /** + * Creates a plain object from a PairwiseMetricSpec message. Also converts values to other types if specified. + * @param message PairwiseMetricSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.PairwiseMetricSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PairwiseMetricSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PairwiseMetricSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a PairwiseMetricResult. */ + interface IPairwiseMetricResult { + + /** PairwiseMetricResult pairwiseChoice */ + pairwiseChoice?: (google.cloud.aiplatform.v1beta1.PairwiseChoice|keyof typeof google.cloud.aiplatform.v1beta1.PairwiseChoice|null); + + /** PairwiseMetricResult explanation */ + explanation?: (string|null); + } + + /** Represents a PairwiseMetricResult. */ + class PairwiseMetricResult implements IPairwiseMetricResult { + + /** + * Constructs a new PairwiseMetricResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IPairwiseMetricResult); + + /** PairwiseMetricResult pairwiseChoice. */ + public pairwiseChoice: (google.cloud.aiplatform.v1beta1.PairwiseChoice|keyof typeof google.cloud.aiplatform.v1beta1.PairwiseChoice); + + /** PairwiseMetricResult explanation. */ + public explanation: string; + + /** + * Creates a new PairwiseMetricResult instance using the specified properties. + * @param [properties] Properties to set + * @returns PairwiseMetricResult instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IPairwiseMetricResult): google.cloud.aiplatform.v1beta1.PairwiseMetricResult; + + /** + * Encodes the specified PairwiseMetricResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PairwiseMetricResult.verify|verify} messages. + * @param message PairwiseMetricResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IPairwiseMetricResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PairwiseMetricResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PairwiseMetricResult.verify|verify} messages. + * @param message PairwiseMetricResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPairwiseMetricResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PairwiseMetricResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PairwiseMetricResult + * @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.PairwiseMetricResult; + + /** + * Decodes a PairwiseMetricResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PairwiseMetricResult + * @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.PairwiseMetricResult; + + /** + * Verifies a PairwiseMetricResult 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 PairwiseMetricResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PairwiseMetricResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PairwiseMetricResult; + + /** + * Creates a plain object from a PairwiseMetricResult message. Also converts values to other types if specified. + * @param message PairwiseMetricResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.PairwiseMetricResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PairwiseMetricResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PairwiseMetricResult + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a ToolCallValidInput. */ interface IToolCallValidInput { @@ -149698,6 +162538,9 @@ export namespace google { /** BigQuery entityIdColumns */ entityIdColumns?: (string[]|null); + + /** BigQuery timeSeries */ + timeSeries?: (google.cloud.aiplatform.v1beta1.FeatureGroup.BigQuery.ITimeSeries|null); } /** Represents a BigQuery. */ @@ -149715,6 +162558,9 @@ export namespace google { /** BigQuery entityIdColumns. */ public entityIdColumns: string[]; + /** BigQuery timeSeries. */ + public timeSeries?: (google.cloud.aiplatform.v1beta1.FeatureGroup.BigQuery.ITimeSeries|null); + /** * Creates a new BigQuery instance using the specified properties. * @param [properties] Properties to set @@ -149792,6 +162638,106 @@ export namespace google { */ public static getTypeUrl(typeUrlPrefix?: string): string; } + + namespace BigQuery { + + /** Properties of a TimeSeries. */ + interface ITimeSeries { + + /** TimeSeries timestampColumn */ + timestampColumn?: (string|null); + } + + /** Represents a TimeSeries. */ + class TimeSeries implements ITimeSeries { + + /** + * Constructs a new TimeSeries. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.FeatureGroup.BigQuery.ITimeSeries); + + /** TimeSeries timestampColumn. */ + public timestampColumn: string; + + /** + * Creates a new TimeSeries instance using the specified properties. + * @param [properties] Properties to set + * @returns TimeSeries instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.FeatureGroup.BigQuery.ITimeSeries): google.cloud.aiplatform.v1beta1.FeatureGroup.BigQuery.TimeSeries; + + /** + * Encodes the specified TimeSeries message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureGroup.BigQuery.TimeSeries.verify|verify} messages. + * @param message TimeSeries message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.FeatureGroup.BigQuery.ITimeSeries, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TimeSeries message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureGroup.BigQuery.TimeSeries.verify|verify} messages. + * @param message TimeSeries message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.FeatureGroup.BigQuery.ITimeSeries, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TimeSeries message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TimeSeries + * @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.FeatureGroup.BigQuery.TimeSeries; + + /** + * Decodes a TimeSeries message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TimeSeries + * @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.FeatureGroup.BigQuery.TimeSeries; + + /** + * Verifies a TimeSeries 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 TimeSeries message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TimeSeries + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureGroup.BigQuery.TimeSeries; + + /** + * Creates a plain object from a TimeSeries message. Also converts values to other types if specified. + * @param message TimeSeries + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.FeatureGroup.BigQuery.TimeSeries, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TimeSeries to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TimeSeries + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } } /** Properties of a FeatureOnlineStore. */ @@ -149829,6 +162775,12 @@ export namespace google { /** FeatureOnlineStore encryptionSpec */ encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + + /** FeatureOnlineStore satisfiesPzs */ + satisfiesPzs?: (boolean|null); + + /** FeatureOnlineStore satisfiesPzi */ + satisfiesPzi?: (boolean|null); } /** Represents a FeatureOnlineStore. */ @@ -149873,6 +162825,12 @@ export namespace google { /** FeatureOnlineStore encryptionSpec. */ public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** FeatureOnlineStore satisfiesPzs. */ + public satisfiesPzs: boolean; + + /** FeatureOnlineStore satisfiesPzi. */ + public satisfiesPzi: boolean; + /** FeatureOnlineStore storageType. */ public storageType?: ("bigtable"|"optimized"); @@ -152980,6 +165938,12 @@ export namespace google { /** FeatureView serviceAccountEmail */ serviceAccountEmail?: (string|null); + + /** FeatureView satisfiesPzs */ + satisfiesPzs?: (boolean|null); + + /** FeatureView satisfiesPzi */ + satisfiesPzi?: (boolean|null); } /** Represents a FeatureView. */ @@ -153027,6 +165991,12 @@ export namespace google { /** FeatureView serviceAccountEmail. */ public serviceAccountEmail: string; + /** FeatureView satisfiesPzs. */ + public satisfiesPzs: boolean; + + /** FeatureView satisfiesPzi. */ + public satisfiesPzi: boolean; + /** FeatureView source. */ public source?: ("bigQuerySource"|"featureRegistrySource"); @@ -154229,6 +167199,12 @@ export namespace google { /** FeatureViewSync syncSummary */ syncSummary?: (google.cloud.aiplatform.v1beta1.FeatureViewSync.ISyncSummary|null); + + /** FeatureViewSync satisfiesPzs */ + satisfiesPzs?: (boolean|null); + + /** FeatureViewSync satisfiesPzi */ + satisfiesPzi?: (boolean|null); } /** Represents a FeatureViewSync. */ @@ -154255,6 +167231,12 @@ export namespace google { /** FeatureViewSync syncSummary. */ public syncSummary?: (google.cloud.aiplatform.v1beta1.FeatureViewSync.ISyncSummary|null); + /** FeatureViewSync satisfiesPzs. */ + public satisfiesPzs: boolean; + + /** FeatureViewSync satisfiesPzi. */ + public satisfiesPzi: boolean; + /** * Creates a new FeatureViewSync instance using the specified properties. * @param [properties] Properties to set @@ -166088,6 +179070,12 @@ export namespace google { /** Featurestore encryptionSpec */ encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + + /** Featurestore satisfiesPzs */ + satisfiesPzs?: (boolean|null); + + /** Featurestore satisfiesPzi */ + satisfiesPzi?: (boolean|null); } /** Represents a Featurestore. */ @@ -166126,6 +179114,12 @@ export namespace google { /** Featurestore encryptionSpec. */ public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** Featurestore satisfiesPzs. */ + public satisfiesPzs: boolean; + + /** Featurestore satisfiesPzi. */ + public satisfiesPzi: boolean; + /** * Creates a new Featurestore instance using the specified properties. * @param [properties] Properties to set @@ -168387,6 +181381,12 @@ export namespace google { /** SupervisedTuningDataStats userDatasetExamples */ userDatasetExamples?: (google.cloud.aiplatform.v1beta1.IContent[]|null); + + /** SupervisedTuningDataStats totalTruncatedExampleCount */ + totalTruncatedExampleCount?: (number|Long|string|null); + + /** SupervisedTuningDataStats truncatedExampleIndices */ + truncatedExampleIndices?: ((number|Long|string)[]|null); } /** Represents a SupervisedTuningDataStats. */ @@ -168425,6 +181425,12 @@ export namespace google { /** SupervisedTuningDataStats userDatasetExamples. */ public userDatasetExamples: google.cloud.aiplatform.v1beta1.IContent[]; + /** SupervisedTuningDataStats totalTruncatedExampleCount. */ + public totalTruncatedExampleCount: (number|Long|string); + + /** SupervisedTuningDataStats truncatedExampleIndices. */ + public truncatedExampleIndices: (number|Long|string)[]; + /** * Creates a new SupervisedTuningDataStats instance using the specified properties. * @param [properties] Properties to set @@ -169633,6 +182639,12 @@ export namespace google { /** HyperparameterTuningJob encryptionSpec */ encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + + /** HyperparameterTuningJob satisfiesPzs */ + satisfiesPzs?: (boolean|null); + + /** HyperparameterTuningJob satisfiesPzi */ + satisfiesPzi?: (boolean|null); } /** Represents a HyperparameterTuningJob. */ @@ -169692,6 +182704,12 @@ export namespace google { /** HyperparameterTuningJob encryptionSpec. */ public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** HyperparameterTuningJob satisfiesPzs. */ + public satisfiesPzs: boolean; + + /** HyperparameterTuningJob satisfiesPzi. */ + public satisfiesPzi: boolean; + /** * Creates a new HyperparameterTuningJob instance using the specified properties. * @param [properties] Properties to set @@ -172743,6 +185761,12 @@ export namespace google { /** Index encryptionSpec */ encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + + /** Index satisfiesPzs */ + satisfiesPzs?: (boolean|null); + + /** Index satisfiesPzi */ + satisfiesPzi?: (boolean|null); } /** Represents an Index. */ @@ -172793,6 +185817,12 @@ export namespace google { /** Index encryptionSpec. */ public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** Index satisfiesPzs. */ + public satisfiesPzs: boolean; + + /** Index satisfiesPzi. */ + public satisfiesPzi: boolean; + /** * Creates a new Index instance using the specified properties. * @param [properties] Properties to set @@ -173611,6 +186641,12 @@ export namespace google { /** IndexEndpoint encryptionSpec */ encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + + /** IndexEndpoint satisfiesPzs */ + satisfiesPzs?: (boolean|null); + + /** IndexEndpoint satisfiesPzi */ + satisfiesPzi?: (boolean|null); } /** Represents an IndexEndpoint. */ @@ -173664,6 +186700,12 @@ export namespace google { /** IndexEndpoint encryptionSpec. */ public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** IndexEndpoint satisfiesPzs. */ + public satisfiesPzs: boolean; + + /** IndexEndpoint satisfiesPzi. */ + public satisfiesPzi: boolean; + /** * Creates a new IndexEndpoint instance using the specified properties. * @param [properties] Properties to set @@ -183269,6 +196311,12 @@ export namespace google { /** NasJob enableRestrictedImageTraining */ enableRestrictedImageTraining?: (boolean|null); + + /** NasJob satisfiesPzs */ + satisfiesPzs?: (boolean|null); + + /** NasJob satisfiesPzi */ + satisfiesPzi?: (boolean|null); } /** Represents a NasJob. */ @@ -183319,6 +196367,12 @@ export namespace google { /** NasJob enableRestrictedImageTraining. */ public enableRestrictedImageTraining: boolean; + /** NasJob satisfiesPzs. */ + public satisfiesPzs: boolean; + + /** NasJob satisfiesPzi. */ + public satisfiesPzi: boolean; + /** * Creates a new NasJob instance using the specified properties. * @param [properties] Properties to set @@ -195316,6 +208370,9 @@ export namespace google { /** GetPublisherModelRequest isHuggingFaceModel */ isHuggingFaceModel?: (boolean|null); + + /** GetPublisherModelRequest huggingFaceToken */ + huggingFaceToken?: (string|null); } /** Represents a GetPublisherModelRequest. */ @@ -195339,6 +208396,9 @@ export namespace google { /** GetPublisherModelRequest isHuggingFaceModel. */ public isHuggingFaceModel: boolean; + /** GetPublisherModelRequest huggingFaceToken. */ + public huggingFaceToken: string; + /** * Creates a new GetPublisherModelRequest instance using the specified properties. * @param [properties] Properties to set @@ -196907,6 +209967,9 @@ export namespace google { /** DeployMetadata labels */ labels?: ({ [k: string]: string }|null); + + /** DeployMetadata sampleRequest */ + sampleRequest?: (string|null); } /** Represents a DeployMetadata. */ @@ -196921,6 +209984,9 @@ export namespace google { /** DeployMetadata labels. */ public labels: { [k: string]: string }; + /** DeployMetadata sampleRequest. */ + public sampleRequest: string; + /** * Creates a new DeployMetadata instance using the specified properties. * @param [properties] Properties to set @@ -207372,6 +220438,9 @@ export namespace google { /** NotebookExecutionJob labels */ labels?: ({ [k: string]: string }|null); + + /** NotebookExecutionJob encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); } /** Represents a NotebookExecutionJob. */ @@ -207431,6 +220500,9 @@ export namespace google { /** NotebookExecutionJob labels. */ public labels: { [k: string]: string }; + /** NotebookExecutionJob encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** NotebookExecutionJob notebookSource. */ public notebookSource?: ("dataformRepositorySource"|"gcsNotebookSource"|"directNotebookSource"); @@ -244021,6 +257093,103 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a RagFileParsingConfig. */ + interface IRagFileParsingConfig { + + /** RagFileParsingConfig useAdvancedPdfParsing */ + useAdvancedPdfParsing?: (boolean|null); + } + + /** Represents a RagFileParsingConfig. */ + class RagFileParsingConfig implements IRagFileParsingConfig { + + /** + * Constructs a new RagFileParsingConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IRagFileParsingConfig); + + /** RagFileParsingConfig useAdvancedPdfParsing. */ + public useAdvancedPdfParsing: boolean; + + /** + * Creates a new RagFileParsingConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns RagFileParsingConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IRagFileParsingConfig): google.cloud.aiplatform.v1beta1.RagFileParsingConfig; + + /** + * Encodes the specified RagFileParsingConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RagFileParsingConfig.verify|verify} messages. + * @param message RagFileParsingConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IRagFileParsingConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RagFileParsingConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RagFileParsingConfig.verify|verify} messages. + * @param message RagFileParsingConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IRagFileParsingConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RagFileParsingConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RagFileParsingConfig + * @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.RagFileParsingConfig; + + /** + * Decodes a RagFileParsingConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RagFileParsingConfig + * @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.RagFileParsingConfig; + + /** + * Verifies a RagFileParsingConfig 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 RagFileParsingConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RagFileParsingConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.RagFileParsingConfig; + + /** + * Creates a plain object from a RagFileParsingConfig message. Also converts values to other types if specified. + * @param message RagFileParsingConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.RagFileParsingConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RagFileParsingConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RagFileParsingConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an UploadRagFileConfig. */ interface IUploadRagFileConfig { @@ -244136,6 +257305,9 @@ export namespace google { /** ImportRagFilesConfig ragFileChunkingConfig */ ragFileChunkingConfig?: (google.cloud.aiplatform.v1beta1.IRagFileChunkingConfig|null); + /** ImportRagFilesConfig ragFileParsingConfig */ + ragFileParsingConfig?: (google.cloud.aiplatform.v1beta1.IRagFileParsingConfig|null); + /** ImportRagFilesConfig maxEmbeddingRequestsPerMin */ maxEmbeddingRequestsPerMin?: (number|null); } @@ -244164,6 +257336,9 @@ export namespace google { /** ImportRagFilesConfig ragFileChunkingConfig. */ public ragFileChunkingConfig?: (google.cloud.aiplatform.v1beta1.IRagFileChunkingConfig|null); + /** ImportRagFilesConfig ragFileParsingConfig. */ + public ragFileParsingConfig?: (google.cloud.aiplatform.v1beta1.IRagFileParsingConfig|null); + /** ImportRagFilesConfig maxEmbeddingRequestsPerMin. */ public maxEmbeddingRequestsPerMin: number; diff --git a/packages/google-cloud-aiplatform/protos/protos.js b/packages/google-cloud-aiplatform/protos/protos.js index a137c2902ac..ab5eece88bd 100644 --- a/packages/google-cloud-aiplatform/protos/protos.js +++ b/packages/google-cloud-aiplatform/protos/protos.js @@ -1686,6 +1686,8 @@ * @property {Object.|null} [labels] BatchPredictionJob labels * @property {google.cloud.aiplatform.v1.IEncryptionSpec|null} [encryptionSpec] BatchPredictionJob encryptionSpec * @property {boolean|null} [disableContainerLogging] BatchPredictionJob disableContainerLogging + * @property {boolean|null} [satisfiesPzs] BatchPredictionJob satisfiesPzs + * @property {boolean|null} [satisfiesPzi] BatchPredictionJob satisfiesPzi */ /** @@ -1921,6 +1923,22 @@ */ BatchPredictionJob.prototype.disableContainerLogging = false; + /** + * BatchPredictionJob satisfiesPzs. + * @member {boolean} satisfiesPzs + * @memberof google.cloud.aiplatform.v1.BatchPredictionJob + * @instance + */ + BatchPredictionJob.prototype.satisfiesPzs = false; + + /** + * BatchPredictionJob satisfiesPzi. + * @member {boolean} satisfiesPzi + * @memberof google.cloud.aiplatform.v1.BatchPredictionJob + * @instance + */ + BatchPredictionJob.prototype.satisfiesPzi = false; + /** * Creates a new BatchPredictionJob instance using the specified properties. * @function create @@ -2001,6 +2019,10 @@ writer.uint32(/* id 30, wireType 2 =*/242).string(message.modelVersionId); if (message.disableContainerLogging != null && Object.hasOwnProperty.call(message, "disableContainerLogging")) writer.uint32(/* id 34, wireType 0 =*/272).bool(message.disableContainerLogging); + if (message.satisfiesPzs != null && Object.hasOwnProperty.call(message, "satisfiesPzs")) + writer.uint32(/* id 36, wireType 0 =*/288).bool(message.satisfiesPzs); + if (message.satisfiesPzi != null && Object.hasOwnProperty.call(message, "satisfiesPzi")) + writer.uint32(/* id 37, wireType 0 =*/296).bool(message.satisfiesPzi); return writer; }; @@ -2164,6 +2186,14 @@ message.disableContainerLogging = reader.bool(); break; } + case 36: { + message.satisfiesPzs = reader.bool(); + break; + } + case 37: { + message.satisfiesPzi = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -2340,6 +2370,12 @@ if (message.disableContainerLogging != null && message.hasOwnProperty("disableContainerLogging")) if (typeof message.disableContainerLogging !== "boolean") return "disableContainerLogging: boolean expected"; + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) + if (typeof message.satisfiesPzs !== "boolean") + return "satisfiesPzs: boolean expected"; + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) + if (typeof message.satisfiesPzi !== "boolean") + return "satisfiesPzi: boolean expected"; return null; }; @@ -2527,6 +2563,10 @@ } if (object.disableContainerLogging != null) message.disableContainerLogging = Boolean(object.disableContainerLogging); + if (object.satisfiesPzs != null) + message.satisfiesPzs = Boolean(object.satisfiesPzs); + if (object.satisfiesPzi != null) + message.satisfiesPzi = Boolean(object.satisfiesPzi); return message; }; @@ -2573,6 +2613,8 @@ object.serviceAccount = ""; object.modelVersionId = ""; object.disableContainerLogging = false; + object.satisfiesPzs = false; + object.satisfiesPzi = false; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -2635,6 +2677,10 @@ object.modelVersionId = message.modelVersionId; if (message.disableContainerLogging != null && message.hasOwnProperty("disableContainerLogging")) object.disableContainerLogging = message.disableContainerLogging; + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) + object.satisfiesPzs = message.satisfiesPzs; + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) + object.satisfiesPzi = message.satisfiesPzi; return object; }; @@ -13959,6 +14005,7 @@ * @property {google.cloud.aiplatform.v1.AcceleratorType|null} [acceleratorType] MachineSpec acceleratorType * @property {number|null} [acceleratorCount] MachineSpec acceleratorCount * @property {string|null} [tpuTopology] MachineSpec tpuTopology + * @property {google.cloud.aiplatform.v1.IReservationAffinity|null} [reservationAffinity] MachineSpec reservationAffinity */ /** @@ -14008,6 +14055,14 @@ */ MachineSpec.prototype.tpuTopology = ""; + /** + * MachineSpec reservationAffinity. + * @member {google.cloud.aiplatform.v1.IReservationAffinity|null|undefined} reservationAffinity + * @memberof google.cloud.aiplatform.v1.MachineSpec + * @instance + */ + MachineSpec.prototype.reservationAffinity = null; + /** * Creates a new MachineSpec instance using the specified properties. * @function create @@ -14040,6 +14095,8 @@ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.acceleratorCount); if (message.tpuTopology != null && Object.hasOwnProperty.call(message, "tpuTopology")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.tpuTopology); + if (message.reservationAffinity != null && Object.hasOwnProperty.call(message, "reservationAffinity")) + $root.google.cloud.aiplatform.v1.ReservationAffinity.encode(message.reservationAffinity, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; @@ -14090,6 +14147,10 @@ message.tpuTopology = reader.string(); break; } + case 5: { + message.reservationAffinity = $root.google.cloud.aiplatform.v1.ReservationAffinity.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -14154,6 +14215,11 @@ if (message.tpuTopology != null && message.hasOwnProperty("tpuTopology")) if (!$util.isString(message.tpuTopology)) return "tpuTopology: string expected"; + if (message.reservationAffinity != null && message.hasOwnProperty("reservationAffinity")) { + var error = $root.google.cloud.aiplatform.v1.ReservationAffinity.verify(message.reservationAffinity); + if (error) + return "reservationAffinity." + error; + } return null; }; @@ -14239,6 +14305,11 @@ message.acceleratorCount = object.acceleratorCount | 0; if (object.tpuTopology != null) message.tpuTopology = String(object.tpuTopology); + if (object.reservationAffinity != null) { + if (typeof object.reservationAffinity !== "object") + throw TypeError(".google.cloud.aiplatform.v1.MachineSpec.reservationAffinity: object expected"); + message.reservationAffinity = $root.google.cloud.aiplatform.v1.ReservationAffinity.fromObject(object.reservationAffinity); + } return message; }; @@ -14260,6 +14331,7 @@ object.acceleratorType = options.enums === String ? "ACCELERATOR_TYPE_UNSPECIFIED" : 0; object.acceleratorCount = 0; object.tpuTopology = ""; + object.reservationAffinity = null; } if (message.machineType != null && message.hasOwnProperty("machineType")) object.machineType = message.machineType; @@ -14269,6 +14341,8 @@ object.acceleratorCount = message.acceleratorCount; if (message.tpuTopology != null && message.hasOwnProperty("tpuTopology")) object.tpuTopology = message.tpuTopology; + if (message.reservationAffinity != null && message.hasOwnProperty("reservationAffinity")) + object.reservationAffinity = $root.google.cloud.aiplatform.v1.ReservationAffinity.toObject(message.reservationAffinity, options); return object; }; @@ -14311,6 +14385,7 @@ * @property {number|null} [minReplicaCount] DedicatedResources minReplicaCount * @property {number|null} [maxReplicaCount] DedicatedResources maxReplicaCount * @property {Array.|null} [autoscalingMetricSpecs] DedicatedResources autoscalingMetricSpecs + * @property {boolean|null} [spot] DedicatedResources spot */ /** @@ -14361,6 +14436,14 @@ */ DedicatedResources.prototype.autoscalingMetricSpecs = $util.emptyArray; + /** + * DedicatedResources spot. + * @member {boolean} spot + * @memberof google.cloud.aiplatform.v1.DedicatedResources + * @instance + */ + DedicatedResources.prototype.spot = false; + /** * Creates a new DedicatedResources instance using the specified properties. * @function create @@ -14394,6 +14477,8 @@ if (message.autoscalingMetricSpecs != null && message.autoscalingMetricSpecs.length) for (var i = 0; i < message.autoscalingMetricSpecs.length; ++i) $root.google.cloud.aiplatform.v1.AutoscalingMetricSpec.encode(message.autoscalingMetricSpecs[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.spot != null && Object.hasOwnProperty.call(message, "spot")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.spot); return writer; }; @@ -14446,6 +14531,10 @@ message.autoscalingMetricSpecs.push($root.google.cloud.aiplatform.v1.AutoscalingMetricSpec.decode(reader, reader.uint32())); break; } + case 5: { + message.spot = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -14501,6 +14590,9 @@ return "autoscalingMetricSpecs." + error; } } + if (message.spot != null && message.hasOwnProperty("spot")) + if (typeof message.spot !== "boolean") + return "spot: boolean expected"; return null; }; @@ -14535,6 +14627,8 @@ message.autoscalingMetricSpecs[i] = $root.google.cloud.aiplatform.v1.AutoscalingMetricSpec.fromObject(object.autoscalingMetricSpecs[i]); } } + if (object.spot != null) + message.spot = Boolean(object.spot); return message; }; @@ -14557,6 +14651,7 @@ object.machineSpec = null; object.minReplicaCount = 0; object.maxReplicaCount = 0; + object.spot = false; } if (message.machineSpec != null && message.hasOwnProperty("machineSpec")) object.machineSpec = $root.google.cloud.aiplatform.v1.MachineSpec.toObject(message.machineSpec, options); @@ -14569,6 +14664,8 @@ for (var j = 0; j < message.autoscalingMetricSpecs.length; ++j) object.autoscalingMetricSpecs[j] = $root.google.cloud.aiplatform.v1.AutoscalingMetricSpec.toObject(message.autoscalingMetricSpecs[j], options); } + if (message.spot != null && message.hasOwnProperty("spot")) + object.spot = message.spot; return object; }; @@ -16434,6 +16531,320 @@ return ShieldedVmConfig; })(); + v1.ReservationAffinity = (function() { + + /** + * Properties of a ReservationAffinity. + * @memberof google.cloud.aiplatform.v1 + * @interface IReservationAffinity + * @property {google.cloud.aiplatform.v1.ReservationAffinity.Type|null} [reservationAffinityType] ReservationAffinity reservationAffinityType + * @property {string|null} [key] ReservationAffinity key + * @property {Array.|null} [values] ReservationAffinity values + */ + + /** + * Constructs a new ReservationAffinity. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ReservationAffinity. + * @implements IReservationAffinity + * @constructor + * @param {google.cloud.aiplatform.v1.IReservationAffinity=} [properties] Properties to set + */ + function ReservationAffinity(properties) { + this.values = []; + 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]]; + } + + /** + * ReservationAffinity reservationAffinityType. + * @member {google.cloud.aiplatform.v1.ReservationAffinity.Type} reservationAffinityType + * @memberof google.cloud.aiplatform.v1.ReservationAffinity + * @instance + */ + ReservationAffinity.prototype.reservationAffinityType = 0; + + /** + * ReservationAffinity key. + * @member {string} key + * @memberof google.cloud.aiplatform.v1.ReservationAffinity + * @instance + */ + ReservationAffinity.prototype.key = ""; + + /** + * ReservationAffinity values. + * @member {Array.} values + * @memberof google.cloud.aiplatform.v1.ReservationAffinity + * @instance + */ + ReservationAffinity.prototype.values = $util.emptyArray; + + /** + * Creates a new ReservationAffinity instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ReservationAffinity + * @static + * @param {google.cloud.aiplatform.v1.IReservationAffinity=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ReservationAffinity} ReservationAffinity instance + */ + ReservationAffinity.create = function create(properties) { + return new ReservationAffinity(properties); + }; + + /** + * Encodes the specified ReservationAffinity message. Does not implicitly {@link google.cloud.aiplatform.v1.ReservationAffinity.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ReservationAffinity + * @static + * @param {google.cloud.aiplatform.v1.IReservationAffinity} message ReservationAffinity message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReservationAffinity.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.reservationAffinityType != null && Object.hasOwnProperty.call(message, "reservationAffinityType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.reservationAffinityType); + if (message.key != null && Object.hasOwnProperty.call(message, "key")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.key); + if (message.values != null && message.values.length) + for (var i = 0; i < message.values.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.values[i]); + return writer; + }; + + /** + * Encodes the specified ReservationAffinity message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReservationAffinity.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ReservationAffinity + * @static + * @param {google.cloud.aiplatform.v1.IReservationAffinity} message ReservationAffinity message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReservationAffinity.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ReservationAffinity message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ReservationAffinity + * @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.ReservationAffinity} ReservationAffinity + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservationAffinity.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.ReservationAffinity(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.reservationAffinityType = reader.int32(); + break; + } + case 2: { + message.key = reader.string(); + break; + } + case 3: { + if (!(message.values && message.values.length)) + message.values = []; + message.values.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ReservationAffinity message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ReservationAffinity + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ReservationAffinity} ReservationAffinity + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservationAffinity.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ReservationAffinity message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ReservationAffinity + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ReservationAffinity.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.reservationAffinityType != null && message.hasOwnProperty("reservationAffinityType")) + switch (message.reservationAffinityType) { + default: + return "reservationAffinityType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.key != null && message.hasOwnProperty("key")) + if (!$util.isString(message.key)) + return "key: string expected"; + if (message.values != null && message.hasOwnProperty("values")) { + if (!Array.isArray(message.values)) + return "values: array expected"; + for (var i = 0; i < message.values.length; ++i) + if (!$util.isString(message.values[i])) + return "values: string[] expected"; + } + return null; + }; + + /** + * Creates a ReservationAffinity message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ReservationAffinity + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ReservationAffinity} ReservationAffinity + */ + ReservationAffinity.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ReservationAffinity) + return object; + var message = new $root.google.cloud.aiplatform.v1.ReservationAffinity(); + switch (object.reservationAffinityType) { + default: + if (typeof object.reservationAffinityType === "number") { + message.reservationAffinityType = object.reservationAffinityType; + break; + } + break; + case "TYPE_UNSPECIFIED": + case 0: + message.reservationAffinityType = 0; + break; + case "NO_RESERVATION": + case 1: + message.reservationAffinityType = 1; + break; + case "ANY_RESERVATION": + case 2: + message.reservationAffinityType = 2; + break; + case "SPECIFIC_RESERVATION": + case 3: + message.reservationAffinityType = 3; + break; + } + if (object.key != null) + message.key = String(object.key); + if (object.values) { + if (!Array.isArray(object.values)) + throw TypeError(".google.cloud.aiplatform.v1.ReservationAffinity.values: array expected"); + message.values = []; + for (var i = 0; i < object.values.length; ++i) + message.values[i] = String(object.values[i]); + } + return message; + }; + + /** + * Creates a plain object from a ReservationAffinity message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ReservationAffinity + * @static + * @param {google.cloud.aiplatform.v1.ReservationAffinity} message ReservationAffinity + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ReservationAffinity.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.values = []; + if (options.defaults) { + object.reservationAffinityType = options.enums === String ? "TYPE_UNSPECIFIED" : 0; + object.key = ""; + } + if (message.reservationAffinityType != null && message.hasOwnProperty("reservationAffinityType")) + object.reservationAffinityType = options.enums === String ? $root.google.cloud.aiplatform.v1.ReservationAffinity.Type[message.reservationAffinityType] === undefined ? message.reservationAffinityType : $root.google.cloud.aiplatform.v1.ReservationAffinity.Type[message.reservationAffinityType] : message.reservationAffinityType; + if (message.key != null && message.hasOwnProperty("key")) + object.key = message.key; + if (message.values && message.values.length) { + object.values = []; + for (var j = 0; j < message.values.length; ++j) + object.values[j] = message.values[j]; + } + return object; + }; + + /** + * Converts this ReservationAffinity to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ReservationAffinity + * @instance + * @returns {Object.} JSON object + */ + ReservationAffinity.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ReservationAffinity + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ReservationAffinity + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ReservationAffinity.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ReservationAffinity"; + }; + + /** + * Type enum. + * @name google.cloud.aiplatform.v1.ReservationAffinity.Type + * @enum {number} + * @property {number} TYPE_UNSPECIFIED=0 TYPE_UNSPECIFIED value + * @property {number} NO_RESERVATION=1 NO_RESERVATION value + * @property {number} ANY_RESERVATION=2 ANY_RESERVATION value + * @property {number} SPECIFIC_RESERVATION=3 SPECIFIC_RESERVATION value + */ + ReservationAffinity.Type = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "NO_RESERVATION"] = 1; + values[valuesById[2] = "ANY_RESERVATION"] = 2; + values[valuesById[3] = "SPECIFIC_RESERVATION"] = 3; + return values; + })(); + + return ReservationAffinity; + })(); + v1.ManualBatchTuningParameters = (function() { /** @@ -23542,8 +23953,10 @@ * @property {Array.|null} [stopSequences] GenerationConfig stopSequences * @property {number|null} [presencePenalty] GenerationConfig presencePenalty * @property {number|null} [frequencyPenalty] GenerationConfig frequencyPenalty + * @property {number|null} [seed] GenerationConfig seed * @property {string|null} [responseMimeType] GenerationConfig responseMimeType * @property {google.cloud.aiplatform.v1.ISchema|null} [responseSchema] GenerationConfig responseSchema + * @property {google.cloud.aiplatform.v1.GenerationConfig.IRoutingConfig|null} [routingConfig] GenerationConfig routingConfig */ /** @@ -23626,6 +24039,14 @@ */ GenerationConfig.prototype.frequencyPenalty = null; + /** + * GenerationConfig seed. + * @member {number|null|undefined} seed + * @memberof google.cloud.aiplatform.v1.GenerationConfig + * @instance + */ + GenerationConfig.prototype.seed = null; + /** * GenerationConfig responseMimeType. * @member {string} responseMimeType @@ -23642,6 +24063,14 @@ */ GenerationConfig.prototype.responseSchema = null; + /** + * GenerationConfig routingConfig. + * @member {google.cloud.aiplatform.v1.GenerationConfig.IRoutingConfig|null|undefined} routingConfig + * @memberof google.cloud.aiplatform.v1.GenerationConfig + * @instance + */ + GenerationConfig.prototype.routingConfig = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -23722,6 +24151,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * GenerationConfig _seed. + * @member {"seed"|undefined} _seed + * @memberof google.cloud.aiplatform.v1.GenerationConfig + * @instance + */ + Object.defineProperty(GenerationConfig.prototype, "_seed", { + get: $util.oneOfGetter($oneOfFields = ["seed"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * GenerationConfig _responseSchema. * @member {"responseSchema"|undefined} _responseSchema @@ -23733,6 +24173,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * GenerationConfig _routingConfig. + * @member {"routingConfig"|undefined} _routingConfig + * @memberof google.cloud.aiplatform.v1.GenerationConfig + * @instance + */ + Object.defineProperty(GenerationConfig.prototype, "_routingConfig", { + get: $util.oneOfGetter($oneOfFields = ["routingConfig"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new GenerationConfig instance using the specified properties. * @function create @@ -23774,10 +24225,14 @@ writer.uint32(/* id 8, wireType 5 =*/69).float(message.presencePenalty); if (message.frequencyPenalty != null && Object.hasOwnProperty.call(message, "frequencyPenalty")) writer.uint32(/* id 9, wireType 5 =*/77).float(message.frequencyPenalty); + if (message.seed != null && Object.hasOwnProperty.call(message, "seed")) + writer.uint32(/* id 12, wireType 0 =*/96).int32(message.seed); if (message.responseMimeType != null && Object.hasOwnProperty.call(message, "responseMimeType")) writer.uint32(/* id 13, wireType 2 =*/106).string(message.responseMimeType); if (message.responseSchema != null && Object.hasOwnProperty.call(message, "responseSchema")) $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(); return writer; }; @@ -23846,6 +24301,10 @@ message.frequencyPenalty = reader.float(); break; } + case 12: { + message.seed = reader.int32(); + break; + } case 13: { message.responseMimeType = reader.string(); break; @@ -23854,6 +24313,10 @@ message.responseSchema = $root.google.cloud.aiplatform.v1.Schema.decode(reader, reader.uint32()); break; } + case 17: { + message.routingConfig = $root.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -23932,6 +24395,11 @@ if (typeof message.frequencyPenalty !== "number") return "frequencyPenalty: number expected"; } + if (message.seed != null && message.hasOwnProperty("seed")) { + properties._seed = 1; + if (!$util.isInteger(message.seed)) + return "seed: integer expected"; + } if (message.responseMimeType != null && message.hasOwnProperty("responseMimeType")) if (!$util.isString(message.responseMimeType)) return "responseMimeType: string expected"; @@ -23943,6 +24411,14 @@ return "responseSchema." + error; } } + if (message.routingConfig != null && message.hasOwnProperty("routingConfig")) { + properties._routingConfig = 1; + { + var error = $root.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.verify(message.routingConfig); + if (error) + return "routingConfig." + error; + } + } return null; }; @@ -23979,6 +24455,8 @@ message.presencePenalty = Number(object.presencePenalty); if (object.frequencyPenalty != null) message.frequencyPenalty = Number(object.frequencyPenalty); + if (object.seed != null) + message.seed = object.seed | 0; if (object.responseMimeType != null) message.responseMimeType = String(object.responseMimeType); if (object.responseSchema != null) { @@ -23986,6 +24464,11 @@ throw TypeError(".google.cloud.aiplatform.v1.GenerationConfig.responseSchema: object expected"); message.responseSchema = $root.google.cloud.aiplatform.v1.Schema.fromObject(object.responseSchema); } + if (object.routingConfig != null) { + if (typeof object.routingConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1.GenerationConfig.routingConfig: object expected"); + message.routingConfig = $root.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.fromObject(object.routingConfig); + } return message; }; @@ -24046,6 +24529,11 @@ if (options.oneofs) object._frequencyPenalty = "frequencyPenalty"; } + if (message.seed != null && message.hasOwnProperty("seed")) { + object.seed = message.seed; + if (options.oneofs) + object._seed = "seed"; + } if (message.responseMimeType != null && message.hasOwnProperty("responseMimeType")) object.responseMimeType = message.responseMimeType; if (message.responseSchema != null && message.hasOwnProperty("responseSchema")) { @@ -24053,6 +24541,11 @@ if (options.oneofs) object._responseSchema = "responseSchema"; } + if (message.routingConfig != null && message.hasOwnProperty("routingConfig")) { + object.routingConfig = $root.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.toObject(message.routingConfig, options); + if (options.oneofs) + object._routingConfig = "routingConfig"; + } return object; }; @@ -24082,6 +24575,757 @@ return typeUrlPrefix + "/google.cloud.aiplatform.v1.GenerationConfig"; }; + GenerationConfig.RoutingConfig = (function() { + + /** + * Properties of a RoutingConfig. + * @memberof google.cloud.aiplatform.v1.GenerationConfig + * @interface IRoutingConfig + * @property {google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.IAutoRoutingMode|null} [autoMode] RoutingConfig autoMode + * @property {google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.IManualRoutingMode|null} [manualMode] RoutingConfig manualMode + */ + + /** + * Constructs a new RoutingConfig. + * @memberof google.cloud.aiplatform.v1.GenerationConfig + * @classdesc Represents a RoutingConfig. + * @implements IRoutingConfig + * @constructor + * @param {google.cloud.aiplatform.v1.GenerationConfig.IRoutingConfig=} [properties] Properties to set + */ + function RoutingConfig(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]]; + } + + /** + * RoutingConfig autoMode. + * @member {google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.IAutoRoutingMode|null|undefined} autoMode + * @memberof google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig + * @instance + */ + RoutingConfig.prototype.autoMode = null; + + /** + * RoutingConfig manualMode. + * @member {google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.IManualRoutingMode|null|undefined} manualMode + * @memberof google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig + * @instance + */ + RoutingConfig.prototype.manualMode = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * RoutingConfig routingConfig. + * @member {"autoMode"|"manualMode"|undefined} routingConfig + * @memberof google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig + * @instance + */ + Object.defineProperty(RoutingConfig.prototype, "routingConfig", { + get: $util.oneOfGetter($oneOfFields = ["autoMode", "manualMode"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new RoutingConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig + * @static + * @param {google.cloud.aiplatform.v1.GenerationConfig.IRoutingConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig} RoutingConfig instance + */ + RoutingConfig.create = function create(properties) { + return new RoutingConfig(properties); + }; + + /** + * Encodes the specified RoutingConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig + * @static + * @param {google.cloud.aiplatform.v1.GenerationConfig.IRoutingConfig} message RoutingConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RoutingConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.autoMode != null && Object.hasOwnProperty.call(message, "autoMode")) + $root.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.AutoRoutingMode.encode(message.autoMode, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.manualMode != null && Object.hasOwnProperty.call(message, "manualMode")) + $root.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.ManualRoutingMode.encode(message.manualMode, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified RoutingConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig + * @static + * @param {google.cloud.aiplatform.v1.GenerationConfig.IRoutingConfig} message RoutingConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RoutingConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RoutingConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig + * @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.GenerationConfig.RoutingConfig} RoutingConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RoutingConfig.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.GenerationConfig.RoutingConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.autoMode = $root.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.AutoRoutingMode.decode(reader, reader.uint32()); + break; + } + case 2: { + message.manualMode = $root.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.ManualRoutingMode.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RoutingConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig} RoutingConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RoutingConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RoutingConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RoutingConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.autoMode != null && message.hasOwnProperty("autoMode")) { + properties.routingConfig = 1; + { + var error = $root.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.AutoRoutingMode.verify(message.autoMode); + if (error) + return "autoMode." + error; + } + } + if (message.manualMode != null && message.hasOwnProperty("manualMode")) { + if (properties.routingConfig === 1) + return "routingConfig: multiple values"; + properties.routingConfig = 1; + { + var error = $root.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.ManualRoutingMode.verify(message.manualMode); + if (error) + return "manualMode." + error; + } + } + return null; + }; + + /** + * Creates a RoutingConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig} RoutingConfig + */ + RoutingConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig(); + if (object.autoMode != null) { + if (typeof object.autoMode !== "object") + throw TypeError(".google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.autoMode: object expected"); + message.autoMode = $root.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.AutoRoutingMode.fromObject(object.autoMode); + } + if (object.manualMode != null) { + if (typeof object.manualMode !== "object") + throw TypeError(".google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.manualMode: object expected"); + message.manualMode = $root.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.ManualRoutingMode.fromObject(object.manualMode); + } + return message; + }; + + /** + * Creates a plain object from a RoutingConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig + * @static + * @param {google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig} message RoutingConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RoutingConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.autoMode != null && message.hasOwnProperty("autoMode")) { + object.autoMode = $root.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.AutoRoutingMode.toObject(message.autoMode, options); + if (options.oneofs) + object.routingConfig = "autoMode"; + } + if (message.manualMode != null && message.hasOwnProperty("manualMode")) { + object.manualMode = $root.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.ManualRoutingMode.toObject(message.manualMode, options); + if (options.oneofs) + object.routingConfig = "manualMode"; + } + return object; + }; + + /** + * Converts this RoutingConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig + * @instance + * @returns {Object.} JSON object + */ + RoutingConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RoutingConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RoutingConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig"; + }; + + RoutingConfig.AutoRoutingMode = (function() { + + /** + * Properties of an AutoRoutingMode. + * @memberof google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig + * @interface IAutoRoutingMode + * @property {google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.AutoRoutingMode.ModelRoutingPreference|null} [modelRoutingPreference] AutoRoutingMode modelRoutingPreference + */ + + /** + * Constructs a new AutoRoutingMode. + * @memberof google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig + * @classdesc Represents an AutoRoutingMode. + * @implements IAutoRoutingMode + * @constructor + * @param {google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.IAutoRoutingMode=} [properties] Properties to set + */ + function AutoRoutingMode(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]]; + } + + /** + * AutoRoutingMode modelRoutingPreference. + * @member {google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.AutoRoutingMode.ModelRoutingPreference|null|undefined} modelRoutingPreference + * @memberof google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.AutoRoutingMode + * @instance + */ + AutoRoutingMode.prototype.modelRoutingPreference = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * AutoRoutingMode _modelRoutingPreference. + * @member {"modelRoutingPreference"|undefined} _modelRoutingPreference + * @memberof google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.AutoRoutingMode + * @instance + */ + Object.defineProperty(AutoRoutingMode.prototype, "_modelRoutingPreference", { + get: $util.oneOfGetter($oneOfFields = ["modelRoutingPreference"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new AutoRoutingMode instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.AutoRoutingMode + * @static + * @param {google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.IAutoRoutingMode=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.AutoRoutingMode} AutoRoutingMode instance + */ + AutoRoutingMode.create = function create(properties) { + return new AutoRoutingMode(properties); + }; + + /** + * Encodes the specified AutoRoutingMode message. Does not implicitly {@link google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.AutoRoutingMode.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.AutoRoutingMode + * @static + * @param {google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.IAutoRoutingMode} message AutoRoutingMode message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoRoutingMode.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.modelRoutingPreference != null && Object.hasOwnProperty.call(message, "modelRoutingPreference")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.modelRoutingPreference); + return writer; + }; + + /** + * Encodes the specified AutoRoutingMode message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.AutoRoutingMode.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.AutoRoutingMode + * @static + * @param {google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.IAutoRoutingMode} message AutoRoutingMode message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoRoutingMode.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AutoRoutingMode message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.AutoRoutingMode + * @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.GenerationConfig.RoutingConfig.AutoRoutingMode} AutoRoutingMode + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoRoutingMode.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.GenerationConfig.RoutingConfig.AutoRoutingMode(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.modelRoutingPreference = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AutoRoutingMode message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.AutoRoutingMode + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.AutoRoutingMode} AutoRoutingMode + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoRoutingMode.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AutoRoutingMode message. + * @function verify + * @memberof google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.AutoRoutingMode + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AutoRoutingMode.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.modelRoutingPreference != null && message.hasOwnProperty("modelRoutingPreference")) { + properties._modelRoutingPreference = 1; + switch (message.modelRoutingPreference) { + default: + return "modelRoutingPreference: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + } + return null; + }; + + /** + * Creates an AutoRoutingMode message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.AutoRoutingMode + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.AutoRoutingMode} AutoRoutingMode + */ + AutoRoutingMode.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.AutoRoutingMode) + return object; + var message = new $root.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.AutoRoutingMode(); + switch (object.modelRoutingPreference) { + default: + if (typeof object.modelRoutingPreference === "number") { + message.modelRoutingPreference = object.modelRoutingPreference; + break; + } + break; + case "UNKNOWN": + case 0: + message.modelRoutingPreference = 0; + break; + case "PRIORITIZE_QUALITY": + case 1: + message.modelRoutingPreference = 1; + break; + case "BALANCED": + case 2: + message.modelRoutingPreference = 2; + break; + case "PRIORITIZE_COST": + case 3: + message.modelRoutingPreference = 3; + break; + } + return message; + }; + + /** + * Creates a plain object from an AutoRoutingMode message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.AutoRoutingMode + * @static + * @param {google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.AutoRoutingMode} message AutoRoutingMode + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AutoRoutingMode.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.modelRoutingPreference != null && message.hasOwnProperty("modelRoutingPreference")) { + object.modelRoutingPreference = options.enums === String ? $root.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.AutoRoutingMode.ModelRoutingPreference[message.modelRoutingPreference] === undefined ? message.modelRoutingPreference : $root.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.AutoRoutingMode.ModelRoutingPreference[message.modelRoutingPreference] : message.modelRoutingPreference; + if (options.oneofs) + object._modelRoutingPreference = "modelRoutingPreference"; + } + return object; + }; + + /** + * Converts this AutoRoutingMode to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.AutoRoutingMode + * @instance + * @returns {Object.} JSON object + */ + AutoRoutingMode.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for AutoRoutingMode + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.AutoRoutingMode + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AutoRoutingMode.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.AutoRoutingMode"; + }; + + /** + * ModelRoutingPreference enum. + * @name google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.AutoRoutingMode.ModelRoutingPreference + * @enum {number} + * @property {number} UNKNOWN=0 UNKNOWN value + * @property {number} PRIORITIZE_QUALITY=1 PRIORITIZE_QUALITY value + * @property {number} BALANCED=2 BALANCED value + * @property {number} PRIORITIZE_COST=3 PRIORITIZE_COST value + */ + AutoRoutingMode.ModelRoutingPreference = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNKNOWN"] = 0; + values[valuesById[1] = "PRIORITIZE_QUALITY"] = 1; + values[valuesById[2] = "BALANCED"] = 2; + values[valuesById[3] = "PRIORITIZE_COST"] = 3; + return values; + })(); + + return AutoRoutingMode; + })(); + + RoutingConfig.ManualRoutingMode = (function() { + + /** + * Properties of a ManualRoutingMode. + * @memberof google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig + * @interface IManualRoutingMode + * @property {string|null} [modelName] ManualRoutingMode modelName + */ + + /** + * Constructs a new ManualRoutingMode. + * @memberof google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig + * @classdesc Represents a ManualRoutingMode. + * @implements IManualRoutingMode + * @constructor + * @param {google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.IManualRoutingMode=} [properties] Properties to set + */ + function ManualRoutingMode(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]]; + } + + /** + * ManualRoutingMode modelName. + * @member {string|null|undefined} modelName + * @memberof google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.ManualRoutingMode + * @instance + */ + ManualRoutingMode.prototype.modelName = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ManualRoutingMode _modelName. + * @member {"modelName"|undefined} _modelName + * @memberof google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.ManualRoutingMode + * @instance + */ + Object.defineProperty(ManualRoutingMode.prototype, "_modelName", { + get: $util.oneOfGetter($oneOfFields = ["modelName"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ManualRoutingMode instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.ManualRoutingMode + * @static + * @param {google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.IManualRoutingMode=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.ManualRoutingMode} ManualRoutingMode instance + */ + ManualRoutingMode.create = function create(properties) { + return new ManualRoutingMode(properties); + }; + + /** + * Encodes the specified ManualRoutingMode message. Does not implicitly {@link google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.ManualRoutingMode.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.ManualRoutingMode + * @static + * @param {google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.IManualRoutingMode} message ManualRoutingMode message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ManualRoutingMode.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.modelName != null && Object.hasOwnProperty.call(message, "modelName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.modelName); + return writer; + }; + + /** + * Encodes the specified ManualRoutingMode message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.ManualRoutingMode.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.ManualRoutingMode + * @static + * @param {google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.IManualRoutingMode} message ManualRoutingMode message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ManualRoutingMode.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ManualRoutingMode message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.ManualRoutingMode + * @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.GenerationConfig.RoutingConfig.ManualRoutingMode} ManualRoutingMode + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ManualRoutingMode.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.GenerationConfig.RoutingConfig.ManualRoutingMode(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.modelName = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ManualRoutingMode message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.ManualRoutingMode + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.ManualRoutingMode} ManualRoutingMode + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ManualRoutingMode.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ManualRoutingMode message. + * @function verify + * @memberof google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.ManualRoutingMode + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ManualRoutingMode.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.modelName != null && message.hasOwnProperty("modelName")) { + properties._modelName = 1; + if (!$util.isString(message.modelName)) + return "modelName: string expected"; + } + return null; + }; + + /** + * Creates a ManualRoutingMode message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.ManualRoutingMode + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.ManualRoutingMode} ManualRoutingMode + */ + ManualRoutingMode.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.ManualRoutingMode) + return object; + var message = new $root.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.ManualRoutingMode(); + if (object.modelName != null) + message.modelName = String(object.modelName); + return message; + }; + + /** + * Creates a plain object from a ManualRoutingMode message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.ManualRoutingMode + * @static + * @param {google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.ManualRoutingMode} message ManualRoutingMode + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ManualRoutingMode.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.modelName != null && message.hasOwnProperty("modelName")) { + object.modelName = message.modelName; + if (options.oneofs) + object._modelName = "modelName"; + } + return object; + }; + + /** + * Converts this ManualRoutingMode to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.ManualRoutingMode + * @instance + * @returns {Object.} JSON object + */ + ManualRoutingMode.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ManualRoutingMode + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.ManualRoutingMode + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ManualRoutingMode.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.ManualRoutingMode"; + }; + + return ManualRoutingMode; + })(); + + return RoutingConfig; + })(); + return GenerationConfig; })(); @@ -25481,6 +26725,7 @@ * @property {number|null} [index] Candidate index * @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.Candidate.FinishReason|null} [finishReason] Candidate finishReason * @property {Array.|null} [safetyRatings] Candidate safetyRatings * @property {string|null} [finishMessage] Candidate finishMessage @@ -25528,6 +26773,14 @@ */ Candidate.prototype.score = 0; + /** + * Candidate avgLogprobs. + * @member {number} avgLogprobs + * @memberof google.cloud.aiplatform.v1.Candidate + * @instance + */ + Candidate.prototype.avgLogprobs = 0; + /** * Candidate finishReason. * @member {google.cloud.aiplatform.v1.Candidate.FinishReason} finishReason @@ -25623,6 +26876,8 @@ $root.google.cloud.aiplatform.v1.GroundingMetadata.encode(message.groundingMetadata, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); if (message.score != null && Object.hasOwnProperty.call(message, "score")) 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); return writer; }; @@ -25669,6 +26924,10 @@ message.score = reader.double(); break; } + case 9: { + message.avgLogprobs = reader.double(); + break; + } case 3: { message.finishReason = reader.int32(); break; @@ -25738,6 +26997,9 @@ if (message.score != null && message.hasOwnProperty("score")) if (typeof message.score !== "number") return "score: number expected"; + if (message.avgLogprobs != null && message.hasOwnProperty("avgLogprobs")) + if (typeof message.avgLogprobs !== "number") + return "avgLogprobs: number expected"; if (message.finishReason != null && message.hasOwnProperty("finishReason")) switch (message.finishReason) { default: @@ -25802,6 +27064,8 @@ } if (object.score != null) message.score = Number(object.score); + if (object.avgLogprobs != null) + message.avgLogprobs = Number(object.avgLogprobs); switch (object.finishReason) { default: if (typeof object.finishReason === "number") { @@ -25897,6 +27161,7 @@ object.citationMetadata = null; object.groundingMetadata = null; object.score = 0; + object.avgLogprobs = 0; } if (message.index != null && message.hasOwnProperty("index")) object.index = message.index; @@ -25920,6 +27185,8 @@ object.groundingMetadata = $root.google.cloud.aiplatform.v1.GroundingMetadata.toObject(message.groundingMetadata, options); if (message.score != null && message.hasOwnProperty("score")) 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; return object; }; @@ -31483,6 +32750,8 @@ * @property {Object.|null} [labels] CustomJob labels * @property {google.cloud.aiplatform.v1.IEncryptionSpec|null} [encryptionSpec] CustomJob encryptionSpec * @property {Object.|null} [webAccessUris] CustomJob webAccessUris + * @property {boolean|null} [satisfiesPzs] CustomJob satisfiesPzs + * @property {boolean|null} [satisfiesPzi] CustomJob satisfiesPzi */ /** @@ -31598,6 +32867,22 @@ */ CustomJob.prototype.webAccessUris = $util.emptyObject; + /** + * CustomJob satisfiesPzs. + * @member {boolean} satisfiesPzs + * @memberof google.cloud.aiplatform.v1.CustomJob + * @instance + */ + CustomJob.prototype.satisfiesPzs = false; + + /** + * CustomJob satisfiesPzi. + * @member {boolean} satisfiesPzi + * @memberof google.cloud.aiplatform.v1.CustomJob + * @instance + */ + CustomJob.prototype.satisfiesPzi = false; + /** * Creates a new CustomJob instance using the specified properties. * @function create @@ -31648,6 +32933,10 @@ if (message.webAccessUris != null && Object.hasOwnProperty.call(message, "webAccessUris")) for (var keys = Object.keys(message.webAccessUris), i = 0; i < keys.length; ++i) writer.uint32(/* id 16, wireType 2 =*/130).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.webAccessUris[keys[i]]).ldelim(); + if (message.satisfiesPzs != null && Object.hasOwnProperty.call(message, "satisfiesPzs")) + writer.uint32(/* id 18, wireType 0 =*/144).bool(message.satisfiesPzs); + if (message.satisfiesPzi != null && Object.hasOwnProperty.call(message, "satisfiesPzi")) + writer.uint32(/* id 19, wireType 0 =*/152).bool(message.satisfiesPzi); return writer; }; @@ -31768,6 +33057,14 @@ message.webAccessUris[key] = value; break; } + case 18: { + message.satisfiesPzs = reader.bool(); + break; + } + case 19: { + message.satisfiesPzi = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -31878,6 +33175,12 @@ if (!$util.isString(message.webAccessUris[key[i]])) return "webAccessUris: string{k:string} expected"; } + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) + if (typeof message.satisfiesPzs !== "boolean") + return "satisfiesPzs: boolean expected"; + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) + if (typeof message.satisfiesPzi !== "boolean") + return "satisfiesPzi: boolean expected"; return null; }; @@ -32002,6 +33305,10 @@ for (var keys = Object.keys(object.webAccessUris), i = 0; i < keys.length; ++i) message.webAccessUris[keys[i]] = String(object.webAccessUris[keys[i]]); } + if (object.satisfiesPzs != null) + message.satisfiesPzs = Boolean(object.satisfiesPzs); + if (object.satisfiesPzi != null) + message.satisfiesPzi = Boolean(object.satisfiesPzi); return message; }; @@ -32033,6 +33340,8 @@ object.updateTime = null; object.error = null; object.encryptionSpec = null; + object.satisfiesPzs = false; + object.satisfiesPzi = false; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -32065,6 +33374,10 @@ for (var j = 0; j < keys2.length; ++j) object.webAccessUris[keys2[j]] = message.webAccessUris[keys2[j]]; } + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) + object.satisfiesPzs = message.satisfiesPzs; + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) + object.satisfiesPzi = message.satisfiesPzi; return object; }; @@ -33936,6 +35249,8 @@ case 0: case 1: case 2: + case 3: + case 4: break; } if (message.disableRetries != null && message.hasOwnProperty("disableRetries")) @@ -33982,6 +35297,14 @@ case 2: message.strategy = 2; break; + case "STANDARD": + case 3: + message.strategy = 3; + break; + case "SPOT": + case 4: + message.strategy = 4; + break; } if (object.disableRetries != null) message.disableRetries = Boolean(object.disableRetries); @@ -34051,12 +35374,16 @@ * @property {number} STRATEGY_UNSPECIFIED=0 STRATEGY_UNSPECIFIED value * @property {number} ON_DEMAND=1 ON_DEMAND value * @property {number} LOW_COST=2 LOW_COST value + * @property {number} STANDARD=3 STANDARD value + * @property {number} SPOT=4 SPOT value */ Scheduling.Strategy = (function() { var valuesById = {}, values = Object.create(valuesById); values[valuesById[0] = "STRATEGY_UNSPECIFIED"] = 0; values[valuesById[1] = "ON_DEMAND"] = 1; values[valuesById[2] = "LOW_COST"] = 2; + values[valuesById[3] = "STANDARD"] = 3; + values[valuesById[4] = "SPOT"] = 4; return values; })(); @@ -34075,6 +35402,8 @@ * @property {Object.|null} [labels] DataItem labels * @property {google.protobuf.IValue|null} [payload] DataItem payload * @property {string|null} [etag] DataItem etag + * @property {boolean|null} [satisfiesPzs] DataItem satisfiesPzs + * @property {boolean|null} [satisfiesPzi] DataItem satisfiesPzi */ /** @@ -34141,6 +35470,22 @@ */ DataItem.prototype.etag = ""; + /** + * DataItem satisfiesPzs. + * @member {boolean} satisfiesPzs + * @memberof google.cloud.aiplatform.v1.DataItem + * @instance + */ + DataItem.prototype.satisfiesPzs = false; + + /** + * DataItem satisfiesPzi. + * @member {boolean} satisfiesPzi + * @memberof google.cloud.aiplatform.v1.DataItem + * @instance + */ + DataItem.prototype.satisfiesPzi = false; + /** * Creates a new DataItem instance using the specified properties. * @function create @@ -34178,6 +35523,10 @@ $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) writer.uint32(/* id 7, wireType 2 =*/58).string(message.etag); + if (message.satisfiesPzs != null && Object.hasOwnProperty.call(message, "satisfiesPzs")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.satisfiesPzs); + if (message.satisfiesPzi != null && Object.hasOwnProperty.call(message, "satisfiesPzi")) + writer.uint32(/* id 11, wireType 0 =*/88).bool(message.satisfiesPzi); return writer; }; @@ -34255,6 +35604,14 @@ message.etag = reader.string(); break; } + case 10: { + message.satisfiesPzs = reader.bool(); + break; + } + case 11: { + message.satisfiesPzi = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -34319,6 +35676,12 @@ if (message.etag != null && message.hasOwnProperty("etag")) if (!$util.isString(message.etag)) return "etag: string expected"; + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) + if (typeof message.satisfiesPzs !== "boolean") + return "satisfiesPzs: boolean expected"; + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) + if (typeof message.satisfiesPzi !== "boolean") + return "satisfiesPzi: boolean expected"; return null; }; @@ -34360,6 +35723,10 @@ } if (object.etag != null) message.etag = String(object.etag); + if (object.satisfiesPzs != null) + message.satisfiesPzs = Boolean(object.satisfiesPzs); + if (object.satisfiesPzi != null) + message.satisfiesPzi = Boolean(object.satisfiesPzi); return message; }; @@ -34384,6 +35751,8 @@ object.payload = null; object.updateTime = null; object.etag = ""; + object.satisfiesPzs = false; + object.satisfiesPzi = false; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -34401,6 +35770,10 @@ object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); if (message.etag != null && message.hasOwnProperty("etag")) object.etag = message.etag; + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) + object.satisfiesPzs = message.satisfiesPzs; + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) + object.satisfiesPzi = message.satisfiesPzi; return object; }; @@ -36108,6 +37481,8 @@ * @property {google.cloud.aiplatform.v1.IEncryptionSpec|null} [encryptionSpec] Dataset encryptionSpec * @property {string|null} [metadataArtifact] Dataset metadataArtifact * @property {string|null} [modelReference] Dataset modelReference + * @property {boolean|null} [satisfiesPzs] Dataset satisfiesPzs + * @property {boolean|null} [satisfiesPzi] Dataset satisfiesPzi */ /** @@ -36239,6 +37614,22 @@ */ Dataset.prototype.modelReference = ""; + /** + * Dataset satisfiesPzs. + * @member {boolean} satisfiesPzs + * @memberof google.cloud.aiplatform.v1.Dataset + * @instance + */ + Dataset.prototype.satisfiesPzs = false; + + /** + * Dataset satisfiesPzi. + * @member {boolean} satisfiesPzi + * @memberof google.cloud.aiplatform.v1.Dataset + * @instance + */ + Dataset.prototype.satisfiesPzi = false; + /** * Creates a new Dataset instance using the specified properties. * @function create @@ -36293,6 +37684,10 @@ writer.uint32(/* id 17, wireType 2 =*/138).string(message.metadataArtifact); if (message.modelReference != null && Object.hasOwnProperty.call(message, "modelReference")) writer.uint32(/* id 18, wireType 2 =*/146).string(message.modelReference); + if (message.satisfiesPzs != null && Object.hasOwnProperty.call(message, "satisfiesPzs")) + writer.uint32(/* id 19, wireType 0 =*/152).bool(message.satisfiesPzs); + if (message.satisfiesPzi != null && Object.hasOwnProperty.call(message, "satisfiesPzi")) + writer.uint32(/* id 20, wireType 0 =*/160).bool(message.satisfiesPzi); return writer; }; @@ -36404,6 +37799,14 @@ message.modelReference = reader.string(); break; } + case 19: { + message.satisfiesPzs = reader.bool(); + break; + } + case 20: { + message.satisfiesPzi = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -36500,6 +37903,12 @@ if (message.modelReference != null && message.hasOwnProperty("modelReference")) if (!$util.isString(message.modelReference)) return "modelReference: string expected"; + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) + if (typeof message.satisfiesPzs !== "boolean") + return "satisfiesPzs: boolean expected"; + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) + if (typeof message.satisfiesPzi !== "boolean") + return "satisfiesPzi: boolean expected"; return null; }; @@ -36575,6 +37984,10 @@ message.metadataArtifact = String(object.metadataArtifact); if (object.modelReference != null) message.modelReference = String(object.modelReference); + if (object.satisfiesPzs != null) + message.satisfiesPzs = Boolean(object.satisfiesPzs); + if (object.satisfiesPzi != null) + message.satisfiesPzi = Boolean(object.satisfiesPzi); return message; }; @@ -36612,6 +38025,8 @@ object.description = ""; object.metadataArtifact = ""; object.modelReference = ""; + object.satisfiesPzs = false; + object.satisfiesPzi = false; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -36651,6 +38066,10 @@ object.metadataArtifact = message.metadataArtifact; if (message.modelReference != null && message.hasOwnProperty("modelReference")) object.modelReference = message.modelReference; + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) + object.satisfiesPzs = message.satisfiesPzs; + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) + object.satisfiesPzi = message.satisfiesPzi; return object; }; @@ -47644,6 +49063,8 @@ * @property {string|null} [displayName] DatasetVersion displayName * @property {google.protobuf.IValue|null} [metadata] DatasetVersion metadata * @property {string|null} [modelReference] DatasetVersion modelReference + * @property {boolean|null} [satisfiesPzs] DatasetVersion satisfiesPzs + * @property {boolean|null} [satisfiesPzi] DatasetVersion satisfiesPzi */ /** @@ -47725,6 +49146,22 @@ */ DatasetVersion.prototype.modelReference = ""; + /** + * DatasetVersion satisfiesPzs. + * @member {boolean} satisfiesPzs + * @memberof google.cloud.aiplatform.v1.DatasetVersion + * @instance + */ + DatasetVersion.prototype.satisfiesPzs = false; + + /** + * DatasetVersion satisfiesPzi. + * @member {boolean} satisfiesPzi + * @memberof google.cloud.aiplatform.v1.DatasetVersion + * @instance + */ + DatasetVersion.prototype.satisfiesPzi = false; + /** * Creates a new DatasetVersion instance using the specified properties. * @function create @@ -47765,6 +49202,10 @@ $root.google.protobuf.Value.encode(message.metadata, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); if (message.modelReference != null && Object.hasOwnProperty.call(message, "modelReference")) writer.uint32(/* id 9, wireType 2 =*/74).string(message.modelReference); + if (message.satisfiesPzs != null && Object.hasOwnProperty.call(message, "satisfiesPzs")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.satisfiesPzs); + if (message.satisfiesPzi != null && Object.hasOwnProperty.call(message, "satisfiesPzi")) + writer.uint32(/* id 11, wireType 0 =*/88).bool(message.satisfiesPzi); return writer; }; @@ -47831,6 +49272,14 @@ message.modelReference = reader.string(); break; } + case 10: { + message.satisfiesPzs = reader.bool(); + break; + } + case 11: { + message.satisfiesPzi = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -47896,6 +49345,12 @@ if (message.modelReference != null && message.hasOwnProperty("modelReference")) if (!$util.isString(message.modelReference)) return "modelReference: string expected"; + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) + if (typeof message.satisfiesPzs !== "boolean") + return "satisfiesPzs: boolean expected"; + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) + if (typeof message.satisfiesPzi !== "boolean") + return "satisfiesPzi: boolean expected"; return null; }; @@ -47936,6 +49391,10 @@ } if (object.modelReference != null) message.modelReference = String(object.modelReference); + if (object.satisfiesPzs != null) + message.satisfiesPzs = Boolean(object.satisfiesPzs); + if (object.satisfiesPzi != null) + message.satisfiesPzi = Boolean(object.satisfiesPzi); return message; }; @@ -47961,6 +49420,8 @@ object.displayName = ""; object.metadata = null; object.modelReference = ""; + object.satisfiesPzs = false; + object.satisfiesPzi = false; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -47978,6 +49439,10 @@ object.metadata = $root.google.protobuf.Value.toObject(message.metadata, options); if (message.modelReference != null && message.hasOwnProperty("modelReference")) object.modelReference = message.modelReference; + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) + object.satisfiesPzs = message.satisfiesPzs; + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) + object.satisfiesPzi = message.satisfiesPzi; return object; }; @@ -48762,6 +50227,8 @@ * @property {string|null} [serviceAccount] DeploymentResourcePool serviceAccount * @property {boolean|null} [disableContainerLogging] DeploymentResourcePool disableContainerLogging * @property {google.protobuf.ITimestamp|null} [createTime] DeploymentResourcePool createTime + * @property {boolean|null} [satisfiesPzs] DeploymentResourcePool satisfiesPzs + * @property {boolean|null} [satisfiesPzi] DeploymentResourcePool satisfiesPzi */ /** @@ -48827,6 +50294,22 @@ */ DeploymentResourcePool.prototype.createTime = null; + /** + * DeploymentResourcePool satisfiesPzs. + * @member {boolean} satisfiesPzs + * @memberof google.cloud.aiplatform.v1.DeploymentResourcePool + * @instance + */ + DeploymentResourcePool.prototype.satisfiesPzs = false; + + /** + * DeploymentResourcePool satisfiesPzi. + * @member {boolean} satisfiesPzi + * @memberof google.cloud.aiplatform.v1.DeploymentResourcePool + * @instance + */ + DeploymentResourcePool.prototype.satisfiesPzi = false; + /** * Creates a new DeploymentResourcePool instance using the specified properties. * @function create @@ -48863,6 +50346,10 @@ writer.uint32(/* id 6, wireType 2 =*/50).string(message.serviceAccount); if (message.disableContainerLogging != null && Object.hasOwnProperty.call(message, "disableContainerLogging")) writer.uint32(/* id 7, wireType 0 =*/56).bool(message.disableContainerLogging); + if (message.satisfiesPzs != null && Object.hasOwnProperty.call(message, "satisfiesPzs")) + writer.uint32(/* id 8, wireType 0 =*/64).bool(message.satisfiesPzs); + if (message.satisfiesPzi != null && Object.hasOwnProperty.call(message, "satisfiesPzi")) + writer.uint32(/* id 9, wireType 0 =*/72).bool(message.satisfiesPzi); return writer; }; @@ -48921,6 +50408,14 @@ message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } + case 8: { + message.satisfiesPzs = reader.bool(); + break; + } + case 9: { + message.satisfiesPzi = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -48980,6 +50475,12 @@ if (error) return "createTime." + error; } + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) + if (typeof message.satisfiesPzs !== "boolean") + return "satisfiesPzs: boolean expected"; + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) + if (typeof message.satisfiesPzi !== "boolean") + return "satisfiesPzi: boolean expected"; return null; }; @@ -49016,6 +50517,10 @@ throw TypeError(".google.cloud.aiplatform.v1.DeploymentResourcePool.createTime: object expected"); message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); } + if (object.satisfiesPzs != null) + message.satisfiesPzs = Boolean(object.satisfiesPzs); + if (object.satisfiesPzi != null) + message.satisfiesPzi = Boolean(object.satisfiesPzi); return message; }; @@ -49039,6 +50544,8 @@ object.encryptionSpec = null; object.serviceAccount = ""; object.disableContainerLogging = false; + object.satisfiesPzs = false; + object.satisfiesPzi = false; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -49052,6 +50559,10 @@ object.serviceAccount = message.serviceAccount; if (message.disableContainerLogging != null && message.hasOwnProperty("disableContainerLogging")) object.disableContainerLogging = message.disableContainerLogging; + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) + object.satisfiesPzs = message.satisfiesPzs; + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) + object.satisfiesPzi = message.satisfiesPzi; return object; }; @@ -53552,6 +55063,7 @@ * @interface IPrivateServiceConnectConfig * @property {boolean|null} [enablePrivateServiceConnect] PrivateServiceConnectConfig enablePrivateServiceConnect * @property {Array.|null} [projectAllowlist] PrivateServiceConnectConfig projectAllowlist + * @property {string|null} [serviceAttachment] PrivateServiceConnectConfig serviceAttachment */ /** @@ -53586,6 +55098,14 @@ */ PrivateServiceConnectConfig.prototype.projectAllowlist = $util.emptyArray; + /** + * PrivateServiceConnectConfig serviceAttachment. + * @member {string} serviceAttachment + * @memberof google.cloud.aiplatform.v1.PrivateServiceConnectConfig + * @instance + */ + PrivateServiceConnectConfig.prototype.serviceAttachment = ""; + /** * Creates a new PrivateServiceConnectConfig instance using the specified properties. * @function create @@ -53615,6 +55135,8 @@ if (message.projectAllowlist != null && message.projectAllowlist.length) for (var i = 0; i < message.projectAllowlist.length; ++i) writer.uint32(/* id 2, wireType 2 =*/18).string(message.projectAllowlist[i]); + if (message.serviceAttachment != null && Object.hasOwnProperty.call(message, "serviceAttachment")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.serviceAttachment); return writer; }; @@ -53659,6 +55181,10 @@ message.projectAllowlist.push(reader.string()); break; } + case 5: { + message.serviceAttachment = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -53704,6 +55230,9 @@ if (!$util.isString(message.projectAllowlist[i])) return "projectAllowlist: string[] expected"; } + if (message.serviceAttachment != null && message.hasOwnProperty("serviceAttachment")) + if (!$util.isString(message.serviceAttachment)) + return "serviceAttachment: string expected"; return null; }; @@ -53728,6 +55257,8 @@ for (var i = 0; i < object.projectAllowlist.length; ++i) message.projectAllowlist[i] = String(object.projectAllowlist[i]); } + if (object.serviceAttachment != null) + message.serviceAttachment = String(object.serviceAttachment); return message; }; @@ -53746,8 +55277,10 @@ var object = {}; if (options.arrays || options.defaults) object.projectAllowlist = []; - if (options.defaults) + if (options.defaults) { object.enablePrivateServiceConnect = false; + object.serviceAttachment = ""; + } if (message.enablePrivateServiceConnect != null && message.hasOwnProperty("enablePrivateServiceConnect")) object.enablePrivateServiceConnect = message.enablePrivateServiceConnect; if (message.projectAllowlist && message.projectAllowlist.length) { @@ -53755,6 +55288,8 @@ for (var j = 0; j < message.projectAllowlist.length; ++j) object.projectAllowlist[j] = message.projectAllowlist[j]; } + if (message.serviceAttachment != null && message.hasOwnProperty("serviceAttachment")) + object.serviceAttachment = message.serviceAttachment; return object; }; @@ -58080,6 +59615,8 @@ * @property {string|null} [etag] EntityType etag * @property {google.cloud.aiplatform.v1.IFeaturestoreMonitoringConfig|null} [monitoringConfig] EntityType monitoringConfig * @property {number|null} [offlineStorageTtlDays] EntityType offlineStorageTtlDays + * @property {boolean|null} [satisfiesPzs] EntityType satisfiesPzs + * @property {boolean|null} [satisfiesPzi] EntityType satisfiesPzi */ /** @@ -58162,6 +59699,22 @@ */ EntityType.prototype.offlineStorageTtlDays = 0; + /** + * EntityType satisfiesPzs. + * @member {boolean} satisfiesPzs + * @memberof google.cloud.aiplatform.v1.EntityType + * @instance + */ + EntityType.prototype.satisfiesPzs = false; + + /** + * EntityType satisfiesPzi. + * @member {boolean} satisfiesPzi + * @memberof google.cloud.aiplatform.v1.EntityType + * @instance + */ + EntityType.prototype.satisfiesPzi = false; + /** * Creates a new EntityType instance using the specified properties. * @function create @@ -58203,6 +59756,10 @@ $root.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.encode(message.monitoringConfig, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); if (message.offlineStorageTtlDays != null && Object.hasOwnProperty.call(message, "offlineStorageTtlDays")) writer.uint32(/* id 10, wireType 0 =*/80).int32(message.offlineStorageTtlDays); + if (message.satisfiesPzs != null && Object.hasOwnProperty.call(message, "satisfiesPzs")) + writer.uint32(/* id 11, wireType 0 =*/88).bool(message.satisfiesPzs); + if (message.satisfiesPzi != null && Object.hasOwnProperty.call(message, "satisfiesPzi")) + writer.uint32(/* id 12, wireType 0 =*/96).bool(message.satisfiesPzi); return writer; }; @@ -58288,6 +59845,14 @@ message.offlineStorageTtlDays = reader.int32(); break; } + case 11: { + message.satisfiesPzs = reader.bool(); + break; + } + case 12: { + message.satisfiesPzi = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -58358,6 +59923,12 @@ if (message.offlineStorageTtlDays != null && message.hasOwnProperty("offlineStorageTtlDays")) if (!$util.isInteger(message.offlineStorageTtlDays)) return "offlineStorageTtlDays: integer expected"; + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) + if (typeof message.satisfiesPzs !== "boolean") + return "satisfiesPzs: boolean expected"; + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) + if (typeof message.satisfiesPzi !== "boolean") + return "satisfiesPzi: boolean expected"; return null; }; @@ -58403,6 +59974,10 @@ } if (object.offlineStorageTtlDays != null) message.offlineStorageTtlDays = object.offlineStorageTtlDays | 0; + if (object.satisfiesPzs != null) + message.satisfiesPzs = Boolean(object.satisfiesPzs); + if (object.satisfiesPzi != null) + message.satisfiesPzi = Boolean(object.satisfiesPzi); return message; }; @@ -58429,6 +60004,8 @@ object.etag = ""; object.monitoringConfig = null; object.offlineStorageTtlDays = 0; + object.satisfiesPzs = false; + object.satisfiesPzi = false; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -58450,6 +60027,10 @@ object.monitoringConfig = $root.google.cloud.aiplatform.v1.FeaturestoreMonitoringConfig.toObject(message.monitoringConfig, options); if (message.offlineStorageTtlDays != null && message.hasOwnProperty("offlineStorageTtlDays")) object.offlineStorageTtlDays = message.offlineStorageTtlDays; + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) + object.satisfiesPzs = message.satisfiesPzs; + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) + object.satisfiesPzi = message.satisfiesPzi; return object; }; @@ -60848,29 +62429,133 @@ return ErrorAnalysisAnnotation; })(); - v1.Event = (function() { + v1.EvaluationService = (function() { /** - * Properties of an Event. + * Constructs a new EvaluationService service. * @memberof google.cloud.aiplatform.v1 - * @interface IEvent - * @property {string|null} [artifact] Event artifact - * @property {string|null} [execution] Event execution - * @property {google.protobuf.ITimestamp|null} [eventTime] Event eventTime - * @property {google.cloud.aiplatform.v1.Event.Type|null} [type] Event type - * @property {Object.|null} [labels] Event labels + * @classdesc Represents an EvaluationService + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ + function EvaluationService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (EvaluationService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = EvaluationService; /** - * Constructs a new Event. + * Creates new EvaluationService service using the specified rpc implementation. + * @function create + * @memberof google.cloud.aiplatform.v1.EvaluationService + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {EvaluationService} RPC service. Useful where requests and/or responses are streamed. + */ + EvaluationService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.EvaluationService|evaluateInstances}. + * @memberof google.cloud.aiplatform.v1.EvaluationService + * @typedef EvaluateInstancesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.EvaluateInstancesResponse} [response] EvaluateInstancesResponse + */ + + /** + * Calls EvaluateInstances. + * @function evaluateInstances + * @memberof google.cloud.aiplatform.v1.EvaluationService + * @instance + * @param {google.cloud.aiplatform.v1.IEvaluateInstancesRequest} request EvaluateInstancesRequest message or plain object + * @param {google.cloud.aiplatform.v1.EvaluationService.EvaluateInstancesCallback} callback Node-style callback called with the error, if any, and EvaluateInstancesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(EvaluationService.prototype.evaluateInstances = function evaluateInstances(request, callback) { + return this.rpcCall(evaluateInstances, $root.google.cloud.aiplatform.v1.EvaluateInstancesRequest, $root.google.cloud.aiplatform.v1.EvaluateInstancesResponse, request, callback); + }, "name", { value: "EvaluateInstances" }); + + /** + * Calls EvaluateInstances. + * @function evaluateInstances + * @memberof google.cloud.aiplatform.v1.EvaluationService + * @instance + * @param {google.cloud.aiplatform.v1.IEvaluateInstancesRequest} request EvaluateInstancesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return EvaluationService; + })(); + + /** + * PairwiseChoice enum. + * @name google.cloud.aiplatform.v1.PairwiseChoice + * @enum {number} + * @property {number} PAIRWISE_CHOICE_UNSPECIFIED=0 PAIRWISE_CHOICE_UNSPECIFIED value + * @property {number} BASELINE=1 BASELINE value + * @property {number} CANDIDATE=2 CANDIDATE value + * @property {number} TIE=3 TIE value + */ + v1.PairwiseChoice = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "PAIRWISE_CHOICE_UNSPECIFIED"] = 0; + values[valuesById[1] = "BASELINE"] = 1; + values[valuesById[2] = "CANDIDATE"] = 2; + values[valuesById[3] = "TIE"] = 3; + return values; + })(); + + v1.EvaluateInstancesRequest = (function() { + + /** + * Properties of an EvaluateInstancesRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an Event. - * @implements IEvent + * @interface IEvaluateInstancesRequest + * @property {google.cloud.aiplatform.v1.IExactMatchInput|null} [exactMatchInput] EvaluateInstancesRequest exactMatchInput + * @property {google.cloud.aiplatform.v1.IBleuInput|null} [bleuInput] EvaluateInstancesRequest bleuInput + * @property {google.cloud.aiplatform.v1.IRougeInput|null} [rougeInput] EvaluateInstancesRequest rougeInput + * @property {google.cloud.aiplatform.v1.IFluencyInput|null} [fluencyInput] EvaluateInstancesRequest fluencyInput + * @property {google.cloud.aiplatform.v1.ICoherenceInput|null} [coherenceInput] EvaluateInstancesRequest coherenceInput + * @property {google.cloud.aiplatform.v1.ISafetyInput|null} [safetyInput] EvaluateInstancesRequest safetyInput + * @property {google.cloud.aiplatform.v1.IGroundednessInput|null} [groundednessInput] EvaluateInstancesRequest groundednessInput + * @property {google.cloud.aiplatform.v1.IFulfillmentInput|null} [fulfillmentInput] EvaluateInstancesRequest fulfillmentInput + * @property {google.cloud.aiplatform.v1.ISummarizationQualityInput|null} [summarizationQualityInput] EvaluateInstancesRequest summarizationQualityInput + * @property {google.cloud.aiplatform.v1.IPairwiseSummarizationQualityInput|null} [pairwiseSummarizationQualityInput] EvaluateInstancesRequest pairwiseSummarizationQualityInput + * @property {google.cloud.aiplatform.v1.ISummarizationHelpfulnessInput|null} [summarizationHelpfulnessInput] EvaluateInstancesRequest summarizationHelpfulnessInput + * @property {google.cloud.aiplatform.v1.ISummarizationVerbosityInput|null} [summarizationVerbosityInput] EvaluateInstancesRequest summarizationVerbosityInput + * @property {google.cloud.aiplatform.v1.IQuestionAnsweringQualityInput|null} [questionAnsweringQualityInput] EvaluateInstancesRequest questionAnsweringQualityInput + * @property {google.cloud.aiplatform.v1.IPairwiseQuestionAnsweringQualityInput|null} [pairwiseQuestionAnsweringQualityInput] EvaluateInstancesRequest pairwiseQuestionAnsweringQualityInput + * @property {google.cloud.aiplatform.v1.IQuestionAnsweringRelevanceInput|null} [questionAnsweringRelevanceInput] EvaluateInstancesRequest questionAnsweringRelevanceInput + * @property {google.cloud.aiplatform.v1.IQuestionAnsweringHelpfulnessInput|null} [questionAnsweringHelpfulnessInput] EvaluateInstancesRequest questionAnsweringHelpfulnessInput + * @property {google.cloud.aiplatform.v1.IQuestionAnsweringCorrectnessInput|null} [questionAnsweringCorrectnessInput] EvaluateInstancesRequest questionAnsweringCorrectnessInput + * @property {google.cloud.aiplatform.v1.IPointwiseMetricInput|null} [pointwiseMetricInput] EvaluateInstancesRequest pointwiseMetricInput + * @property {google.cloud.aiplatform.v1.IPairwiseMetricInput|null} [pairwiseMetricInput] EvaluateInstancesRequest pairwiseMetricInput + * @property {google.cloud.aiplatform.v1.IToolCallValidInput|null} [toolCallValidInput] EvaluateInstancesRequest toolCallValidInput + * @property {google.cloud.aiplatform.v1.IToolNameMatchInput|null} [toolNameMatchInput] EvaluateInstancesRequest toolNameMatchInput + * @property {google.cloud.aiplatform.v1.IToolParameterKeyMatchInput|null} [toolParameterKeyMatchInput] EvaluateInstancesRequest toolParameterKeyMatchInput + * @property {google.cloud.aiplatform.v1.IToolParameterKVMatchInput|null} [toolParameterKvMatchInput] EvaluateInstancesRequest toolParameterKvMatchInput + * @property {string|null} [location] EvaluateInstancesRequest location + */ + + /** + * Constructs a new EvaluateInstancesRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents an EvaluateInstancesRequest. + * @implements IEvaluateInstancesRequest * @constructor - * @param {google.cloud.aiplatform.v1.IEvent=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IEvaluateInstancesRequest=} [properties] Properties to set */ - function Event(properties) { - this.labels = {}; + function EvaluateInstancesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -60878,151 +62563,411 @@ } /** - * Event artifact. - * @member {string} artifact - * @memberof google.cloud.aiplatform.v1.Event + * EvaluateInstancesRequest exactMatchInput. + * @member {google.cloud.aiplatform.v1.IExactMatchInput|null|undefined} exactMatchInput + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesRequest * @instance */ - Event.prototype.artifact = ""; + EvaluateInstancesRequest.prototype.exactMatchInput = null; /** - * Event execution. - * @member {string} execution - * @memberof google.cloud.aiplatform.v1.Event + * EvaluateInstancesRequest bleuInput. + * @member {google.cloud.aiplatform.v1.IBleuInput|null|undefined} bleuInput + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesRequest * @instance */ - Event.prototype.execution = ""; + EvaluateInstancesRequest.prototype.bleuInput = null; /** - * Event eventTime. - * @member {google.protobuf.ITimestamp|null|undefined} eventTime - * @memberof google.cloud.aiplatform.v1.Event + * EvaluateInstancesRequest rougeInput. + * @member {google.cloud.aiplatform.v1.IRougeInput|null|undefined} rougeInput + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesRequest * @instance */ - Event.prototype.eventTime = null; + EvaluateInstancesRequest.prototype.rougeInput = null; /** - * Event type. - * @member {google.cloud.aiplatform.v1.Event.Type} type - * @memberof google.cloud.aiplatform.v1.Event + * EvaluateInstancesRequest fluencyInput. + * @member {google.cloud.aiplatform.v1.IFluencyInput|null|undefined} fluencyInput + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesRequest * @instance */ - Event.prototype.type = 0; + EvaluateInstancesRequest.prototype.fluencyInput = null; /** - * Event labels. - * @member {Object.} labels - * @memberof google.cloud.aiplatform.v1.Event + * EvaluateInstancesRequest coherenceInput. + * @member {google.cloud.aiplatform.v1.ICoherenceInput|null|undefined} coherenceInput + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesRequest * @instance */ - Event.prototype.labels = $util.emptyObject; + EvaluateInstancesRequest.prototype.coherenceInput = null; /** - * Creates a new Event instance using the specified properties. + * EvaluateInstancesRequest safetyInput. + * @member {google.cloud.aiplatform.v1.ISafetyInput|null|undefined} safetyInput + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesRequest + * @instance + */ + EvaluateInstancesRequest.prototype.safetyInput = null; + + /** + * EvaluateInstancesRequest groundednessInput. + * @member {google.cloud.aiplatform.v1.IGroundednessInput|null|undefined} groundednessInput + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesRequest + * @instance + */ + EvaluateInstancesRequest.prototype.groundednessInput = null; + + /** + * EvaluateInstancesRequest fulfillmentInput. + * @member {google.cloud.aiplatform.v1.IFulfillmentInput|null|undefined} fulfillmentInput + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesRequest + * @instance + */ + EvaluateInstancesRequest.prototype.fulfillmentInput = null; + + /** + * EvaluateInstancesRequest summarizationQualityInput. + * @member {google.cloud.aiplatform.v1.ISummarizationQualityInput|null|undefined} summarizationQualityInput + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesRequest + * @instance + */ + EvaluateInstancesRequest.prototype.summarizationQualityInput = null; + + /** + * EvaluateInstancesRequest pairwiseSummarizationQualityInput. + * @member {google.cloud.aiplatform.v1.IPairwiseSummarizationQualityInput|null|undefined} pairwiseSummarizationQualityInput + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesRequest + * @instance + */ + EvaluateInstancesRequest.prototype.pairwiseSummarizationQualityInput = null; + + /** + * EvaluateInstancesRequest summarizationHelpfulnessInput. + * @member {google.cloud.aiplatform.v1.ISummarizationHelpfulnessInput|null|undefined} summarizationHelpfulnessInput + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesRequest + * @instance + */ + EvaluateInstancesRequest.prototype.summarizationHelpfulnessInput = null; + + /** + * EvaluateInstancesRequest summarizationVerbosityInput. + * @member {google.cloud.aiplatform.v1.ISummarizationVerbosityInput|null|undefined} summarizationVerbosityInput + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesRequest + * @instance + */ + EvaluateInstancesRequest.prototype.summarizationVerbosityInput = null; + + /** + * EvaluateInstancesRequest questionAnsweringQualityInput. + * @member {google.cloud.aiplatform.v1.IQuestionAnsweringQualityInput|null|undefined} questionAnsweringQualityInput + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesRequest + * @instance + */ + EvaluateInstancesRequest.prototype.questionAnsweringQualityInput = null; + + /** + * EvaluateInstancesRequest pairwiseQuestionAnsweringQualityInput. + * @member {google.cloud.aiplatform.v1.IPairwiseQuestionAnsweringQualityInput|null|undefined} pairwiseQuestionAnsweringQualityInput + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesRequest + * @instance + */ + EvaluateInstancesRequest.prototype.pairwiseQuestionAnsweringQualityInput = null; + + /** + * EvaluateInstancesRequest questionAnsweringRelevanceInput. + * @member {google.cloud.aiplatform.v1.IQuestionAnsweringRelevanceInput|null|undefined} questionAnsweringRelevanceInput + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesRequest + * @instance + */ + EvaluateInstancesRequest.prototype.questionAnsweringRelevanceInput = null; + + /** + * EvaluateInstancesRequest questionAnsweringHelpfulnessInput. + * @member {google.cloud.aiplatform.v1.IQuestionAnsweringHelpfulnessInput|null|undefined} questionAnsweringHelpfulnessInput + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesRequest + * @instance + */ + EvaluateInstancesRequest.prototype.questionAnsweringHelpfulnessInput = null; + + /** + * EvaluateInstancesRequest questionAnsweringCorrectnessInput. + * @member {google.cloud.aiplatform.v1.IQuestionAnsweringCorrectnessInput|null|undefined} questionAnsweringCorrectnessInput + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesRequest + * @instance + */ + EvaluateInstancesRequest.prototype.questionAnsweringCorrectnessInput = null; + + /** + * EvaluateInstancesRequest pointwiseMetricInput. + * @member {google.cloud.aiplatform.v1.IPointwiseMetricInput|null|undefined} pointwiseMetricInput + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesRequest + * @instance + */ + EvaluateInstancesRequest.prototype.pointwiseMetricInput = null; + + /** + * EvaluateInstancesRequest pairwiseMetricInput. + * @member {google.cloud.aiplatform.v1.IPairwiseMetricInput|null|undefined} pairwiseMetricInput + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesRequest + * @instance + */ + EvaluateInstancesRequest.prototype.pairwiseMetricInput = null; + + /** + * EvaluateInstancesRequest toolCallValidInput. + * @member {google.cloud.aiplatform.v1.IToolCallValidInput|null|undefined} toolCallValidInput + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesRequest + * @instance + */ + EvaluateInstancesRequest.prototype.toolCallValidInput = null; + + /** + * EvaluateInstancesRequest toolNameMatchInput. + * @member {google.cloud.aiplatform.v1.IToolNameMatchInput|null|undefined} toolNameMatchInput + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesRequest + * @instance + */ + EvaluateInstancesRequest.prototype.toolNameMatchInput = null; + + /** + * EvaluateInstancesRequest toolParameterKeyMatchInput. + * @member {google.cloud.aiplatform.v1.IToolParameterKeyMatchInput|null|undefined} toolParameterKeyMatchInput + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesRequest + * @instance + */ + EvaluateInstancesRequest.prototype.toolParameterKeyMatchInput = null; + + /** + * EvaluateInstancesRequest toolParameterKvMatchInput. + * @member {google.cloud.aiplatform.v1.IToolParameterKVMatchInput|null|undefined} toolParameterKvMatchInput + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesRequest + * @instance + */ + EvaluateInstancesRequest.prototype.toolParameterKvMatchInput = null; + + /** + * EvaluateInstancesRequest location. + * @member {string} location + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesRequest + * @instance + */ + EvaluateInstancesRequest.prototype.location = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * EvaluateInstancesRequest metricInputs. + * @member {"exactMatchInput"|"bleuInput"|"rougeInput"|"fluencyInput"|"coherenceInput"|"safetyInput"|"groundednessInput"|"fulfillmentInput"|"summarizationQualityInput"|"pairwiseSummarizationQualityInput"|"summarizationHelpfulnessInput"|"summarizationVerbosityInput"|"questionAnsweringQualityInput"|"pairwiseQuestionAnsweringQualityInput"|"questionAnsweringRelevanceInput"|"questionAnsweringHelpfulnessInput"|"questionAnsweringCorrectnessInput"|"pointwiseMetricInput"|"pairwiseMetricInput"|"toolCallValidInput"|"toolNameMatchInput"|"toolParameterKeyMatchInput"|"toolParameterKvMatchInput"|undefined} metricInputs + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesRequest + * @instance + */ + Object.defineProperty(EvaluateInstancesRequest.prototype, "metricInputs", { + get: $util.oneOfGetter($oneOfFields = ["exactMatchInput", "bleuInput", "rougeInput", "fluencyInput", "coherenceInput", "safetyInput", "groundednessInput", "fulfillmentInput", "summarizationQualityInput", "pairwiseSummarizationQualityInput", "summarizationHelpfulnessInput", "summarizationVerbosityInput", "questionAnsweringQualityInput", "pairwiseQuestionAnsweringQualityInput", "questionAnsweringRelevanceInput", "questionAnsweringHelpfulnessInput", "questionAnsweringCorrectnessInput", "pointwiseMetricInput", "pairwiseMetricInput", "toolCallValidInput", "toolNameMatchInput", "toolParameterKeyMatchInput", "toolParameterKvMatchInput"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new EvaluateInstancesRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.Event + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesRequest * @static - * @param {google.cloud.aiplatform.v1.IEvent=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.Event} Event instance + * @param {google.cloud.aiplatform.v1.IEvaluateInstancesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.EvaluateInstancesRequest} EvaluateInstancesRequest instance */ - Event.create = function create(properties) { - return new Event(properties); + EvaluateInstancesRequest.create = function create(properties) { + return new EvaluateInstancesRequest(properties); }; /** - * Encodes the specified Event message. Does not implicitly {@link google.cloud.aiplatform.v1.Event.verify|verify} messages. + * Encodes the specified EvaluateInstancesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.EvaluateInstancesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.Event + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesRequest * @static - * @param {google.cloud.aiplatform.v1.IEvent} message Event message or plain object to encode + * @param {google.cloud.aiplatform.v1.IEvaluateInstancesRequest} message EvaluateInstancesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Event.encode = function encode(message, writer) { + EvaluateInstancesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.artifact != null && Object.hasOwnProperty.call(message, "artifact")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.artifact); - if (message.execution != null && Object.hasOwnProperty.call(message, "execution")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.execution); - if (message.eventTime != null && Object.hasOwnProperty.call(message, "eventTime")) - $root.google.protobuf.Timestamp.encode(message.eventTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.type); - 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 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.location != null && Object.hasOwnProperty.call(message, "location")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.location); + if (message.exactMatchInput != null && Object.hasOwnProperty.call(message, "exactMatchInput")) + $root.google.cloud.aiplatform.v1.ExactMatchInput.encode(message.exactMatchInput, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.bleuInput != null && Object.hasOwnProperty.call(message, "bleuInput")) + $root.google.cloud.aiplatform.v1.BleuInput.encode(message.bleuInput, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.rougeInput != null && Object.hasOwnProperty.call(message, "rougeInput")) + $root.google.cloud.aiplatform.v1.RougeInput.encode(message.rougeInput, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.fluencyInput != null && Object.hasOwnProperty.call(message, "fluencyInput")) + $root.google.cloud.aiplatform.v1.FluencyInput.encode(message.fluencyInput, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.coherenceInput != null && Object.hasOwnProperty.call(message, "coherenceInput")) + $root.google.cloud.aiplatform.v1.CoherenceInput.encode(message.coherenceInput, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.summarizationQualityInput != null && Object.hasOwnProperty.call(message, "summarizationQualityInput")) + $root.google.cloud.aiplatform.v1.SummarizationQualityInput.encode(message.summarizationQualityInput, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.safetyInput != null && Object.hasOwnProperty.call(message, "safetyInput")) + $root.google.cloud.aiplatform.v1.SafetyInput.encode(message.safetyInput, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.groundednessInput != null && Object.hasOwnProperty.call(message, "groundednessInput")) + $root.google.cloud.aiplatform.v1.GroundednessInput.encode(message.groundednessInput, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.questionAnsweringQualityInput != null && Object.hasOwnProperty.call(message, "questionAnsweringQualityInput")) + $root.google.cloud.aiplatform.v1.QuestionAnsweringQualityInput.encode(message.questionAnsweringQualityInput, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.fulfillmentInput != null && Object.hasOwnProperty.call(message, "fulfillmentInput")) + $root.google.cloud.aiplatform.v1.FulfillmentInput.encode(message.fulfillmentInput, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.summarizationHelpfulnessInput != null && Object.hasOwnProperty.call(message, "summarizationHelpfulnessInput")) + $root.google.cloud.aiplatform.v1.SummarizationHelpfulnessInput.encode(message.summarizationHelpfulnessInput, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + if (message.summarizationVerbosityInput != null && Object.hasOwnProperty.call(message, "summarizationVerbosityInput")) + $root.google.cloud.aiplatform.v1.SummarizationVerbosityInput.encode(message.summarizationVerbosityInput, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); + if (message.questionAnsweringRelevanceInput != null && Object.hasOwnProperty.call(message, "questionAnsweringRelevanceInput")) + $root.google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInput.encode(message.questionAnsweringRelevanceInput, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); + if (message.questionAnsweringHelpfulnessInput != null && Object.hasOwnProperty.call(message, "questionAnsweringHelpfulnessInput")) + $root.google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInput.encode(message.questionAnsweringHelpfulnessInput, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); + if (message.questionAnsweringCorrectnessInput != null && Object.hasOwnProperty.call(message, "questionAnsweringCorrectnessInput")) + $root.google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInput.encode(message.questionAnsweringCorrectnessInput, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); + if (message.toolCallValidInput != null && Object.hasOwnProperty.call(message, "toolCallValidInput")) + $root.google.cloud.aiplatform.v1.ToolCallValidInput.encode(message.toolCallValidInput, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim(); + if (message.toolNameMatchInput != null && Object.hasOwnProperty.call(message, "toolNameMatchInput")) + $root.google.cloud.aiplatform.v1.ToolNameMatchInput.encode(message.toolNameMatchInput, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); + if (message.toolParameterKeyMatchInput != null && Object.hasOwnProperty.call(message, "toolParameterKeyMatchInput")) + $root.google.cloud.aiplatform.v1.ToolParameterKeyMatchInput.encode(message.toolParameterKeyMatchInput, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); + if (message.toolParameterKvMatchInput != null && Object.hasOwnProperty.call(message, "toolParameterKvMatchInput")) + $root.google.cloud.aiplatform.v1.ToolParameterKVMatchInput.encode(message.toolParameterKvMatchInput, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim(); + if (message.pairwiseSummarizationQualityInput != null && Object.hasOwnProperty.call(message, "pairwiseSummarizationQualityInput")) + $root.google.cloud.aiplatform.v1.PairwiseSummarizationQualityInput.encode(message.pairwiseSummarizationQualityInput, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim(); + if (message.pairwiseQuestionAnsweringQualityInput != null && Object.hasOwnProperty.call(message, "pairwiseQuestionAnsweringQualityInput")) + $root.google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInput.encode(message.pairwiseQuestionAnsweringQualityInput, writer.uint32(/* id 24, wireType 2 =*/194).fork()).ldelim(); + if (message.pointwiseMetricInput != null && Object.hasOwnProperty.call(message, "pointwiseMetricInput")) + $root.google.cloud.aiplatform.v1.PointwiseMetricInput.encode(message.pointwiseMetricInput, writer.uint32(/* id 28, wireType 2 =*/226).fork()).ldelim(); + if (message.pairwiseMetricInput != null && Object.hasOwnProperty.call(message, "pairwiseMetricInput")) + $root.google.cloud.aiplatform.v1.PairwiseMetricInput.encode(message.pairwiseMetricInput, writer.uint32(/* id 29, wireType 2 =*/234).fork()).ldelim(); return writer; }; /** - * Encodes the specified Event message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Event.verify|verify} messages. + * Encodes the specified EvaluateInstancesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.EvaluateInstancesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.Event + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesRequest * @static - * @param {google.cloud.aiplatform.v1.IEvent} message Event message or plain object to encode + * @param {google.cloud.aiplatform.v1.IEvaluateInstancesRequest} message EvaluateInstancesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Event.encodeDelimited = function encodeDelimited(message, writer) { + EvaluateInstancesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Event message from the specified reader or buffer. + * Decodes an EvaluateInstancesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.Event + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesRequest * @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.Event} Event + * @returns {google.cloud.aiplatform.v1.EvaluateInstancesRequest} EvaluateInstancesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Event.decode = function decode(reader, length) { + EvaluateInstancesRequest.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.Event(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.EvaluateInstancesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.artifact = reader.string(); - break; - } case 2: { - message.execution = reader.string(); + message.exactMatchInput = $root.google.cloud.aiplatform.v1.ExactMatchInput.decode(reader, reader.uint32()); break; } case 3: { - message.eventTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.bleuInput = $root.google.cloud.aiplatform.v1.BleuInput.decode(reader, reader.uint32()); break; } case 4: { - message.type = reader.int32(); + message.rougeInput = $root.google.cloud.aiplatform.v1.RougeInput.decode(reader, reader.uint32()); break; } case 5: { - 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; + message.fluencyInput = $root.google.cloud.aiplatform.v1.FluencyInput.decode(reader, reader.uint32()); + break; + } + case 6: { + message.coherenceInput = $root.google.cloud.aiplatform.v1.CoherenceInput.decode(reader, reader.uint32()); + break; + } + case 8: { + message.safetyInput = $root.google.cloud.aiplatform.v1.SafetyInput.decode(reader, reader.uint32()); + break; + } + case 9: { + message.groundednessInput = $root.google.cloud.aiplatform.v1.GroundednessInput.decode(reader, reader.uint32()); + break; + } + case 12: { + message.fulfillmentInput = $root.google.cloud.aiplatform.v1.FulfillmentInput.decode(reader, reader.uint32()); + break; + } + case 7: { + message.summarizationQualityInput = $root.google.cloud.aiplatform.v1.SummarizationQualityInput.decode(reader, reader.uint32()); + break; + } + case 23: { + message.pairwiseSummarizationQualityInput = $root.google.cloud.aiplatform.v1.PairwiseSummarizationQualityInput.decode(reader, reader.uint32()); + break; + } + case 14: { + message.summarizationHelpfulnessInput = $root.google.cloud.aiplatform.v1.SummarizationHelpfulnessInput.decode(reader, reader.uint32()); + break; + } + case 15: { + message.summarizationVerbosityInput = $root.google.cloud.aiplatform.v1.SummarizationVerbosityInput.decode(reader, reader.uint32()); + break; + } + case 10: { + message.questionAnsweringQualityInput = $root.google.cloud.aiplatform.v1.QuestionAnsweringQualityInput.decode(reader, reader.uint32()); + break; + } + case 24: { + message.pairwiseQuestionAnsweringQualityInput = $root.google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInput.decode(reader, reader.uint32()); + break; + } + case 16: { + message.questionAnsweringRelevanceInput = $root.google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInput.decode(reader, reader.uint32()); + break; + } + case 17: { + message.questionAnsweringHelpfulnessInput = $root.google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInput.decode(reader, reader.uint32()); + break; + } + case 18: { + message.questionAnsweringCorrectnessInput = $root.google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInput.decode(reader, reader.uint32()); + break; + } + case 28: { + message.pointwiseMetricInput = $root.google.cloud.aiplatform.v1.PointwiseMetricInput.decode(reader, reader.uint32()); + break; + } + case 29: { + message.pairwiseMetricInput = $root.google.cloud.aiplatform.v1.PairwiseMetricInput.decode(reader, reader.uint32()); + break; + } + case 19: { + message.toolCallValidInput = $root.google.cloud.aiplatform.v1.ToolCallValidInput.decode(reader, reader.uint32()); + break; + } + case 20: { + message.toolNameMatchInput = $root.google.cloud.aiplatform.v1.ToolNameMatchInput.decode(reader, reader.uint32()); + break; + } + case 21: { + message.toolParameterKeyMatchInput = $root.google.cloud.aiplatform.v1.ToolParameterKeyMatchInput.decode(reader, reader.uint32()); + break; + } + case 22: { + message.toolParameterKvMatchInput = $root.google.cloud.aiplatform.v1.ToolParameterKVMatchInput.decode(reader, reader.uint32()); + break; + } + case 1: { + message.location = reader.string(); break; } default: @@ -61034,226 +62979,603 @@ }; /** - * Decodes an Event message from the specified reader or buffer, length delimited. + * Decodes an EvaluateInstancesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.Event + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.Event} Event + * @returns {google.cloud.aiplatform.v1.EvaluateInstancesRequest} EvaluateInstancesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Event.decodeDelimited = function decodeDelimited(reader) { + EvaluateInstancesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Event message. + * Verifies an EvaluateInstancesRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.Event + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Event.verify = function verify(message) { + EvaluateInstancesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.artifact != null && message.hasOwnProperty("artifact")) - if (!$util.isString(message.artifact)) - return "artifact: string expected"; - if (message.execution != null && message.hasOwnProperty("execution")) - if (!$util.isString(message.execution)) - return "execution: string expected"; - if (message.eventTime != null && message.hasOwnProperty("eventTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.eventTime); - if (error) - return "eventTime." + error; + var properties = {}; + if (message.exactMatchInput != null && message.hasOwnProperty("exactMatchInput")) { + properties.metricInputs = 1; + { + var error = $root.google.cloud.aiplatform.v1.ExactMatchInput.verify(message.exactMatchInput); + if (error) + return "exactMatchInput." + error; + } } - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 1: - case 2: - break; + if (message.bleuInput != null && message.hasOwnProperty("bleuInput")) { + if (properties.metricInputs === 1) + return "metricInputs: multiple values"; + properties.metricInputs = 1; + { + var error = $root.google.cloud.aiplatform.v1.BleuInput.verify(message.bleuInput); + if (error) + return "bleuInput." + error; + } + } + if (message.rougeInput != null && message.hasOwnProperty("rougeInput")) { + if (properties.metricInputs === 1) + return "metricInputs: multiple values"; + properties.metricInputs = 1; + { + var error = $root.google.cloud.aiplatform.v1.RougeInput.verify(message.rougeInput); + if (error) + return "rougeInput." + error; + } + } + if (message.fluencyInput != null && message.hasOwnProperty("fluencyInput")) { + if (properties.metricInputs === 1) + return "metricInputs: multiple values"; + properties.metricInputs = 1; + { + var error = $root.google.cloud.aiplatform.v1.FluencyInput.verify(message.fluencyInput); + if (error) + return "fluencyInput." + error; + } + } + if (message.coherenceInput != null && message.hasOwnProperty("coherenceInput")) { + if (properties.metricInputs === 1) + return "metricInputs: multiple values"; + properties.metricInputs = 1; + { + var error = $root.google.cloud.aiplatform.v1.CoherenceInput.verify(message.coherenceInput); + if (error) + return "coherenceInput." + error; + } + } + if (message.safetyInput != null && message.hasOwnProperty("safetyInput")) { + if (properties.metricInputs === 1) + return "metricInputs: multiple values"; + properties.metricInputs = 1; + { + var error = $root.google.cloud.aiplatform.v1.SafetyInput.verify(message.safetyInput); + if (error) + return "safetyInput." + error; + } + } + if (message.groundednessInput != null && message.hasOwnProperty("groundednessInput")) { + if (properties.metricInputs === 1) + return "metricInputs: multiple values"; + properties.metricInputs = 1; + { + var error = $root.google.cloud.aiplatform.v1.GroundednessInput.verify(message.groundednessInput); + if (error) + return "groundednessInput." + error; + } + } + if (message.fulfillmentInput != null && message.hasOwnProperty("fulfillmentInput")) { + if (properties.metricInputs === 1) + return "metricInputs: multiple values"; + properties.metricInputs = 1; + { + var error = $root.google.cloud.aiplatform.v1.FulfillmentInput.verify(message.fulfillmentInput); + if (error) + return "fulfillmentInput." + error; + } + } + if (message.summarizationQualityInput != null && message.hasOwnProperty("summarizationQualityInput")) { + if (properties.metricInputs === 1) + return "metricInputs: multiple values"; + properties.metricInputs = 1; + { + var error = $root.google.cloud.aiplatform.v1.SummarizationQualityInput.verify(message.summarizationQualityInput); + if (error) + return "summarizationQualityInput." + error; + } + } + if (message.pairwiseSummarizationQualityInput != null && message.hasOwnProperty("pairwiseSummarizationQualityInput")) { + if (properties.metricInputs === 1) + return "metricInputs: multiple values"; + properties.metricInputs = 1; + { + var error = $root.google.cloud.aiplatform.v1.PairwiseSummarizationQualityInput.verify(message.pairwiseSummarizationQualityInput); + if (error) + return "pairwiseSummarizationQualityInput." + error; + } + } + if (message.summarizationHelpfulnessInput != null && message.hasOwnProperty("summarizationHelpfulnessInput")) { + if (properties.metricInputs === 1) + return "metricInputs: multiple values"; + properties.metricInputs = 1; + { + var error = $root.google.cloud.aiplatform.v1.SummarizationHelpfulnessInput.verify(message.summarizationHelpfulnessInput); + if (error) + return "summarizationHelpfulnessInput." + error; + } + } + if (message.summarizationVerbosityInput != null && message.hasOwnProperty("summarizationVerbosityInput")) { + if (properties.metricInputs === 1) + return "metricInputs: multiple values"; + properties.metricInputs = 1; + { + var error = $root.google.cloud.aiplatform.v1.SummarizationVerbosityInput.verify(message.summarizationVerbosityInput); + if (error) + return "summarizationVerbosityInput." + error; + } + } + if (message.questionAnsweringQualityInput != null && message.hasOwnProperty("questionAnsweringQualityInput")) { + if (properties.metricInputs === 1) + return "metricInputs: multiple values"; + properties.metricInputs = 1; + { + var error = $root.google.cloud.aiplatform.v1.QuestionAnsweringQualityInput.verify(message.questionAnsweringQualityInput); + if (error) + return "questionAnsweringQualityInput." + error; + } + } + if (message.pairwiseQuestionAnsweringQualityInput != null && message.hasOwnProperty("pairwiseQuestionAnsweringQualityInput")) { + if (properties.metricInputs === 1) + return "metricInputs: multiple values"; + properties.metricInputs = 1; + { + var error = $root.google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInput.verify(message.pairwiseQuestionAnsweringQualityInput); + if (error) + return "pairwiseQuestionAnsweringQualityInput." + error; + } + } + if (message.questionAnsweringRelevanceInput != null && message.hasOwnProperty("questionAnsweringRelevanceInput")) { + if (properties.metricInputs === 1) + return "metricInputs: multiple values"; + properties.metricInputs = 1; + { + var error = $root.google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInput.verify(message.questionAnsweringRelevanceInput); + if (error) + return "questionAnsweringRelevanceInput." + error; + } + } + if (message.questionAnsweringHelpfulnessInput != null && message.hasOwnProperty("questionAnsweringHelpfulnessInput")) { + if (properties.metricInputs === 1) + return "metricInputs: multiple values"; + properties.metricInputs = 1; + { + var error = $root.google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInput.verify(message.questionAnsweringHelpfulnessInput); + if (error) + return "questionAnsweringHelpfulnessInput." + error; + } + } + if (message.questionAnsweringCorrectnessInput != null && message.hasOwnProperty("questionAnsweringCorrectnessInput")) { + if (properties.metricInputs === 1) + return "metricInputs: multiple values"; + properties.metricInputs = 1; + { + var error = $root.google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInput.verify(message.questionAnsweringCorrectnessInput); + if (error) + return "questionAnsweringCorrectnessInput." + error; + } + } + if (message.pointwiseMetricInput != null && message.hasOwnProperty("pointwiseMetricInput")) { + if (properties.metricInputs === 1) + return "metricInputs: multiple values"; + properties.metricInputs = 1; + { + var error = $root.google.cloud.aiplatform.v1.PointwiseMetricInput.verify(message.pointwiseMetricInput); + if (error) + return "pointwiseMetricInput." + error; + } + } + if (message.pairwiseMetricInput != null && message.hasOwnProperty("pairwiseMetricInput")) { + if (properties.metricInputs === 1) + return "metricInputs: multiple values"; + properties.metricInputs = 1; + { + var error = $root.google.cloud.aiplatform.v1.PairwiseMetricInput.verify(message.pairwiseMetricInput); + if (error) + return "pairwiseMetricInput." + error; + } + } + if (message.toolCallValidInput != null && message.hasOwnProperty("toolCallValidInput")) { + if (properties.metricInputs === 1) + return "metricInputs: multiple values"; + properties.metricInputs = 1; + { + var error = $root.google.cloud.aiplatform.v1.ToolCallValidInput.verify(message.toolCallValidInput); + if (error) + return "toolCallValidInput." + error; + } + } + if (message.toolNameMatchInput != null && message.hasOwnProperty("toolNameMatchInput")) { + if (properties.metricInputs === 1) + return "metricInputs: multiple values"; + properties.metricInputs = 1; + { + var error = $root.google.cloud.aiplatform.v1.ToolNameMatchInput.verify(message.toolNameMatchInput); + if (error) + return "toolNameMatchInput." + error; + } + } + if (message.toolParameterKeyMatchInput != null && message.hasOwnProperty("toolParameterKeyMatchInput")) { + if (properties.metricInputs === 1) + return "metricInputs: multiple values"; + properties.metricInputs = 1; + { + var error = $root.google.cloud.aiplatform.v1.ToolParameterKeyMatchInput.verify(message.toolParameterKeyMatchInput); + if (error) + return "toolParameterKeyMatchInput." + error; + } + } + if (message.toolParameterKvMatchInput != null && message.hasOwnProperty("toolParameterKvMatchInput")) { + if (properties.metricInputs === 1) + return "metricInputs: multiple values"; + properties.metricInputs = 1; + { + var error = $root.google.cloud.aiplatform.v1.ToolParameterKVMatchInput.verify(message.toolParameterKvMatchInput); + if (error) + return "toolParameterKvMatchInput." + 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.location != null && message.hasOwnProperty("location")) + if (!$util.isString(message.location)) + return "location: string expected"; return null; }; /** - * Creates an Event message from a plain object. Also converts values to their respective internal types. + * Creates an EvaluateInstancesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.Event + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.Event} Event + * @returns {google.cloud.aiplatform.v1.EvaluateInstancesRequest} EvaluateInstancesRequest */ - Event.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.Event) + EvaluateInstancesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.EvaluateInstancesRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.Event(); - if (object.artifact != null) - message.artifact = String(object.artifact); - if (object.execution != null) - message.execution = String(object.execution); - if (object.eventTime != null) { - if (typeof object.eventTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.Event.eventTime: object expected"); - message.eventTime = $root.google.protobuf.Timestamp.fromObject(object.eventTime); + var message = new $root.google.cloud.aiplatform.v1.EvaluateInstancesRequest(); + if (object.exactMatchInput != null) { + if (typeof object.exactMatchInput !== "object") + throw TypeError(".google.cloud.aiplatform.v1.EvaluateInstancesRequest.exactMatchInput: object expected"); + message.exactMatchInput = $root.google.cloud.aiplatform.v1.ExactMatchInput.fromObject(object.exactMatchInput); } - switch (object.type) { - default: - if (typeof object.type === "number") { - message.type = object.type; - break; - } - break; - case "TYPE_UNSPECIFIED": - case 0: - message.type = 0; - break; - case "INPUT": - case 1: - message.type = 1; - break; - case "OUTPUT": - case 2: - message.type = 2; - break; + if (object.bleuInput != null) { + if (typeof object.bleuInput !== "object") + throw TypeError(".google.cloud.aiplatform.v1.EvaluateInstancesRequest.bleuInput: object expected"); + message.bleuInput = $root.google.cloud.aiplatform.v1.BleuInput.fromObject(object.bleuInput); } - if (object.labels) { - if (typeof object.labels !== "object") - throw TypeError(".google.cloud.aiplatform.v1.Event.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.rougeInput != null) { + if (typeof object.rougeInput !== "object") + throw TypeError(".google.cloud.aiplatform.v1.EvaluateInstancesRequest.rougeInput: object expected"); + message.rougeInput = $root.google.cloud.aiplatform.v1.RougeInput.fromObject(object.rougeInput); + } + if (object.fluencyInput != null) { + if (typeof object.fluencyInput !== "object") + throw TypeError(".google.cloud.aiplatform.v1.EvaluateInstancesRequest.fluencyInput: object expected"); + message.fluencyInput = $root.google.cloud.aiplatform.v1.FluencyInput.fromObject(object.fluencyInput); + } + if (object.coherenceInput != null) { + if (typeof object.coherenceInput !== "object") + throw TypeError(".google.cloud.aiplatform.v1.EvaluateInstancesRequest.coherenceInput: object expected"); + message.coherenceInput = $root.google.cloud.aiplatform.v1.CoherenceInput.fromObject(object.coherenceInput); + } + if (object.safetyInput != null) { + if (typeof object.safetyInput !== "object") + throw TypeError(".google.cloud.aiplatform.v1.EvaluateInstancesRequest.safetyInput: object expected"); + message.safetyInput = $root.google.cloud.aiplatform.v1.SafetyInput.fromObject(object.safetyInput); + } + if (object.groundednessInput != null) { + if (typeof object.groundednessInput !== "object") + throw TypeError(".google.cloud.aiplatform.v1.EvaluateInstancesRequest.groundednessInput: object expected"); + message.groundednessInput = $root.google.cloud.aiplatform.v1.GroundednessInput.fromObject(object.groundednessInput); + } + if (object.fulfillmentInput != null) { + if (typeof object.fulfillmentInput !== "object") + throw TypeError(".google.cloud.aiplatform.v1.EvaluateInstancesRequest.fulfillmentInput: object expected"); + message.fulfillmentInput = $root.google.cloud.aiplatform.v1.FulfillmentInput.fromObject(object.fulfillmentInput); + } + if (object.summarizationQualityInput != null) { + if (typeof object.summarizationQualityInput !== "object") + throw TypeError(".google.cloud.aiplatform.v1.EvaluateInstancesRequest.summarizationQualityInput: object expected"); + message.summarizationQualityInput = $root.google.cloud.aiplatform.v1.SummarizationQualityInput.fromObject(object.summarizationQualityInput); + } + if (object.pairwiseSummarizationQualityInput != null) { + if (typeof object.pairwiseSummarizationQualityInput !== "object") + throw TypeError(".google.cloud.aiplatform.v1.EvaluateInstancesRequest.pairwiseSummarizationQualityInput: object expected"); + message.pairwiseSummarizationQualityInput = $root.google.cloud.aiplatform.v1.PairwiseSummarizationQualityInput.fromObject(object.pairwiseSummarizationQualityInput); + } + if (object.summarizationHelpfulnessInput != null) { + if (typeof object.summarizationHelpfulnessInput !== "object") + throw TypeError(".google.cloud.aiplatform.v1.EvaluateInstancesRequest.summarizationHelpfulnessInput: object expected"); + message.summarizationHelpfulnessInput = $root.google.cloud.aiplatform.v1.SummarizationHelpfulnessInput.fromObject(object.summarizationHelpfulnessInput); + } + if (object.summarizationVerbosityInput != null) { + if (typeof object.summarizationVerbosityInput !== "object") + throw TypeError(".google.cloud.aiplatform.v1.EvaluateInstancesRequest.summarizationVerbosityInput: object expected"); + message.summarizationVerbosityInput = $root.google.cloud.aiplatform.v1.SummarizationVerbosityInput.fromObject(object.summarizationVerbosityInput); + } + if (object.questionAnsweringQualityInput != null) { + if (typeof object.questionAnsweringQualityInput !== "object") + throw TypeError(".google.cloud.aiplatform.v1.EvaluateInstancesRequest.questionAnsweringQualityInput: object expected"); + message.questionAnsweringQualityInput = $root.google.cloud.aiplatform.v1.QuestionAnsweringQualityInput.fromObject(object.questionAnsweringQualityInput); + } + if (object.pairwiseQuestionAnsweringQualityInput != null) { + if (typeof object.pairwiseQuestionAnsweringQualityInput !== "object") + throw TypeError(".google.cloud.aiplatform.v1.EvaluateInstancesRequest.pairwiseQuestionAnsweringQualityInput: object expected"); + message.pairwiseQuestionAnsweringQualityInput = $root.google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInput.fromObject(object.pairwiseQuestionAnsweringQualityInput); + } + if (object.questionAnsweringRelevanceInput != null) { + if (typeof object.questionAnsweringRelevanceInput !== "object") + throw TypeError(".google.cloud.aiplatform.v1.EvaluateInstancesRequest.questionAnsweringRelevanceInput: object expected"); + message.questionAnsweringRelevanceInput = $root.google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInput.fromObject(object.questionAnsweringRelevanceInput); + } + if (object.questionAnsweringHelpfulnessInput != null) { + if (typeof object.questionAnsweringHelpfulnessInput !== "object") + throw TypeError(".google.cloud.aiplatform.v1.EvaluateInstancesRequest.questionAnsweringHelpfulnessInput: object expected"); + message.questionAnsweringHelpfulnessInput = $root.google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInput.fromObject(object.questionAnsweringHelpfulnessInput); + } + if (object.questionAnsweringCorrectnessInput != null) { + if (typeof object.questionAnsweringCorrectnessInput !== "object") + throw TypeError(".google.cloud.aiplatform.v1.EvaluateInstancesRequest.questionAnsweringCorrectnessInput: object expected"); + message.questionAnsweringCorrectnessInput = $root.google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInput.fromObject(object.questionAnsweringCorrectnessInput); + } + if (object.pointwiseMetricInput != null) { + if (typeof object.pointwiseMetricInput !== "object") + throw TypeError(".google.cloud.aiplatform.v1.EvaluateInstancesRequest.pointwiseMetricInput: object expected"); + message.pointwiseMetricInput = $root.google.cloud.aiplatform.v1.PointwiseMetricInput.fromObject(object.pointwiseMetricInput); + } + if (object.pairwiseMetricInput != null) { + if (typeof object.pairwiseMetricInput !== "object") + throw TypeError(".google.cloud.aiplatform.v1.EvaluateInstancesRequest.pairwiseMetricInput: object expected"); + message.pairwiseMetricInput = $root.google.cloud.aiplatform.v1.PairwiseMetricInput.fromObject(object.pairwiseMetricInput); + } + if (object.toolCallValidInput != null) { + if (typeof object.toolCallValidInput !== "object") + throw TypeError(".google.cloud.aiplatform.v1.EvaluateInstancesRequest.toolCallValidInput: object expected"); + message.toolCallValidInput = $root.google.cloud.aiplatform.v1.ToolCallValidInput.fromObject(object.toolCallValidInput); + } + if (object.toolNameMatchInput != null) { + if (typeof object.toolNameMatchInput !== "object") + throw TypeError(".google.cloud.aiplatform.v1.EvaluateInstancesRequest.toolNameMatchInput: object expected"); + message.toolNameMatchInput = $root.google.cloud.aiplatform.v1.ToolNameMatchInput.fromObject(object.toolNameMatchInput); + } + if (object.toolParameterKeyMatchInput != null) { + if (typeof object.toolParameterKeyMatchInput !== "object") + throw TypeError(".google.cloud.aiplatform.v1.EvaluateInstancesRequest.toolParameterKeyMatchInput: object expected"); + message.toolParameterKeyMatchInput = $root.google.cloud.aiplatform.v1.ToolParameterKeyMatchInput.fromObject(object.toolParameterKeyMatchInput); + } + if (object.toolParameterKvMatchInput != null) { + if (typeof object.toolParameterKvMatchInput !== "object") + throw TypeError(".google.cloud.aiplatform.v1.EvaluateInstancesRequest.toolParameterKvMatchInput: object expected"); + message.toolParameterKvMatchInput = $root.google.cloud.aiplatform.v1.ToolParameterKVMatchInput.fromObject(object.toolParameterKvMatchInput); } + if (object.location != null) + message.location = String(object.location); return message; }; /** - * Creates a plain object from an Event message. Also converts values to other types if specified. + * Creates a plain object from an EvaluateInstancesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.Event + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesRequest * @static - * @param {google.cloud.aiplatform.v1.Event} message Event + * @param {google.cloud.aiplatform.v1.EvaluateInstancesRequest} message EvaluateInstancesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Event.toObject = function toObject(message, options) { + EvaluateInstancesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.labels = {}; - if (options.defaults) { - object.artifact = ""; - object.execution = ""; - object.eventTime = null; - object.type = options.enums === String ? "TYPE_UNSPECIFIED" : 0; + if (options.defaults) + object.location = ""; + if (message.location != null && message.hasOwnProperty("location")) + object.location = message.location; + if (message.exactMatchInput != null && message.hasOwnProperty("exactMatchInput")) { + object.exactMatchInput = $root.google.cloud.aiplatform.v1.ExactMatchInput.toObject(message.exactMatchInput, options); + if (options.oneofs) + object.metricInputs = "exactMatchInput"; } - if (message.artifact != null && message.hasOwnProperty("artifact")) - object.artifact = message.artifact; - if (message.execution != null && message.hasOwnProperty("execution")) - object.execution = message.execution; - if (message.eventTime != null && message.hasOwnProperty("eventTime")) - object.eventTime = $root.google.protobuf.Timestamp.toObject(message.eventTime, options); - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.google.cloud.aiplatform.v1.Event.Type[message.type] === undefined ? message.type : $root.google.cloud.aiplatform.v1.Event.Type[message.type] : message.type; - 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]]; + if (message.bleuInput != null && message.hasOwnProperty("bleuInput")) { + object.bleuInput = $root.google.cloud.aiplatform.v1.BleuInput.toObject(message.bleuInput, options); + if (options.oneofs) + object.metricInputs = "bleuInput"; + } + if (message.rougeInput != null && message.hasOwnProperty("rougeInput")) { + object.rougeInput = $root.google.cloud.aiplatform.v1.RougeInput.toObject(message.rougeInput, options); + if (options.oneofs) + object.metricInputs = "rougeInput"; + } + if (message.fluencyInput != null && message.hasOwnProperty("fluencyInput")) { + object.fluencyInput = $root.google.cloud.aiplatform.v1.FluencyInput.toObject(message.fluencyInput, options); + if (options.oneofs) + object.metricInputs = "fluencyInput"; + } + if (message.coherenceInput != null && message.hasOwnProperty("coherenceInput")) { + object.coherenceInput = $root.google.cloud.aiplatform.v1.CoherenceInput.toObject(message.coherenceInput, options); + if (options.oneofs) + object.metricInputs = "coherenceInput"; + } + if (message.summarizationQualityInput != null && message.hasOwnProperty("summarizationQualityInput")) { + object.summarizationQualityInput = $root.google.cloud.aiplatform.v1.SummarizationQualityInput.toObject(message.summarizationQualityInput, options); + if (options.oneofs) + object.metricInputs = "summarizationQualityInput"; + } + if (message.safetyInput != null && message.hasOwnProperty("safetyInput")) { + object.safetyInput = $root.google.cloud.aiplatform.v1.SafetyInput.toObject(message.safetyInput, options); + if (options.oneofs) + object.metricInputs = "safetyInput"; + } + if (message.groundednessInput != null && message.hasOwnProperty("groundednessInput")) { + object.groundednessInput = $root.google.cloud.aiplatform.v1.GroundednessInput.toObject(message.groundednessInput, options); + if (options.oneofs) + object.metricInputs = "groundednessInput"; + } + if (message.questionAnsweringQualityInput != null && message.hasOwnProperty("questionAnsweringQualityInput")) { + object.questionAnsweringQualityInput = $root.google.cloud.aiplatform.v1.QuestionAnsweringQualityInput.toObject(message.questionAnsweringQualityInput, options); + if (options.oneofs) + object.metricInputs = "questionAnsweringQualityInput"; + } + if (message.fulfillmentInput != null && message.hasOwnProperty("fulfillmentInput")) { + object.fulfillmentInput = $root.google.cloud.aiplatform.v1.FulfillmentInput.toObject(message.fulfillmentInput, options); + if (options.oneofs) + object.metricInputs = "fulfillmentInput"; + } + if (message.summarizationHelpfulnessInput != null && message.hasOwnProperty("summarizationHelpfulnessInput")) { + object.summarizationHelpfulnessInput = $root.google.cloud.aiplatform.v1.SummarizationHelpfulnessInput.toObject(message.summarizationHelpfulnessInput, options); + if (options.oneofs) + object.metricInputs = "summarizationHelpfulnessInput"; + } + if (message.summarizationVerbosityInput != null && message.hasOwnProperty("summarizationVerbosityInput")) { + object.summarizationVerbosityInput = $root.google.cloud.aiplatform.v1.SummarizationVerbosityInput.toObject(message.summarizationVerbosityInput, options); + if (options.oneofs) + object.metricInputs = "summarizationVerbosityInput"; + } + if (message.questionAnsweringRelevanceInput != null && message.hasOwnProperty("questionAnsweringRelevanceInput")) { + object.questionAnsweringRelevanceInput = $root.google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInput.toObject(message.questionAnsweringRelevanceInput, options); + if (options.oneofs) + object.metricInputs = "questionAnsweringRelevanceInput"; + } + if (message.questionAnsweringHelpfulnessInput != null && message.hasOwnProperty("questionAnsweringHelpfulnessInput")) { + object.questionAnsweringHelpfulnessInput = $root.google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInput.toObject(message.questionAnsweringHelpfulnessInput, options); + if (options.oneofs) + object.metricInputs = "questionAnsweringHelpfulnessInput"; + } + if (message.questionAnsweringCorrectnessInput != null && message.hasOwnProperty("questionAnsweringCorrectnessInput")) { + object.questionAnsweringCorrectnessInput = $root.google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInput.toObject(message.questionAnsweringCorrectnessInput, options); + if (options.oneofs) + object.metricInputs = "questionAnsweringCorrectnessInput"; + } + if (message.toolCallValidInput != null && message.hasOwnProperty("toolCallValidInput")) { + object.toolCallValidInput = $root.google.cloud.aiplatform.v1.ToolCallValidInput.toObject(message.toolCallValidInput, options); + if (options.oneofs) + object.metricInputs = "toolCallValidInput"; + } + if (message.toolNameMatchInput != null && message.hasOwnProperty("toolNameMatchInput")) { + object.toolNameMatchInput = $root.google.cloud.aiplatform.v1.ToolNameMatchInput.toObject(message.toolNameMatchInput, options); + if (options.oneofs) + object.metricInputs = "toolNameMatchInput"; + } + if (message.toolParameterKeyMatchInput != null && message.hasOwnProperty("toolParameterKeyMatchInput")) { + object.toolParameterKeyMatchInput = $root.google.cloud.aiplatform.v1.ToolParameterKeyMatchInput.toObject(message.toolParameterKeyMatchInput, options); + if (options.oneofs) + object.metricInputs = "toolParameterKeyMatchInput"; + } + if (message.toolParameterKvMatchInput != null && message.hasOwnProperty("toolParameterKvMatchInput")) { + object.toolParameterKvMatchInput = $root.google.cloud.aiplatform.v1.ToolParameterKVMatchInput.toObject(message.toolParameterKvMatchInput, options); + if (options.oneofs) + object.metricInputs = "toolParameterKvMatchInput"; + } + if (message.pairwiseSummarizationQualityInput != null && message.hasOwnProperty("pairwiseSummarizationQualityInput")) { + object.pairwiseSummarizationQualityInput = $root.google.cloud.aiplatform.v1.PairwiseSummarizationQualityInput.toObject(message.pairwiseSummarizationQualityInput, options); + if (options.oneofs) + object.metricInputs = "pairwiseSummarizationQualityInput"; + } + if (message.pairwiseQuestionAnsweringQualityInput != null && message.hasOwnProperty("pairwiseQuestionAnsweringQualityInput")) { + object.pairwiseQuestionAnsweringQualityInput = $root.google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInput.toObject(message.pairwiseQuestionAnsweringQualityInput, options); + if (options.oneofs) + object.metricInputs = "pairwiseQuestionAnsweringQualityInput"; + } + if (message.pointwiseMetricInput != null && message.hasOwnProperty("pointwiseMetricInput")) { + object.pointwiseMetricInput = $root.google.cloud.aiplatform.v1.PointwiseMetricInput.toObject(message.pointwiseMetricInput, options); + if (options.oneofs) + object.metricInputs = "pointwiseMetricInput"; + } + if (message.pairwiseMetricInput != null && message.hasOwnProperty("pairwiseMetricInput")) { + object.pairwiseMetricInput = $root.google.cloud.aiplatform.v1.PairwiseMetricInput.toObject(message.pairwiseMetricInput, options); + if (options.oneofs) + object.metricInputs = "pairwiseMetricInput"; } return object; }; /** - * Converts this Event to JSON. + * Converts this EvaluateInstancesRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.Event + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesRequest * @instance * @returns {Object.} JSON object */ - Event.prototype.toJSON = function toJSON() { + EvaluateInstancesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Event + * Gets the default type url for EvaluateInstancesRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.Event + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Event.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + EvaluateInstancesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.Event"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.EvaluateInstancesRequest"; }; - /** - * Type enum. - * @name google.cloud.aiplatform.v1.Event.Type - * @enum {number} - * @property {number} TYPE_UNSPECIFIED=0 TYPE_UNSPECIFIED value - * @property {number} INPUT=1 INPUT value - * @property {number} OUTPUT=2 OUTPUT value - */ - Event.Type = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "INPUT"] = 1; - values[valuesById[2] = "OUTPUT"] = 2; - return values; - })(); - - return Event; + return EvaluateInstancesRequest; })(); - v1.Execution = (function() { + v1.EvaluateInstancesResponse = (function() { /** - * Properties of an Execution. + * Properties of an EvaluateInstancesResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IExecution - * @property {string|null} [name] Execution name - * @property {string|null} [displayName] Execution displayName - * @property {google.cloud.aiplatform.v1.Execution.State|null} [state] Execution state - * @property {string|null} [etag] Execution etag - * @property {Object.|null} [labels] Execution labels - * @property {google.protobuf.ITimestamp|null} [createTime] Execution createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] Execution updateTime - * @property {string|null} [schemaTitle] Execution schemaTitle - * @property {string|null} [schemaVersion] Execution schemaVersion - * @property {google.protobuf.IStruct|null} [metadata] Execution metadata - * @property {string|null} [description] Execution description + * @interface IEvaluateInstancesResponse + * @property {google.cloud.aiplatform.v1.IExactMatchResults|null} [exactMatchResults] EvaluateInstancesResponse exactMatchResults + * @property {google.cloud.aiplatform.v1.IBleuResults|null} [bleuResults] EvaluateInstancesResponse bleuResults + * @property {google.cloud.aiplatform.v1.IRougeResults|null} [rougeResults] EvaluateInstancesResponse rougeResults + * @property {google.cloud.aiplatform.v1.IFluencyResult|null} [fluencyResult] EvaluateInstancesResponse fluencyResult + * @property {google.cloud.aiplatform.v1.ICoherenceResult|null} [coherenceResult] EvaluateInstancesResponse coherenceResult + * @property {google.cloud.aiplatform.v1.ISafetyResult|null} [safetyResult] EvaluateInstancesResponse safetyResult + * @property {google.cloud.aiplatform.v1.IGroundednessResult|null} [groundednessResult] EvaluateInstancesResponse groundednessResult + * @property {google.cloud.aiplatform.v1.IFulfillmentResult|null} [fulfillmentResult] EvaluateInstancesResponse fulfillmentResult + * @property {google.cloud.aiplatform.v1.ISummarizationQualityResult|null} [summarizationQualityResult] EvaluateInstancesResponse summarizationQualityResult + * @property {google.cloud.aiplatform.v1.IPairwiseSummarizationQualityResult|null} [pairwiseSummarizationQualityResult] EvaluateInstancesResponse pairwiseSummarizationQualityResult + * @property {google.cloud.aiplatform.v1.ISummarizationHelpfulnessResult|null} [summarizationHelpfulnessResult] EvaluateInstancesResponse summarizationHelpfulnessResult + * @property {google.cloud.aiplatform.v1.ISummarizationVerbosityResult|null} [summarizationVerbosityResult] EvaluateInstancesResponse summarizationVerbosityResult + * @property {google.cloud.aiplatform.v1.IQuestionAnsweringQualityResult|null} [questionAnsweringQualityResult] EvaluateInstancesResponse questionAnsweringQualityResult + * @property {google.cloud.aiplatform.v1.IPairwiseQuestionAnsweringQualityResult|null} [pairwiseQuestionAnsweringQualityResult] EvaluateInstancesResponse pairwiseQuestionAnsweringQualityResult + * @property {google.cloud.aiplatform.v1.IQuestionAnsweringRelevanceResult|null} [questionAnsweringRelevanceResult] EvaluateInstancesResponse questionAnsweringRelevanceResult + * @property {google.cloud.aiplatform.v1.IQuestionAnsweringHelpfulnessResult|null} [questionAnsweringHelpfulnessResult] EvaluateInstancesResponse questionAnsweringHelpfulnessResult + * @property {google.cloud.aiplatform.v1.IQuestionAnsweringCorrectnessResult|null} [questionAnsweringCorrectnessResult] EvaluateInstancesResponse questionAnsweringCorrectnessResult + * @property {google.cloud.aiplatform.v1.IPointwiseMetricResult|null} [pointwiseMetricResult] EvaluateInstancesResponse pointwiseMetricResult + * @property {google.cloud.aiplatform.v1.IPairwiseMetricResult|null} [pairwiseMetricResult] EvaluateInstancesResponse pairwiseMetricResult + * @property {google.cloud.aiplatform.v1.IToolCallValidResults|null} [toolCallValidResults] EvaluateInstancesResponse toolCallValidResults + * @property {google.cloud.aiplatform.v1.IToolNameMatchResults|null} [toolNameMatchResults] EvaluateInstancesResponse toolNameMatchResults + * @property {google.cloud.aiplatform.v1.IToolParameterKeyMatchResults|null} [toolParameterKeyMatchResults] EvaluateInstancesResponse toolParameterKeyMatchResults + * @property {google.cloud.aiplatform.v1.IToolParameterKVMatchResults|null} [toolParameterKvMatchResults] EvaluateInstancesResponse toolParameterKvMatchResults */ /** - * Constructs a new Execution. + * Constructs a new EvaluateInstancesResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an Execution. - * @implements IExecution + * @classdesc Represents an EvaluateInstancesResponse. + * @implements IEvaluateInstancesResponse * @constructor - * @param {google.cloud.aiplatform.v1.IExecution=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IEvaluateInstancesResponse=} [properties] Properties to set */ - function Execution(properties) { - this.labels = {}; + function EvaluateInstancesResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -61261,235 +63583,397 @@ } /** - * Execution name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.Execution + * EvaluateInstancesResponse exactMatchResults. + * @member {google.cloud.aiplatform.v1.IExactMatchResults|null|undefined} exactMatchResults + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesResponse * @instance */ - Execution.prototype.name = ""; + EvaluateInstancesResponse.prototype.exactMatchResults = null; /** - * Execution displayName. - * @member {string} displayName - * @memberof google.cloud.aiplatform.v1.Execution + * EvaluateInstancesResponse bleuResults. + * @member {google.cloud.aiplatform.v1.IBleuResults|null|undefined} bleuResults + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesResponse * @instance */ - Execution.prototype.displayName = ""; + EvaluateInstancesResponse.prototype.bleuResults = null; /** - * Execution state. - * @member {google.cloud.aiplatform.v1.Execution.State} state - * @memberof google.cloud.aiplatform.v1.Execution + * EvaluateInstancesResponse rougeResults. + * @member {google.cloud.aiplatform.v1.IRougeResults|null|undefined} rougeResults + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesResponse * @instance */ - Execution.prototype.state = 0; + EvaluateInstancesResponse.prototype.rougeResults = null; /** - * Execution etag. - * @member {string} etag - * @memberof google.cloud.aiplatform.v1.Execution + * EvaluateInstancesResponse fluencyResult. + * @member {google.cloud.aiplatform.v1.IFluencyResult|null|undefined} fluencyResult + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesResponse * @instance */ - Execution.prototype.etag = ""; + EvaluateInstancesResponse.prototype.fluencyResult = null; /** - * Execution labels. - * @member {Object.} labels - * @memberof google.cloud.aiplatform.v1.Execution + * EvaluateInstancesResponse coherenceResult. + * @member {google.cloud.aiplatform.v1.ICoherenceResult|null|undefined} coherenceResult + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesResponse * @instance */ - Execution.prototype.labels = $util.emptyObject; + EvaluateInstancesResponse.prototype.coherenceResult = null; /** - * Execution createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1.Execution + * EvaluateInstancesResponse safetyResult. + * @member {google.cloud.aiplatform.v1.ISafetyResult|null|undefined} safetyResult + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesResponse * @instance */ - Execution.prototype.createTime = null; + EvaluateInstancesResponse.prototype.safetyResult = null; /** - * Execution updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1.Execution + * EvaluateInstancesResponse groundednessResult. + * @member {google.cloud.aiplatform.v1.IGroundednessResult|null|undefined} groundednessResult + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesResponse * @instance */ - Execution.prototype.updateTime = null; + EvaluateInstancesResponse.prototype.groundednessResult = null; /** - * Execution schemaTitle. - * @member {string} schemaTitle - * @memberof google.cloud.aiplatform.v1.Execution + * EvaluateInstancesResponse fulfillmentResult. + * @member {google.cloud.aiplatform.v1.IFulfillmentResult|null|undefined} fulfillmentResult + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesResponse * @instance */ - Execution.prototype.schemaTitle = ""; + EvaluateInstancesResponse.prototype.fulfillmentResult = null; /** - * Execution schemaVersion. - * @member {string} schemaVersion - * @memberof google.cloud.aiplatform.v1.Execution + * EvaluateInstancesResponse summarizationQualityResult. + * @member {google.cloud.aiplatform.v1.ISummarizationQualityResult|null|undefined} summarizationQualityResult + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesResponse * @instance */ - Execution.prototype.schemaVersion = ""; + EvaluateInstancesResponse.prototype.summarizationQualityResult = null; /** - * Execution metadata. - * @member {google.protobuf.IStruct|null|undefined} metadata - * @memberof google.cloud.aiplatform.v1.Execution + * EvaluateInstancesResponse pairwiseSummarizationQualityResult. + * @member {google.cloud.aiplatform.v1.IPairwiseSummarizationQualityResult|null|undefined} pairwiseSummarizationQualityResult + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesResponse * @instance */ - Execution.prototype.metadata = null; + EvaluateInstancesResponse.prototype.pairwiseSummarizationQualityResult = null; /** - * Execution description. - * @member {string} description - * @memberof google.cloud.aiplatform.v1.Execution + * EvaluateInstancesResponse summarizationHelpfulnessResult. + * @member {google.cloud.aiplatform.v1.ISummarizationHelpfulnessResult|null|undefined} summarizationHelpfulnessResult + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesResponse * @instance */ - Execution.prototype.description = ""; + EvaluateInstancesResponse.prototype.summarizationHelpfulnessResult = null; /** - * Creates a new Execution instance using the specified properties. + * EvaluateInstancesResponse summarizationVerbosityResult. + * @member {google.cloud.aiplatform.v1.ISummarizationVerbosityResult|null|undefined} summarizationVerbosityResult + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesResponse + * @instance + */ + EvaluateInstancesResponse.prototype.summarizationVerbosityResult = null; + + /** + * EvaluateInstancesResponse questionAnsweringQualityResult. + * @member {google.cloud.aiplatform.v1.IQuestionAnsweringQualityResult|null|undefined} questionAnsweringQualityResult + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesResponse + * @instance + */ + EvaluateInstancesResponse.prototype.questionAnsweringQualityResult = null; + + /** + * EvaluateInstancesResponse pairwiseQuestionAnsweringQualityResult. + * @member {google.cloud.aiplatform.v1.IPairwiseQuestionAnsweringQualityResult|null|undefined} pairwiseQuestionAnsweringQualityResult + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesResponse + * @instance + */ + EvaluateInstancesResponse.prototype.pairwiseQuestionAnsweringQualityResult = null; + + /** + * EvaluateInstancesResponse questionAnsweringRelevanceResult. + * @member {google.cloud.aiplatform.v1.IQuestionAnsweringRelevanceResult|null|undefined} questionAnsweringRelevanceResult + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesResponse + * @instance + */ + EvaluateInstancesResponse.prototype.questionAnsweringRelevanceResult = null; + + /** + * EvaluateInstancesResponse questionAnsweringHelpfulnessResult. + * @member {google.cloud.aiplatform.v1.IQuestionAnsweringHelpfulnessResult|null|undefined} questionAnsweringHelpfulnessResult + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesResponse + * @instance + */ + EvaluateInstancesResponse.prototype.questionAnsweringHelpfulnessResult = null; + + /** + * EvaluateInstancesResponse questionAnsweringCorrectnessResult. + * @member {google.cloud.aiplatform.v1.IQuestionAnsweringCorrectnessResult|null|undefined} questionAnsweringCorrectnessResult + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesResponse + * @instance + */ + EvaluateInstancesResponse.prototype.questionAnsweringCorrectnessResult = null; + + /** + * EvaluateInstancesResponse pointwiseMetricResult. + * @member {google.cloud.aiplatform.v1.IPointwiseMetricResult|null|undefined} pointwiseMetricResult + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesResponse + * @instance + */ + EvaluateInstancesResponse.prototype.pointwiseMetricResult = null; + + /** + * EvaluateInstancesResponse pairwiseMetricResult. + * @member {google.cloud.aiplatform.v1.IPairwiseMetricResult|null|undefined} pairwiseMetricResult + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesResponse + * @instance + */ + EvaluateInstancesResponse.prototype.pairwiseMetricResult = null; + + /** + * EvaluateInstancesResponse toolCallValidResults. + * @member {google.cloud.aiplatform.v1.IToolCallValidResults|null|undefined} toolCallValidResults + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesResponse + * @instance + */ + EvaluateInstancesResponse.prototype.toolCallValidResults = null; + + /** + * EvaluateInstancesResponse toolNameMatchResults. + * @member {google.cloud.aiplatform.v1.IToolNameMatchResults|null|undefined} toolNameMatchResults + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesResponse + * @instance + */ + EvaluateInstancesResponse.prototype.toolNameMatchResults = null; + + /** + * EvaluateInstancesResponse toolParameterKeyMatchResults. + * @member {google.cloud.aiplatform.v1.IToolParameterKeyMatchResults|null|undefined} toolParameterKeyMatchResults + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesResponse + * @instance + */ + EvaluateInstancesResponse.prototype.toolParameterKeyMatchResults = null; + + /** + * EvaluateInstancesResponse toolParameterKvMatchResults. + * @member {google.cloud.aiplatform.v1.IToolParameterKVMatchResults|null|undefined} toolParameterKvMatchResults + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesResponse + * @instance + */ + EvaluateInstancesResponse.prototype.toolParameterKvMatchResults = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * EvaluateInstancesResponse evaluationResults. + * @member {"exactMatchResults"|"bleuResults"|"rougeResults"|"fluencyResult"|"coherenceResult"|"safetyResult"|"groundednessResult"|"fulfillmentResult"|"summarizationQualityResult"|"pairwiseSummarizationQualityResult"|"summarizationHelpfulnessResult"|"summarizationVerbosityResult"|"questionAnsweringQualityResult"|"pairwiseQuestionAnsweringQualityResult"|"questionAnsweringRelevanceResult"|"questionAnsweringHelpfulnessResult"|"questionAnsweringCorrectnessResult"|"pointwiseMetricResult"|"pairwiseMetricResult"|"toolCallValidResults"|"toolNameMatchResults"|"toolParameterKeyMatchResults"|"toolParameterKvMatchResults"|undefined} evaluationResults + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesResponse + * @instance + */ + Object.defineProperty(EvaluateInstancesResponse.prototype, "evaluationResults", { + get: $util.oneOfGetter($oneOfFields = ["exactMatchResults", "bleuResults", "rougeResults", "fluencyResult", "coherenceResult", "safetyResult", "groundednessResult", "fulfillmentResult", "summarizationQualityResult", "pairwiseSummarizationQualityResult", "summarizationHelpfulnessResult", "summarizationVerbosityResult", "questionAnsweringQualityResult", "pairwiseQuestionAnsweringQualityResult", "questionAnsweringRelevanceResult", "questionAnsweringHelpfulnessResult", "questionAnsweringCorrectnessResult", "pointwiseMetricResult", "pairwiseMetricResult", "toolCallValidResults", "toolNameMatchResults", "toolParameterKeyMatchResults", "toolParameterKvMatchResults"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new EvaluateInstancesResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.Execution + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesResponse * @static - * @param {google.cloud.aiplatform.v1.IExecution=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.Execution} Execution instance + * @param {google.cloud.aiplatform.v1.IEvaluateInstancesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.EvaluateInstancesResponse} EvaluateInstancesResponse instance */ - Execution.create = function create(properties) { - return new Execution(properties); + EvaluateInstancesResponse.create = function create(properties) { + return new EvaluateInstancesResponse(properties); }; /** - * Encodes the specified Execution message. Does not implicitly {@link google.cloud.aiplatform.v1.Execution.verify|verify} messages. + * Encodes the specified EvaluateInstancesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.EvaluateInstancesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.Execution + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesResponse * @static - * @param {google.cloud.aiplatform.v1.IExecution} message Execution message or plain object to encode + * @param {google.cloud.aiplatform.v1.IEvaluateInstancesResponse} message EvaluateInstancesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Execution.encode = function encode(message, writer) { + EvaluateInstancesResponse.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.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.state); - if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.etag); - if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) - for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.schemaTitle != null && Object.hasOwnProperty.call(message, "schemaTitle")) - writer.uint32(/* id 13, wireType 2 =*/106).string(message.schemaTitle); - if (message.schemaVersion != null && Object.hasOwnProperty.call(message, "schemaVersion")) - writer.uint32(/* id 14, wireType 2 =*/114).string(message.schemaVersion); - if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) - $root.google.protobuf.Struct.encode(message.metadata, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 16, wireType 2 =*/130).string(message.description); + if (message.exactMatchResults != null && Object.hasOwnProperty.call(message, "exactMatchResults")) + $root.google.cloud.aiplatform.v1.ExactMatchResults.encode(message.exactMatchResults, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.bleuResults != null && Object.hasOwnProperty.call(message, "bleuResults")) + $root.google.cloud.aiplatform.v1.BleuResults.encode(message.bleuResults, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.rougeResults != null && Object.hasOwnProperty.call(message, "rougeResults")) + $root.google.cloud.aiplatform.v1.RougeResults.encode(message.rougeResults, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.fluencyResult != null && Object.hasOwnProperty.call(message, "fluencyResult")) + $root.google.cloud.aiplatform.v1.FluencyResult.encode(message.fluencyResult, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.coherenceResult != null && Object.hasOwnProperty.call(message, "coherenceResult")) + $root.google.cloud.aiplatform.v1.CoherenceResult.encode(message.coherenceResult, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.summarizationQualityResult != null && Object.hasOwnProperty.call(message, "summarizationQualityResult")) + $root.google.cloud.aiplatform.v1.SummarizationQualityResult.encode(message.summarizationQualityResult, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.safetyResult != null && Object.hasOwnProperty.call(message, "safetyResult")) + $root.google.cloud.aiplatform.v1.SafetyResult.encode(message.safetyResult, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.groundednessResult != null && Object.hasOwnProperty.call(message, "groundednessResult")) + $root.google.cloud.aiplatform.v1.GroundednessResult.encode(message.groundednessResult, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.questionAnsweringQualityResult != null && Object.hasOwnProperty.call(message, "questionAnsweringQualityResult")) + $root.google.cloud.aiplatform.v1.QuestionAnsweringQualityResult.encode(message.questionAnsweringQualityResult, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.fulfillmentResult != null && Object.hasOwnProperty.call(message, "fulfillmentResult")) + $root.google.cloud.aiplatform.v1.FulfillmentResult.encode(message.fulfillmentResult, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.summarizationHelpfulnessResult != null && Object.hasOwnProperty.call(message, "summarizationHelpfulnessResult")) + $root.google.cloud.aiplatform.v1.SummarizationHelpfulnessResult.encode(message.summarizationHelpfulnessResult, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.summarizationVerbosityResult != null && Object.hasOwnProperty.call(message, "summarizationVerbosityResult")) + $root.google.cloud.aiplatform.v1.SummarizationVerbosityResult.encode(message.summarizationVerbosityResult, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + if (message.questionAnsweringRelevanceResult != null && Object.hasOwnProperty.call(message, "questionAnsweringRelevanceResult")) + $root.google.cloud.aiplatform.v1.QuestionAnsweringRelevanceResult.encode(message.questionAnsweringRelevanceResult, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); + if (message.questionAnsweringHelpfulnessResult != null && Object.hasOwnProperty.call(message, "questionAnsweringHelpfulnessResult")) + $root.google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessResult.encode(message.questionAnsweringHelpfulnessResult, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); + if (message.questionAnsweringCorrectnessResult != null && Object.hasOwnProperty.call(message, "questionAnsweringCorrectnessResult")) + $root.google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessResult.encode(message.questionAnsweringCorrectnessResult, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); + if (message.toolCallValidResults != null && Object.hasOwnProperty.call(message, "toolCallValidResults")) + $root.google.cloud.aiplatform.v1.ToolCallValidResults.encode(message.toolCallValidResults, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); + if (message.toolNameMatchResults != null && Object.hasOwnProperty.call(message, "toolNameMatchResults")) + $root.google.cloud.aiplatform.v1.ToolNameMatchResults.encode(message.toolNameMatchResults, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim(); + if (message.toolParameterKeyMatchResults != null && Object.hasOwnProperty.call(message, "toolParameterKeyMatchResults")) + $root.google.cloud.aiplatform.v1.ToolParameterKeyMatchResults.encode(message.toolParameterKeyMatchResults, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); + if (message.toolParameterKvMatchResults != null && Object.hasOwnProperty.call(message, "toolParameterKvMatchResults")) + $root.google.cloud.aiplatform.v1.ToolParameterKVMatchResults.encode(message.toolParameterKvMatchResults, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); + if (message.pairwiseSummarizationQualityResult != null && Object.hasOwnProperty.call(message, "pairwiseSummarizationQualityResult")) + $root.google.cloud.aiplatform.v1.PairwiseSummarizationQualityResult.encode(message.pairwiseSummarizationQualityResult, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim(); + if (message.pairwiseQuestionAnsweringQualityResult != null && Object.hasOwnProperty.call(message, "pairwiseQuestionAnsweringQualityResult")) + $root.google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityResult.encode(message.pairwiseQuestionAnsweringQualityResult, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim(); + if (message.pointwiseMetricResult != null && Object.hasOwnProperty.call(message, "pointwiseMetricResult")) + $root.google.cloud.aiplatform.v1.PointwiseMetricResult.encode(message.pointwiseMetricResult, writer.uint32(/* id 27, wireType 2 =*/218).fork()).ldelim(); + if (message.pairwiseMetricResult != null && Object.hasOwnProperty.call(message, "pairwiseMetricResult")) + $root.google.cloud.aiplatform.v1.PairwiseMetricResult.encode(message.pairwiseMetricResult, writer.uint32(/* id 28, wireType 2 =*/226).fork()).ldelim(); return writer; }; /** - * Encodes the specified Execution message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Execution.verify|verify} messages. + * Encodes the specified EvaluateInstancesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.EvaluateInstancesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.Execution + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesResponse * @static - * @param {google.cloud.aiplatform.v1.IExecution} message Execution message or plain object to encode + * @param {google.cloud.aiplatform.v1.IEvaluateInstancesResponse} message EvaluateInstancesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Execution.encodeDelimited = function encodeDelimited(message, writer) { + EvaluateInstancesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Execution message from the specified reader or buffer. + * Decodes an EvaluateInstancesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.Execution + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesResponse * @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.Execution} Execution + * @returns {google.cloud.aiplatform.v1.EvaluateInstancesResponse} EvaluateInstancesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Execution.decode = function decode(reader, length) { + EvaluateInstancesResponse.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.Execution(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.EvaluateInstancesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.exactMatchResults = $root.google.cloud.aiplatform.v1.ExactMatchResults.decode(reader, reader.uint32()); break; } case 2: { - message.displayName = reader.string(); + message.bleuResults = $root.google.cloud.aiplatform.v1.BleuResults.decode(reader, reader.uint32()); break; } - case 6: { - message.state = reader.int32(); + case 3: { + message.rougeResults = $root.google.cloud.aiplatform.v1.RougeResults.decode(reader, reader.uint32()); break; } - case 9: { - message.etag = reader.string(); + case 4: { + message.fluencyResult = $root.google.cloud.aiplatform.v1.FluencyResult.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; + case 5: { + message.coherenceResult = $root.google.cloud.aiplatform.v1.CoherenceResult.decode(reader, reader.uint32()); + break; + } + case 7: { + message.safetyResult = $root.google.cloud.aiplatform.v1.SafetyResult.decode(reader, reader.uint32()); + break; + } + case 8: { + message.groundednessResult = $root.google.cloud.aiplatform.v1.GroundednessResult.decode(reader, reader.uint32()); break; } case 11: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.fulfillmentResult = $root.google.cloud.aiplatform.v1.FulfillmentResult.decode(reader, reader.uint32()); break; } - case 12: { - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + case 6: { + message.summarizationQualityResult = $root.google.cloud.aiplatform.v1.SummarizationQualityResult.decode(reader, reader.uint32()); + break; + } + case 22: { + message.pairwiseSummarizationQualityResult = $root.google.cloud.aiplatform.v1.PairwiseSummarizationQualityResult.decode(reader, reader.uint32()); break; } case 13: { - message.schemaTitle = reader.string(); + message.summarizationHelpfulnessResult = $root.google.cloud.aiplatform.v1.SummarizationHelpfulnessResult.decode(reader, reader.uint32()); break; } case 14: { - message.schemaVersion = reader.string(); + message.summarizationVerbosityResult = $root.google.cloud.aiplatform.v1.SummarizationVerbosityResult.decode(reader, reader.uint32()); + break; + } + case 9: { + message.questionAnsweringQualityResult = $root.google.cloud.aiplatform.v1.QuestionAnsweringQualityResult.decode(reader, reader.uint32()); + break; + } + case 23: { + message.pairwiseQuestionAnsweringQualityResult = $root.google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityResult.decode(reader, reader.uint32()); break; } case 15: { - message.metadata = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + message.questionAnsweringRelevanceResult = $root.google.cloud.aiplatform.v1.QuestionAnsweringRelevanceResult.decode(reader, reader.uint32()); break; } case 16: { - message.description = reader.string(); + message.questionAnsweringHelpfulnessResult = $root.google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessResult.decode(reader, reader.uint32()); + break; + } + case 17: { + message.questionAnsweringCorrectnessResult = $root.google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessResult.decode(reader, reader.uint32()); + break; + } + case 27: { + message.pointwiseMetricResult = $root.google.cloud.aiplatform.v1.PointwiseMetricResult.decode(reader, reader.uint32()); + break; + } + case 28: { + message.pairwiseMetricResult = $root.google.cloud.aiplatform.v1.PairwiseMetricResult.decode(reader, reader.uint32()); + break; + } + case 18: { + message.toolCallValidResults = $root.google.cloud.aiplatform.v1.ToolCallValidResults.decode(reader, reader.uint32()); + break; + } + case 19: { + message.toolNameMatchResults = $root.google.cloud.aiplatform.v1.ToolNameMatchResults.decode(reader, reader.uint32()); + break; + } + case 20: { + message.toolParameterKeyMatchResults = $root.google.cloud.aiplatform.v1.ToolParameterKeyMatchResults.decode(reader, reader.uint32()); + break; + } + case 21: { + message.toolParameterKvMatchResults = $root.google.cloud.aiplatform.v1.ToolParameterKVMatchResults.decode(reader, reader.uint32()); break; } default: @@ -61501,313 +63985,574 @@ }; /** - * Decodes an Execution message from the specified reader or buffer, length delimited. + * Decodes an EvaluateInstancesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.Execution + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.Execution} Execution + * @returns {google.cloud.aiplatform.v1.EvaluateInstancesResponse} EvaluateInstancesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Execution.decodeDelimited = function decodeDelimited(reader) { + EvaluateInstancesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Execution message. + * Verifies an EvaluateInstancesResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.Execution + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Execution.verify = function verify(message) { + EvaluateInstancesResponse.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.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; + var properties = {}; + if (message.exactMatchResults != null && message.hasOwnProperty("exactMatchResults")) { + properties.evaluationResults = 1; + { + var error = $root.google.cloud.aiplatform.v1.ExactMatchResults.verify(message.exactMatchResults); + if (error) + return "exactMatchResults." + error; } - if (message.etag != null && message.hasOwnProperty("etag")) - if (!$util.isString(message.etag)) - return "etag: string expected"; - 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.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; + if (message.bleuResults != null && message.hasOwnProperty("bleuResults")) { + if (properties.evaluationResults === 1) + return "evaluationResults: multiple values"; + properties.evaluationResults = 1; + { + var error = $root.google.cloud.aiplatform.v1.BleuResults.verify(message.bleuResults); + if (error) + return "bleuResults." + error; + } } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; + if (message.rougeResults != null && message.hasOwnProperty("rougeResults")) { + if (properties.evaluationResults === 1) + return "evaluationResults: multiple values"; + properties.evaluationResults = 1; + { + var error = $root.google.cloud.aiplatform.v1.RougeResults.verify(message.rougeResults); + if (error) + return "rougeResults." + error; + } } - if (message.schemaTitle != null && message.hasOwnProperty("schemaTitle")) - if (!$util.isString(message.schemaTitle)) - return "schemaTitle: string expected"; - if (message.schemaVersion != null && message.hasOwnProperty("schemaVersion")) - if (!$util.isString(message.schemaVersion)) - return "schemaVersion: string expected"; - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.google.protobuf.Struct.verify(message.metadata); - if (error) - return "metadata." + error; + if (message.fluencyResult != null && message.hasOwnProperty("fluencyResult")) { + if (properties.evaluationResults === 1) + return "evaluationResults: multiple values"; + properties.evaluationResults = 1; + { + var error = $root.google.cloud.aiplatform.v1.FluencyResult.verify(message.fluencyResult); + if (error) + return "fluencyResult." + error; + } + } + if (message.coherenceResult != null && message.hasOwnProperty("coherenceResult")) { + if (properties.evaluationResults === 1) + return "evaluationResults: multiple values"; + properties.evaluationResults = 1; + { + var error = $root.google.cloud.aiplatform.v1.CoherenceResult.verify(message.coherenceResult); + if (error) + return "coherenceResult." + error; + } + } + if (message.safetyResult != null && message.hasOwnProperty("safetyResult")) { + if (properties.evaluationResults === 1) + return "evaluationResults: multiple values"; + properties.evaluationResults = 1; + { + var error = $root.google.cloud.aiplatform.v1.SafetyResult.verify(message.safetyResult); + if (error) + return "safetyResult." + error; + } + } + if (message.groundednessResult != null && message.hasOwnProperty("groundednessResult")) { + if (properties.evaluationResults === 1) + return "evaluationResults: multiple values"; + properties.evaluationResults = 1; + { + var error = $root.google.cloud.aiplatform.v1.GroundednessResult.verify(message.groundednessResult); + if (error) + return "groundednessResult." + error; + } + } + if (message.fulfillmentResult != null && message.hasOwnProperty("fulfillmentResult")) { + if (properties.evaluationResults === 1) + return "evaluationResults: multiple values"; + properties.evaluationResults = 1; + { + var error = $root.google.cloud.aiplatform.v1.FulfillmentResult.verify(message.fulfillmentResult); + if (error) + return "fulfillmentResult." + error; + } + } + if (message.summarizationQualityResult != null && message.hasOwnProperty("summarizationQualityResult")) { + if (properties.evaluationResults === 1) + return "evaluationResults: multiple values"; + properties.evaluationResults = 1; + { + var error = $root.google.cloud.aiplatform.v1.SummarizationQualityResult.verify(message.summarizationQualityResult); + if (error) + return "summarizationQualityResult." + error; + } + } + if (message.pairwiseSummarizationQualityResult != null && message.hasOwnProperty("pairwiseSummarizationQualityResult")) { + if (properties.evaluationResults === 1) + return "evaluationResults: multiple values"; + properties.evaluationResults = 1; + { + var error = $root.google.cloud.aiplatform.v1.PairwiseSummarizationQualityResult.verify(message.pairwiseSummarizationQualityResult); + if (error) + return "pairwiseSummarizationQualityResult." + error; + } + } + if (message.summarizationHelpfulnessResult != null && message.hasOwnProperty("summarizationHelpfulnessResult")) { + if (properties.evaluationResults === 1) + return "evaluationResults: multiple values"; + properties.evaluationResults = 1; + { + var error = $root.google.cloud.aiplatform.v1.SummarizationHelpfulnessResult.verify(message.summarizationHelpfulnessResult); + if (error) + return "summarizationHelpfulnessResult." + error; + } + } + if (message.summarizationVerbosityResult != null && message.hasOwnProperty("summarizationVerbosityResult")) { + if (properties.evaluationResults === 1) + return "evaluationResults: multiple values"; + properties.evaluationResults = 1; + { + var error = $root.google.cloud.aiplatform.v1.SummarizationVerbosityResult.verify(message.summarizationVerbosityResult); + if (error) + return "summarizationVerbosityResult." + error; + } + } + if (message.questionAnsweringQualityResult != null && message.hasOwnProperty("questionAnsweringQualityResult")) { + if (properties.evaluationResults === 1) + return "evaluationResults: multiple values"; + properties.evaluationResults = 1; + { + var error = $root.google.cloud.aiplatform.v1.QuestionAnsweringQualityResult.verify(message.questionAnsweringQualityResult); + if (error) + return "questionAnsweringQualityResult." + error; + } + } + if (message.pairwiseQuestionAnsweringQualityResult != null && message.hasOwnProperty("pairwiseQuestionAnsweringQualityResult")) { + if (properties.evaluationResults === 1) + return "evaluationResults: multiple values"; + properties.evaluationResults = 1; + { + var error = $root.google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityResult.verify(message.pairwiseQuestionAnsweringQualityResult); + if (error) + return "pairwiseQuestionAnsweringQualityResult." + error; + } + } + if (message.questionAnsweringRelevanceResult != null && message.hasOwnProperty("questionAnsweringRelevanceResult")) { + if (properties.evaluationResults === 1) + return "evaluationResults: multiple values"; + properties.evaluationResults = 1; + { + var error = $root.google.cloud.aiplatform.v1.QuestionAnsweringRelevanceResult.verify(message.questionAnsweringRelevanceResult); + if (error) + return "questionAnsweringRelevanceResult." + error; + } + } + if (message.questionAnsweringHelpfulnessResult != null && message.hasOwnProperty("questionAnsweringHelpfulnessResult")) { + if (properties.evaluationResults === 1) + return "evaluationResults: multiple values"; + properties.evaluationResults = 1; + { + var error = $root.google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessResult.verify(message.questionAnsweringHelpfulnessResult); + if (error) + return "questionAnsweringHelpfulnessResult." + error; + } + } + if (message.questionAnsweringCorrectnessResult != null && message.hasOwnProperty("questionAnsweringCorrectnessResult")) { + if (properties.evaluationResults === 1) + return "evaluationResults: multiple values"; + properties.evaluationResults = 1; + { + var error = $root.google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessResult.verify(message.questionAnsweringCorrectnessResult); + if (error) + return "questionAnsweringCorrectnessResult." + error; + } + } + if (message.pointwiseMetricResult != null && message.hasOwnProperty("pointwiseMetricResult")) { + if (properties.evaluationResults === 1) + return "evaluationResults: multiple values"; + properties.evaluationResults = 1; + { + var error = $root.google.cloud.aiplatform.v1.PointwiseMetricResult.verify(message.pointwiseMetricResult); + if (error) + return "pointwiseMetricResult." + error; + } + } + if (message.pairwiseMetricResult != null && message.hasOwnProperty("pairwiseMetricResult")) { + if (properties.evaluationResults === 1) + return "evaluationResults: multiple values"; + properties.evaluationResults = 1; + { + var error = $root.google.cloud.aiplatform.v1.PairwiseMetricResult.verify(message.pairwiseMetricResult); + if (error) + return "pairwiseMetricResult." + error; + } + } + if (message.toolCallValidResults != null && message.hasOwnProperty("toolCallValidResults")) { + if (properties.evaluationResults === 1) + return "evaluationResults: multiple values"; + properties.evaluationResults = 1; + { + var error = $root.google.cloud.aiplatform.v1.ToolCallValidResults.verify(message.toolCallValidResults); + if (error) + return "toolCallValidResults." + error; + } + } + if (message.toolNameMatchResults != null && message.hasOwnProperty("toolNameMatchResults")) { + if (properties.evaluationResults === 1) + return "evaluationResults: multiple values"; + properties.evaluationResults = 1; + { + var error = $root.google.cloud.aiplatform.v1.ToolNameMatchResults.verify(message.toolNameMatchResults); + if (error) + return "toolNameMatchResults." + error; + } + } + if (message.toolParameterKeyMatchResults != null && message.hasOwnProperty("toolParameterKeyMatchResults")) { + if (properties.evaluationResults === 1) + return "evaluationResults: multiple values"; + properties.evaluationResults = 1; + { + var error = $root.google.cloud.aiplatform.v1.ToolParameterKeyMatchResults.verify(message.toolParameterKeyMatchResults); + if (error) + return "toolParameterKeyMatchResults." + error; + } + } + if (message.toolParameterKvMatchResults != null && message.hasOwnProperty("toolParameterKvMatchResults")) { + if (properties.evaluationResults === 1) + return "evaluationResults: multiple values"; + properties.evaluationResults = 1; + { + var error = $root.google.cloud.aiplatform.v1.ToolParameterKVMatchResults.verify(message.toolParameterKvMatchResults); + if (error) + return "toolParameterKvMatchResults." + error; + } } - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; return null; }; /** - * Creates an Execution message from a plain object. Also converts values to their respective internal types. + * Creates an EvaluateInstancesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.Execution + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.Execution} Execution + * @returns {google.cloud.aiplatform.v1.EvaluateInstancesResponse} EvaluateInstancesResponse */ - Execution.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.Execution) + EvaluateInstancesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.EvaluateInstancesResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.Execution(); - if (object.name != null) - message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; - } - break; - case "STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "NEW": - case 1: - message.state = 1; - break; - case "RUNNING": - case 2: - message.state = 2; - break; - case "COMPLETE": - case 3: - message.state = 3; - break; - case "FAILED": - case 4: - message.state = 4; - break; - case "CACHED": - case 5: - message.state = 5; - break; - case "CANCELLED": - case 6: - message.state = 6; - break; + var message = new $root.google.cloud.aiplatform.v1.EvaluateInstancesResponse(); + if (object.exactMatchResults != null) { + if (typeof object.exactMatchResults !== "object") + throw TypeError(".google.cloud.aiplatform.v1.EvaluateInstancesResponse.exactMatchResults: object expected"); + message.exactMatchResults = $root.google.cloud.aiplatform.v1.ExactMatchResults.fromObject(object.exactMatchResults); } - if (object.etag != null) - message.etag = String(object.etag); - if (object.labels) { - if (typeof object.labels !== "object") - throw TypeError(".google.cloud.aiplatform.v1.Execution.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.bleuResults != null) { + if (typeof object.bleuResults !== "object") + throw TypeError(".google.cloud.aiplatform.v1.EvaluateInstancesResponse.bleuResults: object expected"); + message.bleuResults = $root.google.cloud.aiplatform.v1.BleuResults.fromObject(object.bleuResults); } - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.Execution.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + if (object.rougeResults != null) { + if (typeof object.rougeResults !== "object") + throw TypeError(".google.cloud.aiplatform.v1.EvaluateInstancesResponse.rougeResults: object expected"); + message.rougeResults = $root.google.cloud.aiplatform.v1.RougeResults.fromObject(object.rougeResults); } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.Execution.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + if (object.fluencyResult != null) { + if (typeof object.fluencyResult !== "object") + throw TypeError(".google.cloud.aiplatform.v1.EvaluateInstancesResponse.fluencyResult: object expected"); + message.fluencyResult = $root.google.cloud.aiplatform.v1.FluencyResult.fromObject(object.fluencyResult); } - if (object.schemaTitle != null) - message.schemaTitle = String(object.schemaTitle); - if (object.schemaVersion != null) - message.schemaVersion = String(object.schemaVersion); - if (object.metadata != null) { - if (typeof object.metadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1.Execution.metadata: object expected"); - message.metadata = $root.google.protobuf.Struct.fromObject(object.metadata); + if (object.coherenceResult != null) { + if (typeof object.coherenceResult !== "object") + throw TypeError(".google.cloud.aiplatform.v1.EvaluateInstancesResponse.coherenceResult: object expected"); + message.coherenceResult = $root.google.cloud.aiplatform.v1.CoherenceResult.fromObject(object.coherenceResult); + } + if (object.safetyResult != null) { + if (typeof object.safetyResult !== "object") + throw TypeError(".google.cloud.aiplatform.v1.EvaluateInstancesResponse.safetyResult: object expected"); + message.safetyResult = $root.google.cloud.aiplatform.v1.SafetyResult.fromObject(object.safetyResult); + } + if (object.groundednessResult != null) { + if (typeof object.groundednessResult !== "object") + throw TypeError(".google.cloud.aiplatform.v1.EvaluateInstancesResponse.groundednessResult: object expected"); + message.groundednessResult = $root.google.cloud.aiplatform.v1.GroundednessResult.fromObject(object.groundednessResult); + } + if (object.fulfillmentResult != null) { + if (typeof object.fulfillmentResult !== "object") + throw TypeError(".google.cloud.aiplatform.v1.EvaluateInstancesResponse.fulfillmentResult: object expected"); + message.fulfillmentResult = $root.google.cloud.aiplatform.v1.FulfillmentResult.fromObject(object.fulfillmentResult); + } + if (object.summarizationQualityResult != null) { + if (typeof object.summarizationQualityResult !== "object") + throw TypeError(".google.cloud.aiplatform.v1.EvaluateInstancesResponse.summarizationQualityResult: object expected"); + message.summarizationQualityResult = $root.google.cloud.aiplatform.v1.SummarizationQualityResult.fromObject(object.summarizationQualityResult); + } + if (object.pairwiseSummarizationQualityResult != null) { + if (typeof object.pairwiseSummarizationQualityResult !== "object") + throw TypeError(".google.cloud.aiplatform.v1.EvaluateInstancesResponse.pairwiseSummarizationQualityResult: object expected"); + message.pairwiseSummarizationQualityResult = $root.google.cloud.aiplatform.v1.PairwiseSummarizationQualityResult.fromObject(object.pairwiseSummarizationQualityResult); + } + if (object.summarizationHelpfulnessResult != null) { + if (typeof object.summarizationHelpfulnessResult !== "object") + throw TypeError(".google.cloud.aiplatform.v1.EvaluateInstancesResponse.summarizationHelpfulnessResult: object expected"); + message.summarizationHelpfulnessResult = $root.google.cloud.aiplatform.v1.SummarizationHelpfulnessResult.fromObject(object.summarizationHelpfulnessResult); + } + if (object.summarizationVerbosityResult != null) { + if (typeof object.summarizationVerbosityResult !== "object") + throw TypeError(".google.cloud.aiplatform.v1.EvaluateInstancesResponse.summarizationVerbosityResult: object expected"); + message.summarizationVerbosityResult = $root.google.cloud.aiplatform.v1.SummarizationVerbosityResult.fromObject(object.summarizationVerbosityResult); + } + if (object.questionAnsweringQualityResult != null) { + if (typeof object.questionAnsweringQualityResult !== "object") + throw TypeError(".google.cloud.aiplatform.v1.EvaluateInstancesResponse.questionAnsweringQualityResult: object expected"); + message.questionAnsweringQualityResult = $root.google.cloud.aiplatform.v1.QuestionAnsweringQualityResult.fromObject(object.questionAnsweringQualityResult); + } + if (object.pairwiseQuestionAnsweringQualityResult != null) { + if (typeof object.pairwiseQuestionAnsweringQualityResult !== "object") + throw TypeError(".google.cloud.aiplatform.v1.EvaluateInstancesResponse.pairwiseQuestionAnsweringQualityResult: object expected"); + message.pairwiseQuestionAnsweringQualityResult = $root.google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityResult.fromObject(object.pairwiseQuestionAnsweringQualityResult); + } + if (object.questionAnsweringRelevanceResult != null) { + if (typeof object.questionAnsweringRelevanceResult !== "object") + throw TypeError(".google.cloud.aiplatform.v1.EvaluateInstancesResponse.questionAnsweringRelevanceResult: object expected"); + message.questionAnsweringRelevanceResult = $root.google.cloud.aiplatform.v1.QuestionAnsweringRelevanceResult.fromObject(object.questionAnsweringRelevanceResult); + } + if (object.questionAnsweringHelpfulnessResult != null) { + if (typeof object.questionAnsweringHelpfulnessResult !== "object") + throw TypeError(".google.cloud.aiplatform.v1.EvaluateInstancesResponse.questionAnsweringHelpfulnessResult: object expected"); + message.questionAnsweringHelpfulnessResult = $root.google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessResult.fromObject(object.questionAnsweringHelpfulnessResult); + } + if (object.questionAnsweringCorrectnessResult != null) { + if (typeof object.questionAnsweringCorrectnessResult !== "object") + throw TypeError(".google.cloud.aiplatform.v1.EvaluateInstancesResponse.questionAnsweringCorrectnessResult: object expected"); + message.questionAnsweringCorrectnessResult = $root.google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessResult.fromObject(object.questionAnsweringCorrectnessResult); + } + if (object.pointwiseMetricResult != null) { + if (typeof object.pointwiseMetricResult !== "object") + throw TypeError(".google.cloud.aiplatform.v1.EvaluateInstancesResponse.pointwiseMetricResult: object expected"); + message.pointwiseMetricResult = $root.google.cloud.aiplatform.v1.PointwiseMetricResult.fromObject(object.pointwiseMetricResult); + } + if (object.pairwiseMetricResult != null) { + if (typeof object.pairwiseMetricResult !== "object") + throw TypeError(".google.cloud.aiplatform.v1.EvaluateInstancesResponse.pairwiseMetricResult: object expected"); + message.pairwiseMetricResult = $root.google.cloud.aiplatform.v1.PairwiseMetricResult.fromObject(object.pairwiseMetricResult); + } + if (object.toolCallValidResults != null) { + if (typeof object.toolCallValidResults !== "object") + throw TypeError(".google.cloud.aiplatform.v1.EvaluateInstancesResponse.toolCallValidResults: object expected"); + message.toolCallValidResults = $root.google.cloud.aiplatform.v1.ToolCallValidResults.fromObject(object.toolCallValidResults); + } + if (object.toolNameMatchResults != null) { + if (typeof object.toolNameMatchResults !== "object") + throw TypeError(".google.cloud.aiplatform.v1.EvaluateInstancesResponse.toolNameMatchResults: object expected"); + message.toolNameMatchResults = $root.google.cloud.aiplatform.v1.ToolNameMatchResults.fromObject(object.toolNameMatchResults); + } + if (object.toolParameterKeyMatchResults != null) { + if (typeof object.toolParameterKeyMatchResults !== "object") + throw TypeError(".google.cloud.aiplatform.v1.EvaluateInstancesResponse.toolParameterKeyMatchResults: object expected"); + message.toolParameterKeyMatchResults = $root.google.cloud.aiplatform.v1.ToolParameterKeyMatchResults.fromObject(object.toolParameterKeyMatchResults); + } + if (object.toolParameterKvMatchResults != null) { + if (typeof object.toolParameterKvMatchResults !== "object") + throw TypeError(".google.cloud.aiplatform.v1.EvaluateInstancesResponse.toolParameterKvMatchResults: object expected"); + message.toolParameterKvMatchResults = $root.google.cloud.aiplatform.v1.ToolParameterKVMatchResults.fromObject(object.toolParameterKvMatchResults); } - if (object.description != null) - message.description = String(object.description); return message; }; /** - * Creates a plain object from an Execution message. Also converts values to other types if specified. + * Creates a plain object from an EvaluateInstancesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.Execution + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesResponse * @static - * @param {google.cloud.aiplatform.v1.Execution} message Execution + * @param {google.cloud.aiplatform.v1.EvaluateInstancesResponse} message EvaluateInstancesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Execution.toObject = function toObject(message, options) { + EvaluateInstancesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.labels = {}; - if (options.defaults) { - object.name = ""; - object.displayName = ""; - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; - object.etag = ""; - object.createTime = null; - object.updateTime = null; - object.schemaTitle = ""; - object.schemaVersion = ""; - object.metadata = null; - object.description = ""; + if (message.exactMatchResults != null && message.hasOwnProperty("exactMatchResults")) { + object.exactMatchResults = $root.google.cloud.aiplatform.v1.ExactMatchResults.toObject(message.exactMatchResults, options); + if (options.oneofs) + object.evaluationResults = "exactMatchResults"; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.aiplatform.v1.Execution.State[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1.Execution.State[message.state] : message.state; - if (message.etag != null && message.hasOwnProperty("etag")) - object.etag = message.etag; - 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]]; + if (message.bleuResults != null && message.hasOwnProperty("bleuResults")) { + object.bleuResults = $root.google.cloud.aiplatform.v1.BleuResults.toObject(message.bleuResults, options); + if (options.oneofs) + object.evaluationResults = "bleuResults"; + } + if (message.rougeResults != null && message.hasOwnProperty("rougeResults")) { + object.rougeResults = $root.google.cloud.aiplatform.v1.RougeResults.toObject(message.rougeResults, options); + if (options.oneofs) + object.evaluationResults = "rougeResults"; + } + if (message.fluencyResult != null && message.hasOwnProperty("fluencyResult")) { + object.fluencyResult = $root.google.cloud.aiplatform.v1.FluencyResult.toObject(message.fluencyResult, options); + if (options.oneofs) + object.evaluationResults = "fluencyResult"; + } + if (message.coherenceResult != null && message.hasOwnProperty("coherenceResult")) { + object.coherenceResult = $root.google.cloud.aiplatform.v1.CoherenceResult.toObject(message.coherenceResult, options); + if (options.oneofs) + object.evaluationResults = "coherenceResult"; + } + if (message.summarizationQualityResult != null && message.hasOwnProperty("summarizationQualityResult")) { + object.summarizationQualityResult = $root.google.cloud.aiplatform.v1.SummarizationQualityResult.toObject(message.summarizationQualityResult, options); + if (options.oneofs) + object.evaluationResults = "summarizationQualityResult"; + } + if (message.safetyResult != null && message.hasOwnProperty("safetyResult")) { + object.safetyResult = $root.google.cloud.aiplatform.v1.SafetyResult.toObject(message.safetyResult, options); + if (options.oneofs) + object.evaluationResults = "safetyResult"; + } + if (message.groundednessResult != null && message.hasOwnProperty("groundednessResult")) { + object.groundednessResult = $root.google.cloud.aiplatform.v1.GroundednessResult.toObject(message.groundednessResult, options); + if (options.oneofs) + object.evaluationResults = "groundednessResult"; + } + if (message.questionAnsweringQualityResult != null && message.hasOwnProperty("questionAnsweringQualityResult")) { + object.questionAnsweringQualityResult = $root.google.cloud.aiplatform.v1.QuestionAnsweringQualityResult.toObject(message.questionAnsweringQualityResult, options); + if (options.oneofs) + object.evaluationResults = "questionAnsweringQualityResult"; + } + if (message.fulfillmentResult != null && message.hasOwnProperty("fulfillmentResult")) { + object.fulfillmentResult = $root.google.cloud.aiplatform.v1.FulfillmentResult.toObject(message.fulfillmentResult, options); + if (options.oneofs) + object.evaluationResults = "fulfillmentResult"; + } + if (message.summarizationHelpfulnessResult != null && message.hasOwnProperty("summarizationHelpfulnessResult")) { + object.summarizationHelpfulnessResult = $root.google.cloud.aiplatform.v1.SummarizationHelpfulnessResult.toObject(message.summarizationHelpfulnessResult, options); + if (options.oneofs) + object.evaluationResults = "summarizationHelpfulnessResult"; + } + if (message.summarizationVerbosityResult != null && message.hasOwnProperty("summarizationVerbosityResult")) { + object.summarizationVerbosityResult = $root.google.cloud.aiplatform.v1.SummarizationVerbosityResult.toObject(message.summarizationVerbosityResult, options); + if (options.oneofs) + object.evaluationResults = "summarizationVerbosityResult"; + } + if (message.questionAnsweringRelevanceResult != null && message.hasOwnProperty("questionAnsweringRelevanceResult")) { + object.questionAnsweringRelevanceResult = $root.google.cloud.aiplatform.v1.QuestionAnsweringRelevanceResult.toObject(message.questionAnsweringRelevanceResult, options); + if (options.oneofs) + object.evaluationResults = "questionAnsweringRelevanceResult"; + } + if (message.questionAnsweringHelpfulnessResult != null && message.hasOwnProperty("questionAnsweringHelpfulnessResult")) { + object.questionAnsweringHelpfulnessResult = $root.google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessResult.toObject(message.questionAnsweringHelpfulnessResult, options); + if (options.oneofs) + object.evaluationResults = "questionAnsweringHelpfulnessResult"; + } + if (message.questionAnsweringCorrectnessResult != null && message.hasOwnProperty("questionAnsweringCorrectnessResult")) { + object.questionAnsweringCorrectnessResult = $root.google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessResult.toObject(message.questionAnsweringCorrectnessResult, options); + if (options.oneofs) + object.evaluationResults = "questionAnsweringCorrectnessResult"; + } + if (message.toolCallValidResults != null && message.hasOwnProperty("toolCallValidResults")) { + object.toolCallValidResults = $root.google.cloud.aiplatform.v1.ToolCallValidResults.toObject(message.toolCallValidResults, options); + if (options.oneofs) + object.evaluationResults = "toolCallValidResults"; + } + if (message.toolNameMatchResults != null && message.hasOwnProperty("toolNameMatchResults")) { + object.toolNameMatchResults = $root.google.cloud.aiplatform.v1.ToolNameMatchResults.toObject(message.toolNameMatchResults, options); + if (options.oneofs) + object.evaluationResults = "toolNameMatchResults"; + } + if (message.toolParameterKeyMatchResults != null && message.hasOwnProperty("toolParameterKeyMatchResults")) { + object.toolParameterKeyMatchResults = $root.google.cloud.aiplatform.v1.ToolParameterKeyMatchResults.toObject(message.toolParameterKeyMatchResults, options); + if (options.oneofs) + object.evaluationResults = "toolParameterKeyMatchResults"; + } + if (message.toolParameterKvMatchResults != null && message.hasOwnProperty("toolParameterKvMatchResults")) { + object.toolParameterKvMatchResults = $root.google.cloud.aiplatform.v1.ToolParameterKVMatchResults.toObject(message.toolParameterKvMatchResults, options); + if (options.oneofs) + object.evaluationResults = "toolParameterKvMatchResults"; + } + if (message.pairwiseSummarizationQualityResult != null && message.hasOwnProperty("pairwiseSummarizationQualityResult")) { + object.pairwiseSummarizationQualityResult = $root.google.cloud.aiplatform.v1.PairwiseSummarizationQualityResult.toObject(message.pairwiseSummarizationQualityResult, options); + if (options.oneofs) + object.evaluationResults = "pairwiseSummarizationQualityResult"; + } + if (message.pairwiseQuestionAnsweringQualityResult != null && message.hasOwnProperty("pairwiseQuestionAnsweringQualityResult")) { + object.pairwiseQuestionAnsweringQualityResult = $root.google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityResult.toObject(message.pairwiseQuestionAnsweringQualityResult, options); + if (options.oneofs) + object.evaluationResults = "pairwiseQuestionAnsweringQualityResult"; + } + if (message.pointwiseMetricResult != null && message.hasOwnProperty("pointwiseMetricResult")) { + object.pointwiseMetricResult = $root.google.cloud.aiplatform.v1.PointwiseMetricResult.toObject(message.pointwiseMetricResult, options); + if (options.oneofs) + object.evaluationResults = "pointwiseMetricResult"; + } + if (message.pairwiseMetricResult != null && message.hasOwnProperty("pairwiseMetricResult")) { + object.pairwiseMetricResult = $root.google.cloud.aiplatform.v1.PairwiseMetricResult.toObject(message.pairwiseMetricResult, options); + if (options.oneofs) + object.evaluationResults = "pairwiseMetricResult"; } - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.schemaTitle != null && message.hasOwnProperty("schemaTitle")) - object.schemaTitle = message.schemaTitle; - if (message.schemaVersion != null && message.hasOwnProperty("schemaVersion")) - object.schemaVersion = message.schemaVersion; - if (message.metadata != null && message.hasOwnProperty("metadata")) - object.metadata = $root.google.protobuf.Struct.toObject(message.metadata, options); - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; return object; }; /** - * Converts this Execution to JSON. + * Converts this EvaluateInstancesResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.Execution + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesResponse * @instance * @returns {Object.} JSON object */ - Execution.prototype.toJSON = function toJSON() { + EvaluateInstancesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Execution + * Gets the default type url for EvaluateInstancesResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.Execution + * @memberof google.cloud.aiplatform.v1.EvaluateInstancesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Execution.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + EvaluateInstancesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.Execution"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.EvaluateInstancesResponse"; }; - /** - * State enum. - * @name google.cloud.aiplatform.v1.Execution.State - * @enum {number} - * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value - * @property {number} NEW=1 NEW value - * @property {number} RUNNING=2 RUNNING value - * @property {number} COMPLETE=3 COMPLETE value - * @property {number} FAILED=4 FAILED value - * @property {number} CACHED=5 CACHED value - * @property {number} CANCELLED=6 CANCELLED value - */ - Execution.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "NEW"] = 1; - values[valuesById[2] = "RUNNING"] = 2; - values[valuesById[3] = "COMPLETE"] = 3; - values[valuesById[4] = "FAILED"] = 4; - values[valuesById[5] = "CACHED"] = 5; - values[valuesById[6] = "CANCELLED"] = 6; - return values; - })(); - - return Execution; + return EvaluateInstancesResponse; })(); - v1.Feature = (function() { + v1.ExactMatchInput = (function() { /** - * Properties of a Feature. + * Properties of an ExactMatchInput. * @memberof google.cloud.aiplatform.v1 - * @interface IFeature - * @property {string|null} [name] Feature name - * @property {string|null} [description] Feature description - * @property {google.cloud.aiplatform.v1.Feature.ValueType|null} [valueType] Feature valueType - * @property {google.protobuf.ITimestamp|null} [createTime] Feature createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] Feature updateTime - * @property {Object.|null} [labels] Feature labels - * @property {string|null} [etag] Feature etag - * @property {boolean|null} [disableMonitoring] Feature disableMonitoring - * @property {Array.|null} [monitoringStatsAnomalies] Feature monitoringStatsAnomalies - * @property {string|null} [versionColumnName] Feature versionColumnName - * @property {string|null} [pointOfContact] Feature pointOfContact + * @interface IExactMatchInput + * @property {google.cloud.aiplatform.v1.IExactMatchSpec|null} [metricSpec] ExactMatchInput metricSpec + * @property {Array.|null} [instances] ExactMatchInput instances */ /** - * Constructs a new Feature. + * Constructs a new ExactMatchInput. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a Feature. - * @implements IFeature + * @classdesc Represents an ExactMatchInput. + * @implements IExactMatchInput * @constructor - * @param {google.cloud.aiplatform.v1.IFeature=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IExactMatchInput=} [properties] Properties to set */ - function Feature(properties) { - this.labels = {}; - this.monitoringStatsAnomalies = []; + function ExactMatchInput(properties) { + this.instances = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -61815,238 +64560,92 @@ } /** - * Feature name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.Feature - * @instance - */ - Feature.prototype.name = ""; - - /** - * Feature description. - * @member {string} description - * @memberof google.cloud.aiplatform.v1.Feature - * @instance - */ - Feature.prototype.description = ""; - - /** - * Feature valueType. - * @member {google.cloud.aiplatform.v1.Feature.ValueType} valueType - * @memberof google.cloud.aiplatform.v1.Feature - * @instance - */ - Feature.prototype.valueType = 0; - - /** - * Feature createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1.Feature - * @instance - */ - Feature.prototype.createTime = null; - - /** - * Feature updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1.Feature - * @instance - */ - Feature.prototype.updateTime = null; - - /** - * Feature labels. - * @member {Object.} labels - * @memberof google.cloud.aiplatform.v1.Feature - * @instance - */ - Feature.prototype.labels = $util.emptyObject; - - /** - * Feature etag. - * @member {string} etag - * @memberof google.cloud.aiplatform.v1.Feature - * @instance - */ - Feature.prototype.etag = ""; - - /** - * Feature disableMonitoring. - * @member {boolean} disableMonitoring - * @memberof google.cloud.aiplatform.v1.Feature - * @instance - */ - Feature.prototype.disableMonitoring = false; - - /** - * Feature monitoringStatsAnomalies. - * @member {Array.} monitoringStatsAnomalies - * @memberof google.cloud.aiplatform.v1.Feature - * @instance - */ - Feature.prototype.monitoringStatsAnomalies = $util.emptyArray; - - /** - * Feature versionColumnName. - * @member {string} versionColumnName - * @memberof google.cloud.aiplatform.v1.Feature + * ExactMatchInput metricSpec. + * @member {google.cloud.aiplatform.v1.IExactMatchSpec|null|undefined} metricSpec + * @memberof google.cloud.aiplatform.v1.ExactMatchInput * @instance */ - Feature.prototype.versionColumnName = ""; + ExactMatchInput.prototype.metricSpec = null; /** - * Feature pointOfContact. - * @member {string} pointOfContact - * @memberof google.cloud.aiplatform.v1.Feature + * ExactMatchInput instances. + * @member {Array.} instances + * @memberof google.cloud.aiplatform.v1.ExactMatchInput * @instance */ - Feature.prototype.pointOfContact = ""; + ExactMatchInput.prototype.instances = $util.emptyArray; /** - * Creates a new Feature instance using the specified properties. + * Creates a new ExactMatchInput instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.Feature + * @memberof google.cloud.aiplatform.v1.ExactMatchInput * @static - * @param {google.cloud.aiplatform.v1.IFeature=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.Feature} Feature instance + * @param {google.cloud.aiplatform.v1.IExactMatchInput=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ExactMatchInput} ExactMatchInput instance */ - Feature.create = function create(properties) { - return new Feature(properties); + ExactMatchInput.create = function create(properties) { + return new ExactMatchInput(properties); }; /** - * Encodes the specified Feature message. Does not implicitly {@link google.cloud.aiplatform.v1.Feature.verify|verify} messages. + * Encodes the specified ExactMatchInput message. Does not implicitly {@link google.cloud.aiplatform.v1.ExactMatchInput.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.Feature + * @memberof google.cloud.aiplatform.v1.ExactMatchInput * @static - * @param {google.cloud.aiplatform.v1.IFeature} message Feature message or plain object to encode + * @param {google.cloud.aiplatform.v1.IExactMatchInput} message ExactMatchInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Feature.encode = function encode(message, writer) { + ExactMatchInput.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.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); - if (message.valueType != null && Object.hasOwnProperty.call(message, "valueType")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.valueType); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 5, wireType 2 =*/42).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 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); - if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.etag); - if (message.monitoringStatsAnomalies != null && message.monitoringStatsAnomalies.length) - for (var i = 0; i < message.monitoringStatsAnomalies.length; ++i) - $root.google.cloud.aiplatform.v1.Feature.MonitoringStatsAnomaly.encode(message.monitoringStatsAnomalies[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.disableMonitoring != null && Object.hasOwnProperty.call(message, "disableMonitoring")) - writer.uint32(/* id 12, wireType 0 =*/96).bool(message.disableMonitoring); - if (message.versionColumnName != null && Object.hasOwnProperty.call(message, "versionColumnName")) - writer.uint32(/* id 106, wireType 2 =*/850).string(message.versionColumnName); - if (message.pointOfContact != null && Object.hasOwnProperty.call(message, "pointOfContact")) - writer.uint32(/* id 107, wireType 2 =*/858).string(message.pointOfContact); + if (message.metricSpec != null && Object.hasOwnProperty.call(message, "metricSpec")) + $root.google.cloud.aiplatform.v1.ExactMatchSpec.encode(message.metricSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.instances != null && message.instances.length) + for (var i = 0; i < message.instances.length; ++i) + $root.google.cloud.aiplatform.v1.ExactMatchInstance.encode(message.instances[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified Feature message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Feature.verify|verify} messages. + * Encodes the specified ExactMatchInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExactMatchInput.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.Feature + * @memberof google.cloud.aiplatform.v1.ExactMatchInput * @static - * @param {google.cloud.aiplatform.v1.IFeature} message Feature message or plain object to encode + * @param {google.cloud.aiplatform.v1.IExactMatchInput} message ExactMatchInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Feature.encodeDelimited = function encodeDelimited(message, writer) { + ExactMatchInput.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Feature message from the specified reader or buffer. + * Decodes an ExactMatchInput message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.Feature + * @memberof google.cloud.aiplatform.v1.ExactMatchInput * @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.Feature} Feature + * @returns {google.cloud.aiplatform.v1.ExactMatchInput} ExactMatchInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Feature.decode = function decode(reader, length) { + ExactMatchInput.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.Feature(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ExactMatchInput(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.metricSpec = $root.google.cloud.aiplatform.v1.ExactMatchSpec.decode(reader, reader.uint32()); break; } case 2: { - message.description = reader.string(); - break; - } - case 3: { - message.valueType = reader.int32(); - break; - } - case 4: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 5: { - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 6: { - 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 7: { - message.etag = reader.string(); - break; - } - case 12: { - message.disableMonitoring = reader.bool(); - break; - } - case 11: { - if (!(message.monitoringStatsAnomalies && message.monitoringStatsAnomalies.length)) - message.monitoringStatsAnomalies = []; - message.monitoringStatsAnomalies.push($root.google.cloud.aiplatform.v1.Feature.MonitoringStatsAnomaly.decode(reader, reader.uint32())); - break; - } - case 106: { - message.versionColumnName = reader.string(); - break; - } - case 107: { - message.pointOfContact = reader.string(); + if (!(message.instances && message.instances.length)) + message.instances = []; + message.instances.push($root.google.cloud.aiplatform.v1.ExactMatchInstance.decode(reader, reader.uint32())); break; } default: @@ -62058,52 +64657,25692 @@ }; /** - * Decodes a Feature message from the specified reader or buffer, length delimited. + * Decodes an ExactMatchInput message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.Feature + * @memberof google.cloud.aiplatform.v1.ExactMatchInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.Feature} Feature + * @returns {google.cloud.aiplatform.v1.ExactMatchInput} ExactMatchInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Feature.decodeDelimited = function decodeDelimited(reader) { + ExactMatchInput.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Feature message. + * Verifies an ExactMatchInput message. * @function verify - * @memberof google.cloud.aiplatform.v1.Feature + * @memberof google.cloud.aiplatform.v1.ExactMatchInput * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Feature.verify = function verify(message) { + ExactMatchInput.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.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.valueType != null && message.hasOwnProperty("valueType")) - switch (message.valueType) { - default: - return "valueType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 9: - case 10: - case 11: - case 12: - case 13: + if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) { + var error = $root.google.cloud.aiplatform.v1.ExactMatchSpec.verify(message.metricSpec); + if (error) + return "metricSpec." + error; + } + if (message.instances != null && message.hasOwnProperty("instances")) { + if (!Array.isArray(message.instances)) + return "instances: array expected"; + for (var i = 0; i < message.instances.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.ExactMatchInstance.verify(message.instances[i]); + if (error) + return "instances." + error; + } + } + return null; + }; + + /** + * Creates an ExactMatchInput message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ExactMatchInput + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ExactMatchInput} ExactMatchInput + */ + ExactMatchInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ExactMatchInput) + return object; + var message = new $root.google.cloud.aiplatform.v1.ExactMatchInput(); + if (object.metricSpec != null) { + if (typeof object.metricSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ExactMatchInput.metricSpec: object expected"); + message.metricSpec = $root.google.cloud.aiplatform.v1.ExactMatchSpec.fromObject(object.metricSpec); + } + if (object.instances) { + if (!Array.isArray(object.instances)) + throw TypeError(".google.cloud.aiplatform.v1.ExactMatchInput.instances: array expected"); + message.instances = []; + for (var i = 0; i < object.instances.length; ++i) { + if (typeof object.instances[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ExactMatchInput.instances: object expected"); + message.instances[i] = $root.google.cloud.aiplatform.v1.ExactMatchInstance.fromObject(object.instances[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an ExactMatchInput message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ExactMatchInput + * @static + * @param {google.cloud.aiplatform.v1.ExactMatchInput} message ExactMatchInput + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExactMatchInput.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.instances = []; + if (options.defaults) + object.metricSpec = null; + if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) + object.metricSpec = $root.google.cloud.aiplatform.v1.ExactMatchSpec.toObject(message.metricSpec, options); + if (message.instances && message.instances.length) { + object.instances = []; + for (var j = 0; j < message.instances.length; ++j) + object.instances[j] = $root.google.cloud.aiplatform.v1.ExactMatchInstance.toObject(message.instances[j], options); + } + return object; + }; + + /** + * Converts this ExactMatchInput to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ExactMatchInput + * @instance + * @returns {Object.} JSON object + */ + ExactMatchInput.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ExactMatchInput + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ExactMatchInput + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ExactMatchInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ExactMatchInput"; + }; + + return ExactMatchInput; + })(); + + v1.ExactMatchInstance = (function() { + + /** + * Properties of an ExactMatchInstance. + * @memberof google.cloud.aiplatform.v1 + * @interface IExactMatchInstance + * @property {string|null} [prediction] ExactMatchInstance prediction + * @property {string|null} [reference] ExactMatchInstance reference + */ + + /** + * Constructs a new ExactMatchInstance. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents an ExactMatchInstance. + * @implements IExactMatchInstance + * @constructor + * @param {google.cloud.aiplatform.v1.IExactMatchInstance=} [properties] Properties to set + */ + function ExactMatchInstance(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]]; + } + + /** + * ExactMatchInstance prediction. + * @member {string|null|undefined} prediction + * @memberof google.cloud.aiplatform.v1.ExactMatchInstance + * @instance + */ + ExactMatchInstance.prototype.prediction = null; + + /** + * ExactMatchInstance reference. + * @member {string|null|undefined} reference + * @memberof google.cloud.aiplatform.v1.ExactMatchInstance + * @instance + */ + ExactMatchInstance.prototype.reference = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ExactMatchInstance _prediction. + * @member {"prediction"|undefined} _prediction + * @memberof google.cloud.aiplatform.v1.ExactMatchInstance + * @instance + */ + Object.defineProperty(ExactMatchInstance.prototype, "_prediction", { + get: $util.oneOfGetter($oneOfFields = ["prediction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * ExactMatchInstance _reference. + * @member {"reference"|undefined} _reference + * @memberof google.cloud.aiplatform.v1.ExactMatchInstance + * @instance + */ + Object.defineProperty(ExactMatchInstance.prototype, "_reference", { + get: $util.oneOfGetter($oneOfFields = ["reference"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ExactMatchInstance instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ExactMatchInstance + * @static + * @param {google.cloud.aiplatform.v1.IExactMatchInstance=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ExactMatchInstance} ExactMatchInstance instance + */ + ExactMatchInstance.create = function create(properties) { + return new ExactMatchInstance(properties); + }; + + /** + * Encodes the specified ExactMatchInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.ExactMatchInstance.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ExactMatchInstance + * @static + * @param {google.cloud.aiplatform.v1.IExactMatchInstance} message ExactMatchInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExactMatchInstance.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.prediction != null && Object.hasOwnProperty.call(message, "prediction")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.prediction); + if (message.reference != null && Object.hasOwnProperty.call(message, "reference")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.reference); + return writer; + }; + + /** + * Encodes the specified ExactMatchInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExactMatchInstance.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ExactMatchInstance + * @static + * @param {google.cloud.aiplatform.v1.IExactMatchInstance} message ExactMatchInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExactMatchInstance.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExactMatchInstance message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ExactMatchInstance + * @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.ExactMatchInstance} ExactMatchInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExactMatchInstance.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.ExactMatchInstance(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.prediction = reader.string(); + break; + } + case 2: { + message.reference = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExactMatchInstance message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ExactMatchInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ExactMatchInstance} ExactMatchInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExactMatchInstance.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExactMatchInstance message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ExactMatchInstance + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExactMatchInstance.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.prediction != null && message.hasOwnProperty("prediction")) { + properties._prediction = 1; + if (!$util.isString(message.prediction)) + return "prediction: string expected"; + } + if (message.reference != null && message.hasOwnProperty("reference")) { + properties._reference = 1; + if (!$util.isString(message.reference)) + return "reference: string expected"; + } + return null; + }; + + /** + * Creates an ExactMatchInstance message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ExactMatchInstance + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ExactMatchInstance} ExactMatchInstance + */ + ExactMatchInstance.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ExactMatchInstance) + return object; + var message = new $root.google.cloud.aiplatform.v1.ExactMatchInstance(); + if (object.prediction != null) + message.prediction = String(object.prediction); + if (object.reference != null) + message.reference = String(object.reference); + return message; + }; + + /** + * Creates a plain object from an ExactMatchInstance message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ExactMatchInstance + * @static + * @param {google.cloud.aiplatform.v1.ExactMatchInstance} message ExactMatchInstance + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExactMatchInstance.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.prediction != null && message.hasOwnProperty("prediction")) { + object.prediction = message.prediction; + if (options.oneofs) + object._prediction = "prediction"; + } + if (message.reference != null && message.hasOwnProperty("reference")) { + object.reference = message.reference; + if (options.oneofs) + object._reference = "reference"; + } + return object; + }; + + /** + * Converts this ExactMatchInstance to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ExactMatchInstance + * @instance + * @returns {Object.} JSON object + */ + ExactMatchInstance.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ExactMatchInstance + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ExactMatchInstance + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ExactMatchInstance.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ExactMatchInstance"; + }; + + return ExactMatchInstance; + })(); + + v1.ExactMatchSpec = (function() { + + /** + * Properties of an ExactMatchSpec. + * @memberof google.cloud.aiplatform.v1 + * @interface IExactMatchSpec + */ + + /** + * Constructs a new ExactMatchSpec. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents an ExactMatchSpec. + * @implements IExactMatchSpec + * @constructor + * @param {google.cloud.aiplatform.v1.IExactMatchSpec=} [properties] Properties to set + */ + function ExactMatchSpec(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new ExactMatchSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ExactMatchSpec + * @static + * @param {google.cloud.aiplatform.v1.IExactMatchSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ExactMatchSpec} ExactMatchSpec instance + */ + ExactMatchSpec.create = function create(properties) { + return new ExactMatchSpec(properties); + }; + + /** + * Encodes the specified ExactMatchSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.ExactMatchSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ExactMatchSpec + * @static + * @param {google.cloud.aiplatform.v1.IExactMatchSpec} message ExactMatchSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExactMatchSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified ExactMatchSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExactMatchSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ExactMatchSpec + * @static + * @param {google.cloud.aiplatform.v1.IExactMatchSpec} message ExactMatchSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExactMatchSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExactMatchSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ExactMatchSpec + * @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.ExactMatchSpec} ExactMatchSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExactMatchSpec.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.ExactMatchSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExactMatchSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ExactMatchSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ExactMatchSpec} ExactMatchSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExactMatchSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExactMatchSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ExactMatchSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExactMatchSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates an ExactMatchSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ExactMatchSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ExactMatchSpec} ExactMatchSpec + */ + ExactMatchSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ExactMatchSpec) + return object; + return new $root.google.cloud.aiplatform.v1.ExactMatchSpec(); + }; + + /** + * Creates a plain object from an ExactMatchSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ExactMatchSpec + * @static + * @param {google.cloud.aiplatform.v1.ExactMatchSpec} message ExactMatchSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExactMatchSpec.toObject = function toObject() { + return {}; + }; + + /** + * Converts this ExactMatchSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ExactMatchSpec + * @instance + * @returns {Object.} JSON object + */ + ExactMatchSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ExactMatchSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ExactMatchSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ExactMatchSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ExactMatchSpec"; + }; + + return ExactMatchSpec; + })(); + + v1.ExactMatchResults = (function() { + + /** + * Properties of an ExactMatchResults. + * @memberof google.cloud.aiplatform.v1 + * @interface IExactMatchResults + * @property {Array.|null} [exactMatchMetricValues] ExactMatchResults exactMatchMetricValues + */ + + /** + * Constructs a new ExactMatchResults. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents an ExactMatchResults. + * @implements IExactMatchResults + * @constructor + * @param {google.cloud.aiplatform.v1.IExactMatchResults=} [properties] Properties to set + */ + function ExactMatchResults(properties) { + this.exactMatchMetricValues = []; + 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]]; + } + + /** + * ExactMatchResults exactMatchMetricValues. + * @member {Array.} exactMatchMetricValues + * @memberof google.cloud.aiplatform.v1.ExactMatchResults + * @instance + */ + ExactMatchResults.prototype.exactMatchMetricValues = $util.emptyArray; + + /** + * Creates a new ExactMatchResults instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ExactMatchResults + * @static + * @param {google.cloud.aiplatform.v1.IExactMatchResults=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ExactMatchResults} ExactMatchResults instance + */ + ExactMatchResults.create = function create(properties) { + return new ExactMatchResults(properties); + }; + + /** + * Encodes the specified ExactMatchResults message. Does not implicitly {@link google.cloud.aiplatform.v1.ExactMatchResults.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ExactMatchResults + * @static + * @param {google.cloud.aiplatform.v1.IExactMatchResults} message ExactMatchResults message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExactMatchResults.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.exactMatchMetricValues != null && message.exactMatchMetricValues.length) + for (var i = 0; i < message.exactMatchMetricValues.length; ++i) + $root.google.cloud.aiplatform.v1.ExactMatchMetricValue.encode(message.exactMatchMetricValues[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ExactMatchResults message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExactMatchResults.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ExactMatchResults + * @static + * @param {google.cloud.aiplatform.v1.IExactMatchResults} message ExactMatchResults message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExactMatchResults.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExactMatchResults message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ExactMatchResults + * @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.ExactMatchResults} ExactMatchResults + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExactMatchResults.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.ExactMatchResults(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.exactMatchMetricValues && message.exactMatchMetricValues.length)) + message.exactMatchMetricValues = []; + message.exactMatchMetricValues.push($root.google.cloud.aiplatform.v1.ExactMatchMetricValue.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExactMatchResults message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ExactMatchResults + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ExactMatchResults} ExactMatchResults + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExactMatchResults.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExactMatchResults message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ExactMatchResults + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExactMatchResults.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.exactMatchMetricValues != null && message.hasOwnProperty("exactMatchMetricValues")) { + if (!Array.isArray(message.exactMatchMetricValues)) + return "exactMatchMetricValues: array expected"; + for (var i = 0; i < message.exactMatchMetricValues.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.ExactMatchMetricValue.verify(message.exactMatchMetricValues[i]); + if (error) + return "exactMatchMetricValues." + error; + } + } + return null; + }; + + /** + * Creates an ExactMatchResults message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ExactMatchResults + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ExactMatchResults} ExactMatchResults + */ + ExactMatchResults.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ExactMatchResults) + return object; + var message = new $root.google.cloud.aiplatform.v1.ExactMatchResults(); + if (object.exactMatchMetricValues) { + if (!Array.isArray(object.exactMatchMetricValues)) + throw TypeError(".google.cloud.aiplatform.v1.ExactMatchResults.exactMatchMetricValues: array expected"); + message.exactMatchMetricValues = []; + for (var i = 0; i < object.exactMatchMetricValues.length; ++i) { + if (typeof object.exactMatchMetricValues[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ExactMatchResults.exactMatchMetricValues: object expected"); + message.exactMatchMetricValues[i] = $root.google.cloud.aiplatform.v1.ExactMatchMetricValue.fromObject(object.exactMatchMetricValues[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an ExactMatchResults message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ExactMatchResults + * @static + * @param {google.cloud.aiplatform.v1.ExactMatchResults} message ExactMatchResults + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExactMatchResults.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.exactMatchMetricValues = []; + if (message.exactMatchMetricValues && message.exactMatchMetricValues.length) { + object.exactMatchMetricValues = []; + for (var j = 0; j < message.exactMatchMetricValues.length; ++j) + object.exactMatchMetricValues[j] = $root.google.cloud.aiplatform.v1.ExactMatchMetricValue.toObject(message.exactMatchMetricValues[j], options); + } + return object; + }; + + /** + * Converts this ExactMatchResults to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ExactMatchResults + * @instance + * @returns {Object.} JSON object + */ + ExactMatchResults.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ExactMatchResults + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ExactMatchResults + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ExactMatchResults.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ExactMatchResults"; + }; + + return ExactMatchResults; + })(); + + v1.ExactMatchMetricValue = (function() { + + /** + * Properties of an ExactMatchMetricValue. + * @memberof google.cloud.aiplatform.v1 + * @interface IExactMatchMetricValue + * @property {number|null} [score] ExactMatchMetricValue score + */ + + /** + * Constructs a new ExactMatchMetricValue. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents an ExactMatchMetricValue. + * @implements IExactMatchMetricValue + * @constructor + * @param {google.cloud.aiplatform.v1.IExactMatchMetricValue=} [properties] Properties to set + */ + function ExactMatchMetricValue(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]]; + } + + /** + * ExactMatchMetricValue score. + * @member {number|null|undefined} score + * @memberof google.cloud.aiplatform.v1.ExactMatchMetricValue + * @instance + */ + ExactMatchMetricValue.prototype.score = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ExactMatchMetricValue _score. + * @member {"score"|undefined} _score + * @memberof google.cloud.aiplatform.v1.ExactMatchMetricValue + * @instance + */ + Object.defineProperty(ExactMatchMetricValue.prototype, "_score", { + get: $util.oneOfGetter($oneOfFields = ["score"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ExactMatchMetricValue instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ExactMatchMetricValue + * @static + * @param {google.cloud.aiplatform.v1.IExactMatchMetricValue=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ExactMatchMetricValue} ExactMatchMetricValue instance + */ + ExactMatchMetricValue.create = function create(properties) { + return new ExactMatchMetricValue(properties); + }; + + /** + * Encodes the specified ExactMatchMetricValue message. Does not implicitly {@link google.cloud.aiplatform.v1.ExactMatchMetricValue.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ExactMatchMetricValue + * @static + * @param {google.cloud.aiplatform.v1.IExactMatchMetricValue} message ExactMatchMetricValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExactMatchMetricValue.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.score != null && Object.hasOwnProperty.call(message, "score")) + writer.uint32(/* id 1, wireType 5 =*/13).float(message.score); + return writer; + }; + + /** + * Encodes the specified ExactMatchMetricValue message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExactMatchMetricValue.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ExactMatchMetricValue + * @static + * @param {google.cloud.aiplatform.v1.IExactMatchMetricValue} message ExactMatchMetricValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExactMatchMetricValue.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExactMatchMetricValue message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ExactMatchMetricValue + * @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.ExactMatchMetricValue} ExactMatchMetricValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExactMatchMetricValue.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.ExactMatchMetricValue(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.score = reader.float(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExactMatchMetricValue message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ExactMatchMetricValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ExactMatchMetricValue} ExactMatchMetricValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExactMatchMetricValue.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExactMatchMetricValue message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ExactMatchMetricValue + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExactMatchMetricValue.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.score != null && message.hasOwnProperty("score")) { + properties._score = 1; + if (typeof message.score !== "number") + return "score: number expected"; + } + return null; + }; + + /** + * Creates an ExactMatchMetricValue message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ExactMatchMetricValue + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ExactMatchMetricValue} ExactMatchMetricValue + */ + ExactMatchMetricValue.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ExactMatchMetricValue) + return object; + var message = new $root.google.cloud.aiplatform.v1.ExactMatchMetricValue(); + if (object.score != null) + message.score = Number(object.score); + return message; + }; + + /** + * Creates a plain object from an ExactMatchMetricValue message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ExactMatchMetricValue + * @static + * @param {google.cloud.aiplatform.v1.ExactMatchMetricValue} message ExactMatchMetricValue + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExactMatchMetricValue.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.score != null && message.hasOwnProperty("score")) { + object.score = options.json && !isFinite(message.score) ? String(message.score) : message.score; + if (options.oneofs) + object._score = "score"; + } + return object; + }; + + /** + * Converts this ExactMatchMetricValue to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ExactMatchMetricValue + * @instance + * @returns {Object.} JSON object + */ + ExactMatchMetricValue.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ExactMatchMetricValue + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ExactMatchMetricValue + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ExactMatchMetricValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ExactMatchMetricValue"; + }; + + return ExactMatchMetricValue; + })(); + + v1.BleuInput = (function() { + + /** + * Properties of a BleuInput. + * @memberof google.cloud.aiplatform.v1 + * @interface IBleuInput + * @property {google.cloud.aiplatform.v1.IBleuSpec|null} [metricSpec] BleuInput metricSpec + * @property {Array.|null} [instances] BleuInput instances + */ + + /** + * Constructs a new BleuInput. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a BleuInput. + * @implements IBleuInput + * @constructor + * @param {google.cloud.aiplatform.v1.IBleuInput=} [properties] Properties to set + */ + function BleuInput(properties) { + this.instances = []; + 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]]; + } + + /** + * BleuInput metricSpec. + * @member {google.cloud.aiplatform.v1.IBleuSpec|null|undefined} metricSpec + * @memberof google.cloud.aiplatform.v1.BleuInput + * @instance + */ + BleuInput.prototype.metricSpec = null; + + /** + * BleuInput instances. + * @member {Array.} instances + * @memberof google.cloud.aiplatform.v1.BleuInput + * @instance + */ + BleuInput.prototype.instances = $util.emptyArray; + + /** + * Creates a new BleuInput instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.BleuInput + * @static + * @param {google.cloud.aiplatform.v1.IBleuInput=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.BleuInput} BleuInput instance + */ + BleuInput.create = function create(properties) { + return new BleuInput(properties); + }; + + /** + * Encodes the specified BleuInput message. Does not implicitly {@link google.cloud.aiplatform.v1.BleuInput.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.BleuInput + * @static + * @param {google.cloud.aiplatform.v1.IBleuInput} message BleuInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BleuInput.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.metricSpec != null && Object.hasOwnProperty.call(message, "metricSpec")) + $root.google.cloud.aiplatform.v1.BleuSpec.encode(message.metricSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.instances != null && message.instances.length) + for (var i = 0; i < message.instances.length; ++i) + $root.google.cloud.aiplatform.v1.BleuInstance.encode(message.instances[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified BleuInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BleuInput.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.BleuInput + * @static + * @param {google.cloud.aiplatform.v1.IBleuInput} message BleuInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BleuInput.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BleuInput message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.BleuInput + * @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.BleuInput} BleuInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BleuInput.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.BleuInput(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.metricSpec = $root.google.cloud.aiplatform.v1.BleuSpec.decode(reader, reader.uint32()); + break; + } + case 2: { + if (!(message.instances && message.instances.length)) + message.instances = []; + message.instances.push($root.google.cloud.aiplatform.v1.BleuInstance.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BleuInput message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.BleuInput + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.BleuInput} BleuInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BleuInput.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BleuInput message. + * @function verify + * @memberof google.cloud.aiplatform.v1.BleuInput + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BleuInput.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) { + var error = $root.google.cloud.aiplatform.v1.BleuSpec.verify(message.metricSpec); + if (error) + return "metricSpec." + error; + } + if (message.instances != null && message.hasOwnProperty("instances")) { + if (!Array.isArray(message.instances)) + return "instances: array expected"; + for (var i = 0; i < message.instances.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.BleuInstance.verify(message.instances[i]); + if (error) + return "instances." + error; + } + } + return null; + }; + + /** + * Creates a BleuInput message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.BleuInput + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.BleuInput} BleuInput + */ + BleuInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.BleuInput) + return object; + var message = new $root.google.cloud.aiplatform.v1.BleuInput(); + if (object.metricSpec != null) { + if (typeof object.metricSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.BleuInput.metricSpec: object expected"); + message.metricSpec = $root.google.cloud.aiplatform.v1.BleuSpec.fromObject(object.metricSpec); + } + if (object.instances) { + if (!Array.isArray(object.instances)) + throw TypeError(".google.cloud.aiplatform.v1.BleuInput.instances: array expected"); + message.instances = []; + for (var i = 0; i < object.instances.length; ++i) { + if (typeof object.instances[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.BleuInput.instances: object expected"); + message.instances[i] = $root.google.cloud.aiplatform.v1.BleuInstance.fromObject(object.instances[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a BleuInput message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.BleuInput + * @static + * @param {google.cloud.aiplatform.v1.BleuInput} message BleuInput + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BleuInput.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.instances = []; + if (options.defaults) + object.metricSpec = null; + if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) + object.metricSpec = $root.google.cloud.aiplatform.v1.BleuSpec.toObject(message.metricSpec, options); + if (message.instances && message.instances.length) { + object.instances = []; + for (var j = 0; j < message.instances.length; ++j) + object.instances[j] = $root.google.cloud.aiplatform.v1.BleuInstance.toObject(message.instances[j], options); + } + return object; + }; + + /** + * Converts this BleuInput to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.BleuInput + * @instance + * @returns {Object.} JSON object + */ + BleuInput.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for BleuInput + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.BleuInput + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BleuInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.BleuInput"; + }; + + return BleuInput; + })(); + + v1.BleuInstance = (function() { + + /** + * Properties of a BleuInstance. + * @memberof google.cloud.aiplatform.v1 + * @interface IBleuInstance + * @property {string|null} [prediction] BleuInstance prediction + * @property {string|null} [reference] BleuInstance reference + */ + + /** + * Constructs a new BleuInstance. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a BleuInstance. + * @implements IBleuInstance + * @constructor + * @param {google.cloud.aiplatform.v1.IBleuInstance=} [properties] Properties to set + */ + function BleuInstance(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]]; + } + + /** + * BleuInstance prediction. + * @member {string|null|undefined} prediction + * @memberof google.cloud.aiplatform.v1.BleuInstance + * @instance + */ + BleuInstance.prototype.prediction = null; + + /** + * BleuInstance reference. + * @member {string|null|undefined} reference + * @memberof google.cloud.aiplatform.v1.BleuInstance + * @instance + */ + BleuInstance.prototype.reference = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * BleuInstance _prediction. + * @member {"prediction"|undefined} _prediction + * @memberof google.cloud.aiplatform.v1.BleuInstance + * @instance + */ + Object.defineProperty(BleuInstance.prototype, "_prediction", { + get: $util.oneOfGetter($oneOfFields = ["prediction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * BleuInstance _reference. + * @member {"reference"|undefined} _reference + * @memberof google.cloud.aiplatform.v1.BleuInstance + * @instance + */ + Object.defineProperty(BleuInstance.prototype, "_reference", { + get: $util.oneOfGetter($oneOfFields = ["reference"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new BleuInstance instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.BleuInstance + * @static + * @param {google.cloud.aiplatform.v1.IBleuInstance=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.BleuInstance} BleuInstance instance + */ + BleuInstance.create = function create(properties) { + return new BleuInstance(properties); + }; + + /** + * Encodes the specified BleuInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.BleuInstance.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.BleuInstance + * @static + * @param {google.cloud.aiplatform.v1.IBleuInstance} message BleuInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BleuInstance.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.prediction != null && Object.hasOwnProperty.call(message, "prediction")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.prediction); + if (message.reference != null && Object.hasOwnProperty.call(message, "reference")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.reference); + return writer; + }; + + /** + * Encodes the specified BleuInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BleuInstance.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.BleuInstance + * @static + * @param {google.cloud.aiplatform.v1.IBleuInstance} message BleuInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BleuInstance.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BleuInstance message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.BleuInstance + * @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.BleuInstance} BleuInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BleuInstance.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.BleuInstance(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.prediction = reader.string(); + break; + } + case 2: { + message.reference = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BleuInstance message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.BleuInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.BleuInstance} BleuInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BleuInstance.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BleuInstance message. + * @function verify + * @memberof google.cloud.aiplatform.v1.BleuInstance + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BleuInstance.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.prediction != null && message.hasOwnProperty("prediction")) { + properties._prediction = 1; + if (!$util.isString(message.prediction)) + return "prediction: string expected"; + } + if (message.reference != null && message.hasOwnProperty("reference")) { + properties._reference = 1; + if (!$util.isString(message.reference)) + return "reference: string expected"; + } + return null; + }; + + /** + * Creates a BleuInstance message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.BleuInstance + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.BleuInstance} BleuInstance + */ + BleuInstance.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.BleuInstance) + return object; + var message = new $root.google.cloud.aiplatform.v1.BleuInstance(); + if (object.prediction != null) + message.prediction = String(object.prediction); + if (object.reference != null) + message.reference = String(object.reference); + return message; + }; + + /** + * Creates a plain object from a BleuInstance message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.BleuInstance + * @static + * @param {google.cloud.aiplatform.v1.BleuInstance} message BleuInstance + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BleuInstance.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.prediction != null && message.hasOwnProperty("prediction")) { + object.prediction = message.prediction; + if (options.oneofs) + object._prediction = "prediction"; + } + if (message.reference != null && message.hasOwnProperty("reference")) { + object.reference = message.reference; + if (options.oneofs) + object._reference = "reference"; + } + return object; + }; + + /** + * Converts this BleuInstance to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.BleuInstance + * @instance + * @returns {Object.} JSON object + */ + BleuInstance.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for BleuInstance + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.BleuInstance + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BleuInstance.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.BleuInstance"; + }; + + return BleuInstance; + })(); + + v1.BleuSpec = (function() { + + /** + * Properties of a BleuSpec. + * @memberof google.cloud.aiplatform.v1 + * @interface IBleuSpec + * @property {boolean|null} [useEffectiveOrder] BleuSpec useEffectiveOrder + */ + + /** + * Constructs a new BleuSpec. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a BleuSpec. + * @implements IBleuSpec + * @constructor + * @param {google.cloud.aiplatform.v1.IBleuSpec=} [properties] Properties to set + */ + function BleuSpec(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]]; + } + + /** + * BleuSpec useEffectiveOrder. + * @member {boolean} useEffectiveOrder + * @memberof google.cloud.aiplatform.v1.BleuSpec + * @instance + */ + BleuSpec.prototype.useEffectiveOrder = false; + + /** + * Creates a new BleuSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.BleuSpec + * @static + * @param {google.cloud.aiplatform.v1.IBleuSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.BleuSpec} BleuSpec instance + */ + BleuSpec.create = function create(properties) { + return new BleuSpec(properties); + }; + + /** + * Encodes the specified BleuSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.BleuSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.BleuSpec + * @static + * @param {google.cloud.aiplatform.v1.IBleuSpec} message BleuSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BleuSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.useEffectiveOrder != null && Object.hasOwnProperty.call(message, "useEffectiveOrder")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.useEffectiveOrder); + return writer; + }; + + /** + * Encodes the specified BleuSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BleuSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.BleuSpec + * @static + * @param {google.cloud.aiplatform.v1.IBleuSpec} message BleuSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BleuSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BleuSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.BleuSpec + * @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.BleuSpec} BleuSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BleuSpec.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.BleuSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.useEffectiveOrder = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BleuSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.BleuSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.BleuSpec} BleuSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BleuSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BleuSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1.BleuSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BleuSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.useEffectiveOrder != null && message.hasOwnProperty("useEffectiveOrder")) + if (typeof message.useEffectiveOrder !== "boolean") + return "useEffectiveOrder: boolean expected"; + return null; + }; + + /** + * Creates a BleuSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.BleuSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.BleuSpec} BleuSpec + */ + BleuSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.BleuSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1.BleuSpec(); + if (object.useEffectiveOrder != null) + message.useEffectiveOrder = Boolean(object.useEffectiveOrder); + return message; + }; + + /** + * Creates a plain object from a BleuSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.BleuSpec + * @static + * @param {google.cloud.aiplatform.v1.BleuSpec} message BleuSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BleuSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.useEffectiveOrder = false; + if (message.useEffectiveOrder != null && message.hasOwnProperty("useEffectiveOrder")) + object.useEffectiveOrder = message.useEffectiveOrder; + return object; + }; + + /** + * Converts this BleuSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.BleuSpec + * @instance + * @returns {Object.} JSON object + */ + BleuSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for BleuSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.BleuSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BleuSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.BleuSpec"; + }; + + return BleuSpec; + })(); + + v1.BleuResults = (function() { + + /** + * Properties of a BleuResults. + * @memberof google.cloud.aiplatform.v1 + * @interface IBleuResults + * @property {Array.|null} [bleuMetricValues] BleuResults bleuMetricValues + */ + + /** + * Constructs a new BleuResults. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a BleuResults. + * @implements IBleuResults + * @constructor + * @param {google.cloud.aiplatform.v1.IBleuResults=} [properties] Properties to set + */ + function BleuResults(properties) { + this.bleuMetricValues = []; + 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]]; + } + + /** + * BleuResults bleuMetricValues. + * @member {Array.} bleuMetricValues + * @memberof google.cloud.aiplatform.v1.BleuResults + * @instance + */ + BleuResults.prototype.bleuMetricValues = $util.emptyArray; + + /** + * Creates a new BleuResults instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.BleuResults + * @static + * @param {google.cloud.aiplatform.v1.IBleuResults=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.BleuResults} BleuResults instance + */ + BleuResults.create = function create(properties) { + return new BleuResults(properties); + }; + + /** + * Encodes the specified BleuResults message. Does not implicitly {@link google.cloud.aiplatform.v1.BleuResults.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.BleuResults + * @static + * @param {google.cloud.aiplatform.v1.IBleuResults} message BleuResults message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BleuResults.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.bleuMetricValues != null && message.bleuMetricValues.length) + for (var i = 0; i < message.bleuMetricValues.length; ++i) + $root.google.cloud.aiplatform.v1.BleuMetricValue.encode(message.bleuMetricValues[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified BleuResults message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BleuResults.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.BleuResults + * @static + * @param {google.cloud.aiplatform.v1.IBleuResults} message BleuResults message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BleuResults.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BleuResults message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.BleuResults + * @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.BleuResults} BleuResults + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BleuResults.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.BleuResults(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.bleuMetricValues && message.bleuMetricValues.length)) + message.bleuMetricValues = []; + message.bleuMetricValues.push($root.google.cloud.aiplatform.v1.BleuMetricValue.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BleuResults message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.BleuResults + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.BleuResults} BleuResults + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BleuResults.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BleuResults message. + * @function verify + * @memberof google.cloud.aiplatform.v1.BleuResults + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BleuResults.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.bleuMetricValues != null && message.hasOwnProperty("bleuMetricValues")) { + if (!Array.isArray(message.bleuMetricValues)) + return "bleuMetricValues: array expected"; + for (var i = 0; i < message.bleuMetricValues.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.BleuMetricValue.verify(message.bleuMetricValues[i]); + if (error) + return "bleuMetricValues." + error; + } + } + return null; + }; + + /** + * Creates a BleuResults message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.BleuResults + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.BleuResults} BleuResults + */ + BleuResults.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.BleuResults) + return object; + var message = new $root.google.cloud.aiplatform.v1.BleuResults(); + if (object.bleuMetricValues) { + if (!Array.isArray(object.bleuMetricValues)) + throw TypeError(".google.cloud.aiplatform.v1.BleuResults.bleuMetricValues: array expected"); + message.bleuMetricValues = []; + for (var i = 0; i < object.bleuMetricValues.length; ++i) { + if (typeof object.bleuMetricValues[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.BleuResults.bleuMetricValues: object expected"); + message.bleuMetricValues[i] = $root.google.cloud.aiplatform.v1.BleuMetricValue.fromObject(object.bleuMetricValues[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a BleuResults message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.BleuResults + * @static + * @param {google.cloud.aiplatform.v1.BleuResults} message BleuResults + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BleuResults.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.bleuMetricValues = []; + if (message.bleuMetricValues && message.bleuMetricValues.length) { + object.bleuMetricValues = []; + for (var j = 0; j < message.bleuMetricValues.length; ++j) + object.bleuMetricValues[j] = $root.google.cloud.aiplatform.v1.BleuMetricValue.toObject(message.bleuMetricValues[j], options); + } + return object; + }; + + /** + * Converts this BleuResults to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.BleuResults + * @instance + * @returns {Object.} JSON object + */ + BleuResults.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for BleuResults + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.BleuResults + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BleuResults.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.BleuResults"; + }; + + return BleuResults; + })(); + + v1.BleuMetricValue = (function() { + + /** + * Properties of a BleuMetricValue. + * @memberof google.cloud.aiplatform.v1 + * @interface IBleuMetricValue + * @property {number|null} [score] BleuMetricValue score + */ + + /** + * Constructs a new BleuMetricValue. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a BleuMetricValue. + * @implements IBleuMetricValue + * @constructor + * @param {google.cloud.aiplatform.v1.IBleuMetricValue=} [properties] Properties to set + */ + function BleuMetricValue(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]]; + } + + /** + * BleuMetricValue score. + * @member {number|null|undefined} score + * @memberof google.cloud.aiplatform.v1.BleuMetricValue + * @instance + */ + BleuMetricValue.prototype.score = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * BleuMetricValue _score. + * @member {"score"|undefined} _score + * @memberof google.cloud.aiplatform.v1.BleuMetricValue + * @instance + */ + Object.defineProperty(BleuMetricValue.prototype, "_score", { + get: $util.oneOfGetter($oneOfFields = ["score"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new BleuMetricValue instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.BleuMetricValue + * @static + * @param {google.cloud.aiplatform.v1.IBleuMetricValue=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.BleuMetricValue} BleuMetricValue instance + */ + BleuMetricValue.create = function create(properties) { + return new BleuMetricValue(properties); + }; + + /** + * Encodes the specified BleuMetricValue message. Does not implicitly {@link google.cloud.aiplatform.v1.BleuMetricValue.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.BleuMetricValue + * @static + * @param {google.cloud.aiplatform.v1.IBleuMetricValue} message BleuMetricValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BleuMetricValue.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.score != null && Object.hasOwnProperty.call(message, "score")) + writer.uint32(/* id 1, wireType 5 =*/13).float(message.score); + return writer; + }; + + /** + * Encodes the specified BleuMetricValue message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BleuMetricValue.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.BleuMetricValue + * @static + * @param {google.cloud.aiplatform.v1.IBleuMetricValue} message BleuMetricValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BleuMetricValue.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BleuMetricValue message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.BleuMetricValue + * @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.BleuMetricValue} BleuMetricValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BleuMetricValue.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.BleuMetricValue(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.score = reader.float(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BleuMetricValue message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.BleuMetricValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.BleuMetricValue} BleuMetricValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BleuMetricValue.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BleuMetricValue message. + * @function verify + * @memberof google.cloud.aiplatform.v1.BleuMetricValue + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BleuMetricValue.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.score != null && message.hasOwnProperty("score")) { + properties._score = 1; + if (typeof message.score !== "number") + return "score: number expected"; + } + return null; + }; + + /** + * Creates a BleuMetricValue message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.BleuMetricValue + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.BleuMetricValue} BleuMetricValue + */ + BleuMetricValue.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.BleuMetricValue) + return object; + var message = new $root.google.cloud.aiplatform.v1.BleuMetricValue(); + if (object.score != null) + message.score = Number(object.score); + return message; + }; + + /** + * Creates a plain object from a BleuMetricValue message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.BleuMetricValue + * @static + * @param {google.cloud.aiplatform.v1.BleuMetricValue} message BleuMetricValue + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BleuMetricValue.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.score != null && message.hasOwnProperty("score")) { + object.score = options.json && !isFinite(message.score) ? String(message.score) : message.score; + if (options.oneofs) + object._score = "score"; + } + return object; + }; + + /** + * Converts this BleuMetricValue to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.BleuMetricValue + * @instance + * @returns {Object.} JSON object + */ + BleuMetricValue.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for BleuMetricValue + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.BleuMetricValue + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BleuMetricValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.BleuMetricValue"; + }; + + return BleuMetricValue; + })(); + + v1.RougeInput = (function() { + + /** + * Properties of a RougeInput. + * @memberof google.cloud.aiplatform.v1 + * @interface IRougeInput + * @property {google.cloud.aiplatform.v1.IRougeSpec|null} [metricSpec] RougeInput metricSpec + * @property {Array.|null} [instances] RougeInput instances + */ + + /** + * Constructs a new RougeInput. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a RougeInput. + * @implements IRougeInput + * @constructor + * @param {google.cloud.aiplatform.v1.IRougeInput=} [properties] Properties to set + */ + function RougeInput(properties) { + this.instances = []; + 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]]; + } + + /** + * RougeInput metricSpec. + * @member {google.cloud.aiplatform.v1.IRougeSpec|null|undefined} metricSpec + * @memberof google.cloud.aiplatform.v1.RougeInput + * @instance + */ + RougeInput.prototype.metricSpec = null; + + /** + * RougeInput instances. + * @member {Array.} instances + * @memberof google.cloud.aiplatform.v1.RougeInput + * @instance + */ + RougeInput.prototype.instances = $util.emptyArray; + + /** + * Creates a new RougeInput instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.RougeInput + * @static + * @param {google.cloud.aiplatform.v1.IRougeInput=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.RougeInput} RougeInput instance + */ + RougeInput.create = function create(properties) { + return new RougeInput(properties); + }; + + /** + * Encodes the specified RougeInput message. Does not implicitly {@link google.cloud.aiplatform.v1.RougeInput.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.RougeInput + * @static + * @param {google.cloud.aiplatform.v1.IRougeInput} message RougeInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RougeInput.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.metricSpec != null && Object.hasOwnProperty.call(message, "metricSpec")) + $root.google.cloud.aiplatform.v1.RougeSpec.encode(message.metricSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.instances != null && message.instances.length) + for (var i = 0; i < message.instances.length; ++i) + $root.google.cloud.aiplatform.v1.RougeInstance.encode(message.instances[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified RougeInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.RougeInput.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.RougeInput + * @static + * @param {google.cloud.aiplatform.v1.IRougeInput} message RougeInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RougeInput.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RougeInput message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.RougeInput + * @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.RougeInput} RougeInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RougeInput.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.RougeInput(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.metricSpec = $root.google.cloud.aiplatform.v1.RougeSpec.decode(reader, reader.uint32()); + break; + } + case 2: { + if (!(message.instances && message.instances.length)) + message.instances = []; + message.instances.push($root.google.cloud.aiplatform.v1.RougeInstance.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RougeInput message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.RougeInput + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.RougeInput} RougeInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RougeInput.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RougeInput message. + * @function verify + * @memberof google.cloud.aiplatform.v1.RougeInput + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RougeInput.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) { + var error = $root.google.cloud.aiplatform.v1.RougeSpec.verify(message.metricSpec); + if (error) + return "metricSpec." + error; + } + if (message.instances != null && message.hasOwnProperty("instances")) { + if (!Array.isArray(message.instances)) + return "instances: array expected"; + for (var i = 0; i < message.instances.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.RougeInstance.verify(message.instances[i]); + if (error) + return "instances." + error; + } + } + return null; + }; + + /** + * Creates a RougeInput message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.RougeInput + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.RougeInput} RougeInput + */ + RougeInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.RougeInput) + return object; + var message = new $root.google.cloud.aiplatform.v1.RougeInput(); + if (object.metricSpec != null) { + if (typeof object.metricSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.RougeInput.metricSpec: object expected"); + message.metricSpec = $root.google.cloud.aiplatform.v1.RougeSpec.fromObject(object.metricSpec); + } + if (object.instances) { + if (!Array.isArray(object.instances)) + throw TypeError(".google.cloud.aiplatform.v1.RougeInput.instances: array expected"); + message.instances = []; + for (var i = 0; i < object.instances.length; ++i) { + if (typeof object.instances[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.RougeInput.instances: object expected"); + message.instances[i] = $root.google.cloud.aiplatform.v1.RougeInstance.fromObject(object.instances[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a RougeInput message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.RougeInput + * @static + * @param {google.cloud.aiplatform.v1.RougeInput} message RougeInput + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RougeInput.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.instances = []; + if (options.defaults) + object.metricSpec = null; + if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) + object.metricSpec = $root.google.cloud.aiplatform.v1.RougeSpec.toObject(message.metricSpec, options); + if (message.instances && message.instances.length) { + object.instances = []; + for (var j = 0; j < message.instances.length; ++j) + object.instances[j] = $root.google.cloud.aiplatform.v1.RougeInstance.toObject(message.instances[j], options); + } + return object; + }; + + /** + * Converts this RougeInput to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.RougeInput + * @instance + * @returns {Object.} JSON object + */ + RougeInput.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RougeInput + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.RougeInput + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RougeInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.RougeInput"; + }; + + return RougeInput; + })(); + + v1.RougeInstance = (function() { + + /** + * Properties of a RougeInstance. + * @memberof google.cloud.aiplatform.v1 + * @interface IRougeInstance + * @property {string|null} [prediction] RougeInstance prediction + * @property {string|null} [reference] RougeInstance reference + */ + + /** + * Constructs a new RougeInstance. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a RougeInstance. + * @implements IRougeInstance + * @constructor + * @param {google.cloud.aiplatform.v1.IRougeInstance=} [properties] Properties to set + */ + function RougeInstance(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]]; + } + + /** + * RougeInstance prediction. + * @member {string|null|undefined} prediction + * @memberof google.cloud.aiplatform.v1.RougeInstance + * @instance + */ + RougeInstance.prototype.prediction = null; + + /** + * RougeInstance reference. + * @member {string|null|undefined} reference + * @memberof google.cloud.aiplatform.v1.RougeInstance + * @instance + */ + RougeInstance.prototype.reference = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * RougeInstance _prediction. + * @member {"prediction"|undefined} _prediction + * @memberof google.cloud.aiplatform.v1.RougeInstance + * @instance + */ + Object.defineProperty(RougeInstance.prototype, "_prediction", { + get: $util.oneOfGetter($oneOfFields = ["prediction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * RougeInstance _reference. + * @member {"reference"|undefined} _reference + * @memberof google.cloud.aiplatform.v1.RougeInstance + * @instance + */ + Object.defineProperty(RougeInstance.prototype, "_reference", { + get: $util.oneOfGetter($oneOfFields = ["reference"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new RougeInstance instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.RougeInstance + * @static + * @param {google.cloud.aiplatform.v1.IRougeInstance=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.RougeInstance} RougeInstance instance + */ + RougeInstance.create = function create(properties) { + return new RougeInstance(properties); + }; + + /** + * Encodes the specified RougeInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.RougeInstance.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.RougeInstance + * @static + * @param {google.cloud.aiplatform.v1.IRougeInstance} message RougeInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RougeInstance.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.prediction != null && Object.hasOwnProperty.call(message, "prediction")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.prediction); + if (message.reference != null && Object.hasOwnProperty.call(message, "reference")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.reference); + return writer; + }; + + /** + * Encodes the specified RougeInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.RougeInstance.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.RougeInstance + * @static + * @param {google.cloud.aiplatform.v1.IRougeInstance} message RougeInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RougeInstance.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RougeInstance message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.RougeInstance + * @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.RougeInstance} RougeInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RougeInstance.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.RougeInstance(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.prediction = reader.string(); + break; + } + case 2: { + message.reference = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RougeInstance message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.RougeInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.RougeInstance} RougeInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RougeInstance.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RougeInstance message. + * @function verify + * @memberof google.cloud.aiplatform.v1.RougeInstance + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RougeInstance.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.prediction != null && message.hasOwnProperty("prediction")) { + properties._prediction = 1; + if (!$util.isString(message.prediction)) + return "prediction: string expected"; + } + if (message.reference != null && message.hasOwnProperty("reference")) { + properties._reference = 1; + if (!$util.isString(message.reference)) + return "reference: string expected"; + } + return null; + }; + + /** + * Creates a RougeInstance message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.RougeInstance + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.RougeInstance} RougeInstance + */ + RougeInstance.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.RougeInstance) + return object; + var message = new $root.google.cloud.aiplatform.v1.RougeInstance(); + if (object.prediction != null) + message.prediction = String(object.prediction); + if (object.reference != null) + message.reference = String(object.reference); + return message; + }; + + /** + * Creates a plain object from a RougeInstance message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.RougeInstance + * @static + * @param {google.cloud.aiplatform.v1.RougeInstance} message RougeInstance + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RougeInstance.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.prediction != null && message.hasOwnProperty("prediction")) { + object.prediction = message.prediction; + if (options.oneofs) + object._prediction = "prediction"; + } + if (message.reference != null && message.hasOwnProperty("reference")) { + object.reference = message.reference; + if (options.oneofs) + object._reference = "reference"; + } + return object; + }; + + /** + * Converts this RougeInstance to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.RougeInstance + * @instance + * @returns {Object.} JSON object + */ + RougeInstance.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RougeInstance + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.RougeInstance + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RougeInstance.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.RougeInstance"; + }; + + return RougeInstance; + })(); + + v1.RougeSpec = (function() { + + /** + * Properties of a RougeSpec. + * @memberof google.cloud.aiplatform.v1 + * @interface IRougeSpec + * @property {string|null} [rougeType] RougeSpec rougeType + * @property {boolean|null} [useStemmer] RougeSpec useStemmer + * @property {boolean|null} [splitSummaries] RougeSpec splitSummaries + */ + + /** + * Constructs a new RougeSpec. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a RougeSpec. + * @implements IRougeSpec + * @constructor + * @param {google.cloud.aiplatform.v1.IRougeSpec=} [properties] Properties to set + */ + function RougeSpec(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]]; + } + + /** + * RougeSpec rougeType. + * @member {string} rougeType + * @memberof google.cloud.aiplatform.v1.RougeSpec + * @instance + */ + RougeSpec.prototype.rougeType = ""; + + /** + * RougeSpec useStemmer. + * @member {boolean} useStemmer + * @memberof google.cloud.aiplatform.v1.RougeSpec + * @instance + */ + RougeSpec.prototype.useStemmer = false; + + /** + * RougeSpec splitSummaries. + * @member {boolean} splitSummaries + * @memberof google.cloud.aiplatform.v1.RougeSpec + * @instance + */ + RougeSpec.prototype.splitSummaries = false; + + /** + * Creates a new RougeSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.RougeSpec + * @static + * @param {google.cloud.aiplatform.v1.IRougeSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.RougeSpec} RougeSpec instance + */ + RougeSpec.create = function create(properties) { + return new RougeSpec(properties); + }; + + /** + * Encodes the specified RougeSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.RougeSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.RougeSpec + * @static + * @param {google.cloud.aiplatform.v1.IRougeSpec} message RougeSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RougeSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.rougeType != null && Object.hasOwnProperty.call(message, "rougeType")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.rougeType); + if (message.useStemmer != null && Object.hasOwnProperty.call(message, "useStemmer")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.useStemmer); + if (message.splitSummaries != null && Object.hasOwnProperty.call(message, "splitSummaries")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.splitSummaries); + return writer; + }; + + /** + * Encodes the specified RougeSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.RougeSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.RougeSpec + * @static + * @param {google.cloud.aiplatform.v1.IRougeSpec} message RougeSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RougeSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RougeSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.RougeSpec + * @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.RougeSpec} RougeSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RougeSpec.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.RougeSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.rougeType = reader.string(); + break; + } + case 2: { + message.useStemmer = reader.bool(); + break; + } + case 3: { + message.splitSummaries = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RougeSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.RougeSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.RougeSpec} RougeSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RougeSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RougeSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1.RougeSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RougeSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.rougeType != null && message.hasOwnProperty("rougeType")) + if (!$util.isString(message.rougeType)) + return "rougeType: string expected"; + if (message.useStemmer != null && message.hasOwnProperty("useStemmer")) + if (typeof message.useStemmer !== "boolean") + return "useStemmer: boolean expected"; + if (message.splitSummaries != null && message.hasOwnProperty("splitSummaries")) + if (typeof message.splitSummaries !== "boolean") + return "splitSummaries: boolean expected"; + return null; + }; + + /** + * Creates a RougeSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.RougeSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.RougeSpec} RougeSpec + */ + RougeSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.RougeSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1.RougeSpec(); + if (object.rougeType != null) + message.rougeType = String(object.rougeType); + if (object.useStemmer != null) + message.useStemmer = Boolean(object.useStemmer); + if (object.splitSummaries != null) + message.splitSummaries = Boolean(object.splitSummaries); + return message; + }; + + /** + * Creates a plain object from a RougeSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.RougeSpec + * @static + * @param {google.cloud.aiplatform.v1.RougeSpec} message RougeSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RougeSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.rougeType = ""; + object.useStemmer = false; + object.splitSummaries = false; + } + if (message.rougeType != null && message.hasOwnProperty("rougeType")) + object.rougeType = message.rougeType; + if (message.useStemmer != null && message.hasOwnProperty("useStemmer")) + object.useStemmer = message.useStemmer; + if (message.splitSummaries != null && message.hasOwnProperty("splitSummaries")) + object.splitSummaries = message.splitSummaries; + return object; + }; + + /** + * Converts this RougeSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.RougeSpec + * @instance + * @returns {Object.} JSON object + */ + RougeSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RougeSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.RougeSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RougeSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.RougeSpec"; + }; + + return RougeSpec; + })(); + + v1.RougeResults = (function() { + + /** + * Properties of a RougeResults. + * @memberof google.cloud.aiplatform.v1 + * @interface IRougeResults + * @property {Array.|null} [rougeMetricValues] RougeResults rougeMetricValues + */ + + /** + * Constructs a new RougeResults. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a RougeResults. + * @implements IRougeResults + * @constructor + * @param {google.cloud.aiplatform.v1.IRougeResults=} [properties] Properties to set + */ + function RougeResults(properties) { + this.rougeMetricValues = []; + 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]]; + } + + /** + * RougeResults rougeMetricValues. + * @member {Array.} rougeMetricValues + * @memberof google.cloud.aiplatform.v1.RougeResults + * @instance + */ + RougeResults.prototype.rougeMetricValues = $util.emptyArray; + + /** + * Creates a new RougeResults instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.RougeResults + * @static + * @param {google.cloud.aiplatform.v1.IRougeResults=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.RougeResults} RougeResults instance + */ + RougeResults.create = function create(properties) { + return new RougeResults(properties); + }; + + /** + * Encodes the specified RougeResults message. Does not implicitly {@link google.cloud.aiplatform.v1.RougeResults.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.RougeResults + * @static + * @param {google.cloud.aiplatform.v1.IRougeResults} message RougeResults message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RougeResults.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.rougeMetricValues != null && message.rougeMetricValues.length) + for (var i = 0; i < message.rougeMetricValues.length; ++i) + $root.google.cloud.aiplatform.v1.RougeMetricValue.encode(message.rougeMetricValues[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified RougeResults message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.RougeResults.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.RougeResults + * @static + * @param {google.cloud.aiplatform.v1.IRougeResults} message RougeResults message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RougeResults.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RougeResults message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.RougeResults + * @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.RougeResults} RougeResults + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RougeResults.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.RougeResults(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.rougeMetricValues && message.rougeMetricValues.length)) + message.rougeMetricValues = []; + message.rougeMetricValues.push($root.google.cloud.aiplatform.v1.RougeMetricValue.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RougeResults message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.RougeResults + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.RougeResults} RougeResults + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RougeResults.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RougeResults message. + * @function verify + * @memberof google.cloud.aiplatform.v1.RougeResults + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RougeResults.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.rougeMetricValues != null && message.hasOwnProperty("rougeMetricValues")) { + if (!Array.isArray(message.rougeMetricValues)) + return "rougeMetricValues: array expected"; + for (var i = 0; i < message.rougeMetricValues.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.RougeMetricValue.verify(message.rougeMetricValues[i]); + if (error) + return "rougeMetricValues." + error; + } + } + return null; + }; + + /** + * Creates a RougeResults message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.RougeResults + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.RougeResults} RougeResults + */ + RougeResults.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.RougeResults) + return object; + var message = new $root.google.cloud.aiplatform.v1.RougeResults(); + if (object.rougeMetricValues) { + if (!Array.isArray(object.rougeMetricValues)) + throw TypeError(".google.cloud.aiplatform.v1.RougeResults.rougeMetricValues: array expected"); + message.rougeMetricValues = []; + for (var i = 0; i < object.rougeMetricValues.length; ++i) { + if (typeof object.rougeMetricValues[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.RougeResults.rougeMetricValues: object expected"); + message.rougeMetricValues[i] = $root.google.cloud.aiplatform.v1.RougeMetricValue.fromObject(object.rougeMetricValues[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a RougeResults message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.RougeResults + * @static + * @param {google.cloud.aiplatform.v1.RougeResults} message RougeResults + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RougeResults.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.rougeMetricValues = []; + if (message.rougeMetricValues && message.rougeMetricValues.length) { + object.rougeMetricValues = []; + for (var j = 0; j < message.rougeMetricValues.length; ++j) + object.rougeMetricValues[j] = $root.google.cloud.aiplatform.v1.RougeMetricValue.toObject(message.rougeMetricValues[j], options); + } + return object; + }; + + /** + * Converts this RougeResults to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.RougeResults + * @instance + * @returns {Object.} JSON object + */ + RougeResults.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RougeResults + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.RougeResults + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RougeResults.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.RougeResults"; + }; + + return RougeResults; + })(); + + v1.RougeMetricValue = (function() { + + /** + * Properties of a RougeMetricValue. + * @memberof google.cloud.aiplatform.v1 + * @interface IRougeMetricValue + * @property {number|null} [score] RougeMetricValue score + */ + + /** + * Constructs a new RougeMetricValue. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a RougeMetricValue. + * @implements IRougeMetricValue + * @constructor + * @param {google.cloud.aiplatform.v1.IRougeMetricValue=} [properties] Properties to set + */ + function RougeMetricValue(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]]; + } + + /** + * RougeMetricValue score. + * @member {number|null|undefined} score + * @memberof google.cloud.aiplatform.v1.RougeMetricValue + * @instance + */ + RougeMetricValue.prototype.score = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * RougeMetricValue _score. + * @member {"score"|undefined} _score + * @memberof google.cloud.aiplatform.v1.RougeMetricValue + * @instance + */ + Object.defineProperty(RougeMetricValue.prototype, "_score", { + get: $util.oneOfGetter($oneOfFields = ["score"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new RougeMetricValue instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.RougeMetricValue + * @static + * @param {google.cloud.aiplatform.v1.IRougeMetricValue=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.RougeMetricValue} RougeMetricValue instance + */ + RougeMetricValue.create = function create(properties) { + return new RougeMetricValue(properties); + }; + + /** + * Encodes the specified RougeMetricValue message. Does not implicitly {@link google.cloud.aiplatform.v1.RougeMetricValue.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.RougeMetricValue + * @static + * @param {google.cloud.aiplatform.v1.IRougeMetricValue} message RougeMetricValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RougeMetricValue.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.score != null && Object.hasOwnProperty.call(message, "score")) + writer.uint32(/* id 1, wireType 5 =*/13).float(message.score); + return writer; + }; + + /** + * Encodes the specified RougeMetricValue message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.RougeMetricValue.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.RougeMetricValue + * @static + * @param {google.cloud.aiplatform.v1.IRougeMetricValue} message RougeMetricValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RougeMetricValue.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RougeMetricValue message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.RougeMetricValue + * @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.RougeMetricValue} RougeMetricValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RougeMetricValue.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.RougeMetricValue(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.score = reader.float(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RougeMetricValue message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.RougeMetricValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.RougeMetricValue} RougeMetricValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RougeMetricValue.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RougeMetricValue message. + * @function verify + * @memberof google.cloud.aiplatform.v1.RougeMetricValue + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RougeMetricValue.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.score != null && message.hasOwnProperty("score")) { + properties._score = 1; + if (typeof message.score !== "number") + return "score: number expected"; + } + return null; + }; + + /** + * Creates a RougeMetricValue message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.RougeMetricValue + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.RougeMetricValue} RougeMetricValue + */ + RougeMetricValue.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.RougeMetricValue) + return object; + var message = new $root.google.cloud.aiplatform.v1.RougeMetricValue(); + if (object.score != null) + message.score = Number(object.score); + return message; + }; + + /** + * Creates a plain object from a RougeMetricValue message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.RougeMetricValue + * @static + * @param {google.cloud.aiplatform.v1.RougeMetricValue} message RougeMetricValue + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RougeMetricValue.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.score != null && message.hasOwnProperty("score")) { + object.score = options.json && !isFinite(message.score) ? String(message.score) : message.score; + if (options.oneofs) + object._score = "score"; + } + return object; + }; + + /** + * Converts this RougeMetricValue to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.RougeMetricValue + * @instance + * @returns {Object.} JSON object + */ + RougeMetricValue.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RougeMetricValue + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.RougeMetricValue + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RougeMetricValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.RougeMetricValue"; + }; + + return RougeMetricValue; + })(); + + v1.CoherenceInput = (function() { + + /** + * Properties of a CoherenceInput. + * @memberof google.cloud.aiplatform.v1 + * @interface ICoherenceInput + * @property {google.cloud.aiplatform.v1.ICoherenceSpec|null} [metricSpec] CoherenceInput metricSpec + * @property {google.cloud.aiplatform.v1.ICoherenceInstance|null} [instance] CoherenceInput instance + */ + + /** + * Constructs a new CoherenceInput. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a CoherenceInput. + * @implements ICoherenceInput + * @constructor + * @param {google.cloud.aiplatform.v1.ICoherenceInput=} [properties] Properties to set + */ + function CoherenceInput(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]]; + } + + /** + * CoherenceInput metricSpec. + * @member {google.cloud.aiplatform.v1.ICoherenceSpec|null|undefined} metricSpec + * @memberof google.cloud.aiplatform.v1.CoherenceInput + * @instance + */ + CoherenceInput.prototype.metricSpec = null; + + /** + * CoherenceInput instance. + * @member {google.cloud.aiplatform.v1.ICoherenceInstance|null|undefined} instance + * @memberof google.cloud.aiplatform.v1.CoherenceInput + * @instance + */ + CoherenceInput.prototype.instance = null; + + /** + * Creates a new CoherenceInput instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.CoherenceInput + * @static + * @param {google.cloud.aiplatform.v1.ICoherenceInput=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CoherenceInput} CoherenceInput instance + */ + CoherenceInput.create = function create(properties) { + return new CoherenceInput(properties); + }; + + /** + * Encodes the specified CoherenceInput message. Does not implicitly {@link google.cloud.aiplatform.v1.CoherenceInput.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.CoherenceInput + * @static + * @param {google.cloud.aiplatform.v1.ICoherenceInput} message CoherenceInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CoherenceInput.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.metricSpec != null && Object.hasOwnProperty.call(message, "metricSpec")) + $root.google.cloud.aiplatform.v1.CoherenceSpec.encode(message.metricSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.instance != null && Object.hasOwnProperty.call(message, "instance")) + $root.google.cloud.aiplatform.v1.CoherenceInstance.encode(message.instance, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CoherenceInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CoherenceInput.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.CoherenceInput + * @static + * @param {google.cloud.aiplatform.v1.ICoherenceInput} message CoherenceInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CoherenceInput.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CoherenceInput message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.CoherenceInput + * @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.CoherenceInput} CoherenceInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CoherenceInput.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.CoherenceInput(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.metricSpec = $root.google.cloud.aiplatform.v1.CoherenceSpec.decode(reader, reader.uint32()); + break; + } + case 2: { + message.instance = $root.google.cloud.aiplatform.v1.CoherenceInstance.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CoherenceInput message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.CoherenceInput + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.CoherenceInput} CoherenceInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CoherenceInput.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CoherenceInput message. + * @function verify + * @memberof google.cloud.aiplatform.v1.CoherenceInput + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CoherenceInput.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) { + var error = $root.google.cloud.aiplatform.v1.CoherenceSpec.verify(message.metricSpec); + if (error) + return "metricSpec." + error; + } + if (message.instance != null && message.hasOwnProperty("instance")) { + var error = $root.google.cloud.aiplatform.v1.CoherenceInstance.verify(message.instance); + if (error) + return "instance." + error; + } + return null; + }; + + /** + * Creates a CoherenceInput message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.CoherenceInput + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.CoherenceInput} CoherenceInput + */ + CoherenceInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CoherenceInput) + return object; + var message = new $root.google.cloud.aiplatform.v1.CoherenceInput(); + if (object.metricSpec != null) { + if (typeof object.metricSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.CoherenceInput.metricSpec: object expected"); + message.metricSpec = $root.google.cloud.aiplatform.v1.CoherenceSpec.fromObject(object.metricSpec); + } + if (object.instance != null) { + if (typeof object.instance !== "object") + throw TypeError(".google.cloud.aiplatform.v1.CoherenceInput.instance: object expected"); + message.instance = $root.google.cloud.aiplatform.v1.CoherenceInstance.fromObject(object.instance); + } + return message; + }; + + /** + * Creates a plain object from a CoherenceInput message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.CoherenceInput + * @static + * @param {google.cloud.aiplatform.v1.CoherenceInput} message CoherenceInput + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CoherenceInput.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.metricSpec = null; + object.instance = null; + } + if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) + object.metricSpec = $root.google.cloud.aiplatform.v1.CoherenceSpec.toObject(message.metricSpec, options); + if (message.instance != null && message.hasOwnProperty("instance")) + object.instance = $root.google.cloud.aiplatform.v1.CoherenceInstance.toObject(message.instance, options); + return object; + }; + + /** + * Converts this CoherenceInput to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.CoherenceInput + * @instance + * @returns {Object.} JSON object + */ + CoherenceInput.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CoherenceInput + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.CoherenceInput + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CoherenceInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CoherenceInput"; + }; + + return CoherenceInput; + })(); + + v1.CoherenceInstance = (function() { + + /** + * Properties of a CoherenceInstance. + * @memberof google.cloud.aiplatform.v1 + * @interface ICoherenceInstance + * @property {string|null} [prediction] CoherenceInstance prediction + */ + + /** + * Constructs a new CoherenceInstance. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a CoherenceInstance. + * @implements ICoherenceInstance + * @constructor + * @param {google.cloud.aiplatform.v1.ICoherenceInstance=} [properties] Properties to set + */ + function CoherenceInstance(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]]; + } + + /** + * CoherenceInstance prediction. + * @member {string|null|undefined} prediction + * @memberof google.cloud.aiplatform.v1.CoherenceInstance + * @instance + */ + CoherenceInstance.prototype.prediction = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * CoherenceInstance _prediction. + * @member {"prediction"|undefined} _prediction + * @memberof google.cloud.aiplatform.v1.CoherenceInstance + * @instance + */ + Object.defineProperty(CoherenceInstance.prototype, "_prediction", { + get: $util.oneOfGetter($oneOfFields = ["prediction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new CoherenceInstance instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.CoherenceInstance + * @static + * @param {google.cloud.aiplatform.v1.ICoherenceInstance=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CoherenceInstance} CoherenceInstance instance + */ + CoherenceInstance.create = function create(properties) { + return new CoherenceInstance(properties); + }; + + /** + * Encodes the specified CoherenceInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.CoherenceInstance.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.CoherenceInstance + * @static + * @param {google.cloud.aiplatform.v1.ICoherenceInstance} message CoherenceInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CoherenceInstance.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.prediction != null && Object.hasOwnProperty.call(message, "prediction")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.prediction); + return writer; + }; + + /** + * Encodes the specified CoherenceInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CoherenceInstance.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.CoherenceInstance + * @static + * @param {google.cloud.aiplatform.v1.ICoherenceInstance} message CoherenceInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CoherenceInstance.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CoherenceInstance message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.CoherenceInstance + * @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.CoherenceInstance} CoherenceInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CoherenceInstance.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.CoherenceInstance(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.prediction = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CoherenceInstance message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.CoherenceInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.CoherenceInstance} CoherenceInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CoherenceInstance.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CoherenceInstance message. + * @function verify + * @memberof google.cloud.aiplatform.v1.CoherenceInstance + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CoherenceInstance.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.prediction != null && message.hasOwnProperty("prediction")) { + properties._prediction = 1; + if (!$util.isString(message.prediction)) + return "prediction: string expected"; + } + return null; + }; + + /** + * Creates a CoherenceInstance message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.CoherenceInstance + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.CoherenceInstance} CoherenceInstance + */ + CoherenceInstance.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CoherenceInstance) + return object; + var message = new $root.google.cloud.aiplatform.v1.CoherenceInstance(); + if (object.prediction != null) + message.prediction = String(object.prediction); + return message; + }; + + /** + * Creates a plain object from a CoherenceInstance message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.CoherenceInstance + * @static + * @param {google.cloud.aiplatform.v1.CoherenceInstance} message CoherenceInstance + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CoherenceInstance.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.prediction != null && message.hasOwnProperty("prediction")) { + object.prediction = message.prediction; + if (options.oneofs) + object._prediction = "prediction"; + } + return object; + }; + + /** + * Converts this CoherenceInstance to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.CoherenceInstance + * @instance + * @returns {Object.} JSON object + */ + CoherenceInstance.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CoherenceInstance + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.CoherenceInstance + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CoherenceInstance.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CoherenceInstance"; + }; + + return CoherenceInstance; + })(); + + v1.CoherenceSpec = (function() { + + /** + * Properties of a CoherenceSpec. + * @memberof google.cloud.aiplatform.v1 + * @interface ICoherenceSpec + * @property {number|null} [version] CoherenceSpec version + */ + + /** + * Constructs a new CoherenceSpec. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a CoherenceSpec. + * @implements ICoherenceSpec + * @constructor + * @param {google.cloud.aiplatform.v1.ICoherenceSpec=} [properties] Properties to set + */ + function CoherenceSpec(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]]; + } + + /** + * CoherenceSpec version. + * @member {number} version + * @memberof google.cloud.aiplatform.v1.CoherenceSpec + * @instance + */ + CoherenceSpec.prototype.version = 0; + + /** + * Creates a new CoherenceSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.CoherenceSpec + * @static + * @param {google.cloud.aiplatform.v1.ICoherenceSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CoherenceSpec} CoherenceSpec instance + */ + CoherenceSpec.create = function create(properties) { + return new CoherenceSpec(properties); + }; + + /** + * Encodes the specified CoherenceSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.CoherenceSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.CoherenceSpec + * @static + * @param {google.cloud.aiplatform.v1.ICoherenceSpec} message CoherenceSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CoherenceSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.version); + return writer; + }; + + /** + * Encodes the specified CoherenceSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CoherenceSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.CoherenceSpec + * @static + * @param {google.cloud.aiplatform.v1.ICoherenceSpec} message CoherenceSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CoherenceSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CoherenceSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.CoherenceSpec + * @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.CoherenceSpec} CoherenceSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CoherenceSpec.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.CoherenceSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.version = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CoherenceSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.CoherenceSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.CoherenceSpec} CoherenceSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CoherenceSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CoherenceSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1.CoherenceSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CoherenceSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isInteger(message.version)) + return "version: integer expected"; + return null; + }; + + /** + * Creates a CoherenceSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.CoherenceSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.CoherenceSpec} CoherenceSpec + */ + CoherenceSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CoherenceSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1.CoherenceSpec(); + if (object.version != null) + message.version = object.version | 0; + return message; + }; + + /** + * Creates a plain object from a CoherenceSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.CoherenceSpec + * @static + * @param {google.cloud.aiplatform.v1.CoherenceSpec} message CoherenceSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CoherenceSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.version = 0; + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + return object; + }; + + /** + * Converts this CoherenceSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.CoherenceSpec + * @instance + * @returns {Object.} JSON object + */ + CoherenceSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CoherenceSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.CoherenceSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CoherenceSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CoherenceSpec"; + }; + + return CoherenceSpec; + })(); + + v1.CoherenceResult = (function() { + + /** + * Properties of a CoherenceResult. + * @memberof google.cloud.aiplatform.v1 + * @interface ICoherenceResult + * @property {number|null} [score] CoherenceResult score + * @property {string|null} [explanation] CoherenceResult explanation + * @property {number|null} [confidence] CoherenceResult confidence + */ + + /** + * Constructs a new CoherenceResult. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a CoherenceResult. + * @implements ICoherenceResult + * @constructor + * @param {google.cloud.aiplatform.v1.ICoherenceResult=} [properties] Properties to set + */ + function CoherenceResult(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]]; + } + + /** + * CoherenceResult score. + * @member {number|null|undefined} score + * @memberof google.cloud.aiplatform.v1.CoherenceResult + * @instance + */ + CoherenceResult.prototype.score = null; + + /** + * CoherenceResult explanation. + * @member {string} explanation + * @memberof google.cloud.aiplatform.v1.CoherenceResult + * @instance + */ + CoherenceResult.prototype.explanation = ""; + + /** + * CoherenceResult confidence. + * @member {number|null|undefined} confidence + * @memberof google.cloud.aiplatform.v1.CoherenceResult + * @instance + */ + CoherenceResult.prototype.confidence = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * CoherenceResult _score. + * @member {"score"|undefined} _score + * @memberof google.cloud.aiplatform.v1.CoherenceResult + * @instance + */ + Object.defineProperty(CoherenceResult.prototype, "_score", { + get: $util.oneOfGetter($oneOfFields = ["score"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * CoherenceResult _confidence. + * @member {"confidence"|undefined} _confidence + * @memberof google.cloud.aiplatform.v1.CoherenceResult + * @instance + */ + Object.defineProperty(CoherenceResult.prototype, "_confidence", { + get: $util.oneOfGetter($oneOfFields = ["confidence"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new CoherenceResult instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.CoherenceResult + * @static + * @param {google.cloud.aiplatform.v1.ICoherenceResult=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CoherenceResult} CoherenceResult instance + */ + CoherenceResult.create = function create(properties) { + return new CoherenceResult(properties); + }; + + /** + * Encodes the specified CoherenceResult message. Does not implicitly {@link google.cloud.aiplatform.v1.CoherenceResult.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.CoherenceResult + * @static + * @param {google.cloud.aiplatform.v1.ICoherenceResult} message CoherenceResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CoherenceResult.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.score != null && Object.hasOwnProperty.call(message, "score")) + writer.uint32(/* id 1, wireType 5 =*/13).float(message.score); + if (message.explanation != null && Object.hasOwnProperty.call(message, "explanation")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.explanation); + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) + writer.uint32(/* id 3, wireType 5 =*/29).float(message.confidence); + return writer; + }; + + /** + * Encodes the specified CoherenceResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CoherenceResult.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.CoherenceResult + * @static + * @param {google.cloud.aiplatform.v1.ICoherenceResult} message CoherenceResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CoherenceResult.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CoherenceResult message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.CoherenceResult + * @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.CoherenceResult} CoherenceResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CoherenceResult.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.CoherenceResult(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.score = reader.float(); + break; + } + case 2: { + message.explanation = reader.string(); + break; + } + case 3: { + message.confidence = reader.float(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CoherenceResult message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.CoherenceResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.CoherenceResult} CoherenceResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CoherenceResult.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CoherenceResult message. + * @function verify + * @memberof google.cloud.aiplatform.v1.CoherenceResult + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CoherenceResult.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.score != null && message.hasOwnProperty("score")) { + properties._score = 1; + if (typeof message.score !== "number") + return "score: number expected"; + } + if (message.explanation != null && message.hasOwnProperty("explanation")) + if (!$util.isString(message.explanation)) + return "explanation: string expected"; + if (message.confidence != null && message.hasOwnProperty("confidence")) { + properties._confidence = 1; + if (typeof message.confidence !== "number") + return "confidence: number expected"; + } + return null; + }; + + /** + * Creates a CoherenceResult message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.CoherenceResult + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.CoherenceResult} CoherenceResult + */ + CoherenceResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CoherenceResult) + return object; + var message = new $root.google.cloud.aiplatform.v1.CoherenceResult(); + if (object.score != null) + message.score = Number(object.score); + if (object.explanation != null) + message.explanation = String(object.explanation); + if (object.confidence != null) + message.confidence = Number(object.confidence); + return message; + }; + + /** + * Creates a plain object from a CoherenceResult message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.CoherenceResult + * @static + * @param {google.cloud.aiplatform.v1.CoherenceResult} message CoherenceResult + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CoherenceResult.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.explanation = ""; + if (message.score != null && message.hasOwnProperty("score")) { + object.score = options.json && !isFinite(message.score) ? String(message.score) : message.score; + if (options.oneofs) + object._score = "score"; + } + if (message.explanation != null && message.hasOwnProperty("explanation")) + object.explanation = message.explanation; + if (message.confidence != null && message.hasOwnProperty("confidence")) { + object.confidence = options.json && !isFinite(message.confidence) ? String(message.confidence) : message.confidence; + if (options.oneofs) + object._confidence = "confidence"; + } + return object; + }; + + /** + * Converts this CoherenceResult to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.CoherenceResult + * @instance + * @returns {Object.} JSON object + */ + CoherenceResult.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CoherenceResult + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.CoherenceResult + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CoherenceResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CoherenceResult"; + }; + + return CoherenceResult; + })(); + + v1.FluencyInput = (function() { + + /** + * Properties of a FluencyInput. + * @memberof google.cloud.aiplatform.v1 + * @interface IFluencyInput + * @property {google.cloud.aiplatform.v1.IFluencySpec|null} [metricSpec] FluencyInput metricSpec + * @property {google.cloud.aiplatform.v1.IFluencyInstance|null} [instance] FluencyInput instance + */ + + /** + * Constructs a new FluencyInput. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a FluencyInput. + * @implements IFluencyInput + * @constructor + * @param {google.cloud.aiplatform.v1.IFluencyInput=} [properties] Properties to set + */ + function FluencyInput(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]]; + } + + /** + * FluencyInput metricSpec. + * @member {google.cloud.aiplatform.v1.IFluencySpec|null|undefined} metricSpec + * @memberof google.cloud.aiplatform.v1.FluencyInput + * @instance + */ + FluencyInput.prototype.metricSpec = null; + + /** + * FluencyInput instance. + * @member {google.cloud.aiplatform.v1.IFluencyInstance|null|undefined} instance + * @memberof google.cloud.aiplatform.v1.FluencyInput + * @instance + */ + FluencyInput.prototype.instance = null; + + /** + * Creates a new FluencyInput instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.FluencyInput + * @static + * @param {google.cloud.aiplatform.v1.IFluencyInput=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.FluencyInput} FluencyInput instance + */ + FluencyInput.create = function create(properties) { + return new FluencyInput(properties); + }; + + /** + * Encodes the specified FluencyInput message. Does not implicitly {@link google.cloud.aiplatform.v1.FluencyInput.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.FluencyInput + * @static + * @param {google.cloud.aiplatform.v1.IFluencyInput} message FluencyInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FluencyInput.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.metricSpec != null && Object.hasOwnProperty.call(message, "metricSpec")) + $root.google.cloud.aiplatform.v1.FluencySpec.encode(message.metricSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.instance != null && Object.hasOwnProperty.call(message, "instance")) + $root.google.cloud.aiplatform.v1.FluencyInstance.encode(message.instance, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified FluencyInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FluencyInput.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.FluencyInput + * @static + * @param {google.cloud.aiplatform.v1.IFluencyInput} message FluencyInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FluencyInput.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FluencyInput message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.FluencyInput + * @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.FluencyInput} FluencyInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FluencyInput.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.FluencyInput(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.metricSpec = $root.google.cloud.aiplatform.v1.FluencySpec.decode(reader, reader.uint32()); + break; + } + case 2: { + message.instance = $root.google.cloud.aiplatform.v1.FluencyInstance.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FluencyInput message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.FluencyInput + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.FluencyInput} FluencyInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FluencyInput.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FluencyInput message. + * @function verify + * @memberof google.cloud.aiplatform.v1.FluencyInput + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FluencyInput.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) { + var error = $root.google.cloud.aiplatform.v1.FluencySpec.verify(message.metricSpec); + if (error) + return "metricSpec." + error; + } + if (message.instance != null && message.hasOwnProperty("instance")) { + var error = $root.google.cloud.aiplatform.v1.FluencyInstance.verify(message.instance); + if (error) + return "instance." + error; + } + return null; + }; + + /** + * Creates a FluencyInput message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.FluencyInput + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.FluencyInput} FluencyInput + */ + FluencyInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.FluencyInput) + return object; + var message = new $root.google.cloud.aiplatform.v1.FluencyInput(); + if (object.metricSpec != null) { + if (typeof object.metricSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.FluencyInput.metricSpec: object expected"); + message.metricSpec = $root.google.cloud.aiplatform.v1.FluencySpec.fromObject(object.metricSpec); + } + if (object.instance != null) { + if (typeof object.instance !== "object") + throw TypeError(".google.cloud.aiplatform.v1.FluencyInput.instance: object expected"); + message.instance = $root.google.cloud.aiplatform.v1.FluencyInstance.fromObject(object.instance); + } + return message; + }; + + /** + * Creates a plain object from a FluencyInput message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.FluencyInput + * @static + * @param {google.cloud.aiplatform.v1.FluencyInput} message FluencyInput + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FluencyInput.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.metricSpec = null; + object.instance = null; + } + if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) + object.metricSpec = $root.google.cloud.aiplatform.v1.FluencySpec.toObject(message.metricSpec, options); + if (message.instance != null && message.hasOwnProperty("instance")) + object.instance = $root.google.cloud.aiplatform.v1.FluencyInstance.toObject(message.instance, options); + return object; + }; + + /** + * Converts this FluencyInput to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.FluencyInput + * @instance + * @returns {Object.} JSON object + */ + FluencyInput.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FluencyInput + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.FluencyInput + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FluencyInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.FluencyInput"; + }; + + return FluencyInput; + })(); + + v1.FluencyInstance = (function() { + + /** + * Properties of a FluencyInstance. + * @memberof google.cloud.aiplatform.v1 + * @interface IFluencyInstance + * @property {string|null} [prediction] FluencyInstance prediction + */ + + /** + * Constructs a new FluencyInstance. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a FluencyInstance. + * @implements IFluencyInstance + * @constructor + * @param {google.cloud.aiplatform.v1.IFluencyInstance=} [properties] Properties to set + */ + function FluencyInstance(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]]; + } + + /** + * FluencyInstance prediction. + * @member {string|null|undefined} prediction + * @memberof google.cloud.aiplatform.v1.FluencyInstance + * @instance + */ + FluencyInstance.prototype.prediction = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * FluencyInstance _prediction. + * @member {"prediction"|undefined} _prediction + * @memberof google.cloud.aiplatform.v1.FluencyInstance + * @instance + */ + Object.defineProperty(FluencyInstance.prototype, "_prediction", { + get: $util.oneOfGetter($oneOfFields = ["prediction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new FluencyInstance instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.FluencyInstance + * @static + * @param {google.cloud.aiplatform.v1.IFluencyInstance=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.FluencyInstance} FluencyInstance instance + */ + FluencyInstance.create = function create(properties) { + return new FluencyInstance(properties); + }; + + /** + * Encodes the specified FluencyInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.FluencyInstance.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.FluencyInstance + * @static + * @param {google.cloud.aiplatform.v1.IFluencyInstance} message FluencyInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FluencyInstance.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.prediction != null && Object.hasOwnProperty.call(message, "prediction")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.prediction); + return writer; + }; + + /** + * Encodes the specified FluencyInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FluencyInstance.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.FluencyInstance + * @static + * @param {google.cloud.aiplatform.v1.IFluencyInstance} message FluencyInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FluencyInstance.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FluencyInstance message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.FluencyInstance + * @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.FluencyInstance} FluencyInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FluencyInstance.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.FluencyInstance(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.prediction = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FluencyInstance message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.FluencyInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.FluencyInstance} FluencyInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FluencyInstance.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FluencyInstance message. + * @function verify + * @memberof google.cloud.aiplatform.v1.FluencyInstance + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FluencyInstance.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.prediction != null && message.hasOwnProperty("prediction")) { + properties._prediction = 1; + if (!$util.isString(message.prediction)) + return "prediction: string expected"; + } + return null; + }; + + /** + * Creates a FluencyInstance message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.FluencyInstance + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.FluencyInstance} FluencyInstance + */ + FluencyInstance.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.FluencyInstance) + return object; + var message = new $root.google.cloud.aiplatform.v1.FluencyInstance(); + if (object.prediction != null) + message.prediction = String(object.prediction); + return message; + }; + + /** + * Creates a plain object from a FluencyInstance message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.FluencyInstance + * @static + * @param {google.cloud.aiplatform.v1.FluencyInstance} message FluencyInstance + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FluencyInstance.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.prediction != null && message.hasOwnProperty("prediction")) { + object.prediction = message.prediction; + if (options.oneofs) + object._prediction = "prediction"; + } + return object; + }; + + /** + * Converts this FluencyInstance to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.FluencyInstance + * @instance + * @returns {Object.} JSON object + */ + FluencyInstance.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FluencyInstance + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.FluencyInstance + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FluencyInstance.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.FluencyInstance"; + }; + + return FluencyInstance; + })(); + + v1.FluencySpec = (function() { + + /** + * Properties of a FluencySpec. + * @memberof google.cloud.aiplatform.v1 + * @interface IFluencySpec + * @property {number|null} [version] FluencySpec version + */ + + /** + * Constructs a new FluencySpec. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a FluencySpec. + * @implements IFluencySpec + * @constructor + * @param {google.cloud.aiplatform.v1.IFluencySpec=} [properties] Properties to set + */ + function FluencySpec(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]]; + } + + /** + * FluencySpec version. + * @member {number} version + * @memberof google.cloud.aiplatform.v1.FluencySpec + * @instance + */ + FluencySpec.prototype.version = 0; + + /** + * Creates a new FluencySpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.FluencySpec + * @static + * @param {google.cloud.aiplatform.v1.IFluencySpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.FluencySpec} FluencySpec instance + */ + FluencySpec.create = function create(properties) { + return new FluencySpec(properties); + }; + + /** + * Encodes the specified FluencySpec message. Does not implicitly {@link google.cloud.aiplatform.v1.FluencySpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.FluencySpec + * @static + * @param {google.cloud.aiplatform.v1.IFluencySpec} message FluencySpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FluencySpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.version); + return writer; + }; + + /** + * Encodes the specified FluencySpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FluencySpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.FluencySpec + * @static + * @param {google.cloud.aiplatform.v1.IFluencySpec} message FluencySpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FluencySpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FluencySpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.FluencySpec + * @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.FluencySpec} FluencySpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FluencySpec.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.FluencySpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.version = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FluencySpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.FluencySpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.FluencySpec} FluencySpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FluencySpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FluencySpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1.FluencySpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FluencySpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isInteger(message.version)) + return "version: integer expected"; + return null; + }; + + /** + * Creates a FluencySpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.FluencySpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.FluencySpec} FluencySpec + */ + FluencySpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.FluencySpec) + return object; + var message = new $root.google.cloud.aiplatform.v1.FluencySpec(); + if (object.version != null) + message.version = object.version | 0; + return message; + }; + + /** + * Creates a plain object from a FluencySpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.FluencySpec + * @static + * @param {google.cloud.aiplatform.v1.FluencySpec} message FluencySpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FluencySpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.version = 0; + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + return object; + }; + + /** + * Converts this FluencySpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.FluencySpec + * @instance + * @returns {Object.} JSON object + */ + FluencySpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FluencySpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.FluencySpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FluencySpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.FluencySpec"; + }; + + return FluencySpec; + })(); + + v1.FluencyResult = (function() { + + /** + * Properties of a FluencyResult. + * @memberof google.cloud.aiplatform.v1 + * @interface IFluencyResult + * @property {number|null} [score] FluencyResult score + * @property {string|null} [explanation] FluencyResult explanation + * @property {number|null} [confidence] FluencyResult confidence + */ + + /** + * Constructs a new FluencyResult. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a FluencyResult. + * @implements IFluencyResult + * @constructor + * @param {google.cloud.aiplatform.v1.IFluencyResult=} [properties] Properties to set + */ + function FluencyResult(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]]; + } + + /** + * FluencyResult score. + * @member {number|null|undefined} score + * @memberof google.cloud.aiplatform.v1.FluencyResult + * @instance + */ + FluencyResult.prototype.score = null; + + /** + * FluencyResult explanation. + * @member {string} explanation + * @memberof google.cloud.aiplatform.v1.FluencyResult + * @instance + */ + FluencyResult.prototype.explanation = ""; + + /** + * FluencyResult confidence. + * @member {number|null|undefined} confidence + * @memberof google.cloud.aiplatform.v1.FluencyResult + * @instance + */ + FluencyResult.prototype.confidence = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * FluencyResult _score. + * @member {"score"|undefined} _score + * @memberof google.cloud.aiplatform.v1.FluencyResult + * @instance + */ + Object.defineProperty(FluencyResult.prototype, "_score", { + get: $util.oneOfGetter($oneOfFields = ["score"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * FluencyResult _confidence. + * @member {"confidence"|undefined} _confidence + * @memberof google.cloud.aiplatform.v1.FluencyResult + * @instance + */ + Object.defineProperty(FluencyResult.prototype, "_confidence", { + get: $util.oneOfGetter($oneOfFields = ["confidence"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new FluencyResult instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.FluencyResult + * @static + * @param {google.cloud.aiplatform.v1.IFluencyResult=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.FluencyResult} FluencyResult instance + */ + FluencyResult.create = function create(properties) { + return new FluencyResult(properties); + }; + + /** + * Encodes the specified FluencyResult message. Does not implicitly {@link google.cloud.aiplatform.v1.FluencyResult.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.FluencyResult + * @static + * @param {google.cloud.aiplatform.v1.IFluencyResult} message FluencyResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FluencyResult.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.score != null && Object.hasOwnProperty.call(message, "score")) + writer.uint32(/* id 1, wireType 5 =*/13).float(message.score); + if (message.explanation != null && Object.hasOwnProperty.call(message, "explanation")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.explanation); + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) + writer.uint32(/* id 3, wireType 5 =*/29).float(message.confidence); + return writer; + }; + + /** + * Encodes the specified FluencyResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FluencyResult.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.FluencyResult + * @static + * @param {google.cloud.aiplatform.v1.IFluencyResult} message FluencyResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FluencyResult.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FluencyResult message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.FluencyResult + * @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.FluencyResult} FluencyResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FluencyResult.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.FluencyResult(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.score = reader.float(); + break; + } + case 2: { + message.explanation = reader.string(); + break; + } + case 3: { + message.confidence = reader.float(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FluencyResult message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.FluencyResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.FluencyResult} FluencyResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FluencyResult.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FluencyResult message. + * @function verify + * @memberof google.cloud.aiplatform.v1.FluencyResult + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FluencyResult.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.score != null && message.hasOwnProperty("score")) { + properties._score = 1; + if (typeof message.score !== "number") + return "score: number expected"; + } + if (message.explanation != null && message.hasOwnProperty("explanation")) + if (!$util.isString(message.explanation)) + return "explanation: string expected"; + if (message.confidence != null && message.hasOwnProperty("confidence")) { + properties._confidence = 1; + if (typeof message.confidence !== "number") + return "confidence: number expected"; + } + return null; + }; + + /** + * Creates a FluencyResult message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.FluencyResult + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.FluencyResult} FluencyResult + */ + FluencyResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.FluencyResult) + return object; + var message = new $root.google.cloud.aiplatform.v1.FluencyResult(); + if (object.score != null) + message.score = Number(object.score); + if (object.explanation != null) + message.explanation = String(object.explanation); + if (object.confidence != null) + message.confidence = Number(object.confidence); + return message; + }; + + /** + * Creates a plain object from a FluencyResult message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.FluencyResult + * @static + * @param {google.cloud.aiplatform.v1.FluencyResult} message FluencyResult + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FluencyResult.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.explanation = ""; + if (message.score != null && message.hasOwnProperty("score")) { + object.score = options.json && !isFinite(message.score) ? String(message.score) : message.score; + if (options.oneofs) + object._score = "score"; + } + if (message.explanation != null && message.hasOwnProperty("explanation")) + object.explanation = message.explanation; + if (message.confidence != null && message.hasOwnProperty("confidence")) { + object.confidence = options.json && !isFinite(message.confidence) ? String(message.confidence) : message.confidence; + if (options.oneofs) + object._confidence = "confidence"; + } + return object; + }; + + /** + * Converts this FluencyResult to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.FluencyResult + * @instance + * @returns {Object.} JSON object + */ + FluencyResult.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FluencyResult + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.FluencyResult + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FluencyResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.FluencyResult"; + }; + + return FluencyResult; + })(); + + v1.SafetyInput = (function() { + + /** + * Properties of a SafetyInput. + * @memberof google.cloud.aiplatform.v1 + * @interface ISafetyInput + * @property {google.cloud.aiplatform.v1.ISafetySpec|null} [metricSpec] SafetyInput metricSpec + * @property {google.cloud.aiplatform.v1.ISafetyInstance|null} [instance] SafetyInput instance + */ + + /** + * Constructs a new SafetyInput. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a SafetyInput. + * @implements ISafetyInput + * @constructor + * @param {google.cloud.aiplatform.v1.ISafetyInput=} [properties] Properties to set + */ + function SafetyInput(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]]; + } + + /** + * SafetyInput metricSpec. + * @member {google.cloud.aiplatform.v1.ISafetySpec|null|undefined} metricSpec + * @memberof google.cloud.aiplatform.v1.SafetyInput + * @instance + */ + SafetyInput.prototype.metricSpec = null; + + /** + * SafetyInput instance. + * @member {google.cloud.aiplatform.v1.ISafetyInstance|null|undefined} instance + * @memberof google.cloud.aiplatform.v1.SafetyInput + * @instance + */ + SafetyInput.prototype.instance = null; + + /** + * Creates a new SafetyInput instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.SafetyInput + * @static + * @param {google.cloud.aiplatform.v1.ISafetyInput=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.SafetyInput} SafetyInput instance + */ + SafetyInput.create = function create(properties) { + return new SafetyInput(properties); + }; + + /** + * Encodes the specified SafetyInput message. Does not implicitly {@link google.cloud.aiplatform.v1.SafetyInput.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.SafetyInput + * @static + * @param {google.cloud.aiplatform.v1.ISafetyInput} message SafetyInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SafetyInput.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.metricSpec != null && Object.hasOwnProperty.call(message, "metricSpec")) + $root.google.cloud.aiplatform.v1.SafetySpec.encode(message.metricSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.instance != null && Object.hasOwnProperty.call(message, "instance")) + $root.google.cloud.aiplatform.v1.SafetyInstance.encode(message.instance, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified SafetyInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SafetyInput.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.SafetyInput + * @static + * @param {google.cloud.aiplatform.v1.ISafetyInput} message SafetyInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SafetyInput.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SafetyInput message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.SafetyInput + * @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.SafetyInput} SafetyInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SafetyInput.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.SafetyInput(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.metricSpec = $root.google.cloud.aiplatform.v1.SafetySpec.decode(reader, reader.uint32()); + break; + } + case 2: { + message.instance = $root.google.cloud.aiplatform.v1.SafetyInstance.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SafetyInput message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.SafetyInput + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.SafetyInput} SafetyInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SafetyInput.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SafetyInput message. + * @function verify + * @memberof google.cloud.aiplatform.v1.SafetyInput + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SafetyInput.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) { + var error = $root.google.cloud.aiplatform.v1.SafetySpec.verify(message.metricSpec); + if (error) + return "metricSpec." + error; + } + if (message.instance != null && message.hasOwnProperty("instance")) { + var error = $root.google.cloud.aiplatform.v1.SafetyInstance.verify(message.instance); + if (error) + return "instance." + error; + } + return null; + }; + + /** + * Creates a SafetyInput message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.SafetyInput + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.SafetyInput} SafetyInput + */ + SafetyInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.SafetyInput) + return object; + var message = new $root.google.cloud.aiplatform.v1.SafetyInput(); + if (object.metricSpec != null) { + if (typeof object.metricSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.SafetyInput.metricSpec: object expected"); + message.metricSpec = $root.google.cloud.aiplatform.v1.SafetySpec.fromObject(object.metricSpec); + } + if (object.instance != null) { + if (typeof object.instance !== "object") + throw TypeError(".google.cloud.aiplatform.v1.SafetyInput.instance: object expected"); + message.instance = $root.google.cloud.aiplatform.v1.SafetyInstance.fromObject(object.instance); + } + return message; + }; + + /** + * Creates a plain object from a SafetyInput message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.SafetyInput + * @static + * @param {google.cloud.aiplatform.v1.SafetyInput} message SafetyInput + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SafetyInput.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.metricSpec = null; + object.instance = null; + } + if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) + object.metricSpec = $root.google.cloud.aiplatform.v1.SafetySpec.toObject(message.metricSpec, options); + if (message.instance != null && message.hasOwnProperty("instance")) + object.instance = $root.google.cloud.aiplatform.v1.SafetyInstance.toObject(message.instance, options); + return object; + }; + + /** + * Converts this SafetyInput to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.SafetyInput + * @instance + * @returns {Object.} JSON object + */ + SafetyInput.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SafetyInput + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.SafetyInput + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SafetyInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.SafetyInput"; + }; + + return SafetyInput; + })(); + + v1.SafetyInstance = (function() { + + /** + * Properties of a SafetyInstance. + * @memberof google.cloud.aiplatform.v1 + * @interface ISafetyInstance + * @property {string|null} [prediction] SafetyInstance prediction + */ + + /** + * Constructs a new SafetyInstance. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a SafetyInstance. + * @implements ISafetyInstance + * @constructor + * @param {google.cloud.aiplatform.v1.ISafetyInstance=} [properties] Properties to set + */ + function SafetyInstance(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]]; + } + + /** + * SafetyInstance prediction. + * @member {string|null|undefined} prediction + * @memberof google.cloud.aiplatform.v1.SafetyInstance + * @instance + */ + SafetyInstance.prototype.prediction = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * SafetyInstance _prediction. + * @member {"prediction"|undefined} _prediction + * @memberof google.cloud.aiplatform.v1.SafetyInstance + * @instance + */ + Object.defineProperty(SafetyInstance.prototype, "_prediction", { + get: $util.oneOfGetter($oneOfFields = ["prediction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new SafetyInstance instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.SafetyInstance + * @static + * @param {google.cloud.aiplatform.v1.ISafetyInstance=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.SafetyInstance} SafetyInstance instance + */ + SafetyInstance.create = function create(properties) { + return new SafetyInstance(properties); + }; + + /** + * Encodes the specified SafetyInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.SafetyInstance.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.SafetyInstance + * @static + * @param {google.cloud.aiplatform.v1.ISafetyInstance} message SafetyInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SafetyInstance.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.prediction != null && Object.hasOwnProperty.call(message, "prediction")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.prediction); + return writer; + }; + + /** + * Encodes the specified SafetyInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SafetyInstance.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.SafetyInstance + * @static + * @param {google.cloud.aiplatform.v1.ISafetyInstance} message SafetyInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SafetyInstance.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SafetyInstance message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.SafetyInstance + * @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.SafetyInstance} SafetyInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SafetyInstance.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.SafetyInstance(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.prediction = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SafetyInstance message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.SafetyInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.SafetyInstance} SafetyInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SafetyInstance.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SafetyInstance message. + * @function verify + * @memberof google.cloud.aiplatform.v1.SafetyInstance + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SafetyInstance.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.prediction != null && message.hasOwnProperty("prediction")) { + properties._prediction = 1; + if (!$util.isString(message.prediction)) + return "prediction: string expected"; + } + return null; + }; + + /** + * Creates a SafetyInstance message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.SafetyInstance + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.SafetyInstance} SafetyInstance + */ + SafetyInstance.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.SafetyInstance) + return object; + var message = new $root.google.cloud.aiplatform.v1.SafetyInstance(); + if (object.prediction != null) + message.prediction = String(object.prediction); + return message; + }; + + /** + * Creates a plain object from a SafetyInstance message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.SafetyInstance + * @static + * @param {google.cloud.aiplatform.v1.SafetyInstance} message SafetyInstance + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SafetyInstance.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.prediction != null && message.hasOwnProperty("prediction")) { + object.prediction = message.prediction; + if (options.oneofs) + object._prediction = "prediction"; + } + return object; + }; + + /** + * Converts this SafetyInstance to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.SafetyInstance + * @instance + * @returns {Object.} JSON object + */ + SafetyInstance.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SafetyInstance + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.SafetyInstance + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SafetyInstance.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.SafetyInstance"; + }; + + return SafetyInstance; + })(); + + v1.SafetySpec = (function() { + + /** + * Properties of a SafetySpec. + * @memberof google.cloud.aiplatform.v1 + * @interface ISafetySpec + * @property {number|null} [version] SafetySpec version + */ + + /** + * Constructs a new SafetySpec. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a SafetySpec. + * @implements ISafetySpec + * @constructor + * @param {google.cloud.aiplatform.v1.ISafetySpec=} [properties] Properties to set + */ + function SafetySpec(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]]; + } + + /** + * SafetySpec version. + * @member {number} version + * @memberof google.cloud.aiplatform.v1.SafetySpec + * @instance + */ + SafetySpec.prototype.version = 0; + + /** + * Creates a new SafetySpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.SafetySpec + * @static + * @param {google.cloud.aiplatform.v1.ISafetySpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.SafetySpec} SafetySpec instance + */ + SafetySpec.create = function create(properties) { + return new SafetySpec(properties); + }; + + /** + * Encodes the specified SafetySpec message. Does not implicitly {@link google.cloud.aiplatform.v1.SafetySpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.SafetySpec + * @static + * @param {google.cloud.aiplatform.v1.ISafetySpec} message SafetySpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SafetySpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.version); + return writer; + }; + + /** + * Encodes the specified SafetySpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SafetySpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.SafetySpec + * @static + * @param {google.cloud.aiplatform.v1.ISafetySpec} message SafetySpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SafetySpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SafetySpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.SafetySpec + * @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.SafetySpec} SafetySpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SafetySpec.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.SafetySpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.version = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SafetySpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.SafetySpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.SafetySpec} SafetySpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SafetySpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SafetySpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1.SafetySpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SafetySpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isInteger(message.version)) + return "version: integer expected"; + return null; + }; + + /** + * Creates a SafetySpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.SafetySpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.SafetySpec} SafetySpec + */ + SafetySpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.SafetySpec) + return object; + var message = new $root.google.cloud.aiplatform.v1.SafetySpec(); + if (object.version != null) + message.version = object.version | 0; + return message; + }; + + /** + * Creates a plain object from a SafetySpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.SafetySpec + * @static + * @param {google.cloud.aiplatform.v1.SafetySpec} message SafetySpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SafetySpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.version = 0; + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + return object; + }; + + /** + * Converts this SafetySpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.SafetySpec + * @instance + * @returns {Object.} JSON object + */ + SafetySpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SafetySpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.SafetySpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SafetySpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.SafetySpec"; + }; + + return SafetySpec; + })(); + + v1.SafetyResult = (function() { + + /** + * Properties of a SafetyResult. + * @memberof google.cloud.aiplatform.v1 + * @interface ISafetyResult + * @property {number|null} [score] SafetyResult score + * @property {string|null} [explanation] SafetyResult explanation + * @property {number|null} [confidence] SafetyResult confidence + */ + + /** + * Constructs a new SafetyResult. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a SafetyResult. + * @implements ISafetyResult + * @constructor + * @param {google.cloud.aiplatform.v1.ISafetyResult=} [properties] Properties to set + */ + function SafetyResult(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]]; + } + + /** + * SafetyResult score. + * @member {number|null|undefined} score + * @memberof google.cloud.aiplatform.v1.SafetyResult + * @instance + */ + SafetyResult.prototype.score = null; + + /** + * SafetyResult explanation. + * @member {string} explanation + * @memberof google.cloud.aiplatform.v1.SafetyResult + * @instance + */ + SafetyResult.prototype.explanation = ""; + + /** + * SafetyResult confidence. + * @member {number|null|undefined} confidence + * @memberof google.cloud.aiplatform.v1.SafetyResult + * @instance + */ + SafetyResult.prototype.confidence = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * SafetyResult _score. + * @member {"score"|undefined} _score + * @memberof google.cloud.aiplatform.v1.SafetyResult + * @instance + */ + Object.defineProperty(SafetyResult.prototype, "_score", { + get: $util.oneOfGetter($oneOfFields = ["score"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SafetyResult _confidence. + * @member {"confidence"|undefined} _confidence + * @memberof google.cloud.aiplatform.v1.SafetyResult + * @instance + */ + Object.defineProperty(SafetyResult.prototype, "_confidence", { + get: $util.oneOfGetter($oneOfFields = ["confidence"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new SafetyResult instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.SafetyResult + * @static + * @param {google.cloud.aiplatform.v1.ISafetyResult=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.SafetyResult} SafetyResult instance + */ + SafetyResult.create = function create(properties) { + return new SafetyResult(properties); + }; + + /** + * Encodes the specified SafetyResult message. Does not implicitly {@link google.cloud.aiplatform.v1.SafetyResult.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.SafetyResult + * @static + * @param {google.cloud.aiplatform.v1.ISafetyResult} message SafetyResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SafetyResult.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.score != null && Object.hasOwnProperty.call(message, "score")) + writer.uint32(/* id 1, wireType 5 =*/13).float(message.score); + if (message.explanation != null && Object.hasOwnProperty.call(message, "explanation")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.explanation); + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) + writer.uint32(/* id 3, wireType 5 =*/29).float(message.confidence); + return writer; + }; + + /** + * Encodes the specified SafetyResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SafetyResult.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.SafetyResult + * @static + * @param {google.cloud.aiplatform.v1.ISafetyResult} message SafetyResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SafetyResult.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SafetyResult message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.SafetyResult + * @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.SafetyResult} SafetyResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SafetyResult.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.SafetyResult(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.score = reader.float(); + break; + } + case 2: { + message.explanation = reader.string(); + break; + } + case 3: { + message.confidence = reader.float(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SafetyResult message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.SafetyResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.SafetyResult} SafetyResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SafetyResult.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SafetyResult message. + * @function verify + * @memberof google.cloud.aiplatform.v1.SafetyResult + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SafetyResult.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.score != null && message.hasOwnProperty("score")) { + properties._score = 1; + if (typeof message.score !== "number") + return "score: number expected"; + } + if (message.explanation != null && message.hasOwnProperty("explanation")) + if (!$util.isString(message.explanation)) + return "explanation: string expected"; + if (message.confidence != null && message.hasOwnProperty("confidence")) { + properties._confidence = 1; + if (typeof message.confidence !== "number") + return "confidence: number expected"; + } + return null; + }; + + /** + * Creates a SafetyResult message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.SafetyResult + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.SafetyResult} SafetyResult + */ + SafetyResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.SafetyResult) + return object; + var message = new $root.google.cloud.aiplatform.v1.SafetyResult(); + if (object.score != null) + message.score = Number(object.score); + if (object.explanation != null) + message.explanation = String(object.explanation); + if (object.confidence != null) + message.confidence = Number(object.confidence); + return message; + }; + + /** + * Creates a plain object from a SafetyResult message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.SafetyResult + * @static + * @param {google.cloud.aiplatform.v1.SafetyResult} message SafetyResult + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SafetyResult.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.explanation = ""; + if (message.score != null && message.hasOwnProperty("score")) { + object.score = options.json && !isFinite(message.score) ? String(message.score) : message.score; + if (options.oneofs) + object._score = "score"; + } + if (message.explanation != null && message.hasOwnProperty("explanation")) + object.explanation = message.explanation; + if (message.confidence != null && message.hasOwnProperty("confidence")) { + object.confidence = options.json && !isFinite(message.confidence) ? String(message.confidence) : message.confidence; + if (options.oneofs) + object._confidence = "confidence"; + } + return object; + }; + + /** + * Converts this SafetyResult to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.SafetyResult + * @instance + * @returns {Object.} JSON object + */ + SafetyResult.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SafetyResult + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.SafetyResult + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SafetyResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.SafetyResult"; + }; + + return SafetyResult; + })(); + + v1.GroundednessInput = (function() { + + /** + * Properties of a GroundednessInput. + * @memberof google.cloud.aiplatform.v1 + * @interface IGroundednessInput + * @property {google.cloud.aiplatform.v1.IGroundednessSpec|null} [metricSpec] GroundednessInput metricSpec + * @property {google.cloud.aiplatform.v1.IGroundednessInstance|null} [instance] GroundednessInput instance + */ + + /** + * Constructs a new GroundednessInput. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a GroundednessInput. + * @implements IGroundednessInput + * @constructor + * @param {google.cloud.aiplatform.v1.IGroundednessInput=} [properties] Properties to set + */ + function GroundednessInput(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]]; + } + + /** + * GroundednessInput metricSpec. + * @member {google.cloud.aiplatform.v1.IGroundednessSpec|null|undefined} metricSpec + * @memberof google.cloud.aiplatform.v1.GroundednessInput + * @instance + */ + GroundednessInput.prototype.metricSpec = null; + + /** + * GroundednessInput instance. + * @member {google.cloud.aiplatform.v1.IGroundednessInstance|null|undefined} instance + * @memberof google.cloud.aiplatform.v1.GroundednessInput + * @instance + */ + GroundednessInput.prototype.instance = null; + + /** + * Creates a new GroundednessInput instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.GroundednessInput + * @static + * @param {google.cloud.aiplatform.v1.IGroundednessInput=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.GroundednessInput} GroundednessInput instance + */ + GroundednessInput.create = function create(properties) { + return new GroundednessInput(properties); + }; + + /** + * Encodes the specified GroundednessInput message. Does not implicitly {@link google.cloud.aiplatform.v1.GroundednessInput.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.GroundednessInput + * @static + * @param {google.cloud.aiplatform.v1.IGroundednessInput} message GroundednessInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GroundednessInput.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.metricSpec != null && Object.hasOwnProperty.call(message, "metricSpec")) + $root.google.cloud.aiplatform.v1.GroundednessSpec.encode(message.metricSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.instance != null && Object.hasOwnProperty.call(message, "instance")) + $root.google.cloud.aiplatform.v1.GroundednessInstance.encode(message.instance, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified GroundednessInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GroundednessInput.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.GroundednessInput + * @static + * @param {google.cloud.aiplatform.v1.IGroundednessInput} message GroundednessInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GroundednessInput.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GroundednessInput message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.GroundednessInput + * @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.GroundednessInput} GroundednessInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GroundednessInput.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.GroundednessInput(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.metricSpec = $root.google.cloud.aiplatform.v1.GroundednessSpec.decode(reader, reader.uint32()); + break; + } + case 2: { + message.instance = $root.google.cloud.aiplatform.v1.GroundednessInstance.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GroundednessInput message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.GroundednessInput + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.GroundednessInput} GroundednessInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GroundednessInput.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GroundednessInput message. + * @function verify + * @memberof google.cloud.aiplatform.v1.GroundednessInput + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GroundednessInput.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) { + var error = $root.google.cloud.aiplatform.v1.GroundednessSpec.verify(message.metricSpec); + if (error) + return "metricSpec." + error; + } + if (message.instance != null && message.hasOwnProperty("instance")) { + var error = $root.google.cloud.aiplatform.v1.GroundednessInstance.verify(message.instance); + if (error) + return "instance." + error; + } + return null; + }; + + /** + * Creates a GroundednessInput message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.GroundednessInput + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.GroundednessInput} GroundednessInput + */ + GroundednessInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.GroundednessInput) + return object; + var message = new $root.google.cloud.aiplatform.v1.GroundednessInput(); + if (object.metricSpec != null) { + if (typeof object.metricSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.GroundednessInput.metricSpec: object expected"); + message.metricSpec = $root.google.cloud.aiplatform.v1.GroundednessSpec.fromObject(object.metricSpec); + } + if (object.instance != null) { + if (typeof object.instance !== "object") + throw TypeError(".google.cloud.aiplatform.v1.GroundednessInput.instance: object expected"); + message.instance = $root.google.cloud.aiplatform.v1.GroundednessInstance.fromObject(object.instance); + } + return message; + }; + + /** + * Creates a plain object from a GroundednessInput message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.GroundednessInput + * @static + * @param {google.cloud.aiplatform.v1.GroundednessInput} message GroundednessInput + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GroundednessInput.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.metricSpec = null; + object.instance = null; + } + if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) + object.metricSpec = $root.google.cloud.aiplatform.v1.GroundednessSpec.toObject(message.metricSpec, options); + if (message.instance != null && message.hasOwnProperty("instance")) + object.instance = $root.google.cloud.aiplatform.v1.GroundednessInstance.toObject(message.instance, options); + return object; + }; + + /** + * Converts this GroundednessInput to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.GroundednessInput + * @instance + * @returns {Object.} JSON object + */ + GroundednessInput.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GroundednessInput + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.GroundednessInput + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GroundednessInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.GroundednessInput"; + }; + + return GroundednessInput; + })(); + + v1.GroundednessInstance = (function() { + + /** + * Properties of a GroundednessInstance. + * @memberof google.cloud.aiplatform.v1 + * @interface IGroundednessInstance + * @property {string|null} [prediction] GroundednessInstance prediction + * @property {string|null} [context] GroundednessInstance context + */ + + /** + * Constructs a new GroundednessInstance. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a GroundednessInstance. + * @implements IGroundednessInstance + * @constructor + * @param {google.cloud.aiplatform.v1.IGroundednessInstance=} [properties] Properties to set + */ + function GroundednessInstance(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]]; + } + + /** + * GroundednessInstance prediction. + * @member {string|null|undefined} prediction + * @memberof google.cloud.aiplatform.v1.GroundednessInstance + * @instance + */ + GroundednessInstance.prototype.prediction = null; + + /** + * GroundednessInstance context. + * @member {string|null|undefined} context + * @memberof google.cloud.aiplatform.v1.GroundednessInstance + * @instance + */ + GroundednessInstance.prototype.context = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * GroundednessInstance _prediction. + * @member {"prediction"|undefined} _prediction + * @memberof google.cloud.aiplatform.v1.GroundednessInstance + * @instance + */ + Object.defineProperty(GroundednessInstance.prototype, "_prediction", { + get: $util.oneOfGetter($oneOfFields = ["prediction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * GroundednessInstance _context. + * @member {"context"|undefined} _context + * @memberof google.cloud.aiplatform.v1.GroundednessInstance + * @instance + */ + Object.defineProperty(GroundednessInstance.prototype, "_context", { + get: $util.oneOfGetter($oneOfFields = ["context"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new GroundednessInstance instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.GroundednessInstance + * @static + * @param {google.cloud.aiplatform.v1.IGroundednessInstance=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.GroundednessInstance} GroundednessInstance instance + */ + GroundednessInstance.create = function create(properties) { + return new GroundednessInstance(properties); + }; + + /** + * Encodes the specified GroundednessInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.GroundednessInstance.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.GroundednessInstance + * @static + * @param {google.cloud.aiplatform.v1.IGroundednessInstance} message GroundednessInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GroundednessInstance.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.prediction != null && Object.hasOwnProperty.call(message, "prediction")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.prediction); + if (message.context != null && Object.hasOwnProperty.call(message, "context")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.context); + return writer; + }; + + /** + * Encodes the specified GroundednessInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GroundednessInstance.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.GroundednessInstance + * @static + * @param {google.cloud.aiplatform.v1.IGroundednessInstance} message GroundednessInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GroundednessInstance.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GroundednessInstance message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.GroundednessInstance + * @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.GroundednessInstance} GroundednessInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GroundednessInstance.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.GroundednessInstance(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.prediction = reader.string(); + break; + } + case 2: { + message.context = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GroundednessInstance message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.GroundednessInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.GroundednessInstance} GroundednessInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GroundednessInstance.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GroundednessInstance message. + * @function verify + * @memberof google.cloud.aiplatform.v1.GroundednessInstance + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GroundednessInstance.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.prediction != null && message.hasOwnProperty("prediction")) { + properties._prediction = 1; + if (!$util.isString(message.prediction)) + return "prediction: string expected"; + } + if (message.context != null && message.hasOwnProperty("context")) { + properties._context = 1; + if (!$util.isString(message.context)) + return "context: string expected"; + } + return null; + }; + + /** + * Creates a GroundednessInstance message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.GroundednessInstance + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.GroundednessInstance} GroundednessInstance + */ + GroundednessInstance.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.GroundednessInstance) + return object; + var message = new $root.google.cloud.aiplatform.v1.GroundednessInstance(); + if (object.prediction != null) + message.prediction = String(object.prediction); + if (object.context != null) + message.context = String(object.context); + return message; + }; + + /** + * Creates a plain object from a GroundednessInstance message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.GroundednessInstance + * @static + * @param {google.cloud.aiplatform.v1.GroundednessInstance} message GroundednessInstance + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GroundednessInstance.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.prediction != null && message.hasOwnProperty("prediction")) { + object.prediction = message.prediction; + if (options.oneofs) + object._prediction = "prediction"; + } + if (message.context != null && message.hasOwnProperty("context")) { + object.context = message.context; + if (options.oneofs) + object._context = "context"; + } + return object; + }; + + /** + * Converts this GroundednessInstance to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.GroundednessInstance + * @instance + * @returns {Object.} JSON object + */ + GroundednessInstance.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GroundednessInstance + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.GroundednessInstance + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GroundednessInstance.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.GroundednessInstance"; + }; + + return GroundednessInstance; + })(); + + v1.GroundednessSpec = (function() { + + /** + * Properties of a GroundednessSpec. + * @memberof google.cloud.aiplatform.v1 + * @interface IGroundednessSpec + * @property {number|null} [version] GroundednessSpec version + */ + + /** + * Constructs a new GroundednessSpec. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a GroundednessSpec. + * @implements IGroundednessSpec + * @constructor + * @param {google.cloud.aiplatform.v1.IGroundednessSpec=} [properties] Properties to set + */ + function GroundednessSpec(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]]; + } + + /** + * GroundednessSpec version. + * @member {number} version + * @memberof google.cloud.aiplatform.v1.GroundednessSpec + * @instance + */ + GroundednessSpec.prototype.version = 0; + + /** + * Creates a new GroundednessSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.GroundednessSpec + * @static + * @param {google.cloud.aiplatform.v1.IGroundednessSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.GroundednessSpec} GroundednessSpec instance + */ + GroundednessSpec.create = function create(properties) { + return new GroundednessSpec(properties); + }; + + /** + * Encodes the specified GroundednessSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.GroundednessSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.GroundednessSpec + * @static + * @param {google.cloud.aiplatform.v1.IGroundednessSpec} message GroundednessSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GroundednessSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.version); + return writer; + }; + + /** + * Encodes the specified GroundednessSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GroundednessSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.GroundednessSpec + * @static + * @param {google.cloud.aiplatform.v1.IGroundednessSpec} message GroundednessSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GroundednessSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GroundednessSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.GroundednessSpec + * @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.GroundednessSpec} GroundednessSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GroundednessSpec.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.GroundednessSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.version = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GroundednessSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.GroundednessSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.GroundednessSpec} GroundednessSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GroundednessSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GroundednessSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1.GroundednessSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GroundednessSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isInteger(message.version)) + return "version: integer expected"; + return null; + }; + + /** + * Creates a GroundednessSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.GroundednessSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.GroundednessSpec} GroundednessSpec + */ + GroundednessSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.GroundednessSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1.GroundednessSpec(); + if (object.version != null) + message.version = object.version | 0; + return message; + }; + + /** + * Creates a plain object from a GroundednessSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.GroundednessSpec + * @static + * @param {google.cloud.aiplatform.v1.GroundednessSpec} message GroundednessSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GroundednessSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.version = 0; + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + return object; + }; + + /** + * Converts this GroundednessSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.GroundednessSpec + * @instance + * @returns {Object.} JSON object + */ + GroundednessSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GroundednessSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.GroundednessSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GroundednessSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.GroundednessSpec"; + }; + + return GroundednessSpec; + })(); + + v1.GroundednessResult = (function() { + + /** + * Properties of a GroundednessResult. + * @memberof google.cloud.aiplatform.v1 + * @interface IGroundednessResult + * @property {number|null} [score] GroundednessResult score + * @property {string|null} [explanation] GroundednessResult explanation + * @property {number|null} [confidence] GroundednessResult confidence + */ + + /** + * Constructs a new GroundednessResult. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a GroundednessResult. + * @implements IGroundednessResult + * @constructor + * @param {google.cloud.aiplatform.v1.IGroundednessResult=} [properties] Properties to set + */ + function GroundednessResult(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]]; + } + + /** + * GroundednessResult score. + * @member {number|null|undefined} score + * @memberof google.cloud.aiplatform.v1.GroundednessResult + * @instance + */ + GroundednessResult.prototype.score = null; + + /** + * GroundednessResult explanation. + * @member {string} explanation + * @memberof google.cloud.aiplatform.v1.GroundednessResult + * @instance + */ + GroundednessResult.prototype.explanation = ""; + + /** + * GroundednessResult confidence. + * @member {number|null|undefined} confidence + * @memberof google.cloud.aiplatform.v1.GroundednessResult + * @instance + */ + GroundednessResult.prototype.confidence = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * GroundednessResult _score. + * @member {"score"|undefined} _score + * @memberof google.cloud.aiplatform.v1.GroundednessResult + * @instance + */ + Object.defineProperty(GroundednessResult.prototype, "_score", { + get: $util.oneOfGetter($oneOfFields = ["score"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * GroundednessResult _confidence. + * @member {"confidence"|undefined} _confidence + * @memberof google.cloud.aiplatform.v1.GroundednessResult + * @instance + */ + Object.defineProperty(GroundednessResult.prototype, "_confidence", { + get: $util.oneOfGetter($oneOfFields = ["confidence"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new GroundednessResult instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.GroundednessResult + * @static + * @param {google.cloud.aiplatform.v1.IGroundednessResult=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.GroundednessResult} GroundednessResult instance + */ + GroundednessResult.create = function create(properties) { + return new GroundednessResult(properties); + }; + + /** + * Encodes the specified GroundednessResult message. Does not implicitly {@link google.cloud.aiplatform.v1.GroundednessResult.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.GroundednessResult + * @static + * @param {google.cloud.aiplatform.v1.IGroundednessResult} message GroundednessResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GroundednessResult.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.score != null && Object.hasOwnProperty.call(message, "score")) + writer.uint32(/* id 1, wireType 5 =*/13).float(message.score); + if (message.explanation != null && Object.hasOwnProperty.call(message, "explanation")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.explanation); + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) + writer.uint32(/* id 3, wireType 5 =*/29).float(message.confidence); + return writer; + }; + + /** + * Encodes the specified GroundednessResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GroundednessResult.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.GroundednessResult + * @static + * @param {google.cloud.aiplatform.v1.IGroundednessResult} message GroundednessResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GroundednessResult.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GroundednessResult message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.GroundednessResult + * @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.GroundednessResult} GroundednessResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GroundednessResult.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.GroundednessResult(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.score = reader.float(); + break; + } + case 2: { + message.explanation = reader.string(); + break; + } + case 3: { + message.confidence = reader.float(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GroundednessResult message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.GroundednessResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.GroundednessResult} GroundednessResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GroundednessResult.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GroundednessResult message. + * @function verify + * @memberof google.cloud.aiplatform.v1.GroundednessResult + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GroundednessResult.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.score != null && message.hasOwnProperty("score")) { + properties._score = 1; + if (typeof message.score !== "number") + return "score: number expected"; + } + if (message.explanation != null && message.hasOwnProperty("explanation")) + if (!$util.isString(message.explanation)) + return "explanation: string expected"; + if (message.confidence != null && message.hasOwnProperty("confidence")) { + properties._confidence = 1; + if (typeof message.confidence !== "number") + return "confidence: number expected"; + } + return null; + }; + + /** + * Creates a GroundednessResult message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.GroundednessResult + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.GroundednessResult} GroundednessResult + */ + GroundednessResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.GroundednessResult) + return object; + var message = new $root.google.cloud.aiplatform.v1.GroundednessResult(); + if (object.score != null) + message.score = Number(object.score); + if (object.explanation != null) + message.explanation = String(object.explanation); + if (object.confidence != null) + message.confidence = Number(object.confidence); + return message; + }; + + /** + * Creates a plain object from a GroundednessResult message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.GroundednessResult + * @static + * @param {google.cloud.aiplatform.v1.GroundednessResult} message GroundednessResult + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GroundednessResult.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.explanation = ""; + if (message.score != null && message.hasOwnProperty("score")) { + object.score = options.json && !isFinite(message.score) ? String(message.score) : message.score; + if (options.oneofs) + object._score = "score"; + } + if (message.explanation != null && message.hasOwnProperty("explanation")) + object.explanation = message.explanation; + if (message.confidence != null && message.hasOwnProperty("confidence")) { + object.confidence = options.json && !isFinite(message.confidence) ? String(message.confidence) : message.confidence; + if (options.oneofs) + object._confidence = "confidence"; + } + return object; + }; + + /** + * Converts this GroundednessResult to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.GroundednessResult + * @instance + * @returns {Object.} JSON object + */ + GroundednessResult.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GroundednessResult + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.GroundednessResult + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GroundednessResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.GroundednessResult"; + }; + + return GroundednessResult; + })(); + + v1.FulfillmentInput = (function() { + + /** + * Properties of a FulfillmentInput. + * @memberof google.cloud.aiplatform.v1 + * @interface IFulfillmentInput + * @property {google.cloud.aiplatform.v1.IFulfillmentSpec|null} [metricSpec] FulfillmentInput metricSpec + * @property {google.cloud.aiplatform.v1.IFulfillmentInstance|null} [instance] FulfillmentInput instance + */ + + /** + * Constructs a new FulfillmentInput. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a FulfillmentInput. + * @implements IFulfillmentInput + * @constructor + * @param {google.cloud.aiplatform.v1.IFulfillmentInput=} [properties] Properties to set + */ + function FulfillmentInput(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]]; + } + + /** + * FulfillmentInput metricSpec. + * @member {google.cloud.aiplatform.v1.IFulfillmentSpec|null|undefined} metricSpec + * @memberof google.cloud.aiplatform.v1.FulfillmentInput + * @instance + */ + FulfillmentInput.prototype.metricSpec = null; + + /** + * FulfillmentInput instance. + * @member {google.cloud.aiplatform.v1.IFulfillmentInstance|null|undefined} instance + * @memberof google.cloud.aiplatform.v1.FulfillmentInput + * @instance + */ + FulfillmentInput.prototype.instance = null; + + /** + * Creates a new FulfillmentInput instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.FulfillmentInput + * @static + * @param {google.cloud.aiplatform.v1.IFulfillmentInput=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.FulfillmentInput} FulfillmentInput instance + */ + FulfillmentInput.create = function create(properties) { + return new FulfillmentInput(properties); + }; + + /** + * Encodes the specified FulfillmentInput message. Does not implicitly {@link google.cloud.aiplatform.v1.FulfillmentInput.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.FulfillmentInput + * @static + * @param {google.cloud.aiplatform.v1.IFulfillmentInput} message FulfillmentInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FulfillmentInput.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.metricSpec != null && Object.hasOwnProperty.call(message, "metricSpec")) + $root.google.cloud.aiplatform.v1.FulfillmentSpec.encode(message.metricSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.instance != null && Object.hasOwnProperty.call(message, "instance")) + $root.google.cloud.aiplatform.v1.FulfillmentInstance.encode(message.instance, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified FulfillmentInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FulfillmentInput.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.FulfillmentInput + * @static + * @param {google.cloud.aiplatform.v1.IFulfillmentInput} message FulfillmentInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FulfillmentInput.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FulfillmentInput message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.FulfillmentInput + * @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.FulfillmentInput} FulfillmentInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FulfillmentInput.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.FulfillmentInput(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.metricSpec = $root.google.cloud.aiplatform.v1.FulfillmentSpec.decode(reader, reader.uint32()); + break; + } + case 2: { + message.instance = $root.google.cloud.aiplatform.v1.FulfillmentInstance.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FulfillmentInput message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.FulfillmentInput + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.FulfillmentInput} FulfillmentInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FulfillmentInput.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FulfillmentInput message. + * @function verify + * @memberof google.cloud.aiplatform.v1.FulfillmentInput + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FulfillmentInput.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) { + var error = $root.google.cloud.aiplatform.v1.FulfillmentSpec.verify(message.metricSpec); + if (error) + return "metricSpec." + error; + } + if (message.instance != null && message.hasOwnProperty("instance")) { + var error = $root.google.cloud.aiplatform.v1.FulfillmentInstance.verify(message.instance); + if (error) + return "instance." + error; + } + return null; + }; + + /** + * Creates a FulfillmentInput message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.FulfillmentInput + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.FulfillmentInput} FulfillmentInput + */ + FulfillmentInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.FulfillmentInput) + return object; + var message = new $root.google.cloud.aiplatform.v1.FulfillmentInput(); + if (object.metricSpec != null) { + if (typeof object.metricSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.FulfillmentInput.metricSpec: object expected"); + message.metricSpec = $root.google.cloud.aiplatform.v1.FulfillmentSpec.fromObject(object.metricSpec); + } + if (object.instance != null) { + if (typeof object.instance !== "object") + throw TypeError(".google.cloud.aiplatform.v1.FulfillmentInput.instance: object expected"); + message.instance = $root.google.cloud.aiplatform.v1.FulfillmentInstance.fromObject(object.instance); + } + return message; + }; + + /** + * Creates a plain object from a FulfillmentInput message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.FulfillmentInput + * @static + * @param {google.cloud.aiplatform.v1.FulfillmentInput} message FulfillmentInput + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FulfillmentInput.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.metricSpec = null; + object.instance = null; + } + if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) + object.metricSpec = $root.google.cloud.aiplatform.v1.FulfillmentSpec.toObject(message.metricSpec, options); + if (message.instance != null && message.hasOwnProperty("instance")) + object.instance = $root.google.cloud.aiplatform.v1.FulfillmentInstance.toObject(message.instance, options); + return object; + }; + + /** + * Converts this FulfillmentInput to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.FulfillmentInput + * @instance + * @returns {Object.} JSON object + */ + FulfillmentInput.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FulfillmentInput + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.FulfillmentInput + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FulfillmentInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.FulfillmentInput"; + }; + + return FulfillmentInput; + })(); + + v1.FulfillmentInstance = (function() { + + /** + * Properties of a FulfillmentInstance. + * @memberof google.cloud.aiplatform.v1 + * @interface IFulfillmentInstance + * @property {string|null} [prediction] FulfillmentInstance prediction + * @property {string|null} [instruction] FulfillmentInstance instruction + */ + + /** + * Constructs a new FulfillmentInstance. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a FulfillmentInstance. + * @implements IFulfillmentInstance + * @constructor + * @param {google.cloud.aiplatform.v1.IFulfillmentInstance=} [properties] Properties to set + */ + function FulfillmentInstance(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]]; + } + + /** + * FulfillmentInstance prediction. + * @member {string|null|undefined} prediction + * @memberof google.cloud.aiplatform.v1.FulfillmentInstance + * @instance + */ + FulfillmentInstance.prototype.prediction = null; + + /** + * FulfillmentInstance instruction. + * @member {string|null|undefined} instruction + * @memberof google.cloud.aiplatform.v1.FulfillmentInstance + * @instance + */ + FulfillmentInstance.prototype.instruction = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * FulfillmentInstance _prediction. + * @member {"prediction"|undefined} _prediction + * @memberof google.cloud.aiplatform.v1.FulfillmentInstance + * @instance + */ + Object.defineProperty(FulfillmentInstance.prototype, "_prediction", { + get: $util.oneOfGetter($oneOfFields = ["prediction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * FulfillmentInstance _instruction. + * @member {"instruction"|undefined} _instruction + * @memberof google.cloud.aiplatform.v1.FulfillmentInstance + * @instance + */ + Object.defineProperty(FulfillmentInstance.prototype, "_instruction", { + get: $util.oneOfGetter($oneOfFields = ["instruction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new FulfillmentInstance instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.FulfillmentInstance + * @static + * @param {google.cloud.aiplatform.v1.IFulfillmentInstance=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.FulfillmentInstance} FulfillmentInstance instance + */ + FulfillmentInstance.create = function create(properties) { + return new FulfillmentInstance(properties); + }; + + /** + * Encodes the specified FulfillmentInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.FulfillmentInstance.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.FulfillmentInstance + * @static + * @param {google.cloud.aiplatform.v1.IFulfillmentInstance} message FulfillmentInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FulfillmentInstance.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.prediction != null && Object.hasOwnProperty.call(message, "prediction")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.prediction); + if (message.instruction != null && Object.hasOwnProperty.call(message, "instruction")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.instruction); + return writer; + }; + + /** + * Encodes the specified FulfillmentInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FulfillmentInstance.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.FulfillmentInstance + * @static + * @param {google.cloud.aiplatform.v1.IFulfillmentInstance} message FulfillmentInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FulfillmentInstance.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FulfillmentInstance message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.FulfillmentInstance + * @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.FulfillmentInstance} FulfillmentInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FulfillmentInstance.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.FulfillmentInstance(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.prediction = reader.string(); + break; + } + case 2: { + message.instruction = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FulfillmentInstance message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.FulfillmentInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.FulfillmentInstance} FulfillmentInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FulfillmentInstance.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FulfillmentInstance message. + * @function verify + * @memberof google.cloud.aiplatform.v1.FulfillmentInstance + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FulfillmentInstance.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.prediction != null && message.hasOwnProperty("prediction")) { + properties._prediction = 1; + if (!$util.isString(message.prediction)) + return "prediction: string expected"; + } + if (message.instruction != null && message.hasOwnProperty("instruction")) { + properties._instruction = 1; + if (!$util.isString(message.instruction)) + return "instruction: string expected"; + } + return null; + }; + + /** + * Creates a FulfillmentInstance message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.FulfillmentInstance + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.FulfillmentInstance} FulfillmentInstance + */ + FulfillmentInstance.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.FulfillmentInstance) + return object; + var message = new $root.google.cloud.aiplatform.v1.FulfillmentInstance(); + if (object.prediction != null) + message.prediction = String(object.prediction); + if (object.instruction != null) + message.instruction = String(object.instruction); + return message; + }; + + /** + * Creates a plain object from a FulfillmentInstance message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.FulfillmentInstance + * @static + * @param {google.cloud.aiplatform.v1.FulfillmentInstance} message FulfillmentInstance + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FulfillmentInstance.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.prediction != null && message.hasOwnProperty("prediction")) { + object.prediction = message.prediction; + if (options.oneofs) + object._prediction = "prediction"; + } + if (message.instruction != null && message.hasOwnProperty("instruction")) { + object.instruction = message.instruction; + if (options.oneofs) + object._instruction = "instruction"; + } + return object; + }; + + /** + * Converts this FulfillmentInstance to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.FulfillmentInstance + * @instance + * @returns {Object.} JSON object + */ + FulfillmentInstance.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FulfillmentInstance + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.FulfillmentInstance + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FulfillmentInstance.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.FulfillmentInstance"; + }; + + return FulfillmentInstance; + })(); + + v1.FulfillmentSpec = (function() { + + /** + * Properties of a FulfillmentSpec. + * @memberof google.cloud.aiplatform.v1 + * @interface IFulfillmentSpec + * @property {number|null} [version] FulfillmentSpec version + */ + + /** + * Constructs a new FulfillmentSpec. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a FulfillmentSpec. + * @implements IFulfillmentSpec + * @constructor + * @param {google.cloud.aiplatform.v1.IFulfillmentSpec=} [properties] Properties to set + */ + function FulfillmentSpec(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]]; + } + + /** + * FulfillmentSpec version. + * @member {number} version + * @memberof google.cloud.aiplatform.v1.FulfillmentSpec + * @instance + */ + FulfillmentSpec.prototype.version = 0; + + /** + * Creates a new FulfillmentSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.FulfillmentSpec + * @static + * @param {google.cloud.aiplatform.v1.IFulfillmentSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.FulfillmentSpec} FulfillmentSpec instance + */ + FulfillmentSpec.create = function create(properties) { + return new FulfillmentSpec(properties); + }; + + /** + * Encodes the specified FulfillmentSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.FulfillmentSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.FulfillmentSpec + * @static + * @param {google.cloud.aiplatform.v1.IFulfillmentSpec} message FulfillmentSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FulfillmentSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.version); + return writer; + }; + + /** + * Encodes the specified FulfillmentSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FulfillmentSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.FulfillmentSpec + * @static + * @param {google.cloud.aiplatform.v1.IFulfillmentSpec} message FulfillmentSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FulfillmentSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FulfillmentSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.FulfillmentSpec + * @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.FulfillmentSpec} FulfillmentSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FulfillmentSpec.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.FulfillmentSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.version = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FulfillmentSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.FulfillmentSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.FulfillmentSpec} FulfillmentSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FulfillmentSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FulfillmentSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1.FulfillmentSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FulfillmentSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isInteger(message.version)) + return "version: integer expected"; + return null; + }; + + /** + * Creates a FulfillmentSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.FulfillmentSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.FulfillmentSpec} FulfillmentSpec + */ + FulfillmentSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.FulfillmentSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1.FulfillmentSpec(); + if (object.version != null) + message.version = object.version | 0; + return message; + }; + + /** + * Creates a plain object from a FulfillmentSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.FulfillmentSpec + * @static + * @param {google.cloud.aiplatform.v1.FulfillmentSpec} message FulfillmentSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FulfillmentSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.version = 0; + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + return object; + }; + + /** + * Converts this FulfillmentSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.FulfillmentSpec + * @instance + * @returns {Object.} JSON object + */ + FulfillmentSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FulfillmentSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.FulfillmentSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FulfillmentSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.FulfillmentSpec"; + }; + + return FulfillmentSpec; + })(); + + v1.FulfillmentResult = (function() { + + /** + * Properties of a FulfillmentResult. + * @memberof google.cloud.aiplatform.v1 + * @interface IFulfillmentResult + * @property {number|null} [score] FulfillmentResult score + * @property {string|null} [explanation] FulfillmentResult explanation + * @property {number|null} [confidence] FulfillmentResult confidence + */ + + /** + * Constructs a new FulfillmentResult. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a FulfillmentResult. + * @implements IFulfillmentResult + * @constructor + * @param {google.cloud.aiplatform.v1.IFulfillmentResult=} [properties] Properties to set + */ + function FulfillmentResult(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]]; + } + + /** + * FulfillmentResult score. + * @member {number|null|undefined} score + * @memberof google.cloud.aiplatform.v1.FulfillmentResult + * @instance + */ + FulfillmentResult.prototype.score = null; + + /** + * FulfillmentResult explanation. + * @member {string} explanation + * @memberof google.cloud.aiplatform.v1.FulfillmentResult + * @instance + */ + FulfillmentResult.prototype.explanation = ""; + + /** + * FulfillmentResult confidence. + * @member {number|null|undefined} confidence + * @memberof google.cloud.aiplatform.v1.FulfillmentResult + * @instance + */ + FulfillmentResult.prototype.confidence = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * FulfillmentResult _score. + * @member {"score"|undefined} _score + * @memberof google.cloud.aiplatform.v1.FulfillmentResult + * @instance + */ + Object.defineProperty(FulfillmentResult.prototype, "_score", { + get: $util.oneOfGetter($oneOfFields = ["score"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * FulfillmentResult _confidence. + * @member {"confidence"|undefined} _confidence + * @memberof google.cloud.aiplatform.v1.FulfillmentResult + * @instance + */ + Object.defineProperty(FulfillmentResult.prototype, "_confidence", { + get: $util.oneOfGetter($oneOfFields = ["confidence"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new FulfillmentResult instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.FulfillmentResult + * @static + * @param {google.cloud.aiplatform.v1.IFulfillmentResult=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.FulfillmentResult} FulfillmentResult instance + */ + FulfillmentResult.create = function create(properties) { + return new FulfillmentResult(properties); + }; + + /** + * Encodes the specified FulfillmentResult message. Does not implicitly {@link google.cloud.aiplatform.v1.FulfillmentResult.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.FulfillmentResult + * @static + * @param {google.cloud.aiplatform.v1.IFulfillmentResult} message FulfillmentResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FulfillmentResult.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.score != null && Object.hasOwnProperty.call(message, "score")) + writer.uint32(/* id 1, wireType 5 =*/13).float(message.score); + if (message.explanation != null && Object.hasOwnProperty.call(message, "explanation")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.explanation); + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) + writer.uint32(/* id 3, wireType 5 =*/29).float(message.confidence); + return writer; + }; + + /** + * Encodes the specified FulfillmentResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FulfillmentResult.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.FulfillmentResult + * @static + * @param {google.cloud.aiplatform.v1.IFulfillmentResult} message FulfillmentResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FulfillmentResult.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FulfillmentResult message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.FulfillmentResult + * @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.FulfillmentResult} FulfillmentResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FulfillmentResult.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.FulfillmentResult(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.score = reader.float(); + break; + } + case 2: { + message.explanation = reader.string(); + break; + } + case 3: { + message.confidence = reader.float(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FulfillmentResult message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.FulfillmentResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.FulfillmentResult} FulfillmentResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FulfillmentResult.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FulfillmentResult message. + * @function verify + * @memberof google.cloud.aiplatform.v1.FulfillmentResult + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FulfillmentResult.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.score != null && message.hasOwnProperty("score")) { + properties._score = 1; + if (typeof message.score !== "number") + return "score: number expected"; + } + if (message.explanation != null && message.hasOwnProperty("explanation")) + if (!$util.isString(message.explanation)) + return "explanation: string expected"; + if (message.confidence != null && message.hasOwnProperty("confidence")) { + properties._confidence = 1; + if (typeof message.confidence !== "number") + return "confidence: number expected"; + } + return null; + }; + + /** + * Creates a FulfillmentResult message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.FulfillmentResult + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.FulfillmentResult} FulfillmentResult + */ + FulfillmentResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.FulfillmentResult) + return object; + var message = new $root.google.cloud.aiplatform.v1.FulfillmentResult(); + if (object.score != null) + message.score = Number(object.score); + if (object.explanation != null) + message.explanation = String(object.explanation); + if (object.confidence != null) + message.confidence = Number(object.confidence); + return message; + }; + + /** + * Creates a plain object from a FulfillmentResult message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.FulfillmentResult + * @static + * @param {google.cloud.aiplatform.v1.FulfillmentResult} message FulfillmentResult + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FulfillmentResult.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.explanation = ""; + if (message.score != null && message.hasOwnProperty("score")) { + object.score = options.json && !isFinite(message.score) ? String(message.score) : message.score; + if (options.oneofs) + object._score = "score"; + } + if (message.explanation != null && message.hasOwnProperty("explanation")) + object.explanation = message.explanation; + if (message.confidence != null && message.hasOwnProperty("confidence")) { + object.confidence = options.json && !isFinite(message.confidence) ? String(message.confidence) : message.confidence; + if (options.oneofs) + object._confidence = "confidence"; + } + return object; + }; + + /** + * Converts this FulfillmentResult to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.FulfillmentResult + * @instance + * @returns {Object.} JSON object + */ + FulfillmentResult.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FulfillmentResult + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.FulfillmentResult + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FulfillmentResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.FulfillmentResult"; + }; + + return FulfillmentResult; + })(); + + v1.SummarizationQualityInput = (function() { + + /** + * Properties of a SummarizationQualityInput. + * @memberof google.cloud.aiplatform.v1 + * @interface ISummarizationQualityInput + * @property {google.cloud.aiplatform.v1.ISummarizationQualitySpec|null} [metricSpec] SummarizationQualityInput metricSpec + * @property {google.cloud.aiplatform.v1.ISummarizationQualityInstance|null} [instance] SummarizationQualityInput instance + */ + + /** + * Constructs a new SummarizationQualityInput. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a SummarizationQualityInput. + * @implements ISummarizationQualityInput + * @constructor + * @param {google.cloud.aiplatform.v1.ISummarizationQualityInput=} [properties] Properties to set + */ + function SummarizationQualityInput(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]]; + } + + /** + * SummarizationQualityInput metricSpec. + * @member {google.cloud.aiplatform.v1.ISummarizationQualitySpec|null|undefined} metricSpec + * @memberof google.cloud.aiplatform.v1.SummarizationQualityInput + * @instance + */ + SummarizationQualityInput.prototype.metricSpec = null; + + /** + * SummarizationQualityInput instance. + * @member {google.cloud.aiplatform.v1.ISummarizationQualityInstance|null|undefined} instance + * @memberof google.cloud.aiplatform.v1.SummarizationQualityInput + * @instance + */ + SummarizationQualityInput.prototype.instance = null; + + /** + * Creates a new SummarizationQualityInput instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.SummarizationQualityInput + * @static + * @param {google.cloud.aiplatform.v1.ISummarizationQualityInput=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.SummarizationQualityInput} SummarizationQualityInput instance + */ + SummarizationQualityInput.create = function create(properties) { + return new SummarizationQualityInput(properties); + }; + + /** + * Encodes the specified SummarizationQualityInput message. Does not implicitly {@link google.cloud.aiplatform.v1.SummarizationQualityInput.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.SummarizationQualityInput + * @static + * @param {google.cloud.aiplatform.v1.ISummarizationQualityInput} message SummarizationQualityInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SummarizationQualityInput.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.metricSpec != null && Object.hasOwnProperty.call(message, "metricSpec")) + $root.google.cloud.aiplatform.v1.SummarizationQualitySpec.encode(message.metricSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.instance != null && Object.hasOwnProperty.call(message, "instance")) + $root.google.cloud.aiplatform.v1.SummarizationQualityInstance.encode(message.instance, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified SummarizationQualityInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SummarizationQualityInput.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.SummarizationQualityInput + * @static + * @param {google.cloud.aiplatform.v1.ISummarizationQualityInput} message SummarizationQualityInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SummarizationQualityInput.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SummarizationQualityInput message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.SummarizationQualityInput + * @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.SummarizationQualityInput} SummarizationQualityInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SummarizationQualityInput.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.SummarizationQualityInput(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.metricSpec = $root.google.cloud.aiplatform.v1.SummarizationQualitySpec.decode(reader, reader.uint32()); + break; + } + case 2: { + message.instance = $root.google.cloud.aiplatform.v1.SummarizationQualityInstance.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SummarizationQualityInput message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.SummarizationQualityInput + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.SummarizationQualityInput} SummarizationQualityInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SummarizationQualityInput.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SummarizationQualityInput message. + * @function verify + * @memberof google.cloud.aiplatform.v1.SummarizationQualityInput + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SummarizationQualityInput.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) { + var error = $root.google.cloud.aiplatform.v1.SummarizationQualitySpec.verify(message.metricSpec); + if (error) + return "metricSpec." + error; + } + if (message.instance != null && message.hasOwnProperty("instance")) { + var error = $root.google.cloud.aiplatform.v1.SummarizationQualityInstance.verify(message.instance); + if (error) + return "instance." + error; + } + return null; + }; + + /** + * Creates a SummarizationQualityInput message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.SummarizationQualityInput + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.SummarizationQualityInput} SummarizationQualityInput + */ + SummarizationQualityInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.SummarizationQualityInput) + return object; + var message = new $root.google.cloud.aiplatform.v1.SummarizationQualityInput(); + if (object.metricSpec != null) { + if (typeof object.metricSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.SummarizationQualityInput.metricSpec: object expected"); + message.metricSpec = $root.google.cloud.aiplatform.v1.SummarizationQualitySpec.fromObject(object.metricSpec); + } + if (object.instance != null) { + if (typeof object.instance !== "object") + throw TypeError(".google.cloud.aiplatform.v1.SummarizationQualityInput.instance: object expected"); + message.instance = $root.google.cloud.aiplatform.v1.SummarizationQualityInstance.fromObject(object.instance); + } + return message; + }; + + /** + * Creates a plain object from a SummarizationQualityInput message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.SummarizationQualityInput + * @static + * @param {google.cloud.aiplatform.v1.SummarizationQualityInput} message SummarizationQualityInput + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SummarizationQualityInput.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.metricSpec = null; + object.instance = null; + } + if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) + object.metricSpec = $root.google.cloud.aiplatform.v1.SummarizationQualitySpec.toObject(message.metricSpec, options); + if (message.instance != null && message.hasOwnProperty("instance")) + object.instance = $root.google.cloud.aiplatform.v1.SummarizationQualityInstance.toObject(message.instance, options); + return object; + }; + + /** + * Converts this SummarizationQualityInput to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.SummarizationQualityInput + * @instance + * @returns {Object.} JSON object + */ + SummarizationQualityInput.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SummarizationQualityInput + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.SummarizationQualityInput + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SummarizationQualityInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.SummarizationQualityInput"; + }; + + return SummarizationQualityInput; + })(); + + v1.SummarizationQualityInstance = (function() { + + /** + * Properties of a SummarizationQualityInstance. + * @memberof google.cloud.aiplatform.v1 + * @interface ISummarizationQualityInstance + * @property {string|null} [prediction] SummarizationQualityInstance prediction + * @property {string|null} [reference] SummarizationQualityInstance reference + * @property {string|null} [context] SummarizationQualityInstance context + * @property {string|null} [instruction] SummarizationQualityInstance instruction + */ + + /** + * Constructs a new SummarizationQualityInstance. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a SummarizationQualityInstance. + * @implements ISummarizationQualityInstance + * @constructor + * @param {google.cloud.aiplatform.v1.ISummarizationQualityInstance=} [properties] Properties to set + */ + function SummarizationQualityInstance(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]]; + } + + /** + * SummarizationQualityInstance prediction. + * @member {string|null|undefined} prediction + * @memberof google.cloud.aiplatform.v1.SummarizationQualityInstance + * @instance + */ + SummarizationQualityInstance.prototype.prediction = null; + + /** + * SummarizationQualityInstance reference. + * @member {string|null|undefined} reference + * @memberof google.cloud.aiplatform.v1.SummarizationQualityInstance + * @instance + */ + SummarizationQualityInstance.prototype.reference = null; + + /** + * SummarizationQualityInstance context. + * @member {string|null|undefined} context + * @memberof google.cloud.aiplatform.v1.SummarizationQualityInstance + * @instance + */ + SummarizationQualityInstance.prototype.context = null; + + /** + * SummarizationQualityInstance instruction. + * @member {string|null|undefined} instruction + * @memberof google.cloud.aiplatform.v1.SummarizationQualityInstance + * @instance + */ + SummarizationQualityInstance.prototype.instruction = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * SummarizationQualityInstance _prediction. + * @member {"prediction"|undefined} _prediction + * @memberof google.cloud.aiplatform.v1.SummarizationQualityInstance + * @instance + */ + Object.defineProperty(SummarizationQualityInstance.prototype, "_prediction", { + get: $util.oneOfGetter($oneOfFields = ["prediction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SummarizationQualityInstance _reference. + * @member {"reference"|undefined} _reference + * @memberof google.cloud.aiplatform.v1.SummarizationQualityInstance + * @instance + */ + Object.defineProperty(SummarizationQualityInstance.prototype, "_reference", { + get: $util.oneOfGetter($oneOfFields = ["reference"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SummarizationQualityInstance _context. + * @member {"context"|undefined} _context + * @memberof google.cloud.aiplatform.v1.SummarizationQualityInstance + * @instance + */ + Object.defineProperty(SummarizationQualityInstance.prototype, "_context", { + get: $util.oneOfGetter($oneOfFields = ["context"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SummarizationQualityInstance _instruction. + * @member {"instruction"|undefined} _instruction + * @memberof google.cloud.aiplatform.v1.SummarizationQualityInstance + * @instance + */ + Object.defineProperty(SummarizationQualityInstance.prototype, "_instruction", { + get: $util.oneOfGetter($oneOfFields = ["instruction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new SummarizationQualityInstance instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.SummarizationQualityInstance + * @static + * @param {google.cloud.aiplatform.v1.ISummarizationQualityInstance=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.SummarizationQualityInstance} SummarizationQualityInstance instance + */ + SummarizationQualityInstance.create = function create(properties) { + return new SummarizationQualityInstance(properties); + }; + + /** + * Encodes the specified SummarizationQualityInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.SummarizationQualityInstance.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.SummarizationQualityInstance + * @static + * @param {google.cloud.aiplatform.v1.ISummarizationQualityInstance} message SummarizationQualityInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SummarizationQualityInstance.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.prediction != null && Object.hasOwnProperty.call(message, "prediction")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.prediction); + if (message.reference != null && Object.hasOwnProperty.call(message, "reference")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.reference); + if (message.context != null && Object.hasOwnProperty.call(message, "context")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.context); + if (message.instruction != null && Object.hasOwnProperty.call(message, "instruction")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.instruction); + return writer; + }; + + /** + * Encodes the specified SummarizationQualityInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SummarizationQualityInstance.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.SummarizationQualityInstance + * @static + * @param {google.cloud.aiplatform.v1.ISummarizationQualityInstance} message SummarizationQualityInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SummarizationQualityInstance.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SummarizationQualityInstance message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.SummarizationQualityInstance + * @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.SummarizationQualityInstance} SummarizationQualityInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SummarizationQualityInstance.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.SummarizationQualityInstance(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.prediction = reader.string(); + break; + } + case 2: { + message.reference = reader.string(); + break; + } + case 3: { + message.context = reader.string(); + break; + } + case 4: { + message.instruction = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SummarizationQualityInstance message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.SummarizationQualityInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.SummarizationQualityInstance} SummarizationQualityInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SummarizationQualityInstance.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SummarizationQualityInstance message. + * @function verify + * @memberof google.cloud.aiplatform.v1.SummarizationQualityInstance + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SummarizationQualityInstance.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.prediction != null && message.hasOwnProperty("prediction")) { + properties._prediction = 1; + if (!$util.isString(message.prediction)) + return "prediction: string expected"; + } + if (message.reference != null && message.hasOwnProperty("reference")) { + properties._reference = 1; + if (!$util.isString(message.reference)) + return "reference: string expected"; + } + if (message.context != null && message.hasOwnProperty("context")) { + properties._context = 1; + if (!$util.isString(message.context)) + return "context: string expected"; + } + if (message.instruction != null && message.hasOwnProperty("instruction")) { + properties._instruction = 1; + if (!$util.isString(message.instruction)) + return "instruction: string expected"; + } + return null; + }; + + /** + * Creates a SummarizationQualityInstance message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.SummarizationQualityInstance + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.SummarizationQualityInstance} SummarizationQualityInstance + */ + SummarizationQualityInstance.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.SummarizationQualityInstance) + return object; + var message = new $root.google.cloud.aiplatform.v1.SummarizationQualityInstance(); + if (object.prediction != null) + message.prediction = String(object.prediction); + if (object.reference != null) + message.reference = String(object.reference); + if (object.context != null) + message.context = String(object.context); + if (object.instruction != null) + message.instruction = String(object.instruction); + return message; + }; + + /** + * Creates a plain object from a SummarizationQualityInstance message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.SummarizationQualityInstance + * @static + * @param {google.cloud.aiplatform.v1.SummarizationQualityInstance} message SummarizationQualityInstance + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SummarizationQualityInstance.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.prediction != null && message.hasOwnProperty("prediction")) { + object.prediction = message.prediction; + if (options.oneofs) + object._prediction = "prediction"; + } + if (message.reference != null && message.hasOwnProperty("reference")) { + object.reference = message.reference; + if (options.oneofs) + object._reference = "reference"; + } + if (message.context != null && message.hasOwnProperty("context")) { + object.context = message.context; + if (options.oneofs) + object._context = "context"; + } + if (message.instruction != null && message.hasOwnProperty("instruction")) { + object.instruction = message.instruction; + if (options.oneofs) + object._instruction = "instruction"; + } + return object; + }; + + /** + * Converts this SummarizationQualityInstance to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.SummarizationQualityInstance + * @instance + * @returns {Object.} JSON object + */ + SummarizationQualityInstance.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SummarizationQualityInstance + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.SummarizationQualityInstance + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SummarizationQualityInstance.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.SummarizationQualityInstance"; + }; + + return SummarizationQualityInstance; + })(); + + v1.SummarizationQualitySpec = (function() { + + /** + * Properties of a SummarizationQualitySpec. + * @memberof google.cloud.aiplatform.v1 + * @interface ISummarizationQualitySpec + * @property {boolean|null} [useReference] SummarizationQualitySpec useReference + * @property {number|null} [version] SummarizationQualitySpec version + */ + + /** + * Constructs a new SummarizationQualitySpec. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a SummarizationQualitySpec. + * @implements ISummarizationQualitySpec + * @constructor + * @param {google.cloud.aiplatform.v1.ISummarizationQualitySpec=} [properties] Properties to set + */ + function SummarizationQualitySpec(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]]; + } + + /** + * SummarizationQualitySpec useReference. + * @member {boolean} useReference + * @memberof google.cloud.aiplatform.v1.SummarizationQualitySpec + * @instance + */ + SummarizationQualitySpec.prototype.useReference = false; + + /** + * SummarizationQualitySpec version. + * @member {number} version + * @memberof google.cloud.aiplatform.v1.SummarizationQualitySpec + * @instance + */ + SummarizationQualitySpec.prototype.version = 0; + + /** + * Creates a new SummarizationQualitySpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.SummarizationQualitySpec + * @static + * @param {google.cloud.aiplatform.v1.ISummarizationQualitySpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.SummarizationQualitySpec} SummarizationQualitySpec instance + */ + SummarizationQualitySpec.create = function create(properties) { + return new SummarizationQualitySpec(properties); + }; + + /** + * Encodes the specified SummarizationQualitySpec message. Does not implicitly {@link google.cloud.aiplatform.v1.SummarizationQualitySpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.SummarizationQualitySpec + * @static + * @param {google.cloud.aiplatform.v1.ISummarizationQualitySpec} message SummarizationQualitySpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SummarizationQualitySpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.useReference != null && Object.hasOwnProperty.call(message, "useReference")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.useReference); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.version); + return writer; + }; + + /** + * Encodes the specified SummarizationQualitySpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SummarizationQualitySpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.SummarizationQualitySpec + * @static + * @param {google.cloud.aiplatform.v1.ISummarizationQualitySpec} message SummarizationQualitySpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SummarizationQualitySpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SummarizationQualitySpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.SummarizationQualitySpec + * @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.SummarizationQualitySpec} SummarizationQualitySpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SummarizationQualitySpec.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.SummarizationQualitySpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.useReference = reader.bool(); + break; + } + case 2: { + message.version = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SummarizationQualitySpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.SummarizationQualitySpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.SummarizationQualitySpec} SummarizationQualitySpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SummarizationQualitySpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SummarizationQualitySpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1.SummarizationQualitySpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SummarizationQualitySpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.useReference != null && message.hasOwnProperty("useReference")) + if (typeof message.useReference !== "boolean") + return "useReference: boolean expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isInteger(message.version)) + return "version: integer expected"; + return null; + }; + + /** + * Creates a SummarizationQualitySpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.SummarizationQualitySpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.SummarizationQualitySpec} SummarizationQualitySpec + */ + SummarizationQualitySpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.SummarizationQualitySpec) + return object; + var message = new $root.google.cloud.aiplatform.v1.SummarizationQualitySpec(); + if (object.useReference != null) + message.useReference = Boolean(object.useReference); + if (object.version != null) + message.version = object.version | 0; + return message; + }; + + /** + * Creates a plain object from a SummarizationQualitySpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.SummarizationQualitySpec + * @static + * @param {google.cloud.aiplatform.v1.SummarizationQualitySpec} message SummarizationQualitySpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SummarizationQualitySpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.useReference = false; + object.version = 0; + } + if (message.useReference != null && message.hasOwnProperty("useReference")) + object.useReference = message.useReference; + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + return object; + }; + + /** + * Converts this SummarizationQualitySpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.SummarizationQualitySpec + * @instance + * @returns {Object.} JSON object + */ + SummarizationQualitySpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SummarizationQualitySpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.SummarizationQualitySpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SummarizationQualitySpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.SummarizationQualitySpec"; + }; + + return SummarizationQualitySpec; + })(); + + v1.SummarizationQualityResult = (function() { + + /** + * Properties of a SummarizationQualityResult. + * @memberof google.cloud.aiplatform.v1 + * @interface ISummarizationQualityResult + * @property {number|null} [score] SummarizationQualityResult score + * @property {string|null} [explanation] SummarizationQualityResult explanation + * @property {number|null} [confidence] SummarizationQualityResult confidence + */ + + /** + * Constructs a new SummarizationQualityResult. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a SummarizationQualityResult. + * @implements ISummarizationQualityResult + * @constructor + * @param {google.cloud.aiplatform.v1.ISummarizationQualityResult=} [properties] Properties to set + */ + function SummarizationQualityResult(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]]; + } + + /** + * SummarizationQualityResult score. + * @member {number|null|undefined} score + * @memberof google.cloud.aiplatform.v1.SummarizationQualityResult + * @instance + */ + SummarizationQualityResult.prototype.score = null; + + /** + * SummarizationQualityResult explanation. + * @member {string} explanation + * @memberof google.cloud.aiplatform.v1.SummarizationQualityResult + * @instance + */ + SummarizationQualityResult.prototype.explanation = ""; + + /** + * SummarizationQualityResult confidence. + * @member {number|null|undefined} confidence + * @memberof google.cloud.aiplatform.v1.SummarizationQualityResult + * @instance + */ + SummarizationQualityResult.prototype.confidence = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * SummarizationQualityResult _score. + * @member {"score"|undefined} _score + * @memberof google.cloud.aiplatform.v1.SummarizationQualityResult + * @instance + */ + Object.defineProperty(SummarizationQualityResult.prototype, "_score", { + get: $util.oneOfGetter($oneOfFields = ["score"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SummarizationQualityResult _confidence. + * @member {"confidence"|undefined} _confidence + * @memberof google.cloud.aiplatform.v1.SummarizationQualityResult + * @instance + */ + Object.defineProperty(SummarizationQualityResult.prototype, "_confidence", { + get: $util.oneOfGetter($oneOfFields = ["confidence"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new SummarizationQualityResult instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.SummarizationQualityResult + * @static + * @param {google.cloud.aiplatform.v1.ISummarizationQualityResult=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.SummarizationQualityResult} SummarizationQualityResult instance + */ + SummarizationQualityResult.create = function create(properties) { + return new SummarizationQualityResult(properties); + }; + + /** + * Encodes the specified SummarizationQualityResult message. Does not implicitly {@link google.cloud.aiplatform.v1.SummarizationQualityResult.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.SummarizationQualityResult + * @static + * @param {google.cloud.aiplatform.v1.ISummarizationQualityResult} message SummarizationQualityResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SummarizationQualityResult.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.score != null && Object.hasOwnProperty.call(message, "score")) + writer.uint32(/* id 1, wireType 5 =*/13).float(message.score); + if (message.explanation != null && Object.hasOwnProperty.call(message, "explanation")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.explanation); + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) + writer.uint32(/* id 3, wireType 5 =*/29).float(message.confidence); + return writer; + }; + + /** + * Encodes the specified SummarizationQualityResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SummarizationQualityResult.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.SummarizationQualityResult + * @static + * @param {google.cloud.aiplatform.v1.ISummarizationQualityResult} message SummarizationQualityResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SummarizationQualityResult.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SummarizationQualityResult message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.SummarizationQualityResult + * @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.SummarizationQualityResult} SummarizationQualityResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SummarizationQualityResult.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.SummarizationQualityResult(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.score = reader.float(); + break; + } + case 2: { + message.explanation = reader.string(); + break; + } + case 3: { + message.confidence = reader.float(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SummarizationQualityResult message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.SummarizationQualityResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.SummarizationQualityResult} SummarizationQualityResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SummarizationQualityResult.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SummarizationQualityResult message. + * @function verify + * @memberof google.cloud.aiplatform.v1.SummarizationQualityResult + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SummarizationQualityResult.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.score != null && message.hasOwnProperty("score")) { + properties._score = 1; + if (typeof message.score !== "number") + return "score: number expected"; + } + if (message.explanation != null && message.hasOwnProperty("explanation")) + if (!$util.isString(message.explanation)) + return "explanation: string expected"; + if (message.confidence != null && message.hasOwnProperty("confidence")) { + properties._confidence = 1; + if (typeof message.confidence !== "number") + return "confidence: number expected"; + } + return null; + }; + + /** + * Creates a SummarizationQualityResult message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.SummarizationQualityResult + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.SummarizationQualityResult} SummarizationQualityResult + */ + SummarizationQualityResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.SummarizationQualityResult) + return object; + var message = new $root.google.cloud.aiplatform.v1.SummarizationQualityResult(); + if (object.score != null) + message.score = Number(object.score); + if (object.explanation != null) + message.explanation = String(object.explanation); + if (object.confidence != null) + message.confidence = Number(object.confidence); + return message; + }; + + /** + * Creates a plain object from a SummarizationQualityResult message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.SummarizationQualityResult + * @static + * @param {google.cloud.aiplatform.v1.SummarizationQualityResult} message SummarizationQualityResult + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SummarizationQualityResult.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.explanation = ""; + if (message.score != null && message.hasOwnProperty("score")) { + object.score = options.json && !isFinite(message.score) ? String(message.score) : message.score; + if (options.oneofs) + object._score = "score"; + } + if (message.explanation != null && message.hasOwnProperty("explanation")) + object.explanation = message.explanation; + if (message.confidence != null && message.hasOwnProperty("confidence")) { + object.confidence = options.json && !isFinite(message.confidence) ? String(message.confidence) : message.confidence; + if (options.oneofs) + object._confidence = "confidence"; + } + return object; + }; + + /** + * Converts this SummarizationQualityResult to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.SummarizationQualityResult + * @instance + * @returns {Object.} JSON object + */ + SummarizationQualityResult.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SummarizationQualityResult + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.SummarizationQualityResult + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SummarizationQualityResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.SummarizationQualityResult"; + }; + + return SummarizationQualityResult; + })(); + + v1.PairwiseSummarizationQualityInput = (function() { + + /** + * Properties of a PairwiseSummarizationQualityInput. + * @memberof google.cloud.aiplatform.v1 + * @interface IPairwiseSummarizationQualityInput + * @property {google.cloud.aiplatform.v1.IPairwiseSummarizationQualitySpec|null} [metricSpec] PairwiseSummarizationQualityInput metricSpec + * @property {google.cloud.aiplatform.v1.IPairwiseSummarizationQualityInstance|null} [instance] PairwiseSummarizationQualityInput instance + */ + + /** + * Constructs a new PairwiseSummarizationQualityInput. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a PairwiseSummarizationQualityInput. + * @implements IPairwiseSummarizationQualityInput + * @constructor + * @param {google.cloud.aiplatform.v1.IPairwiseSummarizationQualityInput=} [properties] Properties to set + */ + function PairwiseSummarizationQualityInput(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]]; + } + + /** + * PairwiseSummarizationQualityInput metricSpec. + * @member {google.cloud.aiplatform.v1.IPairwiseSummarizationQualitySpec|null|undefined} metricSpec + * @memberof google.cloud.aiplatform.v1.PairwiseSummarizationQualityInput + * @instance + */ + PairwiseSummarizationQualityInput.prototype.metricSpec = null; + + /** + * PairwiseSummarizationQualityInput instance. + * @member {google.cloud.aiplatform.v1.IPairwiseSummarizationQualityInstance|null|undefined} instance + * @memberof google.cloud.aiplatform.v1.PairwiseSummarizationQualityInput + * @instance + */ + PairwiseSummarizationQualityInput.prototype.instance = null; + + /** + * Creates a new PairwiseSummarizationQualityInput instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.PairwiseSummarizationQualityInput + * @static + * @param {google.cloud.aiplatform.v1.IPairwiseSummarizationQualityInput=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PairwiseSummarizationQualityInput} PairwiseSummarizationQualityInput instance + */ + PairwiseSummarizationQualityInput.create = function create(properties) { + return new PairwiseSummarizationQualityInput(properties); + }; + + /** + * Encodes the specified PairwiseSummarizationQualityInput message. Does not implicitly {@link google.cloud.aiplatform.v1.PairwiseSummarizationQualityInput.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.PairwiseSummarizationQualityInput + * @static + * @param {google.cloud.aiplatform.v1.IPairwiseSummarizationQualityInput} message PairwiseSummarizationQualityInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PairwiseSummarizationQualityInput.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.metricSpec != null && Object.hasOwnProperty.call(message, "metricSpec")) + $root.google.cloud.aiplatform.v1.PairwiseSummarizationQualitySpec.encode(message.metricSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.instance != null && Object.hasOwnProperty.call(message, "instance")) + $root.google.cloud.aiplatform.v1.PairwiseSummarizationQualityInstance.encode(message.instance, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified PairwiseSummarizationQualityInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PairwiseSummarizationQualityInput.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.PairwiseSummarizationQualityInput + * @static + * @param {google.cloud.aiplatform.v1.IPairwiseSummarizationQualityInput} message PairwiseSummarizationQualityInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PairwiseSummarizationQualityInput.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PairwiseSummarizationQualityInput message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.PairwiseSummarizationQualityInput + * @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.PairwiseSummarizationQualityInput} PairwiseSummarizationQualityInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PairwiseSummarizationQualityInput.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.PairwiseSummarizationQualityInput(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.metricSpec = $root.google.cloud.aiplatform.v1.PairwiseSummarizationQualitySpec.decode(reader, reader.uint32()); + break; + } + case 2: { + message.instance = $root.google.cloud.aiplatform.v1.PairwiseSummarizationQualityInstance.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PairwiseSummarizationQualityInput message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.PairwiseSummarizationQualityInput + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.PairwiseSummarizationQualityInput} PairwiseSummarizationQualityInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PairwiseSummarizationQualityInput.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PairwiseSummarizationQualityInput message. + * @function verify + * @memberof google.cloud.aiplatform.v1.PairwiseSummarizationQualityInput + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PairwiseSummarizationQualityInput.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) { + var error = $root.google.cloud.aiplatform.v1.PairwiseSummarizationQualitySpec.verify(message.metricSpec); + if (error) + return "metricSpec." + error; + } + if (message.instance != null && message.hasOwnProperty("instance")) { + var error = $root.google.cloud.aiplatform.v1.PairwiseSummarizationQualityInstance.verify(message.instance); + if (error) + return "instance." + error; + } + return null; + }; + + /** + * Creates a PairwiseSummarizationQualityInput message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.PairwiseSummarizationQualityInput + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.PairwiseSummarizationQualityInput} PairwiseSummarizationQualityInput + */ + PairwiseSummarizationQualityInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PairwiseSummarizationQualityInput) + return object; + var message = new $root.google.cloud.aiplatform.v1.PairwiseSummarizationQualityInput(); + if (object.metricSpec != null) { + if (typeof object.metricSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PairwiseSummarizationQualityInput.metricSpec: object expected"); + message.metricSpec = $root.google.cloud.aiplatform.v1.PairwiseSummarizationQualitySpec.fromObject(object.metricSpec); + } + if (object.instance != null) { + if (typeof object.instance !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PairwiseSummarizationQualityInput.instance: object expected"); + message.instance = $root.google.cloud.aiplatform.v1.PairwiseSummarizationQualityInstance.fromObject(object.instance); + } + return message; + }; + + /** + * Creates a plain object from a PairwiseSummarizationQualityInput message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.PairwiseSummarizationQualityInput + * @static + * @param {google.cloud.aiplatform.v1.PairwiseSummarizationQualityInput} message PairwiseSummarizationQualityInput + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PairwiseSummarizationQualityInput.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.metricSpec = null; + object.instance = null; + } + if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) + object.metricSpec = $root.google.cloud.aiplatform.v1.PairwiseSummarizationQualitySpec.toObject(message.metricSpec, options); + if (message.instance != null && message.hasOwnProperty("instance")) + object.instance = $root.google.cloud.aiplatform.v1.PairwiseSummarizationQualityInstance.toObject(message.instance, options); + return object; + }; + + /** + * Converts this PairwiseSummarizationQualityInput to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.PairwiseSummarizationQualityInput + * @instance + * @returns {Object.} JSON object + */ + PairwiseSummarizationQualityInput.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PairwiseSummarizationQualityInput + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.PairwiseSummarizationQualityInput + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PairwiseSummarizationQualityInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PairwiseSummarizationQualityInput"; + }; + + return PairwiseSummarizationQualityInput; + })(); + + v1.PairwiseSummarizationQualityInstance = (function() { + + /** + * Properties of a PairwiseSummarizationQualityInstance. + * @memberof google.cloud.aiplatform.v1 + * @interface IPairwiseSummarizationQualityInstance + * @property {string|null} [prediction] PairwiseSummarizationQualityInstance prediction + * @property {string|null} [baselinePrediction] PairwiseSummarizationQualityInstance baselinePrediction + * @property {string|null} [reference] PairwiseSummarizationQualityInstance reference + * @property {string|null} [context] PairwiseSummarizationQualityInstance context + * @property {string|null} [instruction] PairwiseSummarizationQualityInstance instruction + */ + + /** + * Constructs a new PairwiseSummarizationQualityInstance. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a PairwiseSummarizationQualityInstance. + * @implements IPairwiseSummarizationQualityInstance + * @constructor + * @param {google.cloud.aiplatform.v1.IPairwiseSummarizationQualityInstance=} [properties] Properties to set + */ + function PairwiseSummarizationQualityInstance(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]]; + } + + /** + * PairwiseSummarizationQualityInstance prediction. + * @member {string|null|undefined} prediction + * @memberof google.cloud.aiplatform.v1.PairwiseSummarizationQualityInstance + * @instance + */ + PairwiseSummarizationQualityInstance.prototype.prediction = null; + + /** + * PairwiseSummarizationQualityInstance baselinePrediction. + * @member {string|null|undefined} baselinePrediction + * @memberof google.cloud.aiplatform.v1.PairwiseSummarizationQualityInstance + * @instance + */ + PairwiseSummarizationQualityInstance.prototype.baselinePrediction = null; + + /** + * PairwiseSummarizationQualityInstance reference. + * @member {string|null|undefined} reference + * @memberof google.cloud.aiplatform.v1.PairwiseSummarizationQualityInstance + * @instance + */ + PairwiseSummarizationQualityInstance.prototype.reference = null; + + /** + * PairwiseSummarizationQualityInstance context. + * @member {string|null|undefined} context + * @memberof google.cloud.aiplatform.v1.PairwiseSummarizationQualityInstance + * @instance + */ + PairwiseSummarizationQualityInstance.prototype.context = null; + + /** + * PairwiseSummarizationQualityInstance instruction. + * @member {string|null|undefined} instruction + * @memberof google.cloud.aiplatform.v1.PairwiseSummarizationQualityInstance + * @instance + */ + PairwiseSummarizationQualityInstance.prototype.instruction = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * PairwiseSummarizationQualityInstance _prediction. + * @member {"prediction"|undefined} _prediction + * @memberof google.cloud.aiplatform.v1.PairwiseSummarizationQualityInstance + * @instance + */ + Object.defineProperty(PairwiseSummarizationQualityInstance.prototype, "_prediction", { + get: $util.oneOfGetter($oneOfFields = ["prediction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * PairwiseSummarizationQualityInstance _baselinePrediction. + * @member {"baselinePrediction"|undefined} _baselinePrediction + * @memberof google.cloud.aiplatform.v1.PairwiseSummarizationQualityInstance + * @instance + */ + Object.defineProperty(PairwiseSummarizationQualityInstance.prototype, "_baselinePrediction", { + get: $util.oneOfGetter($oneOfFields = ["baselinePrediction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * PairwiseSummarizationQualityInstance _reference. + * @member {"reference"|undefined} _reference + * @memberof google.cloud.aiplatform.v1.PairwiseSummarizationQualityInstance + * @instance + */ + Object.defineProperty(PairwiseSummarizationQualityInstance.prototype, "_reference", { + get: $util.oneOfGetter($oneOfFields = ["reference"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * PairwiseSummarizationQualityInstance _context. + * @member {"context"|undefined} _context + * @memberof google.cloud.aiplatform.v1.PairwiseSummarizationQualityInstance + * @instance + */ + Object.defineProperty(PairwiseSummarizationQualityInstance.prototype, "_context", { + get: $util.oneOfGetter($oneOfFields = ["context"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * PairwiseSummarizationQualityInstance _instruction. + * @member {"instruction"|undefined} _instruction + * @memberof google.cloud.aiplatform.v1.PairwiseSummarizationQualityInstance + * @instance + */ + Object.defineProperty(PairwiseSummarizationQualityInstance.prototype, "_instruction", { + get: $util.oneOfGetter($oneOfFields = ["instruction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new PairwiseSummarizationQualityInstance instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.PairwiseSummarizationQualityInstance + * @static + * @param {google.cloud.aiplatform.v1.IPairwiseSummarizationQualityInstance=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PairwiseSummarizationQualityInstance} PairwiseSummarizationQualityInstance instance + */ + PairwiseSummarizationQualityInstance.create = function create(properties) { + return new PairwiseSummarizationQualityInstance(properties); + }; + + /** + * Encodes the specified PairwiseSummarizationQualityInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.PairwiseSummarizationQualityInstance.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.PairwiseSummarizationQualityInstance + * @static + * @param {google.cloud.aiplatform.v1.IPairwiseSummarizationQualityInstance} message PairwiseSummarizationQualityInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PairwiseSummarizationQualityInstance.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.prediction != null && Object.hasOwnProperty.call(message, "prediction")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.prediction); + if (message.baselinePrediction != null && Object.hasOwnProperty.call(message, "baselinePrediction")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.baselinePrediction); + if (message.reference != null && Object.hasOwnProperty.call(message, "reference")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.reference); + if (message.context != null && Object.hasOwnProperty.call(message, "context")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.context); + if (message.instruction != null && Object.hasOwnProperty.call(message, "instruction")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.instruction); + return writer; + }; + + /** + * Encodes the specified PairwiseSummarizationQualityInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PairwiseSummarizationQualityInstance.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.PairwiseSummarizationQualityInstance + * @static + * @param {google.cloud.aiplatform.v1.IPairwiseSummarizationQualityInstance} message PairwiseSummarizationQualityInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PairwiseSummarizationQualityInstance.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PairwiseSummarizationQualityInstance message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.PairwiseSummarizationQualityInstance + * @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.PairwiseSummarizationQualityInstance} PairwiseSummarizationQualityInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PairwiseSummarizationQualityInstance.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.PairwiseSummarizationQualityInstance(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.prediction = reader.string(); + break; + } + case 2: { + message.baselinePrediction = reader.string(); + break; + } + case 3: { + message.reference = reader.string(); + break; + } + case 4: { + message.context = reader.string(); + break; + } + case 5: { + message.instruction = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PairwiseSummarizationQualityInstance message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.PairwiseSummarizationQualityInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.PairwiseSummarizationQualityInstance} PairwiseSummarizationQualityInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PairwiseSummarizationQualityInstance.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PairwiseSummarizationQualityInstance message. + * @function verify + * @memberof google.cloud.aiplatform.v1.PairwiseSummarizationQualityInstance + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PairwiseSummarizationQualityInstance.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.prediction != null && message.hasOwnProperty("prediction")) { + properties._prediction = 1; + if (!$util.isString(message.prediction)) + return "prediction: string expected"; + } + if (message.baselinePrediction != null && message.hasOwnProperty("baselinePrediction")) { + properties._baselinePrediction = 1; + if (!$util.isString(message.baselinePrediction)) + return "baselinePrediction: string expected"; + } + if (message.reference != null && message.hasOwnProperty("reference")) { + properties._reference = 1; + if (!$util.isString(message.reference)) + return "reference: string expected"; + } + if (message.context != null && message.hasOwnProperty("context")) { + properties._context = 1; + if (!$util.isString(message.context)) + return "context: string expected"; + } + if (message.instruction != null && message.hasOwnProperty("instruction")) { + properties._instruction = 1; + if (!$util.isString(message.instruction)) + return "instruction: string expected"; + } + return null; + }; + + /** + * Creates a PairwiseSummarizationQualityInstance message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.PairwiseSummarizationQualityInstance + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.PairwiseSummarizationQualityInstance} PairwiseSummarizationQualityInstance + */ + PairwiseSummarizationQualityInstance.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PairwiseSummarizationQualityInstance) + return object; + var message = new $root.google.cloud.aiplatform.v1.PairwiseSummarizationQualityInstance(); + if (object.prediction != null) + message.prediction = String(object.prediction); + if (object.baselinePrediction != null) + message.baselinePrediction = String(object.baselinePrediction); + if (object.reference != null) + message.reference = String(object.reference); + if (object.context != null) + message.context = String(object.context); + if (object.instruction != null) + message.instruction = String(object.instruction); + return message; + }; + + /** + * Creates a plain object from a PairwiseSummarizationQualityInstance message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.PairwiseSummarizationQualityInstance + * @static + * @param {google.cloud.aiplatform.v1.PairwiseSummarizationQualityInstance} message PairwiseSummarizationQualityInstance + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PairwiseSummarizationQualityInstance.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.prediction != null && message.hasOwnProperty("prediction")) { + object.prediction = message.prediction; + if (options.oneofs) + object._prediction = "prediction"; + } + if (message.baselinePrediction != null && message.hasOwnProperty("baselinePrediction")) { + object.baselinePrediction = message.baselinePrediction; + if (options.oneofs) + object._baselinePrediction = "baselinePrediction"; + } + if (message.reference != null && message.hasOwnProperty("reference")) { + object.reference = message.reference; + if (options.oneofs) + object._reference = "reference"; + } + if (message.context != null && message.hasOwnProperty("context")) { + object.context = message.context; + if (options.oneofs) + object._context = "context"; + } + if (message.instruction != null && message.hasOwnProperty("instruction")) { + object.instruction = message.instruction; + if (options.oneofs) + object._instruction = "instruction"; + } + return object; + }; + + /** + * Converts this PairwiseSummarizationQualityInstance to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.PairwiseSummarizationQualityInstance + * @instance + * @returns {Object.} JSON object + */ + PairwiseSummarizationQualityInstance.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PairwiseSummarizationQualityInstance + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.PairwiseSummarizationQualityInstance + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PairwiseSummarizationQualityInstance.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PairwiseSummarizationQualityInstance"; + }; + + return PairwiseSummarizationQualityInstance; + })(); + + v1.PairwiseSummarizationQualitySpec = (function() { + + /** + * Properties of a PairwiseSummarizationQualitySpec. + * @memberof google.cloud.aiplatform.v1 + * @interface IPairwiseSummarizationQualitySpec + * @property {boolean|null} [useReference] PairwiseSummarizationQualitySpec useReference + * @property {number|null} [version] PairwiseSummarizationQualitySpec version + */ + + /** + * Constructs a new PairwiseSummarizationQualitySpec. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a PairwiseSummarizationQualitySpec. + * @implements IPairwiseSummarizationQualitySpec + * @constructor + * @param {google.cloud.aiplatform.v1.IPairwiseSummarizationQualitySpec=} [properties] Properties to set + */ + function PairwiseSummarizationQualitySpec(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]]; + } + + /** + * PairwiseSummarizationQualitySpec useReference. + * @member {boolean} useReference + * @memberof google.cloud.aiplatform.v1.PairwiseSummarizationQualitySpec + * @instance + */ + PairwiseSummarizationQualitySpec.prototype.useReference = false; + + /** + * PairwiseSummarizationQualitySpec version. + * @member {number} version + * @memberof google.cloud.aiplatform.v1.PairwiseSummarizationQualitySpec + * @instance + */ + PairwiseSummarizationQualitySpec.prototype.version = 0; + + /** + * Creates a new PairwiseSummarizationQualitySpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.PairwiseSummarizationQualitySpec + * @static + * @param {google.cloud.aiplatform.v1.IPairwiseSummarizationQualitySpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PairwiseSummarizationQualitySpec} PairwiseSummarizationQualitySpec instance + */ + PairwiseSummarizationQualitySpec.create = function create(properties) { + return new PairwiseSummarizationQualitySpec(properties); + }; + + /** + * Encodes the specified PairwiseSummarizationQualitySpec message. Does not implicitly {@link google.cloud.aiplatform.v1.PairwiseSummarizationQualitySpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.PairwiseSummarizationQualitySpec + * @static + * @param {google.cloud.aiplatform.v1.IPairwiseSummarizationQualitySpec} message PairwiseSummarizationQualitySpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PairwiseSummarizationQualitySpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.useReference != null && Object.hasOwnProperty.call(message, "useReference")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.useReference); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.version); + return writer; + }; + + /** + * Encodes the specified PairwiseSummarizationQualitySpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PairwiseSummarizationQualitySpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.PairwiseSummarizationQualitySpec + * @static + * @param {google.cloud.aiplatform.v1.IPairwiseSummarizationQualitySpec} message PairwiseSummarizationQualitySpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PairwiseSummarizationQualitySpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PairwiseSummarizationQualitySpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.PairwiseSummarizationQualitySpec + * @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.PairwiseSummarizationQualitySpec} PairwiseSummarizationQualitySpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PairwiseSummarizationQualitySpec.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.PairwiseSummarizationQualitySpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.useReference = reader.bool(); + break; + } + case 2: { + message.version = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PairwiseSummarizationQualitySpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.PairwiseSummarizationQualitySpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.PairwiseSummarizationQualitySpec} PairwiseSummarizationQualitySpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PairwiseSummarizationQualitySpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PairwiseSummarizationQualitySpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1.PairwiseSummarizationQualitySpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PairwiseSummarizationQualitySpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.useReference != null && message.hasOwnProperty("useReference")) + if (typeof message.useReference !== "boolean") + return "useReference: boolean expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isInteger(message.version)) + return "version: integer expected"; + return null; + }; + + /** + * Creates a PairwiseSummarizationQualitySpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.PairwiseSummarizationQualitySpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.PairwiseSummarizationQualitySpec} PairwiseSummarizationQualitySpec + */ + PairwiseSummarizationQualitySpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PairwiseSummarizationQualitySpec) + return object; + var message = new $root.google.cloud.aiplatform.v1.PairwiseSummarizationQualitySpec(); + if (object.useReference != null) + message.useReference = Boolean(object.useReference); + if (object.version != null) + message.version = object.version | 0; + return message; + }; + + /** + * Creates a plain object from a PairwiseSummarizationQualitySpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.PairwiseSummarizationQualitySpec + * @static + * @param {google.cloud.aiplatform.v1.PairwiseSummarizationQualitySpec} message PairwiseSummarizationQualitySpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PairwiseSummarizationQualitySpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.useReference = false; + object.version = 0; + } + if (message.useReference != null && message.hasOwnProperty("useReference")) + object.useReference = message.useReference; + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + return object; + }; + + /** + * Converts this PairwiseSummarizationQualitySpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.PairwiseSummarizationQualitySpec + * @instance + * @returns {Object.} JSON object + */ + PairwiseSummarizationQualitySpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PairwiseSummarizationQualitySpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.PairwiseSummarizationQualitySpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PairwiseSummarizationQualitySpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PairwiseSummarizationQualitySpec"; + }; + + return PairwiseSummarizationQualitySpec; + })(); + + v1.PairwiseSummarizationQualityResult = (function() { + + /** + * Properties of a PairwiseSummarizationQualityResult. + * @memberof google.cloud.aiplatform.v1 + * @interface IPairwiseSummarizationQualityResult + * @property {google.cloud.aiplatform.v1.PairwiseChoice|null} [pairwiseChoice] PairwiseSummarizationQualityResult pairwiseChoice + * @property {string|null} [explanation] PairwiseSummarizationQualityResult explanation + * @property {number|null} [confidence] PairwiseSummarizationQualityResult confidence + */ + + /** + * Constructs a new PairwiseSummarizationQualityResult. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a PairwiseSummarizationQualityResult. + * @implements IPairwiseSummarizationQualityResult + * @constructor + * @param {google.cloud.aiplatform.v1.IPairwiseSummarizationQualityResult=} [properties] Properties to set + */ + function PairwiseSummarizationQualityResult(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]]; + } + + /** + * PairwiseSummarizationQualityResult pairwiseChoice. + * @member {google.cloud.aiplatform.v1.PairwiseChoice} pairwiseChoice + * @memberof google.cloud.aiplatform.v1.PairwiseSummarizationQualityResult + * @instance + */ + PairwiseSummarizationQualityResult.prototype.pairwiseChoice = 0; + + /** + * PairwiseSummarizationQualityResult explanation. + * @member {string} explanation + * @memberof google.cloud.aiplatform.v1.PairwiseSummarizationQualityResult + * @instance + */ + PairwiseSummarizationQualityResult.prototype.explanation = ""; + + /** + * PairwiseSummarizationQualityResult confidence. + * @member {number|null|undefined} confidence + * @memberof google.cloud.aiplatform.v1.PairwiseSummarizationQualityResult + * @instance + */ + PairwiseSummarizationQualityResult.prototype.confidence = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * PairwiseSummarizationQualityResult _confidence. + * @member {"confidence"|undefined} _confidence + * @memberof google.cloud.aiplatform.v1.PairwiseSummarizationQualityResult + * @instance + */ + Object.defineProperty(PairwiseSummarizationQualityResult.prototype, "_confidence", { + get: $util.oneOfGetter($oneOfFields = ["confidence"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new PairwiseSummarizationQualityResult instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.PairwiseSummarizationQualityResult + * @static + * @param {google.cloud.aiplatform.v1.IPairwiseSummarizationQualityResult=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PairwiseSummarizationQualityResult} PairwiseSummarizationQualityResult instance + */ + PairwiseSummarizationQualityResult.create = function create(properties) { + return new PairwiseSummarizationQualityResult(properties); + }; + + /** + * Encodes the specified PairwiseSummarizationQualityResult message. Does not implicitly {@link google.cloud.aiplatform.v1.PairwiseSummarizationQualityResult.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.PairwiseSummarizationQualityResult + * @static + * @param {google.cloud.aiplatform.v1.IPairwiseSummarizationQualityResult} message PairwiseSummarizationQualityResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PairwiseSummarizationQualityResult.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.pairwiseChoice != null && Object.hasOwnProperty.call(message, "pairwiseChoice")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.pairwiseChoice); + if (message.explanation != null && Object.hasOwnProperty.call(message, "explanation")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.explanation); + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) + writer.uint32(/* id 3, wireType 5 =*/29).float(message.confidence); + return writer; + }; + + /** + * Encodes the specified PairwiseSummarizationQualityResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PairwiseSummarizationQualityResult.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.PairwiseSummarizationQualityResult + * @static + * @param {google.cloud.aiplatform.v1.IPairwiseSummarizationQualityResult} message PairwiseSummarizationQualityResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PairwiseSummarizationQualityResult.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PairwiseSummarizationQualityResult message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.PairwiseSummarizationQualityResult + * @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.PairwiseSummarizationQualityResult} PairwiseSummarizationQualityResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PairwiseSummarizationQualityResult.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.PairwiseSummarizationQualityResult(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.pairwiseChoice = reader.int32(); + break; + } + case 2: { + message.explanation = reader.string(); + break; + } + case 3: { + message.confidence = reader.float(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PairwiseSummarizationQualityResult message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.PairwiseSummarizationQualityResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.PairwiseSummarizationQualityResult} PairwiseSummarizationQualityResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PairwiseSummarizationQualityResult.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PairwiseSummarizationQualityResult message. + * @function verify + * @memberof google.cloud.aiplatform.v1.PairwiseSummarizationQualityResult + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PairwiseSummarizationQualityResult.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.pairwiseChoice != null && message.hasOwnProperty("pairwiseChoice")) + switch (message.pairwiseChoice) { + default: + return "pairwiseChoice: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.explanation != null && message.hasOwnProperty("explanation")) + if (!$util.isString(message.explanation)) + return "explanation: string expected"; + if (message.confidence != null && message.hasOwnProperty("confidence")) { + properties._confidence = 1; + if (typeof message.confidence !== "number") + return "confidence: number expected"; + } + return null; + }; + + /** + * Creates a PairwiseSummarizationQualityResult message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.PairwiseSummarizationQualityResult + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.PairwiseSummarizationQualityResult} PairwiseSummarizationQualityResult + */ + PairwiseSummarizationQualityResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PairwiseSummarizationQualityResult) + return object; + var message = new $root.google.cloud.aiplatform.v1.PairwiseSummarizationQualityResult(); + switch (object.pairwiseChoice) { + default: + if (typeof object.pairwiseChoice === "number") { + message.pairwiseChoice = object.pairwiseChoice; + break; + } + break; + case "PAIRWISE_CHOICE_UNSPECIFIED": + case 0: + message.pairwiseChoice = 0; + break; + case "BASELINE": + case 1: + message.pairwiseChoice = 1; + break; + case "CANDIDATE": + case 2: + message.pairwiseChoice = 2; + break; + case "TIE": + case 3: + message.pairwiseChoice = 3; + break; + } + if (object.explanation != null) + message.explanation = String(object.explanation); + if (object.confidence != null) + message.confidence = Number(object.confidence); + return message; + }; + + /** + * Creates a plain object from a PairwiseSummarizationQualityResult message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.PairwiseSummarizationQualityResult + * @static + * @param {google.cloud.aiplatform.v1.PairwiseSummarizationQualityResult} message PairwiseSummarizationQualityResult + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PairwiseSummarizationQualityResult.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.pairwiseChoice = options.enums === String ? "PAIRWISE_CHOICE_UNSPECIFIED" : 0; + object.explanation = ""; + } + if (message.pairwiseChoice != null && message.hasOwnProperty("pairwiseChoice")) + object.pairwiseChoice = options.enums === String ? $root.google.cloud.aiplatform.v1.PairwiseChoice[message.pairwiseChoice] === undefined ? message.pairwiseChoice : $root.google.cloud.aiplatform.v1.PairwiseChoice[message.pairwiseChoice] : message.pairwiseChoice; + if (message.explanation != null && message.hasOwnProperty("explanation")) + object.explanation = message.explanation; + if (message.confidence != null && message.hasOwnProperty("confidence")) { + object.confidence = options.json && !isFinite(message.confidence) ? String(message.confidence) : message.confidence; + if (options.oneofs) + object._confidence = "confidence"; + } + return object; + }; + + /** + * Converts this PairwiseSummarizationQualityResult to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.PairwiseSummarizationQualityResult + * @instance + * @returns {Object.} JSON object + */ + PairwiseSummarizationQualityResult.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PairwiseSummarizationQualityResult + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.PairwiseSummarizationQualityResult + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PairwiseSummarizationQualityResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PairwiseSummarizationQualityResult"; + }; + + return PairwiseSummarizationQualityResult; + })(); + + v1.SummarizationHelpfulnessInput = (function() { + + /** + * Properties of a SummarizationHelpfulnessInput. + * @memberof google.cloud.aiplatform.v1 + * @interface ISummarizationHelpfulnessInput + * @property {google.cloud.aiplatform.v1.ISummarizationHelpfulnessSpec|null} [metricSpec] SummarizationHelpfulnessInput metricSpec + * @property {google.cloud.aiplatform.v1.ISummarizationHelpfulnessInstance|null} [instance] SummarizationHelpfulnessInput instance + */ + + /** + * Constructs a new SummarizationHelpfulnessInput. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a SummarizationHelpfulnessInput. + * @implements ISummarizationHelpfulnessInput + * @constructor + * @param {google.cloud.aiplatform.v1.ISummarizationHelpfulnessInput=} [properties] Properties to set + */ + function SummarizationHelpfulnessInput(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]]; + } + + /** + * SummarizationHelpfulnessInput metricSpec. + * @member {google.cloud.aiplatform.v1.ISummarizationHelpfulnessSpec|null|undefined} metricSpec + * @memberof google.cloud.aiplatform.v1.SummarizationHelpfulnessInput + * @instance + */ + SummarizationHelpfulnessInput.prototype.metricSpec = null; + + /** + * SummarizationHelpfulnessInput instance. + * @member {google.cloud.aiplatform.v1.ISummarizationHelpfulnessInstance|null|undefined} instance + * @memberof google.cloud.aiplatform.v1.SummarizationHelpfulnessInput + * @instance + */ + SummarizationHelpfulnessInput.prototype.instance = null; + + /** + * Creates a new SummarizationHelpfulnessInput instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.SummarizationHelpfulnessInput + * @static + * @param {google.cloud.aiplatform.v1.ISummarizationHelpfulnessInput=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.SummarizationHelpfulnessInput} SummarizationHelpfulnessInput instance + */ + SummarizationHelpfulnessInput.create = function create(properties) { + return new SummarizationHelpfulnessInput(properties); + }; + + /** + * Encodes the specified SummarizationHelpfulnessInput message. Does not implicitly {@link google.cloud.aiplatform.v1.SummarizationHelpfulnessInput.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.SummarizationHelpfulnessInput + * @static + * @param {google.cloud.aiplatform.v1.ISummarizationHelpfulnessInput} message SummarizationHelpfulnessInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SummarizationHelpfulnessInput.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.metricSpec != null && Object.hasOwnProperty.call(message, "metricSpec")) + $root.google.cloud.aiplatform.v1.SummarizationHelpfulnessSpec.encode(message.metricSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.instance != null && Object.hasOwnProperty.call(message, "instance")) + $root.google.cloud.aiplatform.v1.SummarizationHelpfulnessInstance.encode(message.instance, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified SummarizationHelpfulnessInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SummarizationHelpfulnessInput.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.SummarizationHelpfulnessInput + * @static + * @param {google.cloud.aiplatform.v1.ISummarizationHelpfulnessInput} message SummarizationHelpfulnessInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SummarizationHelpfulnessInput.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SummarizationHelpfulnessInput message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.SummarizationHelpfulnessInput + * @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.SummarizationHelpfulnessInput} SummarizationHelpfulnessInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SummarizationHelpfulnessInput.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.SummarizationHelpfulnessInput(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.metricSpec = $root.google.cloud.aiplatform.v1.SummarizationHelpfulnessSpec.decode(reader, reader.uint32()); + break; + } + case 2: { + message.instance = $root.google.cloud.aiplatform.v1.SummarizationHelpfulnessInstance.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SummarizationHelpfulnessInput message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.SummarizationHelpfulnessInput + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.SummarizationHelpfulnessInput} SummarizationHelpfulnessInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SummarizationHelpfulnessInput.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SummarizationHelpfulnessInput message. + * @function verify + * @memberof google.cloud.aiplatform.v1.SummarizationHelpfulnessInput + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SummarizationHelpfulnessInput.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) { + var error = $root.google.cloud.aiplatform.v1.SummarizationHelpfulnessSpec.verify(message.metricSpec); + if (error) + return "metricSpec." + error; + } + if (message.instance != null && message.hasOwnProperty("instance")) { + var error = $root.google.cloud.aiplatform.v1.SummarizationHelpfulnessInstance.verify(message.instance); + if (error) + return "instance." + error; + } + return null; + }; + + /** + * Creates a SummarizationHelpfulnessInput message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.SummarizationHelpfulnessInput + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.SummarizationHelpfulnessInput} SummarizationHelpfulnessInput + */ + SummarizationHelpfulnessInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.SummarizationHelpfulnessInput) + return object; + var message = new $root.google.cloud.aiplatform.v1.SummarizationHelpfulnessInput(); + if (object.metricSpec != null) { + if (typeof object.metricSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.SummarizationHelpfulnessInput.metricSpec: object expected"); + message.metricSpec = $root.google.cloud.aiplatform.v1.SummarizationHelpfulnessSpec.fromObject(object.metricSpec); + } + if (object.instance != null) { + if (typeof object.instance !== "object") + throw TypeError(".google.cloud.aiplatform.v1.SummarizationHelpfulnessInput.instance: object expected"); + message.instance = $root.google.cloud.aiplatform.v1.SummarizationHelpfulnessInstance.fromObject(object.instance); + } + return message; + }; + + /** + * Creates a plain object from a SummarizationHelpfulnessInput message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.SummarizationHelpfulnessInput + * @static + * @param {google.cloud.aiplatform.v1.SummarizationHelpfulnessInput} message SummarizationHelpfulnessInput + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SummarizationHelpfulnessInput.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.metricSpec = null; + object.instance = null; + } + if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) + object.metricSpec = $root.google.cloud.aiplatform.v1.SummarizationHelpfulnessSpec.toObject(message.metricSpec, options); + if (message.instance != null && message.hasOwnProperty("instance")) + object.instance = $root.google.cloud.aiplatform.v1.SummarizationHelpfulnessInstance.toObject(message.instance, options); + return object; + }; + + /** + * Converts this SummarizationHelpfulnessInput to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.SummarizationHelpfulnessInput + * @instance + * @returns {Object.} JSON object + */ + SummarizationHelpfulnessInput.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SummarizationHelpfulnessInput + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.SummarizationHelpfulnessInput + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SummarizationHelpfulnessInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.SummarizationHelpfulnessInput"; + }; + + return SummarizationHelpfulnessInput; + })(); + + v1.SummarizationHelpfulnessInstance = (function() { + + /** + * Properties of a SummarizationHelpfulnessInstance. + * @memberof google.cloud.aiplatform.v1 + * @interface ISummarizationHelpfulnessInstance + * @property {string|null} [prediction] SummarizationHelpfulnessInstance prediction + * @property {string|null} [reference] SummarizationHelpfulnessInstance reference + * @property {string|null} [context] SummarizationHelpfulnessInstance context + * @property {string|null} [instruction] SummarizationHelpfulnessInstance instruction + */ + + /** + * Constructs a new SummarizationHelpfulnessInstance. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a SummarizationHelpfulnessInstance. + * @implements ISummarizationHelpfulnessInstance + * @constructor + * @param {google.cloud.aiplatform.v1.ISummarizationHelpfulnessInstance=} [properties] Properties to set + */ + function SummarizationHelpfulnessInstance(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]]; + } + + /** + * SummarizationHelpfulnessInstance prediction. + * @member {string|null|undefined} prediction + * @memberof google.cloud.aiplatform.v1.SummarizationHelpfulnessInstance + * @instance + */ + SummarizationHelpfulnessInstance.prototype.prediction = null; + + /** + * SummarizationHelpfulnessInstance reference. + * @member {string|null|undefined} reference + * @memberof google.cloud.aiplatform.v1.SummarizationHelpfulnessInstance + * @instance + */ + SummarizationHelpfulnessInstance.prototype.reference = null; + + /** + * SummarizationHelpfulnessInstance context. + * @member {string|null|undefined} context + * @memberof google.cloud.aiplatform.v1.SummarizationHelpfulnessInstance + * @instance + */ + SummarizationHelpfulnessInstance.prototype.context = null; + + /** + * SummarizationHelpfulnessInstance instruction. + * @member {string|null|undefined} instruction + * @memberof google.cloud.aiplatform.v1.SummarizationHelpfulnessInstance + * @instance + */ + SummarizationHelpfulnessInstance.prototype.instruction = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * SummarizationHelpfulnessInstance _prediction. + * @member {"prediction"|undefined} _prediction + * @memberof google.cloud.aiplatform.v1.SummarizationHelpfulnessInstance + * @instance + */ + Object.defineProperty(SummarizationHelpfulnessInstance.prototype, "_prediction", { + get: $util.oneOfGetter($oneOfFields = ["prediction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SummarizationHelpfulnessInstance _reference. + * @member {"reference"|undefined} _reference + * @memberof google.cloud.aiplatform.v1.SummarizationHelpfulnessInstance + * @instance + */ + Object.defineProperty(SummarizationHelpfulnessInstance.prototype, "_reference", { + get: $util.oneOfGetter($oneOfFields = ["reference"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SummarizationHelpfulnessInstance _context. + * @member {"context"|undefined} _context + * @memberof google.cloud.aiplatform.v1.SummarizationHelpfulnessInstance + * @instance + */ + Object.defineProperty(SummarizationHelpfulnessInstance.prototype, "_context", { + get: $util.oneOfGetter($oneOfFields = ["context"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SummarizationHelpfulnessInstance _instruction. + * @member {"instruction"|undefined} _instruction + * @memberof google.cloud.aiplatform.v1.SummarizationHelpfulnessInstance + * @instance + */ + Object.defineProperty(SummarizationHelpfulnessInstance.prototype, "_instruction", { + get: $util.oneOfGetter($oneOfFields = ["instruction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new SummarizationHelpfulnessInstance instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.SummarizationHelpfulnessInstance + * @static + * @param {google.cloud.aiplatform.v1.ISummarizationHelpfulnessInstance=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.SummarizationHelpfulnessInstance} SummarizationHelpfulnessInstance instance + */ + SummarizationHelpfulnessInstance.create = function create(properties) { + return new SummarizationHelpfulnessInstance(properties); + }; + + /** + * Encodes the specified SummarizationHelpfulnessInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.SummarizationHelpfulnessInstance.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.SummarizationHelpfulnessInstance + * @static + * @param {google.cloud.aiplatform.v1.ISummarizationHelpfulnessInstance} message SummarizationHelpfulnessInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SummarizationHelpfulnessInstance.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.prediction != null && Object.hasOwnProperty.call(message, "prediction")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.prediction); + if (message.reference != null && Object.hasOwnProperty.call(message, "reference")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.reference); + if (message.context != null && Object.hasOwnProperty.call(message, "context")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.context); + if (message.instruction != null && Object.hasOwnProperty.call(message, "instruction")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.instruction); + return writer; + }; + + /** + * Encodes the specified SummarizationHelpfulnessInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SummarizationHelpfulnessInstance.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.SummarizationHelpfulnessInstance + * @static + * @param {google.cloud.aiplatform.v1.ISummarizationHelpfulnessInstance} message SummarizationHelpfulnessInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SummarizationHelpfulnessInstance.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SummarizationHelpfulnessInstance message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.SummarizationHelpfulnessInstance + * @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.SummarizationHelpfulnessInstance} SummarizationHelpfulnessInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SummarizationHelpfulnessInstance.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.SummarizationHelpfulnessInstance(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.prediction = reader.string(); + break; + } + case 2: { + message.reference = reader.string(); + break; + } + case 3: { + message.context = reader.string(); + break; + } + case 4: { + message.instruction = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SummarizationHelpfulnessInstance message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.SummarizationHelpfulnessInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.SummarizationHelpfulnessInstance} SummarizationHelpfulnessInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SummarizationHelpfulnessInstance.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SummarizationHelpfulnessInstance message. + * @function verify + * @memberof google.cloud.aiplatform.v1.SummarizationHelpfulnessInstance + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SummarizationHelpfulnessInstance.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.prediction != null && message.hasOwnProperty("prediction")) { + properties._prediction = 1; + if (!$util.isString(message.prediction)) + return "prediction: string expected"; + } + if (message.reference != null && message.hasOwnProperty("reference")) { + properties._reference = 1; + if (!$util.isString(message.reference)) + return "reference: string expected"; + } + if (message.context != null && message.hasOwnProperty("context")) { + properties._context = 1; + if (!$util.isString(message.context)) + return "context: string expected"; + } + if (message.instruction != null && message.hasOwnProperty("instruction")) { + properties._instruction = 1; + if (!$util.isString(message.instruction)) + return "instruction: string expected"; + } + return null; + }; + + /** + * Creates a SummarizationHelpfulnessInstance message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.SummarizationHelpfulnessInstance + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.SummarizationHelpfulnessInstance} SummarizationHelpfulnessInstance + */ + SummarizationHelpfulnessInstance.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.SummarizationHelpfulnessInstance) + return object; + var message = new $root.google.cloud.aiplatform.v1.SummarizationHelpfulnessInstance(); + if (object.prediction != null) + message.prediction = String(object.prediction); + if (object.reference != null) + message.reference = String(object.reference); + if (object.context != null) + message.context = String(object.context); + if (object.instruction != null) + message.instruction = String(object.instruction); + return message; + }; + + /** + * Creates a plain object from a SummarizationHelpfulnessInstance message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.SummarizationHelpfulnessInstance + * @static + * @param {google.cloud.aiplatform.v1.SummarizationHelpfulnessInstance} message SummarizationHelpfulnessInstance + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SummarizationHelpfulnessInstance.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.prediction != null && message.hasOwnProperty("prediction")) { + object.prediction = message.prediction; + if (options.oneofs) + object._prediction = "prediction"; + } + if (message.reference != null && message.hasOwnProperty("reference")) { + object.reference = message.reference; + if (options.oneofs) + object._reference = "reference"; + } + if (message.context != null && message.hasOwnProperty("context")) { + object.context = message.context; + if (options.oneofs) + object._context = "context"; + } + if (message.instruction != null && message.hasOwnProperty("instruction")) { + object.instruction = message.instruction; + if (options.oneofs) + object._instruction = "instruction"; + } + return object; + }; + + /** + * Converts this SummarizationHelpfulnessInstance to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.SummarizationHelpfulnessInstance + * @instance + * @returns {Object.} JSON object + */ + SummarizationHelpfulnessInstance.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SummarizationHelpfulnessInstance + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.SummarizationHelpfulnessInstance + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SummarizationHelpfulnessInstance.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.SummarizationHelpfulnessInstance"; + }; + + return SummarizationHelpfulnessInstance; + })(); + + v1.SummarizationHelpfulnessSpec = (function() { + + /** + * Properties of a SummarizationHelpfulnessSpec. + * @memberof google.cloud.aiplatform.v1 + * @interface ISummarizationHelpfulnessSpec + * @property {boolean|null} [useReference] SummarizationHelpfulnessSpec useReference + * @property {number|null} [version] SummarizationHelpfulnessSpec version + */ + + /** + * Constructs a new SummarizationHelpfulnessSpec. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a SummarizationHelpfulnessSpec. + * @implements ISummarizationHelpfulnessSpec + * @constructor + * @param {google.cloud.aiplatform.v1.ISummarizationHelpfulnessSpec=} [properties] Properties to set + */ + function SummarizationHelpfulnessSpec(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]]; + } + + /** + * SummarizationHelpfulnessSpec useReference. + * @member {boolean} useReference + * @memberof google.cloud.aiplatform.v1.SummarizationHelpfulnessSpec + * @instance + */ + SummarizationHelpfulnessSpec.prototype.useReference = false; + + /** + * SummarizationHelpfulnessSpec version. + * @member {number} version + * @memberof google.cloud.aiplatform.v1.SummarizationHelpfulnessSpec + * @instance + */ + SummarizationHelpfulnessSpec.prototype.version = 0; + + /** + * Creates a new SummarizationHelpfulnessSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.SummarizationHelpfulnessSpec + * @static + * @param {google.cloud.aiplatform.v1.ISummarizationHelpfulnessSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.SummarizationHelpfulnessSpec} SummarizationHelpfulnessSpec instance + */ + SummarizationHelpfulnessSpec.create = function create(properties) { + return new SummarizationHelpfulnessSpec(properties); + }; + + /** + * Encodes the specified SummarizationHelpfulnessSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.SummarizationHelpfulnessSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.SummarizationHelpfulnessSpec + * @static + * @param {google.cloud.aiplatform.v1.ISummarizationHelpfulnessSpec} message SummarizationHelpfulnessSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SummarizationHelpfulnessSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.useReference != null && Object.hasOwnProperty.call(message, "useReference")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.useReference); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.version); + return writer; + }; + + /** + * Encodes the specified SummarizationHelpfulnessSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SummarizationHelpfulnessSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.SummarizationHelpfulnessSpec + * @static + * @param {google.cloud.aiplatform.v1.ISummarizationHelpfulnessSpec} message SummarizationHelpfulnessSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SummarizationHelpfulnessSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SummarizationHelpfulnessSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.SummarizationHelpfulnessSpec + * @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.SummarizationHelpfulnessSpec} SummarizationHelpfulnessSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SummarizationHelpfulnessSpec.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.SummarizationHelpfulnessSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.useReference = reader.bool(); + break; + } + case 2: { + message.version = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SummarizationHelpfulnessSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.SummarizationHelpfulnessSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.SummarizationHelpfulnessSpec} SummarizationHelpfulnessSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SummarizationHelpfulnessSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SummarizationHelpfulnessSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1.SummarizationHelpfulnessSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SummarizationHelpfulnessSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.useReference != null && message.hasOwnProperty("useReference")) + if (typeof message.useReference !== "boolean") + return "useReference: boolean expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isInteger(message.version)) + return "version: integer expected"; + return null; + }; + + /** + * Creates a SummarizationHelpfulnessSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.SummarizationHelpfulnessSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.SummarizationHelpfulnessSpec} SummarizationHelpfulnessSpec + */ + SummarizationHelpfulnessSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.SummarizationHelpfulnessSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1.SummarizationHelpfulnessSpec(); + if (object.useReference != null) + message.useReference = Boolean(object.useReference); + if (object.version != null) + message.version = object.version | 0; + return message; + }; + + /** + * Creates a plain object from a SummarizationHelpfulnessSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.SummarizationHelpfulnessSpec + * @static + * @param {google.cloud.aiplatform.v1.SummarizationHelpfulnessSpec} message SummarizationHelpfulnessSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SummarizationHelpfulnessSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.useReference = false; + object.version = 0; + } + if (message.useReference != null && message.hasOwnProperty("useReference")) + object.useReference = message.useReference; + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + return object; + }; + + /** + * Converts this SummarizationHelpfulnessSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.SummarizationHelpfulnessSpec + * @instance + * @returns {Object.} JSON object + */ + SummarizationHelpfulnessSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SummarizationHelpfulnessSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.SummarizationHelpfulnessSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SummarizationHelpfulnessSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.SummarizationHelpfulnessSpec"; + }; + + return SummarizationHelpfulnessSpec; + })(); + + v1.SummarizationHelpfulnessResult = (function() { + + /** + * Properties of a SummarizationHelpfulnessResult. + * @memberof google.cloud.aiplatform.v1 + * @interface ISummarizationHelpfulnessResult + * @property {number|null} [score] SummarizationHelpfulnessResult score + * @property {string|null} [explanation] SummarizationHelpfulnessResult explanation + * @property {number|null} [confidence] SummarizationHelpfulnessResult confidence + */ + + /** + * Constructs a new SummarizationHelpfulnessResult. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a SummarizationHelpfulnessResult. + * @implements ISummarizationHelpfulnessResult + * @constructor + * @param {google.cloud.aiplatform.v1.ISummarizationHelpfulnessResult=} [properties] Properties to set + */ + function SummarizationHelpfulnessResult(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]]; + } + + /** + * SummarizationHelpfulnessResult score. + * @member {number|null|undefined} score + * @memberof google.cloud.aiplatform.v1.SummarizationHelpfulnessResult + * @instance + */ + SummarizationHelpfulnessResult.prototype.score = null; + + /** + * SummarizationHelpfulnessResult explanation. + * @member {string} explanation + * @memberof google.cloud.aiplatform.v1.SummarizationHelpfulnessResult + * @instance + */ + SummarizationHelpfulnessResult.prototype.explanation = ""; + + /** + * SummarizationHelpfulnessResult confidence. + * @member {number|null|undefined} confidence + * @memberof google.cloud.aiplatform.v1.SummarizationHelpfulnessResult + * @instance + */ + SummarizationHelpfulnessResult.prototype.confidence = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * SummarizationHelpfulnessResult _score. + * @member {"score"|undefined} _score + * @memberof google.cloud.aiplatform.v1.SummarizationHelpfulnessResult + * @instance + */ + Object.defineProperty(SummarizationHelpfulnessResult.prototype, "_score", { + get: $util.oneOfGetter($oneOfFields = ["score"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SummarizationHelpfulnessResult _confidence. + * @member {"confidence"|undefined} _confidence + * @memberof google.cloud.aiplatform.v1.SummarizationHelpfulnessResult + * @instance + */ + Object.defineProperty(SummarizationHelpfulnessResult.prototype, "_confidence", { + get: $util.oneOfGetter($oneOfFields = ["confidence"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new SummarizationHelpfulnessResult instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.SummarizationHelpfulnessResult + * @static + * @param {google.cloud.aiplatform.v1.ISummarizationHelpfulnessResult=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.SummarizationHelpfulnessResult} SummarizationHelpfulnessResult instance + */ + SummarizationHelpfulnessResult.create = function create(properties) { + return new SummarizationHelpfulnessResult(properties); + }; + + /** + * Encodes the specified SummarizationHelpfulnessResult message. Does not implicitly {@link google.cloud.aiplatform.v1.SummarizationHelpfulnessResult.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.SummarizationHelpfulnessResult + * @static + * @param {google.cloud.aiplatform.v1.ISummarizationHelpfulnessResult} message SummarizationHelpfulnessResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SummarizationHelpfulnessResult.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.score != null && Object.hasOwnProperty.call(message, "score")) + writer.uint32(/* id 1, wireType 5 =*/13).float(message.score); + if (message.explanation != null && Object.hasOwnProperty.call(message, "explanation")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.explanation); + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) + writer.uint32(/* id 3, wireType 5 =*/29).float(message.confidence); + return writer; + }; + + /** + * Encodes the specified SummarizationHelpfulnessResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SummarizationHelpfulnessResult.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.SummarizationHelpfulnessResult + * @static + * @param {google.cloud.aiplatform.v1.ISummarizationHelpfulnessResult} message SummarizationHelpfulnessResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SummarizationHelpfulnessResult.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SummarizationHelpfulnessResult message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.SummarizationHelpfulnessResult + * @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.SummarizationHelpfulnessResult} SummarizationHelpfulnessResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SummarizationHelpfulnessResult.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.SummarizationHelpfulnessResult(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.score = reader.float(); + break; + } + case 2: { + message.explanation = reader.string(); + break; + } + case 3: { + message.confidence = reader.float(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SummarizationHelpfulnessResult message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.SummarizationHelpfulnessResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.SummarizationHelpfulnessResult} SummarizationHelpfulnessResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SummarizationHelpfulnessResult.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SummarizationHelpfulnessResult message. + * @function verify + * @memberof google.cloud.aiplatform.v1.SummarizationHelpfulnessResult + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SummarizationHelpfulnessResult.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.score != null && message.hasOwnProperty("score")) { + properties._score = 1; + if (typeof message.score !== "number") + return "score: number expected"; + } + if (message.explanation != null && message.hasOwnProperty("explanation")) + if (!$util.isString(message.explanation)) + return "explanation: string expected"; + if (message.confidence != null && message.hasOwnProperty("confidence")) { + properties._confidence = 1; + if (typeof message.confidence !== "number") + return "confidence: number expected"; + } + return null; + }; + + /** + * Creates a SummarizationHelpfulnessResult message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.SummarizationHelpfulnessResult + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.SummarizationHelpfulnessResult} SummarizationHelpfulnessResult + */ + SummarizationHelpfulnessResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.SummarizationHelpfulnessResult) + return object; + var message = new $root.google.cloud.aiplatform.v1.SummarizationHelpfulnessResult(); + if (object.score != null) + message.score = Number(object.score); + if (object.explanation != null) + message.explanation = String(object.explanation); + if (object.confidence != null) + message.confidence = Number(object.confidence); + return message; + }; + + /** + * Creates a plain object from a SummarizationHelpfulnessResult message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.SummarizationHelpfulnessResult + * @static + * @param {google.cloud.aiplatform.v1.SummarizationHelpfulnessResult} message SummarizationHelpfulnessResult + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SummarizationHelpfulnessResult.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.explanation = ""; + if (message.score != null && message.hasOwnProperty("score")) { + object.score = options.json && !isFinite(message.score) ? String(message.score) : message.score; + if (options.oneofs) + object._score = "score"; + } + if (message.explanation != null && message.hasOwnProperty("explanation")) + object.explanation = message.explanation; + if (message.confidence != null && message.hasOwnProperty("confidence")) { + object.confidence = options.json && !isFinite(message.confidence) ? String(message.confidence) : message.confidence; + if (options.oneofs) + object._confidence = "confidence"; + } + return object; + }; + + /** + * Converts this SummarizationHelpfulnessResult to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.SummarizationHelpfulnessResult + * @instance + * @returns {Object.} JSON object + */ + SummarizationHelpfulnessResult.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SummarizationHelpfulnessResult + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.SummarizationHelpfulnessResult + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SummarizationHelpfulnessResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.SummarizationHelpfulnessResult"; + }; + + return SummarizationHelpfulnessResult; + })(); + + v1.SummarizationVerbosityInput = (function() { + + /** + * Properties of a SummarizationVerbosityInput. + * @memberof google.cloud.aiplatform.v1 + * @interface ISummarizationVerbosityInput + * @property {google.cloud.aiplatform.v1.ISummarizationVerbositySpec|null} [metricSpec] SummarizationVerbosityInput metricSpec + * @property {google.cloud.aiplatform.v1.ISummarizationVerbosityInstance|null} [instance] SummarizationVerbosityInput instance + */ + + /** + * Constructs a new SummarizationVerbosityInput. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a SummarizationVerbosityInput. + * @implements ISummarizationVerbosityInput + * @constructor + * @param {google.cloud.aiplatform.v1.ISummarizationVerbosityInput=} [properties] Properties to set + */ + function SummarizationVerbosityInput(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]]; + } + + /** + * SummarizationVerbosityInput metricSpec. + * @member {google.cloud.aiplatform.v1.ISummarizationVerbositySpec|null|undefined} metricSpec + * @memberof google.cloud.aiplatform.v1.SummarizationVerbosityInput + * @instance + */ + SummarizationVerbosityInput.prototype.metricSpec = null; + + /** + * SummarizationVerbosityInput instance. + * @member {google.cloud.aiplatform.v1.ISummarizationVerbosityInstance|null|undefined} instance + * @memberof google.cloud.aiplatform.v1.SummarizationVerbosityInput + * @instance + */ + SummarizationVerbosityInput.prototype.instance = null; + + /** + * Creates a new SummarizationVerbosityInput instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.SummarizationVerbosityInput + * @static + * @param {google.cloud.aiplatform.v1.ISummarizationVerbosityInput=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.SummarizationVerbosityInput} SummarizationVerbosityInput instance + */ + SummarizationVerbosityInput.create = function create(properties) { + return new SummarizationVerbosityInput(properties); + }; + + /** + * Encodes the specified SummarizationVerbosityInput message. Does not implicitly {@link google.cloud.aiplatform.v1.SummarizationVerbosityInput.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.SummarizationVerbosityInput + * @static + * @param {google.cloud.aiplatform.v1.ISummarizationVerbosityInput} message SummarizationVerbosityInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SummarizationVerbosityInput.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.metricSpec != null && Object.hasOwnProperty.call(message, "metricSpec")) + $root.google.cloud.aiplatform.v1.SummarizationVerbositySpec.encode(message.metricSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.instance != null && Object.hasOwnProperty.call(message, "instance")) + $root.google.cloud.aiplatform.v1.SummarizationVerbosityInstance.encode(message.instance, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified SummarizationVerbosityInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SummarizationVerbosityInput.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.SummarizationVerbosityInput + * @static + * @param {google.cloud.aiplatform.v1.ISummarizationVerbosityInput} message SummarizationVerbosityInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SummarizationVerbosityInput.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SummarizationVerbosityInput message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.SummarizationVerbosityInput + * @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.SummarizationVerbosityInput} SummarizationVerbosityInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SummarizationVerbosityInput.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.SummarizationVerbosityInput(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.metricSpec = $root.google.cloud.aiplatform.v1.SummarizationVerbositySpec.decode(reader, reader.uint32()); + break; + } + case 2: { + message.instance = $root.google.cloud.aiplatform.v1.SummarizationVerbosityInstance.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SummarizationVerbosityInput message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.SummarizationVerbosityInput + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.SummarizationVerbosityInput} SummarizationVerbosityInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SummarizationVerbosityInput.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SummarizationVerbosityInput message. + * @function verify + * @memberof google.cloud.aiplatform.v1.SummarizationVerbosityInput + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SummarizationVerbosityInput.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) { + var error = $root.google.cloud.aiplatform.v1.SummarizationVerbositySpec.verify(message.metricSpec); + if (error) + return "metricSpec." + error; + } + if (message.instance != null && message.hasOwnProperty("instance")) { + var error = $root.google.cloud.aiplatform.v1.SummarizationVerbosityInstance.verify(message.instance); + if (error) + return "instance." + error; + } + return null; + }; + + /** + * Creates a SummarizationVerbosityInput message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.SummarizationVerbosityInput + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.SummarizationVerbosityInput} SummarizationVerbosityInput + */ + SummarizationVerbosityInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.SummarizationVerbosityInput) + return object; + var message = new $root.google.cloud.aiplatform.v1.SummarizationVerbosityInput(); + if (object.metricSpec != null) { + if (typeof object.metricSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.SummarizationVerbosityInput.metricSpec: object expected"); + message.metricSpec = $root.google.cloud.aiplatform.v1.SummarizationVerbositySpec.fromObject(object.metricSpec); + } + if (object.instance != null) { + if (typeof object.instance !== "object") + throw TypeError(".google.cloud.aiplatform.v1.SummarizationVerbosityInput.instance: object expected"); + message.instance = $root.google.cloud.aiplatform.v1.SummarizationVerbosityInstance.fromObject(object.instance); + } + return message; + }; + + /** + * Creates a plain object from a SummarizationVerbosityInput message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.SummarizationVerbosityInput + * @static + * @param {google.cloud.aiplatform.v1.SummarizationVerbosityInput} message SummarizationVerbosityInput + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SummarizationVerbosityInput.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.metricSpec = null; + object.instance = null; + } + if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) + object.metricSpec = $root.google.cloud.aiplatform.v1.SummarizationVerbositySpec.toObject(message.metricSpec, options); + if (message.instance != null && message.hasOwnProperty("instance")) + object.instance = $root.google.cloud.aiplatform.v1.SummarizationVerbosityInstance.toObject(message.instance, options); + return object; + }; + + /** + * Converts this SummarizationVerbosityInput to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.SummarizationVerbosityInput + * @instance + * @returns {Object.} JSON object + */ + SummarizationVerbosityInput.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SummarizationVerbosityInput + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.SummarizationVerbosityInput + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SummarizationVerbosityInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.SummarizationVerbosityInput"; + }; + + return SummarizationVerbosityInput; + })(); + + v1.SummarizationVerbosityInstance = (function() { + + /** + * Properties of a SummarizationVerbosityInstance. + * @memberof google.cloud.aiplatform.v1 + * @interface ISummarizationVerbosityInstance + * @property {string|null} [prediction] SummarizationVerbosityInstance prediction + * @property {string|null} [reference] SummarizationVerbosityInstance reference + * @property {string|null} [context] SummarizationVerbosityInstance context + * @property {string|null} [instruction] SummarizationVerbosityInstance instruction + */ + + /** + * Constructs a new SummarizationVerbosityInstance. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a SummarizationVerbosityInstance. + * @implements ISummarizationVerbosityInstance + * @constructor + * @param {google.cloud.aiplatform.v1.ISummarizationVerbosityInstance=} [properties] Properties to set + */ + function SummarizationVerbosityInstance(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]]; + } + + /** + * SummarizationVerbosityInstance prediction. + * @member {string|null|undefined} prediction + * @memberof google.cloud.aiplatform.v1.SummarizationVerbosityInstance + * @instance + */ + SummarizationVerbosityInstance.prototype.prediction = null; + + /** + * SummarizationVerbosityInstance reference. + * @member {string|null|undefined} reference + * @memberof google.cloud.aiplatform.v1.SummarizationVerbosityInstance + * @instance + */ + SummarizationVerbosityInstance.prototype.reference = null; + + /** + * SummarizationVerbosityInstance context. + * @member {string|null|undefined} context + * @memberof google.cloud.aiplatform.v1.SummarizationVerbosityInstance + * @instance + */ + SummarizationVerbosityInstance.prototype.context = null; + + /** + * SummarizationVerbosityInstance instruction. + * @member {string|null|undefined} instruction + * @memberof google.cloud.aiplatform.v1.SummarizationVerbosityInstance + * @instance + */ + SummarizationVerbosityInstance.prototype.instruction = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * SummarizationVerbosityInstance _prediction. + * @member {"prediction"|undefined} _prediction + * @memberof google.cloud.aiplatform.v1.SummarizationVerbosityInstance + * @instance + */ + Object.defineProperty(SummarizationVerbosityInstance.prototype, "_prediction", { + get: $util.oneOfGetter($oneOfFields = ["prediction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SummarizationVerbosityInstance _reference. + * @member {"reference"|undefined} _reference + * @memberof google.cloud.aiplatform.v1.SummarizationVerbosityInstance + * @instance + */ + Object.defineProperty(SummarizationVerbosityInstance.prototype, "_reference", { + get: $util.oneOfGetter($oneOfFields = ["reference"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SummarizationVerbosityInstance _context. + * @member {"context"|undefined} _context + * @memberof google.cloud.aiplatform.v1.SummarizationVerbosityInstance + * @instance + */ + Object.defineProperty(SummarizationVerbosityInstance.prototype, "_context", { + get: $util.oneOfGetter($oneOfFields = ["context"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SummarizationVerbosityInstance _instruction. + * @member {"instruction"|undefined} _instruction + * @memberof google.cloud.aiplatform.v1.SummarizationVerbosityInstance + * @instance + */ + Object.defineProperty(SummarizationVerbosityInstance.prototype, "_instruction", { + get: $util.oneOfGetter($oneOfFields = ["instruction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new SummarizationVerbosityInstance instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.SummarizationVerbosityInstance + * @static + * @param {google.cloud.aiplatform.v1.ISummarizationVerbosityInstance=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.SummarizationVerbosityInstance} SummarizationVerbosityInstance instance + */ + SummarizationVerbosityInstance.create = function create(properties) { + return new SummarizationVerbosityInstance(properties); + }; + + /** + * Encodes the specified SummarizationVerbosityInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.SummarizationVerbosityInstance.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.SummarizationVerbosityInstance + * @static + * @param {google.cloud.aiplatform.v1.ISummarizationVerbosityInstance} message SummarizationVerbosityInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SummarizationVerbosityInstance.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.prediction != null && Object.hasOwnProperty.call(message, "prediction")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.prediction); + if (message.reference != null && Object.hasOwnProperty.call(message, "reference")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.reference); + if (message.context != null && Object.hasOwnProperty.call(message, "context")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.context); + if (message.instruction != null && Object.hasOwnProperty.call(message, "instruction")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.instruction); + return writer; + }; + + /** + * Encodes the specified SummarizationVerbosityInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SummarizationVerbosityInstance.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.SummarizationVerbosityInstance + * @static + * @param {google.cloud.aiplatform.v1.ISummarizationVerbosityInstance} message SummarizationVerbosityInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SummarizationVerbosityInstance.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SummarizationVerbosityInstance message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.SummarizationVerbosityInstance + * @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.SummarizationVerbosityInstance} SummarizationVerbosityInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SummarizationVerbosityInstance.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.SummarizationVerbosityInstance(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.prediction = reader.string(); + break; + } + case 2: { + message.reference = reader.string(); + break; + } + case 3: { + message.context = reader.string(); + break; + } + case 4: { + message.instruction = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SummarizationVerbosityInstance message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.SummarizationVerbosityInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.SummarizationVerbosityInstance} SummarizationVerbosityInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SummarizationVerbosityInstance.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SummarizationVerbosityInstance message. + * @function verify + * @memberof google.cloud.aiplatform.v1.SummarizationVerbosityInstance + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SummarizationVerbosityInstance.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.prediction != null && message.hasOwnProperty("prediction")) { + properties._prediction = 1; + if (!$util.isString(message.prediction)) + return "prediction: string expected"; + } + if (message.reference != null && message.hasOwnProperty("reference")) { + properties._reference = 1; + if (!$util.isString(message.reference)) + return "reference: string expected"; + } + if (message.context != null && message.hasOwnProperty("context")) { + properties._context = 1; + if (!$util.isString(message.context)) + return "context: string expected"; + } + if (message.instruction != null && message.hasOwnProperty("instruction")) { + properties._instruction = 1; + if (!$util.isString(message.instruction)) + return "instruction: string expected"; + } + return null; + }; + + /** + * Creates a SummarizationVerbosityInstance message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.SummarizationVerbosityInstance + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.SummarizationVerbosityInstance} SummarizationVerbosityInstance + */ + SummarizationVerbosityInstance.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.SummarizationVerbosityInstance) + return object; + var message = new $root.google.cloud.aiplatform.v1.SummarizationVerbosityInstance(); + if (object.prediction != null) + message.prediction = String(object.prediction); + if (object.reference != null) + message.reference = String(object.reference); + if (object.context != null) + message.context = String(object.context); + if (object.instruction != null) + message.instruction = String(object.instruction); + return message; + }; + + /** + * Creates a plain object from a SummarizationVerbosityInstance message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.SummarizationVerbosityInstance + * @static + * @param {google.cloud.aiplatform.v1.SummarizationVerbosityInstance} message SummarizationVerbosityInstance + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SummarizationVerbosityInstance.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.prediction != null && message.hasOwnProperty("prediction")) { + object.prediction = message.prediction; + if (options.oneofs) + object._prediction = "prediction"; + } + if (message.reference != null && message.hasOwnProperty("reference")) { + object.reference = message.reference; + if (options.oneofs) + object._reference = "reference"; + } + if (message.context != null && message.hasOwnProperty("context")) { + object.context = message.context; + if (options.oneofs) + object._context = "context"; + } + if (message.instruction != null && message.hasOwnProperty("instruction")) { + object.instruction = message.instruction; + if (options.oneofs) + object._instruction = "instruction"; + } + return object; + }; + + /** + * Converts this SummarizationVerbosityInstance to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.SummarizationVerbosityInstance + * @instance + * @returns {Object.} JSON object + */ + SummarizationVerbosityInstance.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SummarizationVerbosityInstance + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.SummarizationVerbosityInstance + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SummarizationVerbosityInstance.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.SummarizationVerbosityInstance"; + }; + + return SummarizationVerbosityInstance; + })(); + + v1.SummarizationVerbositySpec = (function() { + + /** + * Properties of a SummarizationVerbositySpec. + * @memberof google.cloud.aiplatform.v1 + * @interface ISummarizationVerbositySpec + * @property {boolean|null} [useReference] SummarizationVerbositySpec useReference + * @property {number|null} [version] SummarizationVerbositySpec version + */ + + /** + * Constructs a new SummarizationVerbositySpec. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a SummarizationVerbositySpec. + * @implements ISummarizationVerbositySpec + * @constructor + * @param {google.cloud.aiplatform.v1.ISummarizationVerbositySpec=} [properties] Properties to set + */ + function SummarizationVerbositySpec(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]]; + } + + /** + * SummarizationVerbositySpec useReference. + * @member {boolean} useReference + * @memberof google.cloud.aiplatform.v1.SummarizationVerbositySpec + * @instance + */ + SummarizationVerbositySpec.prototype.useReference = false; + + /** + * SummarizationVerbositySpec version. + * @member {number} version + * @memberof google.cloud.aiplatform.v1.SummarizationVerbositySpec + * @instance + */ + SummarizationVerbositySpec.prototype.version = 0; + + /** + * Creates a new SummarizationVerbositySpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.SummarizationVerbositySpec + * @static + * @param {google.cloud.aiplatform.v1.ISummarizationVerbositySpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.SummarizationVerbositySpec} SummarizationVerbositySpec instance + */ + SummarizationVerbositySpec.create = function create(properties) { + return new SummarizationVerbositySpec(properties); + }; + + /** + * Encodes the specified SummarizationVerbositySpec message. Does not implicitly {@link google.cloud.aiplatform.v1.SummarizationVerbositySpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.SummarizationVerbositySpec + * @static + * @param {google.cloud.aiplatform.v1.ISummarizationVerbositySpec} message SummarizationVerbositySpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SummarizationVerbositySpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.useReference != null && Object.hasOwnProperty.call(message, "useReference")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.useReference); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.version); + return writer; + }; + + /** + * Encodes the specified SummarizationVerbositySpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SummarizationVerbositySpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.SummarizationVerbositySpec + * @static + * @param {google.cloud.aiplatform.v1.ISummarizationVerbositySpec} message SummarizationVerbositySpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SummarizationVerbositySpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SummarizationVerbositySpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.SummarizationVerbositySpec + * @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.SummarizationVerbositySpec} SummarizationVerbositySpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SummarizationVerbositySpec.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.SummarizationVerbositySpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.useReference = reader.bool(); + break; + } + case 2: { + message.version = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SummarizationVerbositySpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.SummarizationVerbositySpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.SummarizationVerbositySpec} SummarizationVerbositySpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SummarizationVerbositySpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SummarizationVerbositySpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1.SummarizationVerbositySpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SummarizationVerbositySpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.useReference != null && message.hasOwnProperty("useReference")) + if (typeof message.useReference !== "boolean") + return "useReference: boolean expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isInteger(message.version)) + return "version: integer expected"; + return null; + }; + + /** + * Creates a SummarizationVerbositySpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.SummarizationVerbositySpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.SummarizationVerbositySpec} SummarizationVerbositySpec + */ + SummarizationVerbositySpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.SummarizationVerbositySpec) + return object; + var message = new $root.google.cloud.aiplatform.v1.SummarizationVerbositySpec(); + if (object.useReference != null) + message.useReference = Boolean(object.useReference); + if (object.version != null) + message.version = object.version | 0; + return message; + }; + + /** + * Creates a plain object from a SummarizationVerbositySpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.SummarizationVerbositySpec + * @static + * @param {google.cloud.aiplatform.v1.SummarizationVerbositySpec} message SummarizationVerbositySpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SummarizationVerbositySpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.useReference = false; + object.version = 0; + } + if (message.useReference != null && message.hasOwnProperty("useReference")) + object.useReference = message.useReference; + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + return object; + }; + + /** + * Converts this SummarizationVerbositySpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.SummarizationVerbositySpec + * @instance + * @returns {Object.} JSON object + */ + SummarizationVerbositySpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SummarizationVerbositySpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.SummarizationVerbositySpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SummarizationVerbositySpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.SummarizationVerbositySpec"; + }; + + return SummarizationVerbositySpec; + })(); + + v1.SummarizationVerbosityResult = (function() { + + /** + * Properties of a SummarizationVerbosityResult. + * @memberof google.cloud.aiplatform.v1 + * @interface ISummarizationVerbosityResult + * @property {number|null} [score] SummarizationVerbosityResult score + * @property {string|null} [explanation] SummarizationVerbosityResult explanation + * @property {number|null} [confidence] SummarizationVerbosityResult confidence + */ + + /** + * Constructs a new SummarizationVerbosityResult. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a SummarizationVerbosityResult. + * @implements ISummarizationVerbosityResult + * @constructor + * @param {google.cloud.aiplatform.v1.ISummarizationVerbosityResult=} [properties] Properties to set + */ + function SummarizationVerbosityResult(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]]; + } + + /** + * SummarizationVerbosityResult score. + * @member {number|null|undefined} score + * @memberof google.cloud.aiplatform.v1.SummarizationVerbosityResult + * @instance + */ + SummarizationVerbosityResult.prototype.score = null; + + /** + * SummarizationVerbosityResult explanation. + * @member {string} explanation + * @memberof google.cloud.aiplatform.v1.SummarizationVerbosityResult + * @instance + */ + SummarizationVerbosityResult.prototype.explanation = ""; + + /** + * SummarizationVerbosityResult confidence. + * @member {number|null|undefined} confidence + * @memberof google.cloud.aiplatform.v1.SummarizationVerbosityResult + * @instance + */ + SummarizationVerbosityResult.prototype.confidence = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * SummarizationVerbosityResult _score. + * @member {"score"|undefined} _score + * @memberof google.cloud.aiplatform.v1.SummarizationVerbosityResult + * @instance + */ + Object.defineProperty(SummarizationVerbosityResult.prototype, "_score", { + get: $util.oneOfGetter($oneOfFields = ["score"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SummarizationVerbosityResult _confidence. + * @member {"confidence"|undefined} _confidence + * @memberof google.cloud.aiplatform.v1.SummarizationVerbosityResult + * @instance + */ + Object.defineProperty(SummarizationVerbosityResult.prototype, "_confidence", { + get: $util.oneOfGetter($oneOfFields = ["confidence"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new SummarizationVerbosityResult instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.SummarizationVerbosityResult + * @static + * @param {google.cloud.aiplatform.v1.ISummarizationVerbosityResult=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.SummarizationVerbosityResult} SummarizationVerbosityResult instance + */ + SummarizationVerbosityResult.create = function create(properties) { + return new SummarizationVerbosityResult(properties); + }; + + /** + * Encodes the specified SummarizationVerbosityResult message. Does not implicitly {@link google.cloud.aiplatform.v1.SummarizationVerbosityResult.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.SummarizationVerbosityResult + * @static + * @param {google.cloud.aiplatform.v1.ISummarizationVerbosityResult} message SummarizationVerbosityResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SummarizationVerbosityResult.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.score != null && Object.hasOwnProperty.call(message, "score")) + writer.uint32(/* id 1, wireType 5 =*/13).float(message.score); + if (message.explanation != null && Object.hasOwnProperty.call(message, "explanation")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.explanation); + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) + writer.uint32(/* id 3, wireType 5 =*/29).float(message.confidence); + return writer; + }; + + /** + * Encodes the specified SummarizationVerbosityResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SummarizationVerbosityResult.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.SummarizationVerbosityResult + * @static + * @param {google.cloud.aiplatform.v1.ISummarizationVerbosityResult} message SummarizationVerbosityResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SummarizationVerbosityResult.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SummarizationVerbosityResult message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.SummarizationVerbosityResult + * @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.SummarizationVerbosityResult} SummarizationVerbosityResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SummarizationVerbosityResult.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.SummarizationVerbosityResult(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.score = reader.float(); + break; + } + case 2: { + message.explanation = reader.string(); + break; + } + case 3: { + message.confidence = reader.float(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SummarizationVerbosityResult message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.SummarizationVerbosityResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.SummarizationVerbosityResult} SummarizationVerbosityResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SummarizationVerbosityResult.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SummarizationVerbosityResult message. + * @function verify + * @memberof google.cloud.aiplatform.v1.SummarizationVerbosityResult + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SummarizationVerbosityResult.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.score != null && message.hasOwnProperty("score")) { + properties._score = 1; + if (typeof message.score !== "number") + return "score: number expected"; + } + if (message.explanation != null && message.hasOwnProperty("explanation")) + if (!$util.isString(message.explanation)) + return "explanation: string expected"; + if (message.confidence != null && message.hasOwnProperty("confidence")) { + properties._confidence = 1; + if (typeof message.confidence !== "number") + return "confidence: number expected"; + } + return null; + }; + + /** + * Creates a SummarizationVerbosityResult message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.SummarizationVerbosityResult + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.SummarizationVerbosityResult} SummarizationVerbosityResult + */ + SummarizationVerbosityResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.SummarizationVerbosityResult) + return object; + var message = new $root.google.cloud.aiplatform.v1.SummarizationVerbosityResult(); + if (object.score != null) + message.score = Number(object.score); + if (object.explanation != null) + message.explanation = String(object.explanation); + if (object.confidence != null) + message.confidence = Number(object.confidence); + return message; + }; + + /** + * Creates a plain object from a SummarizationVerbosityResult message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.SummarizationVerbosityResult + * @static + * @param {google.cloud.aiplatform.v1.SummarizationVerbosityResult} message SummarizationVerbosityResult + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SummarizationVerbosityResult.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.explanation = ""; + if (message.score != null && message.hasOwnProperty("score")) { + object.score = options.json && !isFinite(message.score) ? String(message.score) : message.score; + if (options.oneofs) + object._score = "score"; + } + if (message.explanation != null && message.hasOwnProperty("explanation")) + object.explanation = message.explanation; + if (message.confidence != null && message.hasOwnProperty("confidence")) { + object.confidence = options.json && !isFinite(message.confidence) ? String(message.confidence) : message.confidence; + if (options.oneofs) + object._confidence = "confidence"; + } + return object; + }; + + /** + * Converts this SummarizationVerbosityResult to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.SummarizationVerbosityResult + * @instance + * @returns {Object.} JSON object + */ + SummarizationVerbosityResult.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SummarizationVerbosityResult + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.SummarizationVerbosityResult + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SummarizationVerbosityResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.SummarizationVerbosityResult"; + }; + + return SummarizationVerbosityResult; + })(); + + v1.QuestionAnsweringQualityInput = (function() { + + /** + * Properties of a QuestionAnsweringQualityInput. + * @memberof google.cloud.aiplatform.v1 + * @interface IQuestionAnsweringQualityInput + * @property {google.cloud.aiplatform.v1.IQuestionAnsweringQualitySpec|null} [metricSpec] QuestionAnsweringQualityInput metricSpec + * @property {google.cloud.aiplatform.v1.IQuestionAnsweringQualityInstance|null} [instance] QuestionAnsweringQualityInput instance + */ + + /** + * Constructs a new QuestionAnsweringQualityInput. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a QuestionAnsweringQualityInput. + * @implements IQuestionAnsweringQualityInput + * @constructor + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringQualityInput=} [properties] Properties to set + */ + function QuestionAnsweringQualityInput(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]]; + } + + /** + * QuestionAnsweringQualityInput metricSpec. + * @member {google.cloud.aiplatform.v1.IQuestionAnsweringQualitySpec|null|undefined} metricSpec + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringQualityInput + * @instance + */ + QuestionAnsweringQualityInput.prototype.metricSpec = null; + + /** + * QuestionAnsweringQualityInput instance. + * @member {google.cloud.aiplatform.v1.IQuestionAnsweringQualityInstance|null|undefined} instance + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringQualityInput + * @instance + */ + QuestionAnsweringQualityInput.prototype.instance = null; + + /** + * Creates a new QuestionAnsweringQualityInput instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringQualityInput + * @static + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringQualityInput=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.QuestionAnsweringQualityInput} QuestionAnsweringQualityInput instance + */ + QuestionAnsweringQualityInput.create = function create(properties) { + return new QuestionAnsweringQualityInput(properties); + }; + + /** + * Encodes the specified QuestionAnsweringQualityInput message. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringQualityInput.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringQualityInput + * @static + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringQualityInput} message QuestionAnsweringQualityInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QuestionAnsweringQualityInput.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.metricSpec != null && Object.hasOwnProperty.call(message, "metricSpec")) + $root.google.cloud.aiplatform.v1.QuestionAnsweringQualitySpec.encode(message.metricSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.instance != null && Object.hasOwnProperty.call(message, "instance")) + $root.google.cloud.aiplatform.v1.QuestionAnsweringQualityInstance.encode(message.instance, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified QuestionAnsweringQualityInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringQualityInput.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringQualityInput + * @static + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringQualityInput} message QuestionAnsweringQualityInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QuestionAnsweringQualityInput.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a QuestionAnsweringQualityInput message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringQualityInput + * @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.QuestionAnsweringQualityInput} QuestionAnsweringQualityInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QuestionAnsweringQualityInput.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.QuestionAnsweringQualityInput(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.metricSpec = $root.google.cloud.aiplatform.v1.QuestionAnsweringQualitySpec.decode(reader, reader.uint32()); + break; + } + case 2: { + message.instance = $root.google.cloud.aiplatform.v1.QuestionAnsweringQualityInstance.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a QuestionAnsweringQualityInput message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringQualityInput + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.QuestionAnsweringQualityInput} QuestionAnsweringQualityInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QuestionAnsweringQualityInput.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a QuestionAnsweringQualityInput message. + * @function verify + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringQualityInput + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QuestionAnsweringQualityInput.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) { + var error = $root.google.cloud.aiplatform.v1.QuestionAnsweringQualitySpec.verify(message.metricSpec); + if (error) + return "metricSpec." + error; + } + if (message.instance != null && message.hasOwnProperty("instance")) { + var error = $root.google.cloud.aiplatform.v1.QuestionAnsweringQualityInstance.verify(message.instance); + if (error) + return "instance." + error; + } + return null; + }; + + /** + * Creates a QuestionAnsweringQualityInput message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringQualityInput + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.QuestionAnsweringQualityInput} QuestionAnsweringQualityInput + */ + QuestionAnsweringQualityInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.QuestionAnsweringQualityInput) + return object; + var message = new $root.google.cloud.aiplatform.v1.QuestionAnsweringQualityInput(); + if (object.metricSpec != null) { + if (typeof object.metricSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.QuestionAnsweringQualityInput.metricSpec: object expected"); + message.metricSpec = $root.google.cloud.aiplatform.v1.QuestionAnsweringQualitySpec.fromObject(object.metricSpec); + } + if (object.instance != null) { + if (typeof object.instance !== "object") + throw TypeError(".google.cloud.aiplatform.v1.QuestionAnsweringQualityInput.instance: object expected"); + message.instance = $root.google.cloud.aiplatform.v1.QuestionAnsweringQualityInstance.fromObject(object.instance); + } + return message; + }; + + /** + * Creates a plain object from a QuestionAnsweringQualityInput message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringQualityInput + * @static + * @param {google.cloud.aiplatform.v1.QuestionAnsweringQualityInput} message QuestionAnsweringQualityInput + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + QuestionAnsweringQualityInput.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.metricSpec = null; + object.instance = null; + } + if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) + object.metricSpec = $root.google.cloud.aiplatform.v1.QuestionAnsweringQualitySpec.toObject(message.metricSpec, options); + if (message.instance != null && message.hasOwnProperty("instance")) + object.instance = $root.google.cloud.aiplatform.v1.QuestionAnsweringQualityInstance.toObject(message.instance, options); + return object; + }; + + /** + * Converts this QuestionAnsweringQualityInput to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringQualityInput + * @instance + * @returns {Object.} JSON object + */ + QuestionAnsweringQualityInput.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for QuestionAnsweringQualityInput + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringQualityInput + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + QuestionAnsweringQualityInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.QuestionAnsweringQualityInput"; + }; + + return QuestionAnsweringQualityInput; + })(); + + v1.QuestionAnsweringQualityInstance = (function() { + + /** + * Properties of a QuestionAnsweringQualityInstance. + * @memberof google.cloud.aiplatform.v1 + * @interface IQuestionAnsweringQualityInstance + * @property {string|null} [prediction] QuestionAnsweringQualityInstance prediction + * @property {string|null} [reference] QuestionAnsweringQualityInstance reference + * @property {string|null} [context] QuestionAnsweringQualityInstance context + * @property {string|null} [instruction] QuestionAnsweringQualityInstance instruction + */ + + /** + * Constructs a new QuestionAnsweringQualityInstance. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a QuestionAnsweringQualityInstance. + * @implements IQuestionAnsweringQualityInstance + * @constructor + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringQualityInstance=} [properties] Properties to set + */ + function QuestionAnsweringQualityInstance(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]]; + } + + /** + * QuestionAnsweringQualityInstance prediction. + * @member {string|null|undefined} prediction + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringQualityInstance + * @instance + */ + QuestionAnsweringQualityInstance.prototype.prediction = null; + + /** + * QuestionAnsweringQualityInstance reference. + * @member {string|null|undefined} reference + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringQualityInstance + * @instance + */ + QuestionAnsweringQualityInstance.prototype.reference = null; + + /** + * QuestionAnsweringQualityInstance context. + * @member {string|null|undefined} context + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringQualityInstance + * @instance + */ + QuestionAnsweringQualityInstance.prototype.context = null; + + /** + * QuestionAnsweringQualityInstance instruction. + * @member {string|null|undefined} instruction + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringQualityInstance + * @instance + */ + QuestionAnsweringQualityInstance.prototype.instruction = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * QuestionAnsweringQualityInstance _prediction. + * @member {"prediction"|undefined} _prediction + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringQualityInstance + * @instance + */ + Object.defineProperty(QuestionAnsweringQualityInstance.prototype, "_prediction", { + get: $util.oneOfGetter($oneOfFields = ["prediction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * QuestionAnsweringQualityInstance _reference. + * @member {"reference"|undefined} _reference + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringQualityInstance + * @instance + */ + Object.defineProperty(QuestionAnsweringQualityInstance.prototype, "_reference", { + get: $util.oneOfGetter($oneOfFields = ["reference"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * QuestionAnsweringQualityInstance _context. + * @member {"context"|undefined} _context + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringQualityInstance + * @instance + */ + Object.defineProperty(QuestionAnsweringQualityInstance.prototype, "_context", { + get: $util.oneOfGetter($oneOfFields = ["context"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * QuestionAnsweringQualityInstance _instruction. + * @member {"instruction"|undefined} _instruction + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringQualityInstance + * @instance + */ + Object.defineProperty(QuestionAnsweringQualityInstance.prototype, "_instruction", { + get: $util.oneOfGetter($oneOfFields = ["instruction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new QuestionAnsweringQualityInstance instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringQualityInstance + * @static + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringQualityInstance=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.QuestionAnsweringQualityInstance} QuestionAnsweringQualityInstance instance + */ + QuestionAnsweringQualityInstance.create = function create(properties) { + return new QuestionAnsweringQualityInstance(properties); + }; + + /** + * Encodes the specified QuestionAnsweringQualityInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringQualityInstance.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringQualityInstance + * @static + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringQualityInstance} message QuestionAnsweringQualityInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QuestionAnsweringQualityInstance.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.prediction != null && Object.hasOwnProperty.call(message, "prediction")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.prediction); + if (message.reference != null && Object.hasOwnProperty.call(message, "reference")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.reference); + if (message.context != null && Object.hasOwnProperty.call(message, "context")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.context); + if (message.instruction != null && Object.hasOwnProperty.call(message, "instruction")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.instruction); + return writer; + }; + + /** + * Encodes the specified QuestionAnsweringQualityInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringQualityInstance.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringQualityInstance + * @static + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringQualityInstance} message QuestionAnsweringQualityInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QuestionAnsweringQualityInstance.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a QuestionAnsweringQualityInstance message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringQualityInstance + * @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.QuestionAnsweringQualityInstance} QuestionAnsweringQualityInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QuestionAnsweringQualityInstance.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.QuestionAnsweringQualityInstance(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.prediction = reader.string(); + break; + } + case 2: { + message.reference = reader.string(); + break; + } + case 3: { + message.context = reader.string(); + break; + } + case 4: { + message.instruction = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a QuestionAnsweringQualityInstance message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringQualityInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.QuestionAnsweringQualityInstance} QuestionAnsweringQualityInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QuestionAnsweringQualityInstance.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a QuestionAnsweringQualityInstance message. + * @function verify + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringQualityInstance + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QuestionAnsweringQualityInstance.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.prediction != null && message.hasOwnProperty("prediction")) { + properties._prediction = 1; + if (!$util.isString(message.prediction)) + return "prediction: string expected"; + } + if (message.reference != null && message.hasOwnProperty("reference")) { + properties._reference = 1; + if (!$util.isString(message.reference)) + return "reference: string expected"; + } + if (message.context != null && message.hasOwnProperty("context")) { + properties._context = 1; + if (!$util.isString(message.context)) + return "context: string expected"; + } + if (message.instruction != null && message.hasOwnProperty("instruction")) { + properties._instruction = 1; + if (!$util.isString(message.instruction)) + return "instruction: string expected"; + } + return null; + }; + + /** + * Creates a QuestionAnsweringQualityInstance message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringQualityInstance + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.QuestionAnsweringQualityInstance} QuestionAnsweringQualityInstance + */ + QuestionAnsweringQualityInstance.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.QuestionAnsweringQualityInstance) + return object; + var message = new $root.google.cloud.aiplatform.v1.QuestionAnsweringQualityInstance(); + if (object.prediction != null) + message.prediction = String(object.prediction); + if (object.reference != null) + message.reference = String(object.reference); + if (object.context != null) + message.context = String(object.context); + if (object.instruction != null) + message.instruction = String(object.instruction); + return message; + }; + + /** + * Creates a plain object from a QuestionAnsweringQualityInstance message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringQualityInstance + * @static + * @param {google.cloud.aiplatform.v1.QuestionAnsweringQualityInstance} message QuestionAnsweringQualityInstance + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + QuestionAnsweringQualityInstance.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.prediction != null && message.hasOwnProperty("prediction")) { + object.prediction = message.prediction; + if (options.oneofs) + object._prediction = "prediction"; + } + if (message.reference != null && message.hasOwnProperty("reference")) { + object.reference = message.reference; + if (options.oneofs) + object._reference = "reference"; + } + if (message.context != null && message.hasOwnProperty("context")) { + object.context = message.context; + if (options.oneofs) + object._context = "context"; + } + if (message.instruction != null && message.hasOwnProperty("instruction")) { + object.instruction = message.instruction; + if (options.oneofs) + object._instruction = "instruction"; + } + return object; + }; + + /** + * Converts this QuestionAnsweringQualityInstance to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringQualityInstance + * @instance + * @returns {Object.} JSON object + */ + QuestionAnsweringQualityInstance.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for QuestionAnsweringQualityInstance + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringQualityInstance + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + QuestionAnsweringQualityInstance.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.QuestionAnsweringQualityInstance"; + }; + + return QuestionAnsweringQualityInstance; + })(); + + v1.QuestionAnsweringQualitySpec = (function() { + + /** + * Properties of a QuestionAnsweringQualitySpec. + * @memberof google.cloud.aiplatform.v1 + * @interface IQuestionAnsweringQualitySpec + * @property {boolean|null} [useReference] QuestionAnsweringQualitySpec useReference + * @property {number|null} [version] QuestionAnsweringQualitySpec version + */ + + /** + * Constructs a new QuestionAnsweringQualitySpec. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a QuestionAnsweringQualitySpec. + * @implements IQuestionAnsweringQualitySpec + * @constructor + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringQualitySpec=} [properties] Properties to set + */ + function QuestionAnsweringQualitySpec(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]]; + } + + /** + * QuestionAnsweringQualitySpec useReference. + * @member {boolean} useReference + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringQualitySpec + * @instance + */ + QuestionAnsweringQualitySpec.prototype.useReference = false; + + /** + * QuestionAnsweringQualitySpec version. + * @member {number} version + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringQualitySpec + * @instance + */ + QuestionAnsweringQualitySpec.prototype.version = 0; + + /** + * Creates a new QuestionAnsweringQualitySpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringQualitySpec + * @static + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringQualitySpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.QuestionAnsweringQualitySpec} QuestionAnsweringQualitySpec instance + */ + QuestionAnsweringQualitySpec.create = function create(properties) { + return new QuestionAnsweringQualitySpec(properties); + }; + + /** + * Encodes the specified QuestionAnsweringQualitySpec message. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringQualitySpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringQualitySpec + * @static + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringQualitySpec} message QuestionAnsweringQualitySpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QuestionAnsweringQualitySpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.useReference != null && Object.hasOwnProperty.call(message, "useReference")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.useReference); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.version); + return writer; + }; + + /** + * Encodes the specified QuestionAnsweringQualitySpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringQualitySpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringQualitySpec + * @static + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringQualitySpec} message QuestionAnsweringQualitySpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QuestionAnsweringQualitySpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a QuestionAnsweringQualitySpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringQualitySpec + * @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.QuestionAnsweringQualitySpec} QuestionAnsweringQualitySpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QuestionAnsweringQualitySpec.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.QuestionAnsweringQualitySpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.useReference = reader.bool(); + break; + } + case 2: { + message.version = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a QuestionAnsweringQualitySpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringQualitySpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.QuestionAnsweringQualitySpec} QuestionAnsweringQualitySpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QuestionAnsweringQualitySpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a QuestionAnsweringQualitySpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringQualitySpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QuestionAnsweringQualitySpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.useReference != null && message.hasOwnProperty("useReference")) + if (typeof message.useReference !== "boolean") + return "useReference: boolean expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isInteger(message.version)) + return "version: integer expected"; + return null; + }; + + /** + * Creates a QuestionAnsweringQualitySpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringQualitySpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.QuestionAnsweringQualitySpec} QuestionAnsweringQualitySpec + */ + QuestionAnsweringQualitySpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.QuestionAnsweringQualitySpec) + return object; + var message = new $root.google.cloud.aiplatform.v1.QuestionAnsweringQualitySpec(); + if (object.useReference != null) + message.useReference = Boolean(object.useReference); + if (object.version != null) + message.version = object.version | 0; + return message; + }; + + /** + * Creates a plain object from a QuestionAnsweringQualitySpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringQualitySpec + * @static + * @param {google.cloud.aiplatform.v1.QuestionAnsweringQualitySpec} message QuestionAnsweringQualitySpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + QuestionAnsweringQualitySpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.useReference = false; + object.version = 0; + } + if (message.useReference != null && message.hasOwnProperty("useReference")) + object.useReference = message.useReference; + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + return object; + }; + + /** + * Converts this QuestionAnsweringQualitySpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringQualitySpec + * @instance + * @returns {Object.} JSON object + */ + QuestionAnsweringQualitySpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for QuestionAnsweringQualitySpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringQualitySpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + QuestionAnsweringQualitySpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.QuestionAnsweringQualitySpec"; + }; + + return QuestionAnsweringQualitySpec; + })(); + + v1.QuestionAnsweringQualityResult = (function() { + + /** + * Properties of a QuestionAnsweringQualityResult. + * @memberof google.cloud.aiplatform.v1 + * @interface IQuestionAnsweringQualityResult + * @property {number|null} [score] QuestionAnsweringQualityResult score + * @property {string|null} [explanation] QuestionAnsweringQualityResult explanation + * @property {number|null} [confidence] QuestionAnsweringQualityResult confidence + */ + + /** + * Constructs a new QuestionAnsweringQualityResult. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a QuestionAnsweringQualityResult. + * @implements IQuestionAnsweringQualityResult + * @constructor + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringQualityResult=} [properties] Properties to set + */ + function QuestionAnsweringQualityResult(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]]; + } + + /** + * QuestionAnsweringQualityResult score. + * @member {number|null|undefined} score + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringQualityResult + * @instance + */ + QuestionAnsweringQualityResult.prototype.score = null; + + /** + * QuestionAnsweringQualityResult explanation. + * @member {string} explanation + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringQualityResult + * @instance + */ + QuestionAnsweringQualityResult.prototype.explanation = ""; + + /** + * QuestionAnsweringQualityResult confidence. + * @member {number|null|undefined} confidence + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringQualityResult + * @instance + */ + QuestionAnsweringQualityResult.prototype.confidence = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * QuestionAnsweringQualityResult _score. + * @member {"score"|undefined} _score + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringQualityResult + * @instance + */ + Object.defineProperty(QuestionAnsweringQualityResult.prototype, "_score", { + get: $util.oneOfGetter($oneOfFields = ["score"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * QuestionAnsweringQualityResult _confidence. + * @member {"confidence"|undefined} _confidence + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringQualityResult + * @instance + */ + Object.defineProperty(QuestionAnsweringQualityResult.prototype, "_confidence", { + get: $util.oneOfGetter($oneOfFields = ["confidence"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new QuestionAnsweringQualityResult instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringQualityResult + * @static + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringQualityResult=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.QuestionAnsweringQualityResult} QuestionAnsweringQualityResult instance + */ + QuestionAnsweringQualityResult.create = function create(properties) { + return new QuestionAnsweringQualityResult(properties); + }; + + /** + * Encodes the specified QuestionAnsweringQualityResult message. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringQualityResult.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringQualityResult + * @static + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringQualityResult} message QuestionAnsweringQualityResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QuestionAnsweringQualityResult.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.score != null && Object.hasOwnProperty.call(message, "score")) + writer.uint32(/* id 1, wireType 5 =*/13).float(message.score); + if (message.explanation != null && Object.hasOwnProperty.call(message, "explanation")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.explanation); + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) + writer.uint32(/* id 3, wireType 5 =*/29).float(message.confidence); + return writer; + }; + + /** + * Encodes the specified QuestionAnsweringQualityResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringQualityResult.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringQualityResult + * @static + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringQualityResult} message QuestionAnsweringQualityResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QuestionAnsweringQualityResult.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a QuestionAnsweringQualityResult message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringQualityResult + * @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.QuestionAnsweringQualityResult} QuestionAnsweringQualityResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QuestionAnsweringQualityResult.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.QuestionAnsweringQualityResult(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.score = reader.float(); + break; + } + case 2: { + message.explanation = reader.string(); + break; + } + case 3: { + message.confidence = reader.float(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a QuestionAnsweringQualityResult message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringQualityResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.QuestionAnsweringQualityResult} QuestionAnsweringQualityResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QuestionAnsweringQualityResult.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a QuestionAnsweringQualityResult message. + * @function verify + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringQualityResult + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QuestionAnsweringQualityResult.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.score != null && message.hasOwnProperty("score")) { + properties._score = 1; + if (typeof message.score !== "number") + return "score: number expected"; + } + if (message.explanation != null && message.hasOwnProperty("explanation")) + if (!$util.isString(message.explanation)) + return "explanation: string expected"; + if (message.confidence != null && message.hasOwnProperty("confidence")) { + properties._confidence = 1; + if (typeof message.confidence !== "number") + return "confidence: number expected"; + } + return null; + }; + + /** + * Creates a QuestionAnsweringQualityResult message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringQualityResult + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.QuestionAnsweringQualityResult} QuestionAnsweringQualityResult + */ + QuestionAnsweringQualityResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.QuestionAnsweringQualityResult) + return object; + var message = new $root.google.cloud.aiplatform.v1.QuestionAnsweringQualityResult(); + if (object.score != null) + message.score = Number(object.score); + if (object.explanation != null) + message.explanation = String(object.explanation); + if (object.confidence != null) + message.confidence = Number(object.confidence); + return message; + }; + + /** + * Creates a plain object from a QuestionAnsweringQualityResult message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringQualityResult + * @static + * @param {google.cloud.aiplatform.v1.QuestionAnsweringQualityResult} message QuestionAnsweringQualityResult + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + QuestionAnsweringQualityResult.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.explanation = ""; + if (message.score != null && message.hasOwnProperty("score")) { + object.score = options.json && !isFinite(message.score) ? String(message.score) : message.score; + if (options.oneofs) + object._score = "score"; + } + if (message.explanation != null && message.hasOwnProperty("explanation")) + object.explanation = message.explanation; + if (message.confidence != null && message.hasOwnProperty("confidence")) { + object.confidence = options.json && !isFinite(message.confidence) ? String(message.confidence) : message.confidence; + if (options.oneofs) + object._confidence = "confidence"; + } + return object; + }; + + /** + * Converts this QuestionAnsweringQualityResult to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringQualityResult + * @instance + * @returns {Object.} JSON object + */ + QuestionAnsweringQualityResult.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for QuestionAnsweringQualityResult + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringQualityResult + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + QuestionAnsweringQualityResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.QuestionAnsweringQualityResult"; + }; + + return QuestionAnsweringQualityResult; + })(); + + v1.PairwiseQuestionAnsweringQualityInput = (function() { + + /** + * Properties of a PairwiseQuestionAnsweringQualityInput. + * @memberof google.cloud.aiplatform.v1 + * @interface IPairwiseQuestionAnsweringQualityInput + * @property {google.cloud.aiplatform.v1.IPairwiseQuestionAnsweringQualitySpec|null} [metricSpec] PairwiseQuestionAnsweringQualityInput metricSpec + * @property {google.cloud.aiplatform.v1.IPairwiseQuestionAnsweringQualityInstance|null} [instance] PairwiseQuestionAnsweringQualityInput instance + */ + + /** + * Constructs a new PairwiseQuestionAnsweringQualityInput. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a PairwiseQuestionAnsweringQualityInput. + * @implements IPairwiseQuestionAnsweringQualityInput + * @constructor + * @param {google.cloud.aiplatform.v1.IPairwiseQuestionAnsweringQualityInput=} [properties] Properties to set + */ + function PairwiseQuestionAnsweringQualityInput(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]]; + } + + /** + * PairwiseQuestionAnsweringQualityInput metricSpec. + * @member {google.cloud.aiplatform.v1.IPairwiseQuestionAnsweringQualitySpec|null|undefined} metricSpec + * @memberof google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInput + * @instance + */ + PairwiseQuestionAnsweringQualityInput.prototype.metricSpec = null; + + /** + * PairwiseQuestionAnsweringQualityInput instance. + * @member {google.cloud.aiplatform.v1.IPairwiseQuestionAnsweringQualityInstance|null|undefined} instance + * @memberof google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInput + * @instance + */ + PairwiseQuestionAnsweringQualityInput.prototype.instance = null; + + /** + * Creates a new PairwiseQuestionAnsweringQualityInput instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInput + * @static + * @param {google.cloud.aiplatform.v1.IPairwiseQuestionAnsweringQualityInput=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInput} PairwiseQuestionAnsweringQualityInput instance + */ + PairwiseQuestionAnsweringQualityInput.create = function create(properties) { + return new PairwiseQuestionAnsweringQualityInput(properties); + }; + + /** + * Encodes the specified PairwiseQuestionAnsweringQualityInput message. Does not implicitly {@link google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInput.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInput + * @static + * @param {google.cloud.aiplatform.v1.IPairwiseQuestionAnsweringQualityInput} message PairwiseQuestionAnsweringQualityInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PairwiseQuestionAnsweringQualityInput.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.metricSpec != null && Object.hasOwnProperty.call(message, "metricSpec")) + $root.google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualitySpec.encode(message.metricSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.instance != null && Object.hasOwnProperty.call(message, "instance")) + $root.google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInstance.encode(message.instance, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified PairwiseQuestionAnsweringQualityInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInput.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInput + * @static + * @param {google.cloud.aiplatform.v1.IPairwiseQuestionAnsweringQualityInput} message PairwiseQuestionAnsweringQualityInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PairwiseQuestionAnsweringQualityInput.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PairwiseQuestionAnsweringQualityInput message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInput + * @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.PairwiseQuestionAnsweringQualityInput} PairwiseQuestionAnsweringQualityInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PairwiseQuestionAnsweringQualityInput.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.PairwiseQuestionAnsweringQualityInput(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.metricSpec = $root.google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualitySpec.decode(reader, reader.uint32()); + break; + } + case 2: { + message.instance = $root.google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInstance.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PairwiseQuestionAnsweringQualityInput message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInput + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInput} PairwiseQuestionAnsweringQualityInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PairwiseQuestionAnsweringQualityInput.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PairwiseQuestionAnsweringQualityInput message. + * @function verify + * @memberof google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInput + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PairwiseQuestionAnsweringQualityInput.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) { + var error = $root.google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualitySpec.verify(message.metricSpec); + if (error) + return "metricSpec." + error; + } + if (message.instance != null && message.hasOwnProperty("instance")) { + var error = $root.google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInstance.verify(message.instance); + if (error) + return "instance." + error; + } + return null; + }; + + /** + * Creates a PairwiseQuestionAnsweringQualityInput message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInput + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInput} PairwiseQuestionAnsweringQualityInput + */ + PairwiseQuestionAnsweringQualityInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInput) + return object; + var message = new $root.google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInput(); + if (object.metricSpec != null) { + if (typeof object.metricSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInput.metricSpec: object expected"); + message.metricSpec = $root.google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualitySpec.fromObject(object.metricSpec); + } + if (object.instance != null) { + if (typeof object.instance !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInput.instance: object expected"); + message.instance = $root.google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInstance.fromObject(object.instance); + } + return message; + }; + + /** + * Creates a plain object from a PairwiseQuestionAnsweringQualityInput message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInput + * @static + * @param {google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInput} message PairwiseQuestionAnsweringQualityInput + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PairwiseQuestionAnsweringQualityInput.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.metricSpec = null; + object.instance = null; + } + if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) + object.metricSpec = $root.google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualitySpec.toObject(message.metricSpec, options); + if (message.instance != null && message.hasOwnProperty("instance")) + object.instance = $root.google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInstance.toObject(message.instance, options); + return object; + }; + + /** + * Converts this PairwiseQuestionAnsweringQualityInput to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInput + * @instance + * @returns {Object.} JSON object + */ + PairwiseQuestionAnsweringQualityInput.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PairwiseQuestionAnsweringQualityInput + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInput + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PairwiseQuestionAnsweringQualityInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInput"; + }; + + return PairwiseQuestionAnsweringQualityInput; + })(); + + v1.PairwiseQuestionAnsweringQualityInstance = (function() { + + /** + * Properties of a PairwiseQuestionAnsweringQualityInstance. + * @memberof google.cloud.aiplatform.v1 + * @interface IPairwiseQuestionAnsweringQualityInstance + * @property {string|null} [prediction] PairwiseQuestionAnsweringQualityInstance prediction + * @property {string|null} [baselinePrediction] PairwiseQuestionAnsweringQualityInstance baselinePrediction + * @property {string|null} [reference] PairwiseQuestionAnsweringQualityInstance reference + * @property {string|null} [context] PairwiseQuestionAnsweringQualityInstance context + * @property {string|null} [instruction] PairwiseQuestionAnsweringQualityInstance instruction + */ + + /** + * Constructs a new PairwiseQuestionAnsweringQualityInstance. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a PairwiseQuestionAnsweringQualityInstance. + * @implements IPairwiseQuestionAnsweringQualityInstance + * @constructor + * @param {google.cloud.aiplatform.v1.IPairwiseQuestionAnsweringQualityInstance=} [properties] Properties to set + */ + function PairwiseQuestionAnsweringQualityInstance(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]]; + } + + /** + * PairwiseQuestionAnsweringQualityInstance prediction. + * @member {string|null|undefined} prediction + * @memberof google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInstance + * @instance + */ + PairwiseQuestionAnsweringQualityInstance.prototype.prediction = null; + + /** + * PairwiseQuestionAnsweringQualityInstance baselinePrediction. + * @member {string|null|undefined} baselinePrediction + * @memberof google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInstance + * @instance + */ + PairwiseQuestionAnsweringQualityInstance.prototype.baselinePrediction = null; + + /** + * PairwiseQuestionAnsweringQualityInstance reference. + * @member {string|null|undefined} reference + * @memberof google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInstance + * @instance + */ + PairwiseQuestionAnsweringQualityInstance.prototype.reference = null; + + /** + * PairwiseQuestionAnsweringQualityInstance context. + * @member {string|null|undefined} context + * @memberof google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInstance + * @instance + */ + PairwiseQuestionAnsweringQualityInstance.prototype.context = null; + + /** + * PairwiseQuestionAnsweringQualityInstance instruction. + * @member {string|null|undefined} instruction + * @memberof google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInstance + * @instance + */ + PairwiseQuestionAnsweringQualityInstance.prototype.instruction = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * PairwiseQuestionAnsweringQualityInstance _prediction. + * @member {"prediction"|undefined} _prediction + * @memberof google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInstance + * @instance + */ + Object.defineProperty(PairwiseQuestionAnsweringQualityInstance.prototype, "_prediction", { + get: $util.oneOfGetter($oneOfFields = ["prediction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * PairwiseQuestionAnsweringQualityInstance _baselinePrediction. + * @member {"baselinePrediction"|undefined} _baselinePrediction + * @memberof google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInstance + * @instance + */ + Object.defineProperty(PairwiseQuestionAnsweringQualityInstance.prototype, "_baselinePrediction", { + get: $util.oneOfGetter($oneOfFields = ["baselinePrediction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * PairwiseQuestionAnsweringQualityInstance _reference. + * @member {"reference"|undefined} _reference + * @memberof google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInstance + * @instance + */ + Object.defineProperty(PairwiseQuestionAnsweringQualityInstance.prototype, "_reference", { + get: $util.oneOfGetter($oneOfFields = ["reference"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * PairwiseQuestionAnsweringQualityInstance _context. + * @member {"context"|undefined} _context + * @memberof google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInstance + * @instance + */ + Object.defineProperty(PairwiseQuestionAnsweringQualityInstance.prototype, "_context", { + get: $util.oneOfGetter($oneOfFields = ["context"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * PairwiseQuestionAnsweringQualityInstance _instruction. + * @member {"instruction"|undefined} _instruction + * @memberof google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInstance + * @instance + */ + Object.defineProperty(PairwiseQuestionAnsweringQualityInstance.prototype, "_instruction", { + get: $util.oneOfGetter($oneOfFields = ["instruction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new PairwiseQuestionAnsweringQualityInstance instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInstance + * @static + * @param {google.cloud.aiplatform.v1.IPairwiseQuestionAnsweringQualityInstance=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInstance} PairwiseQuestionAnsweringQualityInstance instance + */ + PairwiseQuestionAnsweringQualityInstance.create = function create(properties) { + return new PairwiseQuestionAnsweringQualityInstance(properties); + }; + + /** + * Encodes the specified PairwiseQuestionAnsweringQualityInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInstance.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInstance + * @static + * @param {google.cloud.aiplatform.v1.IPairwiseQuestionAnsweringQualityInstance} message PairwiseQuestionAnsweringQualityInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PairwiseQuestionAnsweringQualityInstance.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.prediction != null && Object.hasOwnProperty.call(message, "prediction")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.prediction); + if (message.baselinePrediction != null && Object.hasOwnProperty.call(message, "baselinePrediction")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.baselinePrediction); + if (message.reference != null && Object.hasOwnProperty.call(message, "reference")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.reference); + if (message.context != null && Object.hasOwnProperty.call(message, "context")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.context); + if (message.instruction != null && Object.hasOwnProperty.call(message, "instruction")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.instruction); + return writer; + }; + + /** + * Encodes the specified PairwiseQuestionAnsweringQualityInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInstance.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInstance + * @static + * @param {google.cloud.aiplatform.v1.IPairwiseQuestionAnsweringQualityInstance} message PairwiseQuestionAnsweringQualityInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PairwiseQuestionAnsweringQualityInstance.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PairwiseQuestionAnsweringQualityInstance message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInstance + * @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.PairwiseQuestionAnsweringQualityInstance} PairwiseQuestionAnsweringQualityInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PairwiseQuestionAnsweringQualityInstance.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.PairwiseQuestionAnsweringQualityInstance(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.prediction = reader.string(); + break; + } + case 2: { + message.baselinePrediction = reader.string(); + break; + } + case 3: { + message.reference = reader.string(); + break; + } + case 4: { + message.context = reader.string(); + break; + } + case 5: { + message.instruction = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PairwiseQuestionAnsweringQualityInstance message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInstance} PairwiseQuestionAnsweringQualityInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PairwiseQuestionAnsweringQualityInstance.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PairwiseQuestionAnsweringQualityInstance message. + * @function verify + * @memberof google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInstance + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PairwiseQuestionAnsweringQualityInstance.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.prediction != null && message.hasOwnProperty("prediction")) { + properties._prediction = 1; + if (!$util.isString(message.prediction)) + return "prediction: string expected"; + } + if (message.baselinePrediction != null && message.hasOwnProperty("baselinePrediction")) { + properties._baselinePrediction = 1; + if (!$util.isString(message.baselinePrediction)) + return "baselinePrediction: string expected"; + } + if (message.reference != null && message.hasOwnProperty("reference")) { + properties._reference = 1; + if (!$util.isString(message.reference)) + return "reference: string expected"; + } + if (message.context != null && message.hasOwnProperty("context")) { + properties._context = 1; + if (!$util.isString(message.context)) + return "context: string expected"; + } + if (message.instruction != null && message.hasOwnProperty("instruction")) { + properties._instruction = 1; + if (!$util.isString(message.instruction)) + return "instruction: string expected"; + } + return null; + }; + + /** + * Creates a PairwiseQuestionAnsweringQualityInstance message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInstance + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInstance} PairwiseQuestionAnsweringQualityInstance + */ + PairwiseQuestionAnsweringQualityInstance.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInstance) + return object; + var message = new $root.google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInstance(); + if (object.prediction != null) + message.prediction = String(object.prediction); + if (object.baselinePrediction != null) + message.baselinePrediction = String(object.baselinePrediction); + if (object.reference != null) + message.reference = String(object.reference); + if (object.context != null) + message.context = String(object.context); + if (object.instruction != null) + message.instruction = String(object.instruction); + return message; + }; + + /** + * Creates a plain object from a PairwiseQuestionAnsweringQualityInstance message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInstance + * @static + * @param {google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInstance} message PairwiseQuestionAnsweringQualityInstance + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PairwiseQuestionAnsweringQualityInstance.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.prediction != null && message.hasOwnProperty("prediction")) { + object.prediction = message.prediction; + if (options.oneofs) + object._prediction = "prediction"; + } + if (message.baselinePrediction != null && message.hasOwnProperty("baselinePrediction")) { + object.baselinePrediction = message.baselinePrediction; + if (options.oneofs) + object._baselinePrediction = "baselinePrediction"; + } + if (message.reference != null && message.hasOwnProperty("reference")) { + object.reference = message.reference; + if (options.oneofs) + object._reference = "reference"; + } + if (message.context != null && message.hasOwnProperty("context")) { + object.context = message.context; + if (options.oneofs) + object._context = "context"; + } + if (message.instruction != null && message.hasOwnProperty("instruction")) { + object.instruction = message.instruction; + if (options.oneofs) + object._instruction = "instruction"; + } + return object; + }; + + /** + * Converts this PairwiseQuestionAnsweringQualityInstance to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInstance + * @instance + * @returns {Object.} JSON object + */ + PairwiseQuestionAnsweringQualityInstance.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PairwiseQuestionAnsweringQualityInstance + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInstance + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PairwiseQuestionAnsweringQualityInstance.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInstance"; + }; + + return PairwiseQuestionAnsweringQualityInstance; + })(); + + v1.PairwiseQuestionAnsweringQualitySpec = (function() { + + /** + * Properties of a PairwiseQuestionAnsweringQualitySpec. + * @memberof google.cloud.aiplatform.v1 + * @interface IPairwiseQuestionAnsweringQualitySpec + * @property {boolean|null} [useReference] PairwiseQuestionAnsweringQualitySpec useReference + * @property {number|null} [version] PairwiseQuestionAnsweringQualitySpec version + */ + + /** + * Constructs a new PairwiseQuestionAnsweringQualitySpec. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a PairwiseQuestionAnsweringQualitySpec. + * @implements IPairwiseQuestionAnsweringQualitySpec + * @constructor + * @param {google.cloud.aiplatform.v1.IPairwiseQuestionAnsweringQualitySpec=} [properties] Properties to set + */ + function PairwiseQuestionAnsweringQualitySpec(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]]; + } + + /** + * PairwiseQuestionAnsweringQualitySpec useReference. + * @member {boolean} useReference + * @memberof google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualitySpec + * @instance + */ + PairwiseQuestionAnsweringQualitySpec.prototype.useReference = false; + + /** + * PairwiseQuestionAnsweringQualitySpec version. + * @member {number} version + * @memberof google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualitySpec + * @instance + */ + PairwiseQuestionAnsweringQualitySpec.prototype.version = 0; + + /** + * Creates a new PairwiseQuestionAnsweringQualitySpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualitySpec + * @static + * @param {google.cloud.aiplatform.v1.IPairwiseQuestionAnsweringQualitySpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualitySpec} PairwiseQuestionAnsweringQualitySpec instance + */ + PairwiseQuestionAnsweringQualitySpec.create = function create(properties) { + return new PairwiseQuestionAnsweringQualitySpec(properties); + }; + + /** + * Encodes the specified PairwiseQuestionAnsweringQualitySpec message. Does not implicitly {@link google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualitySpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualitySpec + * @static + * @param {google.cloud.aiplatform.v1.IPairwiseQuestionAnsweringQualitySpec} message PairwiseQuestionAnsweringQualitySpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PairwiseQuestionAnsweringQualitySpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.useReference != null && Object.hasOwnProperty.call(message, "useReference")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.useReference); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.version); + return writer; + }; + + /** + * Encodes the specified PairwiseQuestionAnsweringQualitySpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualitySpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualitySpec + * @static + * @param {google.cloud.aiplatform.v1.IPairwiseQuestionAnsweringQualitySpec} message PairwiseQuestionAnsweringQualitySpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PairwiseQuestionAnsweringQualitySpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PairwiseQuestionAnsweringQualitySpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualitySpec + * @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.PairwiseQuestionAnsweringQualitySpec} PairwiseQuestionAnsweringQualitySpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PairwiseQuestionAnsweringQualitySpec.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.PairwiseQuestionAnsweringQualitySpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.useReference = reader.bool(); + break; + } + case 2: { + message.version = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PairwiseQuestionAnsweringQualitySpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualitySpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualitySpec} PairwiseQuestionAnsweringQualitySpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PairwiseQuestionAnsweringQualitySpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PairwiseQuestionAnsweringQualitySpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualitySpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PairwiseQuestionAnsweringQualitySpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.useReference != null && message.hasOwnProperty("useReference")) + if (typeof message.useReference !== "boolean") + return "useReference: boolean expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isInteger(message.version)) + return "version: integer expected"; + return null; + }; + + /** + * Creates a PairwiseQuestionAnsweringQualitySpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualitySpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualitySpec} PairwiseQuestionAnsweringQualitySpec + */ + PairwiseQuestionAnsweringQualitySpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualitySpec) + return object; + var message = new $root.google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualitySpec(); + if (object.useReference != null) + message.useReference = Boolean(object.useReference); + if (object.version != null) + message.version = object.version | 0; + return message; + }; + + /** + * Creates a plain object from a PairwiseQuestionAnsweringQualitySpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualitySpec + * @static + * @param {google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualitySpec} message PairwiseQuestionAnsweringQualitySpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PairwiseQuestionAnsweringQualitySpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.useReference = false; + object.version = 0; + } + if (message.useReference != null && message.hasOwnProperty("useReference")) + object.useReference = message.useReference; + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + return object; + }; + + /** + * Converts this PairwiseQuestionAnsweringQualitySpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualitySpec + * @instance + * @returns {Object.} JSON object + */ + PairwiseQuestionAnsweringQualitySpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PairwiseQuestionAnsweringQualitySpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualitySpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PairwiseQuestionAnsweringQualitySpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualitySpec"; + }; + + return PairwiseQuestionAnsweringQualitySpec; + })(); + + v1.PairwiseQuestionAnsweringQualityResult = (function() { + + /** + * Properties of a PairwiseQuestionAnsweringQualityResult. + * @memberof google.cloud.aiplatform.v1 + * @interface IPairwiseQuestionAnsweringQualityResult + * @property {google.cloud.aiplatform.v1.PairwiseChoice|null} [pairwiseChoice] PairwiseQuestionAnsweringQualityResult pairwiseChoice + * @property {string|null} [explanation] PairwiseQuestionAnsweringQualityResult explanation + * @property {number|null} [confidence] PairwiseQuestionAnsweringQualityResult confidence + */ + + /** + * Constructs a new PairwiseQuestionAnsweringQualityResult. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a PairwiseQuestionAnsweringQualityResult. + * @implements IPairwiseQuestionAnsweringQualityResult + * @constructor + * @param {google.cloud.aiplatform.v1.IPairwiseQuestionAnsweringQualityResult=} [properties] Properties to set + */ + function PairwiseQuestionAnsweringQualityResult(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]]; + } + + /** + * PairwiseQuestionAnsweringQualityResult pairwiseChoice. + * @member {google.cloud.aiplatform.v1.PairwiseChoice} pairwiseChoice + * @memberof google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityResult + * @instance + */ + PairwiseQuestionAnsweringQualityResult.prototype.pairwiseChoice = 0; + + /** + * PairwiseQuestionAnsweringQualityResult explanation. + * @member {string} explanation + * @memberof google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityResult + * @instance + */ + PairwiseQuestionAnsweringQualityResult.prototype.explanation = ""; + + /** + * PairwiseQuestionAnsweringQualityResult confidence. + * @member {number|null|undefined} confidence + * @memberof google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityResult + * @instance + */ + PairwiseQuestionAnsweringQualityResult.prototype.confidence = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * PairwiseQuestionAnsweringQualityResult _confidence. + * @member {"confidence"|undefined} _confidence + * @memberof google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityResult + * @instance + */ + Object.defineProperty(PairwiseQuestionAnsweringQualityResult.prototype, "_confidence", { + get: $util.oneOfGetter($oneOfFields = ["confidence"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new PairwiseQuestionAnsweringQualityResult instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityResult + * @static + * @param {google.cloud.aiplatform.v1.IPairwiseQuestionAnsweringQualityResult=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityResult} PairwiseQuestionAnsweringQualityResult instance + */ + PairwiseQuestionAnsweringQualityResult.create = function create(properties) { + return new PairwiseQuestionAnsweringQualityResult(properties); + }; + + /** + * Encodes the specified PairwiseQuestionAnsweringQualityResult message. Does not implicitly {@link google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityResult.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityResult + * @static + * @param {google.cloud.aiplatform.v1.IPairwiseQuestionAnsweringQualityResult} message PairwiseQuestionAnsweringQualityResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PairwiseQuestionAnsweringQualityResult.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.pairwiseChoice != null && Object.hasOwnProperty.call(message, "pairwiseChoice")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.pairwiseChoice); + if (message.explanation != null && Object.hasOwnProperty.call(message, "explanation")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.explanation); + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) + writer.uint32(/* id 3, wireType 5 =*/29).float(message.confidence); + return writer; + }; + + /** + * Encodes the specified PairwiseQuestionAnsweringQualityResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityResult.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityResult + * @static + * @param {google.cloud.aiplatform.v1.IPairwiseQuestionAnsweringQualityResult} message PairwiseQuestionAnsweringQualityResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PairwiseQuestionAnsweringQualityResult.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PairwiseQuestionAnsweringQualityResult message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityResult + * @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.PairwiseQuestionAnsweringQualityResult} PairwiseQuestionAnsweringQualityResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PairwiseQuestionAnsweringQualityResult.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.PairwiseQuestionAnsweringQualityResult(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.pairwiseChoice = reader.int32(); + break; + } + case 2: { + message.explanation = reader.string(); + break; + } + case 3: { + message.confidence = reader.float(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PairwiseQuestionAnsweringQualityResult message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityResult} PairwiseQuestionAnsweringQualityResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PairwiseQuestionAnsweringQualityResult.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PairwiseQuestionAnsweringQualityResult message. + * @function verify + * @memberof google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityResult + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PairwiseQuestionAnsweringQualityResult.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.pairwiseChoice != null && message.hasOwnProperty("pairwiseChoice")) + switch (message.pairwiseChoice) { + default: + return "pairwiseChoice: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.explanation != null && message.hasOwnProperty("explanation")) + if (!$util.isString(message.explanation)) + return "explanation: string expected"; + if (message.confidence != null && message.hasOwnProperty("confidence")) { + properties._confidence = 1; + if (typeof message.confidence !== "number") + return "confidence: number expected"; + } + return null; + }; + + /** + * Creates a PairwiseQuestionAnsweringQualityResult message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityResult + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityResult} PairwiseQuestionAnsweringQualityResult + */ + PairwiseQuestionAnsweringQualityResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityResult) + return object; + var message = new $root.google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityResult(); + switch (object.pairwiseChoice) { + default: + if (typeof object.pairwiseChoice === "number") { + message.pairwiseChoice = object.pairwiseChoice; + break; + } + break; + case "PAIRWISE_CHOICE_UNSPECIFIED": + case 0: + message.pairwiseChoice = 0; + break; + case "BASELINE": + case 1: + message.pairwiseChoice = 1; + break; + case "CANDIDATE": + case 2: + message.pairwiseChoice = 2; + break; + case "TIE": + case 3: + message.pairwiseChoice = 3; + break; + } + if (object.explanation != null) + message.explanation = String(object.explanation); + if (object.confidence != null) + message.confidence = Number(object.confidence); + return message; + }; + + /** + * Creates a plain object from a PairwiseQuestionAnsweringQualityResult message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityResult + * @static + * @param {google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityResult} message PairwiseQuestionAnsweringQualityResult + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PairwiseQuestionAnsweringQualityResult.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.pairwiseChoice = options.enums === String ? "PAIRWISE_CHOICE_UNSPECIFIED" : 0; + object.explanation = ""; + } + if (message.pairwiseChoice != null && message.hasOwnProperty("pairwiseChoice")) + object.pairwiseChoice = options.enums === String ? $root.google.cloud.aiplatform.v1.PairwiseChoice[message.pairwiseChoice] === undefined ? message.pairwiseChoice : $root.google.cloud.aiplatform.v1.PairwiseChoice[message.pairwiseChoice] : message.pairwiseChoice; + if (message.explanation != null && message.hasOwnProperty("explanation")) + object.explanation = message.explanation; + if (message.confidence != null && message.hasOwnProperty("confidence")) { + object.confidence = options.json && !isFinite(message.confidence) ? String(message.confidence) : message.confidence; + if (options.oneofs) + object._confidence = "confidence"; + } + return object; + }; + + /** + * Converts this PairwiseQuestionAnsweringQualityResult to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityResult + * @instance + * @returns {Object.} JSON object + */ + PairwiseQuestionAnsweringQualityResult.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PairwiseQuestionAnsweringQualityResult + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityResult + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PairwiseQuestionAnsweringQualityResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityResult"; + }; + + return PairwiseQuestionAnsweringQualityResult; + })(); + + v1.QuestionAnsweringRelevanceInput = (function() { + + /** + * Properties of a QuestionAnsweringRelevanceInput. + * @memberof google.cloud.aiplatform.v1 + * @interface IQuestionAnsweringRelevanceInput + * @property {google.cloud.aiplatform.v1.IQuestionAnsweringRelevanceSpec|null} [metricSpec] QuestionAnsweringRelevanceInput metricSpec + * @property {google.cloud.aiplatform.v1.IQuestionAnsweringRelevanceInstance|null} [instance] QuestionAnsweringRelevanceInput instance + */ + + /** + * Constructs a new QuestionAnsweringRelevanceInput. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a QuestionAnsweringRelevanceInput. + * @implements IQuestionAnsweringRelevanceInput + * @constructor + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringRelevanceInput=} [properties] Properties to set + */ + function QuestionAnsweringRelevanceInput(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]]; + } + + /** + * QuestionAnsweringRelevanceInput metricSpec. + * @member {google.cloud.aiplatform.v1.IQuestionAnsweringRelevanceSpec|null|undefined} metricSpec + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInput + * @instance + */ + QuestionAnsweringRelevanceInput.prototype.metricSpec = null; + + /** + * QuestionAnsweringRelevanceInput instance. + * @member {google.cloud.aiplatform.v1.IQuestionAnsweringRelevanceInstance|null|undefined} instance + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInput + * @instance + */ + QuestionAnsweringRelevanceInput.prototype.instance = null; + + /** + * Creates a new QuestionAnsweringRelevanceInput instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInput + * @static + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringRelevanceInput=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInput} QuestionAnsweringRelevanceInput instance + */ + QuestionAnsweringRelevanceInput.create = function create(properties) { + return new QuestionAnsweringRelevanceInput(properties); + }; + + /** + * Encodes the specified QuestionAnsweringRelevanceInput message. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInput.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInput + * @static + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringRelevanceInput} message QuestionAnsweringRelevanceInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QuestionAnsweringRelevanceInput.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.metricSpec != null && Object.hasOwnProperty.call(message, "metricSpec")) + $root.google.cloud.aiplatform.v1.QuestionAnsweringRelevanceSpec.encode(message.metricSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.instance != null && Object.hasOwnProperty.call(message, "instance")) + $root.google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInstance.encode(message.instance, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified QuestionAnsweringRelevanceInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInput.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInput + * @static + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringRelevanceInput} message QuestionAnsweringRelevanceInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QuestionAnsweringRelevanceInput.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a QuestionAnsweringRelevanceInput message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInput + * @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.QuestionAnsweringRelevanceInput} QuestionAnsweringRelevanceInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QuestionAnsweringRelevanceInput.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.QuestionAnsweringRelevanceInput(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.metricSpec = $root.google.cloud.aiplatform.v1.QuestionAnsweringRelevanceSpec.decode(reader, reader.uint32()); + break; + } + case 2: { + message.instance = $root.google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInstance.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a QuestionAnsweringRelevanceInput message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInput + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInput} QuestionAnsweringRelevanceInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QuestionAnsweringRelevanceInput.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a QuestionAnsweringRelevanceInput message. + * @function verify + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInput + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QuestionAnsweringRelevanceInput.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) { + var error = $root.google.cloud.aiplatform.v1.QuestionAnsweringRelevanceSpec.verify(message.metricSpec); + if (error) + return "metricSpec." + error; + } + if (message.instance != null && message.hasOwnProperty("instance")) { + var error = $root.google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInstance.verify(message.instance); + if (error) + return "instance." + error; + } + return null; + }; + + /** + * Creates a QuestionAnsweringRelevanceInput message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInput + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInput} QuestionAnsweringRelevanceInput + */ + QuestionAnsweringRelevanceInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInput) + return object; + var message = new $root.google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInput(); + if (object.metricSpec != null) { + if (typeof object.metricSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInput.metricSpec: object expected"); + message.metricSpec = $root.google.cloud.aiplatform.v1.QuestionAnsweringRelevanceSpec.fromObject(object.metricSpec); + } + if (object.instance != null) { + if (typeof object.instance !== "object") + throw TypeError(".google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInput.instance: object expected"); + message.instance = $root.google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInstance.fromObject(object.instance); + } + return message; + }; + + /** + * Creates a plain object from a QuestionAnsweringRelevanceInput message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInput + * @static + * @param {google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInput} message QuestionAnsweringRelevanceInput + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + QuestionAnsweringRelevanceInput.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.metricSpec = null; + object.instance = null; + } + if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) + object.metricSpec = $root.google.cloud.aiplatform.v1.QuestionAnsweringRelevanceSpec.toObject(message.metricSpec, options); + if (message.instance != null && message.hasOwnProperty("instance")) + object.instance = $root.google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInstance.toObject(message.instance, options); + return object; + }; + + /** + * Converts this QuestionAnsweringRelevanceInput to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInput + * @instance + * @returns {Object.} JSON object + */ + QuestionAnsweringRelevanceInput.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for QuestionAnsweringRelevanceInput + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInput + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + QuestionAnsweringRelevanceInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInput"; + }; + + return QuestionAnsweringRelevanceInput; + })(); + + v1.QuestionAnsweringRelevanceInstance = (function() { + + /** + * Properties of a QuestionAnsweringRelevanceInstance. + * @memberof google.cloud.aiplatform.v1 + * @interface IQuestionAnsweringRelevanceInstance + * @property {string|null} [prediction] QuestionAnsweringRelevanceInstance prediction + * @property {string|null} [reference] QuestionAnsweringRelevanceInstance reference + * @property {string|null} [context] QuestionAnsweringRelevanceInstance context + * @property {string|null} [instruction] QuestionAnsweringRelevanceInstance instruction + */ + + /** + * Constructs a new QuestionAnsweringRelevanceInstance. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a QuestionAnsweringRelevanceInstance. + * @implements IQuestionAnsweringRelevanceInstance + * @constructor + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringRelevanceInstance=} [properties] Properties to set + */ + function QuestionAnsweringRelevanceInstance(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]]; + } + + /** + * QuestionAnsweringRelevanceInstance prediction. + * @member {string|null|undefined} prediction + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInstance + * @instance + */ + QuestionAnsweringRelevanceInstance.prototype.prediction = null; + + /** + * QuestionAnsweringRelevanceInstance reference. + * @member {string|null|undefined} reference + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInstance + * @instance + */ + QuestionAnsweringRelevanceInstance.prototype.reference = null; + + /** + * QuestionAnsweringRelevanceInstance context. + * @member {string|null|undefined} context + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInstance + * @instance + */ + QuestionAnsweringRelevanceInstance.prototype.context = null; + + /** + * QuestionAnsweringRelevanceInstance instruction. + * @member {string|null|undefined} instruction + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInstance + * @instance + */ + QuestionAnsweringRelevanceInstance.prototype.instruction = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * QuestionAnsweringRelevanceInstance _prediction. + * @member {"prediction"|undefined} _prediction + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInstance + * @instance + */ + Object.defineProperty(QuestionAnsweringRelevanceInstance.prototype, "_prediction", { + get: $util.oneOfGetter($oneOfFields = ["prediction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * QuestionAnsweringRelevanceInstance _reference. + * @member {"reference"|undefined} _reference + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInstance + * @instance + */ + Object.defineProperty(QuestionAnsweringRelevanceInstance.prototype, "_reference", { + get: $util.oneOfGetter($oneOfFields = ["reference"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * QuestionAnsweringRelevanceInstance _context. + * @member {"context"|undefined} _context + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInstance + * @instance + */ + Object.defineProperty(QuestionAnsweringRelevanceInstance.prototype, "_context", { + get: $util.oneOfGetter($oneOfFields = ["context"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * QuestionAnsweringRelevanceInstance _instruction. + * @member {"instruction"|undefined} _instruction + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInstance + * @instance + */ + Object.defineProperty(QuestionAnsweringRelevanceInstance.prototype, "_instruction", { + get: $util.oneOfGetter($oneOfFields = ["instruction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new QuestionAnsweringRelevanceInstance instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInstance + * @static + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringRelevanceInstance=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInstance} QuestionAnsweringRelevanceInstance instance + */ + QuestionAnsweringRelevanceInstance.create = function create(properties) { + return new QuestionAnsweringRelevanceInstance(properties); + }; + + /** + * Encodes the specified QuestionAnsweringRelevanceInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInstance.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInstance + * @static + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringRelevanceInstance} message QuestionAnsweringRelevanceInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QuestionAnsweringRelevanceInstance.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.prediction != null && Object.hasOwnProperty.call(message, "prediction")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.prediction); + if (message.reference != null && Object.hasOwnProperty.call(message, "reference")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.reference); + if (message.context != null && Object.hasOwnProperty.call(message, "context")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.context); + if (message.instruction != null && Object.hasOwnProperty.call(message, "instruction")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.instruction); + return writer; + }; + + /** + * Encodes the specified QuestionAnsweringRelevanceInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInstance.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInstance + * @static + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringRelevanceInstance} message QuestionAnsweringRelevanceInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QuestionAnsweringRelevanceInstance.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a QuestionAnsweringRelevanceInstance message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInstance + * @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.QuestionAnsweringRelevanceInstance} QuestionAnsweringRelevanceInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QuestionAnsweringRelevanceInstance.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.QuestionAnsweringRelevanceInstance(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.prediction = reader.string(); + break; + } + case 2: { + message.reference = reader.string(); + break; + } + case 3: { + message.context = reader.string(); + break; + } + case 4: { + message.instruction = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a QuestionAnsweringRelevanceInstance message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInstance} QuestionAnsweringRelevanceInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QuestionAnsweringRelevanceInstance.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a QuestionAnsweringRelevanceInstance message. + * @function verify + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInstance + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QuestionAnsweringRelevanceInstance.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.prediction != null && message.hasOwnProperty("prediction")) { + properties._prediction = 1; + if (!$util.isString(message.prediction)) + return "prediction: string expected"; + } + if (message.reference != null && message.hasOwnProperty("reference")) { + properties._reference = 1; + if (!$util.isString(message.reference)) + return "reference: string expected"; + } + if (message.context != null && message.hasOwnProperty("context")) { + properties._context = 1; + if (!$util.isString(message.context)) + return "context: string expected"; + } + if (message.instruction != null && message.hasOwnProperty("instruction")) { + properties._instruction = 1; + if (!$util.isString(message.instruction)) + return "instruction: string expected"; + } + return null; + }; + + /** + * Creates a QuestionAnsweringRelevanceInstance message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInstance + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInstance} QuestionAnsweringRelevanceInstance + */ + QuestionAnsweringRelevanceInstance.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInstance) + return object; + var message = new $root.google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInstance(); + if (object.prediction != null) + message.prediction = String(object.prediction); + if (object.reference != null) + message.reference = String(object.reference); + if (object.context != null) + message.context = String(object.context); + if (object.instruction != null) + message.instruction = String(object.instruction); + return message; + }; + + /** + * Creates a plain object from a QuestionAnsweringRelevanceInstance message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInstance + * @static + * @param {google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInstance} message QuestionAnsweringRelevanceInstance + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + QuestionAnsweringRelevanceInstance.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.prediction != null && message.hasOwnProperty("prediction")) { + object.prediction = message.prediction; + if (options.oneofs) + object._prediction = "prediction"; + } + if (message.reference != null && message.hasOwnProperty("reference")) { + object.reference = message.reference; + if (options.oneofs) + object._reference = "reference"; + } + if (message.context != null && message.hasOwnProperty("context")) { + object.context = message.context; + if (options.oneofs) + object._context = "context"; + } + if (message.instruction != null && message.hasOwnProperty("instruction")) { + object.instruction = message.instruction; + if (options.oneofs) + object._instruction = "instruction"; + } + return object; + }; + + /** + * Converts this QuestionAnsweringRelevanceInstance to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInstance + * @instance + * @returns {Object.} JSON object + */ + QuestionAnsweringRelevanceInstance.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for QuestionAnsweringRelevanceInstance + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInstance + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + QuestionAnsweringRelevanceInstance.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInstance"; + }; + + return QuestionAnsweringRelevanceInstance; + })(); + + v1.QuestionAnsweringRelevanceSpec = (function() { + + /** + * Properties of a QuestionAnsweringRelevanceSpec. + * @memberof google.cloud.aiplatform.v1 + * @interface IQuestionAnsweringRelevanceSpec + * @property {boolean|null} [useReference] QuestionAnsweringRelevanceSpec useReference + * @property {number|null} [version] QuestionAnsweringRelevanceSpec version + */ + + /** + * Constructs a new QuestionAnsweringRelevanceSpec. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a QuestionAnsweringRelevanceSpec. + * @implements IQuestionAnsweringRelevanceSpec + * @constructor + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringRelevanceSpec=} [properties] Properties to set + */ + function QuestionAnsweringRelevanceSpec(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]]; + } + + /** + * QuestionAnsweringRelevanceSpec useReference. + * @member {boolean} useReference + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringRelevanceSpec + * @instance + */ + QuestionAnsweringRelevanceSpec.prototype.useReference = false; + + /** + * QuestionAnsweringRelevanceSpec version. + * @member {number} version + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringRelevanceSpec + * @instance + */ + QuestionAnsweringRelevanceSpec.prototype.version = 0; + + /** + * Creates a new QuestionAnsweringRelevanceSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringRelevanceSpec + * @static + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringRelevanceSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.QuestionAnsweringRelevanceSpec} QuestionAnsweringRelevanceSpec instance + */ + QuestionAnsweringRelevanceSpec.create = function create(properties) { + return new QuestionAnsweringRelevanceSpec(properties); + }; + + /** + * Encodes the specified QuestionAnsweringRelevanceSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringRelevanceSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringRelevanceSpec + * @static + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringRelevanceSpec} message QuestionAnsweringRelevanceSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QuestionAnsweringRelevanceSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.useReference != null && Object.hasOwnProperty.call(message, "useReference")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.useReference); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.version); + return writer; + }; + + /** + * Encodes the specified QuestionAnsweringRelevanceSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringRelevanceSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringRelevanceSpec + * @static + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringRelevanceSpec} message QuestionAnsweringRelevanceSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QuestionAnsweringRelevanceSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a QuestionAnsweringRelevanceSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringRelevanceSpec + * @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.QuestionAnsweringRelevanceSpec} QuestionAnsweringRelevanceSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QuestionAnsweringRelevanceSpec.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.QuestionAnsweringRelevanceSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.useReference = reader.bool(); + break; + } + case 2: { + message.version = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a QuestionAnsweringRelevanceSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringRelevanceSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.QuestionAnsweringRelevanceSpec} QuestionAnsweringRelevanceSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QuestionAnsweringRelevanceSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a QuestionAnsweringRelevanceSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringRelevanceSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QuestionAnsweringRelevanceSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.useReference != null && message.hasOwnProperty("useReference")) + if (typeof message.useReference !== "boolean") + return "useReference: boolean expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isInteger(message.version)) + return "version: integer expected"; + return null; + }; + + /** + * Creates a QuestionAnsweringRelevanceSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringRelevanceSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.QuestionAnsweringRelevanceSpec} QuestionAnsweringRelevanceSpec + */ + QuestionAnsweringRelevanceSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.QuestionAnsweringRelevanceSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1.QuestionAnsweringRelevanceSpec(); + if (object.useReference != null) + message.useReference = Boolean(object.useReference); + if (object.version != null) + message.version = object.version | 0; + return message; + }; + + /** + * Creates a plain object from a QuestionAnsweringRelevanceSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringRelevanceSpec + * @static + * @param {google.cloud.aiplatform.v1.QuestionAnsweringRelevanceSpec} message QuestionAnsweringRelevanceSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + QuestionAnsweringRelevanceSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.useReference = false; + object.version = 0; + } + if (message.useReference != null && message.hasOwnProperty("useReference")) + object.useReference = message.useReference; + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + return object; + }; + + /** + * Converts this QuestionAnsweringRelevanceSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringRelevanceSpec + * @instance + * @returns {Object.} JSON object + */ + QuestionAnsweringRelevanceSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for QuestionAnsweringRelevanceSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringRelevanceSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + QuestionAnsweringRelevanceSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.QuestionAnsweringRelevanceSpec"; + }; + + return QuestionAnsweringRelevanceSpec; + })(); + + v1.QuestionAnsweringRelevanceResult = (function() { + + /** + * Properties of a QuestionAnsweringRelevanceResult. + * @memberof google.cloud.aiplatform.v1 + * @interface IQuestionAnsweringRelevanceResult + * @property {number|null} [score] QuestionAnsweringRelevanceResult score + * @property {string|null} [explanation] QuestionAnsweringRelevanceResult explanation + * @property {number|null} [confidence] QuestionAnsweringRelevanceResult confidence + */ + + /** + * Constructs a new QuestionAnsweringRelevanceResult. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a QuestionAnsweringRelevanceResult. + * @implements IQuestionAnsweringRelevanceResult + * @constructor + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringRelevanceResult=} [properties] Properties to set + */ + function QuestionAnsweringRelevanceResult(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]]; + } + + /** + * QuestionAnsweringRelevanceResult score. + * @member {number|null|undefined} score + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringRelevanceResult + * @instance + */ + QuestionAnsweringRelevanceResult.prototype.score = null; + + /** + * QuestionAnsweringRelevanceResult explanation. + * @member {string} explanation + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringRelevanceResult + * @instance + */ + QuestionAnsweringRelevanceResult.prototype.explanation = ""; + + /** + * QuestionAnsweringRelevanceResult confidence. + * @member {number|null|undefined} confidence + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringRelevanceResult + * @instance + */ + QuestionAnsweringRelevanceResult.prototype.confidence = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * QuestionAnsweringRelevanceResult _score. + * @member {"score"|undefined} _score + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringRelevanceResult + * @instance + */ + Object.defineProperty(QuestionAnsweringRelevanceResult.prototype, "_score", { + get: $util.oneOfGetter($oneOfFields = ["score"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * QuestionAnsweringRelevanceResult _confidence. + * @member {"confidence"|undefined} _confidence + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringRelevanceResult + * @instance + */ + Object.defineProperty(QuestionAnsweringRelevanceResult.prototype, "_confidence", { + get: $util.oneOfGetter($oneOfFields = ["confidence"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new QuestionAnsweringRelevanceResult instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringRelevanceResult + * @static + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringRelevanceResult=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.QuestionAnsweringRelevanceResult} QuestionAnsweringRelevanceResult instance + */ + QuestionAnsweringRelevanceResult.create = function create(properties) { + return new QuestionAnsweringRelevanceResult(properties); + }; + + /** + * Encodes the specified QuestionAnsweringRelevanceResult message. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringRelevanceResult.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringRelevanceResult + * @static + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringRelevanceResult} message QuestionAnsweringRelevanceResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QuestionAnsweringRelevanceResult.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.score != null && Object.hasOwnProperty.call(message, "score")) + writer.uint32(/* id 1, wireType 5 =*/13).float(message.score); + if (message.explanation != null && Object.hasOwnProperty.call(message, "explanation")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.explanation); + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) + writer.uint32(/* id 3, wireType 5 =*/29).float(message.confidence); + return writer; + }; + + /** + * Encodes the specified QuestionAnsweringRelevanceResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringRelevanceResult.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringRelevanceResult + * @static + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringRelevanceResult} message QuestionAnsweringRelevanceResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QuestionAnsweringRelevanceResult.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a QuestionAnsweringRelevanceResult message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringRelevanceResult + * @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.QuestionAnsweringRelevanceResult} QuestionAnsweringRelevanceResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QuestionAnsweringRelevanceResult.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.QuestionAnsweringRelevanceResult(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.score = reader.float(); + break; + } + case 2: { + message.explanation = reader.string(); + break; + } + case 3: { + message.confidence = reader.float(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a QuestionAnsweringRelevanceResult message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringRelevanceResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.QuestionAnsweringRelevanceResult} QuestionAnsweringRelevanceResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QuestionAnsweringRelevanceResult.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a QuestionAnsweringRelevanceResult message. + * @function verify + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringRelevanceResult + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QuestionAnsweringRelevanceResult.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.score != null && message.hasOwnProperty("score")) { + properties._score = 1; + if (typeof message.score !== "number") + return "score: number expected"; + } + if (message.explanation != null && message.hasOwnProperty("explanation")) + if (!$util.isString(message.explanation)) + return "explanation: string expected"; + if (message.confidence != null && message.hasOwnProperty("confidence")) { + properties._confidence = 1; + if (typeof message.confidence !== "number") + return "confidence: number expected"; + } + return null; + }; + + /** + * Creates a QuestionAnsweringRelevanceResult message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringRelevanceResult + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.QuestionAnsweringRelevanceResult} QuestionAnsweringRelevanceResult + */ + QuestionAnsweringRelevanceResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.QuestionAnsweringRelevanceResult) + return object; + var message = new $root.google.cloud.aiplatform.v1.QuestionAnsweringRelevanceResult(); + if (object.score != null) + message.score = Number(object.score); + if (object.explanation != null) + message.explanation = String(object.explanation); + if (object.confidence != null) + message.confidence = Number(object.confidence); + return message; + }; + + /** + * Creates a plain object from a QuestionAnsweringRelevanceResult message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringRelevanceResult + * @static + * @param {google.cloud.aiplatform.v1.QuestionAnsweringRelevanceResult} message QuestionAnsweringRelevanceResult + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + QuestionAnsweringRelevanceResult.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.explanation = ""; + if (message.score != null && message.hasOwnProperty("score")) { + object.score = options.json && !isFinite(message.score) ? String(message.score) : message.score; + if (options.oneofs) + object._score = "score"; + } + if (message.explanation != null && message.hasOwnProperty("explanation")) + object.explanation = message.explanation; + if (message.confidence != null && message.hasOwnProperty("confidence")) { + object.confidence = options.json && !isFinite(message.confidence) ? String(message.confidence) : message.confidence; + if (options.oneofs) + object._confidence = "confidence"; + } + return object; + }; + + /** + * Converts this QuestionAnsweringRelevanceResult to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringRelevanceResult + * @instance + * @returns {Object.} JSON object + */ + QuestionAnsweringRelevanceResult.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for QuestionAnsweringRelevanceResult + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringRelevanceResult + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + QuestionAnsweringRelevanceResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.QuestionAnsweringRelevanceResult"; + }; + + return QuestionAnsweringRelevanceResult; + })(); + + v1.QuestionAnsweringHelpfulnessInput = (function() { + + /** + * Properties of a QuestionAnsweringHelpfulnessInput. + * @memberof google.cloud.aiplatform.v1 + * @interface IQuestionAnsweringHelpfulnessInput + * @property {google.cloud.aiplatform.v1.IQuestionAnsweringHelpfulnessSpec|null} [metricSpec] QuestionAnsweringHelpfulnessInput metricSpec + * @property {google.cloud.aiplatform.v1.IQuestionAnsweringHelpfulnessInstance|null} [instance] QuestionAnsweringHelpfulnessInput instance + */ + + /** + * Constructs a new QuestionAnsweringHelpfulnessInput. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a QuestionAnsweringHelpfulnessInput. + * @implements IQuestionAnsweringHelpfulnessInput + * @constructor + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringHelpfulnessInput=} [properties] Properties to set + */ + function QuestionAnsweringHelpfulnessInput(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]]; + } + + /** + * QuestionAnsweringHelpfulnessInput metricSpec. + * @member {google.cloud.aiplatform.v1.IQuestionAnsweringHelpfulnessSpec|null|undefined} metricSpec + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInput + * @instance + */ + QuestionAnsweringHelpfulnessInput.prototype.metricSpec = null; + + /** + * QuestionAnsweringHelpfulnessInput instance. + * @member {google.cloud.aiplatform.v1.IQuestionAnsweringHelpfulnessInstance|null|undefined} instance + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInput + * @instance + */ + QuestionAnsweringHelpfulnessInput.prototype.instance = null; + + /** + * Creates a new QuestionAnsweringHelpfulnessInput instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInput + * @static + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringHelpfulnessInput=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInput} QuestionAnsweringHelpfulnessInput instance + */ + QuestionAnsweringHelpfulnessInput.create = function create(properties) { + return new QuestionAnsweringHelpfulnessInput(properties); + }; + + /** + * Encodes the specified QuestionAnsweringHelpfulnessInput message. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInput.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInput + * @static + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringHelpfulnessInput} message QuestionAnsweringHelpfulnessInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QuestionAnsweringHelpfulnessInput.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.metricSpec != null && Object.hasOwnProperty.call(message, "metricSpec")) + $root.google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessSpec.encode(message.metricSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.instance != null && Object.hasOwnProperty.call(message, "instance")) + $root.google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInstance.encode(message.instance, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified QuestionAnsweringHelpfulnessInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInput.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInput + * @static + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringHelpfulnessInput} message QuestionAnsweringHelpfulnessInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QuestionAnsweringHelpfulnessInput.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a QuestionAnsweringHelpfulnessInput message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInput + * @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.QuestionAnsweringHelpfulnessInput} QuestionAnsweringHelpfulnessInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QuestionAnsweringHelpfulnessInput.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.QuestionAnsweringHelpfulnessInput(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.metricSpec = $root.google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessSpec.decode(reader, reader.uint32()); + break; + } + case 2: { + message.instance = $root.google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInstance.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a QuestionAnsweringHelpfulnessInput message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInput + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInput} QuestionAnsweringHelpfulnessInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QuestionAnsweringHelpfulnessInput.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a QuestionAnsweringHelpfulnessInput message. + * @function verify + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInput + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QuestionAnsweringHelpfulnessInput.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) { + var error = $root.google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessSpec.verify(message.metricSpec); + if (error) + return "metricSpec." + error; + } + if (message.instance != null && message.hasOwnProperty("instance")) { + var error = $root.google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInstance.verify(message.instance); + if (error) + return "instance." + error; + } + return null; + }; + + /** + * Creates a QuestionAnsweringHelpfulnessInput message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInput + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInput} QuestionAnsweringHelpfulnessInput + */ + QuestionAnsweringHelpfulnessInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInput) + return object; + var message = new $root.google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInput(); + if (object.metricSpec != null) { + if (typeof object.metricSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInput.metricSpec: object expected"); + message.metricSpec = $root.google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessSpec.fromObject(object.metricSpec); + } + if (object.instance != null) { + if (typeof object.instance !== "object") + throw TypeError(".google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInput.instance: object expected"); + message.instance = $root.google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInstance.fromObject(object.instance); + } + return message; + }; + + /** + * Creates a plain object from a QuestionAnsweringHelpfulnessInput message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInput + * @static + * @param {google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInput} message QuestionAnsweringHelpfulnessInput + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + QuestionAnsweringHelpfulnessInput.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.metricSpec = null; + object.instance = null; + } + if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) + object.metricSpec = $root.google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessSpec.toObject(message.metricSpec, options); + if (message.instance != null && message.hasOwnProperty("instance")) + object.instance = $root.google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInstance.toObject(message.instance, options); + return object; + }; + + /** + * Converts this QuestionAnsweringHelpfulnessInput to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInput + * @instance + * @returns {Object.} JSON object + */ + QuestionAnsweringHelpfulnessInput.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for QuestionAnsweringHelpfulnessInput + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInput + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + QuestionAnsweringHelpfulnessInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInput"; + }; + + return QuestionAnsweringHelpfulnessInput; + })(); + + v1.QuestionAnsweringHelpfulnessInstance = (function() { + + /** + * Properties of a QuestionAnsweringHelpfulnessInstance. + * @memberof google.cloud.aiplatform.v1 + * @interface IQuestionAnsweringHelpfulnessInstance + * @property {string|null} [prediction] QuestionAnsweringHelpfulnessInstance prediction + * @property {string|null} [reference] QuestionAnsweringHelpfulnessInstance reference + * @property {string|null} [context] QuestionAnsweringHelpfulnessInstance context + * @property {string|null} [instruction] QuestionAnsweringHelpfulnessInstance instruction + */ + + /** + * Constructs a new QuestionAnsweringHelpfulnessInstance. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a QuestionAnsweringHelpfulnessInstance. + * @implements IQuestionAnsweringHelpfulnessInstance + * @constructor + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringHelpfulnessInstance=} [properties] Properties to set + */ + function QuestionAnsweringHelpfulnessInstance(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]]; + } + + /** + * QuestionAnsweringHelpfulnessInstance prediction. + * @member {string|null|undefined} prediction + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInstance + * @instance + */ + QuestionAnsweringHelpfulnessInstance.prototype.prediction = null; + + /** + * QuestionAnsweringHelpfulnessInstance reference. + * @member {string|null|undefined} reference + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInstance + * @instance + */ + QuestionAnsweringHelpfulnessInstance.prototype.reference = null; + + /** + * QuestionAnsweringHelpfulnessInstance context. + * @member {string|null|undefined} context + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInstance + * @instance + */ + QuestionAnsweringHelpfulnessInstance.prototype.context = null; + + /** + * QuestionAnsweringHelpfulnessInstance instruction. + * @member {string|null|undefined} instruction + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInstance + * @instance + */ + QuestionAnsweringHelpfulnessInstance.prototype.instruction = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * QuestionAnsweringHelpfulnessInstance _prediction. + * @member {"prediction"|undefined} _prediction + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInstance + * @instance + */ + Object.defineProperty(QuestionAnsweringHelpfulnessInstance.prototype, "_prediction", { + get: $util.oneOfGetter($oneOfFields = ["prediction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * QuestionAnsweringHelpfulnessInstance _reference. + * @member {"reference"|undefined} _reference + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInstance + * @instance + */ + Object.defineProperty(QuestionAnsweringHelpfulnessInstance.prototype, "_reference", { + get: $util.oneOfGetter($oneOfFields = ["reference"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * QuestionAnsweringHelpfulnessInstance _context. + * @member {"context"|undefined} _context + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInstance + * @instance + */ + Object.defineProperty(QuestionAnsweringHelpfulnessInstance.prototype, "_context", { + get: $util.oneOfGetter($oneOfFields = ["context"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * QuestionAnsweringHelpfulnessInstance _instruction. + * @member {"instruction"|undefined} _instruction + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInstance + * @instance + */ + Object.defineProperty(QuestionAnsweringHelpfulnessInstance.prototype, "_instruction", { + get: $util.oneOfGetter($oneOfFields = ["instruction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new QuestionAnsweringHelpfulnessInstance instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInstance + * @static + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringHelpfulnessInstance=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInstance} QuestionAnsweringHelpfulnessInstance instance + */ + QuestionAnsweringHelpfulnessInstance.create = function create(properties) { + return new QuestionAnsweringHelpfulnessInstance(properties); + }; + + /** + * Encodes the specified QuestionAnsweringHelpfulnessInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInstance.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInstance + * @static + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringHelpfulnessInstance} message QuestionAnsweringHelpfulnessInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QuestionAnsweringHelpfulnessInstance.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.prediction != null && Object.hasOwnProperty.call(message, "prediction")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.prediction); + if (message.reference != null && Object.hasOwnProperty.call(message, "reference")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.reference); + if (message.context != null && Object.hasOwnProperty.call(message, "context")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.context); + if (message.instruction != null && Object.hasOwnProperty.call(message, "instruction")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.instruction); + return writer; + }; + + /** + * Encodes the specified QuestionAnsweringHelpfulnessInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInstance.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInstance + * @static + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringHelpfulnessInstance} message QuestionAnsweringHelpfulnessInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QuestionAnsweringHelpfulnessInstance.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a QuestionAnsweringHelpfulnessInstance message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInstance + * @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.QuestionAnsweringHelpfulnessInstance} QuestionAnsweringHelpfulnessInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QuestionAnsweringHelpfulnessInstance.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.QuestionAnsweringHelpfulnessInstance(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.prediction = reader.string(); + break; + } + case 2: { + message.reference = reader.string(); + break; + } + case 3: { + message.context = reader.string(); + break; + } + case 4: { + message.instruction = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a QuestionAnsweringHelpfulnessInstance message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInstance} QuestionAnsweringHelpfulnessInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QuestionAnsweringHelpfulnessInstance.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a QuestionAnsweringHelpfulnessInstance message. + * @function verify + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInstance + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QuestionAnsweringHelpfulnessInstance.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.prediction != null && message.hasOwnProperty("prediction")) { + properties._prediction = 1; + if (!$util.isString(message.prediction)) + return "prediction: string expected"; + } + if (message.reference != null && message.hasOwnProperty("reference")) { + properties._reference = 1; + if (!$util.isString(message.reference)) + return "reference: string expected"; + } + if (message.context != null && message.hasOwnProperty("context")) { + properties._context = 1; + if (!$util.isString(message.context)) + return "context: string expected"; + } + if (message.instruction != null && message.hasOwnProperty("instruction")) { + properties._instruction = 1; + if (!$util.isString(message.instruction)) + return "instruction: string expected"; + } + return null; + }; + + /** + * Creates a QuestionAnsweringHelpfulnessInstance message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInstance + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInstance} QuestionAnsweringHelpfulnessInstance + */ + QuestionAnsweringHelpfulnessInstance.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInstance) + return object; + var message = new $root.google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInstance(); + if (object.prediction != null) + message.prediction = String(object.prediction); + if (object.reference != null) + message.reference = String(object.reference); + if (object.context != null) + message.context = String(object.context); + if (object.instruction != null) + message.instruction = String(object.instruction); + return message; + }; + + /** + * Creates a plain object from a QuestionAnsweringHelpfulnessInstance message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInstance + * @static + * @param {google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInstance} message QuestionAnsweringHelpfulnessInstance + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + QuestionAnsweringHelpfulnessInstance.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.prediction != null && message.hasOwnProperty("prediction")) { + object.prediction = message.prediction; + if (options.oneofs) + object._prediction = "prediction"; + } + if (message.reference != null && message.hasOwnProperty("reference")) { + object.reference = message.reference; + if (options.oneofs) + object._reference = "reference"; + } + if (message.context != null && message.hasOwnProperty("context")) { + object.context = message.context; + if (options.oneofs) + object._context = "context"; + } + if (message.instruction != null && message.hasOwnProperty("instruction")) { + object.instruction = message.instruction; + if (options.oneofs) + object._instruction = "instruction"; + } + return object; + }; + + /** + * Converts this QuestionAnsweringHelpfulnessInstance to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInstance + * @instance + * @returns {Object.} JSON object + */ + QuestionAnsweringHelpfulnessInstance.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for QuestionAnsweringHelpfulnessInstance + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInstance + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + QuestionAnsweringHelpfulnessInstance.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInstance"; + }; + + return QuestionAnsweringHelpfulnessInstance; + })(); + + v1.QuestionAnsweringHelpfulnessSpec = (function() { + + /** + * Properties of a QuestionAnsweringHelpfulnessSpec. + * @memberof google.cloud.aiplatform.v1 + * @interface IQuestionAnsweringHelpfulnessSpec + * @property {boolean|null} [useReference] QuestionAnsweringHelpfulnessSpec useReference + * @property {number|null} [version] QuestionAnsweringHelpfulnessSpec version + */ + + /** + * Constructs a new QuestionAnsweringHelpfulnessSpec. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a QuestionAnsweringHelpfulnessSpec. + * @implements IQuestionAnsweringHelpfulnessSpec + * @constructor + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringHelpfulnessSpec=} [properties] Properties to set + */ + function QuestionAnsweringHelpfulnessSpec(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]]; + } + + /** + * QuestionAnsweringHelpfulnessSpec useReference. + * @member {boolean} useReference + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessSpec + * @instance + */ + QuestionAnsweringHelpfulnessSpec.prototype.useReference = false; + + /** + * QuestionAnsweringHelpfulnessSpec version. + * @member {number} version + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessSpec + * @instance + */ + QuestionAnsweringHelpfulnessSpec.prototype.version = 0; + + /** + * Creates a new QuestionAnsweringHelpfulnessSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessSpec + * @static + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringHelpfulnessSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessSpec} QuestionAnsweringHelpfulnessSpec instance + */ + QuestionAnsweringHelpfulnessSpec.create = function create(properties) { + return new QuestionAnsweringHelpfulnessSpec(properties); + }; + + /** + * Encodes the specified QuestionAnsweringHelpfulnessSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessSpec + * @static + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringHelpfulnessSpec} message QuestionAnsweringHelpfulnessSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QuestionAnsweringHelpfulnessSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.useReference != null && Object.hasOwnProperty.call(message, "useReference")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.useReference); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.version); + return writer; + }; + + /** + * Encodes the specified QuestionAnsweringHelpfulnessSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessSpec + * @static + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringHelpfulnessSpec} message QuestionAnsweringHelpfulnessSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QuestionAnsweringHelpfulnessSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a QuestionAnsweringHelpfulnessSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessSpec + * @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.QuestionAnsweringHelpfulnessSpec} QuestionAnsweringHelpfulnessSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QuestionAnsweringHelpfulnessSpec.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.QuestionAnsweringHelpfulnessSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.useReference = reader.bool(); + break; + } + case 2: { + message.version = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a QuestionAnsweringHelpfulnessSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessSpec} QuestionAnsweringHelpfulnessSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QuestionAnsweringHelpfulnessSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a QuestionAnsweringHelpfulnessSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QuestionAnsweringHelpfulnessSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.useReference != null && message.hasOwnProperty("useReference")) + if (typeof message.useReference !== "boolean") + return "useReference: boolean expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isInteger(message.version)) + return "version: integer expected"; + return null; + }; + + /** + * Creates a QuestionAnsweringHelpfulnessSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessSpec} QuestionAnsweringHelpfulnessSpec + */ + QuestionAnsweringHelpfulnessSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessSpec(); + if (object.useReference != null) + message.useReference = Boolean(object.useReference); + if (object.version != null) + message.version = object.version | 0; + return message; + }; + + /** + * Creates a plain object from a QuestionAnsweringHelpfulnessSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessSpec + * @static + * @param {google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessSpec} message QuestionAnsweringHelpfulnessSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + QuestionAnsweringHelpfulnessSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.useReference = false; + object.version = 0; + } + if (message.useReference != null && message.hasOwnProperty("useReference")) + object.useReference = message.useReference; + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + return object; + }; + + /** + * Converts this QuestionAnsweringHelpfulnessSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessSpec + * @instance + * @returns {Object.} JSON object + */ + QuestionAnsweringHelpfulnessSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for QuestionAnsweringHelpfulnessSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + QuestionAnsweringHelpfulnessSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessSpec"; + }; + + return QuestionAnsweringHelpfulnessSpec; + })(); + + v1.QuestionAnsweringHelpfulnessResult = (function() { + + /** + * Properties of a QuestionAnsweringHelpfulnessResult. + * @memberof google.cloud.aiplatform.v1 + * @interface IQuestionAnsweringHelpfulnessResult + * @property {number|null} [score] QuestionAnsweringHelpfulnessResult score + * @property {string|null} [explanation] QuestionAnsweringHelpfulnessResult explanation + * @property {number|null} [confidence] QuestionAnsweringHelpfulnessResult confidence + */ + + /** + * Constructs a new QuestionAnsweringHelpfulnessResult. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a QuestionAnsweringHelpfulnessResult. + * @implements IQuestionAnsweringHelpfulnessResult + * @constructor + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringHelpfulnessResult=} [properties] Properties to set + */ + function QuestionAnsweringHelpfulnessResult(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]]; + } + + /** + * QuestionAnsweringHelpfulnessResult score. + * @member {number|null|undefined} score + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessResult + * @instance + */ + QuestionAnsweringHelpfulnessResult.prototype.score = null; + + /** + * QuestionAnsweringHelpfulnessResult explanation. + * @member {string} explanation + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessResult + * @instance + */ + QuestionAnsweringHelpfulnessResult.prototype.explanation = ""; + + /** + * QuestionAnsweringHelpfulnessResult confidence. + * @member {number|null|undefined} confidence + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessResult + * @instance + */ + QuestionAnsweringHelpfulnessResult.prototype.confidence = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * QuestionAnsweringHelpfulnessResult _score. + * @member {"score"|undefined} _score + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessResult + * @instance + */ + Object.defineProperty(QuestionAnsweringHelpfulnessResult.prototype, "_score", { + get: $util.oneOfGetter($oneOfFields = ["score"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * QuestionAnsweringHelpfulnessResult _confidence. + * @member {"confidence"|undefined} _confidence + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessResult + * @instance + */ + Object.defineProperty(QuestionAnsweringHelpfulnessResult.prototype, "_confidence", { + get: $util.oneOfGetter($oneOfFields = ["confidence"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new QuestionAnsweringHelpfulnessResult instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessResult + * @static + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringHelpfulnessResult=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessResult} QuestionAnsweringHelpfulnessResult instance + */ + QuestionAnsweringHelpfulnessResult.create = function create(properties) { + return new QuestionAnsweringHelpfulnessResult(properties); + }; + + /** + * Encodes the specified QuestionAnsweringHelpfulnessResult message. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessResult.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessResult + * @static + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringHelpfulnessResult} message QuestionAnsweringHelpfulnessResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QuestionAnsweringHelpfulnessResult.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.score != null && Object.hasOwnProperty.call(message, "score")) + writer.uint32(/* id 1, wireType 5 =*/13).float(message.score); + if (message.explanation != null && Object.hasOwnProperty.call(message, "explanation")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.explanation); + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) + writer.uint32(/* id 3, wireType 5 =*/29).float(message.confidence); + return writer; + }; + + /** + * Encodes the specified QuestionAnsweringHelpfulnessResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessResult.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessResult + * @static + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringHelpfulnessResult} message QuestionAnsweringHelpfulnessResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QuestionAnsweringHelpfulnessResult.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a QuestionAnsweringHelpfulnessResult message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessResult + * @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.QuestionAnsweringHelpfulnessResult} QuestionAnsweringHelpfulnessResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QuestionAnsweringHelpfulnessResult.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.QuestionAnsweringHelpfulnessResult(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.score = reader.float(); + break; + } + case 2: { + message.explanation = reader.string(); + break; + } + case 3: { + message.confidence = reader.float(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a QuestionAnsweringHelpfulnessResult message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessResult} QuestionAnsweringHelpfulnessResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QuestionAnsweringHelpfulnessResult.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a QuestionAnsweringHelpfulnessResult message. + * @function verify + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessResult + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QuestionAnsweringHelpfulnessResult.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.score != null && message.hasOwnProperty("score")) { + properties._score = 1; + if (typeof message.score !== "number") + return "score: number expected"; + } + if (message.explanation != null && message.hasOwnProperty("explanation")) + if (!$util.isString(message.explanation)) + return "explanation: string expected"; + if (message.confidence != null && message.hasOwnProperty("confidence")) { + properties._confidence = 1; + if (typeof message.confidence !== "number") + return "confidence: number expected"; + } + return null; + }; + + /** + * Creates a QuestionAnsweringHelpfulnessResult message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessResult + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessResult} QuestionAnsweringHelpfulnessResult + */ + QuestionAnsweringHelpfulnessResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessResult) + return object; + var message = new $root.google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessResult(); + if (object.score != null) + message.score = Number(object.score); + if (object.explanation != null) + message.explanation = String(object.explanation); + if (object.confidence != null) + message.confidence = Number(object.confidence); + return message; + }; + + /** + * Creates a plain object from a QuestionAnsweringHelpfulnessResult message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessResult + * @static + * @param {google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessResult} message QuestionAnsweringHelpfulnessResult + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + QuestionAnsweringHelpfulnessResult.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.explanation = ""; + if (message.score != null && message.hasOwnProperty("score")) { + object.score = options.json && !isFinite(message.score) ? String(message.score) : message.score; + if (options.oneofs) + object._score = "score"; + } + if (message.explanation != null && message.hasOwnProperty("explanation")) + object.explanation = message.explanation; + if (message.confidence != null && message.hasOwnProperty("confidence")) { + object.confidence = options.json && !isFinite(message.confidence) ? String(message.confidence) : message.confidence; + if (options.oneofs) + object._confidence = "confidence"; + } + return object; + }; + + /** + * Converts this QuestionAnsweringHelpfulnessResult to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessResult + * @instance + * @returns {Object.} JSON object + */ + QuestionAnsweringHelpfulnessResult.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for QuestionAnsweringHelpfulnessResult + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessResult + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + QuestionAnsweringHelpfulnessResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessResult"; + }; + + return QuestionAnsweringHelpfulnessResult; + })(); + + v1.QuestionAnsweringCorrectnessInput = (function() { + + /** + * Properties of a QuestionAnsweringCorrectnessInput. + * @memberof google.cloud.aiplatform.v1 + * @interface IQuestionAnsweringCorrectnessInput + * @property {google.cloud.aiplatform.v1.IQuestionAnsweringCorrectnessSpec|null} [metricSpec] QuestionAnsweringCorrectnessInput metricSpec + * @property {google.cloud.aiplatform.v1.IQuestionAnsweringCorrectnessInstance|null} [instance] QuestionAnsweringCorrectnessInput instance + */ + + /** + * Constructs a new QuestionAnsweringCorrectnessInput. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a QuestionAnsweringCorrectnessInput. + * @implements IQuestionAnsweringCorrectnessInput + * @constructor + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringCorrectnessInput=} [properties] Properties to set + */ + function QuestionAnsweringCorrectnessInput(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]]; + } + + /** + * QuestionAnsweringCorrectnessInput metricSpec. + * @member {google.cloud.aiplatform.v1.IQuestionAnsweringCorrectnessSpec|null|undefined} metricSpec + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInput + * @instance + */ + QuestionAnsweringCorrectnessInput.prototype.metricSpec = null; + + /** + * QuestionAnsweringCorrectnessInput instance. + * @member {google.cloud.aiplatform.v1.IQuestionAnsweringCorrectnessInstance|null|undefined} instance + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInput + * @instance + */ + QuestionAnsweringCorrectnessInput.prototype.instance = null; + + /** + * Creates a new QuestionAnsweringCorrectnessInput instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInput + * @static + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringCorrectnessInput=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInput} QuestionAnsweringCorrectnessInput instance + */ + QuestionAnsweringCorrectnessInput.create = function create(properties) { + return new QuestionAnsweringCorrectnessInput(properties); + }; + + /** + * Encodes the specified QuestionAnsweringCorrectnessInput message. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInput.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInput + * @static + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringCorrectnessInput} message QuestionAnsweringCorrectnessInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QuestionAnsweringCorrectnessInput.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.metricSpec != null && Object.hasOwnProperty.call(message, "metricSpec")) + $root.google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessSpec.encode(message.metricSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.instance != null && Object.hasOwnProperty.call(message, "instance")) + $root.google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInstance.encode(message.instance, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified QuestionAnsweringCorrectnessInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInput.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInput + * @static + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringCorrectnessInput} message QuestionAnsweringCorrectnessInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QuestionAnsweringCorrectnessInput.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a QuestionAnsweringCorrectnessInput message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInput + * @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.QuestionAnsweringCorrectnessInput} QuestionAnsweringCorrectnessInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QuestionAnsweringCorrectnessInput.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.QuestionAnsweringCorrectnessInput(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.metricSpec = $root.google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessSpec.decode(reader, reader.uint32()); + break; + } + case 2: { + message.instance = $root.google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInstance.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a QuestionAnsweringCorrectnessInput message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInput + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInput} QuestionAnsweringCorrectnessInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QuestionAnsweringCorrectnessInput.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a QuestionAnsweringCorrectnessInput message. + * @function verify + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInput + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QuestionAnsweringCorrectnessInput.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) { + var error = $root.google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessSpec.verify(message.metricSpec); + if (error) + return "metricSpec." + error; + } + if (message.instance != null && message.hasOwnProperty("instance")) { + var error = $root.google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInstance.verify(message.instance); + if (error) + return "instance." + error; + } + return null; + }; + + /** + * Creates a QuestionAnsweringCorrectnessInput message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInput + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInput} QuestionAnsweringCorrectnessInput + */ + QuestionAnsweringCorrectnessInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInput) + return object; + var message = new $root.google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInput(); + if (object.metricSpec != null) { + if (typeof object.metricSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInput.metricSpec: object expected"); + message.metricSpec = $root.google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessSpec.fromObject(object.metricSpec); + } + if (object.instance != null) { + if (typeof object.instance !== "object") + throw TypeError(".google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInput.instance: object expected"); + message.instance = $root.google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInstance.fromObject(object.instance); + } + return message; + }; + + /** + * Creates a plain object from a QuestionAnsweringCorrectnessInput message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInput + * @static + * @param {google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInput} message QuestionAnsweringCorrectnessInput + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + QuestionAnsweringCorrectnessInput.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.metricSpec = null; + object.instance = null; + } + if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) + object.metricSpec = $root.google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessSpec.toObject(message.metricSpec, options); + if (message.instance != null && message.hasOwnProperty("instance")) + object.instance = $root.google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInstance.toObject(message.instance, options); + return object; + }; + + /** + * Converts this QuestionAnsweringCorrectnessInput to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInput + * @instance + * @returns {Object.} JSON object + */ + QuestionAnsweringCorrectnessInput.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for QuestionAnsweringCorrectnessInput + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInput + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + QuestionAnsweringCorrectnessInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInput"; + }; + + return QuestionAnsweringCorrectnessInput; + })(); + + v1.QuestionAnsweringCorrectnessInstance = (function() { + + /** + * Properties of a QuestionAnsweringCorrectnessInstance. + * @memberof google.cloud.aiplatform.v1 + * @interface IQuestionAnsweringCorrectnessInstance + * @property {string|null} [prediction] QuestionAnsweringCorrectnessInstance prediction + * @property {string|null} [reference] QuestionAnsweringCorrectnessInstance reference + * @property {string|null} [context] QuestionAnsweringCorrectnessInstance context + * @property {string|null} [instruction] QuestionAnsweringCorrectnessInstance instruction + */ + + /** + * Constructs a new QuestionAnsweringCorrectnessInstance. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a QuestionAnsweringCorrectnessInstance. + * @implements IQuestionAnsweringCorrectnessInstance + * @constructor + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringCorrectnessInstance=} [properties] Properties to set + */ + function QuestionAnsweringCorrectnessInstance(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]]; + } + + /** + * QuestionAnsweringCorrectnessInstance prediction. + * @member {string|null|undefined} prediction + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInstance + * @instance + */ + QuestionAnsweringCorrectnessInstance.prototype.prediction = null; + + /** + * QuestionAnsweringCorrectnessInstance reference. + * @member {string|null|undefined} reference + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInstance + * @instance + */ + QuestionAnsweringCorrectnessInstance.prototype.reference = null; + + /** + * QuestionAnsweringCorrectnessInstance context. + * @member {string|null|undefined} context + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInstance + * @instance + */ + QuestionAnsweringCorrectnessInstance.prototype.context = null; + + /** + * QuestionAnsweringCorrectnessInstance instruction. + * @member {string|null|undefined} instruction + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInstance + * @instance + */ + QuestionAnsweringCorrectnessInstance.prototype.instruction = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * QuestionAnsweringCorrectnessInstance _prediction. + * @member {"prediction"|undefined} _prediction + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInstance + * @instance + */ + Object.defineProperty(QuestionAnsweringCorrectnessInstance.prototype, "_prediction", { + get: $util.oneOfGetter($oneOfFields = ["prediction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * QuestionAnsweringCorrectnessInstance _reference. + * @member {"reference"|undefined} _reference + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInstance + * @instance + */ + Object.defineProperty(QuestionAnsweringCorrectnessInstance.prototype, "_reference", { + get: $util.oneOfGetter($oneOfFields = ["reference"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * QuestionAnsweringCorrectnessInstance _context. + * @member {"context"|undefined} _context + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInstance + * @instance + */ + Object.defineProperty(QuestionAnsweringCorrectnessInstance.prototype, "_context", { + get: $util.oneOfGetter($oneOfFields = ["context"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * QuestionAnsweringCorrectnessInstance _instruction. + * @member {"instruction"|undefined} _instruction + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInstance + * @instance + */ + Object.defineProperty(QuestionAnsweringCorrectnessInstance.prototype, "_instruction", { + get: $util.oneOfGetter($oneOfFields = ["instruction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new QuestionAnsweringCorrectnessInstance instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInstance + * @static + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringCorrectnessInstance=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInstance} QuestionAnsweringCorrectnessInstance instance + */ + QuestionAnsweringCorrectnessInstance.create = function create(properties) { + return new QuestionAnsweringCorrectnessInstance(properties); + }; + + /** + * Encodes the specified QuestionAnsweringCorrectnessInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInstance.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInstance + * @static + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringCorrectnessInstance} message QuestionAnsweringCorrectnessInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QuestionAnsweringCorrectnessInstance.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.prediction != null && Object.hasOwnProperty.call(message, "prediction")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.prediction); + if (message.reference != null && Object.hasOwnProperty.call(message, "reference")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.reference); + if (message.context != null && Object.hasOwnProperty.call(message, "context")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.context); + if (message.instruction != null && Object.hasOwnProperty.call(message, "instruction")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.instruction); + return writer; + }; + + /** + * Encodes the specified QuestionAnsweringCorrectnessInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInstance.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInstance + * @static + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringCorrectnessInstance} message QuestionAnsweringCorrectnessInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QuestionAnsweringCorrectnessInstance.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a QuestionAnsweringCorrectnessInstance message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInstance + * @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.QuestionAnsweringCorrectnessInstance} QuestionAnsweringCorrectnessInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QuestionAnsweringCorrectnessInstance.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.QuestionAnsweringCorrectnessInstance(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.prediction = reader.string(); + break; + } + case 2: { + message.reference = reader.string(); + break; + } + case 3: { + message.context = reader.string(); + break; + } + case 4: { + message.instruction = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a QuestionAnsweringCorrectnessInstance message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInstance} QuestionAnsweringCorrectnessInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QuestionAnsweringCorrectnessInstance.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a QuestionAnsweringCorrectnessInstance message. + * @function verify + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInstance + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QuestionAnsweringCorrectnessInstance.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.prediction != null && message.hasOwnProperty("prediction")) { + properties._prediction = 1; + if (!$util.isString(message.prediction)) + return "prediction: string expected"; + } + if (message.reference != null && message.hasOwnProperty("reference")) { + properties._reference = 1; + if (!$util.isString(message.reference)) + return "reference: string expected"; + } + if (message.context != null && message.hasOwnProperty("context")) { + properties._context = 1; + if (!$util.isString(message.context)) + return "context: string expected"; + } + if (message.instruction != null && message.hasOwnProperty("instruction")) { + properties._instruction = 1; + if (!$util.isString(message.instruction)) + return "instruction: string expected"; + } + return null; + }; + + /** + * Creates a QuestionAnsweringCorrectnessInstance message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInstance + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInstance} QuestionAnsweringCorrectnessInstance + */ + QuestionAnsweringCorrectnessInstance.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInstance) + return object; + var message = new $root.google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInstance(); + if (object.prediction != null) + message.prediction = String(object.prediction); + if (object.reference != null) + message.reference = String(object.reference); + if (object.context != null) + message.context = String(object.context); + if (object.instruction != null) + message.instruction = String(object.instruction); + return message; + }; + + /** + * Creates a plain object from a QuestionAnsweringCorrectnessInstance message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInstance + * @static + * @param {google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInstance} message QuestionAnsweringCorrectnessInstance + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + QuestionAnsweringCorrectnessInstance.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.prediction != null && message.hasOwnProperty("prediction")) { + object.prediction = message.prediction; + if (options.oneofs) + object._prediction = "prediction"; + } + if (message.reference != null && message.hasOwnProperty("reference")) { + object.reference = message.reference; + if (options.oneofs) + object._reference = "reference"; + } + if (message.context != null && message.hasOwnProperty("context")) { + object.context = message.context; + if (options.oneofs) + object._context = "context"; + } + if (message.instruction != null && message.hasOwnProperty("instruction")) { + object.instruction = message.instruction; + if (options.oneofs) + object._instruction = "instruction"; + } + return object; + }; + + /** + * Converts this QuestionAnsweringCorrectnessInstance to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInstance + * @instance + * @returns {Object.} JSON object + */ + QuestionAnsweringCorrectnessInstance.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for QuestionAnsweringCorrectnessInstance + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInstance + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + QuestionAnsweringCorrectnessInstance.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInstance"; + }; + + return QuestionAnsweringCorrectnessInstance; + })(); + + v1.QuestionAnsweringCorrectnessSpec = (function() { + + /** + * Properties of a QuestionAnsweringCorrectnessSpec. + * @memberof google.cloud.aiplatform.v1 + * @interface IQuestionAnsweringCorrectnessSpec + * @property {boolean|null} [useReference] QuestionAnsweringCorrectnessSpec useReference + * @property {number|null} [version] QuestionAnsweringCorrectnessSpec version + */ + + /** + * Constructs a new QuestionAnsweringCorrectnessSpec. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a QuestionAnsweringCorrectnessSpec. + * @implements IQuestionAnsweringCorrectnessSpec + * @constructor + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringCorrectnessSpec=} [properties] Properties to set + */ + function QuestionAnsweringCorrectnessSpec(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]]; + } + + /** + * QuestionAnsweringCorrectnessSpec useReference. + * @member {boolean} useReference + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessSpec + * @instance + */ + QuestionAnsweringCorrectnessSpec.prototype.useReference = false; + + /** + * QuestionAnsweringCorrectnessSpec version. + * @member {number} version + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessSpec + * @instance + */ + QuestionAnsweringCorrectnessSpec.prototype.version = 0; + + /** + * Creates a new QuestionAnsweringCorrectnessSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessSpec + * @static + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringCorrectnessSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessSpec} QuestionAnsweringCorrectnessSpec instance + */ + QuestionAnsweringCorrectnessSpec.create = function create(properties) { + return new QuestionAnsweringCorrectnessSpec(properties); + }; + + /** + * Encodes the specified QuestionAnsweringCorrectnessSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessSpec + * @static + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringCorrectnessSpec} message QuestionAnsweringCorrectnessSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QuestionAnsweringCorrectnessSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.useReference != null && Object.hasOwnProperty.call(message, "useReference")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.useReference); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.version); + return writer; + }; + + /** + * Encodes the specified QuestionAnsweringCorrectnessSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessSpec + * @static + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringCorrectnessSpec} message QuestionAnsweringCorrectnessSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QuestionAnsweringCorrectnessSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a QuestionAnsweringCorrectnessSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessSpec + * @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.QuestionAnsweringCorrectnessSpec} QuestionAnsweringCorrectnessSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QuestionAnsweringCorrectnessSpec.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.QuestionAnsweringCorrectnessSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.useReference = reader.bool(); + break; + } + case 2: { + message.version = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a QuestionAnsweringCorrectnessSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessSpec} QuestionAnsweringCorrectnessSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QuestionAnsweringCorrectnessSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a QuestionAnsweringCorrectnessSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QuestionAnsweringCorrectnessSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.useReference != null && message.hasOwnProperty("useReference")) + if (typeof message.useReference !== "boolean") + return "useReference: boolean expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isInteger(message.version)) + return "version: integer expected"; + return null; + }; + + /** + * Creates a QuestionAnsweringCorrectnessSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessSpec} QuestionAnsweringCorrectnessSpec + */ + QuestionAnsweringCorrectnessSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessSpec(); + if (object.useReference != null) + message.useReference = Boolean(object.useReference); + if (object.version != null) + message.version = object.version | 0; + return message; + }; + + /** + * Creates a plain object from a QuestionAnsweringCorrectnessSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessSpec + * @static + * @param {google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessSpec} message QuestionAnsweringCorrectnessSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + QuestionAnsweringCorrectnessSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.useReference = false; + object.version = 0; + } + if (message.useReference != null && message.hasOwnProperty("useReference")) + object.useReference = message.useReference; + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + return object; + }; + + /** + * Converts this QuestionAnsweringCorrectnessSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessSpec + * @instance + * @returns {Object.} JSON object + */ + QuestionAnsweringCorrectnessSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for QuestionAnsweringCorrectnessSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + QuestionAnsweringCorrectnessSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessSpec"; + }; + + return QuestionAnsweringCorrectnessSpec; + })(); + + v1.QuestionAnsweringCorrectnessResult = (function() { + + /** + * Properties of a QuestionAnsweringCorrectnessResult. + * @memberof google.cloud.aiplatform.v1 + * @interface IQuestionAnsweringCorrectnessResult + * @property {number|null} [score] QuestionAnsweringCorrectnessResult score + * @property {string|null} [explanation] QuestionAnsweringCorrectnessResult explanation + * @property {number|null} [confidence] QuestionAnsweringCorrectnessResult confidence + */ + + /** + * Constructs a new QuestionAnsweringCorrectnessResult. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a QuestionAnsweringCorrectnessResult. + * @implements IQuestionAnsweringCorrectnessResult + * @constructor + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringCorrectnessResult=} [properties] Properties to set + */ + function QuestionAnsweringCorrectnessResult(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]]; + } + + /** + * QuestionAnsweringCorrectnessResult score. + * @member {number|null|undefined} score + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessResult + * @instance + */ + QuestionAnsweringCorrectnessResult.prototype.score = null; + + /** + * QuestionAnsweringCorrectnessResult explanation. + * @member {string} explanation + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessResult + * @instance + */ + QuestionAnsweringCorrectnessResult.prototype.explanation = ""; + + /** + * QuestionAnsweringCorrectnessResult confidence. + * @member {number|null|undefined} confidence + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessResult + * @instance + */ + QuestionAnsweringCorrectnessResult.prototype.confidence = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * QuestionAnsweringCorrectnessResult _score. + * @member {"score"|undefined} _score + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessResult + * @instance + */ + Object.defineProperty(QuestionAnsweringCorrectnessResult.prototype, "_score", { + get: $util.oneOfGetter($oneOfFields = ["score"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * QuestionAnsweringCorrectnessResult _confidence. + * @member {"confidence"|undefined} _confidence + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessResult + * @instance + */ + Object.defineProperty(QuestionAnsweringCorrectnessResult.prototype, "_confidence", { + get: $util.oneOfGetter($oneOfFields = ["confidence"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new QuestionAnsweringCorrectnessResult instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessResult + * @static + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringCorrectnessResult=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessResult} QuestionAnsweringCorrectnessResult instance + */ + QuestionAnsweringCorrectnessResult.create = function create(properties) { + return new QuestionAnsweringCorrectnessResult(properties); + }; + + /** + * Encodes the specified QuestionAnsweringCorrectnessResult message. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessResult.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessResult + * @static + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringCorrectnessResult} message QuestionAnsweringCorrectnessResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QuestionAnsweringCorrectnessResult.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.score != null && Object.hasOwnProperty.call(message, "score")) + writer.uint32(/* id 1, wireType 5 =*/13).float(message.score); + if (message.explanation != null && Object.hasOwnProperty.call(message, "explanation")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.explanation); + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) + writer.uint32(/* id 3, wireType 5 =*/29).float(message.confidence); + return writer; + }; + + /** + * Encodes the specified QuestionAnsweringCorrectnessResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessResult.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessResult + * @static + * @param {google.cloud.aiplatform.v1.IQuestionAnsweringCorrectnessResult} message QuestionAnsweringCorrectnessResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QuestionAnsweringCorrectnessResult.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a QuestionAnsweringCorrectnessResult message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessResult + * @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.QuestionAnsweringCorrectnessResult} QuestionAnsweringCorrectnessResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QuestionAnsweringCorrectnessResult.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.QuestionAnsweringCorrectnessResult(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.score = reader.float(); + break; + } + case 2: { + message.explanation = reader.string(); + break; + } + case 3: { + message.confidence = reader.float(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a QuestionAnsweringCorrectnessResult message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessResult} QuestionAnsweringCorrectnessResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QuestionAnsweringCorrectnessResult.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a QuestionAnsweringCorrectnessResult message. + * @function verify + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessResult + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QuestionAnsweringCorrectnessResult.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.score != null && message.hasOwnProperty("score")) { + properties._score = 1; + if (typeof message.score !== "number") + return "score: number expected"; + } + if (message.explanation != null && message.hasOwnProperty("explanation")) + if (!$util.isString(message.explanation)) + return "explanation: string expected"; + if (message.confidence != null && message.hasOwnProperty("confidence")) { + properties._confidence = 1; + if (typeof message.confidence !== "number") + return "confidence: number expected"; + } + return null; + }; + + /** + * Creates a QuestionAnsweringCorrectnessResult message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessResult + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessResult} QuestionAnsweringCorrectnessResult + */ + QuestionAnsweringCorrectnessResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessResult) + return object; + var message = new $root.google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessResult(); + if (object.score != null) + message.score = Number(object.score); + if (object.explanation != null) + message.explanation = String(object.explanation); + if (object.confidence != null) + message.confidence = Number(object.confidence); + return message; + }; + + /** + * Creates a plain object from a QuestionAnsweringCorrectnessResult message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessResult + * @static + * @param {google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessResult} message QuestionAnsweringCorrectnessResult + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + QuestionAnsweringCorrectnessResult.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.explanation = ""; + if (message.score != null && message.hasOwnProperty("score")) { + object.score = options.json && !isFinite(message.score) ? String(message.score) : message.score; + if (options.oneofs) + object._score = "score"; + } + if (message.explanation != null && message.hasOwnProperty("explanation")) + object.explanation = message.explanation; + if (message.confidence != null && message.hasOwnProperty("confidence")) { + object.confidence = options.json && !isFinite(message.confidence) ? String(message.confidence) : message.confidence; + if (options.oneofs) + object._confidence = "confidence"; + } + return object; + }; + + /** + * Converts this QuestionAnsweringCorrectnessResult to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessResult + * @instance + * @returns {Object.} JSON object + */ + QuestionAnsweringCorrectnessResult.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for QuestionAnsweringCorrectnessResult + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessResult + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + QuestionAnsweringCorrectnessResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessResult"; + }; + + return QuestionAnsweringCorrectnessResult; + })(); + + v1.PointwiseMetricInput = (function() { + + /** + * Properties of a PointwiseMetricInput. + * @memberof google.cloud.aiplatform.v1 + * @interface IPointwiseMetricInput + * @property {google.cloud.aiplatform.v1.IPointwiseMetricSpec|null} [metricSpec] PointwiseMetricInput metricSpec + * @property {google.cloud.aiplatform.v1.IPointwiseMetricInstance|null} [instance] PointwiseMetricInput instance + */ + + /** + * Constructs a new PointwiseMetricInput. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a PointwiseMetricInput. + * @implements IPointwiseMetricInput + * @constructor + * @param {google.cloud.aiplatform.v1.IPointwiseMetricInput=} [properties] Properties to set + */ + function PointwiseMetricInput(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]]; + } + + /** + * PointwiseMetricInput metricSpec. + * @member {google.cloud.aiplatform.v1.IPointwiseMetricSpec|null|undefined} metricSpec + * @memberof google.cloud.aiplatform.v1.PointwiseMetricInput + * @instance + */ + PointwiseMetricInput.prototype.metricSpec = null; + + /** + * PointwiseMetricInput instance. + * @member {google.cloud.aiplatform.v1.IPointwiseMetricInstance|null|undefined} instance + * @memberof google.cloud.aiplatform.v1.PointwiseMetricInput + * @instance + */ + PointwiseMetricInput.prototype.instance = null; + + /** + * Creates a new PointwiseMetricInput instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.PointwiseMetricInput + * @static + * @param {google.cloud.aiplatform.v1.IPointwiseMetricInput=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PointwiseMetricInput} PointwiseMetricInput instance + */ + PointwiseMetricInput.create = function create(properties) { + return new PointwiseMetricInput(properties); + }; + + /** + * Encodes the specified PointwiseMetricInput message. Does not implicitly {@link google.cloud.aiplatform.v1.PointwiseMetricInput.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.PointwiseMetricInput + * @static + * @param {google.cloud.aiplatform.v1.IPointwiseMetricInput} message PointwiseMetricInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PointwiseMetricInput.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.metricSpec != null && Object.hasOwnProperty.call(message, "metricSpec")) + $root.google.cloud.aiplatform.v1.PointwiseMetricSpec.encode(message.metricSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.instance != null && Object.hasOwnProperty.call(message, "instance")) + $root.google.cloud.aiplatform.v1.PointwiseMetricInstance.encode(message.instance, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified PointwiseMetricInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PointwiseMetricInput.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.PointwiseMetricInput + * @static + * @param {google.cloud.aiplatform.v1.IPointwiseMetricInput} message PointwiseMetricInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PointwiseMetricInput.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PointwiseMetricInput message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.PointwiseMetricInput + * @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.PointwiseMetricInput} PointwiseMetricInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PointwiseMetricInput.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.PointwiseMetricInput(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.metricSpec = $root.google.cloud.aiplatform.v1.PointwiseMetricSpec.decode(reader, reader.uint32()); + break; + } + case 2: { + message.instance = $root.google.cloud.aiplatform.v1.PointwiseMetricInstance.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PointwiseMetricInput message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.PointwiseMetricInput + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.PointwiseMetricInput} PointwiseMetricInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PointwiseMetricInput.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PointwiseMetricInput message. + * @function verify + * @memberof google.cloud.aiplatform.v1.PointwiseMetricInput + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PointwiseMetricInput.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) { + var error = $root.google.cloud.aiplatform.v1.PointwiseMetricSpec.verify(message.metricSpec); + if (error) + return "metricSpec." + error; + } + if (message.instance != null && message.hasOwnProperty("instance")) { + var error = $root.google.cloud.aiplatform.v1.PointwiseMetricInstance.verify(message.instance); + if (error) + return "instance." + error; + } + return null; + }; + + /** + * Creates a PointwiseMetricInput message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.PointwiseMetricInput + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.PointwiseMetricInput} PointwiseMetricInput + */ + PointwiseMetricInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PointwiseMetricInput) + return object; + var message = new $root.google.cloud.aiplatform.v1.PointwiseMetricInput(); + if (object.metricSpec != null) { + if (typeof object.metricSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PointwiseMetricInput.metricSpec: object expected"); + message.metricSpec = $root.google.cloud.aiplatform.v1.PointwiseMetricSpec.fromObject(object.metricSpec); + } + if (object.instance != null) { + if (typeof object.instance !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PointwiseMetricInput.instance: object expected"); + message.instance = $root.google.cloud.aiplatform.v1.PointwiseMetricInstance.fromObject(object.instance); + } + return message; + }; + + /** + * Creates a plain object from a PointwiseMetricInput message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.PointwiseMetricInput + * @static + * @param {google.cloud.aiplatform.v1.PointwiseMetricInput} message PointwiseMetricInput + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PointwiseMetricInput.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.metricSpec = null; + object.instance = null; + } + if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) + object.metricSpec = $root.google.cloud.aiplatform.v1.PointwiseMetricSpec.toObject(message.metricSpec, options); + if (message.instance != null && message.hasOwnProperty("instance")) + object.instance = $root.google.cloud.aiplatform.v1.PointwiseMetricInstance.toObject(message.instance, options); + return object; + }; + + /** + * Converts this PointwiseMetricInput to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.PointwiseMetricInput + * @instance + * @returns {Object.} JSON object + */ + PointwiseMetricInput.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PointwiseMetricInput + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.PointwiseMetricInput + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PointwiseMetricInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PointwiseMetricInput"; + }; + + return PointwiseMetricInput; + })(); + + v1.PointwiseMetricInstance = (function() { + + /** + * Properties of a PointwiseMetricInstance. + * @memberof google.cloud.aiplatform.v1 + * @interface IPointwiseMetricInstance + * @property {string|null} [jsonInstance] PointwiseMetricInstance jsonInstance + */ + + /** + * Constructs a new PointwiseMetricInstance. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a PointwiseMetricInstance. + * @implements IPointwiseMetricInstance + * @constructor + * @param {google.cloud.aiplatform.v1.IPointwiseMetricInstance=} [properties] Properties to set + */ + function PointwiseMetricInstance(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]]; + } + + /** + * PointwiseMetricInstance jsonInstance. + * @member {string|null|undefined} jsonInstance + * @memberof google.cloud.aiplatform.v1.PointwiseMetricInstance + * @instance + */ + PointwiseMetricInstance.prototype.jsonInstance = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * PointwiseMetricInstance instance. + * @member {"jsonInstance"|undefined} instance + * @memberof google.cloud.aiplatform.v1.PointwiseMetricInstance + * @instance + */ + Object.defineProperty(PointwiseMetricInstance.prototype, "instance", { + get: $util.oneOfGetter($oneOfFields = ["jsonInstance"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new PointwiseMetricInstance instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.PointwiseMetricInstance + * @static + * @param {google.cloud.aiplatform.v1.IPointwiseMetricInstance=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PointwiseMetricInstance} PointwiseMetricInstance instance + */ + PointwiseMetricInstance.create = function create(properties) { + return new PointwiseMetricInstance(properties); + }; + + /** + * Encodes the specified PointwiseMetricInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.PointwiseMetricInstance.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.PointwiseMetricInstance + * @static + * @param {google.cloud.aiplatform.v1.IPointwiseMetricInstance} message PointwiseMetricInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PointwiseMetricInstance.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.jsonInstance != null && Object.hasOwnProperty.call(message, "jsonInstance")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.jsonInstance); + return writer; + }; + + /** + * Encodes the specified PointwiseMetricInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PointwiseMetricInstance.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.PointwiseMetricInstance + * @static + * @param {google.cloud.aiplatform.v1.IPointwiseMetricInstance} message PointwiseMetricInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PointwiseMetricInstance.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PointwiseMetricInstance message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.PointwiseMetricInstance + * @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.PointwiseMetricInstance} PointwiseMetricInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PointwiseMetricInstance.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.PointwiseMetricInstance(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.jsonInstance = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PointwiseMetricInstance message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.PointwiseMetricInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.PointwiseMetricInstance} PointwiseMetricInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PointwiseMetricInstance.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PointwiseMetricInstance message. + * @function verify + * @memberof google.cloud.aiplatform.v1.PointwiseMetricInstance + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PointwiseMetricInstance.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.jsonInstance != null && message.hasOwnProperty("jsonInstance")) { + properties.instance = 1; + if (!$util.isString(message.jsonInstance)) + return "jsonInstance: string expected"; + } + return null; + }; + + /** + * Creates a PointwiseMetricInstance message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.PointwiseMetricInstance + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.PointwiseMetricInstance} PointwiseMetricInstance + */ + PointwiseMetricInstance.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PointwiseMetricInstance) + return object; + var message = new $root.google.cloud.aiplatform.v1.PointwiseMetricInstance(); + if (object.jsonInstance != null) + message.jsonInstance = String(object.jsonInstance); + return message; + }; + + /** + * Creates a plain object from a PointwiseMetricInstance message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.PointwiseMetricInstance + * @static + * @param {google.cloud.aiplatform.v1.PointwiseMetricInstance} message PointwiseMetricInstance + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PointwiseMetricInstance.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.jsonInstance != null && message.hasOwnProperty("jsonInstance")) { + object.jsonInstance = message.jsonInstance; + if (options.oneofs) + object.instance = "jsonInstance"; + } + return object; + }; + + /** + * Converts this PointwiseMetricInstance to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.PointwiseMetricInstance + * @instance + * @returns {Object.} JSON object + */ + PointwiseMetricInstance.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PointwiseMetricInstance + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.PointwiseMetricInstance + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PointwiseMetricInstance.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PointwiseMetricInstance"; + }; + + return PointwiseMetricInstance; + })(); + + v1.PointwiseMetricSpec = (function() { + + /** + * Properties of a PointwiseMetricSpec. + * @memberof google.cloud.aiplatform.v1 + * @interface IPointwiseMetricSpec + * @property {string|null} [metricPromptTemplate] PointwiseMetricSpec metricPromptTemplate + */ + + /** + * Constructs a new PointwiseMetricSpec. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a PointwiseMetricSpec. + * @implements IPointwiseMetricSpec + * @constructor + * @param {google.cloud.aiplatform.v1.IPointwiseMetricSpec=} [properties] Properties to set + */ + function PointwiseMetricSpec(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]]; + } + + /** + * PointwiseMetricSpec metricPromptTemplate. + * @member {string|null|undefined} metricPromptTemplate + * @memberof google.cloud.aiplatform.v1.PointwiseMetricSpec + * @instance + */ + PointwiseMetricSpec.prototype.metricPromptTemplate = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * PointwiseMetricSpec _metricPromptTemplate. + * @member {"metricPromptTemplate"|undefined} _metricPromptTemplate + * @memberof google.cloud.aiplatform.v1.PointwiseMetricSpec + * @instance + */ + Object.defineProperty(PointwiseMetricSpec.prototype, "_metricPromptTemplate", { + get: $util.oneOfGetter($oneOfFields = ["metricPromptTemplate"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new PointwiseMetricSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.PointwiseMetricSpec + * @static + * @param {google.cloud.aiplatform.v1.IPointwiseMetricSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PointwiseMetricSpec} PointwiseMetricSpec instance + */ + PointwiseMetricSpec.create = function create(properties) { + return new PointwiseMetricSpec(properties); + }; + + /** + * Encodes the specified PointwiseMetricSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.PointwiseMetricSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.PointwiseMetricSpec + * @static + * @param {google.cloud.aiplatform.v1.IPointwiseMetricSpec} message PointwiseMetricSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PointwiseMetricSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.metricPromptTemplate != null && Object.hasOwnProperty.call(message, "metricPromptTemplate")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.metricPromptTemplate); + return writer; + }; + + /** + * Encodes the specified PointwiseMetricSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PointwiseMetricSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.PointwiseMetricSpec + * @static + * @param {google.cloud.aiplatform.v1.IPointwiseMetricSpec} message PointwiseMetricSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PointwiseMetricSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PointwiseMetricSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.PointwiseMetricSpec + * @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.PointwiseMetricSpec} PointwiseMetricSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PointwiseMetricSpec.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.PointwiseMetricSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.metricPromptTemplate = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PointwiseMetricSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.PointwiseMetricSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.PointwiseMetricSpec} PointwiseMetricSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PointwiseMetricSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PointwiseMetricSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1.PointwiseMetricSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PointwiseMetricSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.metricPromptTemplate != null && message.hasOwnProperty("metricPromptTemplate")) { + properties._metricPromptTemplate = 1; + if (!$util.isString(message.metricPromptTemplate)) + return "metricPromptTemplate: string expected"; + } + return null; + }; + + /** + * Creates a PointwiseMetricSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.PointwiseMetricSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.PointwiseMetricSpec} PointwiseMetricSpec + */ + PointwiseMetricSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PointwiseMetricSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1.PointwiseMetricSpec(); + if (object.metricPromptTemplate != null) + message.metricPromptTemplate = String(object.metricPromptTemplate); + return message; + }; + + /** + * Creates a plain object from a PointwiseMetricSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.PointwiseMetricSpec + * @static + * @param {google.cloud.aiplatform.v1.PointwiseMetricSpec} message PointwiseMetricSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PointwiseMetricSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.metricPromptTemplate != null && message.hasOwnProperty("metricPromptTemplate")) { + object.metricPromptTemplate = message.metricPromptTemplate; + if (options.oneofs) + object._metricPromptTemplate = "metricPromptTemplate"; + } + return object; + }; + + /** + * Converts this PointwiseMetricSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.PointwiseMetricSpec + * @instance + * @returns {Object.} JSON object + */ + PointwiseMetricSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PointwiseMetricSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.PointwiseMetricSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PointwiseMetricSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PointwiseMetricSpec"; + }; + + return PointwiseMetricSpec; + })(); + + v1.PointwiseMetricResult = (function() { + + /** + * Properties of a PointwiseMetricResult. + * @memberof google.cloud.aiplatform.v1 + * @interface IPointwiseMetricResult + * @property {number|null} [score] PointwiseMetricResult score + * @property {string|null} [explanation] PointwiseMetricResult explanation + */ + + /** + * Constructs a new PointwiseMetricResult. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a PointwiseMetricResult. + * @implements IPointwiseMetricResult + * @constructor + * @param {google.cloud.aiplatform.v1.IPointwiseMetricResult=} [properties] Properties to set + */ + function PointwiseMetricResult(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]]; + } + + /** + * PointwiseMetricResult score. + * @member {number|null|undefined} score + * @memberof google.cloud.aiplatform.v1.PointwiseMetricResult + * @instance + */ + PointwiseMetricResult.prototype.score = null; + + /** + * PointwiseMetricResult explanation. + * @member {string} explanation + * @memberof google.cloud.aiplatform.v1.PointwiseMetricResult + * @instance + */ + PointwiseMetricResult.prototype.explanation = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * PointwiseMetricResult _score. + * @member {"score"|undefined} _score + * @memberof google.cloud.aiplatform.v1.PointwiseMetricResult + * @instance + */ + Object.defineProperty(PointwiseMetricResult.prototype, "_score", { + get: $util.oneOfGetter($oneOfFields = ["score"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new PointwiseMetricResult instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.PointwiseMetricResult + * @static + * @param {google.cloud.aiplatform.v1.IPointwiseMetricResult=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PointwiseMetricResult} PointwiseMetricResult instance + */ + PointwiseMetricResult.create = function create(properties) { + return new PointwiseMetricResult(properties); + }; + + /** + * Encodes the specified PointwiseMetricResult message. Does not implicitly {@link google.cloud.aiplatform.v1.PointwiseMetricResult.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.PointwiseMetricResult + * @static + * @param {google.cloud.aiplatform.v1.IPointwiseMetricResult} message PointwiseMetricResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PointwiseMetricResult.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.score != null && Object.hasOwnProperty.call(message, "score")) + writer.uint32(/* id 1, wireType 5 =*/13).float(message.score); + if (message.explanation != null && Object.hasOwnProperty.call(message, "explanation")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.explanation); + return writer; + }; + + /** + * Encodes the specified PointwiseMetricResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PointwiseMetricResult.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.PointwiseMetricResult + * @static + * @param {google.cloud.aiplatform.v1.IPointwiseMetricResult} message PointwiseMetricResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PointwiseMetricResult.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PointwiseMetricResult message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.PointwiseMetricResult + * @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.PointwiseMetricResult} PointwiseMetricResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PointwiseMetricResult.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.PointwiseMetricResult(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.score = reader.float(); + break; + } + case 2: { + message.explanation = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PointwiseMetricResult message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.PointwiseMetricResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.PointwiseMetricResult} PointwiseMetricResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PointwiseMetricResult.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PointwiseMetricResult message. + * @function verify + * @memberof google.cloud.aiplatform.v1.PointwiseMetricResult + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PointwiseMetricResult.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.score != null && message.hasOwnProperty("score")) { + properties._score = 1; + if (typeof message.score !== "number") + return "score: number expected"; + } + if (message.explanation != null && message.hasOwnProperty("explanation")) + if (!$util.isString(message.explanation)) + return "explanation: string expected"; + return null; + }; + + /** + * Creates a PointwiseMetricResult message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.PointwiseMetricResult + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.PointwiseMetricResult} PointwiseMetricResult + */ + PointwiseMetricResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PointwiseMetricResult) + return object; + var message = new $root.google.cloud.aiplatform.v1.PointwiseMetricResult(); + if (object.score != null) + message.score = Number(object.score); + if (object.explanation != null) + message.explanation = String(object.explanation); + return message; + }; + + /** + * Creates a plain object from a PointwiseMetricResult message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.PointwiseMetricResult + * @static + * @param {google.cloud.aiplatform.v1.PointwiseMetricResult} message PointwiseMetricResult + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PointwiseMetricResult.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.explanation = ""; + if (message.score != null && message.hasOwnProperty("score")) { + object.score = options.json && !isFinite(message.score) ? String(message.score) : message.score; + if (options.oneofs) + object._score = "score"; + } + if (message.explanation != null && message.hasOwnProperty("explanation")) + object.explanation = message.explanation; + return object; + }; + + /** + * Converts this PointwiseMetricResult to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.PointwiseMetricResult + * @instance + * @returns {Object.} JSON object + */ + PointwiseMetricResult.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PointwiseMetricResult + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.PointwiseMetricResult + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PointwiseMetricResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PointwiseMetricResult"; + }; + + return PointwiseMetricResult; + })(); + + v1.PairwiseMetricInput = (function() { + + /** + * Properties of a PairwiseMetricInput. + * @memberof google.cloud.aiplatform.v1 + * @interface IPairwiseMetricInput + * @property {google.cloud.aiplatform.v1.IPairwiseMetricSpec|null} [metricSpec] PairwiseMetricInput metricSpec + * @property {google.cloud.aiplatform.v1.IPairwiseMetricInstance|null} [instance] PairwiseMetricInput instance + */ + + /** + * Constructs a new PairwiseMetricInput. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a PairwiseMetricInput. + * @implements IPairwiseMetricInput + * @constructor + * @param {google.cloud.aiplatform.v1.IPairwiseMetricInput=} [properties] Properties to set + */ + function PairwiseMetricInput(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]]; + } + + /** + * PairwiseMetricInput metricSpec. + * @member {google.cloud.aiplatform.v1.IPairwiseMetricSpec|null|undefined} metricSpec + * @memberof google.cloud.aiplatform.v1.PairwiseMetricInput + * @instance + */ + PairwiseMetricInput.prototype.metricSpec = null; + + /** + * PairwiseMetricInput instance. + * @member {google.cloud.aiplatform.v1.IPairwiseMetricInstance|null|undefined} instance + * @memberof google.cloud.aiplatform.v1.PairwiseMetricInput + * @instance + */ + PairwiseMetricInput.prototype.instance = null; + + /** + * Creates a new PairwiseMetricInput instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.PairwiseMetricInput + * @static + * @param {google.cloud.aiplatform.v1.IPairwiseMetricInput=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PairwiseMetricInput} PairwiseMetricInput instance + */ + PairwiseMetricInput.create = function create(properties) { + return new PairwiseMetricInput(properties); + }; + + /** + * Encodes the specified PairwiseMetricInput message. Does not implicitly {@link google.cloud.aiplatform.v1.PairwiseMetricInput.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.PairwiseMetricInput + * @static + * @param {google.cloud.aiplatform.v1.IPairwiseMetricInput} message PairwiseMetricInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PairwiseMetricInput.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.metricSpec != null && Object.hasOwnProperty.call(message, "metricSpec")) + $root.google.cloud.aiplatform.v1.PairwiseMetricSpec.encode(message.metricSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.instance != null && Object.hasOwnProperty.call(message, "instance")) + $root.google.cloud.aiplatform.v1.PairwiseMetricInstance.encode(message.instance, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified PairwiseMetricInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PairwiseMetricInput.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.PairwiseMetricInput + * @static + * @param {google.cloud.aiplatform.v1.IPairwiseMetricInput} message PairwiseMetricInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PairwiseMetricInput.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PairwiseMetricInput message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.PairwiseMetricInput + * @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.PairwiseMetricInput} PairwiseMetricInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PairwiseMetricInput.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.PairwiseMetricInput(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.metricSpec = $root.google.cloud.aiplatform.v1.PairwiseMetricSpec.decode(reader, reader.uint32()); + break; + } + case 2: { + message.instance = $root.google.cloud.aiplatform.v1.PairwiseMetricInstance.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PairwiseMetricInput message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.PairwiseMetricInput + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.PairwiseMetricInput} PairwiseMetricInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PairwiseMetricInput.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PairwiseMetricInput message. + * @function verify + * @memberof google.cloud.aiplatform.v1.PairwiseMetricInput + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PairwiseMetricInput.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) { + var error = $root.google.cloud.aiplatform.v1.PairwiseMetricSpec.verify(message.metricSpec); + if (error) + return "metricSpec." + error; + } + if (message.instance != null && message.hasOwnProperty("instance")) { + var error = $root.google.cloud.aiplatform.v1.PairwiseMetricInstance.verify(message.instance); + if (error) + return "instance." + error; + } + return null; + }; + + /** + * Creates a PairwiseMetricInput message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.PairwiseMetricInput + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.PairwiseMetricInput} PairwiseMetricInput + */ + PairwiseMetricInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PairwiseMetricInput) + return object; + var message = new $root.google.cloud.aiplatform.v1.PairwiseMetricInput(); + if (object.metricSpec != null) { + if (typeof object.metricSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PairwiseMetricInput.metricSpec: object expected"); + message.metricSpec = $root.google.cloud.aiplatform.v1.PairwiseMetricSpec.fromObject(object.metricSpec); + } + if (object.instance != null) { + if (typeof object.instance !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PairwiseMetricInput.instance: object expected"); + message.instance = $root.google.cloud.aiplatform.v1.PairwiseMetricInstance.fromObject(object.instance); + } + return message; + }; + + /** + * Creates a plain object from a PairwiseMetricInput message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.PairwiseMetricInput + * @static + * @param {google.cloud.aiplatform.v1.PairwiseMetricInput} message PairwiseMetricInput + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PairwiseMetricInput.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.metricSpec = null; + object.instance = null; + } + if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) + object.metricSpec = $root.google.cloud.aiplatform.v1.PairwiseMetricSpec.toObject(message.metricSpec, options); + if (message.instance != null && message.hasOwnProperty("instance")) + object.instance = $root.google.cloud.aiplatform.v1.PairwiseMetricInstance.toObject(message.instance, options); + return object; + }; + + /** + * Converts this PairwiseMetricInput to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.PairwiseMetricInput + * @instance + * @returns {Object.} JSON object + */ + PairwiseMetricInput.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PairwiseMetricInput + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.PairwiseMetricInput + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PairwiseMetricInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PairwiseMetricInput"; + }; + + return PairwiseMetricInput; + })(); + + v1.PairwiseMetricInstance = (function() { + + /** + * Properties of a PairwiseMetricInstance. + * @memberof google.cloud.aiplatform.v1 + * @interface IPairwiseMetricInstance + * @property {string|null} [jsonInstance] PairwiseMetricInstance jsonInstance + */ + + /** + * Constructs a new PairwiseMetricInstance. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a PairwiseMetricInstance. + * @implements IPairwiseMetricInstance + * @constructor + * @param {google.cloud.aiplatform.v1.IPairwiseMetricInstance=} [properties] Properties to set + */ + function PairwiseMetricInstance(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]]; + } + + /** + * PairwiseMetricInstance jsonInstance. + * @member {string|null|undefined} jsonInstance + * @memberof google.cloud.aiplatform.v1.PairwiseMetricInstance + * @instance + */ + PairwiseMetricInstance.prototype.jsonInstance = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * PairwiseMetricInstance instance. + * @member {"jsonInstance"|undefined} instance + * @memberof google.cloud.aiplatform.v1.PairwiseMetricInstance + * @instance + */ + Object.defineProperty(PairwiseMetricInstance.prototype, "instance", { + get: $util.oneOfGetter($oneOfFields = ["jsonInstance"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new PairwiseMetricInstance instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.PairwiseMetricInstance + * @static + * @param {google.cloud.aiplatform.v1.IPairwiseMetricInstance=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PairwiseMetricInstance} PairwiseMetricInstance instance + */ + PairwiseMetricInstance.create = function create(properties) { + return new PairwiseMetricInstance(properties); + }; + + /** + * Encodes the specified PairwiseMetricInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.PairwiseMetricInstance.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.PairwiseMetricInstance + * @static + * @param {google.cloud.aiplatform.v1.IPairwiseMetricInstance} message PairwiseMetricInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PairwiseMetricInstance.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.jsonInstance != null && Object.hasOwnProperty.call(message, "jsonInstance")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.jsonInstance); + return writer; + }; + + /** + * Encodes the specified PairwiseMetricInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PairwiseMetricInstance.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.PairwiseMetricInstance + * @static + * @param {google.cloud.aiplatform.v1.IPairwiseMetricInstance} message PairwiseMetricInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PairwiseMetricInstance.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PairwiseMetricInstance message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.PairwiseMetricInstance + * @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.PairwiseMetricInstance} PairwiseMetricInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PairwiseMetricInstance.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.PairwiseMetricInstance(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.jsonInstance = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PairwiseMetricInstance message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.PairwiseMetricInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.PairwiseMetricInstance} PairwiseMetricInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PairwiseMetricInstance.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PairwiseMetricInstance message. + * @function verify + * @memberof google.cloud.aiplatform.v1.PairwiseMetricInstance + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PairwiseMetricInstance.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.jsonInstance != null && message.hasOwnProperty("jsonInstance")) { + properties.instance = 1; + if (!$util.isString(message.jsonInstance)) + return "jsonInstance: string expected"; + } + return null; + }; + + /** + * Creates a PairwiseMetricInstance message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.PairwiseMetricInstance + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.PairwiseMetricInstance} PairwiseMetricInstance + */ + PairwiseMetricInstance.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PairwiseMetricInstance) + return object; + var message = new $root.google.cloud.aiplatform.v1.PairwiseMetricInstance(); + if (object.jsonInstance != null) + message.jsonInstance = String(object.jsonInstance); + return message; + }; + + /** + * Creates a plain object from a PairwiseMetricInstance message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.PairwiseMetricInstance + * @static + * @param {google.cloud.aiplatform.v1.PairwiseMetricInstance} message PairwiseMetricInstance + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PairwiseMetricInstance.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.jsonInstance != null && message.hasOwnProperty("jsonInstance")) { + object.jsonInstance = message.jsonInstance; + if (options.oneofs) + object.instance = "jsonInstance"; + } + return object; + }; + + /** + * Converts this PairwiseMetricInstance to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.PairwiseMetricInstance + * @instance + * @returns {Object.} JSON object + */ + PairwiseMetricInstance.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PairwiseMetricInstance + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.PairwiseMetricInstance + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PairwiseMetricInstance.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PairwiseMetricInstance"; + }; + + return PairwiseMetricInstance; + })(); + + v1.PairwiseMetricSpec = (function() { + + /** + * Properties of a PairwiseMetricSpec. + * @memberof google.cloud.aiplatform.v1 + * @interface IPairwiseMetricSpec + * @property {string|null} [metricPromptTemplate] PairwiseMetricSpec metricPromptTemplate + */ + + /** + * Constructs a new PairwiseMetricSpec. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a PairwiseMetricSpec. + * @implements IPairwiseMetricSpec + * @constructor + * @param {google.cloud.aiplatform.v1.IPairwiseMetricSpec=} [properties] Properties to set + */ + function PairwiseMetricSpec(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]]; + } + + /** + * PairwiseMetricSpec metricPromptTemplate. + * @member {string|null|undefined} metricPromptTemplate + * @memberof google.cloud.aiplatform.v1.PairwiseMetricSpec + * @instance + */ + PairwiseMetricSpec.prototype.metricPromptTemplate = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * PairwiseMetricSpec _metricPromptTemplate. + * @member {"metricPromptTemplate"|undefined} _metricPromptTemplate + * @memberof google.cloud.aiplatform.v1.PairwiseMetricSpec + * @instance + */ + Object.defineProperty(PairwiseMetricSpec.prototype, "_metricPromptTemplate", { + get: $util.oneOfGetter($oneOfFields = ["metricPromptTemplate"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new PairwiseMetricSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.PairwiseMetricSpec + * @static + * @param {google.cloud.aiplatform.v1.IPairwiseMetricSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PairwiseMetricSpec} PairwiseMetricSpec instance + */ + PairwiseMetricSpec.create = function create(properties) { + return new PairwiseMetricSpec(properties); + }; + + /** + * Encodes the specified PairwiseMetricSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.PairwiseMetricSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.PairwiseMetricSpec + * @static + * @param {google.cloud.aiplatform.v1.IPairwiseMetricSpec} message PairwiseMetricSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PairwiseMetricSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.metricPromptTemplate != null && Object.hasOwnProperty.call(message, "metricPromptTemplate")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.metricPromptTemplate); + return writer; + }; + + /** + * Encodes the specified PairwiseMetricSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PairwiseMetricSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.PairwiseMetricSpec + * @static + * @param {google.cloud.aiplatform.v1.IPairwiseMetricSpec} message PairwiseMetricSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PairwiseMetricSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PairwiseMetricSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.PairwiseMetricSpec + * @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.PairwiseMetricSpec} PairwiseMetricSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PairwiseMetricSpec.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.PairwiseMetricSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.metricPromptTemplate = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PairwiseMetricSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.PairwiseMetricSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.PairwiseMetricSpec} PairwiseMetricSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PairwiseMetricSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PairwiseMetricSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1.PairwiseMetricSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PairwiseMetricSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.metricPromptTemplate != null && message.hasOwnProperty("metricPromptTemplate")) { + properties._metricPromptTemplate = 1; + if (!$util.isString(message.metricPromptTemplate)) + return "metricPromptTemplate: string expected"; + } + return null; + }; + + /** + * Creates a PairwiseMetricSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.PairwiseMetricSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.PairwiseMetricSpec} PairwiseMetricSpec + */ + PairwiseMetricSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PairwiseMetricSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1.PairwiseMetricSpec(); + if (object.metricPromptTemplate != null) + message.metricPromptTemplate = String(object.metricPromptTemplate); + return message; + }; + + /** + * Creates a plain object from a PairwiseMetricSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.PairwiseMetricSpec + * @static + * @param {google.cloud.aiplatform.v1.PairwiseMetricSpec} message PairwiseMetricSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PairwiseMetricSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.metricPromptTemplate != null && message.hasOwnProperty("metricPromptTemplate")) { + object.metricPromptTemplate = message.metricPromptTemplate; + if (options.oneofs) + object._metricPromptTemplate = "metricPromptTemplate"; + } + return object; + }; + + /** + * Converts this PairwiseMetricSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.PairwiseMetricSpec + * @instance + * @returns {Object.} JSON object + */ + PairwiseMetricSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PairwiseMetricSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.PairwiseMetricSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PairwiseMetricSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PairwiseMetricSpec"; + }; + + return PairwiseMetricSpec; + })(); + + v1.PairwiseMetricResult = (function() { + + /** + * Properties of a PairwiseMetricResult. + * @memberof google.cloud.aiplatform.v1 + * @interface IPairwiseMetricResult + * @property {google.cloud.aiplatform.v1.PairwiseChoice|null} [pairwiseChoice] PairwiseMetricResult pairwiseChoice + * @property {string|null} [explanation] PairwiseMetricResult explanation + */ + + /** + * Constructs a new PairwiseMetricResult. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a PairwiseMetricResult. + * @implements IPairwiseMetricResult + * @constructor + * @param {google.cloud.aiplatform.v1.IPairwiseMetricResult=} [properties] Properties to set + */ + function PairwiseMetricResult(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]]; + } + + /** + * PairwiseMetricResult pairwiseChoice. + * @member {google.cloud.aiplatform.v1.PairwiseChoice} pairwiseChoice + * @memberof google.cloud.aiplatform.v1.PairwiseMetricResult + * @instance + */ + PairwiseMetricResult.prototype.pairwiseChoice = 0; + + /** + * PairwiseMetricResult explanation. + * @member {string} explanation + * @memberof google.cloud.aiplatform.v1.PairwiseMetricResult + * @instance + */ + PairwiseMetricResult.prototype.explanation = ""; + + /** + * Creates a new PairwiseMetricResult instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.PairwiseMetricResult + * @static + * @param {google.cloud.aiplatform.v1.IPairwiseMetricResult=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PairwiseMetricResult} PairwiseMetricResult instance + */ + PairwiseMetricResult.create = function create(properties) { + return new PairwiseMetricResult(properties); + }; + + /** + * Encodes the specified PairwiseMetricResult message. Does not implicitly {@link google.cloud.aiplatform.v1.PairwiseMetricResult.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.PairwiseMetricResult + * @static + * @param {google.cloud.aiplatform.v1.IPairwiseMetricResult} message PairwiseMetricResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PairwiseMetricResult.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.pairwiseChoice != null && Object.hasOwnProperty.call(message, "pairwiseChoice")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.pairwiseChoice); + if (message.explanation != null && Object.hasOwnProperty.call(message, "explanation")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.explanation); + return writer; + }; + + /** + * Encodes the specified PairwiseMetricResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PairwiseMetricResult.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.PairwiseMetricResult + * @static + * @param {google.cloud.aiplatform.v1.IPairwiseMetricResult} message PairwiseMetricResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PairwiseMetricResult.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PairwiseMetricResult message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.PairwiseMetricResult + * @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.PairwiseMetricResult} PairwiseMetricResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PairwiseMetricResult.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.PairwiseMetricResult(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.pairwiseChoice = reader.int32(); + break; + } + case 2: { + message.explanation = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PairwiseMetricResult message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.PairwiseMetricResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.PairwiseMetricResult} PairwiseMetricResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PairwiseMetricResult.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PairwiseMetricResult message. + * @function verify + * @memberof google.cloud.aiplatform.v1.PairwiseMetricResult + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PairwiseMetricResult.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.pairwiseChoice != null && message.hasOwnProperty("pairwiseChoice")) + switch (message.pairwiseChoice) { + default: + return "pairwiseChoice: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.explanation != null && message.hasOwnProperty("explanation")) + if (!$util.isString(message.explanation)) + return "explanation: string expected"; + return null; + }; + + /** + * Creates a PairwiseMetricResult message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.PairwiseMetricResult + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.PairwiseMetricResult} PairwiseMetricResult + */ + PairwiseMetricResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PairwiseMetricResult) + return object; + var message = new $root.google.cloud.aiplatform.v1.PairwiseMetricResult(); + switch (object.pairwiseChoice) { + default: + if (typeof object.pairwiseChoice === "number") { + message.pairwiseChoice = object.pairwiseChoice; + break; + } + break; + case "PAIRWISE_CHOICE_UNSPECIFIED": + case 0: + message.pairwiseChoice = 0; + break; + case "BASELINE": + case 1: + message.pairwiseChoice = 1; + break; + case "CANDIDATE": + case 2: + message.pairwiseChoice = 2; + break; + case "TIE": + case 3: + message.pairwiseChoice = 3; + break; + } + if (object.explanation != null) + message.explanation = String(object.explanation); + return message; + }; + + /** + * Creates a plain object from a PairwiseMetricResult message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.PairwiseMetricResult + * @static + * @param {google.cloud.aiplatform.v1.PairwiseMetricResult} message PairwiseMetricResult + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PairwiseMetricResult.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.pairwiseChoice = options.enums === String ? "PAIRWISE_CHOICE_UNSPECIFIED" : 0; + object.explanation = ""; + } + if (message.pairwiseChoice != null && message.hasOwnProperty("pairwiseChoice")) + object.pairwiseChoice = options.enums === String ? $root.google.cloud.aiplatform.v1.PairwiseChoice[message.pairwiseChoice] === undefined ? message.pairwiseChoice : $root.google.cloud.aiplatform.v1.PairwiseChoice[message.pairwiseChoice] : message.pairwiseChoice; + if (message.explanation != null && message.hasOwnProperty("explanation")) + object.explanation = message.explanation; + return object; + }; + + /** + * Converts this PairwiseMetricResult to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.PairwiseMetricResult + * @instance + * @returns {Object.} JSON object + */ + PairwiseMetricResult.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PairwiseMetricResult + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.PairwiseMetricResult + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PairwiseMetricResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PairwiseMetricResult"; + }; + + return PairwiseMetricResult; + })(); + + v1.ToolCallValidInput = (function() { + + /** + * Properties of a ToolCallValidInput. + * @memberof google.cloud.aiplatform.v1 + * @interface IToolCallValidInput + * @property {google.cloud.aiplatform.v1.IToolCallValidSpec|null} [metricSpec] ToolCallValidInput metricSpec + * @property {Array.|null} [instances] ToolCallValidInput instances + */ + + /** + * Constructs a new ToolCallValidInput. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ToolCallValidInput. + * @implements IToolCallValidInput + * @constructor + * @param {google.cloud.aiplatform.v1.IToolCallValidInput=} [properties] Properties to set + */ + function ToolCallValidInput(properties) { + this.instances = []; + 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]]; + } + + /** + * ToolCallValidInput metricSpec. + * @member {google.cloud.aiplatform.v1.IToolCallValidSpec|null|undefined} metricSpec + * @memberof google.cloud.aiplatform.v1.ToolCallValidInput + * @instance + */ + ToolCallValidInput.prototype.metricSpec = null; + + /** + * ToolCallValidInput instances. + * @member {Array.} instances + * @memberof google.cloud.aiplatform.v1.ToolCallValidInput + * @instance + */ + ToolCallValidInput.prototype.instances = $util.emptyArray; + + /** + * Creates a new ToolCallValidInput instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ToolCallValidInput + * @static + * @param {google.cloud.aiplatform.v1.IToolCallValidInput=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ToolCallValidInput} ToolCallValidInput instance + */ + ToolCallValidInput.create = function create(properties) { + return new ToolCallValidInput(properties); + }; + + /** + * Encodes the specified ToolCallValidInput message. Does not implicitly {@link google.cloud.aiplatform.v1.ToolCallValidInput.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ToolCallValidInput + * @static + * @param {google.cloud.aiplatform.v1.IToolCallValidInput} message ToolCallValidInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ToolCallValidInput.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.metricSpec != null && Object.hasOwnProperty.call(message, "metricSpec")) + $root.google.cloud.aiplatform.v1.ToolCallValidSpec.encode(message.metricSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.instances != null && message.instances.length) + for (var i = 0; i < message.instances.length; ++i) + $root.google.cloud.aiplatform.v1.ToolCallValidInstance.encode(message.instances[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ToolCallValidInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ToolCallValidInput.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ToolCallValidInput + * @static + * @param {google.cloud.aiplatform.v1.IToolCallValidInput} message ToolCallValidInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ToolCallValidInput.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ToolCallValidInput message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ToolCallValidInput + * @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.ToolCallValidInput} ToolCallValidInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ToolCallValidInput.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.ToolCallValidInput(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.metricSpec = $root.google.cloud.aiplatform.v1.ToolCallValidSpec.decode(reader, reader.uint32()); + break; + } + case 2: { + if (!(message.instances && message.instances.length)) + message.instances = []; + message.instances.push($root.google.cloud.aiplatform.v1.ToolCallValidInstance.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ToolCallValidInput message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ToolCallValidInput + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ToolCallValidInput} ToolCallValidInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ToolCallValidInput.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ToolCallValidInput message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ToolCallValidInput + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ToolCallValidInput.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) { + var error = $root.google.cloud.aiplatform.v1.ToolCallValidSpec.verify(message.metricSpec); + if (error) + return "metricSpec." + error; + } + if (message.instances != null && message.hasOwnProperty("instances")) { + if (!Array.isArray(message.instances)) + return "instances: array expected"; + for (var i = 0; i < message.instances.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.ToolCallValidInstance.verify(message.instances[i]); + if (error) + return "instances." + error; + } + } + return null; + }; + + /** + * Creates a ToolCallValidInput message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ToolCallValidInput + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ToolCallValidInput} ToolCallValidInput + */ + ToolCallValidInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ToolCallValidInput) + return object; + var message = new $root.google.cloud.aiplatform.v1.ToolCallValidInput(); + if (object.metricSpec != null) { + if (typeof object.metricSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ToolCallValidInput.metricSpec: object expected"); + message.metricSpec = $root.google.cloud.aiplatform.v1.ToolCallValidSpec.fromObject(object.metricSpec); + } + if (object.instances) { + if (!Array.isArray(object.instances)) + throw TypeError(".google.cloud.aiplatform.v1.ToolCallValidInput.instances: array expected"); + message.instances = []; + for (var i = 0; i < object.instances.length; ++i) { + if (typeof object.instances[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ToolCallValidInput.instances: object expected"); + message.instances[i] = $root.google.cloud.aiplatform.v1.ToolCallValidInstance.fromObject(object.instances[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a ToolCallValidInput message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ToolCallValidInput + * @static + * @param {google.cloud.aiplatform.v1.ToolCallValidInput} message ToolCallValidInput + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ToolCallValidInput.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.instances = []; + if (options.defaults) + object.metricSpec = null; + if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) + object.metricSpec = $root.google.cloud.aiplatform.v1.ToolCallValidSpec.toObject(message.metricSpec, options); + if (message.instances && message.instances.length) { + object.instances = []; + for (var j = 0; j < message.instances.length; ++j) + object.instances[j] = $root.google.cloud.aiplatform.v1.ToolCallValidInstance.toObject(message.instances[j], options); + } + return object; + }; + + /** + * Converts this ToolCallValidInput to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ToolCallValidInput + * @instance + * @returns {Object.} JSON object + */ + ToolCallValidInput.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ToolCallValidInput + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ToolCallValidInput + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ToolCallValidInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ToolCallValidInput"; + }; + + return ToolCallValidInput; + })(); + + v1.ToolCallValidSpec = (function() { + + /** + * Properties of a ToolCallValidSpec. + * @memberof google.cloud.aiplatform.v1 + * @interface IToolCallValidSpec + */ + + /** + * Constructs a new ToolCallValidSpec. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ToolCallValidSpec. + * @implements IToolCallValidSpec + * @constructor + * @param {google.cloud.aiplatform.v1.IToolCallValidSpec=} [properties] Properties to set + */ + function ToolCallValidSpec(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new ToolCallValidSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ToolCallValidSpec + * @static + * @param {google.cloud.aiplatform.v1.IToolCallValidSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ToolCallValidSpec} ToolCallValidSpec instance + */ + ToolCallValidSpec.create = function create(properties) { + return new ToolCallValidSpec(properties); + }; + + /** + * Encodes the specified ToolCallValidSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.ToolCallValidSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ToolCallValidSpec + * @static + * @param {google.cloud.aiplatform.v1.IToolCallValidSpec} message ToolCallValidSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ToolCallValidSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified ToolCallValidSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ToolCallValidSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ToolCallValidSpec + * @static + * @param {google.cloud.aiplatform.v1.IToolCallValidSpec} message ToolCallValidSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ToolCallValidSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ToolCallValidSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ToolCallValidSpec + * @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.ToolCallValidSpec} ToolCallValidSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ToolCallValidSpec.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.ToolCallValidSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ToolCallValidSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ToolCallValidSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ToolCallValidSpec} ToolCallValidSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ToolCallValidSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ToolCallValidSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ToolCallValidSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ToolCallValidSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates a ToolCallValidSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ToolCallValidSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ToolCallValidSpec} ToolCallValidSpec + */ + ToolCallValidSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ToolCallValidSpec) + return object; + return new $root.google.cloud.aiplatform.v1.ToolCallValidSpec(); + }; + + /** + * Creates a plain object from a ToolCallValidSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ToolCallValidSpec + * @static + * @param {google.cloud.aiplatform.v1.ToolCallValidSpec} message ToolCallValidSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ToolCallValidSpec.toObject = function toObject() { + return {}; + }; + + /** + * Converts this ToolCallValidSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ToolCallValidSpec + * @instance + * @returns {Object.} JSON object + */ + ToolCallValidSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ToolCallValidSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ToolCallValidSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ToolCallValidSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ToolCallValidSpec"; + }; + + return ToolCallValidSpec; + })(); + + v1.ToolCallValidInstance = (function() { + + /** + * Properties of a ToolCallValidInstance. + * @memberof google.cloud.aiplatform.v1 + * @interface IToolCallValidInstance + * @property {string|null} [prediction] ToolCallValidInstance prediction + * @property {string|null} [reference] ToolCallValidInstance reference + */ + + /** + * Constructs a new ToolCallValidInstance. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ToolCallValidInstance. + * @implements IToolCallValidInstance + * @constructor + * @param {google.cloud.aiplatform.v1.IToolCallValidInstance=} [properties] Properties to set + */ + function ToolCallValidInstance(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]]; + } + + /** + * ToolCallValidInstance prediction. + * @member {string|null|undefined} prediction + * @memberof google.cloud.aiplatform.v1.ToolCallValidInstance + * @instance + */ + ToolCallValidInstance.prototype.prediction = null; + + /** + * ToolCallValidInstance reference. + * @member {string|null|undefined} reference + * @memberof google.cloud.aiplatform.v1.ToolCallValidInstance + * @instance + */ + ToolCallValidInstance.prototype.reference = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ToolCallValidInstance _prediction. + * @member {"prediction"|undefined} _prediction + * @memberof google.cloud.aiplatform.v1.ToolCallValidInstance + * @instance + */ + Object.defineProperty(ToolCallValidInstance.prototype, "_prediction", { + get: $util.oneOfGetter($oneOfFields = ["prediction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * ToolCallValidInstance _reference. + * @member {"reference"|undefined} _reference + * @memberof google.cloud.aiplatform.v1.ToolCallValidInstance + * @instance + */ + Object.defineProperty(ToolCallValidInstance.prototype, "_reference", { + get: $util.oneOfGetter($oneOfFields = ["reference"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ToolCallValidInstance instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ToolCallValidInstance + * @static + * @param {google.cloud.aiplatform.v1.IToolCallValidInstance=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ToolCallValidInstance} ToolCallValidInstance instance + */ + ToolCallValidInstance.create = function create(properties) { + return new ToolCallValidInstance(properties); + }; + + /** + * Encodes the specified ToolCallValidInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.ToolCallValidInstance.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ToolCallValidInstance + * @static + * @param {google.cloud.aiplatform.v1.IToolCallValidInstance} message ToolCallValidInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ToolCallValidInstance.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.prediction != null && Object.hasOwnProperty.call(message, "prediction")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.prediction); + if (message.reference != null && Object.hasOwnProperty.call(message, "reference")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.reference); + return writer; + }; + + /** + * Encodes the specified ToolCallValidInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ToolCallValidInstance.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ToolCallValidInstance + * @static + * @param {google.cloud.aiplatform.v1.IToolCallValidInstance} message ToolCallValidInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ToolCallValidInstance.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ToolCallValidInstance message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ToolCallValidInstance + * @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.ToolCallValidInstance} ToolCallValidInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ToolCallValidInstance.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.ToolCallValidInstance(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.prediction = reader.string(); + break; + } + case 2: { + message.reference = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ToolCallValidInstance message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ToolCallValidInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ToolCallValidInstance} ToolCallValidInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ToolCallValidInstance.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ToolCallValidInstance message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ToolCallValidInstance + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ToolCallValidInstance.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.prediction != null && message.hasOwnProperty("prediction")) { + properties._prediction = 1; + if (!$util.isString(message.prediction)) + return "prediction: string expected"; + } + if (message.reference != null && message.hasOwnProperty("reference")) { + properties._reference = 1; + if (!$util.isString(message.reference)) + return "reference: string expected"; + } + return null; + }; + + /** + * Creates a ToolCallValidInstance message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ToolCallValidInstance + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ToolCallValidInstance} ToolCallValidInstance + */ + ToolCallValidInstance.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ToolCallValidInstance) + return object; + var message = new $root.google.cloud.aiplatform.v1.ToolCallValidInstance(); + if (object.prediction != null) + message.prediction = String(object.prediction); + if (object.reference != null) + message.reference = String(object.reference); + return message; + }; + + /** + * Creates a plain object from a ToolCallValidInstance message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ToolCallValidInstance + * @static + * @param {google.cloud.aiplatform.v1.ToolCallValidInstance} message ToolCallValidInstance + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ToolCallValidInstance.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.prediction != null && message.hasOwnProperty("prediction")) { + object.prediction = message.prediction; + if (options.oneofs) + object._prediction = "prediction"; + } + if (message.reference != null && message.hasOwnProperty("reference")) { + object.reference = message.reference; + if (options.oneofs) + object._reference = "reference"; + } + return object; + }; + + /** + * Converts this ToolCallValidInstance to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ToolCallValidInstance + * @instance + * @returns {Object.} JSON object + */ + ToolCallValidInstance.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ToolCallValidInstance + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ToolCallValidInstance + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ToolCallValidInstance.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ToolCallValidInstance"; + }; + + return ToolCallValidInstance; + })(); + + v1.ToolCallValidResults = (function() { + + /** + * Properties of a ToolCallValidResults. + * @memberof google.cloud.aiplatform.v1 + * @interface IToolCallValidResults + * @property {Array.|null} [toolCallValidMetricValues] ToolCallValidResults toolCallValidMetricValues + */ + + /** + * Constructs a new ToolCallValidResults. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ToolCallValidResults. + * @implements IToolCallValidResults + * @constructor + * @param {google.cloud.aiplatform.v1.IToolCallValidResults=} [properties] Properties to set + */ + function ToolCallValidResults(properties) { + this.toolCallValidMetricValues = []; + 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]]; + } + + /** + * ToolCallValidResults toolCallValidMetricValues. + * @member {Array.} toolCallValidMetricValues + * @memberof google.cloud.aiplatform.v1.ToolCallValidResults + * @instance + */ + ToolCallValidResults.prototype.toolCallValidMetricValues = $util.emptyArray; + + /** + * Creates a new ToolCallValidResults instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ToolCallValidResults + * @static + * @param {google.cloud.aiplatform.v1.IToolCallValidResults=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ToolCallValidResults} ToolCallValidResults instance + */ + ToolCallValidResults.create = function create(properties) { + return new ToolCallValidResults(properties); + }; + + /** + * Encodes the specified ToolCallValidResults message. Does not implicitly {@link google.cloud.aiplatform.v1.ToolCallValidResults.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ToolCallValidResults + * @static + * @param {google.cloud.aiplatform.v1.IToolCallValidResults} message ToolCallValidResults message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ToolCallValidResults.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.toolCallValidMetricValues != null && message.toolCallValidMetricValues.length) + for (var i = 0; i < message.toolCallValidMetricValues.length; ++i) + $root.google.cloud.aiplatform.v1.ToolCallValidMetricValue.encode(message.toolCallValidMetricValues[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ToolCallValidResults message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ToolCallValidResults.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ToolCallValidResults + * @static + * @param {google.cloud.aiplatform.v1.IToolCallValidResults} message ToolCallValidResults message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ToolCallValidResults.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ToolCallValidResults message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ToolCallValidResults + * @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.ToolCallValidResults} ToolCallValidResults + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ToolCallValidResults.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.ToolCallValidResults(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.toolCallValidMetricValues && message.toolCallValidMetricValues.length)) + message.toolCallValidMetricValues = []; + message.toolCallValidMetricValues.push($root.google.cloud.aiplatform.v1.ToolCallValidMetricValue.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ToolCallValidResults message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ToolCallValidResults + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ToolCallValidResults} ToolCallValidResults + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ToolCallValidResults.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ToolCallValidResults message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ToolCallValidResults + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ToolCallValidResults.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.toolCallValidMetricValues != null && message.hasOwnProperty("toolCallValidMetricValues")) { + if (!Array.isArray(message.toolCallValidMetricValues)) + return "toolCallValidMetricValues: array expected"; + for (var i = 0; i < message.toolCallValidMetricValues.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.ToolCallValidMetricValue.verify(message.toolCallValidMetricValues[i]); + if (error) + return "toolCallValidMetricValues." + error; + } + } + return null; + }; + + /** + * Creates a ToolCallValidResults message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ToolCallValidResults + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ToolCallValidResults} ToolCallValidResults + */ + ToolCallValidResults.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ToolCallValidResults) + return object; + var message = new $root.google.cloud.aiplatform.v1.ToolCallValidResults(); + if (object.toolCallValidMetricValues) { + if (!Array.isArray(object.toolCallValidMetricValues)) + throw TypeError(".google.cloud.aiplatform.v1.ToolCallValidResults.toolCallValidMetricValues: array expected"); + message.toolCallValidMetricValues = []; + for (var i = 0; i < object.toolCallValidMetricValues.length; ++i) { + if (typeof object.toolCallValidMetricValues[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ToolCallValidResults.toolCallValidMetricValues: object expected"); + message.toolCallValidMetricValues[i] = $root.google.cloud.aiplatform.v1.ToolCallValidMetricValue.fromObject(object.toolCallValidMetricValues[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a ToolCallValidResults message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ToolCallValidResults + * @static + * @param {google.cloud.aiplatform.v1.ToolCallValidResults} message ToolCallValidResults + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ToolCallValidResults.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.toolCallValidMetricValues = []; + if (message.toolCallValidMetricValues && message.toolCallValidMetricValues.length) { + object.toolCallValidMetricValues = []; + for (var j = 0; j < message.toolCallValidMetricValues.length; ++j) + object.toolCallValidMetricValues[j] = $root.google.cloud.aiplatform.v1.ToolCallValidMetricValue.toObject(message.toolCallValidMetricValues[j], options); + } + return object; + }; + + /** + * Converts this ToolCallValidResults to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ToolCallValidResults + * @instance + * @returns {Object.} JSON object + */ + ToolCallValidResults.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ToolCallValidResults + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ToolCallValidResults + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ToolCallValidResults.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ToolCallValidResults"; + }; + + return ToolCallValidResults; + })(); + + v1.ToolCallValidMetricValue = (function() { + + /** + * Properties of a ToolCallValidMetricValue. + * @memberof google.cloud.aiplatform.v1 + * @interface IToolCallValidMetricValue + * @property {number|null} [score] ToolCallValidMetricValue score + */ + + /** + * Constructs a new ToolCallValidMetricValue. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ToolCallValidMetricValue. + * @implements IToolCallValidMetricValue + * @constructor + * @param {google.cloud.aiplatform.v1.IToolCallValidMetricValue=} [properties] Properties to set + */ + function ToolCallValidMetricValue(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]]; + } + + /** + * ToolCallValidMetricValue score. + * @member {number|null|undefined} score + * @memberof google.cloud.aiplatform.v1.ToolCallValidMetricValue + * @instance + */ + ToolCallValidMetricValue.prototype.score = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ToolCallValidMetricValue _score. + * @member {"score"|undefined} _score + * @memberof google.cloud.aiplatform.v1.ToolCallValidMetricValue + * @instance + */ + Object.defineProperty(ToolCallValidMetricValue.prototype, "_score", { + get: $util.oneOfGetter($oneOfFields = ["score"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ToolCallValidMetricValue instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ToolCallValidMetricValue + * @static + * @param {google.cloud.aiplatform.v1.IToolCallValidMetricValue=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ToolCallValidMetricValue} ToolCallValidMetricValue instance + */ + ToolCallValidMetricValue.create = function create(properties) { + return new ToolCallValidMetricValue(properties); + }; + + /** + * Encodes the specified ToolCallValidMetricValue message. Does not implicitly {@link google.cloud.aiplatform.v1.ToolCallValidMetricValue.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ToolCallValidMetricValue + * @static + * @param {google.cloud.aiplatform.v1.IToolCallValidMetricValue} message ToolCallValidMetricValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ToolCallValidMetricValue.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.score != null && Object.hasOwnProperty.call(message, "score")) + writer.uint32(/* id 1, wireType 5 =*/13).float(message.score); + return writer; + }; + + /** + * Encodes the specified ToolCallValidMetricValue message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ToolCallValidMetricValue.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ToolCallValidMetricValue + * @static + * @param {google.cloud.aiplatform.v1.IToolCallValidMetricValue} message ToolCallValidMetricValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ToolCallValidMetricValue.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ToolCallValidMetricValue message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ToolCallValidMetricValue + * @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.ToolCallValidMetricValue} ToolCallValidMetricValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ToolCallValidMetricValue.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.ToolCallValidMetricValue(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.score = reader.float(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ToolCallValidMetricValue message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ToolCallValidMetricValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ToolCallValidMetricValue} ToolCallValidMetricValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ToolCallValidMetricValue.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ToolCallValidMetricValue message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ToolCallValidMetricValue + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ToolCallValidMetricValue.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.score != null && message.hasOwnProperty("score")) { + properties._score = 1; + if (typeof message.score !== "number") + return "score: number expected"; + } + return null; + }; + + /** + * Creates a ToolCallValidMetricValue message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ToolCallValidMetricValue + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ToolCallValidMetricValue} ToolCallValidMetricValue + */ + ToolCallValidMetricValue.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ToolCallValidMetricValue) + return object; + var message = new $root.google.cloud.aiplatform.v1.ToolCallValidMetricValue(); + if (object.score != null) + message.score = Number(object.score); + return message; + }; + + /** + * Creates a plain object from a ToolCallValidMetricValue message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ToolCallValidMetricValue + * @static + * @param {google.cloud.aiplatform.v1.ToolCallValidMetricValue} message ToolCallValidMetricValue + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ToolCallValidMetricValue.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.score != null && message.hasOwnProperty("score")) { + object.score = options.json && !isFinite(message.score) ? String(message.score) : message.score; + if (options.oneofs) + object._score = "score"; + } + return object; + }; + + /** + * Converts this ToolCallValidMetricValue to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ToolCallValidMetricValue + * @instance + * @returns {Object.} JSON object + */ + ToolCallValidMetricValue.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ToolCallValidMetricValue + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ToolCallValidMetricValue + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ToolCallValidMetricValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ToolCallValidMetricValue"; + }; + + return ToolCallValidMetricValue; + })(); + + v1.ToolNameMatchInput = (function() { + + /** + * Properties of a ToolNameMatchInput. + * @memberof google.cloud.aiplatform.v1 + * @interface IToolNameMatchInput + * @property {google.cloud.aiplatform.v1.IToolNameMatchSpec|null} [metricSpec] ToolNameMatchInput metricSpec + * @property {Array.|null} [instances] ToolNameMatchInput instances + */ + + /** + * Constructs a new ToolNameMatchInput. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ToolNameMatchInput. + * @implements IToolNameMatchInput + * @constructor + * @param {google.cloud.aiplatform.v1.IToolNameMatchInput=} [properties] Properties to set + */ + function ToolNameMatchInput(properties) { + this.instances = []; + 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]]; + } + + /** + * ToolNameMatchInput metricSpec. + * @member {google.cloud.aiplatform.v1.IToolNameMatchSpec|null|undefined} metricSpec + * @memberof google.cloud.aiplatform.v1.ToolNameMatchInput + * @instance + */ + ToolNameMatchInput.prototype.metricSpec = null; + + /** + * ToolNameMatchInput instances. + * @member {Array.} instances + * @memberof google.cloud.aiplatform.v1.ToolNameMatchInput + * @instance + */ + ToolNameMatchInput.prototype.instances = $util.emptyArray; + + /** + * Creates a new ToolNameMatchInput instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ToolNameMatchInput + * @static + * @param {google.cloud.aiplatform.v1.IToolNameMatchInput=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ToolNameMatchInput} ToolNameMatchInput instance + */ + ToolNameMatchInput.create = function create(properties) { + return new ToolNameMatchInput(properties); + }; + + /** + * Encodes the specified ToolNameMatchInput message. Does not implicitly {@link google.cloud.aiplatform.v1.ToolNameMatchInput.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ToolNameMatchInput + * @static + * @param {google.cloud.aiplatform.v1.IToolNameMatchInput} message ToolNameMatchInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ToolNameMatchInput.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.metricSpec != null && Object.hasOwnProperty.call(message, "metricSpec")) + $root.google.cloud.aiplatform.v1.ToolNameMatchSpec.encode(message.metricSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.instances != null && message.instances.length) + for (var i = 0; i < message.instances.length; ++i) + $root.google.cloud.aiplatform.v1.ToolNameMatchInstance.encode(message.instances[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ToolNameMatchInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ToolNameMatchInput.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ToolNameMatchInput + * @static + * @param {google.cloud.aiplatform.v1.IToolNameMatchInput} message ToolNameMatchInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ToolNameMatchInput.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ToolNameMatchInput message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ToolNameMatchInput + * @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.ToolNameMatchInput} ToolNameMatchInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ToolNameMatchInput.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.ToolNameMatchInput(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.metricSpec = $root.google.cloud.aiplatform.v1.ToolNameMatchSpec.decode(reader, reader.uint32()); + break; + } + case 2: { + if (!(message.instances && message.instances.length)) + message.instances = []; + message.instances.push($root.google.cloud.aiplatform.v1.ToolNameMatchInstance.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ToolNameMatchInput message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ToolNameMatchInput + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ToolNameMatchInput} ToolNameMatchInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ToolNameMatchInput.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ToolNameMatchInput message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ToolNameMatchInput + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ToolNameMatchInput.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) { + var error = $root.google.cloud.aiplatform.v1.ToolNameMatchSpec.verify(message.metricSpec); + if (error) + return "metricSpec." + error; + } + if (message.instances != null && message.hasOwnProperty("instances")) { + if (!Array.isArray(message.instances)) + return "instances: array expected"; + for (var i = 0; i < message.instances.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.ToolNameMatchInstance.verify(message.instances[i]); + if (error) + return "instances." + error; + } + } + return null; + }; + + /** + * Creates a ToolNameMatchInput message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ToolNameMatchInput + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ToolNameMatchInput} ToolNameMatchInput + */ + ToolNameMatchInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ToolNameMatchInput) + return object; + var message = new $root.google.cloud.aiplatform.v1.ToolNameMatchInput(); + if (object.metricSpec != null) { + if (typeof object.metricSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ToolNameMatchInput.metricSpec: object expected"); + message.metricSpec = $root.google.cloud.aiplatform.v1.ToolNameMatchSpec.fromObject(object.metricSpec); + } + if (object.instances) { + if (!Array.isArray(object.instances)) + throw TypeError(".google.cloud.aiplatform.v1.ToolNameMatchInput.instances: array expected"); + message.instances = []; + for (var i = 0; i < object.instances.length; ++i) { + if (typeof object.instances[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ToolNameMatchInput.instances: object expected"); + message.instances[i] = $root.google.cloud.aiplatform.v1.ToolNameMatchInstance.fromObject(object.instances[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a ToolNameMatchInput message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ToolNameMatchInput + * @static + * @param {google.cloud.aiplatform.v1.ToolNameMatchInput} message ToolNameMatchInput + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ToolNameMatchInput.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.instances = []; + if (options.defaults) + object.metricSpec = null; + if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) + object.metricSpec = $root.google.cloud.aiplatform.v1.ToolNameMatchSpec.toObject(message.metricSpec, options); + if (message.instances && message.instances.length) { + object.instances = []; + for (var j = 0; j < message.instances.length; ++j) + object.instances[j] = $root.google.cloud.aiplatform.v1.ToolNameMatchInstance.toObject(message.instances[j], options); + } + return object; + }; + + /** + * Converts this ToolNameMatchInput to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ToolNameMatchInput + * @instance + * @returns {Object.} JSON object + */ + ToolNameMatchInput.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ToolNameMatchInput + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ToolNameMatchInput + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ToolNameMatchInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ToolNameMatchInput"; + }; + + return ToolNameMatchInput; + })(); + + v1.ToolNameMatchSpec = (function() { + + /** + * Properties of a ToolNameMatchSpec. + * @memberof google.cloud.aiplatform.v1 + * @interface IToolNameMatchSpec + */ + + /** + * Constructs a new ToolNameMatchSpec. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ToolNameMatchSpec. + * @implements IToolNameMatchSpec + * @constructor + * @param {google.cloud.aiplatform.v1.IToolNameMatchSpec=} [properties] Properties to set + */ + function ToolNameMatchSpec(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new ToolNameMatchSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ToolNameMatchSpec + * @static + * @param {google.cloud.aiplatform.v1.IToolNameMatchSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ToolNameMatchSpec} ToolNameMatchSpec instance + */ + ToolNameMatchSpec.create = function create(properties) { + return new ToolNameMatchSpec(properties); + }; + + /** + * Encodes the specified ToolNameMatchSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.ToolNameMatchSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ToolNameMatchSpec + * @static + * @param {google.cloud.aiplatform.v1.IToolNameMatchSpec} message ToolNameMatchSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ToolNameMatchSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified ToolNameMatchSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ToolNameMatchSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ToolNameMatchSpec + * @static + * @param {google.cloud.aiplatform.v1.IToolNameMatchSpec} message ToolNameMatchSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ToolNameMatchSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ToolNameMatchSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ToolNameMatchSpec + * @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.ToolNameMatchSpec} ToolNameMatchSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ToolNameMatchSpec.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.ToolNameMatchSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ToolNameMatchSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ToolNameMatchSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ToolNameMatchSpec} ToolNameMatchSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ToolNameMatchSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ToolNameMatchSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ToolNameMatchSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ToolNameMatchSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates a ToolNameMatchSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ToolNameMatchSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ToolNameMatchSpec} ToolNameMatchSpec + */ + ToolNameMatchSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ToolNameMatchSpec) + return object; + return new $root.google.cloud.aiplatform.v1.ToolNameMatchSpec(); + }; + + /** + * Creates a plain object from a ToolNameMatchSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ToolNameMatchSpec + * @static + * @param {google.cloud.aiplatform.v1.ToolNameMatchSpec} message ToolNameMatchSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ToolNameMatchSpec.toObject = function toObject() { + return {}; + }; + + /** + * Converts this ToolNameMatchSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ToolNameMatchSpec + * @instance + * @returns {Object.} JSON object + */ + ToolNameMatchSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ToolNameMatchSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ToolNameMatchSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ToolNameMatchSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ToolNameMatchSpec"; + }; + + return ToolNameMatchSpec; + })(); + + v1.ToolNameMatchInstance = (function() { + + /** + * Properties of a ToolNameMatchInstance. + * @memberof google.cloud.aiplatform.v1 + * @interface IToolNameMatchInstance + * @property {string|null} [prediction] ToolNameMatchInstance prediction + * @property {string|null} [reference] ToolNameMatchInstance reference + */ + + /** + * Constructs a new ToolNameMatchInstance. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ToolNameMatchInstance. + * @implements IToolNameMatchInstance + * @constructor + * @param {google.cloud.aiplatform.v1.IToolNameMatchInstance=} [properties] Properties to set + */ + function ToolNameMatchInstance(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]]; + } + + /** + * ToolNameMatchInstance prediction. + * @member {string|null|undefined} prediction + * @memberof google.cloud.aiplatform.v1.ToolNameMatchInstance + * @instance + */ + ToolNameMatchInstance.prototype.prediction = null; + + /** + * ToolNameMatchInstance reference. + * @member {string|null|undefined} reference + * @memberof google.cloud.aiplatform.v1.ToolNameMatchInstance + * @instance + */ + ToolNameMatchInstance.prototype.reference = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ToolNameMatchInstance _prediction. + * @member {"prediction"|undefined} _prediction + * @memberof google.cloud.aiplatform.v1.ToolNameMatchInstance + * @instance + */ + Object.defineProperty(ToolNameMatchInstance.prototype, "_prediction", { + get: $util.oneOfGetter($oneOfFields = ["prediction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * ToolNameMatchInstance _reference. + * @member {"reference"|undefined} _reference + * @memberof google.cloud.aiplatform.v1.ToolNameMatchInstance + * @instance + */ + Object.defineProperty(ToolNameMatchInstance.prototype, "_reference", { + get: $util.oneOfGetter($oneOfFields = ["reference"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ToolNameMatchInstance instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ToolNameMatchInstance + * @static + * @param {google.cloud.aiplatform.v1.IToolNameMatchInstance=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ToolNameMatchInstance} ToolNameMatchInstance instance + */ + ToolNameMatchInstance.create = function create(properties) { + return new ToolNameMatchInstance(properties); + }; + + /** + * Encodes the specified ToolNameMatchInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.ToolNameMatchInstance.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ToolNameMatchInstance + * @static + * @param {google.cloud.aiplatform.v1.IToolNameMatchInstance} message ToolNameMatchInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ToolNameMatchInstance.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.prediction != null && Object.hasOwnProperty.call(message, "prediction")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.prediction); + if (message.reference != null && Object.hasOwnProperty.call(message, "reference")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.reference); + return writer; + }; + + /** + * Encodes the specified ToolNameMatchInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ToolNameMatchInstance.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ToolNameMatchInstance + * @static + * @param {google.cloud.aiplatform.v1.IToolNameMatchInstance} message ToolNameMatchInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ToolNameMatchInstance.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ToolNameMatchInstance message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ToolNameMatchInstance + * @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.ToolNameMatchInstance} ToolNameMatchInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ToolNameMatchInstance.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.ToolNameMatchInstance(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.prediction = reader.string(); + break; + } + case 2: { + message.reference = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ToolNameMatchInstance message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ToolNameMatchInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ToolNameMatchInstance} ToolNameMatchInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ToolNameMatchInstance.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ToolNameMatchInstance message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ToolNameMatchInstance + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ToolNameMatchInstance.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.prediction != null && message.hasOwnProperty("prediction")) { + properties._prediction = 1; + if (!$util.isString(message.prediction)) + return "prediction: string expected"; + } + if (message.reference != null && message.hasOwnProperty("reference")) { + properties._reference = 1; + if (!$util.isString(message.reference)) + return "reference: string expected"; + } + return null; + }; + + /** + * Creates a ToolNameMatchInstance message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ToolNameMatchInstance + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ToolNameMatchInstance} ToolNameMatchInstance + */ + ToolNameMatchInstance.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ToolNameMatchInstance) + return object; + var message = new $root.google.cloud.aiplatform.v1.ToolNameMatchInstance(); + if (object.prediction != null) + message.prediction = String(object.prediction); + if (object.reference != null) + message.reference = String(object.reference); + return message; + }; + + /** + * Creates a plain object from a ToolNameMatchInstance message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ToolNameMatchInstance + * @static + * @param {google.cloud.aiplatform.v1.ToolNameMatchInstance} message ToolNameMatchInstance + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ToolNameMatchInstance.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.prediction != null && message.hasOwnProperty("prediction")) { + object.prediction = message.prediction; + if (options.oneofs) + object._prediction = "prediction"; + } + if (message.reference != null && message.hasOwnProperty("reference")) { + object.reference = message.reference; + if (options.oneofs) + object._reference = "reference"; + } + return object; + }; + + /** + * Converts this ToolNameMatchInstance to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ToolNameMatchInstance + * @instance + * @returns {Object.} JSON object + */ + ToolNameMatchInstance.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ToolNameMatchInstance + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ToolNameMatchInstance + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ToolNameMatchInstance.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ToolNameMatchInstance"; + }; + + return ToolNameMatchInstance; + })(); + + v1.ToolNameMatchResults = (function() { + + /** + * Properties of a ToolNameMatchResults. + * @memberof google.cloud.aiplatform.v1 + * @interface IToolNameMatchResults + * @property {Array.|null} [toolNameMatchMetricValues] ToolNameMatchResults toolNameMatchMetricValues + */ + + /** + * Constructs a new ToolNameMatchResults. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ToolNameMatchResults. + * @implements IToolNameMatchResults + * @constructor + * @param {google.cloud.aiplatform.v1.IToolNameMatchResults=} [properties] Properties to set + */ + function ToolNameMatchResults(properties) { + this.toolNameMatchMetricValues = []; + 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]]; + } + + /** + * ToolNameMatchResults toolNameMatchMetricValues. + * @member {Array.} toolNameMatchMetricValues + * @memberof google.cloud.aiplatform.v1.ToolNameMatchResults + * @instance + */ + ToolNameMatchResults.prototype.toolNameMatchMetricValues = $util.emptyArray; + + /** + * Creates a new ToolNameMatchResults instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ToolNameMatchResults + * @static + * @param {google.cloud.aiplatform.v1.IToolNameMatchResults=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ToolNameMatchResults} ToolNameMatchResults instance + */ + ToolNameMatchResults.create = function create(properties) { + return new ToolNameMatchResults(properties); + }; + + /** + * Encodes the specified ToolNameMatchResults message. Does not implicitly {@link google.cloud.aiplatform.v1.ToolNameMatchResults.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ToolNameMatchResults + * @static + * @param {google.cloud.aiplatform.v1.IToolNameMatchResults} message ToolNameMatchResults message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ToolNameMatchResults.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.toolNameMatchMetricValues != null && message.toolNameMatchMetricValues.length) + for (var i = 0; i < message.toolNameMatchMetricValues.length; ++i) + $root.google.cloud.aiplatform.v1.ToolNameMatchMetricValue.encode(message.toolNameMatchMetricValues[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ToolNameMatchResults message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ToolNameMatchResults.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ToolNameMatchResults + * @static + * @param {google.cloud.aiplatform.v1.IToolNameMatchResults} message ToolNameMatchResults message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ToolNameMatchResults.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ToolNameMatchResults message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ToolNameMatchResults + * @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.ToolNameMatchResults} ToolNameMatchResults + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ToolNameMatchResults.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.ToolNameMatchResults(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.toolNameMatchMetricValues && message.toolNameMatchMetricValues.length)) + message.toolNameMatchMetricValues = []; + message.toolNameMatchMetricValues.push($root.google.cloud.aiplatform.v1.ToolNameMatchMetricValue.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ToolNameMatchResults message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ToolNameMatchResults + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ToolNameMatchResults} ToolNameMatchResults + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ToolNameMatchResults.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ToolNameMatchResults message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ToolNameMatchResults + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ToolNameMatchResults.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.toolNameMatchMetricValues != null && message.hasOwnProperty("toolNameMatchMetricValues")) { + if (!Array.isArray(message.toolNameMatchMetricValues)) + return "toolNameMatchMetricValues: array expected"; + for (var i = 0; i < message.toolNameMatchMetricValues.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.ToolNameMatchMetricValue.verify(message.toolNameMatchMetricValues[i]); + if (error) + return "toolNameMatchMetricValues." + error; + } + } + return null; + }; + + /** + * Creates a ToolNameMatchResults message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ToolNameMatchResults + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ToolNameMatchResults} ToolNameMatchResults + */ + ToolNameMatchResults.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ToolNameMatchResults) + return object; + var message = new $root.google.cloud.aiplatform.v1.ToolNameMatchResults(); + if (object.toolNameMatchMetricValues) { + if (!Array.isArray(object.toolNameMatchMetricValues)) + throw TypeError(".google.cloud.aiplatform.v1.ToolNameMatchResults.toolNameMatchMetricValues: array expected"); + message.toolNameMatchMetricValues = []; + for (var i = 0; i < object.toolNameMatchMetricValues.length; ++i) { + if (typeof object.toolNameMatchMetricValues[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ToolNameMatchResults.toolNameMatchMetricValues: object expected"); + message.toolNameMatchMetricValues[i] = $root.google.cloud.aiplatform.v1.ToolNameMatchMetricValue.fromObject(object.toolNameMatchMetricValues[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a ToolNameMatchResults message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ToolNameMatchResults + * @static + * @param {google.cloud.aiplatform.v1.ToolNameMatchResults} message ToolNameMatchResults + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ToolNameMatchResults.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.toolNameMatchMetricValues = []; + if (message.toolNameMatchMetricValues && message.toolNameMatchMetricValues.length) { + object.toolNameMatchMetricValues = []; + for (var j = 0; j < message.toolNameMatchMetricValues.length; ++j) + object.toolNameMatchMetricValues[j] = $root.google.cloud.aiplatform.v1.ToolNameMatchMetricValue.toObject(message.toolNameMatchMetricValues[j], options); + } + return object; + }; + + /** + * Converts this ToolNameMatchResults to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ToolNameMatchResults + * @instance + * @returns {Object.} JSON object + */ + ToolNameMatchResults.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ToolNameMatchResults + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ToolNameMatchResults + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ToolNameMatchResults.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ToolNameMatchResults"; + }; + + return ToolNameMatchResults; + })(); + + v1.ToolNameMatchMetricValue = (function() { + + /** + * Properties of a ToolNameMatchMetricValue. + * @memberof google.cloud.aiplatform.v1 + * @interface IToolNameMatchMetricValue + * @property {number|null} [score] ToolNameMatchMetricValue score + */ + + /** + * Constructs a new ToolNameMatchMetricValue. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ToolNameMatchMetricValue. + * @implements IToolNameMatchMetricValue + * @constructor + * @param {google.cloud.aiplatform.v1.IToolNameMatchMetricValue=} [properties] Properties to set + */ + function ToolNameMatchMetricValue(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]]; + } + + /** + * ToolNameMatchMetricValue score. + * @member {number|null|undefined} score + * @memberof google.cloud.aiplatform.v1.ToolNameMatchMetricValue + * @instance + */ + ToolNameMatchMetricValue.prototype.score = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ToolNameMatchMetricValue _score. + * @member {"score"|undefined} _score + * @memberof google.cloud.aiplatform.v1.ToolNameMatchMetricValue + * @instance + */ + Object.defineProperty(ToolNameMatchMetricValue.prototype, "_score", { + get: $util.oneOfGetter($oneOfFields = ["score"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ToolNameMatchMetricValue instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ToolNameMatchMetricValue + * @static + * @param {google.cloud.aiplatform.v1.IToolNameMatchMetricValue=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ToolNameMatchMetricValue} ToolNameMatchMetricValue instance + */ + ToolNameMatchMetricValue.create = function create(properties) { + return new ToolNameMatchMetricValue(properties); + }; + + /** + * Encodes the specified ToolNameMatchMetricValue message. Does not implicitly {@link google.cloud.aiplatform.v1.ToolNameMatchMetricValue.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ToolNameMatchMetricValue + * @static + * @param {google.cloud.aiplatform.v1.IToolNameMatchMetricValue} message ToolNameMatchMetricValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ToolNameMatchMetricValue.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.score != null && Object.hasOwnProperty.call(message, "score")) + writer.uint32(/* id 1, wireType 5 =*/13).float(message.score); + return writer; + }; + + /** + * Encodes the specified ToolNameMatchMetricValue message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ToolNameMatchMetricValue.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ToolNameMatchMetricValue + * @static + * @param {google.cloud.aiplatform.v1.IToolNameMatchMetricValue} message ToolNameMatchMetricValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ToolNameMatchMetricValue.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ToolNameMatchMetricValue message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ToolNameMatchMetricValue + * @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.ToolNameMatchMetricValue} ToolNameMatchMetricValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ToolNameMatchMetricValue.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.ToolNameMatchMetricValue(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.score = reader.float(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ToolNameMatchMetricValue message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ToolNameMatchMetricValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ToolNameMatchMetricValue} ToolNameMatchMetricValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ToolNameMatchMetricValue.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ToolNameMatchMetricValue message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ToolNameMatchMetricValue + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ToolNameMatchMetricValue.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.score != null && message.hasOwnProperty("score")) { + properties._score = 1; + if (typeof message.score !== "number") + return "score: number expected"; + } + return null; + }; + + /** + * Creates a ToolNameMatchMetricValue message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ToolNameMatchMetricValue + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ToolNameMatchMetricValue} ToolNameMatchMetricValue + */ + ToolNameMatchMetricValue.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ToolNameMatchMetricValue) + return object; + var message = new $root.google.cloud.aiplatform.v1.ToolNameMatchMetricValue(); + if (object.score != null) + message.score = Number(object.score); + return message; + }; + + /** + * Creates a plain object from a ToolNameMatchMetricValue message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ToolNameMatchMetricValue + * @static + * @param {google.cloud.aiplatform.v1.ToolNameMatchMetricValue} message ToolNameMatchMetricValue + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ToolNameMatchMetricValue.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.score != null && message.hasOwnProperty("score")) { + object.score = options.json && !isFinite(message.score) ? String(message.score) : message.score; + if (options.oneofs) + object._score = "score"; + } + return object; + }; + + /** + * Converts this ToolNameMatchMetricValue to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ToolNameMatchMetricValue + * @instance + * @returns {Object.} JSON object + */ + ToolNameMatchMetricValue.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ToolNameMatchMetricValue + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ToolNameMatchMetricValue + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ToolNameMatchMetricValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ToolNameMatchMetricValue"; + }; + + return ToolNameMatchMetricValue; + })(); + + v1.ToolParameterKeyMatchInput = (function() { + + /** + * Properties of a ToolParameterKeyMatchInput. + * @memberof google.cloud.aiplatform.v1 + * @interface IToolParameterKeyMatchInput + * @property {google.cloud.aiplatform.v1.IToolParameterKeyMatchSpec|null} [metricSpec] ToolParameterKeyMatchInput metricSpec + * @property {Array.|null} [instances] ToolParameterKeyMatchInput instances + */ + + /** + * Constructs a new ToolParameterKeyMatchInput. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ToolParameterKeyMatchInput. + * @implements IToolParameterKeyMatchInput + * @constructor + * @param {google.cloud.aiplatform.v1.IToolParameterKeyMatchInput=} [properties] Properties to set + */ + function ToolParameterKeyMatchInput(properties) { + this.instances = []; + 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]]; + } + + /** + * ToolParameterKeyMatchInput metricSpec. + * @member {google.cloud.aiplatform.v1.IToolParameterKeyMatchSpec|null|undefined} metricSpec + * @memberof google.cloud.aiplatform.v1.ToolParameterKeyMatchInput + * @instance + */ + ToolParameterKeyMatchInput.prototype.metricSpec = null; + + /** + * ToolParameterKeyMatchInput instances. + * @member {Array.} instances + * @memberof google.cloud.aiplatform.v1.ToolParameterKeyMatchInput + * @instance + */ + ToolParameterKeyMatchInput.prototype.instances = $util.emptyArray; + + /** + * Creates a new ToolParameterKeyMatchInput instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ToolParameterKeyMatchInput + * @static + * @param {google.cloud.aiplatform.v1.IToolParameterKeyMatchInput=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ToolParameterKeyMatchInput} ToolParameterKeyMatchInput instance + */ + ToolParameterKeyMatchInput.create = function create(properties) { + return new ToolParameterKeyMatchInput(properties); + }; + + /** + * Encodes the specified ToolParameterKeyMatchInput message. Does not implicitly {@link google.cloud.aiplatform.v1.ToolParameterKeyMatchInput.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ToolParameterKeyMatchInput + * @static + * @param {google.cloud.aiplatform.v1.IToolParameterKeyMatchInput} message ToolParameterKeyMatchInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ToolParameterKeyMatchInput.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.metricSpec != null && Object.hasOwnProperty.call(message, "metricSpec")) + $root.google.cloud.aiplatform.v1.ToolParameterKeyMatchSpec.encode(message.metricSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.instances != null && message.instances.length) + for (var i = 0; i < message.instances.length; ++i) + $root.google.cloud.aiplatform.v1.ToolParameterKeyMatchInstance.encode(message.instances[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ToolParameterKeyMatchInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ToolParameterKeyMatchInput.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ToolParameterKeyMatchInput + * @static + * @param {google.cloud.aiplatform.v1.IToolParameterKeyMatchInput} message ToolParameterKeyMatchInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ToolParameterKeyMatchInput.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ToolParameterKeyMatchInput message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ToolParameterKeyMatchInput + * @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.ToolParameterKeyMatchInput} ToolParameterKeyMatchInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ToolParameterKeyMatchInput.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.ToolParameterKeyMatchInput(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.metricSpec = $root.google.cloud.aiplatform.v1.ToolParameterKeyMatchSpec.decode(reader, reader.uint32()); + break; + } + case 2: { + if (!(message.instances && message.instances.length)) + message.instances = []; + message.instances.push($root.google.cloud.aiplatform.v1.ToolParameterKeyMatchInstance.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ToolParameterKeyMatchInput message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ToolParameterKeyMatchInput + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ToolParameterKeyMatchInput} ToolParameterKeyMatchInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ToolParameterKeyMatchInput.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ToolParameterKeyMatchInput message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ToolParameterKeyMatchInput + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ToolParameterKeyMatchInput.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) { + var error = $root.google.cloud.aiplatform.v1.ToolParameterKeyMatchSpec.verify(message.metricSpec); + if (error) + return "metricSpec." + error; + } + if (message.instances != null && message.hasOwnProperty("instances")) { + if (!Array.isArray(message.instances)) + return "instances: array expected"; + for (var i = 0; i < message.instances.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.ToolParameterKeyMatchInstance.verify(message.instances[i]); + if (error) + return "instances." + error; + } + } + return null; + }; + + /** + * Creates a ToolParameterKeyMatchInput message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ToolParameterKeyMatchInput + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ToolParameterKeyMatchInput} ToolParameterKeyMatchInput + */ + ToolParameterKeyMatchInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ToolParameterKeyMatchInput) + return object; + var message = new $root.google.cloud.aiplatform.v1.ToolParameterKeyMatchInput(); + if (object.metricSpec != null) { + if (typeof object.metricSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ToolParameterKeyMatchInput.metricSpec: object expected"); + message.metricSpec = $root.google.cloud.aiplatform.v1.ToolParameterKeyMatchSpec.fromObject(object.metricSpec); + } + if (object.instances) { + if (!Array.isArray(object.instances)) + throw TypeError(".google.cloud.aiplatform.v1.ToolParameterKeyMatchInput.instances: array expected"); + message.instances = []; + for (var i = 0; i < object.instances.length; ++i) { + if (typeof object.instances[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ToolParameterKeyMatchInput.instances: object expected"); + message.instances[i] = $root.google.cloud.aiplatform.v1.ToolParameterKeyMatchInstance.fromObject(object.instances[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a ToolParameterKeyMatchInput message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ToolParameterKeyMatchInput + * @static + * @param {google.cloud.aiplatform.v1.ToolParameterKeyMatchInput} message ToolParameterKeyMatchInput + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ToolParameterKeyMatchInput.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.instances = []; + if (options.defaults) + object.metricSpec = null; + if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) + object.metricSpec = $root.google.cloud.aiplatform.v1.ToolParameterKeyMatchSpec.toObject(message.metricSpec, options); + if (message.instances && message.instances.length) { + object.instances = []; + for (var j = 0; j < message.instances.length; ++j) + object.instances[j] = $root.google.cloud.aiplatform.v1.ToolParameterKeyMatchInstance.toObject(message.instances[j], options); + } + return object; + }; + + /** + * Converts this ToolParameterKeyMatchInput to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ToolParameterKeyMatchInput + * @instance + * @returns {Object.} JSON object + */ + ToolParameterKeyMatchInput.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ToolParameterKeyMatchInput + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ToolParameterKeyMatchInput + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ToolParameterKeyMatchInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ToolParameterKeyMatchInput"; + }; + + return ToolParameterKeyMatchInput; + })(); + + v1.ToolParameterKeyMatchSpec = (function() { + + /** + * Properties of a ToolParameterKeyMatchSpec. + * @memberof google.cloud.aiplatform.v1 + * @interface IToolParameterKeyMatchSpec + */ + + /** + * Constructs a new ToolParameterKeyMatchSpec. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ToolParameterKeyMatchSpec. + * @implements IToolParameterKeyMatchSpec + * @constructor + * @param {google.cloud.aiplatform.v1.IToolParameterKeyMatchSpec=} [properties] Properties to set + */ + function ToolParameterKeyMatchSpec(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new ToolParameterKeyMatchSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ToolParameterKeyMatchSpec + * @static + * @param {google.cloud.aiplatform.v1.IToolParameterKeyMatchSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ToolParameterKeyMatchSpec} ToolParameterKeyMatchSpec instance + */ + ToolParameterKeyMatchSpec.create = function create(properties) { + return new ToolParameterKeyMatchSpec(properties); + }; + + /** + * Encodes the specified ToolParameterKeyMatchSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.ToolParameterKeyMatchSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ToolParameterKeyMatchSpec + * @static + * @param {google.cloud.aiplatform.v1.IToolParameterKeyMatchSpec} message ToolParameterKeyMatchSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ToolParameterKeyMatchSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified ToolParameterKeyMatchSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ToolParameterKeyMatchSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ToolParameterKeyMatchSpec + * @static + * @param {google.cloud.aiplatform.v1.IToolParameterKeyMatchSpec} message ToolParameterKeyMatchSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ToolParameterKeyMatchSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ToolParameterKeyMatchSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ToolParameterKeyMatchSpec + * @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.ToolParameterKeyMatchSpec} ToolParameterKeyMatchSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ToolParameterKeyMatchSpec.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.ToolParameterKeyMatchSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ToolParameterKeyMatchSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ToolParameterKeyMatchSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ToolParameterKeyMatchSpec} ToolParameterKeyMatchSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ToolParameterKeyMatchSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ToolParameterKeyMatchSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ToolParameterKeyMatchSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ToolParameterKeyMatchSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates a ToolParameterKeyMatchSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ToolParameterKeyMatchSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ToolParameterKeyMatchSpec} ToolParameterKeyMatchSpec + */ + ToolParameterKeyMatchSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ToolParameterKeyMatchSpec) + return object; + return new $root.google.cloud.aiplatform.v1.ToolParameterKeyMatchSpec(); + }; + + /** + * Creates a plain object from a ToolParameterKeyMatchSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ToolParameterKeyMatchSpec + * @static + * @param {google.cloud.aiplatform.v1.ToolParameterKeyMatchSpec} message ToolParameterKeyMatchSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ToolParameterKeyMatchSpec.toObject = function toObject() { + return {}; + }; + + /** + * Converts this ToolParameterKeyMatchSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ToolParameterKeyMatchSpec + * @instance + * @returns {Object.} JSON object + */ + ToolParameterKeyMatchSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ToolParameterKeyMatchSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ToolParameterKeyMatchSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ToolParameterKeyMatchSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ToolParameterKeyMatchSpec"; + }; + + return ToolParameterKeyMatchSpec; + })(); + + v1.ToolParameterKeyMatchInstance = (function() { + + /** + * Properties of a ToolParameterKeyMatchInstance. + * @memberof google.cloud.aiplatform.v1 + * @interface IToolParameterKeyMatchInstance + * @property {string|null} [prediction] ToolParameterKeyMatchInstance prediction + * @property {string|null} [reference] ToolParameterKeyMatchInstance reference + */ + + /** + * Constructs a new ToolParameterKeyMatchInstance. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ToolParameterKeyMatchInstance. + * @implements IToolParameterKeyMatchInstance + * @constructor + * @param {google.cloud.aiplatform.v1.IToolParameterKeyMatchInstance=} [properties] Properties to set + */ + function ToolParameterKeyMatchInstance(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]]; + } + + /** + * ToolParameterKeyMatchInstance prediction. + * @member {string|null|undefined} prediction + * @memberof google.cloud.aiplatform.v1.ToolParameterKeyMatchInstance + * @instance + */ + ToolParameterKeyMatchInstance.prototype.prediction = null; + + /** + * ToolParameterKeyMatchInstance reference. + * @member {string|null|undefined} reference + * @memberof google.cloud.aiplatform.v1.ToolParameterKeyMatchInstance + * @instance + */ + ToolParameterKeyMatchInstance.prototype.reference = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ToolParameterKeyMatchInstance _prediction. + * @member {"prediction"|undefined} _prediction + * @memberof google.cloud.aiplatform.v1.ToolParameterKeyMatchInstance + * @instance + */ + Object.defineProperty(ToolParameterKeyMatchInstance.prototype, "_prediction", { + get: $util.oneOfGetter($oneOfFields = ["prediction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * ToolParameterKeyMatchInstance _reference. + * @member {"reference"|undefined} _reference + * @memberof google.cloud.aiplatform.v1.ToolParameterKeyMatchInstance + * @instance + */ + Object.defineProperty(ToolParameterKeyMatchInstance.prototype, "_reference", { + get: $util.oneOfGetter($oneOfFields = ["reference"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ToolParameterKeyMatchInstance instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ToolParameterKeyMatchInstance + * @static + * @param {google.cloud.aiplatform.v1.IToolParameterKeyMatchInstance=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ToolParameterKeyMatchInstance} ToolParameterKeyMatchInstance instance + */ + ToolParameterKeyMatchInstance.create = function create(properties) { + return new ToolParameterKeyMatchInstance(properties); + }; + + /** + * Encodes the specified ToolParameterKeyMatchInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.ToolParameterKeyMatchInstance.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ToolParameterKeyMatchInstance + * @static + * @param {google.cloud.aiplatform.v1.IToolParameterKeyMatchInstance} message ToolParameterKeyMatchInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ToolParameterKeyMatchInstance.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.prediction != null && Object.hasOwnProperty.call(message, "prediction")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.prediction); + if (message.reference != null && Object.hasOwnProperty.call(message, "reference")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.reference); + return writer; + }; + + /** + * Encodes the specified ToolParameterKeyMatchInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ToolParameterKeyMatchInstance.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ToolParameterKeyMatchInstance + * @static + * @param {google.cloud.aiplatform.v1.IToolParameterKeyMatchInstance} message ToolParameterKeyMatchInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ToolParameterKeyMatchInstance.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ToolParameterKeyMatchInstance message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ToolParameterKeyMatchInstance + * @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.ToolParameterKeyMatchInstance} ToolParameterKeyMatchInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ToolParameterKeyMatchInstance.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.ToolParameterKeyMatchInstance(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.prediction = reader.string(); + break; + } + case 2: { + message.reference = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ToolParameterKeyMatchInstance message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ToolParameterKeyMatchInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ToolParameterKeyMatchInstance} ToolParameterKeyMatchInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ToolParameterKeyMatchInstance.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ToolParameterKeyMatchInstance message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ToolParameterKeyMatchInstance + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ToolParameterKeyMatchInstance.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.prediction != null && message.hasOwnProperty("prediction")) { + properties._prediction = 1; + if (!$util.isString(message.prediction)) + return "prediction: string expected"; + } + if (message.reference != null && message.hasOwnProperty("reference")) { + properties._reference = 1; + if (!$util.isString(message.reference)) + return "reference: string expected"; + } + return null; + }; + + /** + * Creates a ToolParameterKeyMatchInstance message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ToolParameterKeyMatchInstance + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ToolParameterKeyMatchInstance} ToolParameterKeyMatchInstance + */ + ToolParameterKeyMatchInstance.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ToolParameterKeyMatchInstance) + return object; + var message = new $root.google.cloud.aiplatform.v1.ToolParameterKeyMatchInstance(); + if (object.prediction != null) + message.prediction = String(object.prediction); + if (object.reference != null) + message.reference = String(object.reference); + return message; + }; + + /** + * Creates a plain object from a ToolParameterKeyMatchInstance message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ToolParameterKeyMatchInstance + * @static + * @param {google.cloud.aiplatform.v1.ToolParameterKeyMatchInstance} message ToolParameterKeyMatchInstance + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ToolParameterKeyMatchInstance.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.prediction != null && message.hasOwnProperty("prediction")) { + object.prediction = message.prediction; + if (options.oneofs) + object._prediction = "prediction"; + } + if (message.reference != null && message.hasOwnProperty("reference")) { + object.reference = message.reference; + if (options.oneofs) + object._reference = "reference"; + } + return object; + }; + + /** + * Converts this ToolParameterKeyMatchInstance to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ToolParameterKeyMatchInstance + * @instance + * @returns {Object.} JSON object + */ + ToolParameterKeyMatchInstance.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ToolParameterKeyMatchInstance + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ToolParameterKeyMatchInstance + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ToolParameterKeyMatchInstance.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ToolParameterKeyMatchInstance"; + }; + + return ToolParameterKeyMatchInstance; + })(); + + v1.ToolParameterKeyMatchResults = (function() { + + /** + * Properties of a ToolParameterKeyMatchResults. + * @memberof google.cloud.aiplatform.v1 + * @interface IToolParameterKeyMatchResults + * @property {Array.|null} [toolParameterKeyMatchMetricValues] ToolParameterKeyMatchResults toolParameterKeyMatchMetricValues + */ + + /** + * Constructs a new ToolParameterKeyMatchResults. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ToolParameterKeyMatchResults. + * @implements IToolParameterKeyMatchResults + * @constructor + * @param {google.cloud.aiplatform.v1.IToolParameterKeyMatchResults=} [properties] Properties to set + */ + function ToolParameterKeyMatchResults(properties) { + this.toolParameterKeyMatchMetricValues = []; + 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]]; + } + + /** + * ToolParameterKeyMatchResults toolParameterKeyMatchMetricValues. + * @member {Array.} toolParameterKeyMatchMetricValues + * @memberof google.cloud.aiplatform.v1.ToolParameterKeyMatchResults + * @instance + */ + ToolParameterKeyMatchResults.prototype.toolParameterKeyMatchMetricValues = $util.emptyArray; + + /** + * Creates a new ToolParameterKeyMatchResults instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ToolParameterKeyMatchResults + * @static + * @param {google.cloud.aiplatform.v1.IToolParameterKeyMatchResults=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ToolParameterKeyMatchResults} ToolParameterKeyMatchResults instance + */ + ToolParameterKeyMatchResults.create = function create(properties) { + return new ToolParameterKeyMatchResults(properties); + }; + + /** + * Encodes the specified ToolParameterKeyMatchResults message. Does not implicitly {@link google.cloud.aiplatform.v1.ToolParameterKeyMatchResults.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ToolParameterKeyMatchResults + * @static + * @param {google.cloud.aiplatform.v1.IToolParameterKeyMatchResults} message ToolParameterKeyMatchResults message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ToolParameterKeyMatchResults.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.toolParameterKeyMatchMetricValues != null && message.toolParameterKeyMatchMetricValues.length) + for (var i = 0; i < message.toolParameterKeyMatchMetricValues.length; ++i) + $root.google.cloud.aiplatform.v1.ToolParameterKeyMatchMetricValue.encode(message.toolParameterKeyMatchMetricValues[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ToolParameterKeyMatchResults message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ToolParameterKeyMatchResults.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ToolParameterKeyMatchResults + * @static + * @param {google.cloud.aiplatform.v1.IToolParameterKeyMatchResults} message ToolParameterKeyMatchResults message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ToolParameterKeyMatchResults.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ToolParameterKeyMatchResults message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ToolParameterKeyMatchResults + * @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.ToolParameterKeyMatchResults} ToolParameterKeyMatchResults + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ToolParameterKeyMatchResults.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.ToolParameterKeyMatchResults(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.toolParameterKeyMatchMetricValues && message.toolParameterKeyMatchMetricValues.length)) + message.toolParameterKeyMatchMetricValues = []; + message.toolParameterKeyMatchMetricValues.push($root.google.cloud.aiplatform.v1.ToolParameterKeyMatchMetricValue.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ToolParameterKeyMatchResults message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ToolParameterKeyMatchResults + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ToolParameterKeyMatchResults} ToolParameterKeyMatchResults + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ToolParameterKeyMatchResults.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ToolParameterKeyMatchResults message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ToolParameterKeyMatchResults + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ToolParameterKeyMatchResults.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.toolParameterKeyMatchMetricValues != null && message.hasOwnProperty("toolParameterKeyMatchMetricValues")) { + if (!Array.isArray(message.toolParameterKeyMatchMetricValues)) + return "toolParameterKeyMatchMetricValues: array expected"; + for (var i = 0; i < message.toolParameterKeyMatchMetricValues.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.ToolParameterKeyMatchMetricValue.verify(message.toolParameterKeyMatchMetricValues[i]); + if (error) + return "toolParameterKeyMatchMetricValues." + error; + } + } + return null; + }; + + /** + * Creates a ToolParameterKeyMatchResults message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ToolParameterKeyMatchResults + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ToolParameterKeyMatchResults} ToolParameterKeyMatchResults + */ + ToolParameterKeyMatchResults.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ToolParameterKeyMatchResults) + return object; + var message = new $root.google.cloud.aiplatform.v1.ToolParameterKeyMatchResults(); + if (object.toolParameterKeyMatchMetricValues) { + if (!Array.isArray(object.toolParameterKeyMatchMetricValues)) + throw TypeError(".google.cloud.aiplatform.v1.ToolParameterKeyMatchResults.toolParameterKeyMatchMetricValues: array expected"); + message.toolParameterKeyMatchMetricValues = []; + for (var i = 0; i < object.toolParameterKeyMatchMetricValues.length; ++i) { + if (typeof object.toolParameterKeyMatchMetricValues[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ToolParameterKeyMatchResults.toolParameterKeyMatchMetricValues: object expected"); + message.toolParameterKeyMatchMetricValues[i] = $root.google.cloud.aiplatform.v1.ToolParameterKeyMatchMetricValue.fromObject(object.toolParameterKeyMatchMetricValues[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a ToolParameterKeyMatchResults message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ToolParameterKeyMatchResults + * @static + * @param {google.cloud.aiplatform.v1.ToolParameterKeyMatchResults} message ToolParameterKeyMatchResults + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ToolParameterKeyMatchResults.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.toolParameterKeyMatchMetricValues = []; + if (message.toolParameterKeyMatchMetricValues && message.toolParameterKeyMatchMetricValues.length) { + object.toolParameterKeyMatchMetricValues = []; + for (var j = 0; j < message.toolParameterKeyMatchMetricValues.length; ++j) + object.toolParameterKeyMatchMetricValues[j] = $root.google.cloud.aiplatform.v1.ToolParameterKeyMatchMetricValue.toObject(message.toolParameterKeyMatchMetricValues[j], options); + } + return object; + }; + + /** + * Converts this ToolParameterKeyMatchResults to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ToolParameterKeyMatchResults + * @instance + * @returns {Object.} JSON object + */ + ToolParameterKeyMatchResults.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ToolParameterKeyMatchResults + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ToolParameterKeyMatchResults + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ToolParameterKeyMatchResults.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ToolParameterKeyMatchResults"; + }; + + return ToolParameterKeyMatchResults; + })(); + + v1.ToolParameterKeyMatchMetricValue = (function() { + + /** + * Properties of a ToolParameterKeyMatchMetricValue. + * @memberof google.cloud.aiplatform.v1 + * @interface IToolParameterKeyMatchMetricValue + * @property {number|null} [score] ToolParameterKeyMatchMetricValue score + */ + + /** + * Constructs a new ToolParameterKeyMatchMetricValue. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ToolParameterKeyMatchMetricValue. + * @implements IToolParameterKeyMatchMetricValue + * @constructor + * @param {google.cloud.aiplatform.v1.IToolParameterKeyMatchMetricValue=} [properties] Properties to set + */ + function ToolParameterKeyMatchMetricValue(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]]; + } + + /** + * ToolParameterKeyMatchMetricValue score. + * @member {number|null|undefined} score + * @memberof google.cloud.aiplatform.v1.ToolParameterKeyMatchMetricValue + * @instance + */ + ToolParameterKeyMatchMetricValue.prototype.score = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ToolParameterKeyMatchMetricValue _score. + * @member {"score"|undefined} _score + * @memberof google.cloud.aiplatform.v1.ToolParameterKeyMatchMetricValue + * @instance + */ + Object.defineProperty(ToolParameterKeyMatchMetricValue.prototype, "_score", { + get: $util.oneOfGetter($oneOfFields = ["score"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ToolParameterKeyMatchMetricValue instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ToolParameterKeyMatchMetricValue + * @static + * @param {google.cloud.aiplatform.v1.IToolParameterKeyMatchMetricValue=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ToolParameterKeyMatchMetricValue} ToolParameterKeyMatchMetricValue instance + */ + ToolParameterKeyMatchMetricValue.create = function create(properties) { + return new ToolParameterKeyMatchMetricValue(properties); + }; + + /** + * Encodes the specified ToolParameterKeyMatchMetricValue message. Does not implicitly {@link google.cloud.aiplatform.v1.ToolParameterKeyMatchMetricValue.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ToolParameterKeyMatchMetricValue + * @static + * @param {google.cloud.aiplatform.v1.IToolParameterKeyMatchMetricValue} message ToolParameterKeyMatchMetricValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ToolParameterKeyMatchMetricValue.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.score != null && Object.hasOwnProperty.call(message, "score")) + writer.uint32(/* id 1, wireType 5 =*/13).float(message.score); + return writer; + }; + + /** + * Encodes the specified ToolParameterKeyMatchMetricValue message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ToolParameterKeyMatchMetricValue.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ToolParameterKeyMatchMetricValue + * @static + * @param {google.cloud.aiplatform.v1.IToolParameterKeyMatchMetricValue} message ToolParameterKeyMatchMetricValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ToolParameterKeyMatchMetricValue.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ToolParameterKeyMatchMetricValue message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ToolParameterKeyMatchMetricValue + * @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.ToolParameterKeyMatchMetricValue} ToolParameterKeyMatchMetricValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ToolParameterKeyMatchMetricValue.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.ToolParameterKeyMatchMetricValue(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.score = reader.float(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ToolParameterKeyMatchMetricValue message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ToolParameterKeyMatchMetricValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ToolParameterKeyMatchMetricValue} ToolParameterKeyMatchMetricValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ToolParameterKeyMatchMetricValue.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ToolParameterKeyMatchMetricValue message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ToolParameterKeyMatchMetricValue + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ToolParameterKeyMatchMetricValue.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.score != null && message.hasOwnProperty("score")) { + properties._score = 1; + if (typeof message.score !== "number") + return "score: number expected"; + } + return null; + }; + + /** + * Creates a ToolParameterKeyMatchMetricValue message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ToolParameterKeyMatchMetricValue + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ToolParameterKeyMatchMetricValue} ToolParameterKeyMatchMetricValue + */ + ToolParameterKeyMatchMetricValue.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ToolParameterKeyMatchMetricValue) + return object; + var message = new $root.google.cloud.aiplatform.v1.ToolParameterKeyMatchMetricValue(); + if (object.score != null) + message.score = Number(object.score); + return message; + }; + + /** + * Creates a plain object from a ToolParameterKeyMatchMetricValue message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ToolParameterKeyMatchMetricValue + * @static + * @param {google.cloud.aiplatform.v1.ToolParameterKeyMatchMetricValue} message ToolParameterKeyMatchMetricValue + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ToolParameterKeyMatchMetricValue.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.score != null && message.hasOwnProperty("score")) { + object.score = options.json && !isFinite(message.score) ? String(message.score) : message.score; + if (options.oneofs) + object._score = "score"; + } + return object; + }; + + /** + * Converts this ToolParameterKeyMatchMetricValue to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ToolParameterKeyMatchMetricValue + * @instance + * @returns {Object.} JSON object + */ + ToolParameterKeyMatchMetricValue.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ToolParameterKeyMatchMetricValue + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ToolParameterKeyMatchMetricValue + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ToolParameterKeyMatchMetricValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ToolParameterKeyMatchMetricValue"; + }; + + return ToolParameterKeyMatchMetricValue; + })(); + + v1.ToolParameterKVMatchInput = (function() { + + /** + * Properties of a ToolParameterKVMatchInput. + * @memberof google.cloud.aiplatform.v1 + * @interface IToolParameterKVMatchInput + * @property {google.cloud.aiplatform.v1.IToolParameterKVMatchSpec|null} [metricSpec] ToolParameterKVMatchInput metricSpec + * @property {Array.|null} [instances] ToolParameterKVMatchInput instances + */ + + /** + * Constructs a new ToolParameterKVMatchInput. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ToolParameterKVMatchInput. + * @implements IToolParameterKVMatchInput + * @constructor + * @param {google.cloud.aiplatform.v1.IToolParameterKVMatchInput=} [properties] Properties to set + */ + function ToolParameterKVMatchInput(properties) { + this.instances = []; + 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]]; + } + + /** + * ToolParameterKVMatchInput metricSpec. + * @member {google.cloud.aiplatform.v1.IToolParameterKVMatchSpec|null|undefined} metricSpec + * @memberof google.cloud.aiplatform.v1.ToolParameterKVMatchInput + * @instance + */ + ToolParameterKVMatchInput.prototype.metricSpec = null; + + /** + * ToolParameterKVMatchInput instances. + * @member {Array.} instances + * @memberof google.cloud.aiplatform.v1.ToolParameterKVMatchInput + * @instance + */ + ToolParameterKVMatchInput.prototype.instances = $util.emptyArray; + + /** + * Creates a new ToolParameterKVMatchInput instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ToolParameterKVMatchInput + * @static + * @param {google.cloud.aiplatform.v1.IToolParameterKVMatchInput=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ToolParameterKVMatchInput} ToolParameterKVMatchInput instance + */ + ToolParameterKVMatchInput.create = function create(properties) { + return new ToolParameterKVMatchInput(properties); + }; + + /** + * Encodes the specified ToolParameterKVMatchInput message. Does not implicitly {@link google.cloud.aiplatform.v1.ToolParameterKVMatchInput.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ToolParameterKVMatchInput + * @static + * @param {google.cloud.aiplatform.v1.IToolParameterKVMatchInput} message ToolParameterKVMatchInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ToolParameterKVMatchInput.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.metricSpec != null && Object.hasOwnProperty.call(message, "metricSpec")) + $root.google.cloud.aiplatform.v1.ToolParameterKVMatchSpec.encode(message.metricSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.instances != null && message.instances.length) + for (var i = 0; i < message.instances.length; ++i) + $root.google.cloud.aiplatform.v1.ToolParameterKVMatchInstance.encode(message.instances[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ToolParameterKVMatchInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ToolParameterKVMatchInput.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ToolParameterKVMatchInput + * @static + * @param {google.cloud.aiplatform.v1.IToolParameterKVMatchInput} message ToolParameterKVMatchInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ToolParameterKVMatchInput.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ToolParameterKVMatchInput message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ToolParameterKVMatchInput + * @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.ToolParameterKVMatchInput} ToolParameterKVMatchInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ToolParameterKVMatchInput.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.ToolParameterKVMatchInput(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.metricSpec = $root.google.cloud.aiplatform.v1.ToolParameterKVMatchSpec.decode(reader, reader.uint32()); + break; + } + case 2: { + if (!(message.instances && message.instances.length)) + message.instances = []; + message.instances.push($root.google.cloud.aiplatform.v1.ToolParameterKVMatchInstance.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ToolParameterKVMatchInput message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ToolParameterKVMatchInput + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ToolParameterKVMatchInput} ToolParameterKVMatchInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ToolParameterKVMatchInput.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ToolParameterKVMatchInput message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ToolParameterKVMatchInput + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ToolParameterKVMatchInput.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) { + var error = $root.google.cloud.aiplatform.v1.ToolParameterKVMatchSpec.verify(message.metricSpec); + if (error) + return "metricSpec." + error; + } + if (message.instances != null && message.hasOwnProperty("instances")) { + if (!Array.isArray(message.instances)) + return "instances: array expected"; + for (var i = 0; i < message.instances.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.ToolParameterKVMatchInstance.verify(message.instances[i]); + if (error) + return "instances." + error; + } + } + return null; + }; + + /** + * Creates a ToolParameterKVMatchInput message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ToolParameterKVMatchInput + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ToolParameterKVMatchInput} ToolParameterKVMatchInput + */ + ToolParameterKVMatchInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ToolParameterKVMatchInput) + return object; + var message = new $root.google.cloud.aiplatform.v1.ToolParameterKVMatchInput(); + if (object.metricSpec != null) { + if (typeof object.metricSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ToolParameterKVMatchInput.metricSpec: object expected"); + message.metricSpec = $root.google.cloud.aiplatform.v1.ToolParameterKVMatchSpec.fromObject(object.metricSpec); + } + if (object.instances) { + if (!Array.isArray(object.instances)) + throw TypeError(".google.cloud.aiplatform.v1.ToolParameterKVMatchInput.instances: array expected"); + message.instances = []; + for (var i = 0; i < object.instances.length; ++i) { + if (typeof object.instances[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ToolParameterKVMatchInput.instances: object expected"); + message.instances[i] = $root.google.cloud.aiplatform.v1.ToolParameterKVMatchInstance.fromObject(object.instances[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a ToolParameterKVMatchInput message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ToolParameterKVMatchInput + * @static + * @param {google.cloud.aiplatform.v1.ToolParameterKVMatchInput} message ToolParameterKVMatchInput + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ToolParameterKVMatchInput.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.instances = []; + if (options.defaults) + object.metricSpec = null; + if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) + object.metricSpec = $root.google.cloud.aiplatform.v1.ToolParameterKVMatchSpec.toObject(message.metricSpec, options); + if (message.instances && message.instances.length) { + object.instances = []; + for (var j = 0; j < message.instances.length; ++j) + object.instances[j] = $root.google.cloud.aiplatform.v1.ToolParameterKVMatchInstance.toObject(message.instances[j], options); + } + return object; + }; + + /** + * Converts this ToolParameterKVMatchInput to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ToolParameterKVMatchInput + * @instance + * @returns {Object.} JSON object + */ + ToolParameterKVMatchInput.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ToolParameterKVMatchInput + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ToolParameterKVMatchInput + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ToolParameterKVMatchInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ToolParameterKVMatchInput"; + }; + + return ToolParameterKVMatchInput; + })(); + + v1.ToolParameterKVMatchSpec = (function() { + + /** + * Properties of a ToolParameterKVMatchSpec. + * @memberof google.cloud.aiplatform.v1 + * @interface IToolParameterKVMatchSpec + * @property {boolean|null} [useStrictStringMatch] ToolParameterKVMatchSpec useStrictStringMatch + */ + + /** + * Constructs a new ToolParameterKVMatchSpec. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ToolParameterKVMatchSpec. + * @implements IToolParameterKVMatchSpec + * @constructor + * @param {google.cloud.aiplatform.v1.IToolParameterKVMatchSpec=} [properties] Properties to set + */ + function ToolParameterKVMatchSpec(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]]; + } + + /** + * ToolParameterKVMatchSpec useStrictStringMatch. + * @member {boolean} useStrictStringMatch + * @memberof google.cloud.aiplatform.v1.ToolParameterKVMatchSpec + * @instance + */ + ToolParameterKVMatchSpec.prototype.useStrictStringMatch = false; + + /** + * Creates a new ToolParameterKVMatchSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ToolParameterKVMatchSpec + * @static + * @param {google.cloud.aiplatform.v1.IToolParameterKVMatchSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ToolParameterKVMatchSpec} ToolParameterKVMatchSpec instance + */ + ToolParameterKVMatchSpec.create = function create(properties) { + return new ToolParameterKVMatchSpec(properties); + }; + + /** + * Encodes the specified ToolParameterKVMatchSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.ToolParameterKVMatchSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ToolParameterKVMatchSpec + * @static + * @param {google.cloud.aiplatform.v1.IToolParameterKVMatchSpec} message ToolParameterKVMatchSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ToolParameterKVMatchSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.useStrictStringMatch != null && Object.hasOwnProperty.call(message, "useStrictStringMatch")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.useStrictStringMatch); + return writer; + }; + + /** + * Encodes the specified ToolParameterKVMatchSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ToolParameterKVMatchSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ToolParameterKVMatchSpec + * @static + * @param {google.cloud.aiplatform.v1.IToolParameterKVMatchSpec} message ToolParameterKVMatchSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ToolParameterKVMatchSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ToolParameterKVMatchSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ToolParameterKVMatchSpec + * @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.ToolParameterKVMatchSpec} ToolParameterKVMatchSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ToolParameterKVMatchSpec.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.ToolParameterKVMatchSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.useStrictStringMatch = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ToolParameterKVMatchSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ToolParameterKVMatchSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ToolParameterKVMatchSpec} ToolParameterKVMatchSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ToolParameterKVMatchSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ToolParameterKVMatchSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ToolParameterKVMatchSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ToolParameterKVMatchSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.useStrictStringMatch != null && message.hasOwnProperty("useStrictStringMatch")) + if (typeof message.useStrictStringMatch !== "boolean") + return "useStrictStringMatch: boolean expected"; + return null; + }; + + /** + * Creates a ToolParameterKVMatchSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ToolParameterKVMatchSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ToolParameterKVMatchSpec} ToolParameterKVMatchSpec + */ + ToolParameterKVMatchSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ToolParameterKVMatchSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1.ToolParameterKVMatchSpec(); + if (object.useStrictStringMatch != null) + message.useStrictStringMatch = Boolean(object.useStrictStringMatch); + return message; + }; + + /** + * Creates a plain object from a ToolParameterKVMatchSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ToolParameterKVMatchSpec + * @static + * @param {google.cloud.aiplatform.v1.ToolParameterKVMatchSpec} message ToolParameterKVMatchSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ToolParameterKVMatchSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.useStrictStringMatch = false; + if (message.useStrictStringMatch != null && message.hasOwnProperty("useStrictStringMatch")) + object.useStrictStringMatch = message.useStrictStringMatch; + return object; + }; + + /** + * Converts this ToolParameterKVMatchSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ToolParameterKVMatchSpec + * @instance + * @returns {Object.} JSON object + */ + ToolParameterKVMatchSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ToolParameterKVMatchSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ToolParameterKVMatchSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ToolParameterKVMatchSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ToolParameterKVMatchSpec"; + }; + + return ToolParameterKVMatchSpec; + })(); + + v1.ToolParameterKVMatchInstance = (function() { + + /** + * Properties of a ToolParameterKVMatchInstance. + * @memberof google.cloud.aiplatform.v1 + * @interface IToolParameterKVMatchInstance + * @property {string|null} [prediction] ToolParameterKVMatchInstance prediction + * @property {string|null} [reference] ToolParameterKVMatchInstance reference + */ + + /** + * Constructs a new ToolParameterKVMatchInstance. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ToolParameterKVMatchInstance. + * @implements IToolParameterKVMatchInstance + * @constructor + * @param {google.cloud.aiplatform.v1.IToolParameterKVMatchInstance=} [properties] Properties to set + */ + function ToolParameterKVMatchInstance(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]]; + } + + /** + * ToolParameterKVMatchInstance prediction. + * @member {string|null|undefined} prediction + * @memberof google.cloud.aiplatform.v1.ToolParameterKVMatchInstance + * @instance + */ + ToolParameterKVMatchInstance.prototype.prediction = null; + + /** + * ToolParameterKVMatchInstance reference. + * @member {string|null|undefined} reference + * @memberof google.cloud.aiplatform.v1.ToolParameterKVMatchInstance + * @instance + */ + ToolParameterKVMatchInstance.prototype.reference = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ToolParameterKVMatchInstance _prediction. + * @member {"prediction"|undefined} _prediction + * @memberof google.cloud.aiplatform.v1.ToolParameterKVMatchInstance + * @instance + */ + Object.defineProperty(ToolParameterKVMatchInstance.prototype, "_prediction", { + get: $util.oneOfGetter($oneOfFields = ["prediction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * ToolParameterKVMatchInstance _reference. + * @member {"reference"|undefined} _reference + * @memberof google.cloud.aiplatform.v1.ToolParameterKVMatchInstance + * @instance + */ + Object.defineProperty(ToolParameterKVMatchInstance.prototype, "_reference", { + get: $util.oneOfGetter($oneOfFields = ["reference"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ToolParameterKVMatchInstance instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ToolParameterKVMatchInstance + * @static + * @param {google.cloud.aiplatform.v1.IToolParameterKVMatchInstance=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ToolParameterKVMatchInstance} ToolParameterKVMatchInstance instance + */ + ToolParameterKVMatchInstance.create = function create(properties) { + return new ToolParameterKVMatchInstance(properties); + }; + + /** + * Encodes the specified ToolParameterKVMatchInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.ToolParameterKVMatchInstance.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ToolParameterKVMatchInstance + * @static + * @param {google.cloud.aiplatform.v1.IToolParameterKVMatchInstance} message ToolParameterKVMatchInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ToolParameterKVMatchInstance.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.prediction != null && Object.hasOwnProperty.call(message, "prediction")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.prediction); + if (message.reference != null && Object.hasOwnProperty.call(message, "reference")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.reference); + return writer; + }; + + /** + * Encodes the specified ToolParameterKVMatchInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ToolParameterKVMatchInstance.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ToolParameterKVMatchInstance + * @static + * @param {google.cloud.aiplatform.v1.IToolParameterKVMatchInstance} message ToolParameterKVMatchInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ToolParameterKVMatchInstance.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ToolParameterKVMatchInstance message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ToolParameterKVMatchInstance + * @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.ToolParameterKVMatchInstance} ToolParameterKVMatchInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ToolParameterKVMatchInstance.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.ToolParameterKVMatchInstance(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.prediction = reader.string(); + break; + } + case 2: { + message.reference = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ToolParameterKVMatchInstance message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ToolParameterKVMatchInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ToolParameterKVMatchInstance} ToolParameterKVMatchInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ToolParameterKVMatchInstance.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ToolParameterKVMatchInstance message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ToolParameterKVMatchInstance + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ToolParameterKVMatchInstance.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.prediction != null && message.hasOwnProperty("prediction")) { + properties._prediction = 1; + if (!$util.isString(message.prediction)) + return "prediction: string expected"; + } + if (message.reference != null && message.hasOwnProperty("reference")) { + properties._reference = 1; + if (!$util.isString(message.reference)) + return "reference: string expected"; + } + return null; + }; + + /** + * Creates a ToolParameterKVMatchInstance message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ToolParameterKVMatchInstance + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ToolParameterKVMatchInstance} ToolParameterKVMatchInstance + */ + ToolParameterKVMatchInstance.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ToolParameterKVMatchInstance) + return object; + var message = new $root.google.cloud.aiplatform.v1.ToolParameterKVMatchInstance(); + if (object.prediction != null) + message.prediction = String(object.prediction); + if (object.reference != null) + message.reference = String(object.reference); + return message; + }; + + /** + * Creates a plain object from a ToolParameterKVMatchInstance message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ToolParameterKVMatchInstance + * @static + * @param {google.cloud.aiplatform.v1.ToolParameterKVMatchInstance} message ToolParameterKVMatchInstance + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ToolParameterKVMatchInstance.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.prediction != null && message.hasOwnProperty("prediction")) { + object.prediction = message.prediction; + if (options.oneofs) + object._prediction = "prediction"; + } + if (message.reference != null && message.hasOwnProperty("reference")) { + object.reference = message.reference; + if (options.oneofs) + object._reference = "reference"; + } + return object; + }; + + /** + * Converts this ToolParameterKVMatchInstance to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ToolParameterKVMatchInstance + * @instance + * @returns {Object.} JSON object + */ + ToolParameterKVMatchInstance.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ToolParameterKVMatchInstance + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ToolParameterKVMatchInstance + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ToolParameterKVMatchInstance.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ToolParameterKVMatchInstance"; + }; + + return ToolParameterKVMatchInstance; + })(); + + v1.ToolParameterKVMatchResults = (function() { + + /** + * Properties of a ToolParameterKVMatchResults. + * @memberof google.cloud.aiplatform.v1 + * @interface IToolParameterKVMatchResults + * @property {Array.|null} [toolParameterKvMatchMetricValues] ToolParameterKVMatchResults toolParameterKvMatchMetricValues + */ + + /** + * Constructs a new ToolParameterKVMatchResults. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ToolParameterKVMatchResults. + * @implements IToolParameterKVMatchResults + * @constructor + * @param {google.cloud.aiplatform.v1.IToolParameterKVMatchResults=} [properties] Properties to set + */ + function ToolParameterKVMatchResults(properties) { + this.toolParameterKvMatchMetricValues = []; + 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]]; + } + + /** + * ToolParameterKVMatchResults toolParameterKvMatchMetricValues. + * @member {Array.} toolParameterKvMatchMetricValues + * @memberof google.cloud.aiplatform.v1.ToolParameterKVMatchResults + * @instance + */ + ToolParameterKVMatchResults.prototype.toolParameterKvMatchMetricValues = $util.emptyArray; + + /** + * Creates a new ToolParameterKVMatchResults instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ToolParameterKVMatchResults + * @static + * @param {google.cloud.aiplatform.v1.IToolParameterKVMatchResults=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ToolParameterKVMatchResults} ToolParameterKVMatchResults instance + */ + ToolParameterKVMatchResults.create = function create(properties) { + return new ToolParameterKVMatchResults(properties); + }; + + /** + * Encodes the specified ToolParameterKVMatchResults message. Does not implicitly {@link google.cloud.aiplatform.v1.ToolParameterKVMatchResults.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ToolParameterKVMatchResults + * @static + * @param {google.cloud.aiplatform.v1.IToolParameterKVMatchResults} message ToolParameterKVMatchResults message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ToolParameterKVMatchResults.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.toolParameterKvMatchMetricValues != null && message.toolParameterKvMatchMetricValues.length) + for (var i = 0; i < message.toolParameterKvMatchMetricValues.length; ++i) + $root.google.cloud.aiplatform.v1.ToolParameterKVMatchMetricValue.encode(message.toolParameterKvMatchMetricValues[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ToolParameterKVMatchResults message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ToolParameterKVMatchResults.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ToolParameterKVMatchResults + * @static + * @param {google.cloud.aiplatform.v1.IToolParameterKVMatchResults} message ToolParameterKVMatchResults message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ToolParameterKVMatchResults.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ToolParameterKVMatchResults message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ToolParameterKVMatchResults + * @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.ToolParameterKVMatchResults} ToolParameterKVMatchResults + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ToolParameterKVMatchResults.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.ToolParameterKVMatchResults(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.toolParameterKvMatchMetricValues && message.toolParameterKvMatchMetricValues.length)) + message.toolParameterKvMatchMetricValues = []; + message.toolParameterKvMatchMetricValues.push($root.google.cloud.aiplatform.v1.ToolParameterKVMatchMetricValue.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ToolParameterKVMatchResults message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ToolParameterKVMatchResults + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ToolParameterKVMatchResults} ToolParameterKVMatchResults + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ToolParameterKVMatchResults.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ToolParameterKVMatchResults message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ToolParameterKVMatchResults + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ToolParameterKVMatchResults.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.toolParameterKvMatchMetricValues != null && message.hasOwnProperty("toolParameterKvMatchMetricValues")) { + if (!Array.isArray(message.toolParameterKvMatchMetricValues)) + return "toolParameterKvMatchMetricValues: array expected"; + for (var i = 0; i < message.toolParameterKvMatchMetricValues.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.ToolParameterKVMatchMetricValue.verify(message.toolParameterKvMatchMetricValues[i]); + if (error) + return "toolParameterKvMatchMetricValues." + error; + } + } + return null; + }; + + /** + * Creates a ToolParameterKVMatchResults message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ToolParameterKVMatchResults + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ToolParameterKVMatchResults} ToolParameterKVMatchResults + */ + ToolParameterKVMatchResults.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ToolParameterKVMatchResults) + return object; + var message = new $root.google.cloud.aiplatform.v1.ToolParameterKVMatchResults(); + if (object.toolParameterKvMatchMetricValues) { + if (!Array.isArray(object.toolParameterKvMatchMetricValues)) + throw TypeError(".google.cloud.aiplatform.v1.ToolParameterKVMatchResults.toolParameterKvMatchMetricValues: array expected"); + message.toolParameterKvMatchMetricValues = []; + for (var i = 0; i < object.toolParameterKvMatchMetricValues.length; ++i) { + if (typeof object.toolParameterKvMatchMetricValues[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ToolParameterKVMatchResults.toolParameterKvMatchMetricValues: object expected"); + message.toolParameterKvMatchMetricValues[i] = $root.google.cloud.aiplatform.v1.ToolParameterKVMatchMetricValue.fromObject(object.toolParameterKvMatchMetricValues[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a ToolParameterKVMatchResults message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ToolParameterKVMatchResults + * @static + * @param {google.cloud.aiplatform.v1.ToolParameterKVMatchResults} message ToolParameterKVMatchResults + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ToolParameterKVMatchResults.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.toolParameterKvMatchMetricValues = []; + if (message.toolParameterKvMatchMetricValues && message.toolParameterKvMatchMetricValues.length) { + object.toolParameterKvMatchMetricValues = []; + for (var j = 0; j < message.toolParameterKvMatchMetricValues.length; ++j) + object.toolParameterKvMatchMetricValues[j] = $root.google.cloud.aiplatform.v1.ToolParameterKVMatchMetricValue.toObject(message.toolParameterKvMatchMetricValues[j], options); + } + return object; + }; + + /** + * Converts this ToolParameterKVMatchResults to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ToolParameterKVMatchResults + * @instance + * @returns {Object.} JSON object + */ + ToolParameterKVMatchResults.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ToolParameterKVMatchResults + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ToolParameterKVMatchResults + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ToolParameterKVMatchResults.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ToolParameterKVMatchResults"; + }; + + return ToolParameterKVMatchResults; + })(); + + v1.ToolParameterKVMatchMetricValue = (function() { + + /** + * Properties of a ToolParameterKVMatchMetricValue. + * @memberof google.cloud.aiplatform.v1 + * @interface IToolParameterKVMatchMetricValue + * @property {number|null} [score] ToolParameterKVMatchMetricValue score + */ + + /** + * Constructs a new ToolParameterKVMatchMetricValue. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ToolParameterKVMatchMetricValue. + * @implements IToolParameterKVMatchMetricValue + * @constructor + * @param {google.cloud.aiplatform.v1.IToolParameterKVMatchMetricValue=} [properties] Properties to set + */ + function ToolParameterKVMatchMetricValue(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]]; + } + + /** + * ToolParameterKVMatchMetricValue score. + * @member {number|null|undefined} score + * @memberof google.cloud.aiplatform.v1.ToolParameterKVMatchMetricValue + * @instance + */ + ToolParameterKVMatchMetricValue.prototype.score = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ToolParameterKVMatchMetricValue _score. + * @member {"score"|undefined} _score + * @memberof google.cloud.aiplatform.v1.ToolParameterKVMatchMetricValue + * @instance + */ + Object.defineProperty(ToolParameterKVMatchMetricValue.prototype, "_score", { + get: $util.oneOfGetter($oneOfFields = ["score"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ToolParameterKVMatchMetricValue instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ToolParameterKVMatchMetricValue + * @static + * @param {google.cloud.aiplatform.v1.IToolParameterKVMatchMetricValue=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ToolParameterKVMatchMetricValue} ToolParameterKVMatchMetricValue instance + */ + ToolParameterKVMatchMetricValue.create = function create(properties) { + return new ToolParameterKVMatchMetricValue(properties); + }; + + /** + * Encodes the specified ToolParameterKVMatchMetricValue message. Does not implicitly {@link google.cloud.aiplatform.v1.ToolParameterKVMatchMetricValue.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ToolParameterKVMatchMetricValue + * @static + * @param {google.cloud.aiplatform.v1.IToolParameterKVMatchMetricValue} message ToolParameterKVMatchMetricValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ToolParameterKVMatchMetricValue.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.score != null && Object.hasOwnProperty.call(message, "score")) + writer.uint32(/* id 1, wireType 5 =*/13).float(message.score); + return writer; + }; + + /** + * Encodes the specified ToolParameterKVMatchMetricValue message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ToolParameterKVMatchMetricValue.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ToolParameterKVMatchMetricValue + * @static + * @param {google.cloud.aiplatform.v1.IToolParameterKVMatchMetricValue} message ToolParameterKVMatchMetricValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ToolParameterKVMatchMetricValue.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ToolParameterKVMatchMetricValue message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ToolParameterKVMatchMetricValue + * @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.ToolParameterKVMatchMetricValue} ToolParameterKVMatchMetricValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ToolParameterKVMatchMetricValue.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.ToolParameterKVMatchMetricValue(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.score = reader.float(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ToolParameterKVMatchMetricValue message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ToolParameterKVMatchMetricValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ToolParameterKVMatchMetricValue} ToolParameterKVMatchMetricValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ToolParameterKVMatchMetricValue.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ToolParameterKVMatchMetricValue message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ToolParameterKVMatchMetricValue + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ToolParameterKVMatchMetricValue.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.score != null && message.hasOwnProperty("score")) { + properties._score = 1; + if (typeof message.score !== "number") + return "score: number expected"; + } + return null; + }; + + /** + * Creates a ToolParameterKVMatchMetricValue message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ToolParameterKVMatchMetricValue + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ToolParameterKVMatchMetricValue} ToolParameterKVMatchMetricValue + */ + ToolParameterKVMatchMetricValue.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ToolParameterKVMatchMetricValue) + return object; + var message = new $root.google.cloud.aiplatform.v1.ToolParameterKVMatchMetricValue(); + if (object.score != null) + message.score = Number(object.score); + return message; + }; + + /** + * Creates a plain object from a ToolParameterKVMatchMetricValue message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ToolParameterKVMatchMetricValue + * @static + * @param {google.cloud.aiplatform.v1.ToolParameterKVMatchMetricValue} message ToolParameterKVMatchMetricValue + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ToolParameterKVMatchMetricValue.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.score != null && message.hasOwnProperty("score")) { + object.score = options.json && !isFinite(message.score) ? String(message.score) : message.score; + if (options.oneofs) + object._score = "score"; + } + return object; + }; + + /** + * Converts this ToolParameterKVMatchMetricValue to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ToolParameterKVMatchMetricValue + * @instance + * @returns {Object.} JSON object + */ + ToolParameterKVMatchMetricValue.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ToolParameterKVMatchMetricValue + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ToolParameterKVMatchMetricValue + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ToolParameterKVMatchMetricValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ToolParameterKVMatchMetricValue"; + }; + + return ToolParameterKVMatchMetricValue; + })(); + + v1.Event = (function() { + + /** + * Properties of an Event. + * @memberof google.cloud.aiplatform.v1 + * @interface IEvent + * @property {string|null} [artifact] Event artifact + * @property {string|null} [execution] Event execution + * @property {google.protobuf.ITimestamp|null} [eventTime] Event eventTime + * @property {google.cloud.aiplatform.v1.Event.Type|null} [type] Event type + * @property {Object.|null} [labels] Event labels + */ + + /** + * Constructs a new Event. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents an Event. + * @implements IEvent + * @constructor + * @param {google.cloud.aiplatform.v1.IEvent=} [properties] Properties to set + */ + function Event(properties) { + this.labels = {}; + 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]]; + } + + /** + * Event artifact. + * @member {string} artifact + * @memberof google.cloud.aiplatform.v1.Event + * @instance + */ + Event.prototype.artifact = ""; + + /** + * Event execution. + * @member {string} execution + * @memberof google.cloud.aiplatform.v1.Event + * @instance + */ + Event.prototype.execution = ""; + + /** + * Event eventTime. + * @member {google.protobuf.ITimestamp|null|undefined} eventTime + * @memberof google.cloud.aiplatform.v1.Event + * @instance + */ + Event.prototype.eventTime = null; + + /** + * Event type. + * @member {google.cloud.aiplatform.v1.Event.Type} type + * @memberof google.cloud.aiplatform.v1.Event + * @instance + */ + Event.prototype.type = 0; + + /** + * Event labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1.Event + * @instance + */ + Event.prototype.labels = $util.emptyObject; + + /** + * Creates a new Event instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.Event + * @static + * @param {google.cloud.aiplatform.v1.IEvent=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.Event} Event instance + */ + Event.create = function create(properties) { + return new Event(properties); + }; + + /** + * Encodes the specified Event message. Does not implicitly {@link google.cloud.aiplatform.v1.Event.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.Event + * @static + * @param {google.cloud.aiplatform.v1.IEvent} message Event message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Event.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.artifact != null && Object.hasOwnProperty.call(message, "artifact")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.artifact); + if (message.execution != null && Object.hasOwnProperty.call(message, "execution")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.execution); + if (message.eventTime != null && Object.hasOwnProperty.call(message, "eventTime")) + $root.google.protobuf.Timestamp.encode(message.eventTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.type); + 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 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + return writer; + }; + + /** + * Encodes the specified Event message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Event.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.Event + * @static + * @param {google.cloud.aiplatform.v1.IEvent} message Event message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Event.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Event message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.Event + * @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.Event} Event + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Event.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.Event(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.artifact = reader.string(); + break; + } + case 2: { + message.execution = reader.string(); + break; + } + case 3: { + message.eventTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 4: { + message.type = reader.int32(); + break; + } + case 5: { + 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; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Event message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.Event + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.Event} Event + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Event.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Event message. + * @function verify + * @memberof google.cloud.aiplatform.v1.Event + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Event.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.artifact != null && message.hasOwnProperty("artifact")) + if (!$util.isString(message.artifact)) + return "artifact: string expected"; + if (message.execution != null && message.hasOwnProperty("execution")) + if (!$util.isString(message.execution)) + return "execution: string expected"; + if (message.eventTime != null && message.hasOwnProperty("eventTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.eventTime); + if (error) + return "eventTime." + error; + } + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + case 1: + case 2: + break; + } + 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"; + } + return null; + }; + + /** + * Creates an Event message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.Event + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.Event} Event + */ + Event.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.Event) + return object; + var message = new $root.google.cloud.aiplatform.v1.Event(); + if (object.artifact != null) + message.artifact = String(object.artifact); + if (object.execution != null) + message.execution = String(object.execution); + if (object.eventTime != null) { + if (typeof object.eventTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.Event.eventTime: object expected"); + message.eventTime = $root.google.protobuf.Timestamp.fromObject(object.eventTime); + } + switch (object.type) { + default: + if (typeof object.type === "number") { + message.type = object.type; + break; + } + break; + case "TYPE_UNSPECIFIED": + case 0: + message.type = 0; + break; + case "INPUT": + case 1: + message.type = 1; + break; + case "OUTPUT": + case 2: + message.type = 2; + break; + } + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.aiplatform.v1.Event.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]]); + } + return message; + }; + + /** + * Creates a plain object from an Event message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.Event + * @static + * @param {google.cloud.aiplatform.v1.Event} message Event + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Event.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.labels = {}; + if (options.defaults) { + object.artifact = ""; + object.execution = ""; + object.eventTime = null; + object.type = options.enums === String ? "TYPE_UNSPECIFIED" : 0; + } + if (message.artifact != null && message.hasOwnProperty("artifact")) + object.artifact = message.artifact; + if (message.execution != null && message.hasOwnProperty("execution")) + object.execution = message.execution; + if (message.eventTime != null && message.hasOwnProperty("eventTime")) + object.eventTime = $root.google.protobuf.Timestamp.toObject(message.eventTime, options); + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.google.cloud.aiplatform.v1.Event.Type[message.type] === undefined ? message.type : $root.google.cloud.aiplatform.v1.Event.Type[message.type] : message.type; + 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; + }; + + /** + * Converts this Event to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.Event + * @instance + * @returns {Object.} JSON object + */ + Event.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Event + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.Event + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Event.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.Event"; + }; + + /** + * Type enum. + * @name google.cloud.aiplatform.v1.Event.Type + * @enum {number} + * @property {number} TYPE_UNSPECIFIED=0 TYPE_UNSPECIFIED value + * @property {number} INPUT=1 INPUT value + * @property {number} OUTPUT=2 OUTPUT value + */ + Event.Type = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "INPUT"] = 1; + values[valuesById[2] = "OUTPUT"] = 2; + return values; + })(); + + return Event; + })(); + + v1.Execution = (function() { + + /** + * Properties of an Execution. + * @memberof google.cloud.aiplatform.v1 + * @interface IExecution + * @property {string|null} [name] Execution name + * @property {string|null} [displayName] Execution displayName + * @property {google.cloud.aiplatform.v1.Execution.State|null} [state] Execution state + * @property {string|null} [etag] Execution etag + * @property {Object.|null} [labels] Execution labels + * @property {google.protobuf.ITimestamp|null} [createTime] Execution createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] Execution updateTime + * @property {string|null} [schemaTitle] Execution schemaTitle + * @property {string|null} [schemaVersion] Execution schemaVersion + * @property {google.protobuf.IStruct|null} [metadata] Execution metadata + * @property {string|null} [description] Execution description + */ + + /** + * Constructs a new Execution. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents an Execution. + * @implements IExecution + * @constructor + * @param {google.cloud.aiplatform.v1.IExecution=} [properties] Properties to set + */ + function Execution(properties) { + this.labels = {}; + 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]]; + } + + /** + * Execution name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.Execution + * @instance + */ + Execution.prototype.name = ""; + + /** + * Execution displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1.Execution + * @instance + */ + Execution.prototype.displayName = ""; + + /** + * Execution state. + * @member {google.cloud.aiplatform.v1.Execution.State} state + * @memberof google.cloud.aiplatform.v1.Execution + * @instance + */ + Execution.prototype.state = 0; + + /** + * Execution etag. + * @member {string} etag + * @memberof google.cloud.aiplatform.v1.Execution + * @instance + */ + Execution.prototype.etag = ""; + + /** + * Execution labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1.Execution + * @instance + */ + Execution.prototype.labels = $util.emptyObject; + + /** + * Execution createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1.Execution + * @instance + */ + Execution.prototype.createTime = null; + + /** + * Execution updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1.Execution + * @instance + */ + Execution.prototype.updateTime = null; + + /** + * Execution schemaTitle. + * @member {string} schemaTitle + * @memberof google.cloud.aiplatform.v1.Execution + * @instance + */ + Execution.prototype.schemaTitle = ""; + + /** + * Execution schemaVersion. + * @member {string} schemaVersion + * @memberof google.cloud.aiplatform.v1.Execution + * @instance + */ + Execution.prototype.schemaVersion = ""; + + /** + * Execution metadata. + * @member {google.protobuf.IStruct|null|undefined} metadata + * @memberof google.cloud.aiplatform.v1.Execution + * @instance + */ + Execution.prototype.metadata = null; + + /** + * Execution description. + * @member {string} description + * @memberof google.cloud.aiplatform.v1.Execution + * @instance + */ + Execution.prototype.description = ""; + + /** + * Creates a new Execution instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.Execution + * @static + * @param {google.cloud.aiplatform.v1.IExecution=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.Execution} Execution instance + */ + Execution.create = function create(properties) { + return new Execution(properties); + }; + + /** + * Encodes the specified Execution message. Does not implicitly {@link google.cloud.aiplatform.v1.Execution.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.Execution + * @static + * @param {google.cloud.aiplatform.v1.IExecution} message Execution message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Execution.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.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.state); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.etag); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.schemaTitle != null && Object.hasOwnProperty.call(message, "schemaTitle")) + writer.uint32(/* id 13, wireType 2 =*/106).string(message.schemaTitle); + if (message.schemaVersion != null && Object.hasOwnProperty.call(message, "schemaVersion")) + writer.uint32(/* id 14, wireType 2 =*/114).string(message.schemaVersion); + if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) + $root.google.protobuf.Struct.encode(message.metadata, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 16, wireType 2 =*/130).string(message.description); + return writer; + }; + + /** + * Encodes the specified Execution message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Execution.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.Execution + * @static + * @param {google.cloud.aiplatform.v1.IExecution} message Execution message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Execution.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Execution message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.Execution + * @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.Execution} Execution + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Execution.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.Execution(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.displayName = reader.string(); + break; + } + case 6: { + message.state = reader.int32(); + break; + } + case 9: { + message.etag = reader.string(); + 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 11: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 12: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 13: { + message.schemaTitle = reader.string(); + break; + } + case 14: { + message.schemaVersion = reader.string(); + break; + } + case 15: { + message.metadata = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + } + case 16: { + message.description = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Execution message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.Execution + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.Execution} Execution + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Execution.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Execution message. + * @function verify + * @memberof google.cloud.aiplatform.v1.Execution + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Execution.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.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; + } + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; + 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.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.schemaTitle != null && message.hasOwnProperty("schemaTitle")) + if (!$util.isString(message.schemaTitle)) + return "schemaTitle: string expected"; + if (message.schemaVersion != null && message.hasOwnProperty("schemaVersion")) + if (!$util.isString(message.schemaVersion)) + return "schemaVersion: string expected"; + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.google.protobuf.Struct.verify(message.metadata); + if (error) + return "metadata." + error; + } + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + return null; + }; + + /** + * Creates an Execution message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.Execution + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.Execution} Execution + */ + Execution.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.Execution) + return object; + var message = new $root.google.cloud.aiplatform.v1.Execution(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "NEW": + case 1: + message.state = 1; + break; + case "RUNNING": + case 2: + message.state = 2; + break; + case "COMPLETE": + case 3: + message.state = 3; + break; + case "FAILED": + case 4: + message.state = 4; + break; + case "CACHED": + case 5: + message.state = 5; + break; + case "CANCELLED": + case 6: + message.state = 6; + break; + } + if (object.etag != null) + message.etag = String(object.etag); + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.aiplatform.v1.Execution.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.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.Execution.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.Execution.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.schemaTitle != null) + message.schemaTitle = String(object.schemaTitle); + if (object.schemaVersion != null) + message.schemaVersion = String(object.schemaVersion); + if (object.metadata != null) { + if (typeof object.metadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1.Execution.metadata: object expected"); + message.metadata = $root.google.protobuf.Struct.fromObject(object.metadata); + } + if (object.description != null) + message.description = String(object.description); + return message; + }; + + /** + * Creates a plain object from an Execution message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.Execution + * @static + * @param {google.cloud.aiplatform.v1.Execution} message Execution + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Execution.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.labels = {}; + if (options.defaults) { + object.name = ""; + object.displayName = ""; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.etag = ""; + object.createTime = null; + object.updateTime = null; + object.schemaTitle = ""; + object.schemaVersion = ""; + object.metadata = null; + object.description = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.aiplatform.v1.Execution.State[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1.Execution.State[message.state] : message.state; + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; + 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]]; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.schemaTitle != null && message.hasOwnProperty("schemaTitle")) + object.schemaTitle = message.schemaTitle; + if (message.schemaVersion != null && message.hasOwnProperty("schemaVersion")) + object.schemaVersion = message.schemaVersion; + if (message.metadata != null && message.hasOwnProperty("metadata")) + object.metadata = $root.google.protobuf.Struct.toObject(message.metadata, options); + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + return object; + }; + + /** + * Converts this Execution to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.Execution + * @instance + * @returns {Object.} JSON object + */ + Execution.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Execution + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.Execution + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Execution.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.Execution"; + }; + + /** + * State enum. + * @name google.cloud.aiplatform.v1.Execution.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} NEW=1 NEW value + * @property {number} RUNNING=2 RUNNING value + * @property {number} COMPLETE=3 COMPLETE value + * @property {number} FAILED=4 FAILED value + * @property {number} CACHED=5 CACHED value + * @property {number} CANCELLED=6 CANCELLED value + */ + Execution.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "NEW"] = 1; + values[valuesById[2] = "RUNNING"] = 2; + values[valuesById[3] = "COMPLETE"] = 3; + values[valuesById[4] = "FAILED"] = 4; + values[valuesById[5] = "CACHED"] = 5; + values[valuesById[6] = "CANCELLED"] = 6; + return values; + })(); + + return Execution; + })(); + + v1.Feature = (function() { + + /** + * Properties of a Feature. + * @memberof google.cloud.aiplatform.v1 + * @interface IFeature + * @property {string|null} [name] Feature name + * @property {string|null} [description] Feature description + * @property {google.cloud.aiplatform.v1.Feature.ValueType|null} [valueType] Feature valueType + * @property {google.protobuf.ITimestamp|null} [createTime] Feature createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] Feature updateTime + * @property {Object.|null} [labels] Feature labels + * @property {string|null} [etag] Feature etag + * @property {boolean|null} [disableMonitoring] Feature disableMonitoring + * @property {Array.|null} [monitoringStatsAnomalies] Feature monitoringStatsAnomalies + * @property {string|null} [versionColumnName] Feature versionColumnName + * @property {string|null} [pointOfContact] Feature pointOfContact + */ + + /** + * Constructs a new Feature. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a Feature. + * @implements IFeature + * @constructor + * @param {google.cloud.aiplatform.v1.IFeature=} [properties] Properties to set + */ + function Feature(properties) { + this.labels = {}; + this.monitoringStatsAnomalies = []; + 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]]; + } + + /** + * Feature name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.Feature + * @instance + */ + Feature.prototype.name = ""; + + /** + * Feature description. + * @member {string} description + * @memberof google.cloud.aiplatform.v1.Feature + * @instance + */ + Feature.prototype.description = ""; + + /** + * Feature valueType. + * @member {google.cloud.aiplatform.v1.Feature.ValueType} valueType + * @memberof google.cloud.aiplatform.v1.Feature + * @instance + */ + Feature.prototype.valueType = 0; + + /** + * Feature createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1.Feature + * @instance + */ + Feature.prototype.createTime = null; + + /** + * Feature updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1.Feature + * @instance + */ + Feature.prototype.updateTime = null; + + /** + * Feature labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1.Feature + * @instance + */ + Feature.prototype.labels = $util.emptyObject; + + /** + * Feature etag. + * @member {string} etag + * @memberof google.cloud.aiplatform.v1.Feature + * @instance + */ + Feature.prototype.etag = ""; + + /** + * Feature disableMonitoring. + * @member {boolean} disableMonitoring + * @memberof google.cloud.aiplatform.v1.Feature + * @instance + */ + Feature.prototype.disableMonitoring = false; + + /** + * Feature monitoringStatsAnomalies. + * @member {Array.} monitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1.Feature + * @instance + */ + Feature.prototype.monitoringStatsAnomalies = $util.emptyArray; + + /** + * Feature versionColumnName. + * @member {string} versionColumnName + * @memberof google.cloud.aiplatform.v1.Feature + * @instance + */ + Feature.prototype.versionColumnName = ""; + + /** + * Feature pointOfContact. + * @member {string} pointOfContact + * @memberof google.cloud.aiplatform.v1.Feature + * @instance + */ + Feature.prototype.pointOfContact = ""; + + /** + * Creates a new Feature instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.Feature + * @static + * @param {google.cloud.aiplatform.v1.IFeature=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.Feature} Feature instance + */ + Feature.create = function create(properties) { + return new Feature(properties); + }; + + /** + * Encodes the specified Feature message. Does not implicitly {@link google.cloud.aiplatform.v1.Feature.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.Feature + * @static + * @param {google.cloud.aiplatform.v1.IFeature} message Feature message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Feature.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.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); + if (message.valueType != null && Object.hasOwnProperty.call(message, "valueType")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.valueType); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 5, wireType 2 =*/42).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 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.etag); + if (message.monitoringStatsAnomalies != null && message.monitoringStatsAnomalies.length) + for (var i = 0; i < message.monitoringStatsAnomalies.length; ++i) + $root.google.cloud.aiplatform.v1.Feature.MonitoringStatsAnomaly.encode(message.monitoringStatsAnomalies[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.disableMonitoring != null && Object.hasOwnProperty.call(message, "disableMonitoring")) + writer.uint32(/* id 12, wireType 0 =*/96).bool(message.disableMonitoring); + if (message.versionColumnName != null && Object.hasOwnProperty.call(message, "versionColumnName")) + writer.uint32(/* id 106, wireType 2 =*/850).string(message.versionColumnName); + if (message.pointOfContact != null && Object.hasOwnProperty.call(message, "pointOfContact")) + writer.uint32(/* id 107, wireType 2 =*/858).string(message.pointOfContact); + return writer; + }; + + /** + * Encodes the specified Feature message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Feature.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.Feature + * @static + * @param {google.cloud.aiplatform.v1.IFeature} message Feature message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Feature.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Feature message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.Feature + * @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.Feature} Feature + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Feature.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.Feature(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.description = reader.string(); + break; + } + case 3: { + message.valueType = reader.int32(); + break; + } + case 4: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 5: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 6: { + 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 7: { + message.etag = reader.string(); + break; + } + case 12: { + message.disableMonitoring = reader.bool(); + break; + } + case 11: { + if (!(message.monitoringStatsAnomalies && message.monitoringStatsAnomalies.length)) + message.monitoringStatsAnomalies = []; + message.monitoringStatsAnomalies.push($root.google.cloud.aiplatform.v1.Feature.MonitoringStatsAnomaly.decode(reader, reader.uint32())); + break; + } + case 106: { + message.versionColumnName = reader.string(); + break; + } + case 107: { + message.pointOfContact = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Feature message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.Feature + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.Feature} Feature + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Feature.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Feature message. + * @function verify + * @memberof google.cloud.aiplatform.v1.Feature + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Feature.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.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.valueType != null && message.hasOwnProperty("valueType")) + switch (message.valueType) { + default: + return "valueType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 9: + case 10: + case 11: + case 12: + case 13: case 14: break; } @@ -63418,6 +91657,7 @@ * @interface IBigQuery * @property {google.cloud.aiplatform.v1.IBigQuerySource|null} [bigQuerySource] BigQuery bigQuerySource * @property {Array.|null} [entityIdColumns] BigQuery entityIdColumns + * @property {google.cloud.aiplatform.v1.FeatureGroup.BigQuery.ITimeSeries|null} [timeSeries] BigQuery timeSeries */ /** @@ -63452,6 +91692,14 @@ */ BigQuery.prototype.entityIdColumns = $util.emptyArray; + /** + * BigQuery timeSeries. + * @member {google.cloud.aiplatform.v1.FeatureGroup.BigQuery.ITimeSeries|null|undefined} timeSeries + * @memberof google.cloud.aiplatform.v1.FeatureGroup.BigQuery + * @instance + */ + BigQuery.prototype.timeSeries = null; + /** * Creates a new BigQuery instance using the specified properties. * @function create @@ -63481,6 +91729,8 @@ if (message.entityIdColumns != null && message.entityIdColumns.length) for (var i = 0; i < message.entityIdColumns.length; ++i) writer.uint32(/* id 2, wireType 2 =*/18).string(message.entityIdColumns[i]); + if (message.timeSeries != null && Object.hasOwnProperty.call(message, "timeSeries")) + $root.google.cloud.aiplatform.v1.FeatureGroup.BigQuery.TimeSeries.encode(message.timeSeries, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; @@ -63525,6 +91775,10 @@ message.entityIdColumns.push(reader.string()); break; } + case 4: { + message.timeSeries = $root.google.cloud.aiplatform.v1.FeatureGroup.BigQuery.TimeSeries.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -63572,6 +91826,11 @@ if (!$util.isString(message.entityIdColumns[i])) return "entityIdColumns: string[] expected"; } + if (message.timeSeries != null && message.hasOwnProperty("timeSeries")) { + var error = $root.google.cloud.aiplatform.v1.FeatureGroup.BigQuery.TimeSeries.verify(message.timeSeries); + if (error) + return "timeSeries." + error; + } return null; }; @@ -63599,6 +91858,11 @@ for (var i = 0; i < object.entityIdColumns.length; ++i) message.entityIdColumns[i] = String(object.entityIdColumns[i]); } + if (object.timeSeries != null) { + if (typeof object.timeSeries !== "object") + throw TypeError(".google.cloud.aiplatform.v1.FeatureGroup.BigQuery.timeSeries: object expected"); + message.timeSeries = $root.google.cloud.aiplatform.v1.FeatureGroup.BigQuery.TimeSeries.fromObject(object.timeSeries); + } return message; }; @@ -63617,8 +91881,10 @@ var object = {}; if (options.arrays || options.defaults) object.entityIdColumns = []; - if (options.defaults) + if (options.defaults) { object.bigQuerySource = null; + object.timeSeries = null; + } if (message.bigQuerySource != null && message.hasOwnProperty("bigQuerySource")) object.bigQuerySource = $root.google.cloud.aiplatform.v1.BigQuerySource.toObject(message.bigQuerySource, options); if (message.entityIdColumns && message.entityIdColumns.length) { @@ -63626,6 +91892,8 @@ for (var j = 0; j < message.entityIdColumns.length; ++j) object.entityIdColumns[j] = message.entityIdColumns[j]; } + if (message.timeSeries != null && message.hasOwnProperty("timeSeries")) + object.timeSeries = $root.google.cloud.aiplatform.v1.FeatureGroup.BigQuery.TimeSeries.toObject(message.timeSeries, options); return object; }; @@ -63655,6 +91923,209 @@ return typeUrlPrefix + "/google.cloud.aiplatform.v1.FeatureGroup.BigQuery"; }; + BigQuery.TimeSeries = (function() { + + /** + * Properties of a TimeSeries. + * @memberof google.cloud.aiplatform.v1.FeatureGroup.BigQuery + * @interface ITimeSeries + * @property {string|null} [timestampColumn] TimeSeries timestampColumn + */ + + /** + * Constructs a new TimeSeries. + * @memberof google.cloud.aiplatform.v1.FeatureGroup.BigQuery + * @classdesc Represents a TimeSeries. + * @implements ITimeSeries + * @constructor + * @param {google.cloud.aiplatform.v1.FeatureGroup.BigQuery.ITimeSeries=} [properties] Properties to set + */ + function TimeSeries(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]]; + } + + /** + * TimeSeries timestampColumn. + * @member {string} timestampColumn + * @memberof google.cloud.aiplatform.v1.FeatureGroup.BigQuery.TimeSeries + * @instance + */ + TimeSeries.prototype.timestampColumn = ""; + + /** + * Creates a new TimeSeries instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.FeatureGroup.BigQuery.TimeSeries + * @static + * @param {google.cloud.aiplatform.v1.FeatureGroup.BigQuery.ITimeSeries=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.FeatureGroup.BigQuery.TimeSeries} TimeSeries instance + */ + TimeSeries.create = function create(properties) { + return new TimeSeries(properties); + }; + + /** + * Encodes the specified TimeSeries message. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureGroup.BigQuery.TimeSeries.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.FeatureGroup.BigQuery.TimeSeries + * @static + * @param {google.cloud.aiplatform.v1.FeatureGroup.BigQuery.ITimeSeries} message TimeSeries message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TimeSeries.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.timestampColumn != null && Object.hasOwnProperty.call(message, "timestampColumn")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.timestampColumn); + return writer; + }; + + /** + * Encodes the specified TimeSeries message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FeatureGroup.BigQuery.TimeSeries.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.FeatureGroup.BigQuery.TimeSeries + * @static + * @param {google.cloud.aiplatform.v1.FeatureGroup.BigQuery.ITimeSeries} message TimeSeries message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TimeSeries.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TimeSeries message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.FeatureGroup.BigQuery.TimeSeries + * @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.FeatureGroup.BigQuery.TimeSeries} TimeSeries + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TimeSeries.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.FeatureGroup.BigQuery.TimeSeries(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.timestampColumn = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TimeSeries message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.FeatureGroup.BigQuery.TimeSeries + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.FeatureGroup.BigQuery.TimeSeries} TimeSeries + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TimeSeries.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TimeSeries message. + * @function verify + * @memberof google.cloud.aiplatform.v1.FeatureGroup.BigQuery.TimeSeries + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TimeSeries.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.timestampColumn != null && message.hasOwnProperty("timestampColumn")) + if (!$util.isString(message.timestampColumn)) + return "timestampColumn: string expected"; + return null; + }; + + /** + * Creates a TimeSeries message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.FeatureGroup.BigQuery.TimeSeries + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.FeatureGroup.BigQuery.TimeSeries} TimeSeries + */ + TimeSeries.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.FeatureGroup.BigQuery.TimeSeries) + return object; + var message = new $root.google.cloud.aiplatform.v1.FeatureGroup.BigQuery.TimeSeries(); + if (object.timestampColumn != null) + message.timestampColumn = String(object.timestampColumn); + return message; + }; + + /** + * Creates a plain object from a TimeSeries message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.FeatureGroup.BigQuery.TimeSeries + * @static + * @param {google.cloud.aiplatform.v1.FeatureGroup.BigQuery.TimeSeries} message TimeSeries + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TimeSeries.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.timestampColumn = ""; + if (message.timestampColumn != null && message.hasOwnProperty("timestampColumn")) + object.timestampColumn = message.timestampColumn; + return object; + }; + + /** + * Converts this TimeSeries to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.FeatureGroup.BigQuery.TimeSeries + * @instance + * @returns {Object.} JSON object + */ + TimeSeries.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for TimeSeries + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.FeatureGroup.BigQuery.TimeSeries + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TimeSeries.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.FeatureGroup.BigQuery.TimeSeries"; + }; + + return TimeSeries; + })(); + return BigQuery; })(); @@ -63677,6 +92148,8 @@ * @property {google.cloud.aiplatform.v1.FeatureOnlineStore.State|null} [state] FeatureOnlineStore state * @property {google.cloud.aiplatform.v1.FeatureOnlineStore.IDedicatedServingEndpoint|null} [dedicatedServingEndpoint] FeatureOnlineStore dedicatedServingEndpoint * @property {google.cloud.aiplatform.v1.IEncryptionSpec|null} [encryptionSpec] FeatureOnlineStore encryptionSpec + * @property {boolean|null} [satisfiesPzs] FeatureOnlineStore satisfiesPzs + * @property {boolean|null} [satisfiesPzi] FeatureOnlineStore satisfiesPzi */ /** @@ -63775,6 +92248,22 @@ */ FeatureOnlineStore.prototype.encryptionSpec = null; + /** + * FeatureOnlineStore satisfiesPzs. + * @member {boolean} satisfiesPzs + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStore + * @instance + */ + FeatureOnlineStore.prototype.satisfiesPzs = false; + + /** + * FeatureOnlineStore satisfiesPzi. + * @member {boolean} satisfiesPzi + * @memberof google.cloud.aiplatform.v1.FeatureOnlineStore + * @instance + */ + FeatureOnlineStore.prototype.satisfiesPzi = false; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -63834,6 +92323,10 @@ $root.google.cloud.aiplatform.v1.FeatureOnlineStore.Optimized.encode(message.optimized, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) $root.google.cloud.aiplatform.v1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.satisfiesPzs != null && Object.hasOwnProperty.call(message, "satisfiesPzs")) + writer.uint32(/* id 15, wireType 0 =*/120).bool(message.satisfiesPzs); + if (message.satisfiesPzi != null && Object.hasOwnProperty.call(message, "satisfiesPzi")) + writer.uint32(/* id 16, wireType 0 =*/128).bool(message.satisfiesPzi); return writer; }; @@ -63927,6 +92420,14 @@ message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.decode(reader, reader.uint32()); break; } + case 15: { + message.satisfiesPzs = reader.bool(); + break; + } + case 16: { + message.satisfiesPzi = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -64024,6 +92525,12 @@ if (error) return "encryptionSpec." + error; } + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) + if (typeof message.satisfiesPzs !== "boolean") + return "satisfiesPzs: boolean expected"; + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) + if (typeof message.satisfiesPzi !== "boolean") + return "satisfiesPzi: boolean expected"; return null; }; @@ -64100,6 +92607,10 @@ throw TypeError(".google.cloud.aiplatform.v1.FeatureOnlineStore.encryptionSpec: object expected"); message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.fromObject(object.encryptionSpec); } + if (object.satisfiesPzs != null) + message.satisfiesPzs = Boolean(object.satisfiesPzs); + if (object.satisfiesPzi != null) + message.satisfiesPzi = Boolean(object.satisfiesPzi); return message; }; @@ -64126,6 +92637,8 @@ object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; object.dedicatedServingEndpoint = null; object.encryptionSpec = null; + object.satisfiesPzs = false; + object.satisfiesPzi = false; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -64157,6 +92670,10 @@ } if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) object.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.toObject(message.encryptionSpec, options); + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) + object.satisfiesPzs = message.satisfiesPzs; + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) + object.satisfiesPzi = message.satisfiesPzi; return object; }; @@ -70488,6 +99005,8 @@ * @property {Object.|null} [labels] FeatureView labels * @property {google.cloud.aiplatform.v1.FeatureView.ISyncConfig|null} [syncConfig] FeatureView syncConfig * @property {google.cloud.aiplatform.v1.FeatureView.IIndexConfig|null} [indexConfig] FeatureView indexConfig + * @property {boolean|null} [satisfiesPzs] FeatureView satisfiesPzs + * @property {boolean|null} [satisfiesPzi] FeatureView satisfiesPzi */ /** @@ -70578,6 +99097,22 @@ */ FeatureView.prototype.indexConfig = null; + /** + * FeatureView satisfiesPzs. + * @member {boolean} satisfiesPzs + * @memberof google.cloud.aiplatform.v1.FeatureView + * @instance + */ + FeatureView.prototype.satisfiesPzs = false; + + /** + * FeatureView satisfiesPzi. + * @member {boolean} satisfiesPzi + * @memberof google.cloud.aiplatform.v1.FeatureView + * @instance + */ + FeatureView.prototype.satisfiesPzi = false; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -70635,6 +99170,10 @@ $root.google.cloud.aiplatform.v1.FeatureView.FeatureRegistrySource.encode(message.featureRegistrySource, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); if (message.indexConfig != null && Object.hasOwnProperty.call(message, "indexConfig")) $root.google.cloud.aiplatform.v1.FeatureView.IndexConfig.encode(message.indexConfig, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); + if (message.satisfiesPzs != null && Object.hasOwnProperty.call(message, "satisfiesPzs")) + writer.uint32(/* id 19, wireType 0 =*/152).bool(message.satisfiesPzs); + if (message.satisfiesPzi != null && Object.hasOwnProperty.call(message, "satisfiesPzi")) + writer.uint32(/* id 20, wireType 0 =*/160).bool(message.satisfiesPzi); return writer; }; @@ -70724,6 +99263,14 @@ message.indexConfig = $root.google.cloud.aiplatform.v1.FeatureView.IndexConfig.decode(reader, reader.uint32()); break; } + case 19: { + message.satisfiesPzs = reader.bool(); + break; + } + case 20: { + message.satisfiesPzi = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -70812,6 +99359,12 @@ if (error) return "indexConfig." + error; } + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) + if (typeof message.satisfiesPzs !== "boolean") + return "satisfiesPzs: boolean expected"; + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) + if (typeof message.satisfiesPzi !== "boolean") + return "satisfiesPzi: boolean expected"; return null; }; @@ -70868,6 +99421,10 @@ throw TypeError(".google.cloud.aiplatform.v1.FeatureView.indexConfig: object expected"); message.indexConfig = $root.google.cloud.aiplatform.v1.FeatureView.IndexConfig.fromObject(object.indexConfig); } + if (object.satisfiesPzs != null) + message.satisfiesPzs = Boolean(object.satisfiesPzs); + if (object.satisfiesPzi != null) + message.satisfiesPzi = Boolean(object.satisfiesPzi); return message; }; @@ -70893,6 +99450,8 @@ object.etag = ""; object.syncConfig = null; object.indexConfig = null; + object.satisfiesPzs = false; + object.satisfiesPzi = false; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -70922,6 +99481,10 @@ } if (message.indexConfig != null && message.hasOwnProperty("indexConfig")) object.indexConfig = $root.google.cloud.aiplatform.v1.FeatureView.IndexConfig.toObject(message.indexConfig, options); + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) + object.satisfiesPzs = message.satisfiesPzs; + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) + object.satisfiesPzi = message.satisfiesPzi; return object; }; @@ -72794,6 +101357,8 @@ * @property {google.type.IInterval|null} [runTime] FeatureViewSync runTime * @property {google.rpc.IStatus|null} [finalStatus] FeatureViewSync finalStatus * @property {google.cloud.aiplatform.v1.FeatureViewSync.ISyncSummary|null} [syncSummary] FeatureViewSync syncSummary + * @property {boolean|null} [satisfiesPzs] FeatureViewSync satisfiesPzs + * @property {boolean|null} [satisfiesPzi] FeatureViewSync satisfiesPzi */ /** @@ -72851,6 +101416,22 @@ */ FeatureViewSync.prototype.syncSummary = null; + /** + * FeatureViewSync satisfiesPzs. + * @member {boolean} satisfiesPzs + * @memberof google.cloud.aiplatform.v1.FeatureViewSync + * @instance + */ + FeatureViewSync.prototype.satisfiesPzs = false; + + /** + * FeatureViewSync satisfiesPzi. + * @member {boolean} satisfiesPzi + * @memberof google.cloud.aiplatform.v1.FeatureViewSync + * @instance + */ + FeatureViewSync.prototype.satisfiesPzi = false; + /** * Creates a new FeatureViewSync instance using the specified properties. * @function create @@ -72885,6 +101466,10 @@ $root.google.type.Interval.encode(message.runTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); if (message.syncSummary != null && Object.hasOwnProperty.call(message, "syncSummary")) $root.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary.encode(message.syncSummary, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.satisfiesPzs != null && Object.hasOwnProperty.call(message, "satisfiesPzs")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.satisfiesPzs); + if (message.satisfiesPzi != null && Object.hasOwnProperty.call(message, "satisfiesPzi")) + writer.uint32(/* id 8, wireType 0 =*/64).bool(message.satisfiesPzi); return writer; }; @@ -72939,6 +101524,14 @@ message.syncSummary = $root.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary.decode(reader, reader.uint32()); break; } + case 7: { + message.satisfiesPzs = reader.bool(); + break; + } + case 8: { + message.satisfiesPzi = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -72997,6 +101590,12 @@ if (error) return "syncSummary." + error; } + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) + if (typeof message.satisfiesPzs !== "boolean") + return "satisfiesPzs: boolean expected"; + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) + if (typeof message.satisfiesPzi !== "boolean") + return "satisfiesPzi: boolean expected"; return null; }; @@ -73034,6 +101633,10 @@ throw TypeError(".google.cloud.aiplatform.v1.FeatureViewSync.syncSummary: object expected"); message.syncSummary = $root.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary.fromObject(object.syncSummary); } + if (object.satisfiesPzs != null) + message.satisfiesPzs = Boolean(object.satisfiesPzs); + if (object.satisfiesPzi != null) + message.satisfiesPzi = Boolean(object.satisfiesPzi); return message; }; @@ -73056,6 +101659,8 @@ object.finalStatus = null; object.runTime = null; object.syncSummary = null; + object.satisfiesPzs = false; + object.satisfiesPzi = false; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -73067,6 +101672,10 @@ object.runTime = $root.google.type.Interval.toObject(message.runTime, options); if (message.syncSummary != null && message.hasOwnProperty("syncSummary")) object.syncSummary = $root.google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary.toObject(message.syncSummary, options); + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) + object.satisfiesPzs = message.satisfiesPzs; + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) + object.satisfiesPzi = message.satisfiesPzi; return object; }; @@ -100336,6 +128945,8 @@ * @property {google.cloud.aiplatform.v1.Featurestore.State|null} [state] Featurestore state * @property {number|null} [onlineStorageTtlDays] Featurestore onlineStorageTtlDays * @property {google.cloud.aiplatform.v1.IEncryptionSpec|null} [encryptionSpec] Featurestore encryptionSpec + * @property {boolean|null} [satisfiesPzs] Featurestore satisfiesPzs + * @property {boolean|null} [satisfiesPzi] Featurestore satisfiesPzi */ /** @@ -100426,6 +129037,22 @@ */ Featurestore.prototype.encryptionSpec = null; + /** + * Featurestore satisfiesPzs. + * @member {boolean} satisfiesPzs + * @memberof google.cloud.aiplatform.v1.Featurestore + * @instance + */ + Featurestore.prototype.satisfiesPzs = false; + + /** + * Featurestore satisfiesPzi. + * @member {boolean} satisfiesPzi + * @memberof google.cloud.aiplatform.v1.Featurestore + * @instance + */ + Featurestore.prototype.satisfiesPzi = false; + /** * Creates a new Featurestore instance using the specified properties. * @function create @@ -100469,6 +129096,10 @@ $root.google.cloud.aiplatform.v1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); if (message.onlineStorageTtlDays != null && Object.hasOwnProperty.call(message, "onlineStorageTtlDays")) writer.uint32(/* id 13, wireType 0 =*/104).int32(message.onlineStorageTtlDays); + if (message.satisfiesPzs != null && Object.hasOwnProperty.call(message, "satisfiesPzs")) + writer.uint32(/* id 14, wireType 0 =*/112).bool(message.satisfiesPzs); + if (message.satisfiesPzi != null && Object.hasOwnProperty.call(message, "satisfiesPzi")) + writer.uint32(/* id 15, wireType 0 =*/120).bool(message.satisfiesPzi); return writer; }; @@ -100558,6 +129189,14 @@ message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.decode(reader, reader.uint32()); break; } + case 14: { + message.satisfiesPzs = reader.bool(); + break; + } + case 15: { + message.satisfiesPzi = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -100639,6 +129278,12 @@ if (error) return "encryptionSpec." + error; } + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) + if (typeof message.satisfiesPzs !== "boolean") + return "satisfiesPzs: boolean expected"; + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) + if (typeof message.satisfiesPzi !== "boolean") + return "satisfiesPzi: boolean expected"; return null; }; @@ -100707,6 +129352,10 @@ throw TypeError(".google.cloud.aiplatform.v1.Featurestore.encryptionSpec: object expected"); message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.fromObject(object.encryptionSpec); } + if (object.satisfiesPzs != null) + message.satisfiesPzs = Boolean(object.satisfiesPzs); + if (object.satisfiesPzi != null) + message.satisfiesPzi = Boolean(object.satisfiesPzi); return message; }; @@ -100734,6 +129383,8 @@ object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; object.encryptionSpec = null; object.onlineStorageTtlDays = 0; + object.satisfiesPzs = false; + object.satisfiesPzi = false; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -100757,6 +129408,10 @@ object.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.toObject(message.encryptionSpec, options); if (message.onlineStorageTtlDays != null && message.hasOwnProperty("onlineStorageTtlDays")) object.onlineStorageTtlDays = message.onlineStorageTtlDays; + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) + object.satisfiesPzs = message.satisfiesPzs; + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) + object.satisfiesPzi = message.satisfiesPzi; return object; }; @@ -104277,6 +132932,8 @@ * @property {google.cloud.aiplatform.v1.ISupervisedTuningDatasetDistribution|null} [userOutputTokenDistribution] SupervisedTuningDataStats userOutputTokenDistribution * @property {google.cloud.aiplatform.v1.ISupervisedTuningDatasetDistribution|null} [userMessagePerExampleDistribution] SupervisedTuningDataStats userMessagePerExampleDistribution * @property {Array.|null} [userDatasetExamples] SupervisedTuningDataStats userDatasetExamples + * @property {number|Long|null} [totalTruncatedExampleCount] SupervisedTuningDataStats totalTruncatedExampleCount + * @property {Array.|null} [truncatedExampleIndices] SupervisedTuningDataStats truncatedExampleIndices */ /** @@ -104289,6 +132946,7 @@ */ function SupervisedTuningDataStats(properties) { this.userDatasetExamples = []; + this.truncatedExampleIndices = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -104367,6 +133025,22 @@ */ SupervisedTuningDataStats.prototype.userDatasetExamples = $util.emptyArray; + /** + * SupervisedTuningDataStats totalTruncatedExampleCount. + * @member {number|Long} totalTruncatedExampleCount + * @memberof google.cloud.aiplatform.v1.SupervisedTuningDataStats + * @instance + */ + SupervisedTuningDataStats.prototype.totalTruncatedExampleCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * SupervisedTuningDataStats truncatedExampleIndices. + * @member {Array.} truncatedExampleIndices + * @memberof google.cloud.aiplatform.v1.SupervisedTuningDataStats + * @instance + */ + SupervisedTuningDataStats.prototype.truncatedExampleIndices = $util.emptyArray; + /** * Creates a new SupervisedTuningDataStats instance using the specified properties. * @function create @@ -104410,6 +133084,14 @@ $root.google.cloud.aiplatform.v1.Content.encode(message.userDatasetExamples[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); if (message.totalBillableTokenCount != null && Object.hasOwnProperty.call(message, "totalBillableTokenCount")) writer.uint32(/* id 9, wireType 0 =*/72).int64(message.totalBillableTokenCount); + if (message.totalTruncatedExampleCount != null && Object.hasOwnProperty.call(message, "totalTruncatedExampleCount")) + writer.uint32(/* id 10, wireType 0 =*/80).int64(message.totalTruncatedExampleCount); + if (message.truncatedExampleIndices != null && message.truncatedExampleIndices.length) { + writer.uint32(/* id 11, wireType 2 =*/90).fork(); + for (var i = 0; i < message.truncatedExampleIndices.length; ++i) + writer.int64(message.truncatedExampleIndices[i]); + writer.ldelim(); + } return writer; }; @@ -104482,6 +133164,21 @@ message.userDatasetExamples.push($root.google.cloud.aiplatform.v1.Content.decode(reader, reader.uint32())); break; } + case 10: { + message.totalTruncatedExampleCount = reader.int64(); + break; + } + case 11: { + if (!(message.truncatedExampleIndices && message.truncatedExampleIndices.length)) + message.truncatedExampleIndices = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.truncatedExampleIndices.push(reader.int64()); + } else + message.truncatedExampleIndices.push(reader.int64()); + break; + } default: reader.skipType(tag & 7); break; @@ -104556,6 +133253,16 @@ return "userDatasetExamples." + error; } } + if (message.totalTruncatedExampleCount != null && message.hasOwnProperty("totalTruncatedExampleCount")) + if (!$util.isInteger(message.totalTruncatedExampleCount) && !(message.totalTruncatedExampleCount && $util.isInteger(message.totalTruncatedExampleCount.low) && $util.isInteger(message.totalTruncatedExampleCount.high))) + return "totalTruncatedExampleCount: integer|Long expected"; + if (message.truncatedExampleIndices != null && message.hasOwnProperty("truncatedExampleIndices")) { + if (!Array.isArray(message.truncatedExampleIndices)) + return "truncatedExampleIndices: array expected"; + for (var i = 0; i < message.truncatedExampleIndices.length; ++i) + if (!$util.isInteger(message.truncatedExampleIndices[i]) && !(message.truncatedExampleIndices[i] && $util.isInteger(message.truncatedExampleIndices[i].low) && $util.isInteger(message.truncatedExampleIndices[i].high))) + return "truncatedExampleIndices: integer|Long[] expected"; + } return null; }; @@ -104641,6 +133348,29 @@ message.userDatasetExamples[i] = $root.google.cloud.aiplatform.v1.Content.fromObject(object.userDatasetExamples[i]); } } + if (object.totalTruncatedExampleCount != null) + if ($util.Long) + (message.totalTruncatedExampleCount = $util.Long.fromValue(object.totalTruncatedExampleCount)).unsigned = false; + else if (typeof object.totalTruncatedExampleCount === "string") + message.totalTruncatedExampleCount = parseInt(object.totalTruncatedExampleCount, 10); + else if (typeof object.totalTruncatedExampleCount === "number") + message.totalTruncatedExampleCount = object.totalTruncatedExampleCount; + else if (typeof object.totalTruncatedExampleCount === "object") + message.totalTruncatedExampleCount = new $util.LongBits(object.totalTruncatedExampleCount.low >>> 0, object.totalTruncatedExampleCount.high >>> 0).toNumber(); + if (object.truncatedExampleIndices) { + if (!Array.isArray(object.truncatedExampleIndices)) + throw TypeError(".google.cloud.aiplatform.v1.SupervisedTuningDataStats.truncatedExampleIndices: array expected"); + message.truncatedExampleIndices = []; + for (var i = 0; i < object.truncatedExampleIndices.length; ++i) + if ($util.Long) + (message.truncatedExampleIndices[i] = $util.Long.fromValue(object.truncatedExampleIndices[i])).unsigned = false; + else if (typeof object.truncatedExampleIndices[i] === "string") + message.truncatedExampleIndices[i] = parseInt(object.truncatedExampleIndices[i], 10); + else if (typeof object.truncatedExampleIndices[i] === "number") + message.truncatedExampleIndices[i] = object.truncatedExampleIndices[i]; + else if (typeof object.truncatedExampleIndices[i] === "object") + message.truncatedExampleIndices[i] = new $util.LongBits(object.truncatedExampleIndices[i].low >>> 0, object.truncatedExampleIndices[i].high >>> 0).toNumber(); + } return message; }; @@ -104657,8 +133387,10 @@ if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) + if (options.arrays || options.defaults) { object.userDatasetExamples = []; + object.truncatedExampleIndices = []; + } if (options.defaults) { if ($util.Long) { var long = new $util.Long(0, 0, false); @@ -104688,6 +133420,11 @@ object.totalBillableTokenCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else object.totalBillableTokenCount = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.totalTruncatedExampleCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.totalTruncatedExampleCount = options.longs === String ? "0" : 0; } if (message.tuningDatasetExampleCount != null && message.hasOwnProperty("tuningDatasetExampleCount")) if (typeof message.tuningDatasetExampleCount === "number") @@ -104725,6 +133462,19 @@ object.totalBillableTokenCount = options.longs === String ? String(message.totalBillableTokenCount) : message.totalBillableTokenCount; else object.totalBillableTokenCount = options.longs === String ? $util.Long.prototype.toString.call(message.totalBillableTokenCount) : options.longs === Number ? new $util.LongBits(message.totalBillableTokenCount.low >>> 0, message.totalBillableTokenCount.high >>> 0).toNumber() : message.totalBillableTokenCount; + if (message.totalTruncatedExampleCount != null && message.hasOwnProperty("totalTruncatedExampleCount")) + if (typeof message.totalTruncatedExampleCount === "number") + object.totalTruncatedExampleCount = options.longs === String ? String(message.totalTruncatedExampleCount) : message.totalTruncatedExampleCount; + else + object.totalTruncatedExampleCount = options.longs === String ? $util.Long.prototype.toString.call(message.totalTruncatedExampleCount) : options.longs === Number ? new $util.LongBits(message.totalTruncatedExampleCount.low >>> 0, message.totalTruncatedExampleCount.high >>> 0).toNumber() : message.totalTruncatedExampleCount; + if (message.truncatedExampleIndices && message.truncatedExampleIndices.length) { + object.truncatedExampleIndices = []; + for (var j = 0; j < message.truncatedExampleIndices.length; ++j) + if (typeof message.truncatedExampleIndices[j] === "number") + object.truncatedExampleIndices[j] = options.longs === String ? String(message.truncatedExampleIndices[j]) : message.truncatedExampleIndices[j]; + else + object.truncatedExampleIndices[j] = options.longs === String ? $util.Long.prototype.toString.call(message.truncatedExampleIndices[j]) : options.longs === Number ? new $util.LongBits(message.truncatedExampleIndices[j].low >>> 0, message.truncatedExampleIndices[j].high >>> 0).toNumber() : message.truncatedExampleIndices[j]; + } return object; }; @@ -105579,6 +134329,8 @@ * @property {google.rpc.IStatus|null} [error] HyperparameterTuningJob error * @property {Object.|null} [labels] HyperparameterTuningJob labels * @property {google.cloud.aiplatform.v1.IEncryptionSpec|null} [encryptionSpec] HyperparameterTuningJob encryptionSpec + * @property {boolean|null} [satisfiesPzs] HyperparameterTuningJob satisfiesPzs + * @property {boolean|null} [satisfiesPzi] HyperparameterTuningJob satisfiesPzi */ /** @@ -105726,6 +134478,22 @@ */ HyperparameterTuningJob.prototype.encryptionSpec = null; + /** + * HyperparameterTuningJob satisfiesPzs. + * @member {boolean} satisfiesPzs + * @memberof google.cloud.aiplatform.v1.HyperparameterTuningJob + * @instance + */ + HyperparameterTuningJob.prototype.satisfiesPzs = false; + + /** + * HyperparameterTuningJob satisfiesPzi. + * @member {boolean} satisfiesPzi + * @memberof google.cloud.aiplatform.v1.HyperparameterTuningJob + * @instance + */ + HyperparameterTuningJob.prototype.satisfiesPzi = false; + /** * Creates a new HyperparameterTuningJob instance using the specified properties. * @function create @@ -105784,6 +134552,10 @@ writer.uint32(/* id 16, wireType 2 =*/130).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) $root.google.cloud.aiplatform.v1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); + if (message.satisfiesPzs != null && Object.hasOwnProperty.call(message, "satisfiesPzs")) + writer.uint32(/* id 19, wireType 0 =*/152).bool(message.satisfiesPzs); + if (message.satisfiesPzi != null && Object.hasOwnProperty.call(message, "satisfiesPzi")) + writer.uint32(/* id 20, wireType 0 =*/160).bool(message.satisfiesPzi); return writer; }; @@ -105903,6 +134675,14 @@ message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.decode(reader, reader.uint32()); break; } + case 19: { + message.satisfiesPzs = reader.bool(); + break; + } + case 20: { + message.satisfiesPzi = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -106028,6 +134808,12 @@ if (error) return "encryptionSpec." + error; } + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) + if (typeof message.satisfiesPzs !== "boolean") + return "satisfiesPzs: boolean expected"; + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) + if (typeof message.satisfiesPzi !== "boolean") + return "satisfiesPzi: boolean expected"; return null; }; @@ -106166,6 +134952,10 @@ throw TypeError(".google.cloud.aiplatform.v1.HyperparameterTuningJob.encryptionSpec: object expected"); message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.fromObject(object.encryptionSpec); } + if (object.satisfiesPzs != null) + message.satisfiesPzs = Boolean(object.satisfiesPzs); + if (object.satisfiesPzi != null) + message.satisfiesPzi = Boolean(object.satisfiesPzi); return message; }; @@ -106201,6 +134991,8 @@ object.updateTime = null; object.error = null; object.encryptionSpec = null; + object.satisfiesPzs = false; + object.satisfiesPzi = false; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -106241,6 +135033,10 @@ } if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) object.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.toObject(message.encryptionSpec, options); + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) + object.satisfiesPzs = message.satisfiesPzs; + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) + object.satisfiesPzi = message.satisfiesPzi; return object; }; @@ -113473,6 +142269,8 @@ * @property {google.cloud.aiplatform.v1.IIndexStats|null} [indexStats] Index indexStats * @property {google.cloud.aiplatform.v1.Index.IndexUpdateMethod|null} [indexUpdateMethod] Index indexUpdateMethod * @property {google.cloud.aiplatform.v1.IEncryptionSpec|null} [encryptionSpec] Index encryptionSpec + * @property {boolean|null} [satisfiesPzs] Index satisfiesPzs + * @property {boolean|null} [satisfiesPzi] Index satisfiesPzi */ /** @@ -113596,6 +142394,22 @@ */ Index.prototype.encryptionSpec = null; + /** + * Index satisfiesPzs. + * @member {boolean} satisfiesPzs + * @memberof google.cloud.aiplatform.v1.Index + * @instance + */ + Index.prototype.satisfiesPzs = false; + + /** + * Index satisfiesPzi. + * @member {boolean} satisfiesPzi + * @memberof google.cloud.aiplatform.v1.Index + * @instance + */ + Index.prototype.satisfiesPzi = false; + /** * Creates a new Index instance using the specified properties. * @function create @@ -113648,6 +142462,10 @@ writer.uint32(/* id 16, wireType 0 =*/128).int32(message.indexUpdateMethod); if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) $root.google.cloud.aiplatform.v1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); + if (message.satisfiesPzs != null && Object.hasOwnProperty.call(message, "satisfiesPzs")) + writer.uint32(/* id 18, wireType 0 =*/144).bool(message.satisfiesPzs); + if (message.satisfiesPzi != null && Object.hasOwnProperty.call(message, "satisfiesPzi")) + writer.uint32(/* id 19, wireType 0 =*/152).bool(message.satisfiesPzi); return writer; }; @@ -113755,6 +142573,14 @@ message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.decode(reader, reader.uint32()); break; } + case 18: { + message.satisfiesPzs = reader.bool(); + break; + } + case 19: { + message.satisfiesPzi = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -113856,6 +142682,12 @@ if (error) return "encryptionSpec." + error; } + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) + if (typeof message.satisfiesPzs !== "boolean") + return "satisfiesPzs: boolean expected"; + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) + if (typeof message.satisfiesPzi !== "boolean") + return "satisfiesPzi: boolean expected"; return null; }; @@ -113943,6 +142775,10 @@ throw TypeError(".google.cloud.aiplatform.v1.Index.encryptionSpec: object expected"); message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.fromObject(object.encryptionSpec); } + if (object.satisfiesPzs != null) + message.satisfiesPzs = Boolean(object.satisfiesPzs); + if (object.satisfiesPzi != null) + message.satisfiesPzi = Boolean(object.satisfiesPzi); return message; }; @@ -113975,6 +142811,8 @@ object.indexStats = null; object.indexUpdateMethod = options.enums === String ? "INDEX_UPDATE_METHOD_UNSPECIFIED" : 0; object.encryptionSpec = null; + object.satisfiesPzs = false; + object.satisfiesPzi = false; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -114009,6 +142847,10 @@ object.indexUpdateMethod = options.enums === String ? $root.google.cloud.aiplatform.v1.Index.IndexUpdateMethod[message.indexUpdateMethod] === undefined ? message.indexUpdateMethod : $root.google.cloud.aiplatform.v1.Index.IndexUpdateMethod[message.indexUpdateMethod] : message.indexUpdateMethod; if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) object.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.toObject(message.encryptionSpec, options); + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) + object.satisfiesPzs = message.satisfiesPzs; + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) + object.satisfiesPzi = message.satisfiesPzi; return object; }; @@ -115928,6 +144770,8 @@ * @property {boolean|null} [publicEndpointEnabled] IndexEndpoint publicEndpointEnabled * @property {string|null} [publicEndpointDomainName] IndexEndpoint publicEndpointDomainName * @property {google.cloud.aiplatform.v1.IEncryptionSpec|null} [encryptionSpec] IndexEndpoint encryptionSpec + * @property {boolean|null} [satisfiesPzs] IndexEndpoint satisfiesPzs + * @property {boolean|null} [satisfiesPzi] IndexEndpoint satisfiesPzi */ /** @@ -116059,6 +144903,22 @@ */ IndexEndpoint.prototype.encryptionSpec = null; + /** + * IndexEndpoint satisfiesPzs. + * @member {boolean} satisfiesPzs + * @memberof google.cloud.aiplatform.v1.IndexEndpoint + * @instance + */ + IndexEndpoint.prototype.satisfiesPzs = false; + + /** + * IndexEndpoint satisfiesPzi. + * @member {boolean} satisfiesPzi + * @memberof google.cloud.aiplatform.v1.IndexEndpoint + * @instance + */ + IndexEndpoint.prototype.satisfiesPzi = false; + /** * Creates a new IndexEndpoint instance using the specified properties. * @function create @@ -116113,6 +144973,10 @@ writer.uint32(/* id 14, wireType 2 =*/114).string(message.publicEndpointDomainName); if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) $root.google.cloud.aiplatform.v1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); + if (message.satisfiesPzs != null && Object.hasOwnProperty.call(message, "satisfiesPzs")) + writer.uint32(/* id 17, wireType 0 =*/136).bool(message.satisfiesPzs); + if (message.satisfiesPzi != null && Object.hasOwnProperty.call(message, "satisfiesPzi")) + writer.uint32(/* id 18, wireType 0 =*/144).bool(message.satisfiesPzi); return writer; }; @@ -116224,6 +145088,14 @@ message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.decode(reader, reader.uint32()); break; } + case 17: { + message.satisfiesPzs = reader.bool(); + break; + } + case 18: { + message.satisfiesPzi = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -116320,6 +145192,12 @@ if (error) return "encryptionSpec." + error; } + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) + if (typeof message.satisfiesPzs !== "boolean") + return "satisfiesPzs: boolean expected"; + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) + if (typeof message.satisfiesPzi !== "boolean") + return "satisfiesPzi: boolean expected"; return null; }; @@ -116388,6 +145266,10 @@ throw TypeError(".google.cloud.aiplatform.v1.IndexEndpoint.encryptionSpec: object expected"); message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.fromObject(object.encryptionSpec); } + if (object.satisfiesPzs != null) + message.satisfiesPzs = Boolean(object.satisfiesPzs); + if (object.satisfiesPzi != null) + message.satisfiesPzi = Boolean(object.satisfiesPzi); return message; }; @@ -116421,6 +145303,8 @@ object.publicEndpointEnabled = false; object.publicEndpointDomainName = ""; object.encryptionSpec = null; + object.satisfiesPzs = false; + object.satisfiesPzi = false; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -116457,6 +145341,10 @@ object.publicEndpointDomainName = message.publicEndpointDomainName; if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) object.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.toObject(message.encryptionSpec, options); + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) + object.satisfiesPzs = message.satisfiesPzs; + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) + object.satisfiesPzi = message.satisfiesPzi; return object; }; @@ -137608,6 +166496,8 @@ * @property {google.cloud.aiplatform.v1.IEncryptionSpec|null} [encryptionSpec] ModelDeploymentMonitoringJob encryptionSpec * @property {boolean|null} [enableMonitoringPipelineLogs] ModelDeploymentMonitoringJob enableMonitoringPipelineLogs * @property {google.rpc.IStatus|null} [error] ModelDeploymentMonitoringJob error + * @property {boolean|null} [satisfiesPzs] ModelDeploymentMonitoringJob satisfiesPzs + * @property {boolean|null} [satisfiesPzi] ModelDeploymentMonitoringJob satisfiesPzi */ /** @@ -137812,6 +166702,22 @@ */ ModelDeploymentMonitoringJob.prototype.error = null; + /** + * ModelDeploymentMonitoringJob satisfiesPzs. + * @member {boolean} satisfiesPzs + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.satisfiesPzs = false; + + /** + * ModelDeploymentMonitoringJob satisfiesPzi. + * @member {boolean} satisfiesPzi + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.satisfiesPzi = false; + /** * Creates a new ModelDeploymentMonitoringJob instance using the specified properties. * @function create @@ -137885,6 +166791,10 @@ $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim(); if (message.latestMonitoringPipelineMetadata != null && Object.hasOwnProperty.call(message, "latestMonitoringPipelineMetadata")) $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.encode(message.latestMonitoringPipelineMetadata, writer.uint32(/* id 25, wireType 2 =*/202).fork()).ldelim(); + if (message.satisfiesPzs != null && Object.hasOwnProperty.call(message, "satisfiesPzs")) + writer.uint32(/* id 26, wireType 0 =*/208).bool(message.satisfiesPzs); + if (message.satisfiesPzi != null && Object.hasOwnProperty.call(message, "satisfiesPzi")) + writer.uint32(/* id 27, wireType 0 =*/216).bool(message.satisfiesPzi); return writer; }; @@ -138034,6 +166944,14 @@ message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); break; } + case 26: { + message.satisfiesPzs = reader.bool(); + break; + } + case 27: { + message.satisfiesPzi = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -138201,6 +167119,12 @@ if (error) return "error." + error; } + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) + if (typeof message.satisfiesPzs !== "boolean") + return "satisfiesPzs: boolean expected"; + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) + if (typeof message.satisfiesPzi !== "boolean") + return "satisfiesPzi: boolean expected"; return null; }; @@ -138395,6 +167319,10 @@ throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.error: object expected"); message.error = $root.google.rpc.Status.fromObject(object.error); } + if (object.satisfiesPzs != null) + message.satisfiesPzs = Boolean(object.satisfiesPzs); + if (object.satisfiesPzi != null) + message.satisfiesPzi = Boolean(object.satisfiesPzi); return message; }; @@ -138438,6 +167366,8 @@ object.enableMonitoringPipelineLogs = false; object.error = null; object.latestMonitoringPipelineMetadata = null; + object.satisfiesPzs = false; + object.satisfiesPzi = false; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -138495,6 +167425,10 @@ object.error = $root.google.rpc.Status.toObject(message.error, options); if (message.latestMonitoringPipelineMetadata != null && message.hasOwnProperty("latestMonitoringPipelineMetadata")) object.latestMonitoringPipelineMetadata = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.toObject(message.latestMonitoringPipelineMetadata, options); + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) + object.satisfiesPzs = message.satisfiesPzs; + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) + object.satisfiesPzi = message.satisfiesPzi; return object; }; @@ -143295,6 +172229,8 @@ * @property {Object.|null} [labels] NasJob labels * @property {google.cloud.aiplatform.v1.IEncryptionSpec|null} [encryptionSpec] NasJob encryptionSpec * @property {boolean|null} [enableRestrictedImageTraining] NasJob enableRestrictedImageTraining + * @property {boolean|null} [satisfiesPzs] NasJob satisfiesPzs + * @property {boolean|null} [satisfiesPzi] NasJob satisfiesPzi */ /** @@ -143417,6 +172353,22 @@ */ NasJob.prototype.enableRestrictedImageTraining = false; + /** + * NasJob satisfiesPzs. + * @member {boolean} satisfiesPzs + * @memberof google.cloud.aiplatform.v1.NasJob + * @instance + */ + NasJob.prototype.satisfiesPzs = false; + + /** + * NasJob satisfiesPzi. + * @member {boolean} satisfiesPzi + * @memberof google.cloud.aiplatform.v1.NasJob + * @instance + */ + NasJob.prototype.satisfiesPzi = false; + /** * Creates a new NasJob instance using the specified properties. * @function create @@ -143468,6 +172420,10 @@ $root.google.cloud.aiplatform.v1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); if (message.enableRestrictedImageTraining != null && Object.hasOwnProperty.call(message, "enableRestrictedImageTraining")) writer.uint32(/* id 14, wireType 0 =*/112).bool(message.enableRestrictedImageTraining); + if (message.satisfiesPzs != null && Object.hasOwnProperty.call(message, "satisfiesPzs")) + writer.uint32(/* id 15, wireType 0 =*/120).bool(message.satisfiesPzs); + if (message.satisfiesPzi != null && Object.hasOwnProperty.call(message, "satisfiesPzi")) + writer.uint32(/* id 16, wireType 0 =*/128).bool(message.satisfiesPzi); return writer; }; @@ -143573,6 +172529,14 @@ message.enableRestrictedImageTraining = reader.bool(); break; } + case 15: { + message.satisfiesPzs = reader.bool(); + break; + } + case 16: { + message.satisfiesPzi = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -143683,6 +172647,12 @@ if (message.enableRestrictedImageTraining != null && message.hasOwnProperty("enableRestrictedImageTraining")) if (typeof message.enableRestrictedImageTraining !== "boolean") return "enableRestrictedImageTraining: boolean expected"; + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) + if (typeof message.satisfiesPzs !== "boolean") + return "satisfiesPzs: boolean expected"; + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) + if (typeof message.satisfiesPzi !== "boolean") + return "satisfiesPzi: boolean expected"; return null; }; @@ -143807,6 +172777,10 @@ } if (object.enableRestrictedImageTraining != null) message.enableRestrictedImageTraining = Boolean(object.enableRestrictedImageTraining); + if (object.satisfiesPzs != null) + message.satisfiesPzs = Boolean(object.satisfiesPzs); + if (object.satisfiesPzi != null) + message.satisfiesPzi = Boolean(object.satisfiesPzi); return message; }; @@ -143838,6 +172812,8 @@ object.error = null; object.encryptionSpec = null; object.enableRestrictedImageTraining = false; + object.satisfiesPzs = false; + object.satisfiesPzi = false; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -143869,6 +172845,10 @@ object.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.toObject(message.encryptionSpec, options); if (message.enableRestrictedImageTraining != null && message.hasOwnProperty("enableRestrictedImageTraining")) object.enableRestrictedImageTraining = message.enableRestrictedImageTraining; + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) + object.satisfiesPzs = message.satisfiesPzs; + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) + object.satisfiesPzi = message.satisfiesPzi; return object; }; @@ -178281,6 +207261,7 @@ * @property {string|null} [languageCode] GetPublisherModelRequest languageCode * @property {google.cloud.aiplatform.v1.PublisherModelView|null} [view] GetPublisherModelRequest view * @property {boolean|null} [isHuggingFaceModel] GetPublisherModelRequest isHuggingFaceModel + * @property {string|null} [huggingFaceToken] GetPublisherModelRequest huggingFaceToken */ /** @@ -178330,6 +207311,14 @@ */ GetPublisherModelRequest.prototype.isHuggingFaceModel = false; + /** + * GetPublisherModelRequest huggingFaceToken. + * @member {string} huggingFaceToken + * @memberof google.cloud.aiplatform.v1.GetPublisherModelRequest + * @instance + */ + GetPublisherModelRequest.prototype.huggingFaceToken = ""; + /** * Creates a new GetPublisherModelRequest instance using the specified properties. * @function create @@ -178362,6 +207351,8 @@ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.view); if (message.isHuggingFaceModel != null && Object.hasOwnProperty.call(message, "isHuggingFaceModel")) writer.uint32(/* id 5, wireType 0 =*/40).bool(message.isHuggingFaceModel); + if (message.huggingFaceToken != null && Object.hasOwnProperty.call(message, "huggingFaceToken")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.huggingFaceToken); return writer; }; @@ -178412,6 +207403,10 @@ message.isHuggingFaceModel = reader.bool(); break; } + case 6: { + message.huggingFaceToken = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -178466,6 +207461,9 @@ if (message.isHuggingFaceModel != null && message.hasOwnProperty("isHuggingFaceModel")) if (typeof message.isHuggingFaceModel !== "boolean") return "isHuggingFaceModel: boolean expected"; + if (message.huggingFaceToken != null && message.hasOwnProperty("huggingFaceToken")) + if (!$util.isString(message.huggingFaceToken)) + return "huggingFaceToken: string expected"; return null; }; @@ -178511,6 +207509,8 @@ } if (object.isHuggingFaceModel != null) message.isHuggingFaceModel = Boolean(object.isHuggingFaceModel); + if (object.huggingFaceToken != null) + message.huggingFaceToken = String(object.huggingFaceToken); return message; }; @@ -178532,6 +207532,7 @@ object.languageCode = ""; object.view = options.enums === String ? "PUBLISHER_MODEL_VIEW_UNSPECIFIED" : 0; object.isHuggingFaceModel = false; + object.huggingFaceToken = ""; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -178541,6 +207542,8 @@ object.view = options.enums === String ? $root.google.cloud.aiplatform.v1.PublisherModelView[message.view] === undefined ? message.view : $root.google.cloud.aiplatform.v1.PublisherModelView[message.view] : message.view; if (message.isHuggingFaceModel != null && message.hasOwnProperty("isHuggingFaceModel")) object.isHuggingFaceModel = message.isHuggingFaceModel; + if (message.huggingFaceToken != null && message.hasOwnProperty("huggingFaceToken")) + object.huggingFaceToken = message.huggingFaceToken; return object; }; @@ -181805,6 +210808,7 @@ * @memberof google.cloud.aiplatform.v1.PublisherModel.CallToAction.Deploy * @interface IDeployMetadata * @property {Object.|null} [labels] DeployMetadata labels + * @property {string|null} [sampleRequest] DeployMetadata sampleRequest */ /** @@ -181831,6 +210835,14 @@ */ DeployMetadata.prototype.labels = $util.emptyObject; + /** + * DeployMetadata sampleRequest. + * @member {string} sampleRequest + * @memberof google.cloud.aiplatform.v1.PublisherModel.CallToAction.Deploy.DeployMetadata + * @instance + */ + DeployMetadata.prototype.sampleRequest = ""; + /** * Creates a new DeployMetadata instance using the specified properties. * @function create @@ -181858,6 +210870,8 @@ 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 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.sampleRequest != null && Object.hasOwnProperty.call(message, "sampleRequest")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.sampleRequest); return writer; }; @@ -181915,6 +210929,10 @@ message.labels[key] = value; break; } + case 2: { + message.sampleRequest = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -181958,6 +210976,9 @@ if (!$util.isString(message.labels[key[i]])) return "labels: string{k:string} expected"; } + if (message.sampleRequest != null && message.hasOwnProperty("sampleRequest")) + if (!$util.isString(message.sampleRequest)) + return "sampleRequest: string expected"; return null; }; @@ -181980,6 +211001,8 @@ for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) message.labels[keys[i]] = String(object.labels[keys[i]]); } + if (object.sampleRequest != null) + message.sampleRequest = String(object.sampleRequest); return message; }; @@ -181998,12 +211021,16 @@ var object = {}; if (options.objects || options.defaults) object.labels = {}; + if (options.defaults) + object.sampleRequest = ""; 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]]; } + if (message.sampleRequest != null && message.hasOwnProperty("sampleRequest")) + object.sampleRequest = message.sampleRequest; return object; }; @@ -191580,6 +220607,7 @@ * @property {google.protobuf.ITimestamp|null} [createTime] NotebookExecutionJob createTime * @property {google.protobuf.ITimestamp|null} [updateTime] NotebookExecutionJob updateTime * @property {Object.|null} [labels] NotebookExecutionJob labels + * @property {google.cloud.aiplatform.v1.IEncryptionSpec|null} [encryptionSpec] NotebookExecutionJob encryptionSpec */ /** @@ -191726,6 +220754,14 @@ */ NotebookExecutionJob.prototype.labels = $util.emptyObject; + /** + * NotebookExecutionJob encryptionSpec. + * @member {google.cloud.aiplatform.v1.IEncryptionSpec|null|undefined} encryptionSpec + * @memberof google.cloud.aiplatform.v1.NotebookExecutionJob + * @instance + */ + NotebookExecutionJob.prototype.encryptionSpec = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -191830,6 +220866,8 @@ 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 19, wireType 2 =*/154).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) + $root.google.cloud.aiplatform.v1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim(); return writer; }; @@ -191947,6 +220985,10 @@ message.labels[key] = value; break; } + case 22: { + message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -192088,6 +221130,11 @@ if (!$util.isString(message.labels[key[i]])) return "labels: string{k:string} expected"; } + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { + var error = $root.google.cloud.aiplatform.v1.EncryptionSpec.verify(message.encryptionSpec); + if (error) + return "encryptionSpec." + error; + } return null; }; @@ -192215,6 +221262,11 @@ for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) message.labels[keys[i]] = String(object.labels[keys[i]]); } + if (object.encryptionSpec != null) { + if (typeof object.encryptionSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NotebookExecutionJob.encryptionSpec: object expected"); + message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.fromObject(object.encryptionSpec); + } return message; }; @@ -192242,6 +221294,7 @@ object.status = null; object.createTime = null; object.updateTime = null; + object.encryptionSpec = null; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -192300,6 +221353,8 @@ for (var j = 0; j < keys2.length; ++j) object.labels[keys2[j]] = message.labels[keys2[j]]; } + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) + object.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.toObject(message.encryptionSpec, options); return object; }; @@ -277466,6 +306521,7 @@ * @property {google.cloud.aiplatform.v1beta1.AcceleratorType|null} [acceleratorType] MachineSpec acceleratorType * @property {number|null} [acceleratorCount] MachineSpec acceleratorCount * @property {string|null} [tpuTopology] MachineSpec tpuTopology + * @property {google.cloud.aiplatform.v1beta1.IReservationAffinity|null} [reservationAffinity] MachineSpec reservationAffinity */ /** @@ -277515,6 +306571,14 @@ */ MachineSpec.prototype.tpuTopology = ""; + /** + * MachineSpec reservationAffinity. + * @member {google.cloud.aiplatform.v1beta1.IReservationAffinity|null|undefined} reservationAffinity + * @memberof google.cloud.aiplatform.v1beta1.MachineSpec + * @instance + */ + MachineSpec.prototype.reservationAffinity = null; + /** * Creates a new MachineSpec instance using the specified properties. * @function create @@ -277547,6 +306611,8 @@ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.acceleratorCount); if (message.tpuTopology != null && Object.hasOwnProperty.call(message, "tpuTopology")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.tpuTopology); + if (message.reservationAffinity != null && Object.hasOwnProperty.call(message, "reservationAffinity")) + $root.google.cloud.aiplatform.v1beta1.ReservationAffinity.encode(message.reservationAffinity, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; @@ -277597,6 +306663,10 @@ message.tpuTopology = reader.string(); break; } + case 5: { + message.reservationAffinity = $root.google.cloud.aiplatform.v1beta1.ReservationAffinity.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -277661,6 +306731,11 @@ if (message.tpuTopology != null && message.hasOwnProperty("tpuTopology")) if (!$util.isString(message.tpuTopology)) return "tpuTopology: string expected"; + if (message.reservationAffinity != null && message.hasOwnProperty("reservationAffinity")) { + var error = $root.google.cloud.aiplatform.v1beta1.ReservationAffinity.verify(message.reservationAffinity); + if (error) + return "reservationAffinity." + error; + } return null; }; @@ -277746,6 +306821,11 @@ message.acceleratorCount = object.acceleratorCount | 0; if (object.tpuTopology != null) message.tpuTopology = String(object.tpuTopology); + if (object.reservationAffinity != null) { + if (typeof object.reservationAffinity !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.MachineSpec.reservationAffinity: object expected"); + message.reservationAffinity = $root.google.cloud.aiplatform.v1beta1.ReservationAffinity.fromObject(object.reservationAffinity); + } return message; }; @@ -277767,6 +306847,7 @@ object.acceleratorType = options.enums === String ? "ACCELERATOR_TYPE_UNSPECIFIED" : 0; object.acceleratorCount = 0; object.tpuTopology = ""; + object.reservationAffinity = null; } if (message.machineType != null && message.hasOwnProperty("machineType")) object.machineType = message.machineType; @@ -277776,6 +306857,8 @@ object.acceleratorCount = message.acceleratorCount; if (message.tpuTopology != null && message.hasOwnProperty("tpuTopology")) object.tpuTopology = message.tpuTopology; + if (message.reservationAffinity != null && message.hasOwnProperty("reservationAffinity")) + object.reservationAffinity = $root.google.cloud.aiplatform.v1beta1.ReservationAffinity.toObject(message.reservationAffinity, options); return object; }; @@ -277818,6 +306901,7 @@ * @property {number|null} [minReplicaCount] DedicatedResources minReplicaCount * @property {number|null} [maxReplicaCount] DedicatedResources maxReplicaCount * @property {Array.|null} [autoscalingMetricSpecs] DedicatedResources autoscalingMetricSpecs + * @property {boolean|null} [spot] DedicatedResources spot */ /** @@ -277868,6 +306952,14 @@ */ DedicatedResources.prototype.autoscalingMetricSpecs = $util.emptyArray; + /** + * DedicatedResources spot. + * @member {boolean} spot + * @memberof google.cloud.aiplatform.v1beta1.DedicatedResources + * @instance + */ + DedicatedResources.prototype.spot = false; + /** * Creates a new DedicatedResources instance using the specified properties. * @function create @@ -277901,6 +306993,8 @@ if (message.autoscalingMetricSpecs != null && message.autoscalingMetricSpecs.length) for (var i = 0; i < message.autoscalingMetricSpecs.length; ++i) $root.google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec.encode(message.autoscalingMetricSpecs[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.spot != null && Object.hasOwnProperty.call(message, "spot")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.spot); return writer; }; @@ -277953,6 +307047,10 @@ message.autoscalingMetricSpecs.push($root.google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec.decode(reader, reader.uint32())); break; } + case 5: { + message.spot = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -278008,6 +307106,9 @@ return "autoscalingMetricSpecs." + error; } } + if (message.spot != null && message.hasOwnProperty("spot")) + if (typeof message.spot !== "boolean") + return "spot: boolean expected"; return null; }; @@ -278042,6 +307143,8 @@ message.autoscalingMetricSpecs[i] = $root.google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec.fromObject(object.autoscalingMetricSpecs[i]); } } + if (object.spot != null) + message.spot = Boolean(object.spot); return message; }; @@ -278064,6 +307167,7 @@ object.machineSpec = null; object.minReplicaCount = 0; object.maxReplicaCount = 0; + object.spot = false; } if (message.machineSpec != null && message.hasOwnProperty("machineSpec")) object.machineSpec = $root.google.cloud.aiplatform.v1beta1.MachineSpec.toObject(message.machineSpec, options); @@ -278076,6 +307180,8 @@ for (var j = 0; j < message.autoscalingMetricSpecs.length; ++j) object.autoscalingMetricSpecs[j] = $root.google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec.toObject(message.autoscalingMetricSpecs[j], options); } + if (message.spot != null && message.hasOwnProperty("spot")) + object.spot = message.spot; return object; }; @@ -279941,6 +309047,320 @@ return ShieldedVmConfig; })(); + v1beta1.ReservationAffinity = (function() { + + /** + * Properties of a ReservationAffinity. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IReservationAffinity + * @property {google.cloud.aiplatform.v1beta1.ReservationAffinity.Type|null} [reservationAffinityType] ReservationAffinity reservationAffinityType + * @property {string|null} [key] ReservationAffinity key + * @property {Array.|null} [values] ReservationAffinity values + */ + + /** + * Constructs a new ReservationAffinity. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a ReservationAffinity. + * @implements IReservationAffinity + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IReservationAffinity=} [properties] Properties to set + */ + function ReservationAffinity(properties) { + this.values = []; + 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]]; + } + + /** + * ReservationAffinity reservationAffinityType. + * @member {google.cloud.aiplatform.v1beta1.ReservationAffinity.Type} reservationAffinityType + * @memberof google.cloud.aiplatform.v1beta1.ReservationAffinity + * @instance + */ + ReservationAffinity.prototype.reservationAffinityType = 0; + + /** + * ReservationAffinity key. + * @member {string} key + * @memberof google.cloud.aiplatform.v1beta1.ReservationAffinity + * @instance + */ + ReservationAffinity.prototype.key = ""; + + /** + * ReservationAffinity values. + * @member {Array.} values + * @memberof google.cloud.aiplatform.v1beta1.ReservationAffinity + * @instance + */ + ReservationAffinity.prototype.values = $util.emptyArray; + + /** + * Creates a new ReservationAffinity instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ReservationAffinity + * @static + * @param {google.cloud.aiplatform.v1beta1.IReservationAffinity=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ReservationAffinity} ReservationAffinity instance + */ + ReservationAffinity.create = function create(properties) { + return new ReservationAffinity(properties); + }; + + /** + * Encodes the specified ReservationAffinity message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReservationAffinity.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ReservationAffinity + * @static + * @param {google.cloud.aiplatform.v1beta1.IReservationAffinity} message ReservationAffinity message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReservationAffinity.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.reservationAffinityType != null && Object.hasOwnProperty.call(message, "reservationAffinityType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.reservationAffinityType); + if (message.key != null && Object.hasOwnProperty.call(message, "key")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.key); + if (message.values != null && message.values.length) + for (var i = 0; i < message.values.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.values[i]); + return writer; + }; + + /** + * Encodes the specified ReservationAffinity message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReservationAffinity.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ReservationAffinity + * @static + * @param {google.cloud.aiplatform.v1beta1.IReservationAffinity} message ReservationAffinity message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReservationAffinity.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ReservationAffinity message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ReservationAffinity + * @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.ReservationAffinity} ReservationAffinity + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservationAffinity.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.ReservationAffinity(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.reservationAffinityType = reader.int32(); + break; + } + case 2: { + message.key = reader.string(); + break; + } + case 3: { + if (!(message.values && message.values.length)) + message.values = []; + message.values.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ReservationAffinity message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ReservationAffinity + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ReservationAffinity} ReservationAffinity + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservationAffinity.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ReservationAffinity message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ReservationAffinity + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ReservationAffinity.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.reservationAffinityType != null && message.hasOwnProperty("reservationAffinityType")) + switch (message.reservationAffinityType) { + default: + return "reservationAffinityType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.key != null && message.hasOwnProperty("key")) + if (!$util.isString(message.key)) + return "key: string expected"; + if (message.values != null && message.hasOwnProperty("values")) { + if (!Array.isArray(message.values)) + return "values: array expected"; + for (var i = 0; i < message.values.length; ++i) + if (!$util.isString(message.values[i])) + return "values: string[] expected"; + } + return null; + }; + + /** + * Creates a ReservationAffinity message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ReservationAffinity + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ReservationAffinity} ReservationAffinity + */ + ReservationAffinity.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ReservationAffinity) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ReservationAffinity(); + switch (object.reservationAffinityType) { + default: + if (typeof object.reservationAffinityType === "number") { + message.reservationAffinityType = object.reservationAffinityType; + break; + } + break; + case "TYPE_UNSPECIFIED": + case 0: + message.reservationAffinityType = 0; + break; + case "NO_RESERVATION": + case 1: + message.reservationAffinityType = 1; + break; + case "ANY_RESERVATION": + case 2: + message.reservationAffinityType = 2; + break; + case "SPECIFIC_RESERVATION": + case 3: + message.reservationAffinityType = 3; + break; + } + if (object.key != null) + message.key = String(object.key); + if (object.values) { + if (!Array.isArray(object.values)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ReservationAffinity.values: array expected"); + message.values = []; + for (var i = 0; i < object.values.length; ++i) + message.values[i] = String(object.values[i]); + } + return message; + }; + + /** + * Creates a plain object from a ReservationAffinity message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ReservationAffinity + * @static + * @param {google.cloud.aiplatform.v1beta1.ReservationAffinity} message ReservationAffinity + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ReservationAffinity.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.values = []; + if (options.defaults) { + object.reservationAffinityType = options.enums === String ? "TYPE_UNSPECIFIED" : 0; + object.key = ""; + } + if (message.reservationAffinityType != null && message.hasOwnProperty("reservationAffinityType")) + object.reservationAffinityType = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.ReservationAffinity.Type[message.reservationAffinityType] === undefined ? message.reservationAffinityType : $root.google.cloud.aiplatform.v1beta1.ReservationAffinity.Type[message.reservationAffinityType] : message.reservationAffinityType; + if (message.key != null && message.hasOwnProperty("key")) + object.key = message.key; + if (message.values && message.values.length) { + object.values = []; + for (var j = 0; j < message.values.length; ++j) + object.values[j] = message.values[j]; + } + return object; + }; + + /** + * Converts this ReservationAffinity to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ReservationAffinity + * @instance + * @returns {Object.} JSON object + */ + ReservationAffinity.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ReservationAffinity + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.ReservationAffinity + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ReservationAffinity.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ReservationAffinity"; + }; + + /** + * Type enum. + * @name google.cloud.aiplatform.v1beta1.ReservationAffinity.Type + * @enum {number} + * @property {number} TYPE_UNSPECIFIED=0 TYPE_UNSPECIFIED value + * @property {number} NO_RESERVATION=1 NO_RESERVATION value + * @property {number} ANY_RESERVATION=2 ANY_RESERVATION value + * @property {number} SPECIFIC_RESERVATION=3 SPECIFIC_RESERVATION value + */ + ReservationAffinity.Type = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "NO_RESERVATION"] = 1; + values[valuesById[2] = "ANY_RESERVATION"] = 2; + values[valuesById[3] = "SPECIFIC_RESERVATION"] = 3; + return values; + })(); + + return ReservationAffinity; + })(); + v1beta1.ManualBatchTuningParameters = (function() { /** @@ -280193,6 +309613,8 @@ * @property {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null} [encryptionSpec] ModelDeploymentMonitoringJob encryptionSpec * @property {boolean|null} [enableMonitoringPipelineLogs] ModelDeploymentMonitoringJob enableMonitoringPipelineLogs * @property {google.rpc.IStatus|null} [error] ModelDeploymentMonitoringJob error + * @property {boolean|null} [satisfiesPzs] ModelDeploymentMonitoringJob satisfiesPzs + * @property {boolean|null} [satisfiesPzi] ModelDeploymentMonitoringJob satisfiesPzi */ /** @@ -280397,6 +309819,22 @@ */ ModelDeploymentMonitoringJob.prototype.error = null; + /** + * ModelDeploymentMonitoringJob satisfiesPzs. + * @member {boolean} satisfiesPzs + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.satisfiesPzs = false; + + /** + * ModelDeploymentMonitoringJob satisfiesPzi. + * @member {boolean} satisfiesPzi + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.satisfiesPzi = false; + /** * Creates a new ModelDeploymentMonitoringJob instance using the specified properties. * @function create @@ -280470,6 +309908,10 @@ $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim(); if (message.latestMonitoringPipelineMetadata != null && Object.hasOwnProperty.call(message, "latestMonitoringPipelineMetadata")) $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.encode(message.latestMonitoringPipelineMetadata, writer.uint32(/* id 25, wireType 2 =*/202).fork()).ldelim(); + if (message.satisfiesPzs != null && Object.hasOwnProperty.call(message, "satisfiesPzs")) + writer.uint32(/* id 26, wireType 0 =*/208).bool(message.satisfiesPzs); + if (message.satisfiesPzi != null && Object.hasOwnProperty.call(message, "satisfiesPzi")) + writer.uint32(/* id 27, wireType 0 =*/216).bool(message.satisfiesPzi); return writer; }; @@ -280619,6 +310061,14 @@ message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); break; } + case 26: { + message.satisfiesPzs = reader.bool(); + break; + } + case 27: { + message.satisfiesPzi = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -280786,6 +310236,12 @@ if (error) return "error." + error; } + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) + if (typeof message.satisfiesPzs !== "boolean") + return "satisfiesPzs: boolean expected"; + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) + if (typeof message.satisfiesPzi !== "boolean") + return "satisfiesPzi: boolean expected"; return null; }; @@ -280980,6 +310436,10 @@ throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.error: object expected"); message.error = $root.google.rpc.Status.fromObject(object.error); } + if (object.satisfiesPzs != null) + message.satisfiesPzs = Boolean(object.satisfiesPzs); + if (object.satisfiesPzi != null) + message.satisfiesPzi = Boolean(object.satisfiesPzi); return message; }; @@ -281023,6 +310483,8 @@ object.enableMonitoringPipelineLogs = false; object.error = null; object.latestMonitoringPipelineMetadata = null; + object.satisfiesPzs = false; + object.satisfiesPzi = false; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -281080,6 +310542,10 @@ object.error = $root.google.rpc.Status.toObject(message.error, options); if (message.latestMonitoringPipelineMetadata != null && message.hasOwnProperty("latestMonitoringPipelineMetadata")) object.latestMonitoringPipelineMetadata = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.toObject(message.latestMonitoringPipelineMetadata, options); + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) + object.satisfiesPzs = message.satisfiesPzs; + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) + object.satisfiesPzi = message.satisfiesPzi; return object; }; @@ -293504,8 +322970,10 @@ * @property {Array.|null} [stopSequences] GenerationConfig stopSequences * @property {number|null} [presencePenalty] GenerationConfig presencePenalty * @property {number|null} [frequencyPenalty] GenerationConfig frequencyPenalty + * @property {number|null} [seed] GenerationConfig seed * @property {string|null} [responseMimeType] GenerationConfig responseMimeType * @property {google.cloud.aiplatform.v1beta1.ISchema|null} [responseSchema] GenerationConfig responseSchema + * @property {google.cloud.aiplatform.v1beta1.GenerationConfig.IRoutingConfig|null} [routingConfig] GenerationConfig routingConfig */ /** @@ -293588,6 +323056,14 @@ */ GenerationConfig.prototype.frequencyPenalty = null; + /** + * GenerationConfig seed. + * @member {number|null|undefined} seed + * @memberof google.cloud.aiplatform.v1beta1.GenerationConfig + * @instance + */ + GenerationConfig.prototype.seed = null; + /** * GenerationConfig responseMimeType. * @member {string} responseMimeType @@ -293604,6 +323080,14 @@ */ GenerationConfig.prototype.responseSchema = null; + /** + * GenerationConfig routingConfig. + * @member {google.cloud.aiplatform.v1beta1.GenerationConfig.IRoutingConfig|null|undefined} routingConfig + * @memberof google.cloud.aiplatform.v1beta1.GenerationConfig + * @instance + */ + GenerationConfig.prototype.routingConfig = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -293684,6 +323168,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * GenerationConfig _seed. + * @member {"seed"|undefined} _seed + * @memberof google.cloud.aiplatform.v1beta1.GenerationConfig + * @instance + */ + Object.defineProperty(GenerationConfig.prototype, "_seed", { + get: $util.oneOfGetter($oneOfFields = ["seed"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * GenerationConfig _responseSchema. * @member {"responseSchema"|undefined} _responseSchema @@ -293695,6 +323190,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * GenerationConfig _routingConfig. + * @member {"routingConfig"|undefined} _routingConfig + * @memberof google.cloud.aiplatform.v1beta1.GenerationConfig + * @instance + */ + Object.defineProperty(GenerationConfig.prototype, "_routingConfig", { + get: $util.oneOfGetter($oneOfFields = ["routingConfig"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new GenerationConfig instance using the specified properties. * @function create @@ -293736,10 +323242,14 @@ writer.uint32(/* id 8, wireType 5 =*/69).float(message.presencePenalty); if (message.frequencyPenalty != null && Object.hasOwnProperty.call(message, "frequencyPenalty")) writer.uint32(/* id 9, wireType 5 =*/77).float(message.frequencyPenalty); + if (message.seed != null && Object.hasOwnProperty.call(message, "seed")) + writer.uint32(/* id 12, wireType 0 =*/96).int32(message.seed); if (message.responseMimeType != null && Object.hasOwnProperty.call(message, "responseMimeType")) writer.uint32(/* id 13, wireType 2 =*/106).string(message.responseMimeType); if (message.responseSchema != null && Object.hasOwnProperty.call(message, "responseSchema")) $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(); return writer; }; @@ -293808,6 +323318,10 @@ message.frequencyPenalty = reader.float(); break; } + case 12: { + message.seed = reader.int32(); + break; + } case 13: { message.responseMimeType = reader.string(); break; @@ -293816,6 +323330,10 @@ message.responseSchema = $root.google.cloud.aiplatform.v1beta1.Schema.decode(reader, reader.uint32()); break; } + case 17: { + message.routingConfig = $root.google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -293894,6 +323412,11 @@ if (typeof message.frequencyPenalty !== "number") return "frequencyPenalty: number expected"; } + if (message.seed != null && message.hasOwnProperty("seed")) { + properties._seed = 1; + if (!$util.isInteger(message.seed)) + return "seed: integer expected"; + } if (message.responseMimeType != null && message.hasOwnProperty("responseMimeType")) if (!$util.isString(message.responseMimeType)) return "responseMimeType: string expected"; @@ -293905,6 +323428,14 @@ return "responseSchema." + error; } } + if (message.routingConfig != null && message.hasOwnProperty("routingConfig")) { + properties._routingConfig = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.verify(message.routingConfig); + if (error) + return "routingConfig." + error; + } + } return null; }; @@ -293941,6 +323472,8 @@ message.presencePenalty = Number(object.presencePenalty); if (object.frequencyPenalty != null) message.frequencyPenalty = Number(object.frequencyPenalty); + if (object.seed != null) + message.seed = object.seed | 0; if (object.responseMimeType != null) message.responseMimeType = String(object.responseMimeType); if (object.responseSchema != null) { @@ -293948,6 +323481,11 @@ throw TypeError(".google.cloud.aiplatform.v1beta1.GenerationConfig.responseSchema: object expected"); message.responseSchema = $root.google.cloud.aiplatform.v1beta1.Schema.fromObject(object.responseSchema); } + if (object.routingConfig != null) { + if (typeof object.routingConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.GenerationConfig.routingConfig: object expected"); + message.routingConfig = $root.google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.fromObject(object.routingConfig); + } return message; }; @@ -294008,6 +323546,11 @@ if (options.oneofs) object._frequencyPenalty = "frequencyPenalty"; } + if (message.seed != null && message.hasOwnProperty("seed")) { + object.seed = message.seed; + if (options.oneofs) + object._seed = "seed"; + } if (message.responseMimeType != null && message.hasOwnProperty("responseMimeType")) object.responseMimeType = message.responseMimeType; if (message.responseSchema != null && message.hasOwnProperty("responseSchema")) { @@ -294015,6 +323558,11 @@ if (options.oneofs) object._responseSchema = "responseSchema"; } + if (message.routingConfig != null && message.hasOwnProperty("routingConfig")) { + object.routingConfig = $root.google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.toObject(message.routingConfig, options); + if (options.oneofs) + object._routingConfig = "routingConfig"; + } return object; }; @@ -294044,6 +323592,757 @@ return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GenerationConfig"; }; + GenerationConfig.RoutingConfig = (function() { + + /** + * Properties of a RoutingConfig. + * @memberof google.cloud.aiplatform.v1beta1.GenerationConfig + * @interface IRoutingConfig + * @property {google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.IAutoRoutingMode|null} [autoMode] RoutingConfig autoMode + * @property {google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.IManualRoutingMode|null} [manualMode] RoutingConfig manualMode + */ + + /** + * Constructs a new RoutingConfig. + * @memberof google.cloud.aiplatform.v1beta1.GenerationConfig + * @classdesc Represents a RoutingConfig. + * @implements IRoutingConfig + * @constructor + * @param {google.cloud.aiplatform.v1beta1.GenerationConfig.IRoutingConfig=} [properties] Properties to set + */ + function RoutingConfig(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]]; + } + + /** + * RoutingConfig autoMode. + * @member {google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.IAutoRoutingMode|null|undefined} autoMode + * @memberof google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig + * @instance + */ + RoutingConfig.prototype.autoMode = null; + + /** + * RoutingConfig manualMode. + * @member {google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.IManualRoutingMode|null|undefined} manualMode + * @memberof google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig + * @instance + */ + RoutingConfig.prototype.manualMode = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * RoutingConfig routingConfig. + * @member {"autoMode"|"manualMode"|undefined} routingConfig + * @memberof google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig + * @instance + */ + Object.defineProperty(RoutingConfig.prototype, "routingConfig", { + get: $util.oneOfGetter($oneOfFields = ["autoMode", "manualMode"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new RoutingConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.GenerationConfig.IRoutingConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig} RoutingConfig instance + */ + RoutingConfig.create = function create(properties) { + return new RoutingConfig(properties); + }; + + /** + * Encodes the specified RoutingConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.GenerationConfig.IRoutingConfig} message RoutingConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RoutingConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.autoMode != null && Object.hasOwnProperty.call(message, "autoMode")) + $root.google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.AutoRoutingMode.encode(message.autoMode, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.manualMode != null && Object.hasOwnProperty.call(message, "manualMode")) + $root.google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.ManualRoutingMode.encode(message.manualMode, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified RoutingConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.GenerationConfig.IRoutingConfig} message RoutingConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RoutingConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RoutingConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig + * @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.GenerationConfig.RoutingConfig} RoutingConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RoutingConfig.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.GenerationConfig.RoutingConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.autoMode = $root.google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.AutoRoutingMode.decode(reader, reader.uint32()); + break; + } + case 2: { + message.manualMode = $root.google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.ManualRoutingMode.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RoutingConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig} RoutingConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RoutingConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RoutingConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RoutingConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.autoMode != null && message.hasOwnProperty("autoMode")) { + properties.routingConfig = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.AutoRoutingMode.verify(message.autoMode); + if (error) + return "autoMode." + error; + } + } + if (message.manualMode != null && message.hasOwnProperty("manualMode")) { + if (properties.routingConfig === 1) + return "routingConfig: multiple values"; + properties.routingConfig = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.ManualRoutingMode.verify(message.manualMode); + if (error) + return "manualMode." + error; + } + } + return null; + }; + + /** + * Creates a RoutingConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig} RoutingConfig + */ + RoutingConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig(); + if (object.autoMode != null) { + if (typeof object.autoMode !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.autoMode: object expected"); + message.autoMode = $root.google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.AutoRoutingMode.fromObject(object.autoMode); + } + if (object.manualMode != null) { + if (typeof object.manualMode !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.manualMode: object expected"); + message.manualMode = $root.google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.ManualRoutingMode.fromObject(object.manualMode); + } + return message; + }; + + /** + * Creates a plain object from a RoutingConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig} message RoutingConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RoutingConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.autoMode != null && message.hasOwnProperty("autoMode")) { + object.autoMode = $root.google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.AutoRoutingMode.toObject(message.autoMode, options); + if (options.oneofs) + object.routingConfig = "autoMode"; + } + if (message.manualMode != null && message.hasOwnProperty("manualMode")) { + object.manualMode = $root.google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.ManualRoutingMode.toObject(message.manualMode, options); + if (options.oneofs) + object.routingConfig = "manualMode"; + } + return object; + }; + + /** + * Converts this RoutingConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig + * @instance + * @returns {Object.} JSON object + */ + RoutingConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RoutingConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RoutingConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig"; + }; + + RoutingConfig.AutoRoutingMode = (function() { + + /** + * Properties of an AutoRoutingMode. + * @memberof google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig + * @interface IAutoRoutingMode + * @property {google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.AutoRoutingMode.ModelRoutingPreference|null} [modelRoutingPreference] AutoRoutingMode modelRoutingPreference + */ + + /** + * Constructs a new AutoRoutingMode. + * @memberof google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig + * @classdesc Represents an AutoRoutingMode. + * @implements IAutoRoutingMode + * @constructor + * @param {google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.IAutoRoutingMode=} [properties] Properties to set + */ + function AutoRoutingMode(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]]; + } + + /** + * AutoRoutingMode modelRoutingPreference. + * @member {google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.AutoRoutingMode.ModelRoutingPreference|null|undefined} modelRoutingPreference + * @memberof google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.AutoRoutingMode + * @instance + */ + AutoRoutingMode.prototype.modelRoutingPreference = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * AutoRoutingMode _modelRoutingPreference. + * @member {"modelRoutingPreference"|undefined} _modelRoutingPreference + * @memberof google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.AutoRoutingMode + * @instance + */ + Object.defineProperty(AutoRoutingMode.prototype, "_modelRoutingPreference", { + get: $util.oneOfGetter($oneOfFields = ["modelRoutingPreference"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new AutoRoutingMode instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.AutoRoutingMode + * @static + * @param {google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.IAutoRoutingMode=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.AutoRoutingMode} AutoRoutingMode instance + */ + AutoRoutingMode.create = function create(properties) { + return new AutoRoutingMode(properties); + }; + + /** + * Encodes the specified AutoRoutingMode message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.AutoRoutingMode.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.AutoRoutingMode + * @static + * @param {google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.IAutoRoutingMode} message AutoRoutingMode message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoRoutingMode.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.modelRoutingPreference != null && Object.hasOwnProperty.call(message, "modelRoutingPreference")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.modelRoutingPreference); + return writer; + }; + + /** + * Encodes the specified AutoRoutingMode message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.AutoRoutingMode.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.AutoRoutingMode + * @static + * @param {google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.IAutoRoutingMode} message AutoRoutingMode message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoRoutingMode.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AutoRoutingMode message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.AutoRoutingMode + * @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.GenerationConfig.RoutingConfig.AutoRoutingMode} AutoRoutingMode + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoRoutingMode.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.GenerationConfig.RoutingConfig.AutoRoutingMode(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.modelRoutingPreference = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AutoRoutingMode message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.AutoRoutingMode + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.AutoRoutingMode} AutoRoutingMode + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoRoutingMode.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AutoRoutingMode message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.AutoRoutingMode + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AutoRoutingMode.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.modelRoutingPreference != null && message.hasOwnProperty("modelRoutingPreference")) { + properties._modelRoutingPreference = 1; + switch (message.modelRoutingPreference) { + default: + return "modelRoutingPreference: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + } + return null; + }; + + /** + * Creates an AutoRoutingMode message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.AutoRoutingMode + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.AutoRoutingMode} AutoRoutingMode + */ + AutoRoutingMode.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.AutoRoutingMode) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.AutoRoutingMode(); + switch (object.modelRoutingPreference) { + default: + if (typeof object.modelRoutingPreference === "number") { + message.modelRoutingPreference = object.modelRoutingPreference; + break; + } + break; + case "UNKNOWN": + case 0: + message.modelRoutingPreference = 0; + break; + case "PRIORITIZE_QUALITY": + case 1: + message.modelRoutingPreference = 1; + break; + case "BALANCED": + case 2: + message.modelRoutingPreference = 2; + break; + case "PRIORITIZE_COST": + case 3: + message.modelRoutingPreference = 3; + break; + } + return message; + }; + + /** + * Creates a plain object from an AutoRoutingMode message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.AutoRoutingMode + * @static + * @param {google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.AutoRoutingMode} message AutoRoutingMode + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AutoRoutingMode.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.modelRoutingPreference != null && message.hasOwnProperty("modelRoutingPreference")) { + object.modelRoutingPreference = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.AutoRoutingMode.ModelRoutingPreference[message.modelRoutingPreference] === undefined ? message.modelRoutingPreference : $root.google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.AutoRoutingMode.ModelRoutingPreference[message.modelRoutingPreference] : message.modelRoutingPreference; + if (options.oneofs) + object._modelRoutingPreference = "modelRoutingPreference"; + } + return object; + }; + + /** + * Converts this AutoRoutingMode to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.AutoRoutingMode + * @instance + * @returns {Object.} JSON object + */ + AutoRoutingMode.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for AutoRoutingMode + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.AutoRoutingMode + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AutoRoutingMode.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.AutoRoutingMode"; + }; + + /** + * ModelRoutingPreference enum. + * @name google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.AutoRoutingMode.ModelRoutingPreference + * @enum {number} + * @property {number} UNKNOWN=0 UNKNOWN value + * @property {number} PRIORITIZE_QUALITY=1 PRIORITIZE_QUALITY value + * @property {number} BALANCED=2 BALANCED value + * @property {number} PRIORITIZE_COST=3 PRIORITIZE_COST value + */ + AutoRoutingMode.ModelRoutingPreference = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNKNOWN"] = 0; + values[valuesById[1] = "PRIORITIZE_QUALITY"] = 1; + values[valuesById[2] = "BALANCED"] = 2; + values[valuesById[3] = "PRIORITIZE_COST"] = 3; + return values; + })(); + + return AutoRoutingMode; + })(); + + RoutingConfig.ManualRoutingMode = (function() { + + /** + * Properties of a ManualRoutingMode. + * @memberof google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig + * @interface IManualRoutingMode + * @property {string|null} [modelName] ManualRoutingMode modelName + */ + + /** + * Constructs a new ManualRoutingMode. + * @memberof google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig + * @classdesc Represents a ManualRoutingMode. + * @implements IManualRoutingMode + * @constructor + * @param {google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.IManualRoutingMode=} [properties] Properties to set + */ + function ManualRoutingMode(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]]; + } + + /** + * ManualRoutingMode modelName. + * @member {string|null|undefined} modelName + * @memberof google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.ManualRoutingMode + * @instance + */ + ManualRoutingMode.prototype.modelName = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ManualRoutingMode _modelName. + * @member {"modelName"|undefined} _modelName + * @memberof google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.ManualRoutingMode + * @instance + */ + Object.defineProperty(ManualRoutingMode.prototype, "_modelName", { + get: $util.oneOfGetter($oneOfFields = ["modelName"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ManualRoutingMode instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.ManualRoutingMode + * @static + * @param {google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.IManualRoutingMode=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.ManualRoutingMode} ManualRoutingMode instance + */ + ManualRoutingMode.create = function create(properties) { + return new ManualRoutingMode(properties); + }; + + /** + * Encodes the specified ManualRoutingMode message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.ManualRoutingMode.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.ManualRoutingMode + * @static + * @param {google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.IManualRoutingMode} message ManualRoutingMode message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ManualRoutingMode.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.modelName != null && Object.hasOwnProperty.call(message, "modelName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.modelName); + return writer; + }; + + /** + * Encodes the specified ManualRoutingMode message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.ManualRoutingMode.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.ManualRoutingMode + * @static + * @param {google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.IManualRoutingMode} message ManualRoutingMode message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ManualRoutingMode.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ManualRoutingMode message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.ManualRoutingMode + * @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.GenerationConfig.RoutingConfig.ManualRoutingMode} ManualRoutingMode + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ManualRoutingMode.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.GenerationConfig.RoutingConfig.ManualRoutingMode(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.modelName = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ManualRoutingMode message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.ManualRoutingMode + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.ManualRoutingMode} ManualRoutingMode + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ManualRoutingMode.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ManualRoutingMode message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.ManualRoutingMode + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ManualRoutingMode.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.modelName != null && message.hasOwnProperty("modelName")) { + properties._modelName = 1; + if (!$util.isString(message.modelName)) + return "modelName: string expected"; + } + return null; + }; + + /** + * Creates a ManualRoutingMode message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.ManualRoutingMode + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.ManualRoutingMode} ManualRoutingMode + */ + ManualRoutingMode.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.ManualRoutingMode) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.ManualRoutingMode(); + if (object.modelName != null) + message.modelName = String(object.modelName); + return message; + }; + + /** + * Creates a plain object from a ManualRoutingMode message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.ManualRoutingMode + * @static + * @param {google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.ManualRoutingMode} message ManualRoutingMode + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ManualRoutingMode.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.modelName != null && message.hasOwnProperty("modelName")) { + object.modelName = message.modelName; + if (options.oneofs) + object._modelName = "modelName"; + } + return object; + }; + + /** + * Converts this ManualRoutingMode to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.ManualRoutingMode + * @instance + * @returns {Object.} JSON object + */ + ManualRoutingMode.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ManualRoutingMode + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.ManualRoutingMode + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ManualRoutingMode.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.ManualRoutingMode"; + }; + + return ManualRoutingMode; + })(); + + return RoutingConfig; + })(); + return GenerationConfig; })(); @@ -295442,6 +325741,7 @@ * @interface ICandidate * @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.Candidate.FinishReason|null} [finishReason] Candidate finishReason * @property {Array.|null} [safetyRatings] Candidate safetyRatings * @property {string|null} [finishMessage] Candidate finishMessage @@ -295481,6 +325781,14 @@ */ Candidate.prototype.content = null; + /** + * Candidate avgLogprobs. + * @member {number} avgLogprobs + * @memberof google.cloud.aiplatform.v1beta1.Candidate + * @instance + */ + Candidate.prototype.avgLogprobs = 0; + /** * Candidate finishReason. * @member {google.cloud.aiplatform.v1beta1.Candidate.FinishReason} finishReason @@ -295574,6 +325882,8 @@ $root.google.cloud.aiplatform.v1beta1.CitationMetadata.encode(message.citationMetadata, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); if (message.groundingMetadata != null && Object.hasOwnProperty.call(message, "groundingMetadata")) $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); return writer; }; @@ -295616,6 +325926,10 @@ message.content = $root.google.cloud.aiplatform.v1beta1.Content.decode(reader, reader.uint32()); break; } + case 9: { + message.avgLogprobs = reader.double(); + break; + } case 3: { message.finishReason = reader.int32(); break; @@ -295682,6 +325996,9 @@ if (error) return "content." + error; } + if (message.avgLogprobs != null && message.hasOwnProperty("avgLogprobs")) + if (typeof message.avgLogprobs !== "number") + return "avgLogprobs: number expected"; if (message.finishReason != null && message.hasOwnProperty("finishReason")) switch (message.finishReason) { default: @@ -295744,6 +326061,8 @@ throw TypeError(".google.cloud.aiplatform.v1beta1.Candidate.content: object expected"); message.content = $root.google.cloud.aiplatform.v1beta1.Content.fromObject(object.content); } + if (object.avgLogprobs != null) + message.avgLogprobs = Number(object.avgLogprobs); switch (object.finishReason) { default: if (typeof object.finishReason === "number") { @@ -295838,6 +326157,7 @@ object.finishReason = options.enums === String ? "FINISH_REASON_UNSPECIFIED" : 0; object.citationMetadata = null; object.groundingMetadata = null; + object.avgLogprobs = 0; } if (message.index != null && message.hasOwnProperty("index")) object.index = message.index; @@ -295859,6 +326179,8 @@ object.citationMetadata = $root.google.cloud.aiplatform.v1beta1.CitationMetadata.toObject(message.citationMetadata, options); if (message.groundingMetadata != null && message.hasOwnProperty("groundingMetadata")) 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; return object; }; @@ -296859,1123 +327181,10 @@ /** * Decodes a RetrievedContext message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext} RetrievedContext - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RetrievedContext.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RetrievedContext message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - RetrievedContext.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.uri != null && message.hasOwnProperty("uri")) { - properties._uri = 1; - if (!$util.isString(message.uri)) - return "uri: string expected"; - } - if (message.title != null && message.hasOwnProperty("title")) { - properties._title = 1; - if (!$util.isString(message.title)) - return "title: string expected"; - } - return null; - }; - - /** - * Creates a RetrievedContext message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext} RetrievedContext - */ - RetrievedContext.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext(); - if (object.uri != null) - message.uri = String(object.uri); - if (object.title != null) - message.title = String(object.title); - return message; - }; - - /** - * Creates a plain object from a RetrievedContext message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext - * @static - * @param {google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext} message RetrievedContext - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - RetrievedContext.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.uri != null && message.hasOwnProperty("uri")) { - object.uri = message.uri; - if (options.oneofs) - object._uri = "uri"; - } - if (message.title != null && message.hasOwnProperty("title")) { - object.title = message.title; - if (options.oneofs) - object._title = "title"; - } - return object; - }; - - /** - * Converts this RetrievedContext to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext - * @instance - * @returns {Object.} JSON object - */ - RetrievedContext.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for RetrievedContext - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - RetrievedContext.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext"; - }; - - return RetrievedContext; - })(); - - return GroundingChunk; - })(); - - v1beta1.GroundingSupport = (function() { - - /** - * Properties of a GroundingSupport. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGroundingSupport - * @property {google.cloud.aiplatform.v1beta1.ISegment|null} [segment] GroundingSupport segment - * @property {Array.|null} [groundingChunkIndices] GroundingSupport groundingChunkIndices - * @property {Array.|null} [confidenceScores] GroundingSupport confidenceScores - */ - - /** - * Constructs a new GroundingSupport. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GroundingSupport. - * @implements IGroundingSupport - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGroundingSupport=} [properties] Properties to set - */ - function GroundingSupport(properties) { - this.groundingChunkIndices = []; - this.confidenceScores = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GroundingSupport segment. - * @member {google.cloud.aiplatform.v1beta1.ISegment|null|undefined} segment - * @memberof google.cloud.aiplatform.v1beta1.GroundingSupport - * @instance - */ - GroundingSupport.prototype.segment = null; - - /** - * GroundingSupport groundingChunkIndices. - * @member {Array.} groundingChunkIndices - * @memberof google.cloud.aiplatform.v1beta1.GroundingSupport - * @instance - */ - GroundingSupport.prototype.groundingChunkIndices = $util.emptyArray; - - /** - * GroundingSupport confidenceScores. - * @member {Array.} confidenceScores - * @memberof google.cloud.aiplatform.v1beta1.GroundingSupport - * @instance - */ - GroundingSupport.prototype.confidenceScores = $util.emptyArray; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * GroundingSupport _segment. - * @member {"segment"|undefined} _segment - * @memberof google.cloud.aiplatform.v1beta1.GroundingSupport - * @instance - */ - Object.defineProperty(GroundingSupport.prototype, "_segment", { - get: $util.oneOfGetter($oneOfFields = ["segment"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new GroundingSupport instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.GroundingSupport - * @static - * @param {google.cloud.aiplatform.v1beta1.IGroundingSupport=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GroundingSupport} GroundingSupport instance - */ - GroundingSupport.create = function create(properties) { - return new GroundingSupport(properties); - }; - - /** - * Encodes the specified GroundingSupport message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundingSupport.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GroundingSupport - * @static - * @param {google.cloud.aiplatform.v1beta1.IGroundingSupport} message GroundingSupport message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GroundingSupport.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.segment != null && Object.hasOwnProperty.call(message, "segment")) - $root.google.cloud.aiplatform.v1beta1.Segment.encode(message.segment, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.groundingChunkIndices != null && message.groundingChunkIndices.length) { - writer.uint32(/* id 2, wireType 2 =*/18).fork(); - for (var i = 0; i < message.groundingChunkIndices.length; ++i) - writer.int32(message.groundingChunkIndices[i]); - writer.ldelim(); - } - if (message.confidenceScores != null && message.confidenceScores.length) { - writer.uint32(/* id 3, wireType 2 =*/26).fork(); - for (var i = 0; i < message.confidenceScores.length; ++i) - writer.float(message.confidenceScores[i]); - writer.ldelim(); - } - return writer; - }; - - /** - * Encodes the specified GroundingSupport message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundingSupport.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GroundingSupport - * @static - * @param {google.cloud.aiplatform.v1beta1.IGroundingSupport} message GroundingSupport message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GroundingSupport.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GroundingSupport message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GroundingSupport - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.GroundingSupport} GroundingSupport - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GroundingSupport.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GroundingSupport(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.segment = $root.google.cloud.aiplatform.v1beta1.Segment.decode(reader, reader.uint32()); - break; - } - case 2: { - if (!(message.groundingChunkIndices && message.groundingChunkIndices.length)) - message.groundingChunkIndices = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.groundingChunkIndices.push(reader.int32()); - } else - message.groundingChunkIndices.push(reader.int32()); - break; - } - case 3: { - if (!(message.confidenceScores && message.confidenceScores.length)) - message.confidenceScores = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.confidenceScores.push(reader.float()); - } else - message.confidenceScores.push(reader.float()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GroundingSupport message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GroundingSupport - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GroundingSupport} GroundingSupport - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GroundingSupport.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GroundingSupport message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GroundingSupport - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GroundingSupport.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.segment != null && message.hasOwnProperty("segment")) { - properties._segment = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.Segment.verify(message.segment); - if (error) - return "segment." + error; - } - } - if (message.groundingChunkIndices != null && message.hasOwnProperty("groundingChunkIndices")) { - if (!Array.isArray(message.groundingChunkIndices)) - return "groundingChunkIndices: array expected"; - for (var i = 0; i < message.groundingChunkIndices.length; ++i) - if (!$util.isInteger(message.groundingChunkIndices[i])) - return "groundingChunkIndices: integer[] expected"; - } - if (message.confidenceScores != null && message.hasOwnProperty("confidenceScores")) { - if (!Array.isArray(message.confidenceScores)) - return "confidenceScores: array expected"; - for (var i = 0; i < message.confidenceScores.length; ++i) - if (typeof message.confidenceScores[i] !== "number") - return "confidenceScores: number[] expected"; - } - return null; - }; - - /** - * Creates a GroundingSupport message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GroundingSupport - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GroundingSupport} GroundingSupport - */ - GroundingSupport.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GroundingSupport) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GroundingSupport(); - if (object.segment != null) { - if (typeof object.segment !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.GroundingSupport.segment: object expected"); - message.segment = $root.google.cloud.aiplatform.v1beta1.Segment.fromObject(object.segment); - } - if (object.groundingChunkIndices) { - if (!Array.isArray(object.groundingChunkIndices)) - throw TypeError(".google.cloud.aiplatform.v1beta1.GroundingSupport.groundingChunkIndices: array expected"); - message.groundingChunkIndices = []; - for (var i = 0; i < object.groundingChunkIndices.length; ++i) - message.groundingChunkIndices[i] = object.groundingChunkIndices[i] | 0; - } - if (object.confidenceScores) { - if (!Array.isArray(object.confidenceScores)) - throw TypeError(".google.cloud.aiplatform.v1beta1.GroundingSupport.confidenceScores: array expected"); - message.confidenceScores = []; - for (var i = 0; i < object.confidenceScores.length; ++i) - message.confidenceScores[i] = Number(object.confidenceScores[i]); - } - return message; - }; - - /** - * Creates a plain object from a GroundingSupport message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GroundingSupport - * @static - * @param {google.cloud.aiplatform.v1beta1.GroundingSupport} message GroundingSupport - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GroundingSupport.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.groundingChunkIndices = []; - object.confidenceScores = []; - } - if (message.segment != null && message.hasOwnProperty("segment")) { - object.segment = $root.google.cloud.aiplatform.v1beta1.Segment.toObject(message.segment, options); - if (options.oneofs) - object._segment = "segment"; - } - if (message.groundingChunkIndices && message.groundingChunkIndices.length) { - object.groundingChunkIndices = []; - for (var j = 0; j < message.groundingChunkIndices.length; ++j) - object.groundingChunkIndices[j] = message.groundingChunkIndices[j]; - } - if (message.confidenceScores && message.confidenceScores.length) { - object.confidenceScores = []; - for (var j = 0; j < message.confidenceScores.length; ++j) - object.confidenceScores[j] = options.json && !isFinite(message.confidenceScores[j]) ? String(message.confidenceScores[j]) : message.confidenceScores[j]; - } - return object; - }; - - /** - * Converts this GroundingSupport to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GroundingSupport - * @instance - * @returns {Object.} JSON object - */ - GroundingSupport.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for GroundingSupport - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.GroundingSupport - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - GroundingSupport.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GroundingSupport"; - }; - - return GroundingSupport; - })(); - - v1beta1.GroundingAttribution = (function() { - - /** - * Properties of a GroundingAttribution. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGroundingAttribution - * @property {google.cloud.aiplatform.v1beta1.GroundingAttribution.IWeb|null} [web] GroundingAttribution web - * @property {google.cloud.aiplatform.v1beta1.GroundingAttribution.IRetrievedContext|null} [retrievedContext] GroundingAttribution retrievedContext - * @property {google.cloud.aiplatform.v1beta1.ISegment|null} [segment] GroundingAttribution segment - * @property {number|null} [confidenceScore] GroundingAttribution confidenceScore - */ - - /** - * Constructs a new GroundingAttribution. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GroundingAttribution. - * @implements IGroundingAttribution - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGroundingAttribution=} [properties] Properties to set - */ - function GroundingAttribution(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GroundingAttribution web. - * @member {google.cloud.aiplatform.v1beta1.GroundingAttribution.IWeb|null|undefined} web - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution - * @instance - */ - GroundingAttribution.prototype.web = null; - - /** - * GroundingAttribution retrievedContext. - * @member {google.cloud.aiplatform.v1beta1.GroundingAttribution.IRetrievedContext|null|undefined} retrievedContext - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution - * @instance - */ - GroundingAttribution.prototype.retrievedContext = null; - - /** - * GroundingAttribution segment. - * @member {google.cloud.aiplatform.v1beta1.ISegment|null|undefined} segment - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution - * @instance - */ - GroundingAttribution.prototype.segment = null; - - /** - * GroundingAttribution confidenceScore. - * @member {number|null|undefined} confidenceScore - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution - * @instance - */ - GroundingAttribution.prototype.confidenceScore = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * GroundingAttribution reference. - * @member {"web"|"retrievedContext"|undefined} reference - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution - * @instance - */ - Object.defineProperty(GroundingAttribution.prototype, "reference", { - get: $util.oneOfGetter($oneOfFields = ["web", "retrievedContext"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * GroundingAttribution _confidenceScore. - * @member {"confidenceScore"|undefined} _confidenceScore - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution - * @instance - */ - Object.defineProperty(GroundingAttribution.prototype, "_confidenceScore", { - get: $util.oneOfGetter($oneOfFields = ["confidenceScore"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new GroundingAttribution instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution - * @static - * @param {google.cloud.aiplatform.v1beta1.IGroundingAttribution=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GroundingAttribution} GroundingAttribution instance - */ - GroundingAttribution.create = function create(properties) { - return new GroundingAttribution(properties); - }; - - /** - * Encodes the specified GroundingAttribution message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundingAttribution.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution - * @static - * @param {google.cloud.aiplatform.v1beta1.IGroundingAttribution} message GroundingAttribution message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GroundingAttribution.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.segment != null && Object.hasOwnProperty.call(message, "segment")) - $root.google.cloud.aiplatform.v1beta1.Segment.encode(message.segment, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.confidenceScore != null && Object.hasOwnProperty.call(message, "confidenceScore")) - writer.uint32(/* id 2, wireType 5 =*/21).float(message.confidenceScore); - if (message.web != null && Object.hasOwnProperty.call(message, "web")) - $root.google.cloud.aiplatform.v1beta1.GroundingAttribution.Web.encode(message.web, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.retrievedContext != null && Object.hasOwnProperty.call(message, "retrievedContext")) - $root.google.cloud.aiplatform.v1beta1.GroundingAttribution.RetrievedContext.encode(message.retrievedContext, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified GroundingAttribution message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundingAttribution.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution - * @static - * @param {google.cloud.aiplatform.v1beta1.IGroundingAttribution} message GroundingAttribution message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GroundingAttribution.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GroundingAttribution message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.GroundingAttribution} GroundingAttribution - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GroundingAttribution.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GroundingAttribution(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 3: { - message.web = $root.google.cloud.aiplatform.v1beta1.GroundingAttribution.Web.decode(reader, reader.uint32()); - break; - } - case 4: { - message.retrievedContext = $root.google.cloud.aiplatform.v1beta1.GroundingAttribution.RetrievedContext.decode(reader, reader.uint32()); - break; - } - case 1: { - message.segment = $root.google.cloud.aiplatform.v1beta1.Segment.decode(reader, reader.uint32()); - break; - } - case 2: { - message.confidenceScore = reader.float(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GroundingAttribution message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GroundingAttribution} GroundingAttribution - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GroundingAttribution.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GroundingAttribution message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GroundingAttribution.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.web != null && message.hasOwnProperty("web")) { - properties.reference = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.GroundingAttribution.Web.verify(message.web); - if (error) - return "web." + error; - } - } - if (message.retrievedContext != null && message.hasOwnProperty("retrievedContext")) { - if (properties.reference === 1) - return "reference: multiple values"; - properties.reference = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.GroundingAttribution.RetrievedContext.verify(message.retrievedContext); - if (error) - return "retrievedContext." + error; - } - } - if (message.segment != null && message.hasOwnProperty("segment")) { - var error = $root.google.cloud.aiplatform.v1beta1.Segment.verify(message.segment); - if (error) - return "segment." + error; - } - if (message.confidenceScore != null && message.hasOwnProperty("confidenceScore")) { - properties._confidenceScore = 1; - if (typeof message.confidenceScore !== "number") - return "confidenceScore: number expected"; - } - return null; - }; - - /** - * Creates a GroundingAttribution message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GroundingAttribution} GroundingAttribution - */ - GroundingAttribution.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GroundingAttribution) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GroundingAttribution(); - if (object.web != null) { - if (typeof object.web !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.GroundingAttribution.web: object expected"); - message.web = $root.google.cloud.aiplatform.v1beta1.GroundingAttribution.Web.fromObject(object.web); - } - if (object.retrievedContext != null) { - if (typeof object.retrievedContext !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.GroundingAttribution.retrievedContext: object expected"); - message.retrievedContext = $root.google.cloud.aiplatform.v1beta1.GroundingAttribution.RetrievedContext.fromObject(object.retrievedContext); - } - if (object.segment != null) { - if (typeof object.segment !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.GroundingAttribution.segment: object expected"); - message.segment = $root.google.cloud.aiplatform.v1beta1.Segment.fromObject(object.segment); - } - if (object.confidenceScore != null) - message.confidenceScore = Number(object.confidenceScore); - return message; - }; - - /** - * Creates a plain object from a GroundingAttribution message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution - * @static - * @param {google.cloud.aiplatform.v1beta1.GroundingAttribution} message GroundingAttribution - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GroundingAttribution.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.segment = null; - if (message.segment != null && message.hasOwnProperty("segment")) - object.segment = $root.google.cloud.aiplatform.v1beta1.Segment.toObject(message.segment, options); - if (message.confidenceScore != null && message.hasOwnProperty("confidenceScore")) { - object.confidenceScore = options.json && !isFinite(message.confidenceScore) ? String(message.confidenceScore) : message.confidenceScore; - if (options.oneofs) - object._confidenceScore = "confidenceScore"; - } - if (message.web != null && message.hasOwnProperty("web")) { - object.web = $root.google.cloud.aiplatform.v1beta1.GroundingAttribution.Web.toObject(message.web, options); - if (options.oneofs) - object.reference = "web"; - } - if (message.retrievedContext != null && message.hasOwnProperty("retrievedContext")) { - object.retrievedContext = $root.google.cloud.aiplatform.v1beta1.GroundingAttribution.RetrievedContext.toObject(message.retrievedContext, options); - if (options.oneofs) - object.reference = "retrievedContext"; - } - return object; - }; - - /** - * Converts this GroundingAttribution to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution - * @instance - * @returns {Object.} JSON object - */ - GroundingAttribution.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for GroundingAttribution - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - GroundingAttribution.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GroundingAttribution"; - }; - - GroundingAttribution.Web = (function() { - - /** - * Properties of a Web. - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution - * @interface IWeb - * @property {string|null} [uri] Web uri - * @property {string|null} [title] Web title - */ - - /** - * Constructs a new Web. - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution - * @classdesc Represents a Web. - * @implements IWeb - * @constructor - * @param {google.cloud.aiplatform.v1beta1.GroundingAttribution.IWeb=} [properties] Properties to set - */ - function Web(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Web uri. - * @member {string} uri - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution.Web - * @instance - */ - Web.prototype.uri = ""; - - /** - * Web title. - * @member {string} title - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution.Web - * @instance - */ - Web.prototype.title = ""; - - /** - * Creates a new Web instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution.Web - * @static - * @param {google.cloud.aiplatform.v1beta1.GroundingAttribution.IWeb=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GroundingAttribution.Web} Web instance - */ - Web.create = function create(properties) { - return new Web(properties); - }; - - /** - * Encodes the specified Web message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundingAttribution.Web.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution.Web - * @static - * @param {google.cloud.aiplatform.v1beta1.GroundingAttribution.IWeb} message Web message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Web.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.uri != null && Object.hasOwnProperty.call(message, "uri")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.uri); - if (message.title != null && Object.hasOwnProperty.call(message, "title")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.title); - return writer; - }; - - /** - * Encodes the specified Web message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundingAttribution.Web.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution.Web - * @static - * @param {google.cloud.aiplatform.v1beta1.GroundingAttribution.IWeb} message Web message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Web.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Web message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution.Web - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.GroundingAttribution.Web} Web - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Web.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GroundingAttribution.Web(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.uri = reader.string(); - break; - } - case 2: { - message.title = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Web message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution.Web - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GroundingAttribution.Web} Web - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Web.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Web message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution.Web - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Web.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.uri != null && message.hasOwnProperty("uri")) - if (!$util.isString(message.uri)) - return "uri: string expected"; - if (message.title != null && message.hasOwnProperty("title")) - if (!$util.isString(message.title)) - return "title: string expected"; - return null; - }; - - /** - * Creates a Web message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution.Web - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GroundingAttribution.Web} Web - */ - Web.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GroundingAttribution.Web) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GroundingAttribution.Web(); - if (object.uri != null) - message.uri = String(object.uri); - if (object.title != null) - message.title = String(object.title); - return message; - }; - - /** - * Creates a plain object from a Web message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution.Web - * @static - * @param {google.cloud.aiplatform.v1beta1.GroundingAttribution.Web} message Web - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Web.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.uri = ""; - object.title = ""; - } - if (message.uri != null && message.hasOwnProperty("uri")) - object.uri = message.uri; - if (message.title != null && message.hasOwnProperty("title")) - object.title = message.title; - return object; - }; - - /** - * Converts this Web to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution.Web - * @instance - * @returns {Object.} JSON object - */ - Web.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for Web - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution.Web - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Web.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GroundingAttribution.Web"; - }; - - return Web; - })(); - - GroundingAttribution.RetrievedContext = (function() { - - /** - * Properties of a RetrievedContext. - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution - * @interface IRetrievedContext - * @property {string|null} [uri] RetrievedContext uri - * @property {string|null} [title] RetrievedContext title - */ - - /** - * Constructs a new RetrievedContext. - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution - * @classdesc Represents a RetrievedContext. - * @implements IRetrievedContext - * @constructor - * @param {google.cloud.aiplatform.v1beta1.GroundingAttribution.IRetrievedContext=} [properties] Properties to set - */ - function RetrievedContext(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * RetrievedContext uri. - * @member {string} uri - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution.RetrievedContext - * @instance - */ - RetrievedContext.prototype.uri = ""; - - /** - * RetrievedContext title. - * @member {string} title - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution.RetrievedContext - * @instance - */ - RetrievedContext.prototype.title = ""; - - /** - * Creates a new RetrievedContext instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution.RetrievedContext - * @static - * @param {google.cloud.aiplatform.v1beta1.GroundingAttribution.IRetrievedContext=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GroundingAttribution.RetrievedContext} RetrievedContext instance - */ - RetrievedContext.create = function create(properties) { - return new RetrievedContext(properties); - }; - - /** - * Encodes the specified RetrievedContext message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundingAttribution.RetrievedContext.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution.RetrievedContext - * @static - * @param {google.cloud.aiplatform.v1beta1.GroundingAttribution.IRetrievedContext} message RetrievedContext message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RetrievedContext.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.uri != null && Object.hasOwnProperty.call(message, "uri")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.uri); - if (message.title != null && Object.hasOwnProperty.call(message, "title")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.title); - return writer; - }; - - /** - * Encodes the specified RetrievedContext message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundingAttribution.RetrievedContext.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution.RetrievedContext - * @static - * @param {google.cloud.aiplatform.v1beta1.GroundingAttribution.IRetrievedContext} message RetrievedContext message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RetrievedContext.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a RetrievedContext message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution.RetrievedContext - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.GroundingAttribution.RetrievedContext} RetrievedContext - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RetrievedContext.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GroundingAttribution.RetrievedContext(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.uri = reader.string(); - break; - } - case 2: { - message.title = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a RetrievedContext message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution.RetrievedContext + * @memberof google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GroundingAttribution.RetrievedContext} RetrievedContext + * @returns {google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext} RetrievedContext * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -297988,7 +327197,7 @@ /** * Verifies a RetrievedContext message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution.RetrievedContext + * @memberof google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -297996,27 +327205,32 @@ RetrievedContext.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.uri != null && message.hasOwnProperty("uri")) + var properties = {}; + if (message.uri != null && message.hasOwnProperty("uri")) { + properties._uri = 1; if (!$util.isString(message.uri)) return "uri: string expected"; - if (message.title != null && message.hasOwnProperty("title")) + } + if (message.title != null && message.hasOwnProperty("title")) { + properties._title = 1; if (!$util.isString(message.title)) return "title: string expected"; + } return null; }; /** * Creates a RetrievedContext message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution.RetrievedContext + * @memberof google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GroundingAttribution.RetrievedContext} RetrievedContext + * @returns {google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext} RetrievedContext */ RetrievedContext.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GroundingAttribution.RetrievedContext) + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GroundingAttribution.RetrievedContext(); + var message = new $root.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext(); if (object.uri != null) message.uri = String(object.uri); if (object.title != null) @@ -298027,9 +327241,9 @@ /** * Creates a plain object from a RetrievedContext message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution.RetrievedContext + * @memberof google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext * @static - * @param {google.cloud.aiplatform.v1beta1.GroundingAttribution.RetrievedContext} message RetrievedContext + * @param {google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext} message RetrievedContext * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -298037,21 +327251,23 @@ if (!options) options = {}; var object = {}; - if (options.defaults) { - object.uri = ""; - object.title = ""; - } - if (message.uri != null && message.hasOwnProperty("uri")) + if (message.uri != null && message.hasOwnProperty("uri")) { object.uri = message.uri; - if (message.title != null && message.hasOwnProperty("title")) + if (options.oneofs) + object._uri = "uri"; + } + if (message.title != null && message.hasOwnProperty("title")) { object.title = message.title; + if (options.oneofs) + object._title = "title"; + } return object; }; /** * Converts this RetrievedContext to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution.RetrievedContext + * @memberof google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext * @instance * @returns {Object.} JSON object */ @@ -298062,7 +327278,7 @@ /** * Gets the default type url for RetrievedContext * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.GroundingAttribution.RetrievedContext + * @memberof google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url @@ -298071,13 +327287,336 @@ if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GroundingAttribution.RetrievedContext"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext"; }; return RetrievedContext; })(); - return GroundingAttribution; + return GroundingChunk; + })(); + + v1beta1.GroundingSupport = (function() { + + /** + * Properties of a GroundingSupport. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IGroundingSupport + * @property {google.cloud.aiplatform.v1beta1.ISegment|null} [segment] GroundingSupport segment + * @property {Array.|null} [groundingChunkIndices] GroundingSupport groundingChunkIndices + * @property {Array.|null} [confidenceScores] GroundingSupport confidenceScores + */ + + /** + * Constructs a new GroundingSupport. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a GroundingSupport. + * @implements IGroundingSupport + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IGroundingSupport=} [properties] Properties to set + */ + function GroundingSupport(properties) { + this.groundingChunkIndices = []; + this.confidenceScores = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GroundingSupport segment. + * @member {google.cloud.aiplatform.v1beta1.ISegment|null|undefined} segment + * @memberof google.cloud.aiplatform.v1beta1.GroundingSupport + * @instance + */ + GroundingSupport.prototype.segment = null; + + /** + * GroundingSupport groundingChunkIndices. + * @member {Array.} groundingChunkIndices + * @memberof google.cloud.aiplatform.v1beta1.GroundingSupport + * @instance + */ + GroundingSupport.prototype.groundingChunkIndices = $util.emptyArray; + + /** + * GroundingSupport confidenceScores. + * @member {Array.} confidenceScores + * @memberof google.cloud.aiplatform.v1beta1.GroundingSupport + * @instance + */ + GroundingSupport.prototype.confidenceScores = $util.emptyArray; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * GroundingSupport _segment. + * @member {"segment"|undefined} _segment + * @memberof google.cloud.aiplatform.v1beta1.GroundingSupport + * @instance + */ + Object.defineProperty(GroundingSupport.prototype, "_segment", { + get: $util.oneOfGetter($oneOfFields = ["segment"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new GroundingSupport instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.GroundingSupport + * @static + * @param {google.cloud.aiplatform.v1beta1.IGroundingSupport=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GroundingSupport} GroundingSupport instance + */ + GroundingSupport.create = function create(properties) { + return new GroundingSupport(properties); + }; + + /** + * Encodes the specified GroundingSupport message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundingSupport.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.GroundingSupport + * @static + * @param {google.cloud.aiplatform.v1beta1.IGroundingSupport} message GroundingSupport message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GroundingSupport.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.segment != null && Object.hasOwnProperty.call(message, "segment")) + $root.google.cloud.aiplatform.v1beta1.Segment.encode(message.segment, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.groundingChunkIndices != null && message.groundingChunkIndices.length) { + writer.uint32(/* id 2, wireType 2 =*/18).fork(); + for (var i = 0; i < message.groundingChunkIndices.length; ++i) + writer.int32(message.groundingChunkIndices[i]); + writer.ldelim(); + } + if (message.confidenceScores != null && message.confidenceScores.length) { + writer.uint32(/* id 3, wireType 2 =*/26).fork(); + for (var i = 0; i < message.confidenceScores.length; ++i) + writer.float(message.confidenceScores[i]); + writer.ldelim(); + } + return writer; + }; + + /** + * Encodes the specified GroundingSupport message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundingSupport.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.GroundingSupport + * @static + * @param {google.cloud.aiplatform.v1beta1.IGroundingSupport} message GroundingSupport message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GroundingSupport.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GroundingSupport message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.GroundingSupport + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.GroundingSupport} GroundingSupport + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GroundingSupport.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GroundingSupport(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.segment = $root.google.cloud.aiplatform.v1beta1.Segment.decode(reader, reader.uint32()); + break; + } + case 2: { + if (!(message.groundingChunkIndices && message.groundingChunkIndices.length)) + message.groundingChunkIndices = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.groundingChunkIndices.push(reader.int32()); + } else + message.groundingChunkIndices.push(reader.int32()); + break; + } + case 3: { + if (!(message.confidenceScores && message.confidenceScores.length)) + message.confidenceScores = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.confidenceScores.push(reader.float()); + } else + message.confidenceScores.push(reader.float()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GroundingSupport message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.GroundingSupport + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.GroundingSupport} GroundingSupport + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GroundingSupport.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GroundingSupport message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.GroundingSupport + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GroundingSupport.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.segment != null && message.hasOwnProperty("segment")) { + properties._segment = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.Segment.verify(message.segment); + if (error) + return "segment." + error; + } + } + if (message.groundingChunkIndices != null && message.hasOwnProperty("groundingChunkIndices")) { + if (!Array.isArray(message.groundingChunkIndices)) + return "groundingChunkIndices: array expected"; + for (var i = 0; i < message.groundingChunkIndices.length; ++i) + if (!$util.isInteger(message.groundingChunkIndices[i])) + return "groundingChunkIndices: integer[] expected"; + } + if (message.confidenceScores != null && message.hasOwnProperty("confidenceScores")) { + if (!Array.isArray(message.confidenceScores)) + return "confidenceScores: array expected"; + for (var i = 0; i < message.confidenceScores.length; ++i) + if (typeof message.confidenceScores[i] !== "number") + return "confidenceScores: number[] expected"; + } + return null; + }; + + /** + * Creates a GroundingSupport message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.GroundingSupport + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.GroundingSupport} GroundingSupport + */ + GroundingSupport.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GroundingSupport) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.GroundingSupport(); + if (object.segment != null) { + if (typeof object.segment !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.GroundingSupport.segment: object expected"); + message.segment = $root.google.cloud.aiplatform.v1beta1.Segment.fromObject(object.segment); + } + if (object.groundingChunkIndices) { + if (!Array.isArray(object.groundingChunkIndices)) + throw TypeError(".google.cloud.aiplatform.v1beta1.GroundingSupport.groundingChunkIndices: array expected"); + message.groundingChunkIndices = []; + for (var i = 0; i < object.groundingChunkIndices.length; ++i) + message.groundingChunkIndices[i] = object.groundingChunkIndices[i] | 0; + } + if (object.confidenceScores) { + if (!Array.isArray(object.confidenceScores)) + throw TypeError(".google.cloud.aiplatform.v1beta1.GroundingSupport.confidenceScores: array expected"); + message.confidenceScores = []; + for (var i = 0; i < object.confidenceScores.length; ++i) + message.confidenceScores[i] = Number(object.confidenceScores[i]); + } + return message; + }; + + /** + * Creates a plain object from a GroundingSupport message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.GroundingSupport + * @static + * @param {google.cloud.aiplatform.v1beta1.GroundingSupport} message GroundingSupport + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GroundingSupport.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.groundingChunkIndices = []; + object.confidenceScores = []; + } + if (message.segment != null && message.hasOwnProperty("segment")) { + object.segment = $root.google.cloud.aiplatform.v1beta1.Segment.toObject(message.segment, options); + if (options.oneofs) + object._segment = "segment"; + } + if (message.groundingChunkIndices && message.groundingChunkIndices.length) { + object.groundingChunkIndices = []; + for (var j = 0; j < message.groundingChunkIndices.length; ++j) + object.groundingChunkIndices[j] = message.groundingChunkIndices[j]; + } + if (message.confidenceScores && message.confidenceScores.length) { + object.confidenceScores = []; + for (var j = 0; j < message.confidenceScores.length; ++j) + object.confidenceScores[j] = options.json && !isFinite(message.confidenceScores[j]) ? String(message.confidenceScores[j]) : message.confidenceScores[j]; + } + return object; + }; + + /** + * Converts this GroundingSupport to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.GroundingSupport + * @instance + * @returns {Object.} JSON object + */ + GroundingSupport.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GroundingSupport + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.GroundingSupport + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GroundingSupport.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GroundingSupport"; + }; + + return GroundingSupport; })(); v1beta1.GroundingMetadata = (function() { @@ -298089,7 +327628,6 @@ * @property {Array.|null} [webSearchQueries] GroundingMetadata webSearchQueries * @property {google.cloud.aiplatform.v1beta1.ISearchEntryPoint|null} [searchEntryPoint] GroundingMetadata searchEntryPoint * @property {Array.|null} [retrievalQueries] GroundingMetadata retrievalQueries - * @property {Array.|null} [groundingAttributions] GroundingMetadata groundingAttributions * @property {Array.|null} [groundingChunks] GroundingMetadata groundingChunks * @property {Array.|null} [groundingSupports] GroundingMetadata groundingSupports */ @@ -298105,7 +327643,6 @@ function GroundingMetadata(properties) { this.webSearchQueries = []; this.retrievalQueries = []; - this.groundingAttributions = []; this.groundingChunks = []; this.groundingSupports = []; if (properties) @@ -298138,14 +327675,6 @@ */ GroundingMetadata.prototype.retrievalQueries = $util.emptyArray; - /** - * GroundingMetadata groundingAttributions. - * @member {Array.} groundingAttributions - * @memberof google.cloud.aiplatform.v1beta1.GroundingMetadata - * @instance - */ - GroundingMetadata.prototype.groundingAttributions = $util.emptyArray; - /** * GroundingMetadata groundingChunks. * @member {Array.} groundingChunks @@ -298203,9 +327732,6 @@ if (message.webSearchQueries != null && message.webSearchQueries.length) for (var i = 0; i < message.webSearchQueries.length; ++i) writer.uint32(/* id 1, wireType 2 =*/10).string(message.webSearchQueries[i]); - if (message.groundingAttributions != null && message.groundingAttributions.length) - for (var i = 0; i < message.groundingAttributions.length; ++i) - $root.google.cloud.aiplatform.v1beta1.GroundingAttribution.encode(message.groundingAttributions[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.retrievalQueries != null && message.retrievalQueries.length) for (var i = 0; i < message.retrievalQueries.length; ++i) writer.uint32(/* id 3, wireType 2 =*/26).string(message.retrievalQueries[i]); @@ -298267,12 +327793,6 @@ message.retrievalQueries.push(reader.string()); break; } - case 2: { - if (!(message.groundingAttributions && message.groundingAttributions.length)) - message.groundingAttributions = []; - message.groundingAttributions.push($root.google.cloud.aiplatform.v1beta1.GroundingAttribution.decode(reader, reader.uint32())); - break; - } case 5: { if (!(message.groundingChunks && message.groundingChunks.length)) message.groundingChunks = []; @@ -298343,15 +327863,6 @@ if (!$util.isString(message.retrievalQueries[i])) return "retrievalQueries: string[] expected"; } - if (message.groundingAttributions != null && message.hasOwnProperty("groundingAttributions")) { - if (!Array.isArray(message.groundingAttributions)) - return "groundingAttributions: array expected"; - for (var i = 0; i < message.groundingAttributions.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.GroundingAttribution.verify(message.groundingAttributions[i]); - if (error) - return "groundingAttributions." + error; - } - } if (message.groundingChunks != null && message.hasOwnProperty("groundingChunks")) { if (!Array.isArray(message.groundingChunks)) return "groundingChunks: array expected"; @@ -298404,16 +327915,6 @@ for (var i = 0; i < object.retrievalQueries.length; ++i) message.retrievalQueries[i] = String(object.retrievalQueries[i]); } - if (object.groundingAttributions) { - if (!Array.isArray(object.groundingAttributions)) - throw TypeError(".google.cloud.aiplatform.v1beta1.GroundingMetadata.groundingAttributions: array expected"); - message.groundingAttributions = []; - for (var i = 0; i < object.groundingAttributions.length; ++i) { - if (typeof object.groundingAttributions[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.GroundingMetadata.groundingAttributions: object expected"); - message.groundingAttributions[i] = $root.google.cloud.aiplatform.v1beta1.GroundingAttribution.fromObject(object.groundingAttributions[i]); - } - } if (object.groundingChunks) { if (!Array.isArray(object.groundingChunks)) throw TypeError(".google.cloud.aiplatform.v1beta1.GroundingMetadata.groundingChunks: array expected"); @@ -298452,7 +327953,6 @@ var object = {}; if (options.arrays || options.defaults) { object.webSearchQueries = []; - object.groundingAttributions = []; object.retrievalQueries = []; object.groundingChunks = []; object.groundingSupports = []; @@ -298462,11 +327962,6 @@ for (var j = 0; j < message.webSearchQueries.length; ++j) object.webSearchQueries[j] = message.webSearchQueries[j]; } - if (message.groundingAttributions && message.groundingAttributions.length) { - object.groundingAttributions = []; - for (var j = 0; j < message.groundingAttributions.length; ++j) - object.groundingAttributions[j] = $root.google.cloud.aiplatform.v1beta1.GroundingAttribution.toObject(message.groundingAttributions[j], options); - } if (message.retrievalQueries && message.retrievalQueries.length) { object.retrievalQueries = []; for (var j = 0; j < message.retrievalQueries.length; ++j) @@ -302361,7 +331856,6 @@ * Properties of a GoogleSearchRetrieval. * @memberof google.cloud.aiplatform.v1beta1 * @interface IGoogleSearchRetrieval - * @property {boolean|null} [disableAttribution] GoogleSearchRetrieval disableAttribution */ /** @@ -302379,14 +331873,6 @@ this[keys[i]] = properties[keys[i]]; } - /** - * GoogleSearchRetrieval disableAttribution. - * @member {boolean} disableAttribution - * @memberof google.cloud.aiplatform.v1beta1.GoogleSearchRetrieval - * @instance - */ - GoogleSearchRetrieval.prototype.disableAttribution = false; - /** * Creates a new GoogleSearchRetrieval instance using the specified properties. * @function create @@ -302411,8 +331897,6 @@ GoogleSearchRetrieval.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.disableAttribution != null && Object.hasOwnProperty.call(message, "disableAttribution")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.disableAttribution); return writer; }; @@ -302447,10 +331931,6 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.disableAttribution = reader.bool(); - break; - } default: reader.skipType(tag & 7); break; @@ -302486,9 +331966,6 @@ GoogleSearchRetrieval.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.disableAttribution != null && message.hasOwnProperty("disableAttribution")) - if (typeof message.disableAttribution !== "boolean") - return "disableAttribution: boolean expected"; return null; }; @@ -302503,10 +331980,7 @@ GoogleSearchRetrieval.fromObject = function fromObject(object) { if (object instanceof $root.google.cloud.aiplatform.v1beta1.GoogleSearchRetrieval) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GoogleSearchRetrieval(); - if (object.disableAttribution != null) - message.disableAttribution = Boolean(object.disableAttribution); - return message; + return new $root.google.cloud.aiplatform.v1beta1.GoogleSearchRetrieval(); }; /** @@ -302518,15 +331992,8 @@ * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GoogleSearchRetrieval.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.disableAttribution = false; - if (message.disableAttribution != null && message.hasOwnProperty("disableAttribution")) - object.disableAttribution = message.disableAttribution; - return object; + GoogleSearchRetrieval.toObject = function toObject() { + return {}; }; /** @@ -303576,6 +333043,8 @@ * @property {Object.|null} [labels] CustomJob labels * @property {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null} [encryptionSpec] CustomJob encryptionSpec * @property {Object.|null} [webAccessUris] CustomJob webAccessUris + * @property {boolean|null} [satisfiesPzs] CustomJob satisfiesPzs + * @property {boolean|null} [satisfiesPzi] CustomJob satisfiesPzi */ /** @@ -303691,6 +333160,22 @@ */ CustomJob.prototype.webAccessUris = $util.emptyObject; + /** + * CustomJob satisfiesPzs. + * @member {boolean} satisfiesPzs + * @memberof google.cloud.aiplatform.v1beta1.CustomJob + * @instance + */ + CustomJob.prototype.satisfiesPzs = false; + + /** + * CustomJob satisfiesPzi. + * @member {boolean} satisfiesPzi + * @memberof google.cloud.aiplatform.v1beta1.CustomJob + * @instance + */ + CustomJob.prototype.satisfiesPzi = false; + /** * Creates a new CustomJob instance using the specified properties. * @function create @@ -303741,6 +333226,10 @@ if (message.webAccessUris != null && Object.hasOwnProperty.call(message, "webAccessUris")) for (var keys = Object.keys(message.webAccessUris), i = 0; i < keys.length; ++i) writer.uint32(/* id 16, wireType 2 =*/130).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.webAccessUris[keys[i]]).ldelim(); + if (message.satisfiesPzs != null && Object.hasOwnProperty.call(message, "satisfiesPzs")) + writer.uint32(/* id 18, wireType 0 =*/144).bool(message.satisfiesPzs); + if (message.satisfiesPzi != null && Object.hasOwnProperty.call(message, "satisfiesPzi")) + writer.uint32(/* id 19, wireType 0 =*/152).bool(message.satisfiesPzi); return writer; }; @@ -303861,6 +333350,14 @@ message.webAccessUris[key] = value; break; } + case 18: { + message.satisfiesPzs = reader.bool(); + break; + } + case 19: { + message.satisfiesPzi = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -303971,6 +333468,12 @@ if (!$util.isString(message.webAccessUris[key[i]])) return "webAccessUris: string{k:string} expected"; } + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) + if (typeof message.satisfiesPzs !== "boolean") + return "satisfiesPzs: boolean expected"; + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) + if (typeof message.satisfiesPzi !== "boolean") + return "satisfiesPzi: boolean expected"; return null; }; @@ -304095,6 +333598,10 @@ for (var keys = Object.keys(object.webAccessUris), i = 0; i < keys.length; ++i) message.webAccessUris[keys[i]] = String(object.webAccessUris[keys[i]]); } + if (object.satisfiesPzs != null) + message.satisfiesPzs = Boolean(object.satisfiesPzs); + if (object.satisfiesPzi != null) + message.satisfiesPzi = Boolean(object.satisfiesPzi); return message; }; @@ -304126,6 +333633,8 @@ object.updateTime = null; object.error = null; object.encryptionSpec = null; + object.satisfiesPzs = false; + object.satisfiesPzi = false; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -304158,6 +333667,10 @@ for (var j = 0; j < keys2.length; ++j) object.webAccessUris[keys2[j]] = message.webAccessUris[keys2[j]]; } + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) + object.satisfiesPzs = message.satisfiesPzs; + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) + object.satisfiesPzi = message.satisfiesPzi; return object; }; @@ -306029,6 +335542,8 @@ case 0: case 1: case 2: + case 3: + case 4: break; } if (message.disableRetries != null && message.hasOwnProperty("disableRetries")) @@ -306075,6 +335590,14 @@ case 2: message.strategy = 2; break; + case "STANDARD": + case 3: + message.strategy = 3; + break; + case "SPOT": + case 4: + message.strategy = 4; + break; } if (object.disableRetries != null) message.disableRetries = Boolean(object.disableRetries); @@ -306144,12 +335667,16 @@ * @property {number} STRATEGY_UNSPECIFIED=0 STRATEGY_UNSPECIFIED value * @property {number} ON_DEMAND=1 ON_DEMAND value * @property {number} LOW_COST=2 LOW_COST value + * @property {number} STANDARD=3 STANDARD value + * @property {number} SPOT=4 SPOT value */ Scheduling.Strategy = (function() { var valuesById = {}, values = Object.create(valuesById); values[valuesById[0] = "STRATEGY_UNSPECIFIED"] = 0; values[valuesById[1] = "ON_DEMAND"] = 1; values[valuesById[2] = "LOW_COST"] = 2; + values[valuesById[3] = "STANDARD"] = 3; + values[valuesById[4] = "SPOT"] = 4; return values; })(); @@ -325412,6 +354939,7 @@ * @interface IPrivateServiceConnectConfig * @property {boolean|null} [enablePrivateServiceConnect] PrivateServiceConnectConfig enablePrivateServiceConnect * @property {Array.|null} [projectAllowlist] PrivateServiceConnectConfig projectAllowlist + * @property {string|null} [serviceAttachment] PrivateServiceConnectConfig serviceAttachment */ /** @@ -325446,6 +354974,14 @@ */ PrivateServiceConnectConfig.prototype.projectAllowlist = $util.emptyArray; + /** + * PrivateServiceConnectConfig serviceAttachment. + * @member {string} serviceAttachment + * @memberof google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig + * @instance + */ + PrivateServiceConnectConfig.prototype.serviceAttachment = ""; + /** * Creates a new PrivateServiceConnectConfig instance using the specified properties. * @function create @@ -325475,6 +355011,8 @@ if (message.projectAllowlist != null && message.projectAllowlist.length) for (var i = 0; i < message.projectAllowlist.length; ++i) writer.uint32(/* id 2, wireType 2 =*/18).string(message.projectAllowlist[i]); + if (message.serviceAttachment != null && Object.hasOwnProperty.call(message, "serviceAttachment")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.serviceAttachment); return writer; }; @@ -325519,6 +355057,10 @@ message.projectAllowlist.push(reader.string()); break; } + case 5: { + message.serviceAttachment = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -325564,6 +355106,9 @@ if (!$util.isString(message.projectAllowlist[i])) return "projectAllowlist: string[] expected"; } + if (message.serviceAttachment != null && message.hasOwnProperty("serviceAttachment")) + if (!$util.isString(message.serviceAttachment)) + return "serviceAttachment: string expected"; return null; }; @@ -325588,6 +355133,8 @@ for (var i = 0; i < object.projectAllowlist.length; ++i) message.projectAllowlist[i] = String(object.projectAllowlist[i]); } + if (object.serviceAttachment != null) + message.serviceAttachment = String(object.serviceAttachment); return message; }; @@ -325606,8 +355153,10 @@ var object = {}; if (options.arrays || options.defaults) object.projectAllowlist = []; - if (options.defaults) + if (options.defaults) { object.enablePrivateServiceConnect = false; + object.serviceAttachment = ""; + } if (message.enablePrivateServiceConnect != null && message.hasOwnProperty("enablePrivateServiceConnect")) object.enablePrivateServiceConnect = message.enablePrivateServiceConnect; if (message.projectAllowlist && message.projectAllowlist.length) { @@ -325615,6 +355164,8 @@ for (var j = 0; j < message.projectAllowlist.length; ++j) object.projectAllowlist[j] = message.projectAllowlist[j]; } + if (message.serviceAttachment != null && message.hasOwnProperty("serviceAttachment")) + object.serviceAttachment = message.serviceAttachment; return object; }; @@ -330120,6 +359671,8 @@ * @property {string|null} [etag] EntityType etag * @property {google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig|null} [monitoringConfig] EntityType monitoringConfig * @property {number|null} [offlineStorageTtlDays] EntityType offlineStorageTtlDays + * @property {boolean|null} [satisfiesPzs] EntityType satisfiesPzs + * @property {boolean|null} [satisfiesPzi] EntityType satisfiesPzi */ /** @@ -330202,6 +359755,22 @@ */ EntityType.prototype.offlineStorageTtlDays = 0; + /** + * EntityType satisfiesPzs. + * @member {boolean} satisfiesPzs + * @memberof google.cloud.aiplatform.v1beta1.EntityType + * @instance + */ + EntityType.prototype.satisfiesPzs = false; + + /** + * EntityType satisfiesPzi. + * @member {boolean} satisfiesPzi + * @memberof google.cloud.aiplatform.v1beta1.EntityType + * @instance + */ + EntityType.prototype.satisfiesPzi = false; + /** * Creates a new EntityType instance using the specified properties. * @function create @@ -330243,6 +359812,10 @@ $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.encode(message.monitoringConfig, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); if (message.offlineStorageTtlDays != null && Object.hasOwnProperty.call(message, "offlineStorageTtlDays")) writer.uint32(/* id 10, wireType 0 =*/80).int32(message.offlineStorageTtlDays); + if (message.satisfiesPzs != null && Object.hasOwnProperty.call(message, "satisfiesPzs")) + writer.uint32(/* id 11, wireType 0 =*/88).bool(message.satisfiesPzs); + if (message.satisfiesPzi != null && Object.hasOwnProperty.call(message, "satisfiesPzi")) + writer.uint32(/* id 12, wireType 0 =*/96).bool(message.satisfiesPzi); return writer; }; @@ -330328,6 +359901,14 @@ message.offlineStorageTtlDays = reader.int32(); break; } + case 11: { + message.satisfiesPzs = reader.bool(); + break; + } + case 12: { + message.satisfiesPzi = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -330398,6 +359979,12 @@ if (message.offlineStorageTtlDays != null && message.hasOwnProperty("offlineStorageTtlDays")) if (!$util.isInteger(message.offlineStorageTtlDays)) return "offlineStorageTtlDays: integer expected"; + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) + if (typeof message.satisfiesPzs !== "boolean") + return "satisfiesPzs: boolean expected"; + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) + if (typeof message.satisfiesPzi !== "boolean") + return "satisfiesPzi: boolean expected"; return null; }; @@ -330443,6 +360030,10 @@ } if (object.offlineStorageTtlDays != null) message.offlineStorageTtlDays = object.offlineStorageTtlDays | 0; + if (object.satisfiesPzs != null) + message.satisfiesPzs = Boolean(object.satisfiesPzs); + if (object.satisfiesPzi != null) + message.satisfiesPzi = Boolean(object.satisfiesPzi); return message; }; @@ -330469,6 +360060,8 @@ object.etag = ""; object.monitoringConfig = null; object.offlineStorageTtlDays = 0; + object.satisfiesPzs = false; + object.satisfiesPzi = false; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -330490,6 +360083,10 @@ object.monitoringConfig = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.toObject(message.monitoringConfig, options); if (message.offlineStorageTtlDays != null && message.hasOwnProperty("offlineStorageTtlDays")) object.offlineStorageTtlDays = message.offlineStorageTtlDays; + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) + object.satisfiesPzs = message.satisfiesPzs; + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) + object.satisfiesPzi = message.satisfiesPzi; return object; }; @@ -333025,6 +362622,8 @@ * @property {google.cloud.aiplatform.v1beta1.IQuestionAnsweringRelevanceInput|null} [questionAnsweringRelevanceInput] EvaluateInstancesRequest questionAnsweringRelevanceInput * @property {google.cloud.aiplatform.v1beta1.IQuestionAnsweringHelpfulnessInput|null} [questionAnsweringHelpfulnessInput] EvaluateInstancesRequest questionAnsweringHelpfulnessInput * @property {google.cloud.aiplatform.v1beta1.IQuestionAnsweringCorrectnessInput|null} [questionAnsweringCorrectnessInput] EvaluateInstancesRequest questionAnsweringCorrectnessInput + * @property {google.cloud.aiplatform.v1beta1.IPointwiseMetricInput|null} [pointwiseMetricInput] EvaluateInstancesRequest pointwiseMetricInput + * @property {google.cloud.aiplatform.v1beta1.IPairwiseMetricInput|null} [pairwiseMetricInput] EvaluateInstancesRequest pairwiseMetricInput * @property {google.cloud.aiplatform.v1beta1.IToolCallValidInput|null} [toolCallValidInput] EvaluateInstancesRequest toolCallValidInput * @property {google.cloud.aiplatform.v1beta1.IToolNameMatchInput|null} [toolNameMatchInput] EvaluateInstancesRequest toolNameMatchInput * @property {google.cloud.aiplatform.v1beta1.IToolParameterKeyMatchInput|null} [toolParameterKeyMatchInput] EvaluateInstancesRequest toolParameterKeyMatchInput @@ -333183,6 +362782,22 @@ */ EvaluateInstancesRequest.prototype.questionAnsweringCorrectnessInput = null; + /** + * EvaluateInstancesRequest pointwiseMetricInput. + * @member {google.cloud.aiplatform.v1beta1.IPointwiseMetricInput|null|undefined} pointwiseMetricInput + * @memberof google.cloud.aiplatform.v1beta1.EvaluateInstancesRequest + * @instance + */ + EvaluateInstancesRequest.prototype.pointwiseMetricInput = null; + + /** + * EvaluateInstancesRequest pairwiseMetricInput. + * @member {google.cloud.aiplatform.v1beta1.IPairwiseMetricInput|null|undefined} pairwiseMetricInput + * @memberof google.cloud.aiplatform.v1beta1.EvaluateInstancesRequest + * @instance + */ + EvaluateInstancesRequest.prototype.pairwiseMetricInput = null; + /** * EvaluateInstancesRequest toolCallValidInput. * @member {google.cloud.aiplatform.v1beta1.IToolCallValidInput|null|undefined} toolCallValidInput @@ -333228,12 +362843,12 @@ /** * EvaluateInstancesRequest metricInputs. - * @member {"exactMatchInput"|"bleuInput"|"rougeInput"|"fluencyInput"|"coherenceInput"|"safetyInput"|"groundednessInput"|"fulfillmentInput"|"summarizationQualityInput"|"pairwiseSummarizationQualityInput"|"summarizationHelpfulnessInput"|"summarizationVerbosityInput"|"questionAnsweringQualityInput"|"pairwiseQuestionAnsweringQualityInput"|"questionAnsweringRelevanceInput"|"questionAnsweringHelpfulnessInput"|"questionAnsweringCorrectnessInput"|"toolCallValidInput"|"toolNameMatchInput"|"toolParameterKeyMatchInput"|"toolParameterKvMatchInput"|undefined} metricInputs + * @member {"exactMatchInput"|"bleuInput"|"rougeInput"|"fluencyInput"|"coherenceInput"|"safetyInput"|"groundednessInput"|"fulfillmentInput"|"summarizationQualityInput"|"pairwiseSummarizationQualityInput"|"summarizationHelpfulnessInput"|"summarizationVerbosityInput"|"questionAnsweringQualityInput"|"pairwiseQuestionAnsweringQualityInput"|"questionAnsweringRelevanceInput"|"questionAnsweringHelpfulnessInput"|"questionAnsweringCorrectnessInput"|"pointwiseMetricInput"|"pairwiseMetricInput"|"toolCallValidInput"|"toolNameMatchInput"|"toolParameterKeyMatchInput"|"toolParameterKvMatchInput"|undefined} metricInputs * @memberof google.cloud.aiplatform.v1beta1.EvaluateInstancesRequest * @instance */ Object.defineProperty(EvaluateInstancesRequest.prototype, "metricInputs", { - get: $util.oneOfGetter($oneOfFields = ["exactMatchInput", "bleuInput", "rougeInput", "fluencyInput", "coherenceInput", "safetyInput", "groundednessInput", "fulfillmentInput", "summarizationQualityInput", "pairwiseSummarizationQualityInput", "summarizationHelpfulnessInput", "summarizationVerbosityInput", "questionAnsweringQualityInput", "pairwiseQuestionAnsweringQualityInput", "questionAnsweringRelevanceInput", "questionAnsweringHelpfulnessInput", "questionAnsweringCorrectnessInput", "toolCallValidInput", "toolNameMatchInput", "toolParameterKeyMatchInput", "toolParameterKvMatchInput"]), + get: $util.oneOfGetter($oneOfFields = ["exactMatchInput", "bleuInput", "rougeInput", "fluencyInput", "coherenceInput", "safetyInput", "groundednessInput", "fulfillmentInput", "summarizationQualityInput", "pairwiseSummarizationQualityInput", "summarizationHelpfulnessInput", "summarizationVerbosityInput", "questionAnsweringQualityInput", "pairwiseQuestionAnsweringQualityInput", "questionAnsweringRelevanceInput", "questionAnsweringHelpfulnessInput", "questionAnsweringCorrectnessInput", "pointwiseMetricInput", "pairwiseMetricInput", "toolCallValidInput", "toolNameMatchInput", "toolParameterKeyMatchInput", "toolParameterKvMatchInput"]), set: $util.oneOfSetter($oneOfFields) }); @@ -333305,6 +362920,10 @@ $root.google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInput.encode(message.pairwiseSummarizationQualityInput, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim(); if (message.pairwiseQuestionAnsweringQualityInput != null && Object.hasOwnProperty.call(message, "pairwiseQuestionAnsweringQualityInput")) $root.google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInput.encode(message.pairwiseQuestionAnsweringQualityInput, writer.uint32(/* id 24, wireType 2 =*/194).fork()).ldelim(); + if (message.pointwiseMetricInput != null && Object.hasOwnProperty.call(message, "pointwiseMetricInput")) + $root.google.cloud.aiplatform.v1beta1.PointwiseMetricInput.encode(message.pointwiseMetricInput, writer.uint32(/* id 28, wireType 2 =*/226).fork()).ldelim(); + if (message.pairwiseMetricInput != null && Object.hasOwnProperty.call(message, "pairwiseMetricInput")) + $root.google.cloud.aiplatform.v1beta1.PairwiseMetricInput.encode(message.pairwiseMetricInput, writer.uint32(/* id 29, wireType 2 =*/234).fork()).ldelim(); return writer; }; @@ -333407,6 +363026,14 @@ message.questionAnsweringCorrectnessInput = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInput.decode(reader, reader.uint32()); break; } + case 28: { + message.pointwiseMetricInput = $root.google.cloud.aiplatform.v1beta1.PointwiseMetricInput.decode(reader, reader.uint32()); + break; + } + case 29: { + message.pairwiseMetricInput = $root.google.cloud.aiplatform.v1beta1.PairwiseMetricInput.decode(reader, reader.uint32()); + break; + } case 19: { message.toolCallValidInput = $root.google.cloud.aiplatform.v1beta1.ToolCallValidInput.decode(reader, reader.uint32()); break; @@ -333631,6 +363258,26 @@ return "questionAnsweringCorrectnessInput." + error; } } + if (message.pointwiseMetricInput != null && message.hasOwnProperty("pointwiseMetricInput")) { + if (properties.metricInputs === 1) + return "metricInputs: multiple values"; + properties.metricInputs = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.PointwiseMetricInput.verify(message.pointwiseMetricInput); + if (error) + return "pointwiseMetricInput." + error; + } + } + if (message.pairwiseMetricInput != null && message.hasOwnProperty("pairwiseMetricInput")) { + if (properties.metricInputs === 1) + return "metricInputs: multiple values"; + properties.metricInputs = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.PairwiseMetricInput.verify(message.pairwiseMetricInput); + if (error) + return "pairwiseMetricInput." + error; + } + } if (message.toolCallValidInput != null && message.hasOwnProperty("toolCallValidInput")) { if (properties.metricInputs === 1) return "metricInputs: multiple values"; @@ -333774,6 +363421,16 @@ throw TypeError(".google.cloud.aiplatform.v1beta1.EvaluateInstancesRequest.questionAnsweringCorrectnessInput: object expected"); message.questionAnsweringCorrectnessInput = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInput.fromObject(object.questionAnsweringCorrectnessInput); } + if (object.pointwiseMetricInput != null) { + if (typeof object.pointwiseMetricInput !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.EvaluateInstancesRequest.pointwiseMetricInput: object expected"); + message.pointwiseMetricInput = $root.google.cloud.aiplatform.v1beta1.PointwiseMetricInput.fromObject(object.pointwiseMetricInput); + } + if (object.pairwiseMetricInput != null) { + if (typeof object.pairwiseMetricInput !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.EvaluateInstancesRequest.pairwiseMetricInput: object expected"); + message.pairwiseMetricInput = $root.google.cloud.aiplatform.v1beta1.PairwiseMetricInput.fromObject(object.pairwiseMetricInput); + } if (object.toolCallValidInput != null) { if (typeof object.toolCallValidInput !== "object") throw TypeError(".google.cloud.aiplatform.v1beta1.EvaluateInstancesRequest.toolCallValidInput: object expected"); @@ -333921,6 +363578,16 @@ if (options.oneofs) object.metricInputs = "pairwiseQuestionAnsweringQualityInput"; } + if (message.pointwiseMetricInput != null && message.hasOwnProperty("pointwiseMetricInput")) { + object.pointwiseMetricInput = $root.google.cloud.aiplatform.v1beta1.PointwiseMetricInput.toObject(message.pointwiseMetricInput, options); + if (options.oneofs) + object.metricInputs = "pointwiseMetricInput"; + } + if (message.pairwiseMetricInput != null && message.hasOwnProperty("pairwiseMetricInput")) { + object.pairwiseMetricInput = $root.google.cloud.aiplatform.v1beta1.PairwiseMetricInput.toObject(message.pairwiseMetricInput, options); + if (options.oneofs) + object.metricInputs = "pairwiseMetricInput"; + } return object; }; @@ -333976,6 +363643,8 @@ * @property {google.cloud.aiplatform.v1beta1.IQuestionAnsweringRelevanceResult|null} [questionAnsweringRelevanceResult] EvaluateInstancesResponse questionAnsweringRelevanceResult * @property {google.cloud.aiplatform.v1beta1.IQuestionAnsweringHelpfulnessResult|null} [questionAnsweringHelpfulnessResult] EvaluateInstancesResponse questionAnsweringHelpfulnessResult * @property {google.cloud.aiplatform.v1beta1.IQuestionAnsweringCorrectnessResult|null} [questionAnsweringCorrectnessResult] EvaluateInstancesResponse questionAnsweringCorrectnessResult + * @property {google.cloud.aiplatform.v1beta1.IPointwiseMetricResult|null} [pointwiseMetricResult] EvaluateInstancesResponse pointwiseMetricResult + * @property {google.cloud.aiplatform.v1beta1.IPairwiseMetricResult|null} [pairwiseMetricResult] EvaluateInstancesResponse pairwiseMetricResult * @property {google.cloud.aiplatform.v1beta1.IToolCallValidResults|null} [toolCallValidResults] EvaluateInstancesResponse toolCallValidResults * @property {google.cloud.aiplatform.v1beta1.IToolNameMatchResults|null} [toolNameMatchResults] EvaluateInstancesResponse toolNameMatchResults * @property {google.cloud.aiplatform.v1beta1.IToolParameterKeyMatchResults|null} [toolParameterKeyMatchResults] EvaluateInstancesResponse toolParameterKeyMatchResults @@ -334133,6 +363802,22 @@ */ EvaluateInstancesResponse.prototype.questionAnsweringCorrectnessResult = null; + /** + * EvaluateInstancesResponse pointwiseMetricResult. + * @member {google.cloud.aiplatform.v1beta1.IPointwiseMetricResult|null|undefined} pointwiseMetricResult + * @memberof google.cloud.aiplatform.v1beta1.EvaluateInstancesResponse + * @instance + */ + EvaluateInstancesResponse.prototype.pointwiseMetricResult = null; + + /** + * EvaluateInstancesResponse pairwiseMetricResult. + * @member {google.cloud.aiplatform.v1beta1.IPairwiseMetricResult|null|undefined} pairwiseMetricResult + * @memberof google.cloud.aiplatform.v1beta1.EvaluateInstancesResponse + * @instance + */ + EvaluateInstancesResponse.prototype.pairwiseMetricResult = null; + /** * EvaluateInstancesResponse toolCallValidResults. * @member {google.cloud.aiplatform.v1beta1.IToolCallValidResults|null|undefined} toolCallValidResults @@ -334170,12 +363855,12 @@ /** * EvaluateInstancesResponse evaluationResults. - * @member {"exactMatchResults"|"bleuResults"|"rougeResults"|"fluencyResult"|"coherenceResult"|"safetyResult"|"groundednessResult"|"fulfillmentResult"|"summarizationQualityResult"|"pairwiseSummarizationQualityResult"|"summarizationHelpfulnessResult"|"summarizationVerbosityResult"|"questionAnsweringQualityResult"|"pairwiseQuestionAnsweringQualityResult"|"questionAnsweringRelevanceResult"|"questionAnsweringHelpfulnessResult"|"questionAnsweringCorrectnessResult"|"toolCallValidResults"|"toolNameMatchResults"|"toolParameterKeyMatchResults"|"toolParameterKvMatchResults"|undefined} evaluationResults + * @member {"exactMatchResults"|"bleuResults"|"rougeResults"|"fluencyResult"|"coherenceResult"|"safetyResult"|"groundednessResult"|"fulfillmentResult"|"summarizationQualityResult"|"pairwiseSummarizationQualityResult"|"summarizationHelpfulnessResult"|"summarizationVerbosityResult"|"questionAnsweringQualityResult"|"pairwiseQuestionAnsweringQualityResult"|"questionAnsweringRelevanceResult"|"questionAnsweringHelpfulnessResult"|"questionAnsweringCorrectnessResult"|"pointwiseMetricResult"|"pairwiseMetricResult"|"toolCallValidResults"|"toolNameMatchResults"|"toolParameterKeyMatchResults"|"toolParameterKvMatchResults"|undefined} evaluationResults * @memberof google.cloud.aiplatform.v1beta1.EvaluateInstancesResponse * @instance */ Object.defineProperty(EvaluateInstancesResponse.prototype, "evaluationResults", { - get: $util.oneOfGetter($oneOfFields = ["exactMatchResults", "bleuResults", "rougeResults", "fluencyResult", "coherenceResult", "safetyResult", "groundednessResult", "fulfillmentResult", "summarizationQualityResult", "pairwiseSummarizationQualityResult", "summarizationHelpfulnessResult", "summarizationVerbosityResult", "questionAnsweringQualityResult", "pairwiseQuestionAnsweringQualityResult", "questionAnsweringRelevanceResult", "questionAnsweringHelpfulnessResult", "questionAnsweringCorrectnessResult", "toolCallValidResults", "toolNameMatchResults", "toolParameterKeyMatchResults", "toolParameterKvMatchResults"]), + get: $util.oneOfGetter($oneOfFields = ["exactMatchResults", "bleuResults", "rougeResults", "fluencyResult", "coherenceResult", "safetyResult", "groundednessResult", "fulfillmentResult", "summarizationQualityResult", "pairwiseSummarizationQualityResult", "summarizationHelpfulnessResult", "summarizationVerbosityResult", "questionAnsweringQualityResult", "pairwiseQuestionAnsweringQualityResult", "questionAnsweringRelevanceResult", "questionAnsweringHelpfulnessResult", "questionAnsweringCorrectnessResult", "pointwiseMetricResult", "pairwiseMetricResult", "toolCallValidResults", "toolNameMatchResults", "toolParameterKeyMatchResults", "toolParameterKvMatchResults"]), set: $util.oneOfSetter($oneOfFields) }); @@ -334245,6 +363930,10 @@ $root.google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityResult.encode(message.pairwiseSummarizationQualityResult, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim(); if (message.pairwiseQuestionAnsweringQualityResult != null && Object.hasOwnProperty.call(message, "pairwiseQuestionAnsweringQualityResult")) $root.google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityResult.encode(message.pairwiseQuestionAnsweringQualityResult, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim(); + if (message.pointwiseMetricResult != null && Object.hasOwnProperty.call(message, "pointwiseMetricResult")) + $root.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.encode(message.pointwiseMetricResult, writer.uint32(/* id 27, wireType 2 =*/218).fork()).ldelim(); + if (message.pairwiseMetricResult != null && Object.hasOwnProperty.call(message, "pairwiseMetricResult")) + $root.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.encode(message.pairwiseMetricResult, writer.uint32(/* id 28, wireType 2 =*/226).fork()).ldelim(); return writer; }; @@ -334347,6 +364036,14 @@ message.questionAnsweringCorrectnessResult = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult.decode(reader, reader.uint32()); break; } + case 27: { + message.pointwiseMetricResult = $root.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.decode(reader, reader.uint32()); + break; + } + case 28: { + message.pairwiseMetricResult = $root.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.decode(reader, reader.uint32()); + break; + } case 18: { message.toolCallValidResults = $root.google.cloud.aiplatform.v1beta1.ToolCallValidResults.decode(reader, reader.uint32()); break; @@ -334567,6 +364264,26 @@ return "questionAnsweringCorrectnessResult." + error; } } + if (message.pointwiseMetricResult != null && message.hasOwnProperty("pointwiseMetricResult")) { + if (properties.evaluationResults === 1) + return "evaluationResults: multiple values"; + properties.evaluationResults = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.verify(message.pointwiseMetricResult); + if (error) + return "pointwiseMetricResult." + error; + } + } + if (message.pairwiseMetricResult != null && message.hasOwnProperty("pairwiseMetricResult")) { + if (properties.evaluationResults === 1) + return "evaluationResults: multiple values"; + properties.evaluationResults = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.verify(message.pairwiseMetricResult); + if (error) + return "pairwiseMetricResult." + error; + } + } if (message.toolCallValidResults != null && message.hasOwnProperty("toolCallValidResults")) { if (properties.evaluationResults === 1) return "evaluationResults: multiple values"; @@ -334707,6 +364424,16 @@ throw TypeError(".google.cloud.aiplatform.v1beta1.EvaluateInstancesResponse.questionAnsweringCorrectnessResult: object expected"); message.questionAnsweringCorrectnessResult = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult.fromObject(object.questionAnsweringCorrectnessResult); } + if (object.pointwiseMetricResult != null) { + if (typeof object.pointwiseMetricResult !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.EvaluateInstancesResponse.pointwiseMetricResult: object expected"); + message.pointwiseMetricResult = $root.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.fromObject(object.pointwiseMetricResult); + } + if (object.pairwiseMetricResult != null) { + if (typeof object.pairwiseMetricResult !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.EvaluateInstancesResponse.pairwiseMetricResult: object expected"); + message.pairwiseMetricResult = $root.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.fromObject(object.pairwiseMetricResult); + } if (object.toolCallValidResults != null) { if (typeof object.toolCallValidResults !== "object") throw TypeError(".google.cloud.aiplatform.v1beta1.EvaluateInstancesResponse.toolCallValidResults: object expected"); @@ -334848,6 +364575,16 @@ if (options.oneofs) object.evaluationResults = "pairwiseQuestionAnsweringQualityResult"; } + if (message.pointwiseMetricResult != null && message.hasOwnProperty("pointwiseMetricResult")) { + object.pointwiseMetricResult = $root.google.cloud.aiplatform.v1beta1.PointwiseMetricResult.toObject(message.pointwiseMetricResult, options); + if (options.oneofs) + object.evaluationResults = "pointwiseMetricResult"; + } + if (message.pairwiseMetricResult != null && message.hasOwnProperty("pairwiseMetricResult")) { + object.pairwiseMetricResult = $root.google.cloud.aiplatform.v1beta1.PairwiseMetricResult.toObject(message.pairwiseMetricResult, options); + if (options.oneofs) + object.evaluationResults = "pairwiseMetricResult"; + } return object; }; @@ -339866,10 +369603,1936 @@ * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FluencySpec.decode = function decode(reader, length) { + FluencySpec.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.FluencySpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.version = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FluencySpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.FluencySpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.FluencySpec} FluencySpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FluencySpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FluencySpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.FluencySpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FluencySpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isInteger(message.version)) + return "version: integer expected"; + return null; + }; + + /** + * Creates a FluencySpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.FluencySpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.FluencySpec} FluencySpec + */ + FluencySpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.FluencySpec) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.FluencySpec(); + if (object.version != null) + message.version = object.version | 0; + return message; + }; + + /** + * Creates a plain object from a FluencySpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.FluencySpec + * @static + * @param {google.cloud.aiplatform.v1beta1.FluencySpec} message FluencySpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FluencySpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.version = 0; + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + return object; + }; + + /** + * Converts this FluencySpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.FluencySpec + * @instance + * @returns {Object.} JSON object + */ + FluencySpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FluencySpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.FluencySpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FluencySpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.FluencySpec"; + }; + + return FluencySpec; + })(); + + v1beta1.FluencyResult = (function() { + + /** + * Properties of a FluencyResult. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IFluencyResult + * @property {number|null} [score] FluencyResult score + * @property {string|null} [explanation] FluencyResult explanation + * @property {number|null} [confidence] FluencyResult confidence + */ + + /** + * Constructs a new FluencyResult. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a FluencyResult. + * @implements IFluencyResult + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IFluencyResult=} [properties] Properties to set + */ + function FluencyResult(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]]; + } + + /** + * FluencyResult score. + * @member {number|null|undefined} score + * @memberof google.cloud.aiplatform.v1beta1.FluencyResult + * @instance + */ + FluencyResult.prototype.score = null; + + /** + * FluencyResult explanation. + * @member {string} explanation + * @memberof google.cloud.aiplatform.v1beta1.FluencyResult + * @instance + */ + FluencyResult.prototype.explanation = ""; + + /** + * FluencyResult confidence. + * @member {number|null|undefined} confidence + * @memberof google.cloud.aiplatform.v1beta1.FluencyResult + * @instance + */ + FluencyResult.prototype.confidence = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * FluencyResult _score. + * @member {"score"|undefined} _score + * @memberof google.cloud.aiplatform.v1beta1.FluencyResult + * @instance + */ + Object.defineProperty(FluencyResult.prototype, "_score", { + get: $util.oneOfGetter($oneOfFields = ["score"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * FluencyResult _confidence. + * @member {"confidence"|undefined} _confidence + * @memberof google.cloud.aiplatform.v1beta1.FluencyResult + * @instance + */ + Object.defineProperty(FluencyResult.prototype, "_confidence", { + get: $util.oneOfGetter($oneOfFields = ["confidence"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new FluencyResult instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.FluencyResult + * @static + * @param {google.cloud.aiplatform.v1beta1.IFluencyResult=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.FluencyResult} FluencyResult instance + */ + FluencyResult.create = function create(properties) { + return new FluencyResult(properties); + }; + + /** + * Encodes the specified FluencyResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FluencyResult.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.FluencyResult + * @static + * @param {google.cloud.aiplatform.v1beta1.IFluencyResult} message FluencyResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FluencyResult.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.score != null && Object.hasOwnProperty.call(message, "score")) + writer.uint32(/* id 1, wireType 5 =*/13).float(message.score); + if (message.explanation != null && Object.hasOwnProperty.call(message, "explanation")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.explanation); + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) + writer.uint32(/* id 3, wireType 5 =*/29).float(message.confidence); + return writer; + }; + + /** + * Encodes the specified FluencyResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FluencyResult.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.FluencyResult + * @static + * @param {google.cloud.aiplatform.v1beta1.IFluencyResult} message FluencyResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FluencyResult.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FluencyResult message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.FluencyResult + * @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.FluencyResult} FluencyResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FluencyResult.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.FluencyResult(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.score = reader.float(); + break; + } + case 2: { + message.explanation = reader.string(); + break; + } + case 3: { + message.confidence = reader.float(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FluencyResult message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.FluencyResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.FluencyResult} FluencyResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FluencyResult.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FluencyResult message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.FluencyResult + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FluencyResult.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.score != null && message.hasOwnProperty("score")) { + properties._score = 1; + if (typeof message.score !== "number") + return "score: number expected"; + } + if (message.explanation != null && message.hasOwnProperty("explanation")) + if (!$util.isString(message.explanation)) + return "explanation: string expected"; + if (message.confidence != null && message.hasOwnProperty("confidence")) { + properties._confidence = 1; + if (typeof message.confidence !== "number") + return "confidence: number expected"; + } + return null; + }; + + /** + * Creates a FluencyResult message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.FluencyResult + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.FluencyResult} FluencyResult + */ + FluencyResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.FluencyResult) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.FluencyResult(); + if (object.score != null) + message.score = Number(object.score); + if (object.explanation != null) + message.explanation = String(object.explanation); + if (object.confidence != null) + message.confidence = Number(object.confidence); + return message; + }; + + /** + * Creates a plain object from a FluencyResult message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.FluencyResult + * @static + * @param {google.cloud.aiplatform.v1beta1.FluencyResult} message FluencyResult + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FluencyResult.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.explanation = ""; + if (message.score != null && message.hasOwnProperty("score")) { + object.score = options.json && !isFinite(message.score) ? String(message.score) : message.score; + if (options.oneofs) + object._score = "score"; + } + if (message.explanation != null && message.hasOwnProperty("explanation")) + object.explanation = message.explanation; + if (message.confidence != null && message.hasOwnProperty("confidence")) { + object.confidence = options.json && !isFinite(message.confidence) ? String(message.confidence) : message.confidence; + if (options.oneofs) + object._confidence = "confidence"; + } + return object; + }; + + /** + * Converts this FluencyResult to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.FluencyResult + * @instance + * @returns {Object.} JSON object + */ + FluencyResult.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FluencyResult + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.FluencyResult + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FluencyResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.FluencyResult"; + }; + + return FluencyResult; + })(); + + v1beta1.SafetyInput = (function() { + + /** + * Properties of a SafetyInput. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface ISafetyInput + * @property {google.cloud.aiplatform.v1beta1.ISafetySpec|null} [metricSpec] SafetyInput metricSpec + * @property {google.cloud.aiplatform.v1beta1.ISafetyInstance|null} [instance] SafetyInput instance + */ + + /** + * Constructs a new SafetyInput. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a SafetyInput. + * @implements ISafetyInput + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ISafetyInput=} [properties] Properties to set + */ + function SafetyInput(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]]; + } + + /** + * SafetyInput metricSpec. + * @member {google.cloud.aiplatform.v1beta1.ISafetySpec|null|undefined} metricSpec + * @memberof google.cloud.aiplatform.v1beta1.SafetyInput + * @instance + */ + SafetyInput.prototype.metricSpec = null; + + /** + * SafetyInput instance. + * @member {google.cloud.aiplatform.v1beta1.ISafetyInstance|null|undefined} instance + * @memberof google.cloud.aiplatform.v1beta1.SafetyInput + * @instance + */ + SafetyInput.prototype.instance = null; + + /** + * Creates a new SafetyInput instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.SafetyInput + * @static + * @param {google.cloud.aiplatform.v1beta1.ISafetyInput=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.SafetyInput} SafetyInput instance + */ + SafetyInput.create = function create(properties) { + return new SafetyInput(properties); + }; + + /** + * Encodes the specified SafetyInput message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SafetyInput.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.SafetyInput + * @static + * @param {google.cloud.aiplatform.v1beta1.ISafetyInput} message SafetyInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SafetyInput.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.metricSpec != null && Object.hasOwnProperty.call(message, "metricSpec")) + $root.google.cloud.aiplatform.v1beta1.SafetySpec.encode(message.metricSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.instance != null && Object.hasOwnProperty.call(message, "instance")) + $root.google.cloud.aiplatform.v1beta1.SafetyInstance.encode(message.instance, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified SafetyInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SafetyInput.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.SafetyInput + * @static + * @param {google.cloud.aiplatform.v1beta1.ISafetyInput} message SafetyInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SafetyInput.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SafetyInput message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.SafetyInput + * @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.SafetyInput} SafetyInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SafetyInput.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.SafetyInput(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.metricSpec = $root.google.cloud.aiplatform.v1beta1.SafetySpec.decode(reader, reader.uint32()); + break; + } + case 2: { + message.instance = $root.google.cloud.aiplatform.v1beta1.SafetyInstance.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SafetyInput message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.SafetyInput + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.SafetyInput} SafetyInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SafetyInput.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SafetyInput message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.SafetyInput + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SafetyInput.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) { + var error = $root.google.cloud.aiplatform.v1beta1.SafetySpec.verify(message.metricSpec); + if (error) + return "metricSpec." + error; + } + if (message.instance != null && message.hasOwnProperty("instance")) { + var error = $root.google.cloud.aiplatform.v1beta1.SafetyInstance.verify(message.instance); + if (error) + return "instance." + error; + } + return null; + }; + + /** + * Creates a SafetyInput message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.SafetyInput + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.SafetyInput} SafetyInput + */ + SafetyInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.SafetyInput) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.SafetyInput(); + if (object.metricSpec != null) { + if (typeof object.metricSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.SafetyInput.metricSpec: object expected"); + message.metricSpec = $root.google.cloud.aiplatform.v1beta1.SafetySpec.fromObject(object.metricSpec); + } + if (object.instance != null) { + if (typeof object.instance !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.SafetyInput.instance: object expected"); + message.instance = $root.google.cloud.aiplatform.v1beta1.SafetyInstance.fromObject(object.instance); + } + return message; + }; + + /** + * Creates a plain object from a SafetyInput message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.SafetyInput + * @static + * @param {google.cloud.aiplatform.v1beta1.SafetyInput} message SafetyInput + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SafetyInput.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.metricSpec = null; + object.instance = null; + } + if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) + object.metricSpec = $root.google.cloud.aiplatform.v1beta1.SafetySpec.toObject(message.metricSpec, options); + if (message.instance != null && message.hasOwnProperty("instance")) + object.instance = $root.google.cloud.aiplatform.v1beta1.SafetyInstance.toObject(message.instance, options); + return object; + }; + + /** + * Converts this SafetyInput to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.SafetyInput + * @instance + * @returns {Object.} JSON object + */ + SafetyInput.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SafetyInput + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.SafetyInput + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SafetyInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.SafetyInput"; + }; + + return SafetyInput; + })(); + + v1beta1.SafetyInstance = (function() { + + /** + * Properties of a SafetyInstance. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface ISafetyInstance + * @property {string|null} [prediction] SafetyInstance prediction + */ + + /** + * Constructs a new SafetyInstance. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a SafetyInstance. + * @implements ISafetyInstance + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ISafetyInstance=} [properties] Properties to set + */ + function SafetyInstance(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]]; + } + + /** + * SafetyInstance prediction. + * @member {string|null|undefined} prediction + * @memberof google.cloud.aiplatform.v1beta1.SafetyInstance + * @instance + */ + SafetyInstance.prototype.prediction = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * SafetyInstance _prediction. + * @member {"prediction"|undefined} _prediction + * @memberof google.cloud.aiplatform.v1beta1.SafetyInstance + * @instance + */ + Object.defineProperty(SafetyInstance.prototype, "_prediction", { + get: $util.oneOfGetter($oneOfFields = ["prediction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new SafetyInstance instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.SafetyInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.ISafetyInstance=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.SafetyInstance} SafetyInstance instance + */ + SafetyInstance.create = function create(properties) { + return new SafetyInstance(properties); + }; + + /** + * Encodes the specified SafetyInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SafetyInstance.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.SafetyInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.ISafetyInstance} message SafetyInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SafetyInstance.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.prediction != null && Object.hasOwnProperty.call(message, "prediction")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.prediction); + return writer; + }; + + /** + * Encodes the specified SafetyInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SafetyInstance.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.SafetyInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.ISafetyInstance} message SafetyInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SafetyInstance.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SafetyInstance message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.SafetyInstance + * @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.SafetyInstance} SafetyInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SafetyInstance.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.SafetyInstance(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.prediction = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SafetyInstance message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.SafetyInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.SafetyInstance} SafetyInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SafetyInstance.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SafetyInstance message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.SafetyInstance + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SafetyInstance.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.prediction != null && message.hasOwnProperty("prediction")) { + properties._prediction = 1; + if (!$util.isString(message.prediction)) + return "prediction: string expected"; + } + return null; + }; + + /** + * Creates a SafetyInstance message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.SafetyInstance + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.SafetyInstance} SafetyInstance + */ + SafetyInstance.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.SafetyInstance) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.SafetyInstance(); + if (object.prediction != null) + message.prediction = String(object.prediction); + return message; + }; + + /** + * Creates a plain object from a SafetyInstance message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.SafetyInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.SafetyInstance} message SafetyInstance + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SafetyInstance.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.prediction != null && message.hasOwnProperty("prediction")) { + object.prediction = message.prediction; + if (options.oneofs) + object._prediction = "prediction"; + } + return object; + }; + + /** + * Converts this SafetyInstance to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.SafetyInstance + * @instance + * @returns {Object.} JSON object + */ + SafetyInstance.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SafetyInstance + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.SafetyInstance + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SafetyInstance.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.SafetyInstance"; + }; + + return SafetyInstance; + })(); + + v1beta1.SafetySpec = (function() { + + /** + * Properties of a SafetySpec. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface ISafetySpec + * @property {number|null} [version] SafetySpec version + */ + + /** + * Constructs a new SafetySpec. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a SafetySpec. + * @implements ISafetySpec + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ISafetySpec=} [properties] Properties to set + */ + function SafetySpec(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]]; + } + + /** + * SafetySpec version. + * @member {number} version + * @memberof google.cloud.aiplatform.v1beta1.SafetySpec + * @instance + */ + SafetySpec.prototype.version = 0; + + /** + * Creates a new SafetySpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.SafetySpec + * @static + * @param {google.cloud.aiplatform.v1beta1.ISafetySpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.SafetySpec} SafetySpec instance + */ + SafetySpec.create = function create(properties) { + return new SafetySpec(properties); + }; + + /** + * Encodes the specified SafetySpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SafetySpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.SafetySpec + * @static + * @param {google.cloud.aiplatform.v1beta1.ISafetySpec} message SafetySpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SafetySpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.version); + return writer; + }; + + /** + * Encodes the specified SafetySpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SafetySpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.SafetySpec + * @static + * @param {google.cloud.aiplatform.v1beta1.ISafetySpec} message SafetySpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SafetySpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SafetySpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.SafetySpec + * @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.SafetySpec} SafetySpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SafetySpec.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.SafetySpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.version = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SafetySpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.SafetySpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.SafetySpec} SafetySpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SafetySpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SafetySpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.SafetySpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SafetySpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isInteger(message.version)) + return "version: integer expected"; + return null; + }; + + /** + * Creates a SafetySpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.SafetySpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.SafetySpec} SafetySpec + */ + SafetySpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.SafetySpec) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.SafetySpec(); + if (object.version != null) + message.version = object.version | 0; + return message; + }; + + /** + * Creates a plain object from a SafetySpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.SafetySpec + * @static + * @param {google.cloud.aiplatform.v1beta1.SafetySpec} message SafetySpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SafetySpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.version = 0; + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + return object; + }; + + /** + * Converts this SafetySpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.SafetySpec + * @instance + * @returns {Object.} JSON object + */ + SafetySpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SafetySpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.SafetySpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SafetySpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.SafetySpec"; + }; + + return SafetySpec; + })(); + + v1beta1.SafetyResult = (function() { + + /** + * Properties of a SafetyResult. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface ISafetyResult + * @property {number|null} [score] SafetyResult score + * @property {string|null} [explanation] SafetyResult explanation + * @property {number|null} [confidence] SafetyResult confidence + */ + + /** + * Constructs a new SafetyResult. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a SafetyResult. + * @implements ISafetyResult + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ISafetyResult=} [properties] Properties to set + */ + function SafetyResult(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]]; + } + + /** + * SafetyResult score. + * @member {number|null|undefined} score + * @memberof google.cloud.aiplatform.v1beta1.SafetyResult + * @instance + */ + SafetyResult.prototype.score = null; + + /** + * SafetyResult explanation. + * @member {string} explanation + * @memberof google.cloud.aiplatform.v1beta1.SafetyResult + * @instance + */ + SafetyResult.prototype.explanation = ""; + + /** + * SafetyResult confidence. + * @member {number|null|undefined} confidence + * @memberof google.cloud.aiplatform.v1beta1.SafetyResult + * @instance + */ + SafetyResult.prototype.confidence = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * SafetyResult _score. + * @member {"score"|undefined} _score + * @memberof google.cloud.aiplatform.v1beta1.SafetyResult + * @instance + */ + Object.defineProperty(SafetyResult.prototype, "_score", { + get: $util.oneOfGetter($oneOfFields = ["score"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SafetyResult _confidence. + * @member {"confidence"|undefined} _confidence + * @memberof google.cloud.aiplatform.v1beta1.SafetyResult + * @instance + */ + Object.defineProperty(SafetyResult.prototype, "_confidence", { + get: $util.oneOfGetter($oneOfFields = ["confidence"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new SafetyResult instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.SafetyResult + * @static + * @param {google.cloud.aiplatform.v1beta1.ISafetyResult=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.SafetyResult} SafetyResult instance + */ + SafetyResult.create = function create(properties) { + return new SafetyResult(properties); + }; + + /** + * Encodes the specified SafetyResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SafetyResult.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.SafetyResult + * @static + * @param {google.cloud.aiplatform.v1beta1.ISafetyResult} message SafetyResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SafetyResult.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.score != null && Object.hasOwnProperty.call(message, "score")) + writer.uint32(/* id 1, wireType 5 =*/13).float(message.score); + if (message.explanation != null && Object.hasOwnProperty.call(message, "explanation")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.explanation); + if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) + writer.uint32(/* id 3, wireType 5 =*/29).float(message.confidence); + return writer; + }; + + /** + * Encodes the specified SafetyResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SafetyResult.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.SafetyResult + * @static + * @param {google.cloud.aiplatform.v1beta1.ISafetyResult} message SafetyResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SafetyResult.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SafetyResult message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.SafetyResult + * @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.SafetyResult} SafetyResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SafetyResult.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.SafetyResult(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.score = reader.float(); + break; + } + case 2: { + message.explanation = reader.string(); + break; + } + case 3: { + message.confidence = reader.float(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SafetyResult message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.SafetyResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.SafetyResult} SafetyResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SafetyResult.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SafetyResult message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.SafetyResult + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SafetyResult.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.score != null && message.hasOwnProperty("score")) { + properties._score = 1; + if (typeof message.score !== "number") + return "score: number expected"; + } + if (message.explanation != null && message.hasOwnProperty("explanation")) + if (!$util.isString(message.explanation)) + return "explanation: string expected"; + if (message.confidence != null && message.hasOwnProperty("confidence")) { + properties._confidence = 1; + if (typeof message.confidence !== "number") + return "confidence: number expected"; + } + return null; + }; + + /** + * Creates a SafetyResult message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.SafetyResult + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.SafetyResult} SafetyResult + */ + SafetyResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.SafetyResult) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.SafetyResult(); + if (object.score != null) + message.score = Number(object.score); + if (object.explanation != null) + message.explanation = String(object.explanation); + if (object.confidence != null) + message.confidence = Number(object.confidence); + return message; + }; + + /** + * Creates a plain object from a SafetyResult message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.SafetyResult + * @static + * @param {google.cloud.aiplatform.v1beta1.SafetyResult} message SafetyResult + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SafetyResult.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.explanation = ""; + if (message.score != null && message.hasOwnProperty("score")) { + object.score = options.json && !isFinite(message.score) ? String(message.score) : message.score; + if (options.oneofs) + object._score = "score"; + } + if (message.explanation != null && message.hasOwnProperty("explanation")) + object.explanation = message.explanation; + if (message.confidence != null && message.hasOwnProperty("confidence")) { + object.confidence = options.json && !isFinite(message.confidence) ? String(message.confidence) : message.confidence; + if (options.oneofs) + object._confidence = "confidence"; + } + return object; + }; + + /** + * Converts this SafetyResult to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.SafetyResult + * @instance + * @returns {Object.} JSON object + */ + SafetyResult.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SafetyResult + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.SafetyResult + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SafetyResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.SafetyResult"; + }; + + return SafetyResult; + })(); + + v1beta1.GroundednessInput = (function() { + + /** + * Properties of a GroundednessInput. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IGroundednessInput + * @property {google.cloud.aiplatform.v1beta1.IGroundednessSpec|null} [metricSpec] GroundednessInput metricSpec + * @property {google.cloud.aiplatform.v1beta1.IGroundednessInstance|null} [instance] GroundednessInput instance + */ + + /** + * Constructs a new GroundednessInput. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a GroundednessInput. + * @implements IGroundednessInput + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IGroundednessInput=} [properties] Properties to set + */ + function GroundednessInput(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]]; + } + + /** + * GroundednessInput metricSpec. + * @member {google.cloud.aiplatform.v1beta1.IGroundednessSpec|null|undefined} metricSpec + * @memberof google.cloud.aiplatform.v1beta1.GroundednessInput + * @instance + */ + GroundednessInput.prototype.metricSpec = null; + + /** + * GroundednessInput instance. + * @member {google.cloud.aiplatform.v1beta1.IGroundednessInstance|null|undefined} instance + * @memberof google.cloud.aiplatform.v1beta1.GroundednessInput + * @instance + */ + GroundednessInput.prototype.instance = null; + + /** + * Creates a new GroundednessInput instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.GroundednessInput + * @static + * @param {google.cloud.aiplatform.v1beta1.IGroundednessInput=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GroundednessInput} GroundednessInput instance + */ + GroundednessInput.create = function create(properties) { + return new GroundednessInput(properties); + }; + + /** + * Encodes the specified GroundednessInput message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundednessInput.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.GroundednessInput + * @static + * @param {google.cloud.aiplatform.v1beta1.IGroundednessInput} message GroundednessInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GroundednessInput.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.metricSpec != null && Object.hasOwnProperty.call(message, "metricSpec")) + $root.google.cloud.aiplatform.v1beta1.GroundednessSpec.encode(message.metricSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.instance != null && Object.hasOwnProperty.call(message, "instance")) + $root.google.cloud.aiplatform.v1beta1.GroundednessInstance.encode(message.instance, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified GroundednessInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundednessInput.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.GroundednessInput + * @static + * @param {google.cloud.aiplatform.v1beta1.IGroundednessInput} message GroundednessInput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GroundednessInput.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GroundednessInput message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.GroundednessInput + * @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.GroundednessInput} GroundednessInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GroundednessInput.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.GroundednessInput(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.metricSpec = $root.google.cloud.aiplatform.v1beta1.GroundednessSpec.decode(reader, reader.uint32()); + break; + } + case 2: { + message.instance = $root.google.cloud.aiplatform.v1beta1.GroundednessInstance.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GroundednessInput message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.GroundednessInput + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.GroundednessInput} GroundednessInput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GroundednessInput.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GroundednessInput message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.GroundednessInput + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GroundednessInput.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) { + var error = $root.google.cloud.aiplatform.v1beta1.GroundednessSpec.verify(message.metricSpec); + if (error) + return "metricSpec." + error; + } + if (message.instance != null && message.hasOwnProperty("instance")) { + var error = $root.google.cloud.aiplatform.v1beta1.GroundednessInstance.verify(message.instance); + if (error) + return "instance." + error; + } + return null; + }; + + /** + * Creates a GroundednessInput message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.GroundednessInput + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.GroundednessInput} GroundednessInput + */ + GroundednessInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GroundednessInput) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.GroundednessInput(); + if (object.metricSpec != null) { + if (typeof object.metricSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.GroundednessInput.metricSpec: object expected"); + message.metricSpec = $root.google.cloud.aiplatform.v1beta1.GroundednessSpec.fromObject(object.metricSpec); + } + if (object.instance != null) { + if (typeof object.instance !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.GroundednessInput.instance: object expected"); + message.instance = $root.google.cloud.aiplatform.v1beta1.GroundednessInstance.fromObject(object.instance); + } + return message; + }; + + /** + * Creates a plain object from a GroundednessInput message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.GroundednessInput + * @static + * @param {google.cloud.aiplatform.v1beta1.GroundednessInput} message GroundednessInput + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GroundednessInput.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.metricSpec = null; + object.instance = null; + } + if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) + object.metricSpec = $root.google.cloud.aiplatform.v1beta1.GroundednessSpec.toObject(message.metricSpec, options); + if (message.instance != null && message.hasOwnProperty("instance")) + object.instance = $root.google.cloud.aiplatform.v1beta1.GroundednessInstance.toObject(message.instance, options); + return object; + }; + + /** + * Converts this GroundednessInput to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.GroundednessInput + * @instance + * @returns {Object.} JSON object + */ + GroundednessInput.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GroundednessInput + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.GroundednessInput + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GroundednessInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GroundednessInput"; + }; + + return GroundednessInput; + })(); + + v1beta1.GroundednessInstance = (function() { + + /** + * Properties of a GroundednessInstance. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IGroundednessInstance + * @property {string|null} [prediction] GroundednessInstance prediction + * @property {string|null} [context] GroundednessInstance context + */ + + /** + * Constructs a new GroundednessInstance. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a GroundednessInstance. + * @implements IGroundednessInstance + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IGroundednessInstance=} [properties] Properties to set + */ + function GroundednessInstance(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]]; + } + + /** + * GroundednessInstance prediction. + * @member {string|null|undefined} prediction + * @memberof google.cloud.aiplatform.v1beta1.GroundednessInstance + * @instance + */ + GroundednessInstance.prototype.prediction = null; + + /** + * GroundednessInstance context. + * @member {string|null|undefined} context + * @memberof google.cloud.aiplatform.v1beta1.GroundednessInstance + * @instance + */ + GroundednessInstance.prototype.context = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * GroundednessInstance _prediction. + * @member {"prediction"|undefined} _prediction + * @memberof google.cloud.aiplatform.v1beta1.GroundednessInstance + * @instance + */ + Object.defineProperty(GroundednessInstance.prototype, "_prediction", { + get: $util.oneOfGetter($oneOfFields = ["prediction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * GroundednessInstance _context. + * @member {"context"|undefined} _context + * @memberof google.cloud.aiplatform.v1beta1.GroundednessInstance + * @instance + */ + Object.defineProperty(GroundednessInstance.prototype, "_context", { + get: $util.oneOfGetter($oneOfFields = ["context"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new GroundednessInstance instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.GroundednessInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.IGroundednessInstance=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GroundednessInstance} GroundednessInstance instance + */ + GroundednessInstance.create = function create(properties) { + return new GroundednessInstance(properties); + }; + + /** + * Encodes the specified GroundednessInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundednessInstance.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.GroundednessInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.IGroundednessInstance} message GroundednessInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GroundednessInstance.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.prediction != null && Object.hasOwnProperty.call(message, "prediction")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.prediction); + if (message.context != null && Object.hasOwnProperty.call(message, "context")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.context); + return writer; + }; + + /** + * Encodes the specified GroundednessInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundednessInstance.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.GroundednessInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.IGroundednessInstance} message GroundednessInstance message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GroundednessInstance.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GroundednessInstance message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.GroundednessInstance + * @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.GroundednessInstance} GroundednessInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GroundednessInstance.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.GroundednessInstance(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.prediction = reader.string(); + break; + } + case 2: { + message.context = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GroundednessInstance message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.GroundednessInstance + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.GroundednessInstance} GroundednessInstance + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GroundednessInstance.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GroundednessInstance message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.GroundednessInstance + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GroundednessInstance.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.prediction != null && message.hasOwnProperty("prediction")) { + properties._prediction = 1; + if (!$util.isString(message.prediction)) + return "prediction: string expected"; + } + if (message.context != null && message.hasOwnProperty("context")) { + properties._context = 1; + if (!$util.isString(message.context)) + return "context: string expected"; + } + return null; + }; + + /** + * Creates a GroundednessInstance message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.GroundednessInstance + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.GroundednessInstance} GroundednessInstance + */ + GroundednessInstance.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GroundednessInstance) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.GroundednessInstance(); + if (object.prediction != null) + message.prediction = String(object.prediction); + if (object.context != null) + message.context = String(object.context); + return message; + }; + + /** + * Creates a plain object from a GroundednessInstance message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.GroundednessInstance + * @static + * @param {google.cloud.aiplatform.v1beta1.GroundednessInstance} message GroundednessInstance + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GroundednessInstance.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.prediction != null && message.hasOwnProperty("prediction")) { + object.prediction = message.prediction; + if (options.oneofs) + object._prediction = "prediction"; + } + if (message.context != null && message.hasOwnProperty("context")) { + object.context = message.context; + if (options.oneofs) + object._context = "context"; + } + return object; + }; + + /** + * Converts this GroundednessInstance to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.GroundednessInstance + * @instance + * @returns {Object.} JSON object + */ + GroundednessInstance.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GroundednessInstance + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.GroundednessInstance + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GroundednessInstance.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GroundednessInstance"; + }; + + return GroundednessInstance; + })(); + + v1beta1.GroundednessSpec = (function() { + + /** + * Properties of a GroundednessSpec. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IGroundednessSpec + * @property {number|null} [version] GroundednessSpec version + */ + + /** + * Constructs a new GroundednessSpec. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a GroundednessSpec. + * @implements IGroundednessSpec + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IGroundednessSpec=} [properties] Properties to set + */ + function GroundednessSpec(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]]; + } + + /** + * GroundednessSpec version. + * @member {number} version + * @memberof google.cloud.aiplatform.v1beta1.GroundednessSpec + * @instance + */ + GroundednessSpec.prototype.version = 0; + + /** + * Creates a new GroundednessSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.GroundednessSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.IGroundednessSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GroundednessSpec} GroundednessSpec instance + */ + GroundednessSpec.create = function create(properties) { + return new GroundednessSpec(properties); + }; + + /** + * Encodes the specified GroundednessSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundednessSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.GroundednessSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.IGroundednessSpec} message GroundednessSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GroundednessSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.version); + return writer; + }; + + /** + * Encodes the specified GroundednessSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundednessSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.GroundednessSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.IGroundednessSpec} message GroundednessSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GroundednessSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GroundednessSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.GroundednessSpec + * @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.GroundednessSpec} GroundednessSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GroundednessSpec.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.FluencySpec(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GroundednessSpec(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -339886,30 +371549,30 @@ }; /** - * Decodes a FluencySpec message from the specified reader or buffer, length delimited. + * Decodes a GroundednessSpec message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.FluencySpec + * @memberof google.cloud.aiplatform.v1beta1.GroundednessSpec * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.FluencySpec} FluencySpec + * @returns {google.cloud.aiplatform.v1beta1.GroundednessSpec} GroundednessSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FluencySpec.decodeDelimited = function decodeDelimited(reader) { + GroundednessSpec.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FluencySpec message. + * Verifies a GroundednessSpec message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.FluencySpec + * @memberof google.cloud.aiplatform.v1beta1.GroundednessSpec * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FluencySpec.verify = function verify(message) { + GroundednessSpec.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.version != null && message.hasOwnProperty("version")) @@ -339919,32 +371582,32 @@ }; /** - * Creates a FluencySpec message from a plain object. Also converts values to their respective internal types. + * Creates a GroundednessSpec message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.FluencySpec + * @memberof google.cloud.aiplatform.v1beta1.GroundednessSpec * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.FluencySpec} FluencySpec + * @returns {google.cloud.aiplatform.v1beta1.GroundednessSpec} GroundednessSpec */ - FluencySpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.FluencySpec) + GroundednessSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GroundednessSpec) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.FluencySpec(); + var message = new $root.google.cloud.aiplatform.v1beta1.GroundednessSpec(); if (object.version != null) message.version = object.version | 0; return message; }; /** - * Creates a plain object from a FluencySpec message. Also converts values to other types if specified. + * Creates a plain object from a GroundednessSpec message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.FluencySpec + * @memberof google.cloud.aiplatform.v1beta1.GroundednessSpec * @static - * @param {google.cloud.aiplatform.v1beta1.FluencySpec} message FluencySpec + * @param {google.cloud.aiplatform.v1beta1.GroundednessSpec} message GroundednessSpec * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FluencySpec.toObject = function toObject(message, options) { + GroundednessSpec.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -339956,54 +371619,54 @@ }; /** - * Converts this FluencySpec to JSON. + * Converts this GroundednessSpec to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.FluencySpec + * @memberof google.cloud.aiplatform.v1beta1.GroundednessSpec * @instance * @returns {Object.} JSON object */ - FluencySpec.prototype.toJSON = function toJSON() { + GroundednessSpec.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for FluencySpec + * Gets the default type url for GroundednessSpec * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.FluencySpec + * @memberof google.cloud.aiplatform.v1beta1.GroundednessSpec * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - FluencySpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GroundednessSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.FluencySpec"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GroundednessSpec"; }; - return FluencySpec; + return GroundednessSpec; })(); - v1beta1.FluencyResult = (function() { + v1beta1.GroundednessResult = (function() { /** - * Properties of a FluencyResult. + * Properties of a GroundednessResult. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IFluencyResult - * @property {number|null} [score] FluencyResult score - * @property {string|null} [explanation] FluencyResult explanation - * @property {number|null} [confidence] FluencyResult confidence + * @interface IGroundednessResult + * @property {number|null} [score] GroundednessResult score + * @property {string|null} [explanation] GroundednessResult explanation + * @property {number|null} [confidence] GroundednessResult confidence */ /** - * Constructs a new FluencyResult. + * Constructs a new GroundednessResult. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a FluencyResult. - * @implements IFluencyResult + * @classdesc Represents a GroundednessResult. + * @implements IGroundednessResult * @constructor - * @param {google.cloud.aiplatform.v1beta1.IFluencyResult=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGroundednessResult=} [properties] Properties to set */ - function FluencyResult(properties) { + function GroundednessResult(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -340011,76 +371674,76 @@ } /** - * FluencyResult score. + * GroundednessResult score. * @member {number|null|undefined} score - * @memberof google.cloud.aiplatform.v1beta1.FluencyResult + * @memberof google.cloud.aiplatform.v1beta1.GroundednessResult * @instance */ - FluencyResult.prototype.score = null; + GroundednessResult.prototype.score = null; /** - * FluencyResult explanation. + * GroundednessResult explanation. * @member {string} explanation - * @memberof google.cloud.aiplatform.v1beta1.FluencyResult + * @memberof google.cloud.aiplatform.v1beta1.GroundednessResult * @instance */ - FluencyResult.prototype.explanation = ""; + GroundednessResult.prototype.explanation = ""; /** - * FluencyResult confidence. + * GroundednessResult confidence. * @member {number|null|undefined} confidence - * @memberof google.cloud.aiplatform.v1beta1.FluencyResult + * @memberof google.cloud.aiplatform.v1beta1.GroundednessResult * @instance */ - FluencyResult.prototype.confidence = null; + GroundednessResult.prototype.confidence = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * FluencyResult _score. + * GroundednessResult _score. * @member {"score"|undefined} _score - * @memberof google.cloud.aiplatform.v1beta1.FluencyResult + * @memberof google.cloud.aiplatform.v1beta1.GroundednessResult * @instance */ - Object.defineProperty(FluencyResult.prototype, "_score", { + Object.defineProperty(GroundednessResult.prototype, "_score", { get: $util.oneOfGetter($oneOfFields = ["score"]), set: $util.oneOfSetter($oneOfFields) }); /** - * FluencyResult _confidence. + * GroundednessResult _confidence. * @member {"confidence"|undefined} _confidence - * @memberof google.cloud.aiplatform.v1beta1.FluencyResult + * @memberof google.cloud.aiplatform.v1beta1.GroundednessResult * @instance */ - Object.defineProperty(FluencyResult.prototype, "_confidence", { + Object.defineProperty(GroundednessResult.prototype, "_confidence", { get: $util.oneOfGetter($oneOfFields = ["confidence"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new FluencyResult instance using the specified properties. + * Creates a new GroundednessResult instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.FluencyResult + * @memberof google.cloud.aiplatform.v1beta1.GroundednessResult * @static - * @param {google.cloud.aiplatform.v1beta1.IFluencyResult=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.FluencyResult} FluencyResult instance + * @param {google.cloud.aiplatform.v1beta1.IGroundednessResult=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GroundednessResult} GroundednessResult instance */ - FluencyResult.create = function create(properties) { - return new FluencyResult(properties); + GroundednessResult.create = function create(properties) { + return new GroundednessResult(properties); }; /** - * Encodes the specified FluencyResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FluencyResult.verify|verify} messages. + * Encodes the specified GroundednessResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundednessResult.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.FluencyResult + * @memberof google.cloud.aiplatform.v1beta1.GroundednessResult * @static - * @param {google.cloud.aiplatform.v1beta1.IFluencyResult} message FluencyResult message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGroundednessResult} message GroundednessResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FluencyResult.encode = function encode(message, writer) { + GroundednessResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.score != null && Object.hasOwnProperty.call(message, "score")) @@ -340093,33 +371756,33 @@ }; /** - * Encodes the specified FluencyResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FluencyResult.verify|verify} messages. + * Encodes the specified GroundednessResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundednessResult.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.FluencyResult + * @memberof google.cloud.aiplatform.v1beta1.GroundednessResult * @static - * @param {google.cloud.aiplatform.v1beta1.IFluencyResult} message FluencyResult message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGroundednessResult} message GroundednessResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FluencyResult.encodeDelimited = function encodeDelimited(message, writer) { + GroundednessResult.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FluencyResult message from the specified reader or buffer. + * Decodes a GroundednessResult message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.FluencyResult + * @memberof google.cloud.aiplatform.v1beta1.GroundednessResult * @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.FluencyResult} FluencyResult + * @returns {google.cloud.aiplatform.v1beta1.GroundednessResult} GroundednessResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FluencyResult.decode = function decode(reader, length) { + GroundednessResult.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.FluencyResult(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GroundednessResult(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -340144,30 +371807,30 @@ }; /** - * Decodes a FluencyResult message from the specified reader or buffer, length delimited. + * Decodes a GroundednessResult message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.FluencyResult + * @memberof google.cloud.aiplatform.v1beta1.GroundednessResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.FluencyResult} FluencyResult + * @returns {google.cloud.aiplatform.v1beta1.GroundednessResult} GroundednessResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FluencyResult.decodeDelimited = function decodeDelimited(reader) { + GroundednessResult.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FluencyResult message. + * Verifies a GroundednessResult message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.FluencyResult + * @memberof google.cloud.aiplatform.v1beta1.GroundednessResult * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FluencyResult.verify = function verify(message) { + GroundednessResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -340188,17 +371851,17 @@ }; /** - * Creates a FluencyResult message from a plain object. Also converts values to their respective internal types. + * Creates a GroundednessResult message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.FluencyResult + * @memberof google.cloud.aiplatform.v1beta1.GroundednessResult * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.FluencyResult} FluencyResult + * @returns {google.cloud.aiplatform.v1beta1.GroundednessResult} GroundednessResult */ - FluencyResult.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.FluencyResult) + GroundednessResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GroundednessResult) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.FluencyResult(); + var message = new $root.google.cloud.aiplatform.v1beta1.GroundednessResult(); if (object.score != null) message.score = Number(object.score); if (object.explanation != null) @@ -340209,15 +371872,15 @@ }; /** - * Creates a plain object from a FluencyResult message. Also converts values to other types if specified. + * Creates a plain object from a GroundednessResult message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.FluencyResult + * @memberof google.cloud.aiplatform.v1beta1.GroundednessResult * @static - * @param {google.cloud.aiplatform.v1beta1.FluencyResult} message FluencyResult + * @param {google.cloud.aiplatform.v1beta1.GroundednessResult} message GroundednessResult * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FluencyResult.toObject = function toObject(message, options) { + GroundednessResult.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -340239,53 +371902,53 @@ }; /** - * Converts this FluencyResult to JSON. + * Converts this GroundednessResult to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.FluencyResult + * @memberof google.cloud.aiplatform.v1beta1.GroundednessResult * @instance * @returns {Object.} JSON object */ - FluencyResult.prototype.toJSON = function toJSON() { + GroundednessResult.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for FluencyResult + * Gets the default type url for GroundednessResult * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.FluencyResult + * @memberof google.cloud.aiplatform.v1beta1.GroundednessResult * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - FluencyResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GroundednessResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.FluencyResult"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GroundednessResult"; }; - return FluencyResult; + return GroundednessResult; })(); - v1beta1.SafetyInput = (function() { + v1beta1.FulfillmentInput = (function() { /** - * Properties of a SafetyInput. + * Properties of a FulfillmentInput. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ISafetyInput - * @property {google.cloud.aiplatform.v1beta1.ISafetySpec|null} [metricSpec] SafetyInput metricSpec - * @property {google.cloud.aiplatform.v1beta1.ISafetyInstance|null} [instance] SafetyInput instance + * @interface IFulfillmentInput + * @property {google.cloud.aiplatform.v1beta1.IFulfillmentSpec|null} [metricSpec] FulfillmentInput metricSpec + * @property {google.cloud.aiplatform.v1beta1.IFulfillmentInstance|null} [instance] FulfillmentInput instance */ /** - * Constructs a new SafetyInput. + * Constructs a new FulfillmentInput. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a SafetyInput. - * @implements ISafetyInput + * @classdesc Represents a FulfillmentInput. + * @implements IFulfillmentInput * @constructor - * @param {google.cloud.aiplatform.v1beta1.ISafetyInput=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IFulfillmentInput=} [properties] Properties to set */ - function SafetyInput(properties) { + function FulfillmentInput(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -340293,89 +371956,89 @@ } /** - * SafetyInput metricSpec. - * @member {google.cloud.aiplatform.v1beta1.ISafetySpec|null|undefined} metricSpec - * @memberof google.cloud.aiplatform.v1beta1.SafetyInput + * FulfillmentInput metricSpec. + * @member {google.cloud.aiplatform.v1beta1.IFulfillmentSpec|null|undefined} metricSpec + * @memberof google.cloud.aiplatform.v1beta1.FulfillmentInput * @instance */ - SafetyInput.prototype.metricSpec = null; + FulfillmentInput.prototype.metricSpec = null; /** - * SafetyInput instance. - * @member {google.cloud.aiplatform.v1beta1.ISafetyInstance|null|undefined} instance - * @memberof google.cloud.aiplatform.v1beta1.SafetyInput + * FulfillmentInput instance. + * @member {google.cloud.aiplatform.v1beta1.IFulfillmentInstance|null|undefined} instance + * @memberof google.cloud.aiplatform.v1beta1.FulfillmentInput * @instance */ - SafetyInput.prototype.instance = null; + FulfillmentInput.prototype.instance = null; /** - * Creates a new SafetyInput instance using the specified properties. + * Creates a new FulfillmentInput instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.SafetyInput + * @memberof google.cloud.aiplatform.v1beta1.FulfillmentInput * @static - * @param {google.cloud.aiplatform.v1beta1.ISafetyInput=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.SafetyInput} SafetyInput instance + * @param {google.cloud.aiplatform.v1beta1.IFulfillmentInput=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.FulfillmentInput} FulfillmentInput instance */ - SafetyInput.create = function create(properties) { - return new SafetyInput(properties); + FulfillmentInput.create = function create(properties) { + return new FulfillmentInput(properties); }; /** - * Encodes the specified SafetyInput message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SafetyInput.verify|verify} messages. + * Encodes the specified FulfillmentInput message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FulfillmentInput.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.SafetyInput + * @memberof google.cloud.aiplatform.v1beta1.FulfillmentInput * @static - * @param {google.cloud.aiplatform.v1beta1.ISafetyInput} message SafetyInput message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IFulfillmentInput} message FulfillmentInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SafetyInput.encode = function encode(message, writer) { + FulfillmentInput.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.metricSpec != null && Object.hasOwnProperty.call(message, "metricSpec")) - $root.google.cloud.aiplatform.v1beta1.SafetySpec.encode(message.metricSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.google.cloud.aiplatform.v1beta1.FulfillmentSpec.encode(message.metricSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.instance != null && Object.hasOwnProperty.call(message, "instance")) - $root.google.cloud.aiplatform.v1beta1.SafetyInstance.encode(message.instance, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.google.cloud.aiplatform.v1beta1.FulfillmentInstance.encode(message.instance, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified SafetyInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SafetyInput.verify|verify} messages. + * Encodes the specified FulfillmentInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FulfillmentInput.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SafetyInput + * @memberof google.cloud.aiplatform.v1beta1.FulfillmentInput * @static - * @param {google.cloud.aiplatform.v1beta1.ISafetyInput} message SafetyInput message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IFulfillmentInput} message FulfillmentInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SafetyInput.encodeDelimited = function encodeDelimited(message, writer) { + FulfillmentInput.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SafetyInput message from the specified reader or buffer. + * Decodes a FulfillmentInput message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.SafetyInput + * @memberof google.cloud.aiplatform.v1beta1.FulfillmentInput * @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.SafetyInput} SafetyInput + * @returns {google.cloud.aiplatform.v1beta1.FulfillmentInput} FulfillmentInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SafetyInput.decode = function decode(reader, length) { + FulfillmentInput.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.SafetyInput(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.FulfillmentInput(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.metricSpec = $root.google.cloud.aiplatform.v1beta1.SafetySpec.decode(reader, reader.uint32()); + message.metricSpec = $root.google.cloud.aiplatform.v1beta1.FulfillmentSpec.decode(reader, reader.uint32()); break; } case 2: { - message.instance = $root.google.cloud.aiplatform.v1beta1.SafetyInstance.decode(reader, reader.uint32()); + message.instance = $root.google.cloud.aiplatform.v1beta1.FulfillmentInstance.decode(reader, reader.uint32()); break; } default: @@ -340387,39 +372050,39 @@ }; /** - * Decodes a SafetyInput message from the specified reader or buffer, length delimited. + * Decodes a FulfillmentInput message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SafetyInput + * @memberof google.cloud.aiplatform.v1beta1.FulfillmentInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.SafetyInput} SafetyInput + * @returns {google.cloud.aiplatform.v1beta1.FulfillmentInput} FulfillmentInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SafetyInput.decodeDelimited = function decodeDelimited(reader) { + FulfillmentInput.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SafetyInput message. + * Verifies a FulfillmentInput message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.SafetyInput + * @memberof google.cloud.aiplatform.v1beta1.FulfillmentInput * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SafetyInput.verify = function verify(message) { + FulfillmentInput.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) { - var error = $root.google.cloud.aiplatform.v1beta1.SafetySpec.verify(message.metricSpec); + var error = $root.google.cloud.aiplatform.v1beta1.FulfillmentSpec.verify(message.metricSpec); if (error) return "metricSpec." + error; } if (message.instance != null && message.hasOwnProperty("instance")) { - var error = $root.google.cloud.aiplatform.v1beta1.SafetyInstance.verify(message.instance); + var error = $root.google.cloud.aiplatform.v1beta1.FulfillmentInstance.verify(message.instance); if (error) return "instance." + error; } @@ -340427,40 +372090,40 @@ }; /** - * Creates a SafetyInput message from a plain object. Also converts values to their respective internal types. + * Creates a FulfillmentInput message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.SafetyInput + * @memberof google.cloud.aiplatform.v1beta1.FulfillmentInput * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.SafetyInput} SafetyInput + * @returns {google.cloud.aiplatform.v1beta1.FulfillmentInput} FulfillmentInput */ - SafetyInput.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.SafetyInput) + FulfillmentInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.FulfillmentInput) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.SafetyInput(); + var message = new $root.google.cloud.aiplatform.v1beta1.FulfillmentInput(); if (object.metricSpec != null) { if (typeof object.metricSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.SafetyInput.metricSpec: object expected"); - message.metricSpec = $root.google.cloud.aiplatform.v1beta1.SafetySpec.fromObject(object.metricSpec); + throw TypeError(".google.cloud.aiplatform.v1beta1.FulfillmentInput.metricSpec: object expected"); + message.metricSpec = $root.google.cloud.aiplatform.v1beta1.FulfillmentSpec.fromObject(object.metricSpec); } if (object.instance != null) { if (typeof object.instance !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.SafetyInput.instance: object expected"); - message.instance = $root.google.cloud.aiplatform.v1beta1.SafetyInstance.fromObject(object.instance); + throw TypeError(".google.cloud.aiplatform.v1beta1.FulfillmentInput.instance: object expected"); + message.instance = $root.google.cloud.aiplatform.v1beta1.FulfillmentInstance.fromObject(object.instance); } return message; }; /** - * Creates a plain object from a SafetyInput message. Also converts values to other types if specified. + * Creates a plain object from a FulfillmentInput message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.SafetyInput + * @memberof google.cloud.aiplatform.v1beta1.FulfillmentInput * @static - * @param {google.cloud.aiplatform.v1beta1.SafetyInput} message SafetyInput + * @param {google.cloud.aiplatform.v1beta1.FulfillmentInput} message FulfillmentInput * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SafetyInput.toObject = function toObject(message, options) { + FulfillmentInput.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -340469,59 +372132,60 @@ object.instance = null; } if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) - object.metricSpec = $root.google.cloud.aiplatform.v1beta1.SafetySpec.toObject(message.metricSpec, options); + object.metricSpec = $root.google.cloud.aiplatform.v1beta1.FulfillmentSpec.toObject(message.metricSpec, options); if (message.instance != null && message.hasOwnProperty("instance")) - object.instance = $root.google.cloud.aiplatform.v1beta1.SafetyInstance.toObject(message.instance, options); + object.instance = $root.google.cloud.aiplatform.v1beta1.FulfillmentInstance.toObject(message.instance, options); return object; }; /** - * Converts this SafetyInput to JSON. + * Converts this FulfillmentInput to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.SafetyInput + * @memberof google.cloud.aiplatform.v1beta1.FulfillmentInput * @instance * @returns {Object.} JSON object */ - SafetyInput.prototype.toJSON = function toJSON() { + FulfillmentInput.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SafetyInput + * Gets the default type url for FulfillmentInput * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.SafetyInput + * @memberof google.cloud.aiplatform.v1beta1.FulfillmentInput * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SafetyInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FulfillmentInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.SafetyInput"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.FulfillmentInput"; }; - return SafetyInput; + return FulfillmentInput; })(); - v1beta1.SafetyInstance = (function() { + v1beta1.FulfillmentInstance = (function() { /** - * Properties of a SafetyInstance. + * Properties of a FulfillmentInstance. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ISafetyInstance - * @property {string|null} [prediction] SafetyInstance prediction + * @interface IFulfillmentInstance + * @property {string|null} [prediction] FulfillmentInstance prediction + * @property {string|null} [instruction] FulfillmentInstance instruction */ /** - * Constructs a new SafetyInstance. + * Constructs a new FulfillmentInstance. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a SafetyInstance. - * @implements ISafetyInstance + * @classdesc Represents a FulfillmentInstance. + * @implements IFulfillmentInstance * @constructor - * @param {google.cloud.aiplatform.v1beta1.ISafetyInstance=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IFulfillmentInstance=} [properties] Properties to set */ - function SafetyInstance(properties) { + function FulfillmentInstance(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -340529,84 +372193,105 @@ } /** - * SafetyInstance prediction. + * FulfillmentInstance prediction. * @member {string|null|undefined} prediction - * @memberof google.cloud.aiplatform.v1beta1.SafetyInstance + * @memberof google.cloud.aiplatform.v1beta1.FulfillmentInstance * @instance */ - SafetyInstance.prototype.prediction = null; + FulfillmentInstance.prototype.prediction = null; + + /** + * FulfillmentInstance instruction. + * @member {string|null|undefined} instruction + * @memberof google.cloud.aiplatform.v1beta1.FulfillmentInstance + * @instance + */ + FulfillmentInstance.prototype.instruction = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * SafetyInstance _prediction. + * FulfillmentInstance _prediction. * @member {"prediction"|undefined} _prediction - * @memberof google.cloud.aiplatform.v1beta1.SafetyInstance + * @memberof google.cloud.aiplatform.v1beta1.FulfillmentInstance * @instance */ - Object.defineProperty(SafetyInstance.prototype, "_prediction", { + Object.defineProperty(FulfillmentInstance.prototype, "_prediction", { get: $util.oneOfGetter($oneOfFields = ["prediction"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new SafetyInstance instance using the specified properties. + * FulfillmentInstance _instruction. + * @member {"instruction"|undefined} _instruction + * @memberof google.cloud.aiplatform.v1beta1.FulfillmentInstance + * @instance + */ + Object.defineProperty(FulfillmentInstance.prototype, "_instruction", { + get: $util.oneOfGetter($oneOfFields = ["instruction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new FulfillmentInstance instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.SafetyInstance + * @memberof google.cloud.aiplatform.v1beta1.FulfillmentInstance * @static - * @param {google.cloud.aiplatform.v1beta1.ISafetyInstance=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.SafetyInstance} SafetyInstance instance + * @param {google.cloud.aiplatform.v1beta1.IFulfillmentInstance=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.FulfillmentInstance} FulfillmentInstance instance */ - SafetyInstance.create = function create(properties) { - return new SafetyInstance(properties); + FulfillmentInstance.create = function create(properties) { + return new FulfillmentInstance(properties); }; /** - * Encodes the specified SafetyInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SafetyInstance.verify|verify} messages. + * Encodes the specified FulfillmentInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FulfillmentInstance.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.SafetyInstance + * @memberof google.cloud.aiplatform.v1beta1.FulfillmentInstance * @static - * @param {google.cloud.aiplatform.v1beta1.ISafetyInstance} message SafetyInstance message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IFulfillmentInstance} message FulfillmentInstance message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SafetyInstance.encode = function encode(message, writer) { + FulfillmentInstance.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.prediction != null && Object.hasOwnProperty.call(message, "prediction")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.prediction); + if (message.instruction != null && Object.hasOwnProperty.call(message, "instruction")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.instruction); return writer; }; /** - * Encodes the specified SafetyInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SafetyInstance.verify|verify} messages. + * Encodes the specified FulfillmentInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FulfillmentInstance.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SafetyInstance + * @memberof google.cloud.aiplatform.v1beta1.FulfillmentInstance * @static - * @param {google.cloud.aiplatform.v1beta1.ISafetyInstance} message SafetyInstance message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IFulfillmentInstance} message FulfillmentInstance message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SafetyInstance.encodeDelimited = function encodeDelimited(message, writer) { + FulfillmentInstance.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SafetyInstance message from the specified reader or buffer. + * Decodes a FulfillmentInstance message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.SafetyInstance + * @memberof google.cloud.aiplatform.v1beta1.FulfillmentInstance * @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.SafetyInstance} SafetyInstance + * @returns {google.cloud.aiplatform.v1beta1.FulfillmentInstance} FulfillmentInstance * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SafetyInstance.decode = function decode(reader, length) { + FulfillmentInstance.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.SafetyInstance(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.FulfillmentInstance(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -340614,6 +372299,10 @@ message.prediction = reader.string(); break; } + case 2: { + message.instruction = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -340623,30 +372312,30 @@ }; /** - * Decodes a SafetyInstance message from the specified reader or buffer, length delimited. + * Decodes a FulfillmentInstance message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SafetyInstance + * @memberof google.cloud.aiplatform.v1beta1.FulfillmentInstance * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.SafetyInstance} SafetyInstance + * @returns {google.cloud.aiplatform.v1beta1.FulfillmentInstance} FulfillmentInstance * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SafetyInstance.decodeDelimited = function decodeDelimited(reader) { + FulfillmentInstance.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SafetyInstance message. + * Verifies a FulfillmentInstance message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.SafetyInstance + * @memberof google.cloud.aiplatform.v1beta1.FulfillmentInstance * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SafetyInstance.verify = function verify(message) { + FulfillmentInstance.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -340655,36 +372344,43 @@ if (!$util.isString(message.prediction)) return "prediction: string expected"; } + if (message.instruction != null && message.hasOwnProperty("instruction")) { + properties._instruction = 1; + if (!$util.isString(message.instruction)) + return "instruction: string expected"; + } return null; }; /** - * Creates a SafetyInstance message from a plain object. Also converts values to their respective internal types. + * Creates a FulfillmentInstance message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.SafetyInstance + * @memberof google.cloud.aiplatform.v1beta1.FulfillmentInstance * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.SafetyInstance} SafetyInstance + * @returns {google.cloud.aiplatform.v1beta1.FulfillmentInstance} FulfillmentInstance */ - SafetyInstance.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.SafetyInstance) + FulfillmentInstance.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.FulfillmentInstance) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.SafetyInstance(); + var message = new $root.google.cloud.aiplatform.v1beta1.FulfillmentInstance(); if (object.prediction != null) message.prediction = String(object.prediction); + if (object.instruction != null) + message.instruction = String(object.instruction); return message; }; /** - * Creates a plain object from a SafetyInstance message. Also converts values to other types if specified. + * Creates a plain object from a FulfillmentInstance message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.SafetyInstance + * @memberof google.cloud.aiplatform.v1beta1.FulfillmentInstance * @static - * @param {google.cloud.aiplatform.v1beta1.SafetyInstance} message SafetyInstance + * @param {google.cloud.aiplatform.v1beta1.FulfillmentInstance} message FulfillmentInstance * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SafetyInstance.toObject = function toObject(message, options) { + FulfillmentInstance.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -340693,56 +372389,61 @@ if (options.oneofs) object._prediction = "prediction"; } + if (message.instruction != null && message.hasOwnProperty("instruction")) { + object.instruction = message.instruction; + if (options.oneofs) + object._instruction = "instruction"; + } return object; }; /** - * Converts this SafetyInstance to JSON. + * Converts this FulfillmentInstance to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.SafetyInstance + * @memberof google.cloud.aiplatform.v1beta1.FulfillmentInstance * @instance * @returns {Object.} JSON object */ - SafetyInstance.prototype.toJSON = function toJSON() { + FulfillmentInstance.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SafetyInstance + * Gets the default type url for FulfillmentInstance * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.SafetyInstance + * @memberof google.cloud.aiplatform.v1beta1.FulfillmentInstance * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SafetyInstance.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FulfillmentInstance.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.SafetyInstance"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.FulfillmentInstance"; }; - return SafetyInstance; + return FulfillmentInstance; })(); - v1beta1.SafetySpec = (function() { + v1beta1.FulfillmentSpec = (function() { /** - * Properties of a SafetySpec. + * Properties of a FulfillmentSpec. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ISafetySpec - * @property {number|null} [version] SafetySpec version + * @interface IFulfillmentSpec + * @property {number|null} [version] FulfillmentSpec version */ /** - * Constructs a new SafetySpec. + * Constructs a new FulfillmentSpec. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a SafetySpec. - * @implements ISafetySpec + * @classdesc Represents a FulfillmentSpec. + * @implements IFulfillmentSpec * @constructor - * @param {google.cloud.aiplatform.v1beta1.ISafetySpec=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IFulfillmentSpec=} [properties] Properties to set */ - function SafetySpec(properties) { + function FulfillmentSpec(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -340750,35 +372451,35 @@ } /** - * SafetySpec version. + * FulfillmentSpec version. * @member {number} version - * @memberof google.cloud.aiplatform.v1beta1.SafetySpec + * @memberof google.cloud.aiplatform.v1beta1.FulfillmentSpec * @instance */ - SafetySpec.prototype.version = 0; + FulfillmentSpec.prototype.version = 0; /** - * Creates a new SafetySpec instance using the specified properties. + * Creates a new FulfillmentSpec instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.SafetySpec + * @memberof google.cloud.aiplatform.v1beta1.FulfillmentSpec * @static - * @param {google.cloud.aiplatform.v1beta1.ISafetySpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.SafetySpec} SafetySpec instance + * @param {google.cloud.aiplatform.v1beta1.IFulfillmentSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.FulfillmentSpec} FulfillmentSpec instance */ - SafetySpec.create = function create(properties) { - return new SafetySpec(properties); + FulfillmentSpec.create = function create(properties) { + return new FulfillmentSpec(properties); }; /** - * Encodes the specified SafetySpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SafetySpec.verify|verify} messages. + * Encodes the specified FulfillmentSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FulfillmentSpec.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.SafetySpec + * @memberof google.cloud.aiplatform.v1beta1.FulfillmentSpec * @static - * @param {google.cloud.aiplatform.v1beta1.ISafetySpec} message SafetySpec message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IFulfillmentSpec} message FulfillmentSpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SafetySpec.encode = function encode(message, writer) { + FulfillmentSpec.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.version != null && Object.hasOwnProperty.call(message, "version")) @@ -340787,33 +372488,33 @@ }; /** - * Encodes the specified SafetySpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SafetySpec.verify|verify} messages. + * Encodes the specified FulfillmentSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FulfillmentSpec.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SafetySpec + * @memberof google.cloud.aiplatform.v1beta1.FulfillmentSpec * @static - * @param {google.cloud.aiplatform.v1beta1.ISafetySpec} message SafetySpec message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IFulfillmentSpec} message FulfillmentSpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SafetySpec.encodeDelimited = function encodeDelimited(message, writer) { + FulfillmentSpec.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SafetySpec message from the specified reader or buffer. + * Decodes a FulfillmentSpec message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.SafetySpec + * @memberof google.cloud.aiplatform.v1beta1.FulfillmentSpec * @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.SafetySpec} SafetySpec + * @returns {google.cloud.aiplatform.v1beta1.FulfillmentSpec} FulfillmentSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SafetySpec.decode = function decode(reader, length) { + FulfillmentSpec.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.SafetySpec(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.FulfillmentSpec(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -340830,30 +372531,30 @@ }; /** - * Decodes a SafetySpec message from the specified reader or buffer, length delimited. + * Decodes a FulfillmentSpec message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SafetySpec + * @memberof google.cloud.aiplatform.v1beta1.FulfillmentSpec * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.SafetySpec} SafetySpec + * @returns {google.cloud.aiplatform.v1beta1.FulfillmentSpec} FulfillmentSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SafetySpec.decodeDelimited = function decodeDelimited(reader) { + FulfillmentSpec.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SafetySpec message. + * Verifies a FulfillmentSpec message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.SafetySpec + * @memberof google.cloud.aiplatform.v1beta1.FulfillmentSpec * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SafetySpec.verify = function verify(message) { + FulfillmentSpec.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.version != null && message.hasOwnProperty("version")) @@ -340863,32 +372564,32 @@ }; /** - * Creates a SafetySpec message from a plain object. Also converts values to their respective internal types. + * Creates a FulfillmentSpec message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.SafetySpec + * @memberof google.cloud.aiplatform.v1beta1.FulfillmentSpec * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.SafetySpec} SafetySpec + * @returns {google.cloud.aiplatform.v1beta1.FulfillmentSpec} FulfillmentSpec */ - SafetySpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.SafetySpec) + FulfillmentSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.FulfillmentSpec) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.SafetySpec(); + var message = new $root.google.cloud.aiplatform.v1beta1.FulfillmentSpec(); if (object.version != null) message.version = object.version | 0; return message; }; /** - * Creates a plain object from a SafetySpec message. Also converts values to other types if specified. + * Creates a plain object from a FulfillmentSpec message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.SafetySpec + * @memberof google.cloud.aiplatform.v1beta1.FulfillmentSpec * @static - * @param {google.cloud.aiplatform.v1beta1.SafetySpec} message SafetySpec + * @param {google.cloud.aiplatform.v1beta1.FulfillmentSpec} message FulfillmentSpec * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SafetySpec.toObject = function toObject(message, options) { + FulfillmentSpec.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -340900,54 +372601,54 @@ }; /** - * Converts this SafetySpec to JSON. + * Converts this FulfillmentSpec to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.SafetySpec + * @memberof google.cloud.aiplatform.v1beta1.FulfillmentSpec * @instance * @returns {Object.} JSON object */ - SafetySpec.prototype.toJSON = function toJSON() { + FulfillmentSpec.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SafetySpec + * Gets the default type url for FulfillmentSpec * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.SafetySpec + * @memberof google.cloud.aiplatform.v1beta1.FulfillmentSpec * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SafetySpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FulfillmentSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.SafetySpec"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.FulfillmentSpec"; }; - return SafetySpec; + return FulfillmentSpec; })(); - v1beta1.SafetyResult = (function() { + v1beta1.FulfillmentResult = (function() { /** - * Properties of a SafetyResult. + * Properties of a FulfillmentResult. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ISafetyResult - * @property {number|null} [score] SafetyResult score - * @property {string|null} [explanation] SafetyResult explanation - * @property {number|null} [confidence] SafetyResult confidence + * @interface IFulfillmentResult + * @property {number|null} [score] FulfillmentResult score + * @property {string|null} [explanation] FulfillmentResult explanation + * @property {number|null} [confidence] FulfillmentResult confidence */ /** - * Constructs a new SafetyResult. + * Constructs a new FulfillmentResult. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a SafetyResult. - * @implements ISafetyResult + * @classdesc Represents a FulfillmentResult. + * @implements IFulfillmentResult * @constructor - * @param {google.cloud.aiplatform.v1beta1.ISafetyResult=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IFulfillmentResult=} [properties] Properties to set */ - function SafetyResult(properties) { + function FulfillmentResult(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -340955,76 +372656,76 @@ } /** - * SafetyResult score. + * FulfillmentResult score. * @member {number|null|undefined} score - * @memberof google.cloud.aiplatform.v1beta1.SafetyResult + * @memberof google.cloud.aiplatform.v1beta1.FulfillmentResult * @instance */ - SafetyResult.prototype.score = null; + FulfillmentResult.prototype.score = null; /** - * SafetyResult explanation. + * FulfillmentResult explanation. * @member {string} explanation - * @memberof google.cloud.aiplatform.v1beta1.SafetyResult + * @memberof google.cloud.aiplatform.v1beta1.FulfillmentResult * @instance */ - SafetyResult.prototype.explanation = ""; + FulfillmentResult.prototype.explanation = ""; /** - * SafetyResult confidence. + * FulfillmentResult confidence. * @member {number|null|undefined} confidence - * @memberof google.cloud.aiplatform.v1beta1.SafetyResult + * @memberof google.cloud.aiplatform.v1beta1.FulfillmentResult * @instance */ - SafetyResult.prototype.confidence = null; + FulfillmentResult.prototype.confidence = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * SafetyResult _score. + * FulfillmentResult _score. * @member {"score"|undefined} _score - * @memberof google.cloud.aiplatform.v1beta1.SafetyResult + * @memberof google.cloud.aiplatform.v1beta1.FulfillmentResult * @instance */ - Object.defineProperty(SafetyResult.prototype, "_score", { + Object.defineProperty(FulfillmentResult.prototype, "_score", { get: $util.oneOfGetter($oneOfFields = ["score"]), set: $util.oneOfSetter($oneOfFields) }); /** - * SafetyResult _confidence. + * FulfillmentResult _confidence. * @member {"confidence"|undefined} _confidence - * @memberof google.cloud.aiplatform.v1beta1.SafetyResult + * @memberof google.cloud.aiplatform.v1beta1.FulfillmentResult * @instance */ - Object.defineProperty(SafetyResult.prototype, "_confidence", { + Object.defineProperty(FulfillmentResult.prototype, "_confidence", { get: $util.oneOfGetter($oneOfFields = ["confidence"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new SafetyResult instance using the specified properties. + * Creates a new FulfillmentResult instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.SafetyResult + * @memberof google.cloud.aiplatform.v1beta1.FulfillmentResult * @static - * @param {google.cloud.aiplatform.v1beta1.ISafetyResult=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.SafetyResult} SafetyResult instance + * @param {google.cloud.aiplatform.v1beta1.IFulfillmentResult=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.FulfillmentResult} FulfillmentResult instance */ - SafetyResult.create = function create(properties) { - return new SafetyResult(properties); + FulfillmentResult.create = function create(properties) { + return new FulfillmentResult(properties); }; /** - * Encodes the specified SafetyResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SafetyResult.verify|verify} messages. + * Encodes the specified FulfillmentResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FulfillmentResult.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.SafetyResult + * @memberof google.cloud.aiplatform.v1beta1.FulfillmentResult * @static - * @param {google.cloud.aiplatform.v1beta1.ISafetyResult} message SafetyResult message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IFulfillmentResult} message FulfillmentResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SafetyResult.encode = function encode(message, writer) { + FulfillmentResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.score != null && Object.hasOwnProperty.call(message, "score")) @@ -341037,33 +372738,33 @@ }; /** - * Encodes the specified SafetyResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SafetyResult.verify|verify} messages. + * Encodes the specified FulfillmentResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FulfillmentResult.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SafetyResult + * @memberof google.cloud.aiplatform.v1beta1.FulfillmentResult * @static - * @param {google.cloud.aiplatform.v1beta1.ISafetyResult} message SafetyResult message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IFulfillmentResult} message FulfillmentResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SafetyResult.encodeDelimited = function encodeDelimited(message, writer) { + FulfillmentResult.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SafetyResult message from the specified reader or buffer. + * Decodes a FulfillmentResult message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.SafetyResult + * @memberof google.cloud.aiplatform.v1beta1.FulfillmentResult * @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.SafetyResult} SafetyResult + * @returns {google.cloud.aiplatform.v1beta1.FulfillmentResult} FulfillmentResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SafetyResult.decode = function decode(reader, length) { + FulfillmentResult.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.SafetyResult(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.FulfillmentResult(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -341088,30 +372789,30 @@ }; /** - * Decodes a SafetyResult message from the specified reader or buffer, length delimited. + * Decodes a FulfillmentResult message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SafetyResult + * @memberof google.cloud.aiplatform.v1beta1.FulfillmentResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.SafetyResult} SafetyResult + * @returns {google.cloud.aiplatform.v1beta1.FulfillmentResult} FulfillmentResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SafetyResult.decodeDelimited = function decodeDelimited(reader) { + FulfillmentResult.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SafetyResult message. + * Verifies a FulfillmentResult message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.SafetyResult + * @memberof google.cloud.aiplatform.v1beta1.FulfillmentResult * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SafetyResult.verify = function verify(message) { + FulfillmentResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -341132,17 +372833,17 @@ }; /** - * Creates a SafetyResult message from a plain object. Also converts values to their respective internal types. + * Creates a FulfillmentResult message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.SafetyResult + * @memberof google.cloud.aiplatform.v1beta1.FulfillmentResult * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.SafetyResult} SafetyResult + * @returns {google.cloud.aiplatform.v1beta1.FulfillmentResult} FulfillmentResult */ - SafetyResult.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.SafetyResult) + FulfillmentResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.FulfillmentResult) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.SafetyResult(); + var message = new $root.google.cloud.aiplatform.v1beta1.FulfillmentResult(); if (object.score != null) message.score = Number(object.score); if (object.explanation != null) @@ -341153,15 +372854,15 @@ }; /** - * Creates a plain object from a SafetyResult message. Also converts values to other types if specified. + * Creates a plain object from a FulfillmentResult message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.SafetyResult + * @memberof google.cloud.aiplatform.v1beta1.FulfillmentResult * @static - * @param {google.cloud.aiplatform.v1beta1.SafetyResult} message SafetyResult + * @param {google.cloud.aiplatform.v1beta1.FulfillmentResult} message FulfillmentResult * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SafetyResult.toObject = function toObject(message, options) { + FulfillmentResult.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -341183,53 +372884,53 @@ }; /** - * Converts this SafetyResult to JSON. + * Converts this FulfillmentResult to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.SafetyResult + * @memberof google.cloud.aiplatform.v1beta1.FulfillmentResult * @instance * @returns {Object.} JSON object */ - SafetyResult.prototype.toJSON = function toJSON() { + FulfillmentResult.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SafetyResult + * Gets the default type url for FulfillmentResult * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.SafetyResult + * @memberof google.cloud.aiplatform.v1beta1.FulfillmentResult * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SafetyResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FulfillmentResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.SafetyResult"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.FulfillmentResult"; }; - return SafetyResult; + return FulfillmentResult; })(); - v1beta1.GroundednessInput = (function() { + v1beta1.SummarizationQualityInput = (function() { /** - * Properties of a GroundednessInput. + * Properties of a SummarizationQualityInput. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGroundednessInput - * @property {google.cloud.aiplatform.v1beta1.IGroundednessSpec|null} [metricSpec] GroundednessInput metricSpec - * @property {google.cloud.aiplatform.v1beta1.IGroundednessInstance|null} [instance] GroundednessInput instance + * @interface ISummarizationQualityInput + * @property {google.cloud.aiplatform.v1beta1.ISummarizationQualitySpec|null} [metricSpec] SummarizationQualityInput metricSpec + * @property {google.cloud.aiplatform.v1beta1.ISummarizationQualityInstance|null} [instance] SummarizationQualityInput instance */ /** - * Constructs a new GroundednessInput. + * Constructs a new SummarizationQualityInput. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GroundednessInput. - * @implements IGroundednessInput + * @classdesc Represents a SummarizationQualityInput. + * @implements ISummarizationQualityInput * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGroundednessInput=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ISummarizationQualityInput=} [properties] Properties to set */ - function GroundednessInput(properties) { + function SummarizationQualityInput(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -341237,89 +372938,89 @@ } /** - * GroundednessInput metricSpec. - * @member {google.cloud.aiplatform.v1beta1.IGroundednessSpec|null|undefined} metricSpec - * @memberof google.cloud.aiplatform.v1beta1.GroundednessInput + * SummarizationQualityInput metricSpec. + * @member {google.cloud.aiplatform.v1beta1.ISummarizationQualitySpec|null|undefined} metricSpec + * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityInput * @instance */ - GroundednessInput.prototype.metricSpec = null; + SummarizationQualityInput.prototype.metricSpec = null; /** - * GroundednessInput instance. - * @member {google.cloud.aiplatform.v1beta1.IGroundednessInstance|null|undefined} instance - * @memberof google.cloud.aiplatform.v1beta1.GroundednessInput + * SummarizationQualityInput instance. + * @member {google.cloud.aiplatform.v1beta1.ISummarizationQualityInstance|null|undefined} instance + * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityInput * @instance */ - GroundednessInput.prototype.instance = null; + SummarizationQualityInput.prototype.instance = null; /** - * Creates a new GroundednessInput instance using the specified properties. + * Creates a new SummarizationQualityInput instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GroundednessInput + * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityInput * @static - * @param {google.cloud.aiplatform.v1beta1.IGroundednessInput=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GroundednessInput} GroundednessInput instance + * @param {google.cloud.aiplatform.v1beta1.ISummarizationQualityInput=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.SummarizationQualityInput} SummarizationQualityInput instance */ - GroundednessInput.create = function create(properties) { - return new GroundednessInput(properties); + SummarizationQualityInput.create = function create(properties) { + return new SummarizationQualityInput(properties); }; /** - * Encodes the specified GroundednessInput message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundednessInput.verify|verify} messages. + * Encodes the specified SummarizationQualityInput message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SummarizationQualityInput.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GroundednessInput + * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityInput * @static - * @param {google.cloud.aiplatform.v1beta1.IGroundednessInput} message GroundednessInput message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ISummarizationQualityInput} message SummarizationQualityInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GroundednessInput.encode = function encode(message, writer) { + SummarizationQualityInput.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.metricSpec != null && Object.hasOwnProperty.call(message, "metricSpec")) - $root.google.cloud.aiplatform.v1beta1.GroundednessSpec.encode(message.metricSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.google.cloud.aiplatform.v1beta1.SummarizationQualitySpec.encode(message.metricSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.instance != null && Object.hasOwnProperty.call(message, "instance")) - $root.google.cloud.aiplatform.v1beta1.GroundednessInstance.encode(message.instance, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.google.cloud.aiplatform.v1beta1.SummarizationQualityInstance.encode(message.instance, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified GroundednessInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundednessInput.verify|verify} messages. + * Encodes the specified SummarizationQualityInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SummarizationQualityInput.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GroundednessInput + * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityInput * @static - * @param {google.cloud.aiplatform.v1beta1.IGroundednessInput} message GroundednessInput message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ISummarizationQualityInput} message SummarizationQualityInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GroundednessInput.encodeDelimited = function encodeDelimited(message, writer) { + SummarizationQualityInput.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GroundednessInput message from the specified reader or buffer. + * Decodes a SummarizationQualityInput message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GroundednessInput + * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityInput * @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.GroundednessInput} GroundednessInput + * @returns {google.cloud.aiplatform.v1beta1.SummarizationQualityInput} SummarizationQualityInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GroundednessInput.decode = function decode(reader, length) { + SummarizationQualityInput.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.GroundednessInput(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.SummarizationQualityInput(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.metricSpec = $root.google.cloud.aiplatform.v1beta1.GroundednessSpec.decode(reader, reader.uint32()); + message.metricSpec = $root.google.cloud.aiplatform.v1beta1.SummarizationQualitySpec.decode(reader, reader.uint32()); break; } case 2: { - message.instance = $root.google.cloud.aiplatform.v1beta1.GroundednessInstance.decode(reader, reader.uint32()); + message.instance = $root.google.cloud.aiplatform.v1beta1.SummarizationQualityInstance.decode(reader, reader.uint32()); break; } default: @@ -341331,39 +373032,39 @@ }; /** - * Decodes a GroundednessInput message from the specified reader or buffer, length delimited. + * Decodes a SummarizationQualityInput message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GroundednessInput + * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GroundednessInput} GroundednessInput + * @returns {google.cloud.aiplatform.v1beta1.SummarizationQualityInput} SummarizationQualityInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GroundednessInput.decodeDelimited = function decodeDelimited(reader) { + SummarizationQualityInput.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GroundednessInput message. + * Verifies a SummarizationQualityInput message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GroundednessInput + * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityInput * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GroundednessInput.verify = function verify(message) { + SummarizationQualityInput.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) { - var error = $root.google.cloud.aiplatform.v1beta1.GroundednessSpec.verify(message.metricSpec); + var error = $root.google.cloud.aiplatform.v1beta1.SummarizationQualitySpec.verify(message.metricSpec); if (error) return "metricSpec." + error; } if (message.instance != null && message.hasOwnProperty("instance")) { - var error = $root.google.cloud.aiplatform.v1beta1.GroundednessInstance.verify(message.instance); + var error = $root.google.cloud.aiplatform.v1beta1.SummarizationQualityInstance.verify(message.instance); if (error) return "instance." + error; } @@ -341371,40 +373072,40 @@ }; /** - * Creates a GroundednessInput message from a plain object. Also converts values to their respective internal types. + * Creates a SummarizationQualityInput message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GroundednessInput + * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityInput * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GroundednessInput} GroundednessInput + * @returns {google.cloud.aiplatform.v1beta1.SummarizationQualityInput} SummarizationQualityInput */ - GroundednessInput.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GroundednessInput) + SummarizationQualityInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.SummarizationQualityInput) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GroundednessInput(); + var message = new $root.google.cloud.aiplatform.v1beta1.SummarizationQualityInput(); if (object.metricSpec != null) { if (typeof object.metricSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.GroundednessInput.metricSpec: object expected"); - message.metricSpec = $root.google.cloud.aiplatform.v1beta1.GroundednessSpec.fromObject(object.metricSpec); + throw TypeError(".google.cloud.aiplatform.v1beta1.SummarizationQualityInput.metricSpec: object expected"); + message.metricSpec = $root.google.cloud.aiplatform.v1beta1.SummarizationQualitySpec.fromObject(object.metricSpec); } if (object.instance != null) { if (typeof object.instance !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.GroundednessInput.instance: object expected"); - message.instance = $root.google.cloud.aiplatform.v1beta1.GroundednessInstance.fromObject(object.instance); + throw TypeError(".google.cloud.aiplatform.v1beta1.SummarizationQualityInput.instance: object expected"); + message.instance = $root.google.cloud.aiplatform.v1beta1.SummarizationQualityInstance.fromObject(object.instance); } return message; }; /** - * Creates a plain object from a GroundednessInput message. Also converts values to other types if specified. + * Creates a plain object from a SummarizationQualityInput message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GroundednessInput + * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityInput * @static - * @param {google.cloud.aiplatform.v1beta1.GroundednessInput} message GroundednessInput + * @param {google.cloud.aiplatform.v1beta1.SummarizationQualityInput} message SummarizationQualityInput * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GroundednessInput.toObject = function toObject(message, options) { + SummarizationQualityInput.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -341413,60 +373114,62 @@ object.instance = null; } if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) - object.metricSpec = $root.google.cloud.aiplatform.v1beta1.GroundednessSpec.toObject(message.metricSpec, options); + object.metricSpec = $root.google.cloud.aiplatform.v1beta1.SummarizationQualitySpec.toObject(message.metricSpec, options); if (message.instance != null && message.hasOwnProperty("instance")) - object.instance = $root.google.cloud.aiplatform.v1beta1.GroundednessInstance.toObject(message.instance, options); + object.instance = $root.google.cloud.aiplatform.v1beta1.SummarizationQualityInstance.toObject(message.instance, options); return object; }; /** - * Converts this GroundednessInput to JSON. + * Converts this SummarizationQualityInput to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GroundednessInput + * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityInput * @instance * @returns {Object.} JSON object */ - GroundednessInput.prototype.toJSON = function toJSON() { + SummarizationQualityInput.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GroundednessInput + * Gets the default type url for SummarizationQualityInput * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.GroundednessInput + * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityInput * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GroundednessInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SummarizationQualityInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GroundednessInput"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.SummarizationQualityInput"; }; - return GroundednessInput; + return SummarizationQualityInput; })(); - v1beta1.GroundednessInstance = (function() { + v1beta1.SummarizationQualityInstance = (function() { /** - * Properties of a GroundednessInstance. + * Properties of a SummarizationQualityInstance. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGroundednessInstance - * @property {string|null} [prediction] GroundednessInstance prediction - * @property {string|null} [context] GroundednessInstance context + * @interface ISummarizationQualityInstance + * @property {string|null} [prediction] SummarizationQualityInstance prediction + * @property {string|null} [reference] SummarizationQualityInstance reference + * @property {string|null} [context] SummarizationQualityInstance context + * @property {string|null} [instruction] SummarizationQualityInstance instruction */ /** - * Constructs a new GroundednessInstance. + * Constructs a new SummarizationQualityInstance. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GroundednessInstance. - * @implements IGroundednessInstance + * @classdesc Represents a SummarizationQualityInstance. + * @implements ISummarizationQualityInstance * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGroundednessInstance=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ISummarizationQualityInstance=} [properties] Properties to set */ - function GroundednessInstance(properties) { + function SummarizationQualityInstance(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -341474,105 +373177,147 @@ } /** - * GroundednessInstance prediction. + * SummarizationQualityInstance prediction. * @member {string|null|undefined} prediction - * @memberof google.cloud.aiplatform.v1beta1.GroundednessInstance + * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityInstance * @instance */ - GroundednessInstance.prototype.prediction = null; + SummarizationQualityInstance.prototype.prediction = null; /** - * GroundednessInstance context. + * SummarizationQualityInstance reference. + * @member {string|null|undefined} reference + * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityInstance + * @instance + */ + SummarizationQualityInstance.prototype.reference = null; + + /** + * SummarizationQualityInstance context. * @member {string|null|undefined} context - * @memberof google.cloud.aiplatform.v1beta1.GroundednessInstance + * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityInstance * @instance */ - GroundednessInstance.prototype.context = null; + SummarizationQualityInstance.prototype.context = null; + + /** + * SummarizationQualityInstance instruction. + * @member {string|null|undefined} instruction + * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityInstance + * @instance + */ + SummarizationQualityInstance.prototype.instruction = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * GroundednessInstance _prediction. + * SummarizationQualityInstance _prediction. * @member {"prediction"|undefined} _prediction - * @memberof google.cloud.aiplatform.v1beta1.GroundednessInstance + * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityInstance * @instance */ - Object.defineProperty(GroundednessInstance.prototype, "_prediction", { + Object.defineProperty(SummarizationQualityInstance.prototype, "_prediction", { get: $util.oneOfGetter($oneOfFields = ["prediction"]), set: $util.oneOfSetter($oneOfFields) }); /** - * GroundednessInstance _context. + * SummarizationQualityInstance _reference. + * @member {"reference"|undefined} _reference + * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityInstance + * @instance + */ + Object.defineProperty(SummarizationQualityInstance.prototype, "_reference", { + get: $util.oneOfGetter($oneOfFields = ["reference"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SummarizationQualityInstance _context. * @member {"context"|undefined} _context - * @memberof google.cloud.aiplatform.v1beta1.GroundednessInstance + * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityInstance * @instance */ - Object.defineProperty(GroundednessInstance.prototype, "_context", { + Object.defineProperty(SummarizationQualityInstance.prototype, "_context", { get: $util.oneOfGetter($oneOfFields = ["context"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new GroundednessInstance instance using the specified properties. + * SummarizationQualityInstance _instruction. + * @member {"instruction"|undefined} _instruction + * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityInstance + * @instance + */ + Object.defineProperty(SummarizationQualityInstance.prototype, "_instruction", { + get: $util.oneOfGetter($oneOfFields = ["instruction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new SummarizationQualityInstance instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GroundednessInstance + * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityInstance * @static - * @param {google.cloud.aiplatform.v1beta1.IGroundednessInstance=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GroundednessInstance} GroundednessInstance instance + * @param {google.cloud.aiplatform.v1beta1.ISummarizationQualityInstance=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.SummarizationQualityInstance} SummarizationQualityInstance instance */ - GroundednessInstance.create = function create(properties) { - return new GroundednessInstance(properties); + SummarizationQualityInstance.create = function create(properties) { + return new SummarizationQualityInstance(properties); }; /** - * Encodes the specified GroundednessInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundednessInstance.verify|verify} messages. + * Encodes the specified SummarizationQualityInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SummarizationQualityInstance.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GroundednessInstance + * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityInstance * @static - * @param {google.cloud.aiplatform.v1beta1.IGroundednessInstance} message GroundednessInstance message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ISummarizationQualityInstance} message SummarizationQualityInstance message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GroundednessInstance.encode = function encode(message, writer) { + SummarizationQualityInstance.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.prediction != null && Object.hasOwnProperty.call(message, "prediction")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.prediction); + if (message.reference != null && Object.hasOwnProperty.call(message, "reference")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.reference); if (message.context != null && Object.hasOwnProperty.call(message, "context")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.context); + writer.uint32(/* id 3, wireType 2 =*/26).string(message.context); + if (message.instruction != null && Object.hasOwnProperty.call(message, "instruction")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.instruction); return writer; }; /** - * Encodes the specified GroundednessInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundednessInstance.verify|verify} messages. + * Encodes the specified SummarizationQualityInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SummarizationQualityInstance.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GroundednessInstance + * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityInstance * @static - * @param {google.cloud.aiplatform.v1beta1.IGroundednessInstance} message GroundednessInstance message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ISummarizationQualityInstance} message SummarizationQualityInstance message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GroundednessInstance.encodeDelimited = function encodeDelimited(message, writer) { + SummarizationQualityInstance.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GroundednessInstance message from the specified reader or buffer. + * Decodes a SummarizationQualityInstance message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GroundednessInstance + * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityInstance * @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.GroundednessInstance} GroundednessInstance + * @returns {google.cloud.aiplatform.v1beta1.SummarizationQualityInstance} SummarizationQualityInstance * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GroundednessInstance.decode = function decode(reader, length) { + SummarizationQualityInstance.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.GroundednessInstance(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.SummarizationQualityInstance(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -341581,9 +373326,17 @@ break; } case 2: { + message.reference = reader.string(); + break; + } + case 3: { message.context = reader.string(); break; } + case 4: { + message.instruction = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -341593,30 +373346,30 @@ }; /** - * Decodes a GroundednessInstance message from the specified reader or buffer, length delimited. + * Decodes a SummarizationQualityInstance message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GroundednessInstance + * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityInstance * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GroundednessInstance} GroundednessInstance + * @returns {google.cloud.aiplatform.v1beta1.SummarizationQualityInstance} SummarizationQualityInstance * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GroundednessInstance.decodeDelimited = function decodeDelimited(reader) { + SummarizationQualityInstance.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GroundednessInstance message. + * Verifies a SummarizationQualityInstance message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GroundednessInstance + * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityInstance * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GroundednessInstance.verify = function verify(message) { + SummarizationQualityInstance.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -341625,43 +373378,57 @@ if (!$util.isString(message.prediction)) return "prediction: string expected"; } + if (message.reference != null && message.hasOwnProperty("reference")) { + properties._reference = 1; + if (!$util.isString(message.reference)) + return "reference: string expected"; + } if (message.context != null && message.hasOwnProperty("context")) { properties._context = 1; if (!$util.isString(message.context)) return "context: string expected"; } + if (message.instruction != null && message.hasOwnProperty("instruction")) { + properties._instruction = 1; + if (!$util.isString(message.instruction)) + return "instruction: string expected"; + } return null; }; /** - * Creates a GroundednessInstance message from a plain object. Also converts values to their respective internal types. + * Creates a SummarizationQualityInstance message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GroundednessInstance + * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityInstance * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GroundednessInstance} GroundednessInstance + * @returns {google.cloud.aiplatform.v1beta1.SummarizationQualityInstance} SummarizationQualityInstance */ - GroundednessInstance.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GroundednessInstance) + SummarizationQualityInstance.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.SummarizationQualityInstance) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GroundednessInstance(); + var message = new $root.google.cloud.aiplatform.v1beta1.SummarizationQualityInstance(); if (object.prediction != null) message.prediction = String(object.prediction); + if (object.reference != null) + message.reference = String(object.reference); if (object.context != null) message.context = String(object.context); + if (object.instruction != null) + message.instruction = String(object.instruction); return message; }; /** - * Creates a plain object from a GroundednessInstance message. Also converts values to other types if specified. + * Creates a plain object from a SummarizationQualityInstance message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GroundednessInstance + * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityInstance * @static - * @param {google.cloud.aiplatform.v1beta1.GroundednessInstance} message GroundednessInstance + * @param {google.cloud.aiplatform.v1beta1.SummarizationQualityInstance} message SummarizationQualityInstance * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GroundednessInstance.toObject = function toObject(message, options) { + SummarizationQualityInstance.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -341670,61 +373437,72 @@ if (options.oneofs) object._prediction = "prediction"; } + if (message.reference != null && message.hasOwnProperty("reference")) { + object.reference = message.reference; + if (options.oneofs) + object._reference = "reference"; + } if (message.context != null && message.hasOwnProperty("context")) { object.context = message.context; if (options.oneofs) object._context = "context"; } + if (message.instruction != null && message.hasOwnProperty("instruction")) { + object.instruction = message.instruction; + if (options.oneofs) + object._instruction = "instruction"; + } return object; }; /** - * Converts this GroundednessInstance to JSON. + * Converts this SummarizationQualityInstance to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GroundednessInstance + * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityInstance * @instance * @returns {Object.} JSON object */ - GroundednessInstance.prototype.toJSON = function toJSON() { + SummarizationQualityInstance.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GroundednessInstance + * Gets the default type url for SummarizationQualityInstance * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.GroundednessInstance + * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityInstance * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GroundednessInstance.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SummarizationQualityInstance.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GroundednessInstance"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.SummarizationQualityInstance"; }; - return GroundednessInstance; + return SummarizationQualityInstance; })(); - v1beta1.GroundednessSpec = (function() { + v1beta1.SummarizationQualitySpec = (function() { /** - * Properties of a GroundednessSpec. + * Properties of a SummarizationQualitySpec. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGroundednessSpec - * @property {number|null} [version] GroundednessSpec version + * @interface ISummarizationQualitySpec + * @property {boolean|null} [useReference] SummarizationQualitySpec useReference + * @property {number|null} [version] SummarizationQualitySpec version */ /** - * Constructs a new GroundednessSpec. + * Constructs a new SummarizationQualitySpec. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GroundednessSpec. - * @implements IGroundednessSpec + * @classdesc Represents a SummarizationQualitySpec. + * @implements ISummarizationQualitySpec * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGroundednessSpec=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ISummarizationQualitySpec=} [properties] Properties to set */ - function GroundednessSpec(properties) { + function SummarizationQualitySpec(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -341732,74 +373510,88 @@ } /** - * GroundednessSpec version. + * SummarizationQualitySpec useReference. + * @member {boolean} useReference + * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualitySpec + * @instance + */ + SummarizationQualitySpec.prototype.useReference = false; + + /** + * SummarizationQualitySpec version. * @member {number} version - * @memberof google.cloud.aiplatform.v1beta1.GroundednessSpec + * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualitySpec * @instance */ - GroundednessSpec.prototype.version = 0; + SummarizationQualitySpec.prototype.version = 0; /** - * Creates a new GroundednessSpec instance using the specified properties. + * Creates a new SummarizationQualitySpec instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GroundednessSpec + * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualitySpec * @static - * @param {google.cloud.aiplatform.v1beta1.IGroundednessSpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GroundednessSpec} GroundednessSpec instance + * @param {google.cloud.aiplatform.v1beta1.ISummarizationQualitySpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.SummarizationQualitySpec} SummarizationQualitySpec instance */ - GroundednessSpec.create = function create(properties) { - return new GroundednessSpec(properties); + SummarizationQualitySpec.create = function create(properties) { + return new SummarizationQualitySpec(properties); }; /** - * Encodes the specified GroundednessSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundednessSpec.verify|verify} messages. + * Encodes the specified SummarizationQualitySpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SummarizationQualitySpec.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GroundednessSpec + * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualitySpec * @static - * @param {google.cloud.aiplatform.v1beta1.IGroundednessSpec} message GroundednessSpec message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ISummarizationQualitySpec} message SummarizationQualitySpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GroundednessSpec.encode = function encode(message, writer) { + SummarizationQualitySpec.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.useReference != null && Object.hasOwnProperty.call(message, "useReference")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.useReference); if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.version); + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.version); return writer; }; /** - * Encodes the specified GroundednessSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundednessSpec.verify|verify} messages. + * Encodes the specified SummarizationQualitySpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SummarizationQualitySpec.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GroundednessSpec + * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualitySpec * @static - * @param {google.cloud.aiplatform.v1beta1.IGroundednessSpec} message GroundednessSpec message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ISummarizationQualitySpec} message SummarizationQualitySpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GroundednessSpec.encodeDelimited = function encodeDelimited(message, writer) { + SummarizationQualitySpec.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GroundednessSpec message from the specified reader or buffer. + * Decodes a SummarizationQualitySpec message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GroundednessSpec + * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualitySpec * @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.GroundednessSpec} GroundednessSpec + * @returns {google.cloud.aiplatform.v1beta1.SummarizationQualitySpec} SummarizationQualitySpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GroundednessSpec.decode = function decode(reader, length) { + SummarizationQualitySpec.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.GroundednessSpec(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.SummarizationQualitySpec(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { + message.useReference = reader.bool(); + break; + } + case 2: { message.version = reader.int32(); break; } @@ -341812,32 +373604,35 @@ }; /** - * Decodes a GroundednessSpec message from the specified reader or buffer, length delimited. + * Decodes a SummarizationQualitySpec message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GroundednessSpec + * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualitySpec * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GroundednessSpec} GroundednessSpec + * @returns {google.cloud.aiplatform.v1beta1.SummarizationQualitySpec} SummarizationQualitySpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GroundednessSpec.decodeDelimited = function decodeDelimited(reader) { + SummarizationQualitySpec.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GroundednessSpec message. + * Verifies a SummarizationQualitySpec message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GroundednessSpec + * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualitySpec * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GroundednessSpec.verify = function verify(message) { + SummarizationQualitySpec.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.useReference != null && message.hasOwnProperty("useReference")) + if (typeof message.useReference !== "boolean") + return "useReference: boolean expected"; if (message.version != null && message.hasOwnProperty("version")) if (!$util.isInteger(message.version)) return "version: integer expected"; @@ -341845,91 +373640,97 @@ }; /** - * Creates a GroundednessSpec message from a plain object. Also converts values to their respective internal types. + * Creates a SummarizationQualitySpec message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GroundednessSpec + * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualitySpec * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GroundednessSpec} GroundednessSpec + * @returns {google.cloud.aiplatform.v1beta1.SummarizationQualitySpec} SummarizationQualitySpec */ - GroundednessSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GroundednessSpec) + SummarizationQualitySpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.SummarizationQualitySpec) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GroundednessSpec(); + var message = new $root.google.cloud.aiplatform.v1beta1.SummarizationQualitySpec(); + if (object.useReference != null) + message.useReference = Boolean(object.useReference); if (object.version != null) message.version = object.version | 0; return message; }; /** - * Creates a plain object from a GroundednessSpec message. Also converts values to other types if specified. + * Creates a plain object from a SummarizationQualitySpec message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GroundednessSpec + * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualitySpec * @static - * @param {google.cloud.aiplatform.v1beta1.GroundednessSpec} message GroundednessSpec + * @param {google.cloud.aiplatform.v1beta1.SummarizationQualitySpec} message SummarizationQualitySpec * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GroundednessSpec.toObject = function toObject(message, options) { + SummarizationQualitySpec.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { + object.useReference = false; object.version = 0; + } + if (message.useReference != null && message.hasOwnProperty("useReference")) + object.useReference = message.useReference; if (message.version != null && message.hasOwnProperty("version")) object.version = message.version; return object; }; /** - * Converts this GroundednessSpec to JSON. + * Converts this SummarizationQualitySpec to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GroundednessSpec + * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualitySpec * @instance * @returns {Object.} JSON object */ - GroundednessSpec.prototype.toJSON = function toJSON() { + SummarizationQualitySpec.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GroundednessSpec + * Gets the default type url for SummarizationQualitySpec * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.GroundednessSpec + * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualitySpec * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GroundednessSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SummarizationQualitySpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GroundednessSpec"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.SummarizationQualitySpec"; }; - return GroundednessSpec; + return SummarizationQualitySpec; })(); - v1beta1.GroundednessResult = (function() { + v1beta1.SummarizationQualityResult = (function() { /** - * Properties of a GroundednessResult. + * Properties of a SummarizationQualityResult. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGroundednessResult - * @property {number|null} [score] GroundednessResult score - * @property {string|null} [explanation] GroundednessResult explanation - * @property {number|null} [confidence] GroundednessResult confidence + * @interface ISummarizationQualityResult + * @property {number|null} [score] SummarizationQualityResult score + * @property {string|null} [explanation] SummarizationQualityResult explanation + * @property {number|null} [confidence] SummarizationQualityResult confidence */ /** - * Constructs a new GroundednessResult. + * Constructs a new SummarizationQualityResult. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GroundednessResult. - * @implements IGroundednessResult + * @classdesc Represents a SummarizationQualityResult. + * @implements ISummarizationQualityResult * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGroundednessResult=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ISummarizationQualityResult=} [properties] Properties to set */ - function GroundednessResult(properties) { + function SummarizationQualityResult(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -341937,76 +373738,76 @@ } /** - * GroundednessResult score. + * SummarizationQualityResult score. * @member {number|null|undefined} score - * @memberof google.cloud.aiplatform.v1beta1.GroundednessResult + * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityResult * @instance */ - GroundednessResult.prototype.score = null; + SummarizationQualityResult.prototype.score = null; /** - * GroundednessResult explanation. + * SummarizationQualityResult explanation. * @member {string} explanation - * @memberof google.cloud.aiplatform.v1beta1.GroundednessResult + * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityResult * @instance */ - GroundednessResult.prototype.explanation = ""; + SummarizationQualityResult.prototype.explanation = ""; /** - * GroundednessResult confidence. + * SummarizationQualityResult confidence. * @member {number|null|undefined} confidence - * @memberof google.cloud.aiplatform.v1beta1.GroundednessResult + * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityResult * @instance */ - GroundednessResult.prototype.confidence = null; + SummarizationQualityResult.prototype.confidence = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * GroundednessResult _score. + * SummarizationQualityResult _score. * @member {"score"|undefined} _score - * @memberof google.cloud.aiplatform.v1beta1.GroundednessResult + * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityResult * @instance */ - Object.defineProperty(GroundednessResult.prototype, "_score", { + Object.defineProperty(SummarizationQualityResult.prototype, "_score", { get: $util.oneOfGetter($oneOfFields = ["score"]), set: $util.oneOfSetter($oneOfFields) }); /** - * GroundednessResult _confidence. + * SummarizationQualityResult _confidence. * @member {"confidence"|undefined} _confidence - * @memberof google.cloud.aiplatform.v1beta1.GroundednessResult + * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityResult * @instance */ - Object.defineProperty(GroundednessResult.prototype, "_confidence", { + Object.defineProperty(SummarizationQualityResult.prototype, "_confidence", { get: $util.oneOfGetter($oneOfFields = ["confidence"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new GroundednessResult instance using the specified properties. + * Creates a new SummarizationQualityResult instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GroundednessResult + * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityResult * @static - * @param {google.cloud.aiplatform.v1beta1.IGroundednessResult=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GroundednessResult} GroundednessResult instance + * @param {google.cloud.aiplatform.v1beta1.ISummarizationQualityResult=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.SummarizationQualityResult} SummarizationQualityResult instance */ - GroundednessResult.create = function create(properties) { - return new GroundednessResult(properties); + SummarizationQualityResult.create = function create(properties) { + return new SummarizationQualityResult(properties); }; /** - * Encodes the specified GroundednessResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundednessResult.verify|verify} messages. + * Encodes the specified SummarizationQualityResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SummarizationQualityResult.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GroundednessResult + * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityResult * @static - * @param {google.cloud.aiplatform.v1beta1.IGroundednessResult} message GroundednessResult message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ISummarizationQualityResult} message SummarizationQualityResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GroundednessResult.encode = function encode(message, writer) { + SummarizationQualityResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.score != null && Object.hasOwnProperty.call(message, "score")) @@ -342019,33 +373820,33 @@ }; /** - * Encodes the specified GroundednessResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GroundednessResult.verify|verify} messages. + * Encodes the specified SummarizationQualityResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SummarizationQualityResult.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GroundednessResult + * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityResult * @static - * @param {google.cloud.aiplatform.v1beta1.IGroundednessResult} message GroundednessResult message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ISummarizationQualityResult} message SummarizationQualityResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GroundednessResult.encodeDelimited = function encodeDelimited(message, writer) { + SummarizationQualityResult.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GroundednessResult message from the specified reader or buffer. + * Decodes a SummarizationQualityResult message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GroundednessResult + * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityResult * @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.GroundednessResult} GroundednessResult + * @returns {google.cloud.aiplatform.v1beta1.SummarizationQualityResult} SummarizationQualityResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GroundednessResult.decode = function decode(reader, length) { + SummarizationQualityResult.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.GroundednessResult(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.SummarizationQualityResult(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -342070,30 +373871,30 @@ }; /** - * Decodes a GroundednessResult message from the specified reader or buffer, length delimited. + * Decodes a SummarizationQualityResult message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GroundednessResult + * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GroundednessResult} GroundednessResult + * @returns {google.cloud.aiplatform.v1beta1.SummarizationQualityResult} SummarizationQualityResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GroundednessResult.decodeDelimited = function decodeDelimited(reader) { + SummarizationQualityResult.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GroundednessResult message. + * Verifies a SummarizationQualityResult message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GroundednessResult + * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityResult * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GroundednessResult.verify = function verify(message) { + SummarizationQualityResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -342114,17 +373915,17 @@ }; /** - * Creates a GroundednessResult message from a plain object. Also converts values to their respective internal types. + * Creates a SummarizationQualityResult message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GroundednessResult + * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityResult * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GroundednessResult} GroundednessResult + * @returns {google.cloud.aiplatform.v1beta1.SummarizationQualityResult} SummarizationQualityResult */ - GroundednessResult.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GroundednessResult) + SummarizationQualityResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.SummarizationQualityResult) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GroundednessResult(); + var message = new $root.google.cloud.aiplatform.v1beta1.SummarizationQualityResult(); if (object.score != null) message.score = Number(object.score); if (object.explanation != null) @@ -342135,15 +373936,15 @@ }; /** - * Creates a plain object from a GroundednessResult message. Also converts values to other types if specified. + * Creates a plain object from a SummarizationQualityResult message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GroundednessResult + * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityResult * @static - * @param {google.cloud.aiplatform.v1beta1.GroundednessResult} message GroundednessResult + * @param {google.cloud.aiplatform.v1beta1.SummarizationQualityResult} message SummarizationQualityResult * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GroundednessResult.toObject = function toObject(message, options) { + SummarizationQualityResult.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -342165,53 +373966,53 @@ }; /** - * Converts this GroundednessResult to JSON. + * Converts this SummarizationQualityResult to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GroundednessResult + * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityResult * @instance * @returns {Object.} JSON object */ - GroundednessResult.prototype.toJSON = function toJSON() { + SummarizationQualityResult.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GroundednessResult + * Gets the default type url for SummarizationQualityResult * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.GroundednessResult + * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityResult * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GroundednessResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SummarizationQualityResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GroundednessResult"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.SummarizationQualityResult"; }; - return GroundednessResult; + return SummarizationQualityResult; })(); - v1beta1.FulfillmentInput = (function() { + v1beta1.PairwiseSummarizationQualityInput = (function() { /** - * Properties of a FulfillmentInput. + * Properties of a PairwiseSummarizationQualityInput. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IFulfillmentInput - * @property {google.cloud.aiplatform.v1beta1.IFulfillmentSpec|null} [metricSpec] FulfillmentInput metricSpec - * @property {google.cloud.aiplatform.v1beta1.IFulfillmentInstance|null} [instance] FulfillmentInput instance + * @interface IPairwiseSummarizationQualityInput + * @property {google.cloud.aiplatform.v1beta1.IPairwiseSummarizationQualitySpec|null} [metricSpec] PairwiseSummarizationQualityInput metricSpec + * @property {google.cloud.aiplatform.v1beta1.IPairwiseSummarizationQualityInstance|null} [instance] PairwiseSummarizationQualityInput instance */ /** - * Constructs a new FulfillmentInput. + * Constructs a new PairwiseSummarizationQualityInput. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a FulfillmentInput. - * @implements IFulfillmentInput + * @classdesc Represents a PairwiseSummarizationQualityInput. + * @implements IPairwiseSummarizationQualityInput * @constructor - * @param {google.cloud.aiplatform.v1beta1.IFulfillmentInput=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IPairwiseSummarizationQualityInput=} [properties] Properties to set */ - function FulfillmentInput(properties) { + function PairwiseSummarizationQualityInput(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -342219,89 +374020,89 @@ } /** - * FulfillmentInput metricSpec. - * @member {google.cloud.aiplatform.v1beta1.IFulfillmentSpec|null|undefined} metricSpec - * @memberof google.cloud.aiplatform.v1beta1.FulfillmentInput + * PairwiseSummarizationQualityInput metricSpec. + * @member {google.cloud.aiplatform.v1beta1.IPairwiseSummarizationQualitySpec|null|undefined} metricSpec + * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInput * @instance */ - FulfillmentInput.prototype.metricSpec = null; + PairwiseSummarizationQualityInput.prototype.metricSpec = null; /** - * FulfillmentInput instance. - * @member {google.cloud.aiplatform.v1beta1.IFulfillmentInstance|null|undefined} instance - * @memberof google.cloud.aiplatform.v1beta1.FulfillmentInput + * PairwiseSummarizationQualityInput instance. + * @member {google.cloud.aiplatform.v1beta1.IPairwiseSummarizationQualityInstance|null|undefined} instance + * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInput * @instance */ - FulfillmentInput.prototype.instance = null; + PairwiseSummarizationQualityInput.prototype.instance = null; /** - * Creates a new FulfillmentInput instance using the specified properties. + * Creates a new PairwiseSummarizationQualityInput instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.FulfillmentInput + * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInput * @static - * @param {google.cloud.aiplatform.v1beta1.IFulfillmentInput=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.FulfillmentInput} FulfillmentInput instance + * @param {google.cloud.aiplatform.v1beta1.IPairwiseSummarizationQualityInput=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInput} PairwiseSummarizationQualityInput instance */ - FulfillmentInput.create = function create(properties) { - return new FulfillmentInput(properties); + PairwiseSummarizationQualityInput.create = function create(properties) { + return new PairwiseSummarizationQualityInput(properties); }; /** - * Encodes the specified FulfillmentInput message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FulfillmentInput.verify|verify} messages. + * Encodes the specified PairwiseSummarizationQualityInput message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInput.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.FulfillmentInput + * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInput * @static - * @param {google.cloud.aiplatform.v1beta1.IFulfillmentInput} message FulfillmentInput message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPairwiseSummarizationQualityInput} message PairwiseSummarizationQualityInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FulfillmentInput.encode = function encode(message, writer) { + PairwiseSummarizationQualityInput.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.metricSpec != null && Object.hasOwnProperty.call(message, "metricSpec")) - $root.google.cloud.aiplatform.v1beta1.FulfillmentSpec.encode(message.metricSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualitySpec.encode(message.metricSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.instance != null && Object.hasOwnProperty.call(message, "instance")) - $root.google.cloud.aiplatform.v1beta1.FulfillmentInstance.encode(message.instance, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance.encode(message.instance, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified FulfillmentInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FulfillmentInput.verify|verify} messages. + * Encodes the specified PairwiseSummarizationQualityInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInput.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.FulfillmentInput + * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInput * @static - * @param {google.cloud.aiplatform.v1beta1.IFulfillmentInput} message FulfillmentInput message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPairwiseSummarizationQualityInput} message PairwiseSummarizationQualityInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FulfillmentInput.encodeDelimited = function encodeDelimited(message, writer) { + PairwiseSummarizationQualityInput.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FulfillmentInput message from the specified reader or buffer. + * Decodes a PairwiseSummarizationQualityInput message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.FulfillmentInput + * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInput * @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.FulfillmentInput} FulfillmentInput + * @returns {google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInput} PairwiseSummarizationQualityInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FulfillmentInput.decode = function decode(reader, length) { + PairwiseSummarizationQualityInput.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.FulfillmentInput(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInput(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.metricSpec = $root.google.cloud.aiplatform.v1beta1.FulfillmentSpec.decode(reader, reader.uint32()); + message.metricSpec = $root.google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualitySpec.decode(reader, reader.uint32()); break; } case 2: { - message.instance = $root.google.cloud.aiplatform.v1beta1.FulfillmentInstance.decode(reader, reader.uint32()); + message.instance = $root.google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance.decode(reader, reader.uint32()); break; } default: @@ -342313,39 +374114,39 @@ }; /** - * Decodes a FulfillmentInput message from the specified reader or buffer, length delimited. + * Decodes a PairwiseSummarizationQualityInput message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.FulfillmentInput + * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.FulfillmentInput} FulfillmentInput + * @returns {google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInput} PairwiseSummarizationQualityInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FulfillmentInput.decodeDelimited = function decodeDelimited(reader) { + PairwiseSummarizationQualityInput.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FulfillmentInput message. + * Verifies a PairwiseSummarizationQualityInput message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.FulfillmentInput + * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInput * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FulfillmentInput.verify = function verify(message) { + PairwiseSummarizationQualityInput.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) { - var error = $root.google.cloud.aiplatform.v1beta1.FulfillmentSpec.verify(message.metricSpec); + var error = $root.google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualitySpec.verify(message.metricSpec); if (error) return "metricSpec." + error; } if (message.instance != null && message.hasOwnProperty("instance")) { - var error = $root.google.cloud.aiplatform.v1beta1.FulfillmentInstance.verify(message.instance); + var error = $root.google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance.verify(message.instance); if (error) return "instance." + error; } @@ -342353,40 +374154,40 @@ }; /** - * Creates a FulfillmentInput message from a plain object. Also converts values to their respective internal types. + * Creates a PairwiseSummarizationQualityInput message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.FulfillmentInput + * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInput * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.FulfillmentInput} FulfillmentInput + * @returns {google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInput} PairwiseSummarizationQualityInput */ - FulfillmentInput.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.FulfillmentInput) + PairwiseSummarizationQualityInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInput) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.FulfillmentInput(); + var message = new $root.google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInput(); if (object.metricSpec != null) { if (typeof object.metricSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.FulfillmentInput.metricSpec: object expected"); - message.metricSpec = $root.google.cloud.aiplatform.v1beta1.FulfillmentSpec.fromObject(object.metricSpec); + throw TypeError(".google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInput.metricSpec: object expected"); + message.metricSpec = $root.google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualitySpec.fromObject(object.metricSpec); } if (object.instance != null) { if (typeof object.instance !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.FulfillmentInput.instance: object expected"); - message.instance = $root.google.cloud.aiplatform.v1beta1.FulfillmentInstance.fromObject(object.instance); + throw TypeError(".google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInput.instance: object expected"); + message.instance = $root.google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance.fromObject(object.instance); } return message; }; /** - * Creates a plain object from a FulfillmentInput message. Also converts values to other types if specified. + * Creates a plain object from a PairwiseSummarizationQualityInput message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.FulfillmentInput + * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInput * @static - * @param {google.cloud.aiplatform.v1beta1.FulfillmentInput} message FulfillmentInput + * @param {google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInput} message PairwiseSummarizationQualityInput * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FulfillmentInput.toObject = function toObject(message, options) { + PairwiseSummarizationQualityInput.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -342395,60 +374196,63 @@ object.instance = null; } if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) - object.metricSpec = $root.google.cloud.aiplatform.v1beta1.FulfillmentSpec.toObject(message.metricSpec, options); + object.metricSpec = $root.google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualitySpec.toObject(message.metricSpec, options); if (message.instance != null && message.hasOwnProperty("instance")) - object.instance = $root.google.cloud.aiplatform.v1beta1.FulfillmentInstance.toObject(message.instance, options); + object.instance = $root.google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance.toObject(message.instance, options); return object; }; /** - * Converts this FulfillmentInput to JSON. + * Converts this PairwiseSummarizationQualityInput to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.FulfillmentInput + * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInput * @instance * @returns {Object.} JSON object */ - FulfillmentInput.prototype.toJSON = function toJSON() { + PairwiseSummarizationQualityInput.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for FulfillmentInput + * Gets the default type url for PairwiseSummarizationQualityInput * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.FulfillmentInput + * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInput * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - FulfillmentInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PairwiseSummarizationQualityInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.FulfillmentInput"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInput"; }; - return FulfillmentInput; + return PairwiseSummarizationQualityInput; })(); - v1beta1.FulfillmentInstance = (function() { + v1beta1.PairwiseSummarizationQualityInstance = (function() { /** - * Properties of a FulfillmentInstance. + * Properties of a PairwiseSummarizationQualityInstance. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IFulfillmentInstance - * @property {string|null} [prediction] FulfillmentInstance prediction - * @property {string|null} [instruction] FulfillmentInstance instruction + * @interface IPairwiseSummarizationQualityInstance + * @property {string|null} [prediction] PairwiseSummarizationQualityInstance prediction + * @property {string|null} [baselinePrediction] PairwiseSummarizationQualityInstance baselinePrediction + * @property {string|null} [reference] PairwiseSummarizationQualityInstance reference + * @property {string|null} [context] PairwiseSummarizationQualityInstance context + * @property {string|null} [instruction] PairwiseSummarizationQualityInstance instruction */ /** - * Constructs a new FulfillmentInstance. + * Constructs a new PairwiseSummarizationQualityInstance. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a FulfillmentInstance. - * @implements IFulfillmentInstance + * @classdesc Represents a PairwiseSummarizationQualityInstance. + * @implements IPairwiseSummarizationQualityInstance * @constructor - * @param {google.cloud.aiplatform.v1beta1.IFulfillmentInstance=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IPairwiseSummarizationQualityInstance=} [properties] Properties to set */ - function FulfillmentInstance(properties) { + function PairwiseSummarizationQualityInstance(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -342456,105 +374260,168 @@ } /** - * FulfillmentInstance prediction. + * PairwiseSummarizationQualityInstance prediction. * @member {string|null|undefined} prediction - * @memberof google.cloud.aiplatform.v1beta1.FulfillmentInstance + * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance * @instance */ - FulfillmentInstance.prototype.prediction = null; + PairwiseSummarizationQualityInstance.prototype.prediction = null; /** - * FulfillmentInstance instruction. + * PairwiseSummarizationQualityInstance baselinePrediction. + * @member {string|null|undefined} baselinePrediction + * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance + * @instance + */ + PairwiseSummarizationQualityInstance.prototype.baselinePrediction = null; + + /** + * PairwiseSummarizationQualityInstance reference. + * @member {string|null|undefined} reference + * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance + * @instance + */ + PairwiseSummarizationQualityInstance.prototype.reference = null; + + /** + * PairwiseSummarizationQualityInstance context. + * @member {string|null|undefined} context + * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance + * @instance + */ + PairwiseSummarizationQualityInstance.prototype.context = null; + + /** + * PairwiseSummarizationQualityInstance instruction. * @member {string|null|undefined} instruction - * @memberof google.cloud.aiplatform.v1beta1.FulfillmentInstance + * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance * @instance */ - FulfillmentInstance.prototype.instruction = null; + PairwiseSummarizationQualityInstance.prototype.instruction = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * FulfillmentInstance _prediction. + * PairwiseSummarizationQualityInstance _prediction. * @member {"prediction"|undefined} _prediction - * @memberof google.cloud.aiplatform.v1beta1.FulfillmentInstance + * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance * @instance */ - Object.defineProperty(FulfillmentInstance.prototype, "_prediction", { + Object.defineProperty(PairwiseSummarizationQualityInstance.prototype, "_prediction", { get: $util.oneOfGetter($oneOfFields = ["prediction"]), set: $util.oneOfSetter($oneOfFields) }); /** - * FulfillmentInstance _instruction. + * PairwiseSummarizationQualityInstance _baselinePrediction. + * @member {"baselinePrediction"|undefined} _baselinePrediction + * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance + * @instance + */ + Object.defineProperty(PairwiseSummarizationQualityInstance.prototype, "_baselinePrediction", { + get: $util.oneOfGetter($oneOfFields = ["baselinePrediction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * PairwiseSummarizationQualityInstance _reference. + * @member {"reference"|undefined} _reference + * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance + * @instance + */ + Object.defineProperty(PairwiseSummarizationQualityInstance.prototype, "_reference", { + get: $util.oneOfGetter($oneOfFields = ["reference"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * PairwiseSummarizationQualityInstance _context. + * @member {"context"|undefined} _context + * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance + * @instance + */ + Object.defineProperty(PairwiseSummarizationQualityInstance.prototype, "_context", { + get: $util.oneOfGetter($oneOfFields = ["context"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * PairwiseSummarizationQualityInstance _instruction. * @member {"instruction"|undefined} _instruction - * @memberof google.cloud.aiplatform.v1beta1.FulfillmentInstance + * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance * @instance */ - Object.defineProperty(FulfillmentInstance.prototype, "_instruction", { + Object.defineProperty(PairwiseSummarizationQualityInstance.prototype, "_instruction", { get: $util.oneOfGetter($oneOfFields = ["instruction"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new FulfillmentInstance instance using the specified properties. + * Creates a new PairwiseSummarizationQualityInstance instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.FulfillmentInstance + * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance * @static - * @param {google.cloud.aiplatform.v1beta1.IFulfillmentInstance=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.FulfillmentInstance} FulfillmentInstance instance + * @param {google.cloud.aiplatform.v1beta1.IPairwiseSummarizationQualityInstance=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance} PairwiseSummarizationQualityInstance instance */ - FulfillmentInstance.create = function create(properties) { - return new FulfillmentInstance(properties); + PairwiseSummarizationQualityInstance.create = function create(properties) { + return new PairwiseSummarizationQualityInstance(properties); }; /** - * Encodes the specified FulfillmentInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FulfillmentInstance.verify|verify} messages. + * Encodes the specified PairwiseSummarizationQualityInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.FulfillmentInstance + * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance * @static - * @param {google.cloud.aiplatform.v1beta1.IFulfillmentInstance} message FulfillmentInstance message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPairwiseSummarizationQualityInstance} message PairwiseSummarizationQualityInstance message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FulfillmentInstance.encode = function encode(message, writer) { + PairwiseSummarizationQualityInstance.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.prediction != null && Object.hasOwnProperty.call(message, "prediction")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.prediction); + if (message.baselinePrediction != null && Object.hasOwnProperty.call(message, "baselinePrediction")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.baselinePrediction); + if (message.reference != null && Object.hasOwnProperty.call(message, "reference")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.reference); + if (message.context != null && Object.hasOwnProperty.call(message, "context")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.context); if (message.instruction != null && Object.hasOwnProperty.call(message, "instruction")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.instruction); + writer.uint32(/* id 5, wireType 2 =*/42).string(message.instruction); return writer; }; /** - * Encodes the specified FulfillmentInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FulfillmentInstance.verify|verify} messages. + * Encodes the specified PairwiseSummarizationQualityInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.FulfillmentInstance + * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance * @static - * @param {google.cloud.aiplatform.v1beta1.IFulfillmentInstance} message FulfillmentInstance message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPairwiseSummarizationQualityInstance} message PairwiseSummarizationQualityInstance message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FulfillmentInstance.encodeDelimited = function encodeDelimited(message, writer) { + PairwiseSummarizationQualityInstance.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FulfillmentInstance message from the specified reader or buffer. + * Decodes a PairwiseSummarizationQualityInstance message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.FulfillmentInstance + * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance * @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.FulfillmentInstance} FulfillmentInstance + * @returns {google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance} PairwiseSummarizationQualityInstance * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FulfillmentInstance.decode = function decode(reader, length) { + PairwiseSummarizationQualityInstance.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.FulfillmentInstance(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -342563,6 +374430,18 @@ break; } case 2: { + message.baselinePrediction = reader.string(); + break; + } + case 3: { + message.reference = reader.string(); + break; + } + case 4: { + message.context = reader.string(); + break; + } + case 5: { message.instruction = reader.string(); break; } @@ -342575,30 +374454,30 @@ }; /** - * Decodes a FulfillmentInstance message from the specified reader or buffer, length delimited. + * Decodes a PairwiseSummarizationQualityInstance message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.FulfillmentInstance + * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.FulfillmentInstance} FulfillmentInstance + * @returns {google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance} PairwiseSummarizationQualityInstance * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FulfillmentInstance.decodeDelimited = function decodeDelimited(reader) { + PairwiseSummarizationQualityInstance.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FulfillmentInstance message. + * Verifies a PairwiseSummarizationQualityInstance message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.FulfillmentInstance + * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FulfillmentInstance.verify = function verify(message) { + PairwiseSummarizationQualityInstance.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -342607,6 +374486,21 @@ if (!$util.isString(message.prediction)) return "prediction: string expected"; } + if (message.baselinePrediction != null && message.hasOwnProperty("baselinePrediction")) { + properties._baselinePrediction = 1; + if (!$util.isString(message.baselinePrediction)) + return "baselinePrediction: string expected"; + } + if (message.reference != null && message.hasOwnProperty("reference")) { + properties._reference = 1; + if (!$util.isString(message.reference)) + return "reference: string expected"; + } + if (message.context != null && message.hasOwnProperty("context")) { + properties._context = 1; + if (!$util.isString(message.context)) + return "context: string expected"; + } if (message.instruction != null && message.hasOwnProperty("instruction")) { properties._instruction = 1; if (!$util.isString(message.instruction)) @@ -342616,34 +374510,40 @@ }; /** - * Creates a FulfillmentInstance message from a plain object. Also converts values to their respective internal types. + * Creates a PairwiseSummarizationQualityInstance message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.FulfillmentInstance + * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.FulfillmentInstance} FulfillmentInstance + * @returns {google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance} PairwiseSummarizationQualityInstance */ - FulfillmentInstance.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.FulfillmentInstance) + PairwiseSummarizationQualityInstance.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.FulfillmentInstance(); + var message = new $root.google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance(); if (object.prediction != null) message.prediction = String(object.prediction); + if (object.baselinePrediction != null) + message.baselinePrediction = String(object.baselinePrediction); + if (object.reference != null) + message.reference = String(object.reference); + if (object.context != null) + message.context = String(object.context); if (object.instruction != null) message.instruction = String(object.instruction); return message; }; /** - * Creates a plain object from a FulfillmentInstance message. Also converts values to other types if specified. + * Creates a plain object from a PairwiseSummarizationQualityInstance message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.FulfillmentInstance + * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance * @static - * @param {google.cloud.aiplatform.v1beta1.FulfillmentInstance} message FulfillmentInstance + * @param {google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance} message PairwiseSummarizationQualityInstance * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FulfillmentInstance.toObject = function toObject(message, options) { + PairwiseSummarizationQualityInstance.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -342652,6 +374552,21 @@ if (options.oneofs) object._prediction = "prediction"; } + if (message.baselinePrediction != null && message.hasOwnProperty("baselinePrediction")) { + object.baselinePrediction = message.baselinePrediction; + if (options.oneofs) + object._baselinePrediction = "baselinePrediction"; + } + if (message.reference != null && message.hasOwnProperty("reference")) { + object.reference = message.reference; + if (options.oneofs) + object._reference = "reference"; + } + if (message.context != null && message.hasOwnProperty("context")) { + object.context = message.context; + if (options.oneofs) + object._context = "context"; + } if (message.instruction != null && message.hasOwnProperty("instruction")) { object.instruction = message.instruction; if (options.oneofs) @@ -342661,52 +374576,53 @@ }; /** - * Converts this FulfillmentInstance to JSON. + * Converts this PairwiseSummarizationQualityInstance to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.FulfillmentInstance + * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance * @instance * @returns {Object.} JSON object */ - FulfillmentInstance.prototype.toJSON = function toJSON() { + PairwiseSummarizationQualityInstance.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for FulfillmentInstance + * Gets the default type url for PairwiseSummarizationQualityInstance * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.FulfillmentInstance + * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - FulfillmentInstance.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PairwiseSummarizationQualityInstance.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.FulfillmentInstance"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance"; }; - return FulfillmentInstance; + return PairwiseSummarizationQualityInstance; })(); - v1beta1.FulfillmentSpec = (function() { + v1beta1.PairwiseSummarizationQualitySpec = (function() { /** - * Properties of a FulfillmentSpec. + * Properties of a PairwiseSummarizationQualitySpec. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IFulfillmentSpec - * @property {number|null} [version] FulfillmentSpec version + * @interface IPairwiseSummarizationQualitySpec + * @property {boolean|null} [useReference] PairwiseSummarizationQualitySpec useReference + * @property {number|null} [version] PairwiseSummarizationQualitySpec version */ /** - * Constructs a new FulfillmentSpec. + * Constructs a new PairwiseSummarizationQualitySpec. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a FulfillmentSpec. - * @implements IFulfillmentSpec + * @classdesc Represents a PairwiseSummarizationQualitySpec. + * @implements IPairwiseSummarizationQualitySpec * @constructor - * @param {google.cloud.aiplatform.v1beta1.IFulfillmentSpec=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IPairwiseSummarizationQualitySpec=} [properties] Properties to set */ - function FulfillmentSpec(properties) { + function PairwiseSummarizationQualitySpec(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -342714,74 +374630,88 @@ } /** - * FulfillmentSpec version. + * PairwiseSummarizationQualitySpec useReference. + * @member {boolean} useReference + * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualitySpec + * @instance + */ + PairwiseSummarizationQualitySpec.prototype.useReference = false; + + /** + * PairwiseSummarizationQualitySpec version. * @member {number} version - * @memberof google.cloud.aiplatform.v1beta1.FulfillmentSpec + * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualitySpec * @instance */ - FulfillmentSpec.prototype.version = 0; + PairwiseSummarizationQualitySpec.prototype.version = 0; /** - * Creates a new FulfillmentSpec instance using the specified properties. + * Creates a new PairwiseSummarizationQualitySpec instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.FulfillmentSpec + * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualitySpec * @static - * @param {google.cloud.aiplatform.v1beta1.IFulfillmentSpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.FulfillmentSpec} FulfillmentSpec instance + * @param {google.cloud.aiplatform.v1beta1.IPairwiseSummarizationQualitySpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualitySpec} PairwiseSummarizationQualitySpec instance */ - FulfillmentSpec.create = function create(properties) { - return new FulfillmentSpec(properties); + PairwiseSummarizationQualitySpec.create = function create(properties) { + return new PairwiseSummarizationQualitySpec(properties); }; /** - * Encodes the specified FulfillmentSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FulfillmentSpec.verify|verify} messages. + * Encodes the specified PairwiseSummarizationQualitySpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualitySpec.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.FulfillmentSpec + * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualitySpec * @static - * @param {google.cloud.aiplatform.v1beta1.IFulfillmentSpec} message FulfillmentSpec message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPairwiseSummarizationQualitySpec} message PairwiseSummarizationQualitySpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FulfillmentSpec.encode = function encode(message, writer) { + PairwiseSummarizationQualitySpec.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.useReference != null && Object.hasOwnProperty.call(message, "useReference")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.useReference); if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.version); + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.version); return writer; }; /** - * Encodes the specified FulfillmentSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FulfillmentSpec.verify|verify} messages. + * Encodes the specified PairwiseSummarizationQualitySpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualitySpec.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.FulfillmentSpec + * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualitySpec * @static - * @param {google.cloud.aiplatform.v1beta1.IFulfillmentSpec} message FulfillmentSpec message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPairwiseSummarizationQualitySpec} message PairwiseSummarizationQualitySpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FulfillmentSpec.encodeDelimited = function encodeDelimited(message, writer) { + PairwiseSummarizationQualitySpec.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FulfillmentSpec message from the specified reader or buffer. + * Decodes a PairwiseSummarizationQualitySpec message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.FulfillmentSpec + * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualitySpec * @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.FulfillmentSpec} FulfillmentSpec + * @returns {google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualitySpec} PairwiseSummarizationQualitySpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FulfillmentSpec.decode = function decode(reader, length) { + PairwiseSummarizationQualitySpec.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.FulfillmentSpec(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualitySpec(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { + message.useReference = reader.bool(); + break; + } + case 2: { message.version = reader.int32(); break; } @@ -342794,32 +374724,35 @@ }; /** - * Decodes a FulfillmentSpec message from the specified reader or buffer, length delimited. + * Decodes a PairwiseSummarizationQualitySpec message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.FulfillmentSpec + * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualitySpec * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.FulfillmentSpec} FulfillmentSpec + * @returns {google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualitySpec} PairwiseSummarizationQualitySpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FulfillmentSpec.decodeDelimited = function decodeDelimited(reader) { + PairwiseSummarizationQualitySpec.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FulfillmentSpec message. + * Verifies a PairwiseSummarizationQualitySpec message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.FulfillmentSpec + * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualitySpec * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FulfillmentSpec.verify = function verify(message) { + PairwiseSummarizationQualitySpec.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.useReference != null && message.hasOwnProperty("useReference")) + if (typeof message.useReference !== "boolean") + return "useReference: boolean expected"; if (message.version != null && message.hasOwnProperty("version")) if (!$util.isInteger(message.version)) return "version: integer expected"; @@ -342827,91 +374760,97 @@ }; /** - * Creates a FulfillmentSpec message from a plain object. Also converts values to their respective internal types. + * Creates a PairwiseSummarizationQualitySpec message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.FulfillmentSpec + * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualitySpec * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.FulfillmentSpec} FulfillmentSpec + * @returns {google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualitySpec} PairwiseSummarizationQualitySpec */ - FulfillmentSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.FulfillmentSpec) + PairwiseSummarizationQualitySpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualitySpec) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.FulfillmentSpec(); + var message = new $root.google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualitySpec(); + if (object.useReference != null) + message.useReference = Boolean(object.useReference); if (object.version != null) message.version = object.version | 0; return message; }; /** - * Creates a plain object from a FulfillmentSpec message. Also converts values to other types if specified. + * Creates a plain object from a PairwiseSummarizationQualitySpec message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.FulfillmentSpec + * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualitySpec * @static - * @param {google.cloud.aiplatform.v1beta1.FulfillmentSpec} message FulfillmentSpec + * @param {google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualitySpec} message PairwiseSummarizationQualitySpec * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FulfillmentSpec.toObject = function toObject(message, options) { + PairwiseSummarizationQualitySpec.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { + object.useReference = false; object.version = 0; + } + if (message.useReference != null && message.hasOwnProperty("useReference")) + object.useReference = message.useReference; if (message.version != null && message.hasOwnProperty("version")) object.version = message.version; return object; }; /** - * Converts this FulfillmentSpec to JSON. + * Converts this PairwiseSummarizationQualitySpec to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.FulfillmentSpec + * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualitySpec * @instance * @returns {Object.} JSON object */ - FulfillmentSpec.prototype.toJSON = function toJSON() { + PairwiseSummarizationQualitySpec.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for FulfillmentSpec + * Gets the default type url for PairwiseSummarizationQualitySpec * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.FulfillmentSpec + * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualitySpec * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - FulfillmentSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PairwiseSummarizationQualitySpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.FulfillmentSpec"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualitySpec"; }; - return FulfillmentSpec; + return PairwiseSummarizationQualitySpec; })(); - v1beta1.FulfillmentResult = (function() { + v1beta1.PairwiseSummarizationQualityResult = (function() { /** - * Properties of a FulfillmentResult. + * Properties of a PairwiseSummarizationQualityResult. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IFulfillmentResult - * @property {number|null} [score] FulfillmentResult score - * @property {string|null} [explanation] FulfillmentResult explanation - * @property {number|null} [confidence] FulfillmentResult confidence + * @interface IPairwiseSummarizationQualityResult + * @property {google.cloud.aiplatform.v1beta1.PairwiseChoice|null} [pairwiseChoice] PairwiseSummarizationQualityResult pairwiseChoice + * @property {string|null} [explanation] PairwiseSummarizationQualityResult explanation + * @property {number|null} [confidence] PairwiseSummarizationQualityResult confidence */ /** - * Constructs a new FulfillmentResult. + * Constructs a new PairwiseSummarizationQualityResult. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a FulfillmentResult. - * @implements IFulfillmentResult + * @classdesc Represents a PairwiseSummarizationQualityResult. + * @implements IPairwiseSummarizationQualityResult * @constructor - * @param {google.cloud.aiplatform.v1beta1.IFulfillmentResult=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IPairwiseSummarizationQualityResult=} [properties] Properties to set */ - function FulfillmentResult(properties) { + function PairwiseSummarizationQualityResult(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -342919,80 +374858,69 @@ } /** - * FulfillmentResult score. - * @member {number|null|undefined} score - * @memberof google.cloud.aiplatform.v1beta1.FulfillmentResult + * PairwiseSummarizationQualityResult pairwiseChoice. + * @member {google.cloud.aiplatform.v1beta1.PairwiseChoice} pairwiseChoice + * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityResult * @instance */ - FulfillmentResult.prototype.score = null; + PairwiseSummarizationQualityResult.prototype.pairwiseChoice = 0; /** - * FulfillmentResult explanation. + * PairwiseSummarizationQualityResult explanation. * @member {string} explanation - * @memberof google.cloud.aiplatform.v1beta1.FulfillmentResult + * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityResult * @instance */ - FulfillmentResult.prototype.explanation = ""; + PairwiseSummarizationQualityResult.prototype.explanation = ""; /** - * FulfillmentResult confidence. + * PairwiseSummarizationQualityResult confidence. * @member {number|null|undefined} confidence - * @memberof google.cloud.aiplatform.v1beta1.FulfillmentResult + * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityResult * @instance */ - FulfillmentResult.prototype.confidence = null; + PairwiseSummarizationQualityResult.prototype.confidence = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * FulfillmentResult _score. - * @member {"score"|undefined} _score - * @memberof google.cloud.aiplatform.v1beta1.FulfillmentResult - * @instance - */ - Object.defineProperty(FulfillmentResult.prototype, "_score", { - get: $util.oneOfGetter($oneOfFields = ["score"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * FulfillmentResult _confidence. + * PairwiseSummarizationQualityResult _confidence. * @member {"confidence"|undefined} _confidence - * @memberof google.cloud.aiplatform.v1beta1.FulfillmentResult + * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityResult * @instance */ - Object.defineProperty(FulfillmentResult.prototype, "_confidence", { + Object.defineProperty(PairwiseSummarizationQualityResult.prototype, "_confidence", { get: $util.oneOfGetter($oneOfFields = ["confidence"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new FulfillmentResult instance using the specified properties. + * Creates a new PairwiseSummarizationQualityResult instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.FulfillmentResult + * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityResult * @static - * @param {google.cloud.aiplatform.v1beta1.IFulfillmentResult=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.FulfillmentResult} FulfillmentResult instance + * @param {google.cloud.aiplatform.v1beta1.IPairwiseSummarizationQualityResult=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityResult} PairwiseSummarizationQualityResult instance */ - FulfillmentResult.create = function create(properties) { - return new FulfillmentResult(properties); + PairwiseSummarizationQualityResult.create = function create(properties) { + return new PairwiseSummarizationQualityResult(properties); }; /** - * Encodes the specified FulfillmentResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FulfillmentResult.verify|verify} messages. + * Encodes the specified PairwiseSummarizationQualityResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityResult.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.FulfillmentResult + * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityResult * @static - * @param {google.cloud.aiplatform.v1beta1.IFulfillmentResult} message FulfillmentResult message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPairwiseSummarizationQualityResult} message PairwiseSummarizationQualityResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FulfillmentResult.encode = function encode(message, writer) { + PairwiseSummarizationQualityResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.score != null && Object.hasOwnProperty.call(message, "score")) - writer.uint32(/* id 1, wireType 5 =*/13).float(message.score); + if (message.pairwiseChoice != null && Object.hasOwnProperty.call(message, "pairwiseChoice")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.pairwiseChoice); if (message.explanation != null && Object.hasOwnProperty.call(message, "explanation")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.explanation); if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) @@ -343001,38 +374929,38 @@ }; /** - * Encodes the specified FulfillmentResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FulfillmentResult.verify|verify} messages. + * Encodes the specified PairwiseSummarizationQualityResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityResult.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.FulfillmentResult + * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityResult * @static - * @param {google.cloud.aiplatform.v1beta1.IFulfillmentResult} message FulfillmentResult message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPairwiseSummarizationQualityResult} message PairwiseSummarizationQualityResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FulfillmentResult.encodeDelimited = function encodeDelimited(message, writer) { + PairwiseSummarizationQualityResult.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FulfillmentResult message from the specified reader or buffer. + * Decodes a PairwiseSummarizationQualityResult message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.FulfillmentResult + * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityResult * @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.FulfillmentResult} FulfillmentResult + * @returns {google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityResult} PairwiseSummarizationQualityResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FulfillmentResult.decode = function decode(reader, length) { + PairwiseSummarizationQualityResult.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.FulfillmentResult(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityResult(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.score = reader.float(); + message.pairwiseChoice = reader.int32(); break; } case 2: { @@ -343052,38 +374980,43 @@ }; /** - * Decodes a FulfillmentResult message from the specified reader or buffer, length delimited. + * Decodes a PairwiseSummarizationQualityResult message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.FulfillmentResult + * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.FulfillmentResult} FulfillmentResult + * @returns {google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityResult} PairwiseSummarizationQualityResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FulfillmentResult.decodeDelimited = function decodeDelimited(reader) { + PairwiseSummarizationQualityResult.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FulfillmentResult message. + * Verifies a PairwiseSummarizationQualityResult message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.FulfillmentResult + * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityResult * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FulfillmentResult.verify = function verify(message) { + PairwiseSummarizationQualityResult.verify = function verify(message) { if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.score != null && message.hasOwnProperty("score")) { - properties._score = 1; - if (typeof message.score !== "number") - return "score: number expected"; - } + return "object expected"; + var properties = {}; + if (message.pairwiseChoice != null && message.hasOwnProperty("pairwiseChoice")) + switch (message.pairwiseChoice) { + default: + return "pairwiseChoice: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } if (message.explanation != null && message.hasOwnProperty("explanation")) if (!$util.isString(message.explanation)) return "explanation: string expected"; @@ -343096,19 +375029,41 @@ }; /** - * Creates a FulfillmentResult message from a plain object. Also converts values to their respective internal types. + * Creates a PairwiseSummarizationQualityResult message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.FulfillmentResult + * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityResult * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.FulfillmentResult} FulfillmentResult + * @returns {google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityResult} PairwiseSummarizationQualityResult */ - FulfillmentResult.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.FulfillmentResult) + PairwiseSummarizationQualityResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityResult) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.FulfillmentResult(); - if (object.score != null) - message.score = Number(object.score); + var message = new $root.google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityResult(); + switch (object.pairwiseChoice) { + default: + if (typeof object.pairwiseChoice === "number") { + message.pairwiseChoice = object.pairwiseChoice; + break; + } + break; + case "PAIRWISE_CHOICE_UNSPECIFIED": + case 0: + message.pairwiseChoice = 0; + break; + case "BASELINE": + case 1: + message.pairwiseChoice = 1; + break; + case "CANDIDATE": + case 2: + message.pairwiseChoice = 2; + break; + case "TIE": + case 3: + message.pairwiseChoice = 3; + break; + } if (object.explanation != null) message.explanation = String(object.explanation); if (object.confidence != null) @@ -343117,25 +375072,24 @@ }; /** - * Creates a plain object from a FulfillmentResult message. Also converts values to other types if specified. + * Creates a plain object from a PairwiseSummarizationQualityResult message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.FulfillmentResult + * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityResult * @static - * @param {google.cloud.aiplatform.v1beta1.FulfillmentResult} message FulfillmentResult + * @param {google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityResult} message PairwiseSummarizationQualityResult * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FulfillmentResult.toObject = function toObject(message, options) { + PairwiseSummarizationQualityResult.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { + object.pairwiseChoice = options.enums === String ? "PAIRWISE_CHOICE_UNSPECIFIED" : 0; object.explanation = ""; - if (message.score != null && message.hasOwnProperty("score")) { - object.score = options.json && !isFinite(message.score) ? String(message.score) : message.score; - if (options.oneofs) - object._score = "score"; } + if (message.pairwiseChoice != null && message.hasOwnProperty("pairwiseChoice")) + object.pairwiseChoice = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.PairwiseChoice[message.pairwiseChoice] === undefined ? message.pairwiseChoice : $root.google.cloud.aiplatform.v1beta1.PairwiseChoice[message.pairwiseChoice] : message.pairwiseChoice; if (message.explanation != null && message.hasOwnProperty("explanation")) object.explanation = message.explanation; if (message.confidence != null && message.hasOwnProperty("confidence")) { @@ -343147,53 +375101,53 @@ }; /** - * Converts this FulfillmentResult to JSON. + * Converts this PairwiseSummarizationQualityResult to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.FulfillmentResult + * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityResult * @instance * @returns {Object.} JSON object */ - FulfillmentResult.prototype.toJSON = function toJSON() { + PairwiseSummarizationQualityResult.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for FulfillmentResult + * Gets the default type url for PairwiseSummarizationQualityResult * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.FulfillmentResult + * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityResult * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - FulfillmentResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PairwiseSummarizationQualityResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.FulfillmentResult"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityResult"; }; - return FulfillmentResult; + return PairwiseSummarizationQualityResult; })(); - v1beta1.SummarizationQualityInput = (function() { + v1beta1.SummarizationHelpfulnessInput = (function() { /** - * Properties of a SummarizationQualityInput. + * Properties of a SummarizationHelpfulnessInput. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ISummarizationQualityInput - * @property {google.cloud.aiplatform.v1beta1.ISummarizationQualitySpec|null} [metricSpec] SummarizationQualityInput metricSpec - * @property {google.cloud.aiplatform.v1beta1.ISummarizationQualityInstance|null} [instance] SummarizationQualityInput instance + * @interface ISummarizationHelpfulnessInput + * @property {google.cloud.aiplatform.v1beta1.ISummarizationHelpfulnessSpec|null} [metricSpec] SummarizationHelpfulnessInput metricSpec + * @property {google.cloud.aiplatform.v1beta1.ISummarizationHelpfulnessInstance|null} [instance] SummarizationHelpfulnessInput instance */ /** - * Constructs a new SummarizationQualityInput. + * Constructs a new SummarizationHelpfulnessInput. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a SummarizationQualityInput. - * @implements ISummarizationQualityInput + * @classdesc Represents a SummarizationHelpfulnessInput. + * @implements ISummarizationHelpfulnessInput * @constructor - * @param {google.cloud.aiplatform.v1beta1.ISummarizationQualityInput=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ISummarizationHelpfulnessInput=} [properties] Properties to set */ - function SummarizationQualityInput(properties) { + function SummarizationHelpfulnessInput(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -343201,89 +375155,89 @@ } /** - * SummarizationQualityInput metricSpec. - * @member {google.cloud.aiplatform.v1beta1.ISummarizationQualitySpec|null|undefined} metricSpec - * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityInput + * SummarizationHelpfulnessInput metricSpec. + * @member {google.cloud.aiplatform.v1beta1.ISummarizationHelpfulnessSpec|null|undefined} metricSpec + * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInput * @instance */ - SummarizationQualityInput.prototype.metricSpec = null; + SummarizationHelpfulnessInput.prototype.metricSpec = null; /** - * SummarizationQualityInput instance. - * @member {google.cloud.aiplatform.v1beta1.ISummarizationQualityInstance|null|undefined} instance - * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityInput + * SummarizationHelpfulnessInput instance. + * @member {google.cloud.aiplatform.v1beta1.ISummarizationHelpfulnessInstance|null|undefined} instance + * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInput * @instance */ - SummarizationQualityInput.prototype.instance = null; + SummarizationHelpfulnessInput.prototype.instance = null; /** - * Creates a new SummarizationQualityInput instance using the specified properties. + * Creates a new SummarizationHelpfulnessInput instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityInput + * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInput * @static - * @param {google.cloud.aiplatform.v1beta1.ISummarizationQualityInput=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.SummarizationQualityInput} SummarizationQualityInput instance + * @param {google.cloud.aiplatform.v1beta1.ISummarizationHelpfulnessInput=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInput} SummarizationHelpfulnessInput instance */ - SummarizationQualityInput.create = function create(properties) { - return new SummarizationQualityInput(properties); + SummarizationHelpfulnessInput.create = function create(properties) { + return new SummarizationHelpfulnessInput(properties); }; /** - * Encodes the specified SummarizationQualityInput message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SummarizationQualityInput.verify|verify} messages. + * Encodes the specified SummarizationHelpfulnessInput message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInput.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityInput + * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInput * @static - * @param {google.cloud.aiplatform.v1beta1.ISummarizationQualityInput} message SummarizationQualityInput message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ISummarizationHelpfulnessInput} message SummarizationHelpfulnessInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SummarizationQualityInput.encode = function encode(message, writer) { + SummarizationHelpfulnessInput.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.metricSpec != null && Object.hasOwnProperty.call(message, "metricSpec")) - $root.google.cloud.aiplatform.v1beta1.SummarizationQualitySpec.encode(message.metricSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessSpec.encode(message.metricSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.instance != null && Object.hasOwnProperty.call(message, "instance")) - $root.google.cloud.aiplatform.v1beta1.SummarizationQualityInstance.encode(message.instance, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance.encode(message.instance, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified SummarizationQualityInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SummarizationQualityInput.verify|verify} messages. + * Encodes the specified SummarizationHelpfulnessInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInput.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityInput + * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInput * @static - * @param {google.cloud.aiplatform.v1beta1.ISummarizationQualityInput} message SummarizationQualityInput message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ISummarizationHelpfulnessInput} message SummarizationHelpfulnessInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SummarizationQualityInput.encodeDelimited = function encodeDelimited(message, writer) { + SummarizationHelpfulnessInput.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SummarizationQualityInput message from the specified reader or buffer. + * Decodes a SummarizationHelpfulnessInput message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityInput + * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInput * @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.SummarizationQualityInput} SummarizationQualityInput + * @returns {google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInput} SummarizationHelpfulnessInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SummarizationQualityInput.decode = function decode(reader, length) { + SummarizationHelpfulnessInput.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.SummarizationQualityInput(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInput(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.metricSpec = $root.google.cloud.aiplatform.v1beta1.SummarizationQualitySpec.decode(reader, reader.uint32()); + message.metricSpec = $root.google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessSpec.decode(reader, reader.uint32()); break; } case 2: { - message.instance = $root.google.cloud.aiplatform.v1beta1.SummarizationQualityInstance.decode(reader, reader.uint32()); + message.instance = $root.google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance.decode(reader, reader.uint32()); break; } default: @@ -343295,39 +375249,39 @@ }; /** - * Decodes a SummarizationQualityInput message from the specified reader or buffer, length delimited. + * Decodes a SummarizationHelpfulnessInput message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityInput + * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.SummarizationQualityInput} SummarizationQualityInput + * @returns {google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInput} SummarizationHelpfulnessInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SummarizationQualityInput.decodeDelimited = function decodeDelimited(reader) { + SummarizationHelpfulnessInput.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SummarizationQualityInput message. + * Verifies a SummarizationHelpfulnessInput message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityInput + * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInput * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SummarizationQualityInput.verify = function verify(message) { + SummarizationHelpfulnessInput.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) { - var error = $root.google.cloud.aiplatform.v1beta1.SummarizationQualitySpec.verify(message.metricSpec); + var error = $root.google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessSpec.verify(message.metricSpec); if (error) return "metricSpec." + error; } if (message.instance != null && message.hasOwnProperty("instance")) { - var error = $root.google.cloud.aiplatform.v1beta1.SummarizationQualityInstance.verify(message.instance); + var error = $root.google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance.verify(message.instance); if (error) return "instance." + error; } @@ -343335,40 +375289,40 @@ }; /** - * Creates a SummarizationQualityInput message from a plain object. Also converts values to their respective internal types. + * Creates a SummarizationHelpfulnessInput message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityInput + * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInput * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.SummarizationQualityInput} SummarizationQualityInput + * @returns {google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInput} SummarizationHelpfulnessInput */ - SummarizationQualityInput.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.SummarizationQualityInput) + SummarizationHelpfulnessInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInput) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.SummarizationQualityInput(); + var message = new $root.google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInput(); if (object.metricSpec != null) { if (typeof object.metricSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.SummarizationQualityInput.metricSpec: object expected"); - message.metricSpec = $root.google.cloud.aiplatform.v1beta1.SummarizationQualitySpec.fromObject(object.metricSpec); + throw TypeError(".google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInput.metricSpec: object expected"); + message.metricSpec = $root.google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessSpec.fromObject(object.metricSpec); } if (object.instance != null) { if (typeof object.instance !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.SummarizationQualityInput.instance: object expected"); - message.instance = $root.google.cloud.aiplatform.v1beta1.SummarizationQualityInstance.fromObject(object.instance); + throw TypeError(".google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInput.instance: object expected"); + message.instance = $root.google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance.fromObject(object.instance); } return message; }; /** - * Creates a plain object from a SummarizationQualityInput message. Also converts values to other types if specified. + * Creates a plain object from a SummarizationHelpfulnessInput message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityInput + * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInput * @static - * @param {google.cloud.aiplatform.v1beta1.SummarizationQualityInput} message SummarizationQualityInput + * @param {google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInput} message SummarizationHelpfulnessInput * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SummarizationQualityInput.toObject = function toObject(message, options) { + SummarizationHelpfulnessInput.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -343377,62 +375331,62 @@ object.instance = null; } if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) - object.metricSpec = $root.google.cloud.aiplatform.v1beta1.SummarizationQualitySpec.toObject(message.metricSpec, options); + object.metricSpec = $root.google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessSpec.toObject(message.metricSpec, options); if (message.instance != null && message.hasOwnProperty("instance")) - object.instance = $root.google.cloud.aiplatform.v1beta1.SummarizationQualityInstance.toObject(message.instance, options); + object.instance = $root.google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance.toObject(message.instance, options); return object; }; /** - * Converts this SummarizationQualityInput to JSON. + * Converts this SummarizationHelpfulnessInput to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityInput + * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInput * @instance * @returns {Object.} JSON object */ - SummarizationQualityInput.prototype.toJSON = function toJSON() { + SummarizationHelpfulnessInput.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SummarizationQualityInput + * Gets the default type url for SummarizationHelpfulnessInput * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityInput + * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInput * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SummarizationQualityInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SummarizationHelpfulnessInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.SummarizationQualityInput"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInput"; }; - return SummarizationQualityInput; + return SummarizationHelpfulnessInput; })(); - v1beta1.SummarizationQualityInstance = (function() { + v1beta1.SummarizationHelpfulnessInstance = (function() { /** - * Properties of a SummarizationQualityInstance. + * Properties of a SummarizationHelpfulnessInstance. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ISummarizationQualityInstance - * @property {string|null} [prediction] SummarizationQualityInstance prediction - * @property {string|null} [reference] SummarizationQualityInstance reference - * @property {string|null} [context] SummarizationQualityInstance context - * @property {string|null} [instruction] SummarizationQualityInstance instruction + * @interface ISummarizationHelpfulnessInstance + * @property {string|null} [prediction] SummarizationHelpfulnessInstance prediction + * @property {string|null} [reference] SummarizationHelpfulnessInstance reference + * @property {string|null} [context] SummarizationHelpfulnessInstance context + * @property {string|null} [instruction] SummarizationHelpfulnessInstance instruction */ /** - * Constructs a new SummarizationQualityInstance. + * Constructs a new SummarizationHelpfulnessInstance. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a SummarizationQualityInstance. - * @implements ISummarizationQualityInstance + * @classdesc Represents a SummarizationHelpfulnessInstance. + * @implements ISummarizationHelpfulnessInstance * @constructor - * @param {google.cloud.aiplatform.v1beta1.ISummarizationQualityInstance=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ISummarizationHelpfulnessInstance=} [properties] Properties to set */ - function SummarizationQualityInstance(properties) { + function SummarizationHelpfulnessInstance(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -343440,106 +375394,106 @@ } /** - * SummarizationQualityInstance prediction. + * SummarizationHelpfulnessInstance prediction. * @member {string|null|undefined} prediction - * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance * @instance */ - SummarizationQualityInstance.prototype.prediction = null; + SummarizationHelpfulnessInstance.prototype.prediction = null; /** - * SummarizationQualityInstance reference. + * SummarizationHelpfulnessInstance reference. * @member {string|null|undefined} reference - * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance * @instance */ - SummarizationQualityInstance.prototype.reference = null; + SummarizationHelpfulnessInstance.prototype.reference = null; /** - * SummarizationQualityInstance context. + * SummarizationHelpfulnessInstance context. * @member {string|null|undefined} context - * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance * @instance */ - SummarizationQualityInstance.prototype.context = null; + SummarizationHelpfulnessInstance.prototype.context = null; /** - * SummarizationQualityInstance instruction. + * SummarizationHelpfulnessInstance instruction. * @member {string|null|undefined} instruction - * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance * @instance */ - SummarizationQualityInstance.prototype.instruction = null; + SummarizationHelpfulnessInstance.prototype.instruction = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * SummarizationQualityInstance _prediction. + * SummarizationHelpfulnessInstance _prediction. * @member {"prediction"|undefined} _prediction - * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance * @instance */ - Object.defineProperty(SummarizationQualityInstance.prototype, "_prediction", { + Object.defineProperty(SummarizationHelpfulnessInstance.prototype, "_prediction", { get: $util.oneOfGetter($oneOfFields = ["prediction"]), set: $util.oneOfSetter($oneOfFields) }); /** - * SummarizationQualityInstance _reference. + * SummarizationHelpfulnessInstance _reference. * @member {"reference"|undefined} _reference - * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance * @instance */ - Object.defineProperty(SummarizationQualityInstance.prototype, "_reference", { + Object.defineProperty(SummarizationHelpfulnessInstance.prototype, "_reference", { get: $util.oneOfGetter($oneOfFields = ["reference"]), set: $util.oneOfSetter($oneOfFields) }); /** - * SummarizationQualityInstance _context. + * SummarizationHelpfulnessInstance _context. * @member {"context"|undefined} _context - * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance * @instance */ - Object.defineProperty(SummarizationQualityInstance.prototype, "_context", { + Object.defineProperty(SummarizationHelpfulnessInstance.prototype, "_context", { get: $util.oneOfGetter($oneOfFields = ["context"]), set: $util.oneOfSetter($oneOfFields) }); /** - * SummarizationQualityInstance _instruction. + * SummarizationHelpfulnessInstance _instruction. * @member {"instruction"|undefined} _instruction - * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance * @instance */ - Object.defineProperty(SummarizationQualityInstance.prototype, "_instruction", { + Object.defineProperty(SummarizationHelpfulnessInstance.prototype, "_instruction", { get: $util.oneOfGetter($oneOfFields = ["instruction"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new SummarizationQualityInstance instance using the specified properties. + * Creates a new SummarizationHelpfulnessInstance instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance * @static - * @param {google.cloud.aiplatform.v1beta1.ISummarizationQualityInstance=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.SummarizationQualityInstance} SummarizationQualityInstance instance + * @param {google.cloud.aiplatform.v1beta1.ISummarizationHelpfulnessInstance=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance} SummarizationHelpfulnessInstance instance */ - SummarizationQualityInstance.create = function create(properties) { - return new SummarizationQualityInstance(properties); + SummarizationHelpfulnessInstance.create = function create(properties) { + return new SummarizationHelpfulnessInstance(properties); }; /** - * Encodes the specified SummarizationQualityInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SummarizationQualityInstance.verify|verify} messages. + * Encodes the specified SummarizationHelpfulnessInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance * @static - * @param {google.cloud.aiplatform.v1beta1.ISummarizationQualityInstance} message SummarizationQualityInstance message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ISummarizationHelpfulnessInstance} message SummarizationHelpfulnessInstance message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SummarizationQualityInstance.encode = function encode(message, writer) { + SummarizationHelpfulnessInstance.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.prediction != null && Object.hasOwnProperty.call(message, "prediction")) @@ -343554,33 +375508,33 @@ }; /** - * Encodes the specified SummarizationQualityInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SummarizationQualityInstance.verify|verify} messages. + * Encodes the specified SummarizationHelpfulnessInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance * @static - * @param {google.cloud.aiplatform.v1beta1.ISummarizationQualityInstance} message SummarizationQualityInstance message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ISummarizationHelpfulnessInstance} message SummarizationHelpfulnessInstance message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SummarizationQualityInstance.encodeDelimited = function encodeDelimited(message, writer) { + SummarizationHelpfulnessInstance.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SummarizationQualityInstance message from the specified reader or buffer. + * Decodes a SummarizationHelpfulnessInstance message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance * @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.SummarizationQualityInstance} SummarizationQualityInstance + * @returns {google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance} SummarizationHelpfulnessInstance * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SummarizationQualityInstance.decode = function decode(reader, length) { + SummarizationHelpfulnessInstance.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.SummarizationQualityInstance(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -343609,30 +375563,30 @@ }; /** - * Decodes a SummarizationQualityInstance message from the specified reader or buffer, length delimited. + * Decodes a SummarizationHelpfulnessInstance message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.SummarizationQualityInstance} SummarizationQualityInstance + * @returns {google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance} SummarizationHelpfulnessInstance * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SummarizationQualityInstance.decodeDelimited = function decodeDelimited(reader) { + SummarizationHelpfulnessInstance.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SummarizationQualityInstance message. + * Verifies a SummarizationHelpfulnessInstance message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SummarizationQualityInstance.verify = function verify(message) { + SummarizationHelpfulnessInstance.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -343660,17 +375614,17 @@ }; /** - * Creates a SummarizationQualityInstance message from a plain object. Also converts values to their respective internal types. + * Creates a SummarizationHelpfulnessInstance message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.SummarizationQualityInstance} SummarizationQualityInstance + * @returns {google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance} SummarizationHelpfulnessInstance */ - SummarizationQualityInstance.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.SummarizationQualityInstance) + SummarizationHelpfulnessInstance.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.SummarizationQualityInstance(); + var message = new $root.google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance(); if (object.prediction != null) message.prediction = String(object.prediction); if (object.reference != null) @@ -343683,15 +375637,15 @@ }; /** - * Creates a plain object from a SummarizationQualityInstance message. Also converts values to other types if specified. + * Creates a plain object from a SummarizationHelpfulnessInstance message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance * @static - * @param {google.cloud.aiplatform.v1beta1.SummarizationQualityInstance} message SummarizationQualityInstance + * @param {google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance} message SummarizationHelpfulnessInstance * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SummarizationQualityInstance.toObject = function toObject(message, options) { + SummarizationHelpfulnessInstance.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -343719,53 +375673,53 @@ }; /** - * Converts this SummarizationQualityInstance to JSON. + * Converts this SummarizationHelpfulnessInstance to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance * @instance * @returns {Object.} JSON object */ - SummarizationQualityInstance.prototype.toJSON = function toJSON() { + SummarizationHelpfulnessInstance.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SummarizationQualityInstance + * Gets the default type url for SummarizationHelpfulnessInstance * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SummarizationQualityInstance.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SummarizationHelpfulnessInstance.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.SummarizationQualityInstance"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance"; }; - return SummarizationQualityInstance; + return SummarizationHelpfulnessInstance; })(); - v1beta1.SummarizationQualitySpec = (function() { + v1beta1.SummarizationHelpfulnessSpec = (function() { /** - * Properties of a SummarizationQualitySpec. + * Properties of a SummarizationHelpfulnessSpec. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ISummarizationQualitySpec - * @property {boolean|null} [useReference] SummarizationQualitySpec useReference - * @property {number|null} [version] SummarizationQualitySpec version + * @interface ISummarizationHelpfulnessSpec + * @property {boolean|null} [useReference] SummarizationHelpfulnessSpec useReference + * @property {number|null} [version] SummarizationHelpfulnessSpec version */ /** - * Constructs a new SummarizationQualitySpec. + * Constructs a new SummarizationHelpfulnessSpec. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a SummarizationQualitySpec. - * @implements ISummarizationQualitySpec + * @classdesc Represents a SummarizationHelpfulnessSpec. + * @implements ISummarizationHelpfulnessSpec * @constructor - * @param {google.cloud.aiplatform.v1beta1.ISummarizationQualitySpec=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ISummarizationHelpfulnessSpec=} [properties] Properties to set */ - function SummarizationQualitySpec(properties) { + function SummarizationHelpfulnessSpec(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -343773,43 +375727,43 @@ } /** - * SummarizationQualitySpec useReference. + * SummarizationHelpfulnessSpec useReference. * @member {boolean} useReference - * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualitySpec + * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessSpec * @instance */ - SummarizationQualitySpec.prototype.useReference = false; + SummarizationHelpfulnessSpec.prototype.useReference = false; /** - * SummarizationQualitySpec version. + * SummarizationHelpfulnessSpec version. * @member {number} version - * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualitySpec + * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessSpec * @instance */ - SummarizationQualitySpec.prototype.version = 0; + SummarizationHelpfulnessSpec.prototype.version = 0; /** - * Creates a new SummarizationQualitySpec instance using the specified properties. + * Creates a new SummarizationHelpfulnessSpec instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualitySpec + * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessSpec * @static - * @param {google.cloud.aiplatform.v1beta1.ISummarizationQualitySpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.SummarizationQualitySpec} SummarizationQualitySpec instance + * @param {google.cloud.aiplatform.v1beta1.ISummarizationHelpfulnessSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessSpec} SummarizationHelpfulnessSpec instance */ - SummarizationQualitySpec.create = function create(properties) { - return new SummarizationQualitySpec(properties); + SummarizationHelpfulnessSpec.create = function create(properties) { + return new SummarizationHelpfulnessSpec(properties); }; /** - * Encodes the specified SummarizationQualitySpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SummarizationQualitySpec.verify|verify} messages. + * Encodes the specified SummarizationHelpfulnessSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessSpec.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualitySpec + * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessSpec * @static - * @param {google.cloud.aiplatform.v1beta1.ISummarizationQualitySpec} message SummarizationQualitySpec message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ISummarizationHelpfulnessSpec} message SummarizationHelpfulnessSpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SummarizationQualitySpec.encode = function encode(message, writer) { + SummarizationHelpfulnessSpec.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.useReference != null && Object.hasOwnProperty.call(message, "useReference")) @@ -343820,33 +375774,33 @@ }; /** - * Encodes the specified SummarizationQualitySpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SummarizationQualitySpec.verify|verify} messages. + * Encodes the specified SummarizationHelpfulnessSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessSpec.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualitySpec + * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessSpec * @static - * @param {google.cloud.aiplatform.v1beta1.ISummarizationQualitySpec} message SummarizationQualitySpec message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ISummarizationHelpfulnessSpec} message SummarizationHelpfulnessSpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SummarizationQualitySpec.encodeDelimited = function encodeDelimited(message, writer) { + SummarizationHelpfulnessSpec.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SummarizationQualitySpec message from the specified reader or buffer. + * Decodes a SummarizationHelpfulnessSpec message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualitySpec + * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessSpec * @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.SummarizationQualitySpec} SummarizationQualitySpec + * @returns {google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessSpec} SummarizationHelpfulnessSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SummarizationQualitySpec.decode = function decode(reader, length) { + SummarizationHelpfulnessSpec.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.SummarizationQualitySpec(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessSpec(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -343867,30 +375821,30 @@ }; /** - * Decodes a SummarizationQualitySpec message from the specified reader or buffer, length delimited. + * Decodes a SummarizationHelpfulnessSpec message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualitySpec + * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessSpec * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.SummarizationQualitySpec} SummarizationQualitySpec + * @returns {google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessSpec} SummarizationHelpfulnessSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SummarizationQualitySpec.decodeDelimited = function decodeDelimited(reader) { + SummarizationHelpfulnessSpec.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SummarizationQualitySpec message. + * Verifies a SummarizationHelpfulnessSpec message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualitySpec + * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessSpec * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SummarizationQualitySpec.verify = function verify(message) { + SummarizationHelpfulnessSpec.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.useReference != null && message.hasOwnProperty("useReference")) @@ -343903,17 +375857,17 @@ }; /** - * Creates a SummarizationQualitySpec message from a plain object. Also converts values to their respective internal types. + * Creates a SummarizationHelpfulnessSpec message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualitySpec + * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessSpec * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.SummarizationQualitySpec} SummarizationQualitySpec + * @returns {google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessSpec} SummarizationHelpfulnessSpec */ - SummarizationQualitySpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.SummarizationQualitySpec) + SummarizationHelpfulnessSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessSpec) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.SummarizationQualitySpec(); + var message = new $root.google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessSpec(); if (object.useReference != null) message.useReference = Boolean(object.useReference); if (object.version != null) @@ -343922,15 +375876,15 @@ }; /** - * Creates a plain object from a SummarizationQualitySpec message. Also converts values to other types if specified. + * Creates a plain object from a SummarizationHelpfulnessSpec message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualitySpec + * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessSpec * @static - * @param {google.cloud.aiplatform.v1beta1.SummarizationQualitySpec} message SummarizationQualitySpec + * @param {google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessSpec} message SummarizationHelpfulnessSpec * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SummarizationQualitySpec.toObject = function toObject(message, options) { + SummarizationHelpfulnessSpec.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -343946,54 +375900,54 @@ }; /** - * Converts this SummarizationQualitySpec to JSON. + * Converts this SummarizationHelpfulnessSpec to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualitySpec + * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessSpec * @instance * @returns {Object.} JSON object */ - SummarizationQualitySpec.prototype.toJSON = function toJSON() { + SummarizationHelpfulnessSpec.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SummarizationQualitySpec + * Gets the default type url for SummarizationHelpfulnessSpec * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualitySpec + * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessSpec * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SummarizationQualitySpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SummarizationHelpfulnessSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.SummarizationQualitySpec"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessSpec"; }; - return SummarizationQualitySpec; + return SummarizationHelpfulnessSpec; })(); - v1beta1.SummarizationQualityResult = (function() { + v1beta1.SummarizationHelpfulnessResult = (function() { /** - * Properties of a SummarizationQualityResult. + * Properties of a SummarizationHelpfulnessResult. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ISummarizationQualityResult - * @property {number|null} [score] SummarizationQualityResult score - * @property {string|null} [explanation] SummarizationQualityResult explanation - * @property {number|null} [confidence] SummarizationQualityResult confidence + * @interface ISummarizationHelpfulnessResult + * @property {number|null} [score] SummarizationHelpfulnessResult score + * @property {string|null} [explanation] SummarizationHelpfulnessResult explanation + * @property {number|null} [confidence] SummarizationHelpfulnessResult confidence */ /** - * Constructs a new SummarizationQualityResult. + * Constructs a new SummarizationHelpfulnessResult. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a SummarizationQualityResult. - * @implements ISummarizationQualityResult + * @classdesc Represents a SummarizationHelpfulnessResult. + * @implements ISummarizationHelpfulnessResult * @constructor - * @param {google.cloud.aiplatform.v1beta1.ISummarizationQualityResult=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ISummarizationHelpfulnessResult=} [properties] Properties to set */ - function SummarizationQualityResult(properties) { + function SummarizationHelpfulnessResult(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -344001,76 +375955,76 @@ } /** - * SummarizationQualityResult score. + * SummarizationHelpfulnessResult score. * @member {number|null|undefined} score - * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityResult + * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessResult * @instance */ - SummarizationQualityResult.prototype.score = null; + SummarizationHelpfulnessResult.prototype.score = null; /** - * SummarizationQualityResult explanation. + * SummarizationHelpfulnessResult explanation. * @member {string} explanation - * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityResult + * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessResult * @instance */ - SummarizationQualityResult.prototype.explanation = ""; + SummarizationHelpfulnessResult.prototype.explanation = ""; /** - * SummarizationQualityResult confidence. + * SummarizationHelpfulnessResult confidence. * @member {number|null|undefined} confidence - * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityResult + * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessResult * @instance */ - SummarizationQualityResult.prototype.confidence = null; + SummarizationHelpfulnessResult.prototype.confidence = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * SummarizationQualityResult _score. + * SummarizationHelpfulnessResult _score. * @member {"score"|undefined} _score - * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityResult + * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessResult * @instance */ - Object.defineProperty(SummarizationQualityResult.prototype, "_score", { + Object.defineProperty(SummarizationHelpfulnessResult.prototype, "_score", { get: $util.oneOfGetter($oneOfFields = ["score"]), set: $util.oneOfSetter($oneOfFields) }); /** - * SummarizationQualityResult _confidence. + * SummarizationHelpfulnessResult _confidence. * @member {"confidence"|undefined} _confidence - * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityResult + * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessResult * @instance */ - Object.defineProperty(SummarizationQualityResult.prototype, "_confidence", { + Object.defineProperty(SummarizationHelpfulnessResult.prototype, "_confidence", { get: $util.oneOfGetter($oneOfFields = ["confidence"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new SummarizationQualityResult instance using the specified properties. + * Creates a new SummarizationHelpfulnessResult instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityResult + * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessResult * @static - * @param {google.cloud.aiplatform.v1beta1.ISummarizationQualityResult=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.SummarizationQualityResult} SummarizationQualityResult instance + * @param {google.cloud.aiplatform.v1beta1.ISummarizationHelpfulnessResult=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessResult} SummarizationHelpfulnessResult instance */ - SummarizationQualityResult.create = function create(properties) { - return new SummarizationQualityResult(properties); + SummarizationHelpfulnessResult.create = function create(properties) { + return new SummarizationHelpfulnessResult(properties); }; /** - * Encodes the specified SummarizationQualityResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SummarizationQualityResult.verify|verify} messages. + * Encodes the specified SummarizationHelpfulnessResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessResult.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityResult + * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessResult * @static - * @param {google.cloud.aiplatform.v1beta1.ISummarizationQualityResult} message SummarizationQualityResult message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ISummarizationHelpfulnessResult} message SummarizationHelpfulnessResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SummarizationQualityResult.encode = function encode(message, writer) { + SummarizationHelpfulnessResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.score != null && Object.hasOwnProperty.call(message, "score")) @@ -344083,33 +376037,33 @@ }; /** - * Encodes the specified SummarizationQualityResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SummarizationQualityResult.verify|verify} messages. + * Encodes the specified SummarizationHelpfulnessResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessResult.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityResult + * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessResult * @static - * @param {google.cloud.aiplatform.v1beta1.ISummarizationQualityResult} message SummarizationQualityResult message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ISummarizationHelpfulnessResult} message SummarizationHelpfulnessResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SummarizationQualityResult.encodeDelimited = function encodeDelimited(message, writer) { + SummarizationHelpfulnessResult.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SummarizationQualityResult message from the specified reader or buffer. + * Decodes a SummarizationHelpfulnessResult message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityResult + * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessResult * @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.SummarizationQualityResult} SummarizationQualityResult + * @returns {google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessResult} SummarizationHelpfulnessResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SummarizationQualityResult.decode = function decode(reader, length) { + SummarizationHelpfulnessResult.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.SummarizationQualityResult(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessResult(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -344134,30 +376088,30 @@ }; /** - * Decodes a SummarizationQualityResult message from the specified reader or buffer, length delimited. + * Decodes a SummarizationHelpfulnessResult message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityResult + * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.SummarizationQualityResult} SummarizationQualityResult + * @returns {google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessResult} SummarizationHelpfulnessResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SummarizationQualityResult.decodeDelimited = function decodeDelimited(reader) { + SummarizationHelpfulnessResult.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SummarizationQualityResult message. + * Verifies a SummarizationHelpfulnessResult message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityResult + * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessResult * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SummarizationQualityResult.verify = function verify(message) { + SummarizationHelpfulnessResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -344178,17 +376132,17 @@ }; /** - * Creates a SummarizationQualityResult message from a plain object. Also converts values to their respective internal types. + * Creates a SummarizationHelpfulnessResult message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityResult + * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessResult * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.SummarizationQualityResult} SummarizationQualityResult + * @returns {google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessResult} SummarizationHelpfulnessResult */ - SummarizationQualityResult.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.SummarizationQualityResult) + SummarizationHelpfulnessResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessResult) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.SummarizationQualityResult(); + var message = new $root.google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessResult(); if (object.score != null) message.score = Number(object.score); if (object.explanation != null) @@ -344199,15 +376153,15 @@ }; /** - * Creates a plain object from a SummarizationQualityResult message. Also converts values to other types if specified. + * Creates a plain object from a SummarizationHelpfulnessResult message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityResult + * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessResult * @static - * @param {google.cloud.aiplatform.v1beta1.SummarizationQualityResult} message SummarizationQualityResult + * @param {google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessResult} message SummarizationHelpfulnessResult * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SummarizationQualityResult.toObject = function toObject(message, options) { + SummarizationHelpfulnessResult.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -344229,53 +376183,53 @@ }; /** - * Converts this SummarizationQualityResult to JSON. + * Converts this SummarizationHelpfulnessResult to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityResult + * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessResult * @instance * @returns {Object.} JSON object */ - SummarizationQualityResult.prototype.toJSON = function toJSON() { + SummarizationHelpfulnessResult.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SummarizationQualityResult + * Gets the default type url for SummarizationHelpfulnessResult * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.SummarizationQualityResult + * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessResult * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SummarizationQualityResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SummarizationHelpfulnessResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.SummarizationQualityResult"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessResult"; }; - return SummarizationQualityResult; + return SummarizationHelpfulnessResult; })(); - v1beta1.PairwiseSummarizationQualityInput = (function() { + v1beta1.SummarizationVerbosityInput = (function() { /** - * Properties of a PairwiseSummarizationQualityInput. + * Properties of a SummarizationVerbosityInput. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IPairwiseSummarizationQualityInput - * @property {google.cloud.aiplatform.v1beta1.IPairwiseSummarizationQualitySpec|null} [metricSpec] PairwiseSummarizationQualityInput metricSpec - * @property {google.cloud.aiplatform.v1beta1.IPairwiseSummarizationQualityInstance|null} [instance] PairwiseSummarizationQualityInput instance + * @interface ISummarizationVerbosityInput + * @property {google.cloud.aiplatform.v1beta1.ISummarizationVerbositySpec|null} [metricSpec] SummarizationVerbosityInput metricSpec + * @property {google.cloud.aiplatform.v1beta1.ISummarizationVerbosityInstance|null} [instance] SummarizationVerbosityInput instance */ /** - * Constructs a new PairwiseSummarizationQualityInput. + * Constructs a new SummarizationVerbosityInput. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a PairwiseSummarizationQualityInput. - * @implements IPairwiseSummarizationQualityInput + * @classdesc Represents a SummarizationVerbosityInput. + * @implements ISummarizationVerbosityInput * @constructor - * @param {google.cloud.aiplatform.v1beta1.IPairwiseSummarizationQualityInput=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ISummarizationVerbosityInput=} [properties] Properties to set */ - function PairwiseSummarizationQualityInput(properties) { + function SummarizationVerbosityInput(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -344283,89 +376237,89 @@ } /** - * PairwiseSummarizationQualityInput metricSpec. - * @member {google.cloud.aiplatform.v1beta1.IPairwiseSummarizationQualitySpec|null|undefined} metricSpec - * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInput + * SummarizationVerbosityInput metricSpec. + * @member {google.cloud.aiplatform.v1beta1.ISummarizationVerbositySpec|null|undefined} metricSpec + * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityInput * @instance */ - PairwiseSummarizationQualityInput.prototype.metricSpec = null; + SummarizationVerbosityInput.prototype.metricSpec = null; /** - * PairwiseSummarizationQualityInput instance. - * @member {google.cloud.aiplatform.v1beta1.IPairwiseSummarizationQualityInstance|null|undefined} instance - * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInput + * SummarizationVerbosityInput instance. + * @member {google.cloud.aiplatform.v1beta1.ISummarizationVerbosityInstance|null|undefined} instance + * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityInput * @instance */ - PairwiseSummarizationQualityInput.prototype.instance = null; + SummarizationVerbosityInput.prototype.instance = null; /** - * Creates a new PairwiseSummarizationQualityInput instance using the specified properties. + * Creates a new SummarizationVerbosityInput instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInput + * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityInput * @static - * @param {google.cloud.aiplatform.v1beta1.IPairwiseSummarizationQualityInput=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInput} PairwiseSummarizationQualityInput instance + * @param {google.cloud.aiplatform.v1beta1.ISummarizationVerbosityInput=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.SummarizationVerbosityInput} SummarizationVerbosityInput instance */ - PairwiseSummarizationQualityInput.create = function create(properties) { - return new PairwiseSummarizationQualityInput(properties); + SummarizationVerbosityInput.create = function create(properties) { + return new SummarizationVerbosityInput(properties); }; /** - * Encodes the specified PairwiseSummarizationQualityInput message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInput.verify|verify} messages. + * Encodes the specified SummarizationVerbosityInput message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SummarizationVerbosityInput.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInput + * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityInput * @static - * @param {google.cloud.aiplatform.v1beta1.IPairwiseSummarizationQualityInput} message PairwiseSummarizationQualityInput message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ISummarizationVerbosityInput} message SummarizationVerbosityInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PairwiseSummarizationQualityInput.encode = function encode(message, writer) { + SummarizationVerbosityInput.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.metricSpec != null && Object.hasOwnProperty.call(message, "metricSpec")) - $root.google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualitySpec.encode(message.metricSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.google.cloud.aiplatform.v1beta1.SummarizationVerbositySpec.encode(message.metricSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.instance != null && Object.hasOwnProperty.call(message, "instance")) - $root.google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance.encode(message.instance, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance.encode(message.instance, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified PairwiseSummarizationQualityInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInput.verify|verify} messages. + * Encodes the specified SummarizationVerbosityInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SummarizationVerbosityInput.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInput + * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityInput * @static - * @param {google.cloud.aiplatform.v1beta1.IPairwiseSummarizationQualityInput} message PairwiseSummarizationQualityInput message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ISummarizationVerbosityInput} message SummarizationVerbosityInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PairwiseSummarizationQualityInput.encodeDelimited = function encodeDelimited(message, writer) { + SummarizationVerbosityInput.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PairwiseSummarizationQualityInput message from the specified reader or buffer. + * Decodes a SummarizationVerbosityInput message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInput + * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityInput * @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.PairwiseSummarizationQualityInput} PairwiseSummarizationQualityInput + * @returns {google.cloud.aiplatform.v1beta1.SummarizationVerbosityInput} SummarizationVerbosityInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PairwiseSummarizationQualityInput.decode = function decode(reader, length) { + SummarizationVerbosityInput.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.PairwiseSummarizationQualityInput(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.SummarizationVerbosityInput(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.metricSpec = $root.google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualitySpec.decode(reader, reader.uint32()); + message.metricSpec = $root.google.cloud.aiplatform.v1beta1.SummarizationVerbositySpec.decode(reader, reader.uint32()); break; } case 2: { - message.instance = $root.google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance.decode(reader, reader.uint32()); + message.instance = $root.google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance.decode(reader, reader.uint32()); break; } default: @@ -344377,39 +376331,39 @@ }; /** - * Decodes a PairwiseSummarizationQualityInput message from the specified reader or buffer, length delimited. + * Decodes a SummarizationVerbosityInput message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInput + * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInput} PairwiseSummarizationQualityInput + * @returns {google.cloud.aiplatform.v1beta1.SummarizationVerbosityInput} SummarizationVerbosityInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PairwiseSummarizationQualityInput.decodeDelimited = function decodeDelimited(reader) { + SummarizationVerbosityInput.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PairwiseSummarizationQualityInput message. + * Verifies a SummarizationVerbosityInput message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInput + * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityInput * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PairwiseSummarizationQualityInput.verify = function verify(message) { + SummarizationVerbosityInput.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) { - var error = $root.google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualitySpec.verify(message.metricSpec); + var error = $root.google.cloud.aiplatform.v1beta1.SummarizationVerbositySpec.verify(message.metricSpec); if (error) return "metricSpec." + error; } if (message.instance != null && message.hasOwnProperty("instance")) { - var error = $root.google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance.verify(message.instance); + var error = $root.google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance.verify(message.instance); if (error) return "instance." + error; } @@ -344417,40 +376371,40 @@ }; /** - * Creates a PairwiseSummarizationQualityInput message from a plain object. Also converts values to their respective internal types. + * Creates a SummarizationVerbosityInput message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInput + * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityInput * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInput} PairwiseSummarizationQualityInput + * @returns {google.cloud.aiplatform.v1beta1.SummarizationVerbosityInput} SummarizationVerbosityInput */ - PairwiseSummarizationQualityInput.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInput) + SummarizationVerbosityInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.SummarizationVerbosityInput) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInput(); + var message = new $root.google.cloud.aiplatform.v1beta1.SummarizationVerbosityInput(); if (object.metricSpec != null) { if (typeof object.metricSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInput.metricSpec: object expected"); - message.metricSpec = $root.google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualitySpec.fromObject(object.metricSpec); + throw TypeError(".google.cloud.aiplatform.v1beta1.SummarizationVerbosityInput.metricSpec: object expected"); + message.metricSpec = $root.google.cloud.aiplatform.v1beta1.SummarizationVerbositySpec.fromObject(object.metricSpec); } if (object.instance != null) { if (typeof object.instance !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInput.instance: object expected"); - message.instance = $root.google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance.fromObject(object.instance); + throw TypeError(".google.cloud.aiplatform.v1beta1.SummarizationVerbosityInput.instance: object expected"); + message.instance = $root.google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance.fromObject(object.instance); } return message; }; /** - * Creates a plain object from a PairwiseSummarizationQualityInput message. Also converts values to other types if specified. + * Creates a plain object from a SummarizationVerbosityInput message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInput + * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityInput * @static - * @param {google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInput} message PairwiseSummarizationQualityInput + * @param {google.cloud.aiplatform.v1beta1.SummarizationVerbosityInput} message SummarizationVerbosityInput * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PairwiseSummarizationQualityInput.toObject = function toObject(message, options) { + SummarizationVerbosityInput.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -344459,63 +376413,62 @@ object.instance = null; } if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) - object.metricSpec = $root.google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualitySpec.toObject(message.metricSpec, options); + object.metricSpec = $root.google.cloud.aiplatform.v1beta1.SummarizationVerbositySpec.toObject(message.metricSpec, options); if (message.instance != null && message.hasOwnProperty("instance")) - object.instance = $root.google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance.toObject(message.instance, options); + object.instance = $root.google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance.toObject(message.instance, options); return object; }; /** - * Converts this PairwiseSummarizationQualityInput to JSON. + * Converts this SummarizationVerbosityInput to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInput + * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityInput * @instance * @returns {Object.} JSON object */ - PairwiseSummarizationQualityInput.prototype.toJSON = function toJSON() { + SummarizationVerbosityInput.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PairwiseSummarizationQualityInput + * Gets the default type url for SummarizationVerbosityInput * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInput + * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityInput * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PairwiseSummarizationQualityInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SummarizationVerbosityInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInput"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.SummarizationVerbosityInput"; }; - return PairwiseSummarizationQualityInput; + return SummarizationVerbosityInput; })(); - v1beta1.PairwiseSummarizationQualityInstance = (function() { + v1beta1.SummarizationVerbosityInstance = (function() { /** - * Properties of a PairwiseSummarizationQualityInstance. + * Properties of a SummarizationVerbosityInstance. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IPairwiseSummarizationQualityInstance - * @property {string|null} [prediction] PairwiseSummarizationQualityInstance prediction - * @property {string|null} [baselinePrediction] PairwiseSummarizationQualityInstance baselinePrediction - * @property {string|null} [reference] PairwiseSummarizationQualityInstance reference - * @property {string|null} [context] PairwiseSummarizationQualityInstance context - * @property {string|null} [instruction] PairwiseSummarizationQualityInstance instruction + * @interface ISummarizationVerbosityInstance + * @property {string|null} [prediction] SummarizationVerbosityInstance prediction + * @property {string|null} [reference] SummarizationVerbosityInstance reference + * @property {string|null} [context] SummarizationVerbosityInstance context + * @property {string|null} [instruction] SummarizationVerbosityInstance instruction */ /** - * Constructs a new PairwiseSummarizationQualityInstance. + * Constructs a new SummarizationVerbosityInstance. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a PairwiseSummarizationQualityInstance. - * @implements IPairwiseSummarizationQualityInstance + * @classdesc Represents a SummarizationVerbosityInstance. + * @implements ISummarizationVerbosityInstance * @constructor - * @param {google.cloud.aiplatform.v1beta1.IPairwiseSummarizationQualityInstance=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ISummarizationVerbosityInstance=} [properties] Properties to set */ - function PairwiseSummarizationQualityInstance(properties) { + function SummarizationVerbosityInstance(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -344523,168 +376476,147 @@ } /** - * PairwiseSummarizationQualityInstance prediction. + * SummarizationVerbosityInstance prediction. * @member {string|null|undefined} prediction - * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance - * @instance - */ - PairwiseSummarizationQualityInstance.prototype.prediction = null; - - /** - * PairwiseSummarizationQualityInstance baselinePrediction. - * @member {string|null|undefined} baselinePrediction - * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance * @instance */ - PairwiseSummarizationQualityInstance.prototype.baselinePrediction = null; + SummarizationVerbosityInstance.prototype.prediction = null; /** - * PairwiseSummarizationQualityInstance reference. + * SummarizationVerbosityInstance reference. * @member {string|null|undefined} reference - * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance * @instance */ - PairwiseSummarizationQualityInstance.prototype.reference = null; + SummarizationVerbosityInstance.prototype.reference = null; /** - * PairwiseSummarizationQualityInstance context. + * SummarizationVerbosityInstance context. * @member {string|null|undefined} context - * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance * @instance */ - PairwiseSummarizationQualityInstance.prototype.context = null; + SummarizationVerbosityInstance.prototype.context = null; /** - * PairwiseSummarizationQualityInstance instruction. + * SummarizationVerbosityInstance instruction. * @member {string|null|undefined} instruction - * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance * @instance */ - PairwiseSummarizationQualityInstance.prototype.instruction = null; + SummarizationVerbosityInstance.prototype.instruction = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * PairwiseSummarizationQualityInstance _prediction. + * SummarizationVerbosityInstance _prediction. * @member {"prediction"|undefined} _prediction - * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance * @instance */ - Object.defineProperty(PairwiseSummarizationQualityInstance.prototype, "_prediction", { + Object.defineProperty(SummarizationVerbosityInstance.prototype, "_prediction", { get: $util.oneOfGetter($oneOfFields = ["prediction"]), set: $util.oneOfSetter($oneOfFields) }); /** - * PairwiseSummarizationQualityInstance _baselinePrediction. - * @member {"baselinePrediction"|undefined} _baselinePrediction - * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance - * @instance - */ - Object.defineProperty(PairwiseSummarizationQualityInstance.prototype, "_baselinePrediction", { - get: $util.oneOfGetter($oneOfFields = ["baselinePrediction"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * PairwiseSummarizationQualityInstance _reference. + * SummarizationVerbosityInstance _reference. * @member {"reference"|undefined} _reference - * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance * @instance */ - Object.defineProperty(PairwiseSummarizationQualityInstance.prototype, "_reference", { + Object.defineProperty(SummarizationVerbosityInstance.prototype, "_reference", { get: $util.oneOfGetter($oneOfFields = ["reference"]), set: $util.oneOfSetter($oneOfFields) }); /** - * PairwiseSummarizationQualityInstance _context. + * SummarizationVerbosityInstance _context. * @member {"context"|undefined} _context - * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance * @instance */ - Object.defineProperty(PairwiseSummarizationQualityInstance.prototype, "_context", { + Object.defineProperty(SummarizationVerbosityInstance.prototype, "_context", { get: $util.oneOfGetter($oneOfFields = ["context"]), set: $util.oneOfSetter($oneOfFields) }); /** - * PairwiseSummarizationQualityInstance _instruction. + * SummarizationVerbosityInstance _instruction. * @member {"instruction"|undefined} _instruction - * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance * @instance */ - Object.defineProperty(PairwiseSummarizationQualityInstance.prototype, "_instruction", { + Object.defineProperty(SummarizationVerbosityInstance.prototype, "_instruction", { get: $util.oneOfGetter($oneOfFields = ["instruction"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new PairwiseSummarizationQualityInstance instance using the specified properties. + * Creates a new SummarizationVerbosityInstance instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance * @static - * @param {google.cloud.aiplatform.v1beta1.IPairwiseSummarizationQualityInstance=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance} PairwiseSummarizationQualityInstance instance + * @param {google.cloud.aiplatform.v1beta1.ISummarizationVerbosityInstance=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance} SummarizationVerbosityInstance instance */ - PairwiseSummarizationQualityInstance.create = function create(properties) { - return new PairwiseSummarizationQualityInstance(properties); + SummarizationVerbosityInstance.create = function create(properties) { + return new SummarizationVerbosityInstance(properties); }; /** - * Encodes the specified PairwiseSummarizationQualityInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance.verify|verify} messages. + * Encodes the specified SummarizationVerbosityInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance * @static - * @param {google.cloud.aiplatform.v1beta1.IPairwiseSummarizationQualityInstance} message PairwiseSummarizationQualityInstance message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ISummarizationVerbosityInstance} message SummarizationVerbosityInstance message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PairwiseSummarizationQualityInstance.encode = function encode(message, writer) { + SummarizationVerbosityInstance.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.prediction != null && Object.hasOwnProperty.call(message, "prediction")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.prediction); - if (message.baselinePrediction != null && Object.hasOwnProperty.call(message, "baselinePrediction")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.baselinePrediction); if (message.reference != null && Object.hasOwnProperty.call(message, "reference")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.reference); + writer.uint32(/* id 2, wireType 2 =*/18).string(message.reference); if (message.context != null && Object.hasOwnProperty.call(message, "context")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.context); + writer.uint32(/* id 3, wireType 2 =*/26).string(message.context); if (message.instruction != null && Object.hasOwnProperty.call(message, "instruction")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.instruction); + writer.uint32(/* id 4, wireType 2 =*/34).string(message.instruction); return writer; }; /** - * Encodes the specified PairwiseSummarizationQualityInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance.verify|verify} messages. + * Encodes the specified SummarizationVerbosityInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance * @static - * @param {google.cloud.aiplatform.v1beta1.IPairwiseSummarizationQualityInstance} message PairwiseSummarizationQualityInstance message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ISummarizationVerbosityInstance} message SummarizationVerbosityInstance message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PairwiseSummarizationQualityInstance.encodeDelimited = function encodeDelimited(message, writer) { + SummarizationVerbosityInstance.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PairwiseSummarizationQualityInstance message from the specified reader or buffer. + * Decodes a SummarizationVerbosityInstance message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance * @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.PairwiseSummarizationQualityInstance} PairwiseSummarizationQualityInstance + * @returns {google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance} SummarizationVerbosityInstance * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PairwiseSummarizationQualityInstance.decode = function decode(reader, length) { + SummarizationVerbosityInstance.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.PairwiseSummarizationQualityInstance(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -344693,18 +376625,14 @@ break; } case 2: { - message.baselinePrediction = reader.string(); - break; - } - case 3: { message.reference = reader.string(); break; } - case 4: { + case 3: { message.context = reader.string(); break; } - case 5: { + case 4: { message.instruction = reader.string(); break; } @@ -344717,30 +376645,30 @@ }; /** - * Decodes a PairwiseSummarizationQualityInstance message from the specified reader or buffer, length delimited. + * Decodes a SummarizationVerbosityInstance message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance} PairwiseSummarizationQualityInstance + * @returns {google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance} SummarizationVerbosityInstance * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PairwiseSummarizationQualityInstance.decodeDelimited = function decodeDelimited(reader) { + SummarizationVerbosityInstance.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PairwiseSummarizationQualityInstance message. + * Verifies a SummarizationVerbosityInstance message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PairwiseSummarizationQualityInstance.verify = function verify(message) { + SummarizationVerbosityInstance.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -344749,11 +376677,6 @@ if (!$util.isString(message.prediction)) return "prediction: string expected"; } - if (message.baselinePrediction != null && message.hasOwnProperty("baselinePrediction")) { - properties._baselinePrediction = 1; - if (!$util.isString(message.baselinePrediction)) - return "baselinePrediction: string expected"; - } if (message.reference != null && message.hasOwnProperty("reference")) { properties._reference = 1; if (!$util.isString(message.reference)) @@ -344773,21 +376696,19 @@ }; /** - * Creates a PairwiseSummarizationQualityInstance message from a plain object. Also converts values to their respective internal types. + * Creates a SummarizationVerbosityInstance message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance} PairwiseSummarizationQualityInstance + * @returns {google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance} SummarizationVerbosityInstance */ - PairwiseSummarizationQualityInstance.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance) + SummarizationVerbosityInstance.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance(); + var message = new $root.google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance(); if (object.prediction != null) message.prediction = String(object.prediction); - if (object.baselinePrediction != null) - message.baselinePrediction = String(object.baselinePrediction); if (object.reference != null) message.reference = String(object.reference); if (object.context != null) @@ -344798,15 +376719,15 @@ }; /** - * Creates a plain object from a PairwiseSummarizationQualityInstance message. Also converts values to other types if specified. + * Creates a plain object from a SummarizationVerbosityInstance message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance * @static - * @param {google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance} message PairwiseSummarizationQualityInstance + * @param {google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance} message SummarizationVerbosityInstance * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PairwiseSummarizationQualityInstance.toObject = function toObject(message, options) { + SummarizationVerbosityInstance.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -344815,11 +376736,6 @@ if (options.oneofs) object._prediction = "prediction"; } - if (message.baselinePrediction != null && message.hasOwnProperty("baselinePrediction")) { - object.baselinePrediction = message.baselinePrediction; - if (options.oneofs) - object._baselinePrediction = "baselinePrediction"; - } if (message.reference != null && message.hasOwnProperty("reference")) { object.reference = message.reference; if (options.oneofs) @@ -344839,53 +376755,53 @@ }; /** - * Converts this PairwiseSummarizationQualityInstance to JSON. + * Converts this SummarizationVerbosityInstance to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance * @instance * @returns {Object.} JSON object */ - PairwiseSummarizationQualityInstance.prototype.toJSON = function toJSON() { + SummarizationVerbosityInstance.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PairwiseSummarizationQualityInstance + * Gets the default type url for SummarizationVerbosityInstance * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PairwiseSummarizationQualityInstance.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SummarizationVerbosityInstance.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstance"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance"; }; - return PairwiseSummarizationQualityInstance; + return SummarizationVerbosityInstance; })(); - v1beta1.PairwiseSummarizationQualitySpec = (function() { + v1beta1.SummarizationVerbositySpec = (function() { /** - * Properties of a PairwiseSummarizationQualitySpec. + * Properties of a SummarizationVerbositySpec. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IPairwiseSummarizationQualitySpec - * @property {boolean|null} [useReference] PairwiseSummarizationQualitySpec useReference - * @property {number|null} [version] PairwiseSummarizationQualitySpec version + * @interface ISummarizationVerbositySpec + * @property {boolean|null} [useReference] SummarizationVerbositySpec useReference + * @property {number|null} [version] SummarizationVerbositySpec version */ /** - * Constructs a new PairwiseSummarizationQualitySpec. + * Constructs a new SummarizationVerbositySpec. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a PairwiseSummarizationQualitySpec. - * @implements IPairwiseSummarizationQualitySpec + * @classdesc Represents a SummarizationVerbositySpec. + * @implements ISummarizationVerbositySpec * @constructor - * @param {google.cloud.aiplatform.v1beta1.IPairwiseSummarizationQualitySpec=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ISummarizationVerbositySpec=} [properties] Properties to set */ - function PairwiseSummarizationQualitySpec(properties) { + function SummarizationVerbositySpec(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -344893,43 +376809,43 @@ } /** - * PairwiseSummarizationQualitySpec useReference. + * SummarizationVerbositySpec useReference. * @member {boolean} useReference - * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualitySpec + * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbositySpec * @instance */ - PairwiseSummarizationQualitySpec.prototype.useReference = false; + SummarizationVerbositySpec.prototype.useReference = false; /** - * PairwiseSummarizationQualitySpec version. + * SummarizationVerbositySpec version. * @member {number} version - * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualitySpec + * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbositySpec * @instance */ - PairwiseSummarizationQualitySpec.prototype.version = 0; + SummarizationVerbositySpec.prototype.version = 0; /** - * Creates a new PairwiseSummarizationQualitySpec instance using the specified properties. + * Creates a new SummarizationVerbositySpec instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualitySpec + * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbositySpec * @static - * @param {google.cloud.aiplatform.v1beta1.IPairwiseSummarizationQualitySpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualitySpec} PairwiseSummarizationQualitySpec instance + * @param {google.cloud.aiplatform.v1beta1.ISummarizationVerbositySpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.SummarizationVerbositySpec} SummarizationVerbositySpec instance */ - PairwiseSummarizationQualitySpec.create = function create(properties) { - return new PairwiseSummarizationQualitySpec(properties); + SummarizationVerbositySpec.create = function create(properties) { + return new SummarizationVerbositySpec(properties); }; /** - * Encodes the specified PairwiseSummarizationQualitySpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualitySpec.verify|verify} messages. + * Encodes the specified SummarizationVerbositySpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SummarizationVerbositySpec.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualitySpec + * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbositySpec * @static - * @param {google.cloud.aiplatform.v1beta1.IPairwiseSummarizationQualitySpec} message PairwiseSummarizationQualitySpec message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ISummarizationVerbositySpec} message SummarizationVerbositySpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PairwiseSummarizationQualitySpec.encode = function encode(message, writer) { + SummarizationVerbositySpec.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.useReference != null && Object.hasOwnProperty.call(message, "useReference")) @@ -344940,33 +376856,33 @@ }; /** - * Encodes the specified PairwiseSummarizationQualitySpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualitySpec.verify|verify} messages. + * Encodes the specified SummarizationVerbositySpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SummarizationVerbositySpec.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualitySpec + * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbositySpec * @static - * @param {google.cloud.aiplatform.v1beta1.IPairwiseSummarizationQualitySpec} message PairwiseSummarizationQualitySpec message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ISummarizationVerbositySpec} message SummarizationVerbositySpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PairwiseSummarizationQualitySpec.encodeDelimited = function encodeDelimited(message, writer) { + SummarizationVerbositySpec.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PairwiseSummarizationQualitySpec message from the specified reader or buffer. + * Decodes a SummarizationVerbositySpec message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualitySpec + * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbositySpec * @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.PairwiseSummarizationQualitySpec} PairwiseSummarizationQualitySpec + * @returns {google.cloud.aiplatform.v1beta1.SummarizationVerbositySpec} SummarizationVerbositySpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PairwiseSummarizationQualitySpec.decode = function decode(reader, length) { + SummarizationVerbositySpec.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.PairwiseSummarizationQualitySpec(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.SummarizationVerbositySpec(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -344987,30 +376903,30 @@ }; /** - * Decodes a PairwiseSummarizationQualitySpec message from the specified reader or buffer, length delimited. + * Decodes a SummarizationVerbositySpec message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualitySpec + * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbositySpec * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualitySpec} PairwiseSummarizationQualitySpec + * @returns {google.cloud.aiplatform.v1beta1.SummarizationVerbositySpec} SummarizationVerbositySpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PairwiseSummarizationQualitySpec.decodeDelimited = function decodeDelimited(reader) { + SummarizationVerbositySpec.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PairwiseSummarizationQualitySpec message. + * Verifies a SummarizationVerbositySpec message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualitySpec + * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbositySpec * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PairwiseSummarizationQualitySpec.verify = function verify(message) { + SummarizationVerbositySpec.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.useReference != null && message.hasOwnProperty("useReference")) @@ -345023,17 +376939,17 @@ }; /** - * Creates a PairwiseSummarizationQualitySpec message from a plain object. Also converts values to their respective internal types. + * Creates a SummarizationVerbositySpec message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualitySpec + * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbositySpec * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualitySpec} PairwiseSummarizationQualitySpec + * @returns {google.cloud.aiplatform.v1beta1.SummarizationVerbositySpec} SummarizationVerbositySpec */ - PairwiseSummarizationQualitySpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualitySpec) + SummarizationVerbositySpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.SummarizationVerbositySpec) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualitySpec(); + var message = new $root.google.cloud.aiplatform.v1beta1.SummarizationVerbositySpec(); if (object.useReference != null) message.useReference = Boolean(object.useReference); if (object.version != null) @@ -345042,15 +376958,15 @@ }; /** - * Creates a plain object from a PairwiseSummarizationQualitySpec message. Also converts values to other types if specified. + * Creates a plain object from a SummarizationVerbositySpec message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualitySpec + * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbositySpec * @static - * @param {google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualitySpec} message PairwiseSummarizationQualitySpec + * @param {google.cloud.aiplatform.v1beta1.SummarizationVerbositySpec} message SummarizationVerbositySpec * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PairwiseSummarizationQualitySpec.toObject = function toObject(message, options) { + SummarizationVerbositySpec.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -345066,54 +376982,54 @@ }; /** - * Converts this PairwiseSummarizationQualitySpec to JSON. + * Converts this SummarizationVerbositySpec to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualitySpec + * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbositySpec * @instance * @returns {Object.} JSON object */ - PairwiseSummarizationQualitySpec.prototype.toJSON = function toJSON() { + SummarizationVerbositySpec.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PairwiseSummarizationQualitySpec + * Gets the default type url for SummarizationVerbositySpec * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualitySpec + * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbositySpec * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PairwiseSummarizationQualitySpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SummarizationVerbositySpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualitySpec"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.SummarizationVerbositySpec"; }; - return PairwiseSummarizationQualitySpec; + return SummarizationVerbositySpec; })(); - v1beta1.PairwiseSummarizationQualityResult = (function() { + v1beta1.SummarizationVerbosityResult = (function() { /** - * Properties of a PairwiseSummarizationQualityResult. + * Properties of a SummarizationVerbosityResult. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IPairwiseSummarizationQualityResult - * @property {google.cloud.aiplatform.v1beta1.PairwiseChoice|null} [pairwiseChoice] PairwiseSummarizationQualityResult pairwiseChoice - * @property {string|null} [explanation] PairwiseSummarizationQualityResult explanation - * @property {number|null} [confidence] PairwiseSummarizationQualityResult confidence + * @interface ISummarizationVerbosityResult + * @property {number|null} [score] SummarizationVerbosityResult score + * @property {string|null} [explanation] SummarizationVerbosityResult explanation + * @property {number|null} [confidence] SummarizationVerbosityResult confidence */ /** - * Constructs a new PairwiseSummarizationQualityResult. + * Constructs a new SummarizationVerbosityResult. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a PairwiseSummarizationQualityResult. - * @implements IPairwiseSummarizationQualityResult + * @classdesc Represents a SummarizationVerbosityResult. + * @implements ISummarizationVerbosityResult * @constructor - * @param {google.cloud.aiplatform.v1beta1.IPairwiseSummarizationQualityResult=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ISummarizationVerbosityResult=} [properties] Properties to set */ - function PairwiseSummarizationQualityResult(properties) { + function SummarizationVerbosityResult(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -345121,69 +377037,80 @@ } /** - * PairwiseSummarizationQualityResult pairwiseChoice. - * @member {google.cloud.aiplatform.v1beta1.PairwiseChoice} pairwiseChoice - * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityResult + * SummarizationVerbosityResult score. + * @member {number|null|undefined} score + * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityResult * @instance */ - PairwiseSummarizationQualityResult.prototype.pairwiseChoice = 0; + SummarizationVerbosityResult.prototype.score = null; /** - * PairwiseSummarizationQualityResult explanation. + * SummarizationVerbosityResult explanation. * @member {string} explanation - * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityResult + * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityResult * @instance */ - PairwiseSummarizationQualityResult.prototype.explanation = ""; + SummarizationVerbosityResult.prototype.explanation = ""; /** - * PairwiseSummarizationQualityResult confidence. + * SummarizationVerbosityResult confidence. * @member {number|null|undefined} confidence - * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityResult + * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityResult * @instance */ - PairwiseSummarizationQualityResult.prototype.confidence = null; + SummarizationVerbosityResult.prototype.confidence = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * PairwiseSummarizationQualityResult _confidence. + * SummarizationVerbosityResult _score. + * @member {"score"|undefined} _score + * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityResult + * @instance + */ + Object.defineProperty(SummarizationVerbosityResult.prototype, "_score", { + get: $util.oneOfGetter($oneOfFields = ["score"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SummarizationVerbosityResult _confidence. * @member {"confidence"|undefined} _confidence - * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityResult + * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityResult * @instance */ - Object.defineProperty(PairwiseSummarizationQualityResult.prototype, "_confidence", { + Object.defineProperty(SummarizationVerbosityResult.prototype, "_confidence", { get: $util.oneOfGetter($oneOfFields = ["confidence"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new PairwiseSummarizationQualityResult instance using the specified properties. + * Creates a new SummarizationVerbosityResult instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityResult + * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityResult * @static - * @param {google.cloud.aiplatform.v1beta1.IPairwiseSummarizationQualityResult=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityResult} PairwiseSummarizationQualityResult instance + * @param {google.cloud.aiplatform.v1beta1.ISummarizationVerbosityResult=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.SummarizationVerbosityResult} SummarizationVerbosityResult instance */ - PairwiseSummarizationQualityResult.create = function create(properties) { - return new PairwiseSummarizationQualityResult(properties); + SummarizationVerbosityResult.create = function create(properties) { + return new SummarizationVerbosityResult(properties); }; /** - * Encodes the specified PairwiseSummarizationQualityResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityResult.verify|verify} messages. + * Encodes the specified SummarizationVerbosityResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SummarizationVerbosityResult.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityResult + * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityResult * @static - * @param {google.cloud.aiplatform.v1beta1.IPairwiseSummarizationQualityResult} message PairwiseSummarizationQualityResult message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ISummarizationVerbosityResult} message SummarizationVerbosityResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PairwiseSummarizationQualityResult.encode = function encode(message, writer) { + SummarizationVerbosityResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.pairwiseChoice != null && Object.hasOwnProperty.call(message, "pairwiseChoice")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.pairwiseChoice); + if (message.score != null && Object.hasOwnProperty.call(message, "score")) + writer.uint32(/* id 1, wireType 5 =*/13).float(message.score); if (message.explanation != null && Object.hasOwnProperty.call(message, "explanation")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.explanation); if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) @@ -345192,38 +377119,38 @@ }; /** - * Encodes the specified PairwiseSummarizationQualityResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityResult.verify|verify} messages. + * Encodes the specified SummarizationVerbosityResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SummarizationVerbosityResult.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityResult + * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityResult * @static - * @param {google.cloud.aiplatform.v1beta1.IPairwiseSummarizationQualityResult} message PairwiseSummarizationQualityResult message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ISummarizationVerbosityResult} message SummarizationVerbosityResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PairwiseSummarizationQualityResult.encodeDelimited = function encodeDelimited(message, writer) { + SummarizationVerbosityResult.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PairwiseSummarizationQualityResult message from the specified reader or buffer. + * Decodes a SummarizationVerbosityResult message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityResult + * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityResult * @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.PairwiseSummarizationQualityResult} PairwiseSummarizationQualityResult + * @returns {google.cloud.aiplatform.v1beta1.SummarizationVerbosityResult} SummarizationVerbosityResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PairwiseSummarizationQualityResult.decode = function decode(reader, length) { + SummarizationVerbosityResult.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.PairwiseSummarizationQualityResult(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.SummarizationVerbosityResult(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.pairwiseChoice = reader.int32(); + message.score = reader.float(); break; } case 2: { @@ -345243,43 +377170,38 @@ }; /** - * Decodes a PairwiseSummarizationQualityResult message from the specified reader or buffer, length delimited. + * Decodes a SummarizationVerbosityResult message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityResult + * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityResult} PairwiseSummarizationQualityResult + * @returns {google.cloud.aiplatform.v1beta1.SummarizationVerbosityResult} SummarizationVerbosityResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PairwiseSummarizationQualityResult.decodeDelimited = function decodeDelimited(reader) { + SummarizationVerbosityResult.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PairwiseSummarizationQualityResult message. + * Verifies a SummarizationVerbosityResult message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityResult + * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityResult * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PairwiseSummarizationQualityResult.verify = function verify(message) { + SummarizationVerbosityResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; - if (message.pairwiseChoice != null && message.hasOwnProperty("pairwiseChoice")) - switch (message.pairwiseChoice) { - default: - return "pairwiseChoice: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } + if (message.score != null && message.hasOwnProperty("score")) { + properties._score = 1; + if (typeof message.score !== "number") + return "score: number expected"; + } if (message.explanation != null && message.hasOwnProperty("explanation")) if (!$util.isString(message.explanation)) return "explanation: string expected"; @@ -345292,41 +377214,19 @@ }; /** - * Creates a PairwiseSummarizationQualityResult message from a plain object. Also converts values to their respective internal types. + * Creates a SummarizationVerbosityResult message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityResult + * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityResult * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityResult} PairwiseSummarizationQualityResult + * @returns {google.cloud.aiplatform.v1beta1.SummarizationVerbosityResult} SummarizationVerbosityResult */ - PairwiseSummarizationQualityResult.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityResult) + SummarizationVerbosityResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.SummarizationVerbosityResult) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityResult(); - switch (object.pairwiseChoice) { - default: - if (typeof object.pairwiseChoice === "number") { - message.pairwiseChoice = object.pairwiseChoice; - break; - } - break; - case "PAIRWISE_CHOICE_UNSPECIFIED": - case 0: - message.pairwiseChoice = 0; - break; - case "BASELINE": - case 1: - message.pairwiseChoice = 1; - break; - case "CANDIDATE": - case 2: - message.pairwiseChoice = 2; - break; - case "TIE": - case 3: - message.pairwiseChoice = 3; - break; - } + var message = new $root.google.cloud.aiplatform.v1beta1.SummarizationVerbosityResult(); + if (object.score != null) + message.score = Number(object.score); if (object.explanation != null) message.explanation = String(object.explanation); if (object.confidence != null) @@ -345335,24 +377235,25 @@ }; /** - * Creates a plain object from a PairwiseSummarizationQualityResult message. Also converts values to other types if specified. + * Creates a plain object from a SummarizationVerbosityResult message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityResult + * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityResult * @static - * @param {google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityResult} message PairwiseSummarizationQualityResult + * @param {google.cloud.aiplatform.v1beta1.SummarizationVerbosityResult} message SummarizationVerbosityResult * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PairwiseSummarizationQualityResult.toObject = function toObject(message, options) { + SummarizationVerbosityResult.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.pairwiseChoice = options.enums === String ? "PAIRWISE_CHOICE_UNSPECIFIED" : 0; + if (options.defaults) object.explanation = ""; + if (message.score != null && message.hasOwnProperty("score")) { + object.score = options.json && !isFinite(message.score) ? String(message.score) : message.score; + if (options.oneofs) + object._score = "score"; } - if (message.pairwiseChoice != null && message.hasOwnProperty("pairwiseChoice")) - object.pairwiseChoice = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.PairwiseChoice[message.pairwiseChoice] === undefined ? message.pairwiseChoice : $root.google.cloud.aiplatform.v1beta1.PairwiseChoice[message.pairwiseChoice] : message.pairwiseChoice; if (message.explanation != null && message.hasOwnProperty("explanation")) object.explanation = message.explanation; if (message.confidence != null && message.hasOwnProperty("confidence")) { @@ -345364,53 +377265,53 @@ }; /** - * Converts this PairwiseSummarizationQualityResult to JSON. + * Converts this SummarizationVerbosityResult to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityResult + * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityResult * @instance * @returns {Object.} JSON object */ - PairwiseSummarizationQualityResult.prototype.toJSON = function toJSON() { + SummarizationVerbosityResult.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PairwiseSummarizationQualityResult + * Gets the default type url for SummarizationVerbosityResult * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityResult + * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityResult * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PairwiseSummarizationQualityResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SummarizationVerbosityResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityResult"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.SummarizationVerbosityResult"; }; - return PairwiseSummarizationQualityResult; + return SummarizationVerbosityResult; })(); - v1beta1.SummarizationHelpfulnessInput = (function() { + v1beta1.QuestionAnsweringQualityInput = (function() { /** - * Properties of a SummarizationHelpfulnessInput. + * Properties of a QuestionAnsweringQualityInput. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ISummarizationHelpfulnessInput - * @property {google.cloud.aiplatform.v1beta1.ISummarizationHelpfulnessSpec|null} [metricSpec] SummarizationHelpfulnessInput metricSpec - * @property {google.cloud.aiplatform.v1beta1.ISummarizationHelpfulnessInstance|null} [instance] SummarizationHelpfulnessInput instance + * @interface IQuestionAnsweringQualityInput + * @property {google.cloud.aiplatform.v1beta1.IQuestionAnsweringQualitySpec|null} [metricSpec] QuestionAnsweringQualityInput metricSpec + * @property {google.cloud.aiplatform.v1beta1.IQuestionAnsweringQualityInstance|null} [instance] QuestionAnsweringQualityInput instance */ /** - * Constructs a new SummarizationHelpfulnessInput. + * Constructs a new QuestionAnsweringQualityInput. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a SummarizationHelpfulnessInput. - * @implements ISummarizationHelpfulnessInput + * @classdesc Represents a QuestionAnsweringQualityInput. + * @implements IQuestionAnsweringQualityInput * @constructor - * @param {google.cloud.aiplatform.v1beta1.ISummarizationHelpfulnessInput=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringQualityInput=} [properties] Properties to set */ - function SummarizationHelpfulnessInput(properties) { + function QuestionAnsweringQualityInput(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -345418,89 +377319,89 @@ } /** - * SummarizationHelpfulnessInput metricSpec. - * @member {google.cloud.aiplatform.v1beta1.ISummarizationHelpfulnessSpec|null|undefined} metricSpec - * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInput + * QuestionAnsweringQualityInput metricSpec. + * @member {google.cloud.aiplatform.v1beta1.IQuestionAnsweringQualitySpec|null|undefined} metricSpec + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInput * @instance */ - SummarizationHelpfulnessInput.prototype.metricSpec = null; + QuestionAnsweringQualityInput.prototype.metricSpec = null; /** - * SummarizationHelpfulnessInput instance. - * @member {google.cloud.aiplatform.v1beta1.ISummarizationHelpfulnessInstance|null|undefined} instance - * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInput + * QuestionAnsweringQualityInput instance. + * @member {google.cloud.aiplatform.v1beta1.IQuestionAnsweringQualityInstance|null|undefined} instance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInput * @instance */ - SummarizationHelpfulnessInput.prototype.instance = null; + QuestionAnsweringQualityInput.prototype.instance = null; /** - * Creates a new SummarizationHelpfulnessInput instance using the specified properties. + * Creates a new QuestionAnsweringQualityInput instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInput + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInput * @static - * @param {google.cloud.aiplatform.v1beta1.ISummarizationHelpfulnessInput=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInput} SummarizationHelpfulnessInput instance + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringQualityInput=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInput} QuestionAnsweringQualityInput instance */ - SummarizationHelpfulnessInput.create = function create(properties) { - return new SummarizationHelpfulnessInput(properties); + QuestionAnsweringQualityInput.create = function create(properties) { + return new QuestionAnsweringQualityInput(properties); }; /** - * Encodes the specified SummarizationHelpfulnessInput message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInput.verify|verify} messages. + * Encodes the specified QuestionAnsweringQualityInput message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInput.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInput + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInput * @static - * @param {google.cloud.aiplatform.v1beta1.ISummarizationHelpfulnessInput} message SummarizationHelpfulnessInput message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringQualityInput} message QuestionAnsweringQualityInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SummarizationHelpfulnessInput.encode = function encode(message, writer) { + QuestionAnsweringQualityInput.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.metricSpec != null && Object.hasOwnProperty.call(message, "metricSpec")) - $root.google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessSpec.encode(message.metricSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpec.encode(message.metricSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.instance != null && Object.hasOwnProperty.call(message, "instance")) - $root.google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance.encode(message.instance, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance.encode(message.instance, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified SummarizationHelpfulnessInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInput.verify|verify} messages. + * Encodes the specified QuestionAnsweringQualityInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInput.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInput + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInput * @static - * @param {google.cloud.aiplatform.v1beta1.ISummarizationHelpfulnessInput} message SummarizationHelpfulnessInput message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringQualityInput} message QuestionAnsweringQualityInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SummarizationHelpfulnessInput.encodeDelimited = function encodeDelimited(message, writer) { + QuestionAnsweringQualityInput.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SummarizationHelpfulnessInput message from the specified reader or buffer. + * Decodes a QuestionAnsweringQualityInput message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInput + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInput * @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.SummarizationHelpfulnessInput} SummarizationHelpfulnessInput + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInput} QuestionAnsweringQualityInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SummarizationHelpfulnessInput.decode = function decode(reader, length) { + QuestionAnsweringQualityInput.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.SummarizationHelpfulnessInput(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInput(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.metricSpec = $root.google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessSpec.decode(reader, reader.uint32()); + message.metricSpec = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpec.decode(reader, reader.uint32()); break; } case 2: { - message.instance = $root.google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance.decode(reader, reader.uint32()); + message.instance = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance.decode(reader, reader.uint32()); break; } default: @@ -345512,39 +377413,39 @@ }; /** - * Decodes a SummarizationHelpfulnessInput message from the specified reader or buffer, length delimited. + * Decodes a QuestionAnsweringQualityInput message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInput + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInput} SummarizationHelpfulnessInput + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInput} QuestionAnsweringQualityInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SummarizationHelpfulnessInput.decodeDelimited = function decodeDelimited(reader) { + QuestionAnsweringQualityInput.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SummarizationHelpfulnessInput message. + * Verifies a QuestionAnsweringQualityInput message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInput + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInput * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SummarizationHelpfulnessInput.verify = function verify(message) { + QuestionAnsweringQualityInput.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) { - var error = $root.google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessSpec.verify(message.metricSpec); + var error = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpec.verify(message.metricSpec); if (error) return "metricSpec." + error; } if (message.instance != null && message.hasOwnProperty("instance")) { - var error = $root.google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance.verify(message.instance); + var error = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance.verify(message.instance); if (error) return "instance." + error; } @@ -345552,40 +377453,40 @@ }; /** - * Creates a SummarizationHelpfulnessInput message from a plain object. Also converts values to their respective internal types. + * Creates a QuestionAnsweringQualityInput message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInput + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInput * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInput} SummarizationHelpfulnessInput + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInput} QuestionAnsweringQualityInput */ - SummarizationHelpfulnessInput.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInput) + QuestionAnsweringQualityInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInput) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInput(); + var message = new $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInput(); if (object.metricSpec != null) { if (typeof object.metricSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInput.metricSpec: object expected"); - message.metricSpec = $root.google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessSpec.fromObject(object.metricSpec); + throw TypeError(".google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInput.metricSpec: object expected"); + message.metricSpec = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpec.fromObject(object.metricSpec); } if (object.instance != null) { if (typeof object.instance !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInput.instance: object expected"); - message.instance = $root.google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance.fromObject(object.instance); + throw TypeError(".google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInput.instance: object expected"); + message.instance = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance.fromObject(object.instance); } return message; }; /** - * Creates a plain object from a SummarizationHelpfulnessInput message. Also converts values to other types if specified. + * Creates a plain object from a QuestionAnsweringQualityInput message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInput + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInput * @static - * @param {google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInput} message SummarizationHelpfulnessInput + * @param {google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInput} message QuestionAnsweringQualityInput * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SummarizationHelpfulnessInput.toObject = function toObject(message, options) { + QuestionAnsweringQualityInput.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -345594,62 +377495,62 @@ object.instance = null; } if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) - object.metricSpec = $root.google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessSpec.toObject(message.metricSpec, options); + object.metricSpec = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpec.toObject(message.metricSpec, options); if (message.instance != null && message.hasOwnProperty("instance")) - object.instance = $root.google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance.toObject(message.instance, options); + object.instance = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance.toObject(message.instance, options); return object; }; /** - * Converts this SummarizationHelpfulnessInput to JSON. + * Converts this QuestionAnsweringQualityInput to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInput + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInput * @instance * @returns {Object.} JSON object */ - SummarizationHelpfulnessInput.prototype.toJSON = function toJSON() { + QuestionAnsweringQualityInput.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SummarizationHelpfulnessInput + * Gets the default type url for QuestionAnsweringQualityInput * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInput + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInput * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SummarizationHelpfulnessInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + QuestionAnsweringQualityInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInput"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInput"; }; - return SummarizationHelpfulnessInput; + return QuestionAnsweringQualityInput; })(); - v1beta1.SummarizationHelpfulnessInstance = (function() { + v1beta1.QuestionAnsweringQualityInstance = (function() { /** - * Properties of a SummarizationHelpfulnessInstance. + * Properties of a QuestionAnsweringQualityInstance. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ISummarizationHelpfulnessInstance - * @property {string|null} [prediction] SummarizationHelpfulnessInstance prediction - * @property {string|null} [reference] SummarizationHelpfulnessInstance reference - * @property {string|null} [context] SummarizationHelpfulnessInstance context - * @property {string|null} [instruction] SummarizationHelpfulnessInstance instruction + * @interface IQuestionAnsweringQualityInstance + * @property {string|null} [prediction] QuestionAnsweringQualityInstance prediction + * @property {string|null} [reference] QuestionAnsweringQualityInstance reference + * @property {string|null} [context] QuestionAnsweringQualityInstance context + * @property {string|null} [instruction] QuestionAnsweringQualityInstance instruction */ /** - * Constructs a new SummarizationHelpfulnessInstance. + * Constructs a new QuestionAnsweringQualityInstance. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a SummarizationHelpfulnessInstance. - * @implements ISummarizationHelpfulnessInstance + * @classdesc Represents a QuestionAnsweringQualityInstance. + * @implements IQuestionAnsweringQualityInstance * @constructor - * @param {google.cloud.aiplatform.v1beta1.ISummarizationHelpfulnessInstance=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringQualityInstance=} [properties] Properties to set */ - function SummarizationHelpfulnessInstance(properties) { + function QuestionAnsweringQualityInstance(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -345657,106 +377558,106 @@ } /** - * SummarizationHelpfulnessInstance prediction. + * QuestionAnsweringQualityInstance prediction. * @member {string|null|undefined} prediction - * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance * @instance */ - SummarizationHelpfulnessInstance.prototype.prediction = null; + QuestionAnsweringQualityInstance.prototype.prediction = null; /** - * SummarizationHelpfulnessInstance reference. + * QuestionAnsweringQualityInstance reference. * @member {string|null|undefined} reference - * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance * @instance */ - SummarizationHelpfulnessInstance.prototype.reference = null; + QuestionAnsweringQualityInstance.prototype.reference = null; /** - * SummarizationHelpfulnessInstance context. + * QuestionAnsweringQualityInstance context. * @member {string|null|undefined} context - * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance * @instance */ - SummarizationHelpfulnessInstance.prototype.context = null; + QuestionAnsweringQualityInstance.prototype.context = null; /** - * SummarizationHelpfulnessInstance instruction. + * QuestionAnsweringQualityInstance instruction. * @member {string|null|undefined} instruction - * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance * @instance */ - SummarizationHelpfulnessInstance.prototype.instruction = null; + QuestionAnsweringQualityInstance.prototype.instruction = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * SummarizationHelpfulnessInstance _prediction. + * QuestionAnsweringQualityInstance _prediction. * @member {"prediction"|undefined} _prediction - * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance * @instance */ - Object.defineProperty(SummarizationHelpfulnessInstance.prototype, "_prediction", { + Object.defineProperty(QuestionAnsweringQualityInstance.prototype, "_prediction", { get: $util.oneOfGetter($oneOfFields = ["prediction"]), set: $util.oneOfSetter($oneOfFields) }); /** - * SummarizationHelpfulnessInstance _reference. + * QuestionAnsweringQualityInstance _reference. * @member {"reference"|undefined} _reference - * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance * @instance */ - Object.defineProperty(SummarizationHelpfulnessInstance.prototype, "_reference", { + Object.defineProperty(QuestionAnsweringQualityInstance.prototype, "_reference", { get: $util.oneOfGetter($oneOfFields = ["reference"]), set: $util.oneOfSetter($oneOfFields) }); /** - * SummarizationHelpfulnessInstance _context. + * QuestionAnsweringQualityInstance _context. * @member {"context"|undefined} _context - * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance * @instance */ - Object.defineProperty(SummarizationHelpfulnessInstance.prototype, "_context", { + Object.defineProperty(QuestionAnsweringQualityInstance.prototype, "_context", { get: $util.oneOfGetter($oneOfFields = ["context"]), set: $util.oneOfSetter($oneOfFields) }); /** - * SummarizationHelpfulnessInstance _instruction. + * QuestionAnsweringQualityInstance _instruction. * @member {"instruction"|undefined} _instruction - * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance * @instance */ - Object.defineProperty(SummarizationHelpfulnessInstance.prototype, "_instruction", { + Object.defineProperty(QuestionAnsweringQualityInstance.prototype, "_instruction", { get: $util.oneOfGetter($oneOfFields = ["instruction"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new SummarizationHelpfulnessInstance instance using the specified properties. + * Creates a new QuestionAnsweringQualityInstance instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance * @static - * @param {google.cloud.aiplatform.v1beta1.ISummarizationHelpfulnessInstance=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance} SummarizationHelpfulnessInstance instance + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringQualityInstance=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance} QuestionAnsweringQualityInstance instance */ - SummarizationHelpfulnessInstance.create = function create(properties) { - return new SummarizationHelpfulnessInstance(properties); + QuestionAnsweringQualityInstance.create = function create(properties) { + return new QuestionAnsweringQualityInstance(properties); }; /** - * Encodes the specified SummarizationHelpfulnessInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance.verify|verify} messages. + * Encodes the specified QuestionAnsweringQualityInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance * @static - * @param {google.cloud.aiplatform.v1beta1.ISummarizationHelpfulnessInstance} message SummarizationHelpfulnessInstance message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringQualityInstance} message QuestionAnsweringQualityInstance message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SummarizationHelpfulnessInstance.encode = function encode(message, writer) { + QuestionAnsweringQualityInstance.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.prediction != null && Object.hasOwnProperty.call(message, "prediction")) @@ -345771,33 +377672,33 @@ }; /** - * Encodes the specified SummarizationHelpfulnessInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance.verify|verify} messages. + * Encodes the specified QuestionAnsweringQualityInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance * @static - * @param {google.cloud.aiplatform.v1beta1.ISummarizationHelpfulnessInstance} message SummarizationHelpfulnessInstance message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringQualityInstance} message QuestionAnsweringQualityInstance message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SummarizationHelpfulnessInstance.encodeDelimited = function encodeDelimited(message, writer) { + QuestionAnsweringQualityInstance.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SummarizationHelpfulnessInstance message from the specified reader or buffer. + * Decodes a QuestionAnsweringQualityInstance message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance * @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.SummarizationHelpfulnessInstance} SummarizationHelpfulnessInstance + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance} QuestionAnsweringQualityInstance * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SummarizationHelpfulnessInstance.decode = function decode(reader, length) { + QuestionAnsweringQualityInstance.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.SummarizationHelpfulnessInstance(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -345826,30 +377727,30 @@ }; /** - * Decodes a SummarizationHelpfulnessInstance message from the specified reader or buffer, length delimited. + * Decodes a QuestionAnsweringQualityInstance message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance} SummarizationHelpfulnessInstance + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance} QuestionAnsweringQualityInstance * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SummarizationHelpfulnessInstance.decodeDelimited = function decodeDelimited(reader) { + QuestionAnsweringQualityInstance.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SummarizationHelpfulnessInstance message. + * Verifies a QuestionAnsweringQualityInstance message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SummarizationHelpfulnessInstance.verify = function verify(message) { + QuestionAnsweringQualityInstance.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -345877,17 +377778,17 @@ }; /** - * Creates a SummarizationHelpfulnessInstance message from a plain object. Also converts values to their respective internal types. + * Creates a QuestionAnsweringQualityInstance message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance} SummarizationHelpfulnessInstance + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance} QuestionAnsweringQualityInstance */ - SummarizationHelpfulnessInstance.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance) + QuestionAnsweringQualityInstance.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance(); + var message = new $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance(); if (object.prediction != null) message.prediction = String(object.prediction); if (object.reference != null) @@ -345900,15 +377801,15 @@ }; /** - * Creates a plain object from a SummarizationHelpfulnessInstance message. Also converts values to other types if specified. + * Creates a plain object from a QuestionAnsweringQualityInstance message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance * @static - * @param {google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance} message SummarizationHelpfulnessInstance + * @param {google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance} message QuestionAnsweringQualityInstance * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SummarizationHelpfulnessInstance.toObject = function toObject(message, options) { + QuestionAnsweringQualityInstance.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -345936,53 +377837,53 @@ }; /** - * Converts this SummarizationHelpfulnessInstance to JSON. + * Converts this QuestionAnsweringQualityInstance to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance * @instance * @returns {Object.} JSON object */ - SummarizationHelpfulnessInstance.prototype.toJSON = function toJSON() { + QuestionAnsweringQualityInstance.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SummarizationHelpfulnessInstance + * Gets the default type url for QuestionAnsweringQualityInstance * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SummarizationHelpfulnessInstance.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + QuestionAnsweringQualityInstance.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInstance"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance"; }; - return SummarizationHelpfulnessInstance; + return QuestionAnsweringQualityInstance; })(); - v1beta1.SummarizationHelpfulnessSpec = (function() { + v1beta1.QuestionAnsweringQualitySpec = (function() { /** - * Properties of a SummarizationHelpfulnessSpec. + * Properties of a QuestionAnsweringQualitySpec. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ISummarizationHelpfulnessSpec - * @property {boolean|null} [useReference] SummarizationHelpfulnessSpec useReference - * @property {number|null} [version] SummarizationHelpfulnessSpec version + * @interface IQuestionAnsweringQualitySpec + * @property {boolean|null} [useReference] QuestionAnsweringQualitySpec useReference + * @property {number|null} [version] QuestionAnsweringQualitySpec version */ /** - * Constructs a new SummarizationHelpfulnessSpec. + * Constructs a new QuestionAnsweringQualitySpec. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a SummarizationHelpfulnessSpec. - * @implements ISummarizationHelpfulnessSpec + * @classdesc Represents a QuestionAnsweringQualitySpec. + * @implements IQuestionAnsweringQualitySpec * @constructor - * @param {google.cloud.aiplatform.v1beta1.ISummarizationHelpfulnessSpec=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringQualitySpec=} [properties] Properties to set */ - function SummarizationHelpfulnessSpec(properties) { + function QuestionAnsweringQualitySpec(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -345990,43 +377891,43 @@ } /** - * SummarizationHelpfulnessSpec useReference. + * QuestionAnsweringQualitySpec useReference. * @member {boolean} useReference - * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessSpec + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpec * @instance */ - SummarizationHelpfulnessSpec.prototype.useReference = false; + QuestionAnsweringQualitySpec.prototype.useReference = false; /** - * SummarizationHelpfulnessSpec version. + * QuestionAnsweringQualitySpec version. * @member {number} version - * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessSpec + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpec * @instance */ - SummarizationHelpfulnessSpec.prototype.version = 0; + QuestionAnsweringQualitySpec.prototype.version = 0; /** - * Creates a new SummarizationHelpfulnessSpec instance using the specified properties. + * Creates a new QuestionAnsweringQualitySpec instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessSpec + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpec * @static - * @param {google.cloud.aiplatform.v1beta1.ISummarizationHelpfulnessSpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessSpec} SummarizationHelpfulnessSpec instance + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringQualitySpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpec} QuestionAnsweringQualitySpec instance */ - SummarizationHelpfulnessSpec.create = function create(properties) { - return new SummarizationHelpfulnessSpec(properties); + QuestionAnsweringQualitySpec.create = function create(properties) { + return new QuestionAnsweringQualitySpec(properties); }; /** - * Encodes the specified SummarizationHelpfulnessSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessSpec.verify|verify} messages. + * Encodes the specified QuestionAnsweringQualitySpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpec.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessSpec + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpec * @static - * @param {google.cloud.aiplatform.v1beta1.ISummarizationHelpfulnessSpec} message SummarizationHelpfulnessSpec message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringQualitySpec} message QuestionAnsweringQualitySpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SummarizationHelpfulnessSpec.encode = function encode(message, writer) { + QuestionAnsweringQualitySpec.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.useReference != null && Object.hasOwnProperty.call(message, "useReference")) @@ -346037,33 +377938,33 @@ }; /** - * Encodes the specified SummarizationHelpfulnessSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessSpec.verify|verify} messages. + * Encodes the specified QuestionAnsweringQualitySpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpec.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessSpec + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpec * @static - * @param {google.cloud.aiplatform.v1beta1.ISummarizationHelpfulnessSpec} message SummarizationHelpfulnessSpec message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringQualitySpec} message QuestionAnsweringQualitySpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SummarizationHelpfulnessSpec.encodeDelimited = function encodeDelimited(message, writer) { + QuestionAnsweringQualitySpec.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SummarizationHelpfulnessSpec message from the specified reader or buffer. + * Decodes a QuestionAnsweringQualitySpec message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessSpec + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpec * @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.SummarizationHelpfulnessSpec} SummarizationHelpfulnessSpec + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpec} QuestionAnsweringQualitySpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SummarizationHelpfulnessSpec.decode = function decode(reader, length) { + QuestionAnsweringQualitySpec.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.SummarizationHelpfulnessSpec(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpec(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -346084,30 +377985,30 @@ }; /** - * Decodes a SummarizationHelpfulnessSpec message from the specified reader or buffer, length delimited. + * Decodes a QuestionAnsweringQualitySpec message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessSpec + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpec * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessSpec} SummarizationHelpfulnessSpec + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpec} QuestionAnsweringQualitySpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SummarizationHelpfulnessSpec.decodeDelimited = function decodeDelimited(reader) { + QuestionAnsweringQualitySpec.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SummarizationHelpfulnessSpec message. + * Verifies a QuestionAnsweringQualitySpec message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessSpec + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpec * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SummarizationHelpfulnessSpec.verify = function verify(message) { + QuestionAnsweringQualitySpec.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.useReference != null && message.hasOwnProperty("useReference")) @@ -346120,17 +378021,17 @@ }; /** - * Creates a SummarizationHelpfulnessSpec message from a plain object. Also converts values to their respective internal types. + * Creates a QuestionAnsweringQualitySpec message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessSpec + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpec * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessSpec} SummarizationHelpfulnessSpec + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpec} QuestionAnsweringQualitySpec */ - SummarizationHelpfulnessSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessSpec) + QuestionAnsweringQualitySpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpec) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessSpec(); + var message = new $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpec(); if (object.useReference != null) message.useReference = Boolean(object.useReference); if (object.version != null) @@ -346139,15 +378040,15 @@ }; /** - * Creates a plain object from a SummarizationHelpfulnessSpec message. Also converts values to other types if specified. + * Creates a plain object from a QuestionAnsweringQualitySpec message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessSpec + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpec * @static - * @param {google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessSpec} message SummarizationHelpfulnessSpec + * @param {google.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpec} message QuestionAnsweringQualitySpec * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SummarizationHelpfulnessSpec.toObject = function toObject(message, options) { + QuestionAnsweringQualitySpec.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -346163,54 +378064,54 @@ }; /** - * Converts this SummarizationHelpfulnessSpec to JSON. + * Converts this QuestionAnsweringQualitySpec to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessSpec + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpec * @instance * @returns {Object.} JSON object */ - SummarizationHelpfulnessSpec.prototype.toJSON = function toJSON() { + QuestionAnsweringQualitySpec.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SummarizationHelpfulnessSpec + * Gets the default type url for QuestionAnsweringQualitySpec * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessSpec + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpec * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SummarizationHelpfulnessSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + QuestionAnsweringQualitySpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessSpec"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpec"; }; - return SummarizationHelpfulnessSpec; + return QuestionAnsweringQualitySpec; })(); - v1beta1.SummarizationHelpfulnessResult = (function() { + v1beta1.QuestionAnsweringQualityResult = (function() { /** - * Properties of a SummarizationHelpfulnessResult. + * Properties of a QuestionAnsweringQualityResult. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ISummarizationHelpfulnessResult - * @property {number|null} [score] SummarizationHelpfulnessResult score - * @property {string|null} [explanation] SummarizationHelpfulnessResult explanation - * @property {number|null} [confidence] SummarizationHelpfulnessResult confidence + * @interface IQuestionAnsweringQualityResult + * @property {number|null} [score] QuestionAnsweringQualityResult score + * @property {string|null} [explanation] QuestionAnsweringQualityResult explanation + * @property {number|null} [confidence] QuestionAnsweringQualityResult confidence */ /** - * Constructs a new SummarizationHelpfulnessResult. + * Constructs a new QuestionAnsweringQualityResult. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a SummarizationHelpfulnessResult. - * @implements ISummarizationHelpfulnessResult + * @classdesc Represents a QuestionAnsweringQualityResult. + * @implements IQuestionAnsweringQualityResult * @constructor - * @param {google.cloud.aiplatform.v1beta1.ISummarizationHelpfulnessResult=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringQualityResult=} [properties] Properties to set */ - function SummarizationHelpfulnessResult(properties) { + function QuestionAnsweringQualityResult(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -346218,76 +378119,76 @@ } /** - * SummarizationHelpfulnessResult score. + * QuestionAnsweringQualityResult score. * @member {number|null|undefined} score - * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessResult + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityResult * @instance */ - SummarizationHelpfulnessResult.prototype.score = null; + QuestionAnsweringQualityResult.prototype.score = null; /** - * SummarizationHelpfulnessResult explanation. + * QuestionAnsweringQualityResult explanation. * @member {string} explanation - * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessResult + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityResult * @instance */ - SummarizationHelpfulnessResult.prototype.explanation = ""; + QuestionAnsweringQualityResult.prototype.explanation = ""; /** - * SummarizationHelpfulnessResult confidence. + * QuestionAnsweringQualityResult confidence. * @member {number|null|undefined} confidence - * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessResult + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityResult * @instance */ - SummarizationHelpfulnessResult.prototype.confidence = null; + QuestionAnsweringQualityResult.prototype.confidence = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * SummarizationHelpfulnessResult _score. + * QuestionAnsweringQualityResult _score. * @member {"score"|undefined} _score - * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessResult + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityResult * @instance */ - Object.defineProperty(SummarizationHelpfulnessResult.prototype, "_score", { + Object.defineProperty(QuestionAnsweringQualityResult.prototype, "_score", { get: $util.oneOfGetter($oneOfFields = ["score"]), set: $util.oneOfSetter($oneOfFields) }); /** - * SummarizationHelpfulnessResult _confidence. + * QuestionAnsweringQualityResult _confidence. * @member {"confidence"|undefined} _confidence - * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessResult + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityResult * @instance */ - Object.defineProperty(SummarizationHelpfulnessResult.prototype, "_confidence", { + Object.defineProperty(QuestionAnsweringQualityResult.prototype, "_confidence", { get: $util.oneOfGetter($oneOfFields = ["confidence"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new SummarizationHelpfulnessResult instance using the specified properties. + * Creates a new QuestionAnsweringQualityResult instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessResult + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityResult * @static - * @param {google.cloud.aiplatform.v1beta1.ISummarizationHelpfulnessResult=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessResult} SummarizationHelpfulnessResult instance + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringQualityResult=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityResult} QuestionAnsweringQualityResult instance */ - SummarizationHelpfulnessResult.create = function create(properties) { - return new SummarizationHelpfulnessResult(properties); + QuestionAnsweringQualityResult.create = function create(properties) { + return new QuestionAnsweringQualityResult(properties); }; /** - * Encodes the specified SummarizationHelpfulnessResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessResult.verify|verify} messages. + * Encodes the specified QuestionAnsweringQualityResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityResult.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessResult + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityResult * @static - * @param {google.cloud.aiplatform.v1beta1.ISummarizationHelpfulnessResult} message SummarizationHelpfulnessResult message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringQualityResult} message QuestionAnsweringQualityResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SummarizationHelpfulnessResult.encode = function encode(message, writer) { + QuestionAnsweringQualityResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.score != null && Object.hasOwnProperty.call(message, "score")) @@ -346300,33 +378201,33 @@ }; /** - * Encodes the specified SummarizationHelpfulnessResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessResult.verify|verify} messages. + * Encodes the specified QuestionAnsweringQualityResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityResult.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessResult + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityResult * @static - * @param {google.cloud.aiplatform.v1beta1.ISummarizationHelpfulnessResult} message SummarizationHelpfulnessResult message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringQualityResult} message QuestionAnsweringQualityResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SummarizationHelpfulnessResult.encodeDelimited = function encodeDelimited(message, writer) { + QuestionAnsweringQualityResult.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SummarizationHelpfulnessResult message from the specified reader or buffer. + * Decodes a QuestionAnsweringQualityResult message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessResult + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityResult * @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.SummarizationHelpfulnessResult} SummarizationHelpfulnessResult + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityResult} QuestionAnsweringQualityResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SummarizationHelpfulnessResult.decode = function decode(reader, length) { + QuestionAnsweringQualityResult.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.SummarizationHelpfulnessResult(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityResult(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -346351,30 +378252,30 @@ }; /** - * Decodes a SummarizationHelpfulnessResult message from the specified reader or buffer, length delimited. + * Decodes a QuestionAnsweringQualityResult message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessResult + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessResult} SummarizationHelpfulnessResult + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityResult} QuestionAnsweringQualityResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SummarizationHelpfulnessResult.decodeDelimited = function decodeDelimited(reader) { + QuestionAnsweringQualityResult.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SummarizationHelpfulnessResult message. + * Verifies a QuestionAnsweringQualityResult message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessResult + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityResult * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SummarizationHelpfulnessResult.verify = function verify(message) { + QuestionAnsweringQualityResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -346395,17 +378296,17 @@ }; /** - * Creates a SummarizationHelpfulnessResult message from a plain object. Also converts values to their respective internal types. + * Creates a QuestionAnsweringQualityResult message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessResult + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityResult * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessResult} SummarizationHelpfulnessResult + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityResult} QuestionAnsweringQualityResult */ - SummarizationHelpfulnessResult.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessResult) + QuestionAnsweringQualityResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityResult) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessResult(); + var message = new $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityResult(); if (object.score != null) message.score = Number(object.score); if (object.explanation != null) @@ -346416,15 +378317,15 @@ }; /** - * Creates a plain object from a SummarizationHelpfulnessResult message. Also converts values to other types if specified. + * Creates a plain object from a QuestionAnsweringQualityResult message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessResult + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityResult * @static - * @param {google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessResult} message SummarizationHelpfulnessResult + * @param {google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityResult} message QuestionAnsweringQualityResult * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SummarizationHelpfulnessResult.toObject = function toObject(message, options) { + QuestionAnsweringQualityResult.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -346446,53 +378347,53 @@ }; /** - * Converts this SummarizationHelpfulnessResult to JSON. + * Converts this QuestionAnsweringQualityResult to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessResult + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityResult * @instance * @returns {Object.} JSON object */ - SummarizationHelpfulnessResult.prototype.toJSON = function toJSON() { + QuestionAnsweringQualityResult.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SummarizationHelpfulnessResult + * Gets the default type url for QuestionAnsweringQualityResult * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessResult + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityResult * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SummarizationHelpfulnessResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + QuestionAnsweringQualityResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessResult"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityResult"; }; - return SummarizationHelpfulnessResult; + return QuestionAnsweringQualityResult; })(); - v1beta1.SummarizationVerbosityInput = (function() { + v1beta1.PairwiseQuestionAnsweringQualityInput = (function() { /** - * Properties of a SummarizationVerbosityInput. + * Properties of a PairwiseQuestionAnsweringQualityInput. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ISummarizationVerbosityInput - * @property {google.cloud.aiplatform.v1beta1.ISummarizationVerbositySpec|null} [metricSpec] SummarizationVerbosityInput metricSpec - * @property {google.cloud.aiplatform.v1beta1.ISummarizationVerbosityInstance|null} [instance] SummarizationVerbosityInput instance + * @interface IPairwiseQuestionAnsweringQualityInput + * @property {google.cloud.aiplatform.v1beta1.IPairwiseQuestionAnsweringQualitySpec|null} [metricSpec] PairwiseQuestionAnsweringQualityInput metricSpec + * @property {google.cloud.aiplatform.v1beta1.IPairwiseQuestionAnsweringQualityInstance|null} [instance] PairwiseQuestionAnsweringQualityInput instance */ /** - * Constructs a new SummarizationVerbosityInput. + * Constructs a new PairwiseQuestionAnsweringQualityInput. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a SummarizationVerbosityInput. - * @implements ISummarizationVerbosityInput + * @classdesc Represents a PairwiseQuestionAnsweringQualityInput. + * @implements IPairwiseQuestionAnsweringQualityInput * @constructor - * @param {google.cloud.aiplatform.v1beta1.ISummarizationVerbosityInput=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IPairwiseQuestionAnsweringQualityInput=} [properties] Properties to set */ - function SummarizationVerbosityInput(properties) { + function PairwiseQuestionAnsweringQualityInput(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -346500,89 +378401,89 @@ } /** - * SummarizationVerbosityInput metricSpec. - * @member {google.cloud.aiplatform.v1beta1.ISummarizationVerbositySpec|null|undefined} metricSpec - * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityInput + * PairwiseQuestionAnsweringQualityInput metricSpec. + * @member {google.cloud.aiplatform.v1beta1.IPairwiseQuestionAnsweringQualitySpec|null|undefined} metricSpec + * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInput * @instance */ - SummarizationVerbosityInput.prototype.metricSpec = null; + PairwiseQuestionAnsweringQualityInput.prototype.metricSpec = null; /** - * SummarizationVerbosityInput instance. - * @member {google.cloud.aiplatform.v1beta1.ISummarizationVerbosityInstance|null|undefined} instance - * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityInput + * PairwiseQuestionAnsweringQualityInput instance. + * @member {google.cloud.aiplatform.v1beta1.IPairwiseQuestionAnsweringQualityInstance|null|undefined} instance + * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInput * @instance */ - SummarizationVerbosityInput.prototype.instance = null; + PairwiseQuestionAnsweringQualityInput.prototype.instance = null; /** - * Creates a new SummarizationVerbosityInput instance using the specified properties. + * Creates a new PairwiseQuestionAnsweringQualityInput instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityInput + * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInput * @static - * @param {google.cloud.aiplatform.v1beta1.ISummarizationVerbosityInput=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.SummarizationVerbosityInput} SummarizationVerbosityInput instance + * @param {google.cloud.aiplatform.v1beta1.IPairwiseQuestionAnsweringQualityInput=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInput} PairwiseQuestionAnsweringQualityInput instance */ - SummarizationVerbosityInput.create = function create(properties) { - return new SummarizationVerbosityInput(properties); + PairwiseQuestionAnsweringQualityInput.create = function create(properties) { + return new PairwiseQuestionAnsweringQualityInput(properties); }; /** - * Encodes the specified SummarizationVerbosityInput message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SummarizationVerbosityInput.verify|verify} messages. + * Encodes the specified PairwiseQuestionAnsweringQualityInput message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInput.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityInput + * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInput * @static - * @param {google.cloud.aiplatform.v1beta1.ISummarizationVerbosityInput} message SummarizationVerbosityInput message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPairwiseQuestionAnsweringQualityInput} message PairwiseQuestionAnsweringQualityInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SummarizationVerbosityInput.encode = function encode(message, writer) { + PairwiseQuestionAnsweringQualityInput.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.metricSpec != null && Object.hasOwnProperty.call(message, "metricSpec")) - $root.google.cloud.aiplatform.v1beta1.SummarizationVerbositySpec.encode(message.metricSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualitySpec.encode(message.metricSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.instance != null && Object.hasOwnProperty.call(message, "instance")) - $root.google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance.encode(message.instance, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance.encode(message.instance, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified SummarizationVerbosityInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SummarizationVerbosityInput.verify|verify} messages. + * Encodes the specified PairwiseQuestionAnsweringQualityInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInput.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityInput + * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInput * @static - * @param {google.cloud.aiplatform.v1beta1.ISummarizationVerbosityInput} message SummarizationVerbosityInput message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPairwiseQuestionAnsweringQualityInput} message PairwiseQuestionAnsweringQualityInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SummarizationVerbosityInput.encodeDelimited = function encodeDelimited(message, writer) { + PairwiseQuestionAnsweringQualityInput.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SummarizationVerbosityInput message from the specified reader or buffer. + * Decodes a PairwiseQuestionAnsweringQualityInput message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityInput + * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInput * @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.SummarizationVerbosityInput} SummarizationVerbosityInput + * @returns {google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInput} PairwiseQuestionAnsweringQualityInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SummarizationVerbosityInput.decode = function decode(reader, length) { + PairwiseQuestionAnsweringQualityInput.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.SummarizationVerbosityInput(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInput(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.metricSpec = $root.google.cloud.aiplatform.v1beta1.SummarizationVerbositySpec.decode(reader, reader.uint32()); + message.metricSpec = $root.google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualitySpec.decode(reader, reader.uint32()); break; } case 2: { - message.instance = $root.google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance.decode(reader, reader.uint32()); + message.instance = $root.google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance.decode(reader, reader.uint32()); break; } default: @@ -346594,39 +378495,39 @@ }; /** - * Decodes a SummarizationVerbosityInput message from the specified reader or buffer, length delimited. + * Decodes a PairwiseQuestionAnsweringQualityInput message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityInput + * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.SummarizationVerbosityInput} SummarizationVerbosityInput + * @returns {google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInput} PairwiseQuestionAnsweringQualityInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SummarizationVerbosityInput.decodeDelimited = function decodeDelimited(reader) { + PairwiseQuestionAnsweringQualityInput.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SummarizationVerbosityInput message. + * Verifies a PairwiseQuestionAnsweringQualityInput message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityInput + * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInput * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SummarizationVerbosityInput.verify = function verify(message) { + PairwiseQuestionAnsweringQualityInput.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) { - var error = $root.google.cloud.aiplatform.v1beta1.SummarizationVerbositySpec.verify(message.metricSpec); + var error = $root.google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualitySpec.verify(message.metricSpec); if (error) return "metricSpec." + error; } if (message.instance != null && message.hasOwnProperty("instance")) { - var error = $root.google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance.verify(message.instance); + var error = $root.google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance.verify(message.instance); if (error) return "instance." + error; } @@ -346634,40 +378535,40 @@ }; /** - * Creates a SummarizationVerbosityInput message from a plain object. Also converts values to their respective internal types. + * Creates a PairwiseQuestionAnsweringQualityInput message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityInput + * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInput * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.SummarizationVerbosityInput} SummarizationVerbosityInput + * @returns {google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInput} PairwiseQuestionAnsweringQualityInput */ - SummarizationVerbosityInput.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.SummarizationVerbosityInput) + PairwiseQuestionAnsweringQualityInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInput) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.SummarizationVerbosityInput(); + var message = new $root.google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInput(); if (object.metricSpec != null) { if (typeof object.metricSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.SummarizationVerbosityInput.metricSpec: object expected"); - message.metricSpec = $root.google.cloud.aiplatform.v1beta1.SummarizationVerbositySpec.fromObject(object.metricSpec); + throw TypeError(".google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInput.metricSpec: object expected"); + message.metricSpec = $root.google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualitySpec.fromObject(object.metricSpec); } if (object.instance != null) { if (typeof object.instance !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.SummarizationVerbosityInput.instance: object expected"); - message.instance = $root.google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance.fromObject(object.instance); + throw TypeError(".google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInput.instance: object expected"); + message.instance = $root.google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance.fromObject(object.instance); } return message; }; /** - * Creates a plain object from a SummarizationVerbosityInput message. Also converts values to other types if specified. + * Creates a plain object from a PairwiseQuestionAnsweringQualityInput message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityInput + * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInput * @static - * @param {google.cloud.aiplatform.v1beta1.SummarizationVerbosityInput} message SummarizationVerbosityInput + * @param {google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInput} message PairwiseQuestionAnsweringQualityInput * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SummarizationVerbosityInput.toObject = function toObject(message, options) { + PairwiseQuestionAnsweringQualityInput.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -346676,62 +378577,63 @@ object.instance = null; } if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) - object.metricSpec = $root.google.cloud.aiplatform.v1beta1.SummarizationVerbositySpec.toObject(message.metricSpec, options); + object.metricSpec = $root.google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualitySpec.toObject(message.metricSpec, options); if (message.instance != null && message.hasOwnProperty("instance")) - object.instance = $root.google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance.toObject(message.instance, options); + object.instance = $root.google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance.toObject(message.instance, options); return object; }; /** - * Converts this SummarizationVerbosityInput to JSON. + * Converts this PairwiseQuestionAnsweringQualityInput to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityInput + * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInput * @instance * @returns {Object.} JSON object */ - SummarizationVerbosityInput.prototype.toJSON = function toJSON() { + PairwiseQuestionAnsweringQualityInput.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SummarizationVerbosityInput + * Gets the default type url for PairwiseQuestionAnsweringQualityInput * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityInput + * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInput * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SummarizationVerbosityInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PairwiseQuestionAnsweringQualityInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.SummarizationVerbosityInput"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInput"; }; - return SummarizationVerbosityInput; + return PairwiseQuestionAnsweringQualityInput; })(); - v1beta1.SummarizationVerbosityInstance = (function() { + v1beta1.PairwiseQuestionAnsweringQualityInstance = (function() { /** - * Properties of a SummarizationVerbosityInstance. + * Properties of a PairwiseQuestionAnsweringQualityInstance. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ISummarizationVerbosityInstance - * @property {string|null} [prediction] SummarizationVerbosityInstance prediction - * @property {string|null} [reference] SummarizationVerbosityInstance reference - * @property {string|null} [context] SummarizationVerbosityInstance context - * @property {string|null} [instruction] SummarizationVerbosityInstance instruction + * @interface IPairwiseQuestionAnsweringQualityInstance + * @property {string|null} [prediction] PairwiseQuestionAnsweringQualityInstance prediction + * @property {string|null} [baselinePrediction] PairwiseQuestionAnsweringQualityInstance baselinePrediction + * @property {string|null} [reference] PairwiseQuestionAnsweringQualityInstance reference + * @property {string|null} [context] PairwiseQuestionAnsweringQualityInstance context + * @property {string|null} [instruction] PairwiseQuestionAnsweringQualityInstance instruction */ /** - * Constructs a new SummarizationVerbosityInstance. + * Constructs a new PairwiseQuestionAnsweringQualityInstance. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a SummarizationVerbosityInstance. - * @implements ISummarizationVerbosityInstance + * @classdesc Represents a PairwiseQuestionAnsweringQualityInstance. + * @implements IPairwiseQuestionAnsweringQualityInstance * @constructor - * @param {google.cloud.aiplatform.v1beta1.ISummarizationVerbosityInstance=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IPairwiseQuestionAnsweringQualityInstance=} [properties] Properties to set */ - function SummarizationVerbosityInstance(properties) { + function PairwiseQuestionAnsweringQualityInstance(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -346739,147 +378641,168 @@ } /** - * SummarizationVerbosityInstance prediction. + * PairwiseQuestionAnsweringQualityInstance prediction. * @member {string|null|undefined} prediction - * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance + * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance * @instance */ - SummarizationVerbosityInstance.prototype.prediction = null; + PairwiseQuestionAnsweringQualityInstance.prototype.prediction = null; /** - * SummarizationVerbosityInstance reference. + * PairwiseQuestionAnsweringQualityInstance baselinePrediction. + * @member {string|null|undefined} baselinePrediction + * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance + * @instance + */ + PairwiseQuestionAnsweringQualityInstance.prototype.baselinePrediction = null; + + /** + * PairwiseQuestionAnsweringQualityInstance reference. * @member {string|null|undefined} reference - * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance + * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance * @instance */ - SummarizationVerbosityInstance.prototype.reference = null; + PairwiseQuestionAnsweringQualityInstance.prototype.reference = null; /** - * SummarizationVerbosityInstance context. + * PairwiseQuestionAnsweringQualityInstance context. * @member {string|null|undefined} context - * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance + * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance * @instance */ - SummarizationVerbosityInstance.prototype.context = null; + PairwiseQuestionAnsweringQualityInstance.prototype.context = null; /** - * SummarizationVerbosityInstance instruction. + * PairwiseQuestionAnsweringQualityInstance instruction. * @member {string|null|undefined} instruction - * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance + * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance * @instance */ - SummarizationVerbosityInstance.prototype.instruction = null; + PairwiseQuestionAnsweringQualityInstance.prototype.instruction = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * SummarizationVerbosityInstance _prediction. + * PairwiseQuestionAnsweringQualityInstance _prediction. * @member {"prediction"|undefined} _prediction - * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance + * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance * @instance */ - Object.defineProperty(SummarizationVerbosityInstance.prototype, "_prediction", { + Object.defineProperty(PairwiseQuestionAnsweringQualityInstance.prototype, "_prediction", { get: $util.oneOfGetter($oneOfFields = ["prediction"]), set: $util.oneOfSetter($oneOfFields) }); /** - * SummarizationVerbosityInstance _reference. + * PairwiseQuestionAnsweringQualityInstance _baselinePrediction. + * @member {"baselinePrediction"|undefined} _baselinePrediction + * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance + * @instance + */ + Object.defineProperty(PairwiseQuestionAnsweringQualityInstance.prototype, "_baselinePrediction", { + get: $util.oneOfGetter($oneOfFields = ["baselinePrediction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * PairwiseQuestionAnsweringQualityInstance _reference. * @member {"reference"|undefined} _reference - * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance + * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance * @instance */ - Object.defineProperty(SummarizationVerbosityInstance.prototype, "_reference", { + Object.defineProperty(PairwiseQuestionAnsweringQualityInstance.prototype, "_reference", { get: $util.oneOfGetter($oneOfFields = ["reference"]), set: $util.oneOfSetter($oneOfFields) }); /** - * SummarizationVerbosityInstance _context. + * PairwiseQuestionAnsweringQualityInstance _context. * @member {"context"|undefined} _context - * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance + * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance * @instance */ - Object.defineProperty(SummarizationVerbosityInstance.prototype, "_context", { + Object.defineProperty(PairwiseQuestionAnsweringQualityInstance.prototype, "_context", { get: $util.oneOfGetter($oneOfFields = ["context"]), set: $util.oneOfSetter($oneOfFields) }); /** - * SummarizationVerbosityInstance _instruction. + * PairwiseQuestionAnsweringQualityInstance _instruction. * @member {"instruction"|undefined} _instruction - * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance + * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance * @instance */ - Object.defineProperty(SummarizationVerbosityInstance.prototype, "_instruction", { + Object.defineProperty(PairwiseQuestionAnsweringQualityInstance.prototype, "_instruction", { get: $util.oneOfGetter($oneOfFields = ["instruction"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new SummarizationVerbosityInstance instance using the specified properties. + * Creates a new PairwiseQuestionAnsweringQualityInstance instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance + * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance * @static - * @param {google.cloud.aiplatform.v1beta1.ISummarizationVerbosityInstance=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance} SummarizationVerbosityInstance instance + * @param {google.cloud.aiplatform.v1beta1.IPairwiseQuestionAnsweringQualityInstance=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance} PairwiseQuestionAnsweringQualityInstance instance */ - SummarizationVerbosityInstance.create = function create(properties) { - return new SummarizationVerbosityInstance(properties); + PairwiseQuestionAnsweringQualityInstance.create = function create(properties) { + return new PairwiseQuestionAnsweringQualityInstance(properties); }; /** - * Encodes the specified SummarizationVerbosityInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance.verify|verify} messages. + * Encodes the specified PairwiseQuestionAnsweringQualityInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance + * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance * @static - * @param {google.cloud.aiplatform.v1beta1.ISummarizationVerbosityInstance} message SummarizationVerbosityInstance message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPairwiseQuestionAnsweringQualityInstance} message PairwiseQuestionAnsweringQualityInstance message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SummarizationVerbosityInstance.encode = function encode(message, writer) { + PairwiseQuestionAnsweringQualityInstance.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.prediction != null && Object.hasOwnProperty.call(message, "prediction")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.prediction); + if (message.baselinePrediction != null && Object.hasOwnProperty.call(message, "baselinePrediction")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.baselinePrediction); if (message.reference != null && Object.hasOwnProperty.call(message, "reference")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.reference); + writer.uint32(/* id 3, wireType 2 =*/26).string(message.reference); if (message.context != null && Object.hasOwnProperty.call(message, "context")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.context); + writer.uint32(/* id 4, wireType 2 =*/34).string(message.context); if (message.instruction != null && Object.hasOwnProperty.call(message, "instruction")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.instruction); + writer.uint32(/* id 5, wireType 2 =*/42).string(message.instruction); return writer; }; /** - * Encodes the specified SummarizationVerbosityInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance.verify|verify} messages. + * Encodes the specified PairwiseQuestionAnsweringQualityInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance + * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance * @static - * @param {google.cloud.aiplatform.v1beta1.ISummarizationVerbosityInstance} message SummarizationVerbosityInstance message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPairwiseQuestionAnsweringQualityInstance} message PairwiseQuestionAnsweringQualityInstance message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SummarizationVerbosityInstance.encodeDelimited = function encodeDelimited(message, writer) { + PairwiseQuestionAnsweringQualityInstance.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SummarizationVerbosityInstance message from the specified reader or buffer. + * Decodes a PairwiseQuestionAnsweringQualityInstance message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance + * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance * @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.SummarizationVerbosityInstance} SummarizationVerbosityInstance + * @returns {google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance} PairwiseQuestionAnsweringQualityInstance * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SummarizationVerbosityInstance.decode = function decode(reader, length) { + PairwiseQuestionAnsweringQualityInstance.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.SummarizationVerbosityInstance(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -346888,14 +378811,18 @@ break; } case 2: { - message.reference = reader.string(); + message.baselinePrediction = reader.string(); break; } case 3: { - message.context = reader.string(); + message.reference = reader.string(); break; } case 4: { + message.context = reader.string(); + break; + } + case 5: { message.instruction = reader.string(); break; } @@ -346908,30 +378835,30 @@ }; /** - * Decodes a SummarizationVerbosityInstance message from the specified reader or buffer, length delimited. + * Decodes a PairwiseQuestionAnsweringQualityInstance message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance + * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance} SummarizationVerbosityInstance + * @returns {google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance} PairwiseQuestionAnsweringQualityInstance * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SummarizationVerbosityInstance.decodeDelimited = function decodeDelimited(reader) { + PairwiseQuestionAnsweringQualityInstance.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SummarizationVerbosityInstance message. + * Verifies a PairwiseQuestionAnsweringQualityInstance message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance + * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SummarizationVerbosityInstance.verify = function verify(message) { + PairwiseQuestionAnsweringQualityInstance.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -346940,6 +378867,11 @@ if (!$util.isString(message.prediction)) return "prediction: string expected"; } + if (message.baselinePrediction != null && message.hasOwnProperty("baselinePrediction")) { + properties._baselinePrediction = 1; + if (!$util.isString(message.baselinePrediction)) + return "baselinePrediction: string expected"; + } if (message.reference != null && message.hasOwnProperty("reference")) { properties._reference = 1; if (!$util.isString(message.reference)) @@ -346959,19 +378891,21 @@ }; /** - * Creates a SummarizationVerbosityInstance message from a plain object. Also converts values to their respective internal types. + * Creates a PairwiseQuestionAnsweringQualityInstance message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance + * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance} SummarizationVerbosityInstance + * @returns {google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance} PairwiseQuestionAnsweringQualityInstance */ - SummarizationVerbosityInstance.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance) + PairwiseQuestionAnsweringQualityInstance.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance(); + var message = new $root.google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance(); if (object.prediction != null) message.prediction = String(object.prediction); + if (object.baselinePrediction != null) + message.baselinePrediction = String(object.baselinePrediction); if (object.reference != null) message.reference = String(object.reference); if (object.context != null) @@ -346982,15 +378916,15 @@ }; /** - * Creates a plain object from a SummarizationVerbosityInstance message. Also converts values to other types if specified. + * Creates a plain object from a PairwiseQuestionAnsweringQualityInstance message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance + * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance * @static - * @param {google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance} message SummarizationVerbosityInstance + * @param {google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance} message PairwiseQuestionAnsweringQualityInstance * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SummarizationVerbosityInstance.toObject = function toObject(message, options) { + PairwiseQuestionAnsweringQualityInstance.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -346999,6 +378933,11 @@ if (options.oneofs) object._prediction = "prediction"; } + if (message.baselinePrediction != null && message.hasOwnProperty("baselinePrediction")) { + object.baselinePrediction = message.baselinePrediction; + if (options.oneofs) + object._baselinePrediction = "baselinePrediction"; + } if (message.reference != null && message.hasOwnProperty("reference")) { object.reference = message.reference; if (options.oneofs) @@ -347018,53 +378957,53 @@ }; /** - * Converts this SummarizationVerbosityInstance to JSON. + * Converts this PairwiseQuestionAnsweringQualityInstance to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance + * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance * @instance * @returns {Object.} JSON object */ - SummarizationVerbosityInstance.prototype.toJSON = function toJSON() { + PairwiseQuestionAnsweringQualityInstance.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SummarizationVerbosityInstance + * Gets the default type url for PairwiseQuestionAnsweringQualityInstance * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance + * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SummarizationVerbosityInstance.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PairwiseQuestionAnsweringQualityInstance.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstance"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance"; }; - return SummarizationVerbosityInstance; + return PairwiseQuestionAnsweringQualityInstance; })(); - v1beta1.SummarizationVerbositySpec = (function() { + v1beta1.PairwiseQuestionAnsweringQualitySpec = (function() { /** - * Properties of a SummarizationVerbositySpec. + * Properties of a PairwiseQuestionAnsweringQualitySpec. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ISummarizationVerbositySpec - * @property {boolean|null} [useReference] SummarizationVerbositySpec useReference - * @property {number|null} [version] SummarizationVerbositySpec version + * @interface IPairwiseQuestionAnsweringQualitySpec + * @property {boolean|null} [useReference] PairwiseQuestionAnsweringQualitySpec useReference + * @property {number|null} [version] PairwiseQuestionAnsweringQualitySpec version */ /** - * Constructs a new SummarizationVerbositySpec. + * Constructs a new PairwiseQuestionAnsweringQualitySpec. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a SummarizationVerbositySpec. - * @implements ISummarizationVerbositySpec + * @classdesc Represents a PairwiseQuestionAnsweringQualitySpec. + * @implements IPairwiseQuestionAnsweringQualitySpec * @constructor - * @param {google.cloud.aiplatform.v1beta1.ISummarizationVerbositySpec=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IPairwiseQuestionAnsweringQualitySpec=} [properties] Properties to set */ - function SummarizationVerbositySpec(properties) { + function PairwiseQuestionAnsweringQualitySpec(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -347072,43 +379011,43 @@ } /** - * SummarizationVerbositySpec useReference. + * PairwiseQuestionAnsweringQualitySpec useReference. * @member {boolean} useReference - * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbositySpec + * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualitySpec * @instance */ - SummarizationVerbositySpec.prototype.useReference = false; + PairwiseQuestionAnsweringQualitySpec.prototype.useReference = false; /** - * SummarizationVerbositySpec version. + * PairwiseQuestionAnsweringQualitySpec version. * @member {number} version - * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbositySpec + * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualitySpec * @instance */ - SummarizationVerbositySpec.prototype.version = 0; + PairwiseQuestionAnsweringQualitySpec.prototype.version = 0; /** - * Creates a new SummarizationVerbositySpec instance using the specified properties. + * Creates a new PairwiseQuestionAnsweringQualitySpec instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbositySpec + * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualitySpec * @static - * @param {google.cloud.aiplatform.v1beta1.ISummarizationVerbositySpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.SummarizationVerbositySpec} SummarizationVerbositySpec instance + * @param {google.cloud.aiplatform.v1beta1.IPairwiseQuestionAnsweringQualitySpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualitySpec} PairwiseQuestionAnsweringQualitySpec instance */ - SummarizationVerbositySpec.create = function create(properties) { - return new SummarizationVerbositySpec(properties); + PairwiseQuestionAnsweringQualitySpec.create = function create(properties) { + return new PairwiseQuestionAnsweringQualitySpec(properties); }; /** - * Encodes the specified SummarizationVerbositySpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SummarizationVerbositySpec.verify|verify} messages. + * Encodes the specified PairwiseQuestionAnsweringQualitySpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualitySpec.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbositySpec + * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualitySpec * @static - * @param {google.cloud.aiplatform.v1beta1.ISummarizationVerbositySpec} message SummarizationVerbositySpec message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPairwiseQuestionAnsweringQualitySpec} message PairwiseQuestionAnsweringQualitySpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SummarizationVerbositySpec.encode = function encode(message, writer) { + PairwiseQuestionAnsweringQualitySpec.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.useReference != null && Object.hasOwnProperty.call(message, "useReference")) @@ -347119,33 +379058,33 @@ }; /** - * Encodes the specified SummarizationVerbositySpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SummarizationVerbositySpec.verify|verify} messages. + * Encodes the specified PairwiseQuestionAnsweringQualitySpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualitySpec.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbositySpec + * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualitySpec * @static - * @param {google.cloud.aiplatform.v1beta1.ISummarizationVerbositySpec} message SummarizationVerbositySpec message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPairwiseQuestionAnsweringQualitySpec} message PairwiseQuestionAnsweringQualitySpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SummarizationVerbositySpec.encodeDelimited = function encodeDelimited(message, writer) { + PairwiseQuestionAnsweringQualitySpec.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SummarizationVerbositySpec message from the specified reader or buffer. + * Decodes a PairwiseQuestionAnsweringQualitySpec message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbositySpec + * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualitySpec * @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.SummarizationVerbositySpec} SummarizationVerbositySpec + * @returns {google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualitySpec} PairwiseQuestionAnsweringQualitySpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SummarizationVerbositySpec.decode = function decode(reader, length) { + PairwiseQuestionAnsweringQualitySpec.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.SummarizationVerbositySpec(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualitySpec(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -347166,30 +379105,30 @@ }; /** - * Decodes a SummarizationVerbositySpec message from the specified reader or buffer, length delimited. + * Decodes a PairwiseQuestionAnsweringQualitySpec message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbositySpec + * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualitySpec * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.SummarizationVerbositySpec} SummarizationVerbositySpec + * @returns {google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualitySpec} PairwiseQuestionAnsweringQualitySpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SummarizationVerbositySpec.decodeDelimited = function decodeDelimited(reader) { + PairwiseQuestionAnsweringQualitySpec.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SummarizationVerbositySpec message. + * Verifies a PairwiseQuestionAnsweringQualitySpec message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbositySpec + * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualitySpec * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SummarizationVerbositySpec.verify = function verify(message) { + PairwiseQuestionAnsweringQualitySpec.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.useReference != null && message.hasOwnProperty("useReference")) @@ -347202,17 +379141,17 @@ }; /** - * Creates a SummarizationVerbositySpec message from a plain object. Also converts values to their respective internal types. + * Creates a PairwiseQuestionAnsweringQualitySpec message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbositySpec + * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualitySpec * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.SummarizationVerbositySpec} SummarizationVerbositySpec + * @returns {google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualitySpec} PairwiseQuestionAnsweringQualitySpec */ - SummarizationVerbositySpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.SummarizationVerbositySpec) + PairwiseQuestionAnsweringQualitySpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualitySpec) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.SummarizationVerbositySpec(); + var message = new $root.google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualitySpec(); if (object.useReference != null) message.useReference = Boolean(object.useReference); if (object.version != null) @@ -347221,15 +379160,15 @@ }; /** - * Creates a plain object from a SummarizationVerbositySpec message. Also converts values to other types if specified. + * Creates a plain object from a PairwiseQuestionAnsweringQualitySpec message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbositySpec + * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualitySpec * @static - * @param {google.cloud.aiplatform.v1beta1.SummarizationVerbositySpec} message SummarizationVerbositySpec + * @param {google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualitySpec} message PairwiseQuestionAnsweringQualitySpec * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SummarizationVerbositySpec.toObject = function toObject(message, options) { + PairwiseQuestionAnsweringQualitySpec.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -347245,54 +379184,54 @@ }; /** - * Converts this SummarizationVerbositySpec to JSON. + * Converts this PairwiseQuestionAnsweringQualitySpec to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbositySpec + * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualitySpec * @instance * @returns {Object.} JSON object */ - SummarizationVerbositySpec.prototype.toJSON = function toJSON() { + PairwiseQuestionAnsweringQualitySpec.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SummarizationVerbositySpec + * Gets the default type url for PairwiseQuestionAnsweringQualitySpec * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbositySpec + * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualitySpec * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SummarizationVerbositySpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PairwiseQuestionAnsweringQualitySpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.SummarizationVerbositySpec"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualitySpec"; }; - return SummarizationVerbositySpec; + return PairwiseQuestionAnsweringQualitySpec; })(); - v1beta1.SummarizationVerbosityResult = (function() { + v1beta1.PairwiseQuestionAnsweringQualityResult = (function() { /** - * Properties of a SummarizationVerbosityResult. + * Properties of a PairwiseQuestionAnsweringQualityResult. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ISummarizationVerbosityResult - * @property {number|null} [score] SummarizationVerbosityResult score - * @property {string|null} [explanation] SummarizationVerbosityResult explanation - * @property {number|null} [confidence] SummarizationVerbosityResult confidence + * @interface IPairwiseQuestionAnsweringQualityResult + * @property {google.cloud.aiplatform.v1beta1.PairwiseChoice|null} [pairwiseChoice] PairwiseQuestionAnsweringQualityResult pairwiseChoice + * @property {string|null} [explanation] PairwiseQuestionAnsweringQualityResult explanation + * @property {number|null} [confidence] PairwiseQuestionAnsweringQualityResult confidence */ /** - * Constructs a new SummarizationVerbosityResult. + * Constructs a new PairwiseQuestionAnsweringQualityResult. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a SummarizationVerbosityResult. - * @implements ISummarizationVerbosityResult + * @classdesc Represents a PairwiseQuestionAnsweringQualityResult. + * @implements IPairwiseQuestionAnsweringQualityResult * @constructor - * @param {google.cloud.aiplatform.v1beta1.ISummarizationVerbosityResult=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IPairwiseQuestionAnsweringQualityResult=} [properties] Properties to set */ - function SummarizationVerbosityResult(properties) { + function PairwiseQuestionAnsweringQualityResult(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -347300,80 +379239,69 @@ } /** - * SummarizationVerbosityResult score. - * @member {number|null|undefined} score - * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityResult + * PairwiseQuestionAnsweringQualityResult pairwiseChoice. + * @member {google.cloud.aiplatform.v1beta1.PairwiseChoice} pairwiseChoice + * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityResult * @instance */ - SummarizationVerbosityResult.prototype.score = null; + PairwiseQuestionAnsweringQualityResult.prototype.pairwiseChoice = 0; /** - * SummarizationVerbosityResult explanation. + * PairwiseQuestionAnsweringQualityResult explanation. * @member {string} explanation - * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityResult + * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityResult * @instance */ - SummarizationVerbosityResult.prototype.explanation = ""; + PairwiseQuestionAnsweringQualityResult.prototype.explanation = ""; /** - * SummarizationVerbosityResult confidence. + * PairwiseQuestionAnsweringQualityResult confidence. * @member {number|null|undefined} confidence - * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityResult + * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityResult * @instance */ - SummarizationVerbosityResult.prototype.confidence = null; + PairwiseQuestionAnsweringQualityResult.prototype.confidence = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * SummarizationVerbosityResult _score. - * @member {"score"|undefined} _score - * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityResult - * @instance - */ - Object.defineProperty(SummarizationVerbosityResult.prototype, "_score", { - get: $util.oneOfGetter($oneOfFields = ["score"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * SummarizationVerbosityResult _confidence. + * PairwiseQuestionAnsweringQualityResult _confidence. * @member {"confidence"|undefined} _confidence - * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityResult + * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityResult * @instance */ - Object.defineProperty(SummarizationVerbosityResult.prototype, "_confidence", { + Object.defineProperty(PairwiseQuestionAnsweringQualityResult.prototype, "_confidence", { get: $util.oneOfGetter($oneOfFields = ["confidence"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new SummarizationVerbosityResult instance using the specified properties. + * Creates a new PairwiseQuestionAnsweringQualityResult instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityResult + * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityResult * @static - * @param {google.cloud.aiplatform.v1beta1.ISummarizationVerbosityResult=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.SummarizationVerbosityResult} SummarizationVerbosityResult instance + * @param {google.cloud.aiplatform.v1beta1.IPairwiseQuestionAnsweringQualityResult=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityResult} PairwiseQuestionAnsweringQualityResult instance */ - SummarizationVerbosityResult.create = function create(properties) { - return new SummarizationVerbosityResult(properties); + PairwiseQuestionAnsweringQualityResult.create = function create(properties) { + return new PairwiseQuestionAnsweringQualityResult(properties); }; /** - * Encodes the specified SummarizationVerbosityResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SummarizationVerbosityResult.verify|verify} messages. + * Encodes the specified PairwiseQuestionAnsweringQualityResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityResult.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityResult + * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityResult * @static - * @param {google.cloud.aiplatform.v1beta1.ISummarizationVerbosityResult} message SummarizationVerbosityResult message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPairwiseQuestionAnsweringQualityResult} message PairwiseQuestionAnsweringQualityResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SummarizationVerbosityResult.encode = function encode(message, writer) { + PairwiseQuestionAnsweringQualityResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.score != null && Object.hasOwnProperty.call(message, "score")) - writer.uint32(/* id 1, wireType 5 =*/13).float(message.score); + if (message.pairwiseChoice != null && Object.hasOwnProperty.call(message, "pairwiseChoice")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.pairwiseChoice); if (message.explanation != null && Object.hasOwnProperty.call(message, "explanation")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.explanation); if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) @@ -347382,38 +379310,38 @@ }; /** - * Encodes the specified SummarizationVerbosityResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SummarizationVerbosityResult.verify|verify} messages. + * Encodes the specified PairwiseQuestionAnsweringQualityResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityResult.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityResult + * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityResult * @static - * @param {google.cloud.aiplatform.v1beta1.ISummarizationVerbosityResult} message SummarizationVerbosityResult message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPairwiseQuestionAnsweringQualityResult} message PairwiseQuestionAnsweringQualityResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SummarizationVerbosityResult.encodeDelimited = function encodeDelimited(message, writer) { + PairwiseQuestionAnsweringQualityResult.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SummarizationVerbosityResult message from the specified reader or buffer. + * Decodes a PairwiseQuestionAnsweringQualityResult message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityResult + * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityResult * @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.SummarizationVerbosityResult} SummarizationVerbosityResult + * @returns {google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityResult} PairwiseQuestionAnsweringQualityResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SummarizationVerbosityResult.decode = function decode(reader, length) { + PairwiseQuestionAnsweringQualityResult.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.SummarizationVerbosityResult(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityResult(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.score = reader.float(); + message.pairwiseChoice = reader.int32(); break; } case 2: { @@ -347433,38 +379361,43 @@ }; /** - * Decodes a SummarizationVerbosityResult message from the specified reader or buffer, length delimited. + * Decodes a PairwiseQuestionAnsweringQualityResult message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityResult + * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.SummarizationVerbosityResult} SummarizationVerbosityResult + * @returns {google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityResult} PairwiseQuestionAnsweringQualityResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SummarizationVerbosityResult.decodeDelimited = function decodeDelimited(reader) { + PairwiseQuestionAnsweringQualityResult.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SummarizationVerbosityResult message. + * Verifies a PairwiseQuestionAnsweringQualityResult message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityResult + * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityResult * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SummarizationVerbosityResult.verify = function verify(message) { + PairwiseQuestionAnsweringQualityResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; - if (message.score != null && message.hasOwnProperty("score")) { - properties._score = 1; - if (typeof message.score !== "number") - return "score: number expected"; - } + if (message.pairwiseChoice != null && message.hasOwnProperty("pairwiseChoice")) + switch (message.pairwiseChoice) { + default: + return "pairwiseChoice: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } if (message.explanation != null && message.hasOwnProperty("explanation")) if (!$util.isString(message.explanation)) return "explanation: string expected"; @@ -347477,19 +379410,41 @@ }; /** - * Creates a SummarizationVerbosityResult message from a plain object. Also converts values to their respective internal types. + * Creates a PairwiseQuestionAnsweringQualityResult message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityResult + * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityResult * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.SummarizationVerbosityResult} SummarizationVerbosityResult + * @returns {google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityResult} PairwiseQuestionAnsweringQualityResult */ - SummarizationVerbosityResult.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.SummarizationVerbosityResult) + PairwiseQuestionAnsweringQualityResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityResult) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.SummarizationVerbosityResult(); - if (object.score != null) - message.score = Number(object.score); + var message = new $root.google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityResult(); + switch (object.pairwiseChoice) { + default: + if (typeof object.pairwiseChoice === "number") { + message.pairwiseChoice = object.pairwiseChoice; + break; + } + break; + case "PAIRWISE_CHOICE_UNSPECIFIED": + case 0: + message.pairwiseChoice = 0; + break; + case "BASELINE": + case 1: + message.pairwiseChoice = 1; + break; + case "CANDIDATE": + case 2: + message.pairwiseChoice = 2; + break; + case "TIE": + case 3: + message.pairwiseChoice = 3; + break; + } if (object.explanation != null) message.explanation = String(object.explanation); if (object.confidence != null) @@ -347498,25 +379453,24 @@ }; /** - * Creates a plain object from a SummarizationVerbosityResult message. Also converts values to other types if specified. + * Creates a plain object from a PairwiseQuestionAnsweringQualityResult message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityResult + * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityResult * @static - * @param {google.cloud.aiplatform.v1beta1.SummarizationVerbosityResult} message SummarizationVerbosityResult + * @param {google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityResult} message PairwiseQuestionAnsweringQualityResult * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SummarizationVerbosityResult.toObject = function toObject(message, options) { + PairwiseQuestionAnsweringQualityResult.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { + object.pairwiseChoice = options.enums === String ? "PAIRWISE_CHOICE_UNSPECIFIED" : 0; object.explanation = ""; - if (message.score != null && message.hasOwnProperty("score")) { - object.score = options.json && !isFinite(message.score) ? String(message.score) : message.score; - if (options.oneofs) - object._score = "score"; } + if (message.pairwiseChoice != null && message.hasOwnProperty("pairwiseChoice")) + object.pairwiseChoice = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.PairwiseChoice[message.pairwiseChoice] === undefined ? message.pairwiseChoice : $root.google.cloud.aiplatform.v1beta1.PairwiseChoice[message.pairwiseChoice] : message.pairwiseChoice; if (message.explanation != null && message.hasOwnProperty("explanation")) object.explanation = message.explanation; if (message.confidence != null && message.hasOwnProperty("confidence")) { @@ -347528,53 +379482,53 @@ }; /** - * Converts this SummarizationVerbosityResult to JSON. + * Converts this PairwiseQuestionAnsweringQualityResult to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityResult + * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityResult * @instance * @returns {Object.} JSON object */ - SummarizationVerbosityResult.prototype.toJSON = function toJSON() { + PairwiseQuestionAnsweringQualityResult.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SummarizationVerbosityResult + * Gets the default type url for PairwiseQuestionAnsweringQualityResult * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.SummarizationVerbosityResult + * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityResult * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SummarizationVerbosityResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PairwiseQuestionAnsweringQualityResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.SummarizationVerbosityResult"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityResult"; }; - return SummarizationVerbosityResult; + return PairwiseQuestionAnsweringQualityResult; })(); - v1beta1.QuestionAnsweringQualityInput = (function() { + v1beta1.QuestionAnsweringRelevanceInput = (function() { /** - * Properties of a QuestionAnsweringQualityInput. + * Properties of a QuestionAnsweringRelevanceInput. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IQuestionAnsweringQualityInput - * @property {google.cloud.aiplatform.v1beta1.IQuestionAnsweringQualitySpec|null} [metricSpec] QuestionAnsweringQualityInput metricSpec - * @property {google.cloud.aiplatform.v1beta1.IQuestionAnsweringQualityInstance|null} [instance] QuestionAnsweringQualityInput instance + * @interface IQuestionAnsweringRelevanceInput + * @property {google.cloud.aiplatform.v1beta1.IQuestionAnsweringRelevanceSpec|null} [metricSpec] QuestionAnsweringRelevanceInput metricSpec + * @property {google.cloud.aiplatform.v1beta1.IQuestionAnsweringRelevanceInstance|null} [instance] QuestionAnsweringRelevanceInput instance */ /** - * Constructs a new QuestionAnsweringQualityInput. + * Constructs a new QuestionAnsweringRelevanceInput. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a QuestionAnsweringQualityInput. - * @implements IQuestionAnsweringQualityInput + * @classdesc Represents a QuestionAnsweringRelevanceInput. + * @implements IQuestionAnsweringRelevanceInput * @constructor - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringQualityInput=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringRelevanceInput=} [properties] Properties to set */ - function QuestionAnsweringQualityInput(properties) { + function QuestionAnsweringRelevanceInput(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -347582,89 +379536,89 @@ } /** - * QuestionAnsweringQualityInput metricSpec. - * @member {google.cloud.aiplatform.v1beta1.IQuestionAnsweringQualitySpec|null|undefined} metricSpec - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInput + * QuestionAnsweringRelevanceInput metricSpec. + * @member {google.cloud.aiplatform.v1beta1.IQuestionAnsweringRelevanceSpec|null|undefined} metricSpec + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInput * @instance */ - QuestionAnsweringQualityInput.prototype.metricSpec = null; + QuestionAnsweringRelevanceInput.prototype.metricSpec = null; /** - * QuestionAnsweringQualityInput instance. - * @member {google.cloud.aiplatform.v1beta1.IQuestionAnsweringQualityInstance|null|undefined} instance - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInput + * QuestionAnsweringRelevanceInput instance. + * @member {google.cloud.aiplatform.v1beta1.IQuestionAnsweringRelevanceInstance|null|undefined} instance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInput * @instance */ - QuestionAnsweringQualityInput.prototype.instance = null; + QuestionAnsweringRelevanceInput.prototype.instance = null; /** - * Creates a new QuestionAnsweringQualityInput instance using the specified properties. + * Creates a new QuestionAnsweringRelevanceInput instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInput + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInput * @static - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringQualityInput=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInput} QuestionAnsweringQualityInput instance + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringRelevanceInput=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInput} QuestionAnsweringRelevanceInput instance */ - QuestionAnsweringQualityInput.create = function create(properties) { - return new QuestionAnsweringQualityInput(properties); + QuestionAnsweringRelevanceInput.create = function create(properties) { + return new QuestionAnsweringRelevanceInput(properties); }; /** - * Encodes the specified QuestionAnsweringQualityInput message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInput.verify|verify} messages. + * Encodes the specified QuestionAnsweringRelevanceInput message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInput.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInput + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInput * @static - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringQualityInput} message QuestionAnsweringQualityInput message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringRelevanceInput} message QuestionAnsweringRelevanceInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QuestionAnsweringQualityInput.encode = function encode(message, writer) { + QuestionAnsweringRelevanceInput.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.metricSpec != null && Object.hasOwnProperty.call(message, "metricSpec")) - $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpec.encode(message.metricSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceSpec.encode(message.metricSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.instance != null && Object.hasOwnProperty.call(message, "instance")) - $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance.encode(message.instance, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance.encode(message.instance, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified QuestionAnsweringQualityInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInput.verify|verify} messages. + * Encodes the specified QuestionAnsweringRelevanceInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInput.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInput + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInput * @static - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringQualityInput} message QuestionAnsweringQualityInput message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringRelevanceInput} message QuestionAnsweringRelevanceInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QuestionAnsweringQualityInput.encodeDelimited = function encodeDelimited(message, writer) { + QuestionAnsweringRelevanceInput.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QuestionAnsweringQualityInput message from the specified reader or buffer. + * Decodes a QuestionAnsweringRelevanceInput message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInput + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInput * @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.QuestionAnsweringQualityInput} QuestionAnsweringQualityInput + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInput} QuestionAnsweringRelevanceInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QuestionAnsweringQualityInput.decode = function decode(reader, length) { + QuestionAnsweringRelevanceInput.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.QuestionAnsweringQualityInput(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInput(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.metricSpec = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpec.decode(reader, reader.uint32()); + message.metricSpec = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceSpec.decode(reader, reader.uint32()); break; } case 2: { - message.instance = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance.decode(reader, reader.uint32()); + message.instance = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance.decode(reader, reader.uint32()); break; } default: @@ -347676,39 +379630,39 @@ }; /** - * Decodes a QuestionAnsweringQualityInput message from the specified reader or buffer, length delimited. + * Decodes a QuestionAnsweringRelevanceInput message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInput + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInput} QuestionAnsweringQualityInput + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInput} QuestionAnsweringRelevanceInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QuestionAnsweringQualityInput.decodeDelimited = function decodeDelimited(reader) { + QuestionAnsweringRelevanceInput.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QuestionAnsweringQualityInput message. + * Verifies a QuestionAnsweringRelevanceInput message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInput + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInput * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QuestionAnsweringQualityInput.verify = function verify(message) { + QuestionAnsweringRelevanceInput.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) { - var error = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpec.verify(message.metricSpec); + var error = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceSpec.verify(message.metricSpec); if (error) return "metricSpec." + error; } if (message.instance != null && message.hasOwnProperty("instance")) { - var error = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance.verify(message.instance); + var error = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance.verify(message.instance); if (error) return "instance." + error; } @@ -347716,40 +379670,40 @@ }; /** - * Creates a QuestionAnsweringQualityInput message from a plain object. Also converts values to their respective internal types. + * Creates a QuestionAnsweringRelevanceInput message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInput + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInput * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInput} QuestionAnsweringQualityInput + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInput} QuestionAnsweringRelevanceInput */ - QuestionAnsweringQualityInput.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInput) + QuestionAnsweringRelevanceInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInput) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInput(); + var message = new $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInput(); if (object.metricSpec != null) { if (typeof object.metricSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInput.metricSpec: object expected"); - message.metricSpec = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpec.fromObject(object.metricSpec); + throw TypeError(".google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInput.metricSpec: object expected"); + message.metricSpec = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceSpec.fromObject(object.metricSpec); } if (object.instance != null) { if (typeof object.instance !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInput.instance: object expected"); - message.instance = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance.fromObject(object.instance); + throw TypeError(".google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInput.instance: object expected"); + message.instance = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance.fromObject(object.instance); } return message; }; /** - * Creates a plain object from a QuestionAnsweringQualityInput message. Also converts values to other types if specified. + * Creates a plain object from a QuestionAnsweringRelevanceInput message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInput + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInput * @static - * @param {google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInput} message QuestionAnsweringQualityInput + * @param {google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInput} message QuestionAnsweringRelevanceInput * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QuestionAnsweringQualityInput.toObject = function toObject(message, options) { + QuestionAnsweringRelevanceInput.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -347758,62 +379712,62 @@ object.instance = null; } if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) - object.metricSpec = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpec.toObject(message.metricSpec, options); + object.metricSpec = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceSpec.toObject(message.metricSpec, options); if (message.instance != null && message.hasOwnProperty("instance")) - object.instance = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance.toObject(message.instance, options); + object.instance = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance.toObject(message.instance, options); return object; }; /** - * Converts this QuestionAnsweringQualityInput to JSON. + * Converts this QuestionAnsweringRelevanceInput to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInput + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInput * @instance * @returns {Object.} JSON object */ - QuestionAnsweringQualityInput.prototype.toJSON = function toJSON() { + QuestionAnsweringRelevanceInput.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for QuestionAnsweringQualityInput + * Gets the default type url for QuestionAnsweringRelevanceInput * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInput + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInput * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - QuestionAnsweringQualityInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + QuestionAnsweringRelevanceInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInput"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInput"; }; - return QuestionAnsweringQualityInput; + return QuestionAnsweringRelevanceInput; })(); - v1beta1.QuestionAnsweringQualityInstance = (function() { + v1beta1.QuestionAnsweringRelevanceInstance = (function() { /** - * Properties of a QuestionAnsweringQualityInstance. + * Properties of a QuestionAnsweringRelevanceInstance. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IQuestionAnsweringQualityInstance - * @property {string|null} [prediction] QuestionAnsweringQualityInstance prediction - * @property {string|null} [reference] QuestionAnsweringQualityInstance reference - * @property {string|null} [context] QuestionAnsweringQualityInstance context - * @property {string|null} [instruction] QuestionAnsweringQualityInstance instruction + * @interface IQuestionAnsweringRelevanceInstance + * @property {string|null} [prediction] QuestionAnsweringRelevanceInstance prediction + * @property {string|null} [reference] QuestionAnsweringRelevanceInstance reference + * @property {string|null} [context] QuestionAnsweringRelevanceInstance context + * @property {string|null} [instruction] QuestionAnsweringRelevanceInstance instruction */ /** - * Constructs a new QuestionAnsweringQualityInstance. + * Constructs a new QuestionAnsweringRelevanceInstance. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a QuestionAnsweringQualityInstance. - * @implements IQuestionAnsweringQualityInstance + * @classdesc Represents a QuestionAnsweringRelevanceInstance. + * @implements IQuestionAnsweringRelevanceInstance * @constructor - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringQualityInstance=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringRelevanceInstance=} [properties] Properties to set */ - function QuestionAnsweringQualityInstance(properties) { + function QuestionAnsweringRelevanceInstance(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -347821,106 +379775,106 @@ } /** - * QuestionAnsweringQualityInstance prediction. + * QuestionAnsweringRelevanceInstance prediction. * @member {string|null|undefined} prediction - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance * @instance */ - QuestionAnsweringQualityInstance.prototype.prediction = null; + QuestionAnsweringRelevanceInstance.prototype.prediction = null; /** - * QuestionAnsweringQualityInstance reference. + * QuestionAnsweringRelevanceInstance reference. * @member {string|null|undefined} reference - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance * @instance */ - QuestionAnsweringQualityInstance.prototype.reference = null; + QuestionAnsweringRelevanceInstance.prototype.reference = null; /** - * QuestionAnsweringQualityInstance context. + * QuestionAnsweringRelevanceInstance context. * @member {string|null|undefined} context - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance * @instance */ - QuestionAnsweringQualityInstance.prototype.context = null; + QuestionAnsweringRelevanceInstance.prototype.context = null; /** - * QuestionAnsweringQualityInstance instruction. + * QuestionAnsweringRelevanceInstance instruction. * @member {string|null|undefined} instruction - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance * @instance */ - QuestionAnsweringQualityInstance.prototype.instruction = null; + QuestionAnsweringRelevanceInstance.prototype.instruction = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * QuestionAnsweringQualityInstance _prediction. + * QuestionAnsweringRelevanceInstance _prediction. * @member {"prediction"|undefined} _prediction - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance * @instance */ - Object.defineProperty(QuestionAnsweringQualityInstance.prototype, "_prediction", { + Object.defineProperty(QuestionAnsweringRelevanceInstance.prototype, "_prediction", { get: $util.oneOfGetter($oneOfFields = ["prediction"]), set: $util.oneOfSetter($oneOfFields) }); /** - * QuestionAnsweringQualityInstance _reference. + * QuestionAnsweringRelevanceInstance _reference. * @member {"reference"|undefined} _reference - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance * @instance */ - Object.defineProperty(QuestionAnsweringQualityInstance.prototype, "_reference", { + Object.defineProperty(QuestionAnsweringRelevanceInstance.prototype, "_reference", { get: $util.oneOfGetter($oneOfFields = ["reference"]), set: $util.oneOfSetter($oneOfFields) }); /** - * QuestionAnsweringQualityInstance _context. + * QuestionAnsweringRelevanceInstance _context. * @member {"context"|undefined} _context - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance * @instance */ - Object.defineProperty(QuestionAnsweringQualityInstance.prototype, "_context", { + Object.defineProperty(QuestionAnsweringRelevanceInstance.prototype, "_context", { get: $util.oneOfGetter($oneOfFields = ["context"]), set: $util.oneOfSetter($oneOfFields) }); /** - * QuestionAnsweringQualityInstance _instruction. + * QuestionAnsweringRelevanceInstance _instruction. * @member {"instruction"|undefined} _instruction - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance * @instance */ - Object.defineProperty(QuestionAnsweringQualityInstance.prototype, "_instruction", { + Object.defineProperty(QuestionAnsweringRelevanceInstance.prototype, "_instruction", { get: $util.oneOfGetter($oneOfFields = ["instruction"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new QuestionAnsweringQualityInstance instance using the specified properties. + * Creates a new QuestionAnsweringRelevanceInstance instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance * @static - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringQualityInstance=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance} QuestionAnsweringQualityInstance instance + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringRelevanceInstance=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance} QuestionAnsweringRelevanceInstance instance */ - QuestionAnsweringQualityInstance.create = function create(properties) { - return new QuestionAnsweringQualityInstance(properties); + QuestionAnsweringRelevanceInstance.create = function create(properties) { + return new QuestionAnsweringRelevanceInstance(properties); }; /** - * Encodes the specified QuestionAnsweringQualityInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance.verify|verify} messages. + * Encodes the specified QuestionAnsweringRelevanceInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance * @static - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringQualityInstance} message QuestionAnsweringQualityInstance message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringRelevanceInstance} message QuestionAnsweringRelevanceInstance message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QuestionAnsweringQualityInstance.encode = function encode(message, writer) { + QuestionAnsweringRelevanceInstance.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.prediction != null && Object.hasOwnProperty.call(message, "prediction")) @@ -347935,33 +379889,33 @@ }; /** - * Encodes the specified QuestionAnsweringQualityInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance.verify|verify} messages. + * Encodes the specified QuestionAnsweringRelevanceInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance * @static - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringQualityInstance} message QuestionAnsweringQualityInstance message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringRelevanceInstance} message QuestionAnsweringRelevanceInstance message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QuestionAnsweringQualityInstance.encodeDelimited = function encodeDelimited(message, writer) { + QuestionAnsweringRelevanceInstance.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QuestionAnsweringQualityInstance message from the specified reader or buffer. + * Decodes a QuestionAnsweringRelevanceInstance message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance * @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.QuestionAnsweringQualityInstance} QuestionAnsweringQualityInstance + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance} QuestionAnsweringRelevanceInstance * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QuestionAnsweringQualityInstance.decode = function decode(reader, length) { + QuestionAnsweringRelevanceInstance.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.QuestionAnsweringQualityInstance(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -347990,30 +379944,30 @@ }; /** - * Decodes a QuestionAnsweringQualityInstance message from the specified reader or buffer, length delimited. + * Decodes a QuestionAnsweringRelevanceInstance message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance} QuestionAnsweringQualityInstance + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance} QuestionAnsweringRelevanceInstance * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QuestionAnsweringQualityInstance.decodeDelimited = function decodeDelimited(reader) { + QuestionAnsweringRelevanceInstance.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QuestionAnsweringQualityInstance message. + * Verifies a QuestionAnsweringRelevanceInstance message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QuestionAnsweringQualityInstance.verify = function verify(message) { + QuestionAnsweringRelevanceInstance.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -348041,17 +379995,17 @@ }; /** - * Creates a QuestionAnsweringQualityInstance message from a plain object. Also converts values to their respective internal types. + * Creates a QuestionAnsweringRelevanceInstance message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance} QuestionAnsweringQualityInstance + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance} QuestionAnsweringRelevanceInstance */ - QuestionAnsweringQualityInstance.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance) + QuestionAnsweringRelevanceInstance.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance(); + var message = new $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance(); if (object.prediction != null) message.prediction = String(object.prediction); if (object.reference != null) @@ -348064,15 +380018,15 @@ }; /** - * Creates a plain object from a QuestionAnsweringQualityInstance message. Also converts values to other types if specified. + * Creates a plain object from a QuestionAnsweringRelevanceInstance message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance * @static - * @param {google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance} message QuestionAnsweringQualityInstance + * @param {google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance} message QuestionAnsweringRelevanceInstance * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QuestionAnsweringQualityInstance.toObject = function toObject(message, options) { + QuestionAnsweringRelevanceInstance.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -348100,53 +380054,53 @@ }; /** - * Converts this QuestionAnsweringQualityInstance to JSON. + * Converts this QuestionAnsweringRelevanceInstance to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance * @instance * @returns {Object.} JSON object */ - QuestionAnsweringQualityInstance.prototype.toJSON = function toJSON() { + QuestionAnsweringRelevanceInstance.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for QuestionAnsweringQualityInstance + * Gets the default type url for QuestionAnsweringRelevanceInstance * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - QuestionAnsweringQualityInstance.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + QuestionAnsweringRelevanceInstance.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance"; }; - return QuestionAnsweringQualityInstance; + return QuestionAnsweringRelevanceInstance; })(); - v1beta1.QuestionAnsweringQualitySpec = (function() { + v1beta1.QuestionAnsweringRelevanceSpec = (function() { /** - * Properties of a QuestionAnsweringQualitySpec. + * Properties of a QuestionAnsweringRelevanceSpec. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IQuestionAnsweringQualitySpec - * @property {boolean|null} [useReference] QuestionAnsweringQualitySpec useReference - * @property {number|null} [version] QuestionAnsweringQualitySpec version + * @interface IQuestionAnsweringRelevanceSpec + * @property {boolean|null} [useReference] QuestionAnsweringRelevanceSpec useReference + * @property {number|null} [version] QuestionAnsweringRelevanceSpec version */ /** - * Constructs a new QuestionAnsweringQualitySpec. + * Constructs a new QuestionAnsweringRelevanceSpec. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a QuestionAnsweringQualitySpec. - * @implements IQuestionAnsweringQualitySpec + * @classdesc Represents a QuestionAnsweringRelevanceSpec. + * @implements IQuestionAnsweringRelevanceSpec * @constructor - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringQualitySpec=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringRelevanceSpec=} [properties] Properties to set */ - function QuestionAnsweringQualitySpec(properties) { + function QuestionAnsweringRelevanceSpec(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -348154,43 +380108,43 @@ } /** - * QuestionAnsweringQualitySpec useReference. + * QuestionAnsweringRelevanceSpec useReference. * @member {boolean} useReference - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpec + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceSpec * @instance */ - QuestionAnsweringQualitySpec.prototype.useReference = false; + QuestionAnsweringRelevanceSpec.prototype.useReference = false; /** - * QuestionAnsweringQualitySpec version. + * QuestionAnsweringRelevanceSpec version. * @member {number} version - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpec + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceSpec * @instance */ - QuestionAnsweringQualitySpec.prototype.version = 0; + QuestionAnsweringRelevanceSpec.prototype.version = 0; /** - * Creates a new QuestionAnsweringQualitySpec instance using the specified properties. + * Creates a new QuestionAnsweringRelevanceSpec instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpec + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceSpec * @static - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringQualitySpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpec} QuestionAnsweringQualitySpec instance + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringRelevanceSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceSpec} QuestionAnsweringRelevanceSpec instance */ - QuestionAnsweringQualitySpec.create = function create(properties) { - return new QuestionAnsweringQualitySpec(properties); + QuestionAnsweringRelevanceSpec.create = function create(properties) { + return new QuestionAnsweringRelevanceSpec(properties); }; /** - * Encodes the specified QuestionAnsweringQualitySpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpec.verify|verify} messages. + * Encodes the specified QuestionAnsweringRelevanceSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceSpec.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpec + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceSpec * @static - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringQualitySpec} message QuestionAnsweringQualitySpec message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringRelevanceSpec} message QuestionAnsweringRelevanceSpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QuestionAnsweringQualitySpec.encode = function encode(message, writer) { + QuestionAnsweringRelevanceSpec.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.useReference != null && Object.hasOwnProperty.call(message, "useReference")) @@ -348201,33 +380155,33 @@ }; /** - * Encodes the specified QuestionAnsweringQualitySpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpec.verify|verify} messages. + * Encodes the specified QuestionAnsweringRelevanceSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceSpec.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpec + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceSpec * @static - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringQualitySpec} message QuestionAnsweringQualitySpec message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringRelevanceSpec} message QuestionAnsweringRelevanceSpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QuestionAnsweringQualitySpec.encodeDelimited = function encodeDelimited(message, writer) { + QuestionAnsweringRelevanceSpec.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QuestionAnsweringQualitySpec message from the specified reader or buffer. + * Decodes a QuestionAnsweringRelevanceSpec message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpec + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceSpec * @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.QuestionAnsweringQualitySpec} QuestionAnsweringQualitySpec + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceSpec} QuestionAnsweringRelevanceSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QuestionAnsweringQualitySpec.decode = function decode(reader, length) { + QuestionAnsweringRelevanceSpec.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.QuestionAnsweringQualitySpec(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceSpec(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -348248,30 +380202,30 @@ }; /** - * Decodes a QuestionAnsweringQualitySpec message from the specified reader or buffer, length delimited. + * Decodes a QuestionAnsweringRelevanceSpec message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpec + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceSpec * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpec} QuestionAnsweringQualitySpec + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceSpec} QuestionAnsweringRelevanceSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QuestionAnsweringQualitySpec.decodeDelimited = function decodeDelimited(reader) { + QuestionAnsweringRelevanceSpec.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QuestionAnsweringQualitySpec message. + * Verifies a QuestionAnsweringRelevanceSpec message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpec + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceSpec * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QuestionAnsweringQualitySpec.verify = function verify(message) { + QuestionAnsweringRelevanceSpec.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.useReference != null && message.hasOwnProperty("useReference")) @@ -348284,17 +380238,17 @@ }; /** - * Creates a QuestionAnsweringQualitySpec message from a plain object. Also converts values to their respective internal types. + * Creates a QuestionAnsweringRelevanceSpec message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpec + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceSpec * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpec} QuestionAnsweringQualitySpec + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceSpec} QuestionAnsweringRelevanceSpec */ - QuestionAnsweringQualitySpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpec) + QuestionAnsweringRelevanceSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceSpec) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpec(); + var message = new $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceSpec(); if (object.useReference != null) message.useReference = Boolean(object.useReference); if (object.version != null) @@ -348303,15 +380257,15 @@ }; /** - * Creates a plain object from a QuestionAnsweringQualitySpec message. Also converts values to other types if specified. + * Creates a plain object from a QuestionAnsweringRelevanceSpec message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpec + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceSpec * @static - * @param {google.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpec} message QuestionAnsweringQualitySpec + * @param {google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceSpec} message QuestionAnsweringRelevanceSpec * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QuestionAnsweringQualitySpec.toObject = function toObject(message, options) { + QuestionAnsweringRelevanceSpec.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -348327,54 +380281,54 @@ }; /** - * Converts this QuestionAnsweringQualitySpec to JSON. + * Converts this QuestionAnsweringRelevanceSpec to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpec + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceSpec * @instance * @returns {Object.} JSON object */ - QuestionAnsweringQualitySpec.prototype.toJSON = function toJSON() { + QuestionAnsweringRelevanceSpec.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for QuestionAnsweringQualitySpec + * Gets the default type url for QuestionAnsweringRelevanceSpec * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpec + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceSpec * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - QuestionAnsweringQualitySpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + QuestionAnsweringRelevanceSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpec"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceSpec"; }; - return QuestionAnsweringQualitySpec; + return QuestionAnsweringRelevanceSpec; })(); - v1beta1.QuestionAnsweringQualityResult = (function() { + v1beta1.QuestionAnsweringRelevanceResult = (function() { /** - * Properties of a QuestionAnsweringQualityResult. + * Properties of a QuestionAnsweringRelevanceResult. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IQuestionAnsweringQualityResult - * @property {number|null} [score] QuestionAnsweringQualityResult score - * @property {string|null} [explanation] QuestionAnsweringQualityResult explanation - * @property {number|null} [confidence] QuestionAnsweringQualityResult confidence + * @interface IQuestionAnsweringRelevanceResult + * @property {number|null} [score] QuestionAnsweringRelevanceResult score + * @property {string|null} [explanation] QuestionAnsweringRelevanceResult explanation + * @property {number|null} [confidence] QuestionAnsweringRelevanceResult confidence */ /** - * Constructs a new QuestionAnsweringQualityResult. + * Constructs a new QuestionAnsweringRelevanceResult. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a QuestionAnsweringQualityResult. - * @implements IQuestionAnsweringQualityResult + * @classdesc Represents a QuestionAnsweringRelevanceResult. + * @implements IQuestionAnsweringRelevanceResult * @constructor - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringQualityResult=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringRelevanceResult=} [properties] Properties to set */ - function QuestionAnsweringQualityResult(properties) { + function QuestionAnsweringRelevanceResult(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -348382,76 +380336,76 @@ } /** - * QuestionAnsweringQualityResult score. + * QuestionAnsweringRelevanceResult score. * @member {number|null|undefined} score - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityResult + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceResult * @instance */ - QuestionAnsweringQualityResult.prototype.score = null; + QuestionAnsweringRelevanceResult.prototype.score = null; /** - * QuestionAnsweringQualityResult explanation. + * QuestionAnsweringRelevanceResult explanation. * @member {string} explanation - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityResult + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceResult * @instance */ - QuestionAnsweringQualityResult.prototype.explanation = ""; + QuestionAnsweringRelevanceResult.prototype.explanation = ""; /** - * QuestionAnsweringQualityResult confidence. + * QuestionAnsweringRelevanceResult confidence. * @member {number|null|undefined} confidence - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityResult + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceResult * @instance */ - QuestionAnsweringQualityResult.prototype.confidence = null; + QuestionAnsweringRelevanceResult.prototype.confidence = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * QuestionAnsweringQualityResult _score. + * QuestionAnsweringRelevanceResult _score. * @member {"score"|undefined} _score - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityResult + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceResult * @instance */ - Object.defineProperty(QuestionAnsweringQualityResult.prototype, "_score", { + Object.defineProperty(QuestionAnsweringRelevanceResult.prototype, "_score", { get: $util.oneOfGetter($oneOfFields = ["score"]), set: $util.oneOfSetter($oneOfFields) }); /** - * QuestionAnsweringQualityResult _confidence. + * QuestionAnsweringRelevanceResult _confidence. * @member {"confidence"|undefined} _confidence - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityResult + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceResult * @instance */ - Object.defineProperty(QuestionAnsweringQualityResult.prototype, "_confidence", { + Object.defineProperty(QuestionAnsweringRelevanceResult.prototype, "_confidence", { get: $util.oneOfGetter($oneOfFields = ["confidence"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new QuestionAnsweringQualityResult instance using the specified properties. + * Creates a new QuestionAnsweringRelevanceResult instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityResult + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceResult * @static - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringQualityResult=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityResult} QuestionAnsweringQualityResult instance + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringRelevanceResult=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceResult} QuestionAnsweringRelevanceResult instance */ - QuestionAnsweringQualityResult.create = function create(properties) { - return new QuestionAnsweringQualityResult(properties); + QuestionAnsweringRelevanceResult.create = function create(properties) { + return new QuestionAnsweringRelevanceResult(properties); }; /** - * Encodes the specified QuestionAnsweringQualityResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityResult.verify|verify} messages. + * Encodes the specified QuestionAnsweringRelevanceResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceResult.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityResult + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceResult * @static - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringQualityResult} message QuestionAnsweringQualityResult message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringRelevanceResult} message QuestionAnsweringRelevanceResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QuestionAnsweringQualityResult.encode = function encode(message, writer) { + QuestionAnsweringRelevanceResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.score != null && Object.hasOwnProperty.call(message, "score")) @@ -348464,33 +380418,33 @@ }; /** - * Encodes the specified QuestionAnsweringQualityResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityResult.verify|verify} messages. + * Encodes the specified QuestionAnsweringRelevanceResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceResult.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityResult + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceResult * @static - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringQualityResult} message QuestionAnsweringQualityResult message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringRelevanceResult} message QuestionAnsweringRelevanceResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QuestionAnsweringQualityResult.encodeDelimited = function encodeDelimited(message, writer) { + QuestionAnsweringRelevanceResult.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QuestionAnsweringQualityResult message from the specified reader or buffer. + * Decodes a QuestionAnsweringRelevanceResult message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityResult + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceResult * @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.QuestionAnsweringQualityResult} QuestionAnsweringQualityResult + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceResult} QuestionAnsweringRelevanceResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QuestionAnsweringQualityResult.decode = function decode(reader, length) { + QuestionAnsweringRelevanceResult.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.QuestionAnsweringQualityResult(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceResult(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -348515,30 +380469,30 @@ }; /** - * Decodes a QuestionAnsweringQualityResult message from the specified reader or buffer, length delimited. + * Decodes a QuestionAnsweringRelevanceResult message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityResult + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityResult} QuestionAnsweringQualityResult + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceResult} QuestionAnsweringRelevanceResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QuestionAnsweringQualityResult.decodeDelimited = function decodeDelimited(reader) { + QuestionAnsweringRelevanceResult.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QuestionAnsweringQualityResult message. + * Verifies a QuestionAnsweringRelevanceResult message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityResult + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceResult * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QuestionAnsweringQualityResult.verify = function verify(message) { + QuestionAnsweringRelevanceResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -348559,17 +380513,17 @@ }; /** - * Creates a QuestionAnsweringQualityResult message from a plain object. Also converts values to their respective internal types. + * Creates a QuestionAnsweringRelevanceResult message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityResult + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceResult * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityResult} QuestionAnsweringQualityResult + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceResult} QuestionAnsweringRelevanceResult */ - QuestionAnsweringQualityResult.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityResult) + QuestionAnsweringRelevanceResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceResult) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityResult(); + var message = new $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceResult(); if (object.score != null) message.score = Number(object.score); if (object.explanation != null) @@ -348580,15 +380534,15 @@ }; /** - * Creates a plain object from a QuestionAnsweringQualityResult message. Also converts values to other types if specified. + * Creates a plain object from a QuestionAnsweringRelevanceResult message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityResult + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceResult * @static - * @param {google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityResult} message QuestionAnsweringQualityResult + * @param {google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceResult} message QuestionAnsweringRelevanceResult * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QuestionAnsweringQualityResult.toObject = function toObject(message, options) { + QuestionAnsweringRelevanceResult.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -348610,53 +380564,53 @@ }; /** - * Converts this QuestionAnsweringQualityResult to JSON. + * Converts this QuestionAnsweringRelevanceResult to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityResult + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceResult * @instance * @returns {Object.} JSON object */ - QuestionAnsweringQualityResult.prototype.toJSON = function toJSON() { + QuestionAnsweringRelevanceResult.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for QuestionAnsweringQualityResult + * Gets the default type url for QuestionAnsweringRelevanceResult * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityResult + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceResult * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - QuestionAnsweringQualityResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + QuestionAnsweringRelevanceResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityResult"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceResult"; }; - return QuestionAnsweringQualityResult; + return QuestionAnsweringRelevanceResult; })(); - v1beta1.PairwiseQuestionAnsweringQualityInput = (function() { + v1beta1.QuestionAnsweringHelpfulnessInput = (function() { /** - * Properties of a PairwiseQuestionAnsweringQualityInput. + * Properties of a QuestionAnsweringHelpfulnessInput. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IPairwiseQuestionAnsweringQualityInput - * @property {google.cloud.aiplatform.v1beta1.IPairwiseQuestionAnsweringQualitySpec|null} [metricSpec] PairwiseQuestionAnsweringQualityInput metricSpec - * @property {google.cloud.aiplatform.v1beta1.IPairwiseQuestionAnsweringQualityInstance|null} [instance] PairwiseQuestionAnsweringQualityInput instance + * @interface IQuestionAnsweringHelpfulnessInput + * @property {google.cloud.aiplatform.v1beta1.IQuestionAnsweringHelpfulnessSpec|null} [metricSpec] QuestionAnsweringHelpfulnessInput metricSpec + * @property {google.cloud.aiplatform.v1beta1.IQuestionAnsweringHelpfulnessInstance|null} [instance] QuestionAnsweringHelpfulnessInput instance */ /** - * Constructs a new PairwiseQuestionAnsweringQualityInput. + * Constructs a new QuestionAnsweringHelpfulnessInput. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a PairwiseQuestionAnsweringQualityInput. - * @implements IPairwiseQuestionAnsweringQualityInput + * @classdesc Represents a QuestionAnsweringHelpfulnessInput. + * @implements IQuestionAnsweringHelpfulnessInput * @constructor - * @param {google.cloud.aiplatform.v1beta1.IPairwiseQuestionAnsweringQualityInput=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringHelpfulnessInput=} [properties] Properties to set */ - function PairwiseQuestionAnsweringQualityInput(properties) { + function QuestionAnsweringHelpfulnessInput(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -348664,89 +380618,89 @@ } /** - * PairwiseQuestionAnsweringQualityInput metricSpec. - * @member {google.cloud.aiplatform.v1beta1.IPairwiseQuestionAnsweringQualitySpec|null|undefined} metricSpec - * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInput + * QuestionAnsweringHelpfulnessInput metricSpec. + * @member {google.cloud.aiplatform.v1beta1.IQuestionAnsweringHelpfulnessSpec|null|undefined} metricSpec + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInput * @instance */ - PairwiseQuestionAnsweringQualityInput.prototype.metricSpec = null; + QuestionAnsweringHelpfulnessInput.prototype.metricSpec = null; /** - * PairwiseQuestionAnsweringQualityInput instance. - * @member {google.cloud.aiplatform.v1beta1.IPairwiseQuestionAnsweringQualityInstance|null|undefined} instance - * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInput + * QuestionAnsweringHelpfulnessInput instance. + * @member {google.cloud.aiplatform.v1beta1.IQuestionAnsweringHelpfulnessInstance|null|undefined} instance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInput * @instance */ - PairwiseQuestionAnsweringQualityInput.prototype.instance = null; + QuestionAnsweringHelpfulnessInput.prototype.instance = null; /** - * Creates a new PairwiseQuestionAnsweringQualityInput instance using the specified properties. + * Creates a new QuestionAnsweringHelpfulnessInput instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInput + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInput * @static - * @param {google.cloud.aiplatform.v1beta1.IPairwiseQuestionAnsweringQualityInput=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInput} PairwiseQuestionAnsweringQualityInput instance + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringHelpfulnessInput=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInput} QuestionAnsweringHelpfulnessInput instance */ - PairwiseQuestionAnsweringQualityInput.create = function create(properties) { - return new PairwiseQuestionAnsweringQualityInput(properties); + QuestionAnsweringHelpfulnessInput.create = function create(properties) { + return new QuestionAnsweringHelpfulnessInput(properties); }; /** - * Encodes the specified PairwiseQuestionAnsweringQualityInput message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInput.verify|verify} messages. + * Encodes the specified QuestionAnsweringHelpfulnessInput message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInput.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInput + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInput * @static - * @param {google.cloud.aiplatform.v1beta1.IPairwiseQuestionAnsweringQualityInput} message PairwiseQuestionAnsweringQualityInput message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringHelpfulnessInput} message QuestionAnsweringHelpfulnessInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PairwiseQuestionAnsweringQualityInput.encode = function encode(message, writer) { + QuestionAnsweringHelpfulnessInput.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.metricSpec != null && Object.hasOwnProperty.call(message, "metricSpec")) - $root.google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualitySpec.encode(message.metricSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpec.encode(message.metricSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.instance != null && Object.hasOwnProperty.call(message, "instance")) - $root.google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance.encode(message.instance, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance.encode(message.instance, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified PairwiseQuestionAnsweringQualityInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInput.verify|verify} messages. + * Encodes the specified QuestionAnsweringHelpfulnessInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInput.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInput + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInput * @static - * @param {google.cloud.aiplatform.v1beta1.IPairwiseQuestionAnsweringQualityInput} message PairwiseQuestionAnsweringQualityInput message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringHelpfulnessInput} message QuestionAnsweringHelpfulnessInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PairwiseQuestionAnsweringQualityInput.encodeDelimited = function encodeDelimited(message, writer) { + QuestionAnsweringHelpfulnessInput.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PairwiseQuestionAnsweringQualityInput message from the specified reader or buffer. + * Decodes a QuestionAnsweringHelpfulnessInput message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInput + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInput * @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.PairwiseQuestionAnsweringQualityInput} PairwiseQuestionAnsweringQualityInput + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInput} QuestionAnsweringHelpfulnessInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PairwiseQuestionAnsweringQualityInput.decode = function decode(reader, length) { + QuestionAnsweringHelpfulnessInput.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.PairwiseQuestionAnsweringQualityInput(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInput(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.metricSpec = $root.google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualitySpec.decode(reader, reader.uint32()); + message.metricSpec = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpec.decode(reader, reader.uint32()); break; } case 2: { - message.instance = $root.google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance.decode(reader, reader.uint32()); + message.instance = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance.decode(reader, reader.uint32()); break; } default: @@ -348758,39 +380712,39 @@ }; /** - * Decodes a PairwiseQuestionAnsweringQualityInput message from the specified reader or buffer, length delimited. + * Decodes a QuestionAnsweringHelpfulnessInput message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInput + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInput} PairwiseQuestionAnsweringQualityInput + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInput} QuestionAnsweringHelpfulnessInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PairwiseQuestionAnsweringQualityInput.decodeDelimited = function decodeDelimited(reader) { + QuestionAnsweringHelpfulnessInput.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PairwiseQuestionAnsweringQualityInput message. + * Verifies a QuestionAnsweringHelpfulnessInput message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInput + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInput * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PairwiseQuestionAnsweringQualityInput.verify = function verify(message) { + QuestionAnsweringHelpfulnessInput.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) { - var error = $root.google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualitySpec.verify(message.metricSpec); + var error = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpec.verify(message.metricSpec); if (error) return "metricSpec." + error; } if (message.instance != null && message.hasOwnProperty("instance")) { - var error = $root.google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance.verify(message.instance); + var error = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance.verify(message.instance); if (error) return "instance." + error; } @@ -348798,40 +380752,40 @@ }; /** - * Creates a PairwiseQuestionAnsweringQualityInput message from a plain object. Also converts values to their respective internal types. + * Creates a QuestionAnsweringHelpfulnessInput message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInput + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInput * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInput} PairwiseQuestionAnsweringQualityInput + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInput} QuestionAnsweringHelpfulnessInput */ - PairwiseQuestionAnsweringQualityInput.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInput) + QuestionAnsweringHelpfulnessInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInput) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInput(); + var message = new $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInput(); if (object.metricSpec != null) { if (typeof object.metricSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInput.metricSpec: object expected"); - message.metricSpec = $root.google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualitySpec.fromObject(object.metricSpec); + throw TypeError(".google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInput.metricSpec: object expected"); + message.metricSpec = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpec.fromObject(object.metricSpec); } if (object.instance != null) { if (typeof object.instance !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInput.instance: object expected"); - message.instance = $root.google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance.fromObject(object.instance); + throw TypeError(".google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInput.instance: object expected"); + message.instance = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance.fromObject(object.instance); } return message; }; /** - * Creates a plain object from a PairwiseQuestionAnsweringQualityInput message. Also converts values to other types if specified. + * Creates a plain object from a QuestionAnsweringHelpfulnessInput message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInput + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInput * @static - * @param {google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInput} message PairwiseQuestionAnsweringQualityInput + * @param {google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInput} message QuestionAnsweringHelpfulnessInput * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PairwiseQuestionAnsweringQualityInput.toObject = function toObject(message, options) { + QuestionAnsweringHelpfulnessInput.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -348840,63 +380794,62 @@ object.instance = null; } if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) - object.metricSpec = $root.google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualitySpec.toObject(message.metricSpec, options); + object.metricSpec = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpec.toObject(message.metricSpec, options); if (message.instance != null && message.hasOwnProperty("instance")) - object.instance = $root.google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance.toObject(message.instance, options); + object.instance = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance.toObject(message.instance, options); return object; }; /** - * Converts this PairwiseQuestionAnsweringQualityInput to JSON. + * Converts this QuestionAnsweringHelpfulnessInput to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInput + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInput * @instance * @returns {Object.} JSON object */ - PairwiseQuestionAnsweringQualityInput.prototype.toJSON = function toJSON() { + QuestionAnsweringHelpfulnessInput.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PairwiseQuestionAnsweringQualityInput + * Gets the default type url for QuestionAnsweringHelpfulnessInput * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInput + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInput * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PairwiseQuestionAnsweringQualityInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + QuestionAnsweringHelpfulnessInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInput"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInput"; }; - return PairwiseQuestionAnsweringQualityInput; + return QuestionAnsweringHelpfulnessInput; })(); - v1beta1.PairwiseQuestionAnsweringQualityInstance = (function() { + v1beta1.QuestionAnsweringHelpfulnessInstance = (function() { /** - * Properties of a PairwiseQuestionAnsweringQualityInstance. + * Properties of a QuestionAnsweringHelpfulnessInstance. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IPairwiseQuestionAnsweringQualityInstance - * @property {string|null} [prediction] PairwiseQuestionAnsweringQualityInstance prediction - * @property {string|null} [baselinePrediction] PairwiseQuestionAnsweringQualityInstance baselinePrediction - * @property {string|null} [reference] PairwiseQuestionAnsweringQualityInstance reference - * @property {string|null} [context] PairwiseQuestionAnsweringQualityInstance context - * @property {string|null} [instruction] PairwiseQuestionAnsweringQualityInstance instruction + * @interface IQuestionAnsweringHelpfulnessInstance + * @property {string|null} [prediction] QuestionAnsweringHelpfulnessInstance prediction + * @property {string|null} [reference] QuestionAnsweringHelpfulnessInstance reference + * @property {string|null} [context] QuestionAnsweringHelpfulnessInstance context + * @property {string|null} [instruction] QuestionAnsweringHelpfulnessInstance instruction */ /** - * Constructs a new PairwiseQuestionAnsweringQualityInstance. + * Constructs a new QuestionAnsweringHelpfulnessInstance. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a PairwiseQuestionAnsweringQualityInstance. - * @implements IPairwiseQuestionAnsweringQualityInstance + * @classdesc Represents a QuestionAnsweringHelpfulnessInstance. + * @implements IQuestionAnsweringHelpfulnessInstance * @constructor - * @param {google.cloud.aiplatform.v1beta1.IPairwiseQuestionAnsweringQualityInstance=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringHelpfulnessInstance=} [properties] Properties to set */ - function PairwiseQuestionAnsweringQualityInstance(properties) { + function QuestionAnsweringHelpfulnessInstance(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -348904,168 +380857,147 @@ } /** - * PairwiseQuestionAnsweringQualityInstance prediction. + * QuestionAnsweringHelpfulnessInstance prediction. * @member {string|null|undefined} prediction - * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance - * @instance - */ - PairwiseQuestionAnsweringQualityInstance.prototype.prediction = null; - - /** - * PairwiseQuestionAnsweringQualityInstance baselinePrediction. - * @member {string|null|undefined} baselinePrediction - * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance * @instance */ - PairwiseQuestionAnsweringQualityInstance.prototype.baselinePrediction = null; + QuestionAnsweringHelpfulnessInstance.prototype.prediction = null; /** - * PairwiseQuestionAnsweringQualityInstance reference. + * QuestionAnsweringHelpfulnessInstance reference. * @member {string|null|undefined} reference - * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance * @instance */ - PairwiseQuestionAnsweringQualityInstance.prototype.reference = null; + QuestionAnsweringHelpfulnessInstance.prototype.reference = null; /** - * PairwiseQuestionAnsweringQualityInstance context. + * QuestionAnsweringHelpfulnessInstance context. * @member {string|null|undefined} context - * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance * @instance */ - PairwiseQuestionAnsweringQualityInstance.prototype.context = null; + QuestionAnsweringHelpfulnessInstance.prototype.context = null; /** - * PairwiseQuestionAnsweringQualityInstance instruction. + * QuestionAnsweringHelpfulnessInstance instruction. * @member {string|null|undefined} instruction - * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance * @instance */ - PairwiseQuestionAnsweringQualityInstance.prototype.instruction = null; + QuestionAnsweringHelpfulnessInstance.prototype.instruction = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * PairwiseQuestionAnsweringQualityInstance _prediction. + * QuestionAnsweringHelpfulnessInstance _prediction. * @member {"prediction"|undefined} _prediction - * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance * @instance */ - Object.defineProperty(PairwiseQuestionAnsweringQualityInstance.prototype, "_prediction", { + Object.defineProperty(QuestionAnsweringHelpfulnessInstance.prototype, "_prediction", { get: $util.oneOfGetter($oneOfFields = ["prediction"]), set: $util.oneOfSetter($oneOfFields) }); /** - * PairwiseQuestionAnsweringQualityInstance _baselinePrediction. - * @member {"baselinePrediction"|undefined} _baselinePrediction - * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance - * @instance - */ - Object.defineProperty(PairwiseQuestionAnsweringQualityInstance.prototype, "_baselinePrediction", { - get: $util.oneOfGetter($oneOfFields = ["baselinePrediction"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * PairwiseQuestionAnsweringQualityInstance _reference. + * QuestionAnsweringHelpfulnessInstance _reference. * @member {"reference"|undefined} _reference - * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance * @instance */ - Object.defineProperty(PairwiseQuestionAnsweringQualityInstance.prototype, "_reference", { + Object.defineProperty(QuestionAnsweringHelpfulnessInstance.prototype, "_reference", { get: $util.oneOfGetter($oneOfFields = ["reference"]), set: $util.oneOfSetter($oneOfFields) }); /** - * PairwiseQuestionAnsweringQualityInstance _context. + * QuestionAnsweringHelpfulnessInstance _context. * @member {"context"|undefined} _context - * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance * @instance */ - Object.defineProperty(PairwiseQuestionAnsweringQualityInstance.prototype, "_context", { + Object.defineProperty(QuestionAnsweringHelpfulnessInstance.prototype, "_context", { get: $util.oneOfGetter($oneOfFields = ["context"]), set: $util.oneOfSetter($oneOfFields) }); /** - * PairwiseQuestionAnsweringQualityInstance _instruction. + * QuestionAnsweringHelpfulnessInstance _instruction. * @member {"instruction"|undefined} _instruction - * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance * @instance */ - Object.defineProperty(PairwiseQuestionAnsweringQualityInstance.prototype, "_instruction", { + Object.defineProperty(QuestionAnsweringHelpfulnessInstance.prototype, "_instruction", { get: $util.oneOfGetter($oneOfFields = ["instruction"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new PairwiseQuestionAnsweringQualityInstance instance using the specified properties. + * Creates a new QuestionAnsweringHelpfulnessInstance instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance * @static - * @param {google.cloud.aiplatform.v1beta1.IPairwiseQuestionAnsweringQualityInstance=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance} PairwiseQuestionAnsweringQualityInstance instance + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringHelpfulnessInstance=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance} QuestionAnsweringHelpfulnessInstance instance */ - PairwiseQuestionAnsweringQualityInstance.create = function create(properties) { - return new PairwiseQuestionAnsweringQualityInstance(properties); + QuestionAnsweringHelpfulnessInstance.create = function create(properties) { + return new QuestionAnsweringHelpfulnessInstance(properties); }; /** - * Encodes the specified PairwiseQuestionAnsweringQualityInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance.verify|verify} messages. + * Encodes the specified QuestionAnsweringHelpfulnessInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance * @static - * @param {google.cloud.aiplatform.v1beta1.IPairwiseQuestionAnsweringQualityInstance} message PairwiseQuestionAnsweringQualityInstance message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringHelpfulnessInstance} message QuestionAnsweringHelpfulnessInstance message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PairwiseQuestionAnsweringQualityInstance.encode = function encode(message, writer) { + QuestionAnsweringHelpfulnessInstance.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.prediction != null && Object.hasOwnProperty.call(message, "prediction")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.prediction); - if (message.baselinePrediction != null && Object.hasOwnProperty.call(message, "baselinePrediction")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.baselinePrediction); if (message.reference != null && Object.hasOwnProperty.call(message, "reference")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.reference); + writer.uint32(/* id 2, wireType 2 =*/18).string(message.reference); if (message.context != null && Object.hasOwnProperty.call(message, "context")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.context); + writer.uint32(/* id 3, wireType 2 =*/26).string(message.context); if (message.instruction != null && Object.hasOwnProperty.call(message, "instruction")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.instruction); + writer.uint32(/* id 4, wireType 2 =*/34).string(message.instruction); return writer; }; /** - * Encodes the specified PairwiseQuestionAnsweringQualityInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance.verify|verify} messages. + * Encodes the specified QuestionAnsweringHelpfulnessInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance * @static - * @param {google.cloud.aiplatform.v1beta1.IPairwiseQuestionAnsweringQualityInstance} message PairwiseQuestionAnsweringQualityInstance message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringHelpfulnessInstance} message QuestionAnsweringHelpfulnessInstance message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PairwiseQuestionAnsweringQualityInstance.encodeDelimited = function encodeDelimited(message, writer) { + QuestionAnsweringHelpfulnessInstance.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PairwiseQuestionAnsweringQualityInstance message from the specified reader or buffer. + * Decodes a QuestionAnsweringHelpfulnessInstance message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance * @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.PairwiseQuestionAnsweringQualityInstance} PairwiseQuestionAnsweringQualityInstance + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance} QuestionAnsweringHelpfulnessInstance * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PairwiseQuestionAnsweringQualityInstance.decode = function decode(reader, length) { + QuestionAnsweringHelpfulnessInstance.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.PairwiseQuestionAnsweringQualityInstance(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -349074,18 +381006,14 @@ break; } case 2: { - message.baselinePrediction = reader.string(); - break; - } - case 3: { message.reference = reader.string(); break; } - case 4: { + case 3: { message.context = reader.string(); break; } - case 5: { + case 4: { message.instruction = reader.string(); break; } @@ -349098,30 +381026,30 @@ }; /** - * Decodes a PairwiseQuestionAnsweringQualityInstance message from the specified reader or buffer, length delimited. + * Decodes a QuestionAnsweringHelpfulnessInstance message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance} PairwiseQuestionAnsweringQualityInstance + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance} QuestionAnsweringHelpfulnessInstance * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PairwiseQuestionAnsweringQualityInstance.decodeDelimited = function decodeDelimited(reader) { + QuestionAnsweringHelpfulnessInstance.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PairwiseQuestionAnsweringQualityInstance message. + * Verifies a QuestionAnsweringHelpfulnessInstance message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PairwiseQuestionAnsweringQualityInstance.verify = function verify(message) { + QuestionAnsweringHelpfulnessInstance.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -349130,11 +381058,6 @@ if (!$util.isString(message.prediction)) return "prediction: string expected"; } - if (message.baselinePrediction != null && message.hasOwnProperty("baselinePrediction")) { - properties._baselinePrediction = 1; - if (!$util.isString(message.baselinePrediction)) - return "baselinePrediction: string expected"; - } if (message.reference != null && message.hasOwnProperty("reference")) { properties._reference = 1; if (!$util.isString(message.reference)) @@ -349154,21 +381077,19 @@ }; /** - * Creates a PairwiseQuestionAnsweringQualityInstance message from a plain object. Also converts values to their respective internal types. + * Creates a QuestionAnsweringHelpfulnessInstance message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance} PairwiseQuestionAnsweringQualityInstance + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance} QuestionAnsweringHelpfulnessInstance */ - PairwiseQuestionAnsweringQualityInstance.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance) + QuestionAnsweringHelpfulnessInstance.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance(); + var message = new $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance(); if (object.prediction != null) message.prediction = String(object.prediction); - if (object.baselinePrediction != null) - message.baselinePrediction = String(object.baselinePrediction); if (object.reference != null) message.reference = String(object.reference); if (object.context != null) @@ -349179,15 +381100,15 @@ }; /** - * Creates a plain object from a PairwiseQuestionAnsweringQualityInstance message. Also converts values to other types if specified. + * Creates a plain object from a QuestionAnsweringHelpfulnessInstance message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance * @static - * @param {google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance} message PairwiseQuestionAnsweringQualityInstance + * @param {google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance} message QuestionAnsweringHelpfulnessInstance * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PairwiseQuestionAnsweringQualityInstance.toObject = function toObject(message, options) { + QuestionAnsweringHelpfulnessInstance.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -349196,11 +381117,6 @@ if (options.oneofs) object._prediction = "prediction"; } - if (message.baselinePrediction != null && message.hasOwnProperty("baselinePrediction")) { - object.baselinePrediction = message.baselinePrediction; - if (options.oneofs) - object._baselinePrediction = "baselinePrediction"; - } if (message.reference != null && message.hasOwnProperty("reference")) { object.reference = message.reference; if (options.oneofs) @@ -349220,53 +381136,53 @@ }; /** - * Converts this PairwiseQuestionAnsweringQualityInstance to JSON. + * Converts this QuestionAnsweringHelpfulnessInstance to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance * @instance * @returns {Object.} JSON object */ - PairwiseQuestionAnsweringQualityInstance.prototype.toJSON = function toJSON() { + QuestionAnsweringHelpfulnessInstance.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PairwiseQuestionAnsweringQualityInstance + * Gets the default type url for QuestionAnsweringHelpfulnessInstance * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PairwiseQuestionAnsweringQualityInstance.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + QuestionAnsweringHelpfulnessInstance.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstance"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance"; }; - return PairwiseQuestionAnsweringQualityInstance; + return QuestionAnsweringHelpfulnessInstance; })(); - v1beta1.PairwiseQuestionAnsweringQualitySpec = (function() { + v1beta1.QuestionAnsweringHelpfulnessSpec = (function() { /** - * Properties of a PairwiseQuestionAnsweringQualitySpec. + * Properties of a QuestionAnsweringHelpfulnessSpec. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IPairwiseQuestionAnsweringQualitySpec - * @property {boolean|null} [useReference] PairwiseQuestionAnsweringQualitySpec useReference - * @property {number|null} [version] PairwiseQuestionAnsweringQualitySpec version + * @interface IQuestionAnsweringHelpfulnessSpec + * @property {boolean|null} [useReference] QuestionAnsweringHelpfulnessSpec useReference + * @property {number|null} [version] QuestionAnsweringHelpfulnessSpec version */ /** - * Constructs a new PairwiseQuestionAnsweringQualitySpec. + * Constructs a new QuestionAnsweringHelpfulnessSpec. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a PairwiseQuestionAnsweringQualitySpec. - * @implements IPairwiseQuestionAnsweringQualitySpec + * @classdesc Represents a QuestionAnsweringHelpfulnessSpec. + * @implements IQuestionAnsweringHelpfulnessSpec * @constructor - * @param {google.cloud.aiplatform.v1beta1.IPairwiseQuestionAnsweringQualitySpec=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringHelpfulnessSpec=} [properties] Properties to set */ - function PairwiseQuestionAnsweringQualitySpec(properties) { + function QuestionAnsweringHelpfulnessSpec(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -349274,43 +381190,43 @@ } /** - * PairwiseQuestionAnsweringQualitySpec useReference. + * QuestionAnsweringHelpfulnessSpec useReference. * @member {boolean} useReference - * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualitySpec + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpec * @instance */ - PairwiseQuestionAnsweringQualitySpec.prototype.useReference = false; + QuestionAnsweringHelpfulnessSpec.prototype.useReference = false; /** - * PairwiseQuestionAnsweringQualitySpec version. + * QuestionAnsweringHelpfulnessSpec version. * @member {number} version - * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualitySpec + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpec * @instance */ - PairwiseQuestionAnsweringQualitySpec.prototype.version = 0; + QuestionAnsweringHelpfulnessSpec.prototype.version = 0; /** - * Creates a new PairwiseQuestionAnsweringQualitySpec instance using the specified properties. + * Creates a new QuestionAnsweringHelpfulnessSpec instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualitySpec + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpec * @static - * @param {google.cloud.aiplatform.v1beta1.IPairwiseQuestionAnsweringQualitySpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualitySpec} PairwiseQuestionAnsweringQualitySpec instance + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringHelpfulnessSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpec} QuestionAnsweringHelpfulnessSpec instance */ - PairwiseQuestionAnsweringQualitySpec.create = function create(properties) { - return new PairwiseQuestionAnsweringQualitySpec(properties); + QuestionAnsweringHelpfulnessSpec.create = function create(properties) { + return new QuestionAnsweringHelpfulnessSpec(properties); }; /** - * Encodes the specified PairwiseQuestionAnsweringQualitySpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualitySpec.verify|verify} messages. + * Encodes the specified QuestionAnsweringHelpfulnessSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpec.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualitySpec + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpec * @static - * @param {google.cloud.aiplatform.v1beta1.IPairwiseQuestionAnsweringQualitySpec} message PairwiseQuestionAnsweringQualitySpec message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringHelpfulnessSpec} message QuestionAnsweringHelpfulnessSpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PairwiseQuestionAnsweringQualitySpec.encode = function encode(message, writer) { + QuestionAnsweringHelpfulnessSpec.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.useReference != null && Object.hasOwnProperty.call(message, "useReference")) @@ -349321,33 +381237,33 @@ }; /** - * Encodes the specified PairwiseQuestionAnsweringQualitySpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualitySpec.verify|verify} messages. + * Encodes the specified QuestionAnsweringHelpfulnessSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpec.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualitySpec + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpec * @static - * @param {google.cloud.aiplatform.v1beta1.IPairwiseQuestionAnsweringQualitySpec} message PairwiseQuestionAnsweringQualitySpec message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringHelpfulnessSpec} message QuestionAnsweringHelpfulnessSpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PairwiseQuestionAnsweringQualitySpec.encodeDelimited = function encodeDelimited(message, writer) { + QuestionAnsweringHelpfulnessSpec.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PairwiseQuestionAnsweringQualitySpec message from the specified reader or buffer. + * Decodes a QuestionAnsweringHelpfulnessSpec message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualitySpec + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpec * @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.PairwiseQuestionAnsweringQualitySpec} PairwiseQuestionAnsweringQualitySpec + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpec} QuestionAnsweringHelpfulnessSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PairwiseQuestionAnsweringQualitySpec.decode = function decode(reader, length) { + QuestionAnsweringHelpfulnessSpec.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.PairwiseQuestionAnsweringQualitySpec(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpec(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -349368,30 +381284,30 @@ }; /** - * Decodes a PairwiseQuestionAnsweringQualitySpec message from the specified reader or buffer, length delimited. + * Decodes a QuestionAnsweringHelpfulnessSpec message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualitySpec + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpec * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualitySpec} PairwiseQuestionAnsweringQualitySpec + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpec} QuestionAnsweringHelpfulnessSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PairwiseQuestionAnsweringQualitySpec.decodeDelimited = function decodeDelimited(reader) { + QuestionAnsweringHelpfulnessSpec.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PairwiseQuestionAnsweringQualitySpec message. + * Verifies a QuestionAnsweringHelpfulnessSpec message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualitySpec + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpec * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PairwiseQuestionAnsweringQualitySpec.verify = function verify(message) { + QuestionAnsweringHelpfulnessSpec.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.useReference != null && message.hasOwnProperty("useReference")) @@ -349404,17 +381320,17 @@ }; /** - * Creates a PairwiseQuestionAnsweringQualitySpec message from a plain object. Also converts values to their respective internal types. + * Creates a QuestionAnsweringHelpfulnessSpec message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualitySpec + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpec * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualitySpec} PairwiseQuestionAnsweringQualitySpec + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpec} QuestionAnsweringHelpfulnessSpec */ - PairwiseQuestionAnsweringQualitySpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualitySpec) + QuestionAnsweringHelpfulnessSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpec) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualitySpec(); + var message = new $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpec(); if (object.useReference != null) message.useReference = Boolean(object.useReference); if (object.version != null) @@ -349423,15 +381339,15 @@ }; /** - * Creates a plain object from a PairwiseQuestionAnsweringQualitySpec message. Also converts values to other types if specified. + * Creates a plain object from a QuestionAnsweringHelpfulnessSpec message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualitySpec + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpec * @static - * @param {google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualitySpec} message PairwiseQuestionAnsweringQualitySpec + * @param {google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpec} message QuestionAnsweringHelpfulnessSpec * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PairwiseQuestionAnsweringQualitySpec.toObject = function toObject(message, options) { + QuestionAnsweringHelpfulnessSpec.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -349447,54 +381363,54 @@ }; /** - * Converts this PairwiseQuestionAnsweringQualitySpec to JSON. + * Converts this QuestionAnsweringHelpfulnessSpec to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualitySpec + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpec * @instance * @returns {Object.} JSON object */ - PairwiseQuestionAnsweringQualitySpec.prototype.toJSON = function toJSON() { + QuestionAnsweringHelpfulnessSpec.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PairwiseQuestionAnsweringQualitySpec + * Gets the default type url for QuestionAnsweringHelpfulnessSpec * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualitySpec + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpec * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PairwiseQuestionAnsweringQualitySpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + QuestionAnsweringHelpfulnessSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualitySpec"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpec"; }; - return PairwiseQuestionAnsweringQualitySpec; + return QuestionAnsweringHelpfulnessSpec; })(); - v1beta1.PairwiseQuestionAnsweringQualityResult = (function() { + v1beta1.QuestionAnsweringHelpfulnessResult = (function() { /** - * Properties of a PairwiseQuestionAnsweringQualityResult. + * Properties of a QuestionAnsweringHelpfulnessResult. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IPairwiseQuestionAnsweringQualityResult - * @property {google.cloud.aiplatform.v1beta1.PairwiseChoice|null} [pairwiseChoice] PairwiseQuestionAnsweringQualityResult pairwiseChoice - * @property {string|null} [explanation] PairwiseQuestionAnsweringQualityResult explanation - * @property {number|null} [confidence] PairwiseQuestionAnsweringQualityResult confidence + * @interface IQuestionAnsweringHelpfulnessResult + * @property {number|null} [score] QuestionAnsweringHelpfulnessResult score + * @property {string|null} [explanation] QuestionAnsweringHelpfulnessResult explanation + * @property {number|null} [confidence] QuestionAnsweringHelpfulnessResult confidence */ /** - * Constructs a new PairwiseQuestionAnsweringQualityResult. + * Constructs a new QuestionAnsweringHelpfulnessResult. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a PairwiseQuestionAnsweringQualityResult. - * @implements IPairwiseQuestionAnsweringQualityResult + * @classdesc Represents a QuestionAnsweringHelpfulnessResult. + * @implements IQuestionAnsweringHelpfulnessResult * @constructor - * @param {google.cloud.aiplatform.v1beta1.IPairwiseQuestionAnsweringQualityResult=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringHelpfulnessResult=} [properties] Properties to set */ - function PairwiseQuestionAnsweringQualityResult(properties) { + function QuestionAnsweringHelpfulnessResult(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -349502,69 +381418,80 @@ } /** - * PairwiseQuestionAnsweringQualityResult pairwiseChoice. - * @member {google.cloud.aiplatform.v1beta1.PairwiseChoice} pairwiseChoice - * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityResult + * QuestionAnsweringHelpfulnessResult score. + * @member {number|null|undefined} score + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessResult * @instance */ - PairwiseQuestionAnsweringQualityResult.prototype.pairwiseChoice = 0; + QuestionAnsweringHelpfulnessResult.prototype.score = null; /** - * PairwiseQuestionAnsweringQualityResult explanation. + * QuestionAnsweringHelpfulnessResult explanation. * @member {string} explanation - * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityResult + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessResult * @instance */ - PairwiseQuestionAnsweringQualityResult.prototype.explanation = ""; + QuestionAnsweringHelpfulnessResult.prototype.explanation = ""; /** - * PairwiseQuestionAnsweringQualityResult confidence. + * QuestionAnsweringHelpfulnessResult confidence. * @member {number|null|undefined} confidence - * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityResult + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessResult * @instance */ - PairwiseQuestionAnsweringQualityResult.prototype.confidence = null; + QuestionAnsweringHelpfulnessResult.prototype.confidence = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * PairwiseQuestionAnsweringQualityResult _confidence. + * QuestionAnsweringHelpfulnessResult _score. + * @member {"score"|undefined} _score + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessResult + * @instance + */ + Object.defineProperty(QuestionAnsweringHelpfulnessResult.prototype, "_score", { + get: $util.oneOfGetter($oneOfFields = ["score"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * QuestionAnsweringHelpfulnessResult _confidence. * @member {"confidence"|undefined} _confidence - * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityResult + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessResult * @instance */ - Object.defineProperty(PairwiseQuestionAnsweringQualityResult.prototype, "_confidence", { + Object.defineProperty(QuestionAnsweringHelpfulnessResult.prototype, "_confidence", { get: $util.oneOfGetter($oneOfFields = ["confidence"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new PairwiseQuestionAnsweringQualityResult instance using the specified properties. + * Creates a new QuestionAnsweringHelpfulnessResult instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityResult + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessResult * @static - * @param {google.cloud.aiplatform.v1beta1.IPairwiseQuestionAnsweringQualityResult=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityResult} PairwiseQuestionAnsweringQualityResult instance + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringHelpfulnessResult=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessResult} QuestionAnsweringHelpfulnessResult instance */ - PairwiseQuestionAnsweringQualityResult.create = function create(properties) { - return new PairwiseQuestionAnsweringQualityResult(properties); + QuestionAnsweringHelpfulnessResult.create = function create(properties) { + return new QuestionAnsweringHelpfulnessResult(properties); }; /** - * Encodes the specified PairwiseQuestionAnsweringQualityResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityResult.verify|verify} messages. + * Encodes the specified QuestionAnsweringHelpfulnessResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessResult.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityResult + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessResult * @static - * @param {google.cloud.aiplatform.v1beta1.IPairwiseQuestionAnsweringQualityResult} message PairwiseQuestionAnsweringQualityResult message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringHelpfulnessResult} message QuestionAnsweringHelpfulnessResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PairwiseQuestionAnsweringQualityResult.encode = function encode(message, writer) { + QuestionAnsweringHelpfulnessResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.pairwiseChoice != null && Object.hasOwnProperty.call(message, "pairwiseChoice")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.pairwiseChoice); + if (message.score != null && Object.hasOwnProperty.call(message, "score")) + writer.uint32(/* id 1, wireType 5 =*/13).float(message.score); if (message.explanation != null && Object.hasOwnProperty.call(message, "explanation")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.explanation); if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) @@ -349573,38 +381500,38 @@ }; /** - * Encodes the specified PairwiseQuestionAnsweringQualityResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityResult.verify|verify} messages. + * Encodes the specified QuestionAnsweringHelpfulnessResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessResult.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityResult + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessResult * @static - * @param {google.cloud.aiplatform.v1beta1.IPairwiseQuestionAnsweringQualityResult} message PairwiseQuestionAnsweringQualityResult message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringHelpfulnessResult} message QuestionAnsweringHelpfulnessResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PairwiseQuestionAnsweringQualityResult.encodeDelimited = function encodeDelimited(message, writer) { + QuestionAnsweringHelpfulnessResult.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PairwiseQuestionAnsweringQualityResult message from the specified reader or buffer. + * Decodes a QuestionAnsweringHelpfulnessResult message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityResult + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessResult * @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.PairwiseQuestionAnsweringQualityResult} PairwiseQuestionAnsweringQualityResult + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessResult} QuestionAnsweringHelpfulnessResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PairwiseQuestionAnsweringQualityResult.decode = function decode(reader, length) { + QuestionAnsweringHelpfulnessResult.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.PairwiseQuestionAnsweringQualityResult(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessResult(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.pairwiseChoice = reader.int32(); + message.score = reader.float(); break; } case 2: { @@ -349624,43 +381551,38 @@ }; /** - * Decodes a PairwiseQuestionAnsweringQualityResult message from the specified reader or buffer, length delimited. + * Decodes a QuestionAnsweringHelpfulnessResult message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityResult + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityResult} PairwiseQuestionAnsweringQualityResult + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessResult} QuestionAnsweringHelpfulnessResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PairwiseQuestionAnsweringQualityResult.decodeDelimited = function decodeDelimited(reader) { + QuestionAnsweringHelpfulnessResult.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PairwiseQuestionAnsweringQualityResult message. + * Verifies a QuestionAnsweringHelpfulnessResult message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityResult + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessResult * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PairwiseQuestionAnsweringQualityResult.verify = function verify(message) { + QuestionAnsweringHelpfulnessResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; - if (message.pairwiseChoice != null && message.hasOwnProperty("pairwiseChoice")) - switch (message.pairwiseChoice) { - default: - return "pairwiseChoice: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } + if (message.score != null && message.hasOwnProperty("score")) { + properties._score = 1; + if (typeof message.score !== "number") + return "score: number expected"; + } if (message.explanation != null && message.hasOwnProperty("explanation")) if (!$util.isString(message.explanation)) return "explanation: string expected"; @@ -349673,41 +381595,19 @@ }; /** - * Creates a PairwiseQuestionAnsweringQualityResult message from a plain object. Also converts values to their respective internal types. + * Creates a QuestionAnsweringHelpfulnessResult message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityResult + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessResult * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityResult} PairwiseQuestionAnsweringQualityResult + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessResult} QuestionAnsweringHelpfulnessResult */ - PairwiseQuestionAnsweringQualityResult.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityResult) + QuestionAnsweringHelpfulnessResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessResult) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityResult(); - switch (object.pairwiseChoice) { - default: - if (typeof object.pairwiseChoice === "number") { - message.pairwiseChoice = object.pairwiseChoice; - break; - } - break; - case "PAIRWISE_CHOICE_UNSPECIFIED": - case 0: - message.pairwiseChoice = 0; - break; - case "BASELINE": - case 1: - message.pairwiseChoice = 1; - break; - case "CANDIDATE": - case 2: - message.pairwiseChoice = 2; - break; - case "TIE": - case 3: - message.pairwiseChoice = 3; - break; - } + var message = new $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessResult(); + if (object.score != null) + message.score = Number(object.score); if (object.explanation != null) message.explanation = String(object.explanation); if (object.confidence != null) @@ -349716,24 +381616,25 @@ }; /** - * Creates a plain object from a PairwiseQuestionAnsweringQualityResult message. Also converts values to other types if specified. + * Creates a plain object from a QuestionAnsweringHelpfulnessResult message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityResult + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessResult * @static - * @param {google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityResult} message PairwiseQuestionAnsweringQualityResult + * @param {google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessResult} message QuestionAnsweringHelpfulnessResult * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PairwiseQuestionAnsweringQualityResult.toObject = function toObject(message, options) { + QuestionAnsweringHelpfulnessResult.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.pairwiseChoice = options.enums === String ? "PAIRWISE_CHOICE_UNSPECIFIED" : 0; + if (options.defaults) object.explanation = ""; + if (message.score != null && message.hasOwnProperty("score")) { + object.score = options.json && !isFinite(message.score) ? String(message.score) : message.score; + if (options.oneofs) + object._score = "score"; } - if (message.pairwiseChoice != null && message.hasOwnProperty("pairwiseChoice")) - object.pairwiseChoice = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.PairwiseChoice[message.pairwiseChoice] === undefined ? message.pairwiseChoice : $root.google.cloud.aiplatform.v1beta1.PairwiseChoice[message.pairwiseChoice] : message.pairwiseChoice; if (message.explanation != null && message.hasOwnProperty("explanation")) object.explanation = message.explanation; if (message.confidence != null && message.hasOwnProperty("confidence")) { @@ -349745,53 +381646,53 @@ }; /** - * Converts this PairwiseQuestionAnsweringQualityResult to JSON. + * Converts this QuestionAnsweringHelpfulnessResult to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityResult + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessResult * @instance * @returns {Object.} JSON object */ - PairwiseQuestionAnsweringQualityResult.prototype.toJSON = function toJSON() { + QuestionAnsweringHelpfulnessResult.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PairwiseQuestionAnsweringQualityResult + * Gets the default type url for QuestionAnsweringHelpfulnessResult * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityResult + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessResult * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PairwiseQuestionAnsweringQualityResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + QuestionAnsweringHelpfulnessResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityResult"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessResult"; }; - return PairwiseQuestionAnsweringQualityResult; + return QuestionAnsweringHelpfulnessResult; })(); - v1beta1.QuestionAnsweringRelevanceInput = (function() { + v1beta1.QuestionAnsweringCorrectnessInput = (function() { /** - * Properties of a QuestionAnsweringRelevanceInput. + * Properties of a QuestionAnsweringCorrectnessInput. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IQuestionAnsweringRelevanceInput - * @property {google.cloud.aiplatform.v1beta1.IQuestionAnsweringRelevanceSpec|null} [metricSpec] QuestionAnsweringRelevanceInput metricSpec - * @property {google.cloud.aiplatform.v1beta1.IQuestionAnsweringRelevanceInstance|null} [instance] QuestionAnsweringRelevanceInput instance + * @interface IQuestionAnsweringCorrectnessInput + * @property {google.cloud.aiplatform.v1beta1.IQuestionAnsweringCorrectnessSpec|null} [metricSpec] QuestionAnsweringCorrectnessInput metricSpec + * @property {google.cloud.aiplatform.v1beta1.IQuestionAnsweringCorrectnessInstance|null} [instance] QuestionAnsweringCorrectnessInput instance */ /** - * Constructs a new QuestionAnsweringRelevanceInput. + * Constructs a new QuestionAnsweringCorrectnessInput. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a QuestionAnsweringRelevanceInput. - * @implements IQuestionAnsweringRelevanceInput + * @classdesc Represents a QuestionAnsweringCorrectnessInput. + * @implements IQuestionAnsweringCorrectnessInput * @constructor - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringRelevanceInput=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringCorrectnessInput=} [properties] Properties to set */ - function QuestionAnsweringRelevanceInput(properties) { + function QuestionAnsweringCorrectnessInput(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -349799,89 +381700,89 @@ } /** - * QuestionAnsweringRelevanceInput metricSpec. - * @member {google.cloud.aiplatform.v1beta1.IQuestionAnsweringRelevanceSpec|null|undefined} metricSpec - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInput + * QuestionAnsweringCorrectnessInput metricSpec. + * @member {google.cloud.aiplatform.v1beta1.IQuestionAnsweringCorrectnessSpec|null|undefined} metricSpec + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInput * @instance */ - QuestionAnsweringRelevanceInput.prototype.metricSpec = null; + QuestionAnsweringCorrectnessInput.prototype.metricSpec = null; /** - * QuestionAnsweringRelevanceInput instance. - * @member {google.cloud.aiplatform.v1beta1.IQuestionAnsweringRelevanceInstance|null|undefined} instance - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInput + * QuestionAnsweringCorrectnessInput instance. + * @member {google.cloud.aiplatform.v1beta1.IQuestionAnsweringCorrectnessInstance|null|undefined} instance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInput * @instance */ - QuestionAnsweringRelevanceInput.prototype.instance = null; + QuestionAnsweringCorrectnessInput.prototype.instance = null; /** - * Creates a new QuestionAnsweringRelevanceInput instance using the specified properties. + * Creates a new QuestionAnsweringCorrectnessInput instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInput + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInput * @static - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringRelevanceInput=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInput} QuestionAnsweringRelevanceInput instance + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringCorrectnessInput=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInput} QuestionAnsweringCorrectnessInput instance */ - QuestionAnsweringRelevanceInput.create = function create(properties) { - return new QuestionAnsweringRelevanceInput(properties); + QuestionAnsweringCorrectnessInput.create = function create(properties) { + return new QuestionAnsweringCorrectnessInput(properties); }; /** - * Encodes the specified QuestionAnsweringRelevanceInput message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInput.verify|verify} messages. + * Encodes the specified QuestionAnsweringCorrectnessInput message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInput.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInput + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInput * @static - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringRelevanceInput} message QuestionAnsweringRelevanceInput message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringCorrectnessInput} message QuestionAnsweringCorrectnessInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QuestionAnsweringRelevanceInput.encode = function encode(message, writer) { + QuestionAnsweringCorrectnessInput.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.metricSpec != null && Object.hasOwnProperty.call(message, "metricSpec")) - $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceSpec.encode(message.metricSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessSpec.encode(message.metricSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.instance != null && Object.hasOwnProperty.call(message, "instance")) - $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance.encode(message.instance, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance.encode(message.instance, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified QuestionAnsweringRelevanceInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInput.verify|verify} messages. + * Encodes the specified QuestionAnsweringCorrectnessInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInput.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInput + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInput * @static - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringRelevanceInput} message QuestionAnsweringRelevanceInput message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringCorrectnessInput} message QuestionAnsweringCorrectnessInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QuestionAnsweringRelevanceInput.encodeDelimited = function encodeDelimited(message, writer) { + QuestionAnsweringCorrectnessInput.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QuestionAnsweringRelevanceInput message from the specified reader or buffer. + * Decodes a QuestionAnsweringCorrectnessInput message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInput + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInput * @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.QuestionAnsweringRelevanceInput} QuestionAnsweringRelevanceInput + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInput} QuestionAnsweringCorrectnessInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QuestionAnsweringRelevanceInput.decode = function decode(reader, length) { + QuestionAnsweringCorrectnessInput.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.QuestionAnsweringRelevanceInput(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInput(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.metricSpec = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceSpec.decode(reader, reader.uint32()); + message.metricSpec = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessSpec.decode(reader, reader.uint32()); break; } case 2: { - message.instance = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance.decode(reader, reader.uint32()); + message.instance = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance.decode(reader, reader.uint32()); break; } default: @@ -349893,39 +381794,39 @@ }; /** - * Decodes a QuestionAnsweringRelevanceInput message from the specified reader or buffer, length delimited. + * Decodes a QuestionAnsweringCorrectnessInput message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInput + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInput} QuestionAnsweringRelevanceInput + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInput} QuestionAnsweringCorrectnessInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QuestionAnsweringRelevanceInput.decodeDelimited = function decodeDelimited(reader) { + QuestionAnsweringCorrectnessInput.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QuestionAnsweringRelevanceInput message. + * Verifies a QuestionAnsweringCorrectnessInput message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInput + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInput * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QuestionAnsweringRelevanceInput.verify = function verify(message) { + QuestionAnsweringCorrectnessInput.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) { - var error = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceSpec.verify(message.metricSpec); + var error = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessSpec.verify(message.metricSpec); if (error) return "metricSpec." + error; } if (message.instance != null && message.hasOwnProperty("instance")) { - var error = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance.verify(message.instance); + var error = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance.verify(message.instance); if (error) return "instance." + error; } @@ -349933,40 +381834,40 @@ }; /** - * Creates a QuestionAnsweringRelevanceInput message from a plain object. Also converts values to their respective internal types. + * Creates a QuestionAnsweringCorrectnessInput message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInput + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInput * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInput} QuestionAnsweringRelevanceInput + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInput} QuestionAnsweringCorrectnessInput */ - QuestionAnsweringRelevanceInput.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInput) + QuestionAnsweringCorrectnessInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInput) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInput(); + var message = new $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInput(); if (object.metricSpec != null) { if (typeof object.metricSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInput.metricSpec: object expected"); - message.metricSpec = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceSpec.fromObject(object.metricSpec); + throw TypeError(".google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInput.metricSpec: object expected"); + message.metricSpec = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessSpec.fromObject(object.metricSpec); } if (object.instance != null) { if (typeof object.instance !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInput.instance: object expected"); - message.instance = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance.fromObject(object.instance); + throw TypeError(".google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInput.instance: object expected"); + message.instance = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance.fromObject(object.instance); } return message; }; /** - * Creates a plain object from a QuestionAnsweringRelevanceInput message. Also converts values to other types if specified. + * Creates a plain object from a QuestionAnsweringCorrectnessInput message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInput + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInput * @static - * @param {google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInput} message QuestionAnsweringRelevanceInput + * @param {google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInput} message QuestionAnsweringCorrectnessInput * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QuestionAnsweringRelevanceInput.toObject = function toObject(message, options) { + QuestionAnsweringCorrectnessInput.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -349975,62 +381876,62 @@ object.instance = null; } if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) - object.metricSpec = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceSpec.toObject(message.metricSpec, options); + object.metricSpec = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessSpec.toObject(message.metricSpec, options); if (message.instance != null && message.hasOwnProperty("instance")) - object.instance = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance.toObject(message.instance, options); + object.instance = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance.toObject(message.instance, options); return object; }; /** - * Converts this QuestionAnsweringRelevanceInput to JSON. + * Converts this QuestionAnsweringCorrectnessInput to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInput + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInput * @instance * @returns {Object.} JSON object */ - QuestionAnsweringRelevanceInput.prototype.toJSON = function toJSON() { + QuestionAnsweringCorrectnessInput.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for QuestionAnsweringRelevanceInput + * Gets the default type url for QuestionAnsweringCorrectnessInput * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInput + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInput * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - QuestionAnsweringRelevanceInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + QuestionAnsweringCorrectnessInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInput"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInput"; }; - return QuestionAnsweringRelevanceInput; + return QuestionAnsweringCorrectnessInput; })(); - v1beta1.QuestionAnsweringRelevanceInstance = (function() { + v1beta1.QuestionAnsweringCorrectnessInstance = (function() { /** - * Properties of a QuestionAnsweringRelevanceInstance. + * Properties of a QuestionAnsweringCorrectnessInstance. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IQuestionAnsweringRelevanceInstance - * @property {string|null} [prediction] QuestionAnsweringRelevanceInstance prediction - * @property {string|null} [reference] QuestionAnsweringRelevanceInstance reference - * @property {string|null} [context] QuestionAnsweringRelevanceInstance context - * @property {string|null} [instruction] QuestionAnsweringRelevanceInstance instruction + * @interface IQuestionAnsweringCorrectnessInstance + * @property {string|null} [prediction] QuestionAnsweringCorrectnessInstance prediction + * @property {string|null} [reference] QuestionAnsweringCorrectnessInstance reference + * @property {string|null} [context] QuestionAnsweringCorrectnessInstance context + * @property {string|null} [instruction] QuestionAnsweringCorrectnessInstance instruction */ /** - * Constructs a new QuestionAnsweringRelevanceInstance. + * Constructs a new QuestionAnsweringCorrectnessInstance. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a QuestionAnsweringRelevanceInstance. - * @implements IQuestionAnsweringRelevanceInstance + * @classdesc Represents a QuestionAnsweringCorrectnessInstance. + * @implements IQuestionAnsweringCorrectnessInstance * @constructor - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringRelevanceInstance=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringCorrectnessInstance=} [properties] Properties to set */ - function QuestionAnsweringRelevanceInstance(properties) { + function QuestionAnsweringCorrectnessInstance(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -350038,106 +381939,106 @@ } /** - * QuestionAnsweringRelevanceInstance prediction. + * QuestionAnsweringCorrectnessInstance prediction. * @member {string|null|undefined} prediction - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance * @instance */ - QuestionAnsweringRelevanceInstance.prototype.prediction = null; + QuestionAnsweringCorrectnessInstance.prototype.prediction = null; /** - * QuestionAnsweringRelevanceInstance reference. + * QuestionAnsweringCorrectnessInstance reference. * @member {string|null|undefined} reference - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance * @instance */ - QuestionAnsweringRelevanceInstance.prototype.reference = null; + QuestionAnsweringCorrectnessInstance.prototype.reference = null; /** - * QuestionAnsweringRelevanceInstance context. + * QuestionAnsweringCorrectnessInstance context. * @member {string|null|undefined} context - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance * @instance */ - QuestionAnsweringRelevanceInstance.prototype.context = null; + QuestionAnsweringCorrectnessInstance.prototype.context = null; /** - * QuestionAnsweringRelevanceInstance instruction. + * QuestionAnsweringCorrectnessInstance instruction. * @member {string|null|undefined} instruction - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance * @instance */ - QuestionAnsweringRelevanceInstance.prototype.instruction = null; + QuestionAnsweringCorrectnessInstance.prototype.instruction = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * QuestionAnsweringRelevanceInstance _prediction. + * QuestionAnsweringCorrectnessInstance _prediction. * @member {"prediction"|undefined} _prediction - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance * @instance */ - Object.defineProperty(QuestionAnsweringRelevanceInstance.prototype, "_prediction", { + Object.defineProperty(QuestionAnsweringCorrectnessInstance.prototype, "_prediction", { get: $util.oneOfGetter($oneOfFields = ["prediction"]), set: $util.oneOfSetter($oneOfFields) }); /** - * QuestionAnsweringRelevanceInstance _reference. + * QuestionAnsweringCorrectnessInstance _reference. * @member {"reference"|undefined} _reference - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance * @instance */ - Object.defineProperty(QuestionAnsweringRelevanceInstance.prototype, "_reference", { + Object.defineProperty(QuestionAnsweringCorrectnessInstance.prototype, "_reference", { get: $util.oneOfGetter($oneOfFields = ["reference"]), set: $util.oneOfSetter($oneOfFields) }); /** - * QuestionAnsweringRelevanceInstance _context. + * QuestionAnsweringCorrectnessInstance _context. * @member {"context"|undefined} _context - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance * @instance */ - Object.defineProperty(QuestionAnsweringRelevanceInstance.prototype, "_context", { + Object.defineProperty(QuestionAnsweringCorrectnessInstance.prototype, "_context", { get: $util.oneOfGetter($oneOfFields = ["context"]), set: $util.oneOfSetter($oneOfFields) }); /** - * QuestionAnsweringRelevanceInstance _instruction. + * QuestionAnsweringCorrectnessInstance _instruction. * @member {"instruction"|undefined} _instruction - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance * @instance */ - Object.defineProperty(QuestionAnsweringRelevanceInstance.prototype, "_instruction", { + Object.defineProperty(QuestionAnsweringCorrectnessInstance.prototype, "_instruction", { get: $util.oneOfGetter($oneOfFields = ["instruction"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new QuestionAnsweringRelevanceInstance instance using the specified properties. + * Creates a new QuestionAnsweringCorrectnessInstance instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance * @static - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringRelevanceInstance=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance} QuestionAnsweringRelevanceInstance instance + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringCorrectnessInstance=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance} QuestionAnsweringCorrectnessInstance instance */ - QuestionAnsweringRelevanceInstance.create = function create(properties) { - return new QuestionAnsweringRelevanceInstance(properties); + QuestionAnsweringCorrectnessInstance.create = function create(properties) { + return new QuestionAnsweringCorrectnessInstance(properties); }; /** - * Encodes the specified QuestionAnsweringRelevanceInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance.verify|verify} messages. + * Encodes the specified QuestionAnsweringCorrectnessInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance * @static - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringRelevanceInstance} message QuestionAnsweringRelevanceInstance message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringCorrectnessInstance} message QuestionAnsweringCorrectnessInstance message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QuestionAnsweringRelevanceInstance.encode = function encode(message, writer) { + QuestionAnsweringCorrectnessInstance.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.prediction != null && Object.hasOwnProperty.call(message, "prediction")) @@ -350152,33 +382053,33 @@ }; /** - * Encodes the specified QuestionAnsweringRelevanceInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance.verify|verify} messages. + * Encodes the specified QuestionAnsweringCorrectnessInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance * @static - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringRelevanceInstance} message QuestionAnsweringRelevanceInstance message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringCorrectnessInstance} message QuestionAnsweringCorrectnessInstance message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QuestionAnsweringRelevanceInstance.encodeDelimited = function encodeDelimited(message, writer) { + QuestionAnsweringCorrectnessInstance.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QuestionAnsweringRelevanceInstance message from the specified reader or buffer. + * Decodes a QuestionAnsweringCorrectnessInstance message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance * @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.QuestionAnsweringRelevanceInstance} QuestionAnsweringRelevanceInstance + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance} QuestionAnsweringCorrectnessInstance * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QuestionAnsweringRelevanceInstance.decode = function decode(reader, length) { + QuestionAnsweringCorrectnessInstance.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.QuestionAnsweringRelevanceInstance(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -350207,30 +382108,30 @@ }; /** - * Decodes a QuestionAnsweringRelevanceInstance message from the specified reader or buffer, length delimited. + * Decodes a QuestionAnsweringCorrectnessInstance message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance} QuestionAnsweringRelevanceInstance + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance} QuestionAnsweringCorrectnessInstance * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QuestionAnsweringRelevanceInstance.decodeDelimited = function decodeDelimited(reader) { + QuestionAnsweringCorrectnessInstance.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QuestionAnsweringRelevanceInstance message. + * Verifies a QuestionAnsweringCorrectnessInstance message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QuestionAnsweringRelevanceInstance.verify = function verify(message) { + QuestionAnsweringCorrectnessInstance.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -350258,17 +382159,17 @@ }; /** - * Creates a QuestionAnsweringRelevanceInstance message from a plain object. Also converts values to their respective internal types. + * Creates a QuestionAnsweringCorrectnessInstance message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance} QuestionAnsweringRelevanceInstance + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance} QuestionAnsweringCorrectnessInstance */ - QuestionAnsweringRelevanceInstance.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance) + QuestionAnsweringCorrectnessInstance.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance(); + var message = new $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance(); if (object.prediction != null) message.prediction = String(object.prediction); if (object.reference != null) @@ -350281,15 +382182,15 @@ }; /** - * Creates a plain object from a QuestionAnsweringRelevanceInstance message. Also converts values to other types if specified. + * Creates a plain object from a QuestionAnsweringCorrectnessInstance message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance * @static - * @param {google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance} message QuestionAnsweringRelevanceInstance + * @param {google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance} message QuestionAnsweringCorrectnessInstance * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QuestionAnsweringRelevanceInstance.toObject = function toObject(message, options) { + QuestionAnsweringCorrectnessInstance.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -350317,53 +382218,53 @@ }; /** - * Converts this QuestionAnsweringRelevanceInstance to JSON. + * Converts this QuestionAnsweringCorrectnessInstance to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance * @instance * @returns {Object.} JSON object */ - QuestionAnsweringRelevanceInstance.prototype.toJSON = function toJSON() { + QuestionAnsweringCorrectnessInstance.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for QuestionAnsweringRelevanceInstance + * Gets the default type url for QuestionAnsweringCorrectnessInstance * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - QuestionAnsweringRelevanceInstance.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + QuestionAnsweringCorrectnessInstance.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance"; }; - return QuestionAnsweringRelevanceInstance; + return QuestionAnsweringCorrectnessInstance; })(); - v1beta1.QuestionAnsweringRelevanceSpec = (function() { + v1beta1.QuestionAnsweringCorrectnessSpec = (function() { /** - * Properties of a QuestionAnsweringRelevanceSpec. + * Properties of a QuestionAnsweringCorrectnessSpec. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IQuestionAnsweringRelevanceSpec - * @property {boolean|null} [useReference] QuestionAnsweringRelevanceSpec useReference - * @property {number|null} [version] QuestionAnsweringRelevanceSpec version + * @interface IQuestionAnsweringCorrectnessSpec + * @property {boolean|null} [useReference] QuestionAnsweringCorrectnessSpec useReference + * @property {number|null} [version] QuestionAnsweringCorrectnessSpec version */ /** - * Constructs a new QuestionAnsweringRelevanceSpec. + * Constructs a new QuestionAnsweringCorrectnessSpec. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a QuestionAnsweringRelevanceSpec. - * @implements IQuestionAnsweringRelevanceSpec + * @classdesc Represents a QuestionAnsweringCorrectnessSpec. + * @implements IQuestionAnsweringCorrectnessSpec * @constructor - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringRelevanceSpec=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringCorrectnessSpec=} [properties] Properties to set */ - function QuestionAnsweringRelevanceSpec(properties) { + function QuestionAnsweringCorrectnessSpec(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -350371,43 +382272,43 @@ } /** - * QuestionAnsweringRelevanceSpec useReference. + * QuestionAnsweringCorrectnessSpec useReference. * @member {boolean} useReference - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceSpec + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessSpec * @instance */ - QuestionAnsweringRelevanceSpec.prototype.useReference = false; + QuestionAnsweringCorrectnessSpec.prototype.useReference = false; /** - * QuestionAnsweringRelevanceSpec version. + * QuestionAnsweringCorrectnessSpec version. * @member {number} version - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceSpec + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessSpec * @instance */ - QuestionAnsweringRelevanceSpec.prototype.version = 0; + QuestionAnsweringCorrectnessSpec.prototype.version = 0; /** - * Creates a new QuestionAnsweringRelevanceSpec instance using the specified properties. + * Creates a new QuestionAnsweringCorrectnessSpec instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceSpec + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessSpec * @static - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringRelevanceSpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceSpec} QuestionAnsweringRelevanceSpec instance + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringCorrectnessSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessSpec} QuestionAnsweringCorrectnessSpec instance */ - QuestionAnsweringRelevanceSpec.create = function create(properties) { - return new QuestionAnsweringRelevanceSpec(properties); + QuestionAnsweringCorrectnessSpec.create = function create(properties) { + return new QuestionAnsweringCorrectnessSpec(properties); }; /** - * Encodes the specified QuestionAnsweringRelevanceSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceSpec.verify|verify} messages. + * Encodes the specified QuestionAnsweringCorrectnessSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessSpec.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceSpec + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessSpec * @static - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringRelevanceSpec} message QuestionAnsweringRelevanceSpec message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringCorrectnessSpec} message QuestionAnsweringCorrectnessSpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QuestionAnsweringRelevanceSpec.encode = function encode(message, writer) { + QuestionAnsweringCorrectnessSpec.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.useReference != null && Object.hasOwnProperty.call(message, "useReference")) @@ -350418,33 +382319,33 @@ }; /** - * Encodes the specified QuestionAnsweringRelevanceSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceSpec.verify|verify} messages. + * Encodes the specified QuestionAnsweringCorrectnessSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessSpec.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceSpec + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessSpec * @static - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringRelevanceSpec} message QuestionAnsweringRelevanceSpec message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringCorrectnessSpec} message QuestionAnsweringCorrectnessSpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QuestionAnsweringRelevanceSpec.encodeDelimited = function encodeDelimited(message, writer) { + QuestionAnsweringCorrectnessSpec.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QuestionAnsweringRelevanceSpec message from the specified reader or buffer. + * Decodes a QuestionAnsweringCorrectnessSpec message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceSpec + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessSpec * @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.QuestionAnsweringRelevanceSpec} QuestionAnsweringRelevanceSpec + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessSpec} QuestionAnsweringCorrectnessSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QuestionAnsweringRelevanceSpec.decode = function decode(reader, length) { + QuestionAnsweringCorrectnessSpec.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.QuestionAnsweringRelevanceSpec(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessSpec(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -350465,30 +382366,30 @@ }; /** - * Decodes a QuestionAnsweringRelevanceSpec message from the specified reader or buffer, length delimited. + * Decodes a QuestionAnsweringCorrectnessSpec message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceSpec + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessSpec * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceSpec} QuestionAnsweringRelevanceSpec + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessSpec} QuestionAnsweringCorrectnessSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QuestionAnsweringRelevanceSpec.decodeDelimited = function decodeDelimited(reader) { + QuestionAnsweringCorrectnessSpec.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QuestionAnsweringRelevanceSpec message. + * Verifies a QuestionAnsweringCorrectnessSpec message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceSpec + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessSpec * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QuestionAnsweringRelevanceSpec.verify = function verify(message) { + QuestionAnsweringCorrectnessSpec.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.useReference != null && message.hasOwnProperty("useReference")) @@ -350501,17 +382402,17 @@ }; /** - * Creates a QuestionAnsweringRelevanceSpec message from a plain object. Also converts values to their respective internal types. + * Creates a QuestionAnsweringCorrectnessSpec message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceSpec + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessSpec * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceSpec} QuestionAnsweringRelevanceSpec + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessSpec} QuestionAnsweringCorrectnessSpec */ - QuestionAnsweringRelevanceSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceSpec) + QuestionAnsweringCorrectnessSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessSpec) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceSpec(); + var message = new $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessSpec(); if (object.useReference != null) message.useReference = Boolean(object.useReference); if (object.version != null) @@ -350520,15 +382421,15 @@ }; /** - * Creates a plain object from a QuestionAnsweringRelevanceSpec message. Also converts values to other types if specified. + * Creates a plain object from a QuestionAnsweringCorrectnessSpec message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceSpec + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessSpec * @static - * @param {google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceSpec} message QuestionAnsweringRelevanceSpec + * @param {google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessSpec} message QuestionAnsweringCorrectnessSpec * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QuestionAnsweringRelevanceSpec.toObject = function toObject(message, options) { + QuestionAnsweringCorrectnessSpec.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -350544,54 +382445,54 @@ }; /** - * Converts this QuestionAnsweringRelevanceSpec to JSON. + * Converts this QuestionAnsweringCorrectnessSpec to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceSpec + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessSpec * @instance * @returns {Object.} JSON object */ - QuestionAnsweringRelevanceSpec.prototype.toJSON = function toJSON() { + QuestionAnsweringCorrectnessSpec.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for QuestionAnsweringRelevanceSpec + * Gets the default type url for QuestionAnsweringCorrectnessSpec * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceSpec + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessSpec * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - QuestionAnsweringRelevanceSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + QuestionAnsweringCorrectnessSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceSpec"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessSpec"; }; - return QuestionAnsweringRelevanceSpec; + return QuestionAnsweringCorrectnessSpec; })(); - v1beta1.QuestionAnsweringRelevanceResult = (function() { + v1beta1.QuestionAnsweringCorrectnessResult = (function() { /** - * Properties of a QuestionAnsweringRelevanceResult. + * Properties of a QuestionAnsweringCorrectnessResult. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IQuestionAnsweringRelevanceResult - * @property {number|null} [score] QuestionAnsweringRelevanceResult score - * @property {string|null} [explanation] QuestionAnsweringRelevanceResult explanation - * @property {number|null} [confidence] QuestionAnsweringRelevanceResult confidence + * @interface IQuestionAnsweringCorrectnessResult + * @property {number|null} [score] QuestionAnsweringCorrectnessResult score + * @property {string|null} [explanation] QuestionAnsweringCorrectnessResult explanation + * @property {number|null} [confidence] QuestionAnsweringCorrectnessResult confidence */ /** - * Constructs a new QuestionAnsweringRelevanceResult. + * Constructs a new QuestionAnsweringCorrectnessResult. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a QuestionAnsweringRelevanceResult. - * @implements IQuestionAnsweringRelevanceResult + * @classdesc Represents a QuestionAnsweringCorrectnessResult. + * @implements IQuestionAnsweringCorrectnessResult * @constructor - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringRelevanceResult=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringCorrectnessResult=} [properties] Properties to set */ - function QuestionAnsweringRelevanceResult(properties) { + function QuestionAnsweringCorrectnessResult(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -350599,76 +382500,76 @@ } /** - * QuestionAnsweringRelevanceResult score. + * QuestionAnsweringCorrectnessResult score. * @member {number|null|undefined} score - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceResult + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult * @instance */ - QuestionAnsweringRelevanceResult.prototype.score = null; + QuestionAnsweringCorrectnessResult.prototype.score = null; /** - * QuestionAnsweringRelevanceResult explanation. + * QuestionAnsweringCorrectnessResult explanation. * @member {string} explanation - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceResult + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult * @instance */ - QuestionAnsweringRelevanceResult.prototype.explanation = ""; + QuestionAnsweringCorrectnessResult.prototype.explanation = ""; /** - * QuestionAnsweringRelevanceResult confidence. + * QuestionAnsweringCorrectnessResult confidence. * @member {number|null|undefined} confidence - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceResult + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult * @instance */ - QuestionAnsweringRelevanceResult.prototype.confidence = null; + QuestionAnsweringCorrectnessResult.prototype.confidence = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * QuestionAnsweringRelevanceResult _score. + * QuestionAnsweringCorrectnessResult _score. * @member {"score"|undefined} _score - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceResult + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult * @instance */ - Object.defineProperty(QuestionAnsweringRelevanceResult.prototype, "_score", { + Object.defineProperty(QuestionAnsweringCorrectnessResult.prototype, "_score", { get: $util.oneOfGetter($oneOfFields = ["score"]), set: $util.oneOfSetter($oneOfFields) }); /** - * QuestionAnsweringRelevanceResult _confidence. + * QuestionAnsweringCorrectnessResult _confidence. * @member {"confidence"|undefined} _confidence - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceResult + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult * @instance */ - Object.defineProperty(QuestionAnsweringRelevanceResult.prototype, "_confidence", { + Object.defineProperty(QuestionAnsweringCorrectnessResult.prototype, "_confidence", { get: $util.oneOfGetter($oneOfFields = ["confidence"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new QuestionAnsweringRelevanceResult instance using the specified properties. + * Creates a new QuestionAnsweringCorrectnessResult instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceResult + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult * @static - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringRelevanceResult=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceResult} QuestionAnsweringRelevanceResult instance + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringCorrectnessResult=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult} QuestionAnsweringCorrectnessResult instance */ - QuestionAnsweringRelevanceResult.create = function create(properties) { - return new QuestionAnsweringRelevanceResult(properties); + QuestionAnsweringCorrectnessResult.create = function create(properties) { + return new QuestionAnsweringCorrectnessResult(properties); }; /** - * Encodes the specified QuestionAnsweringRelevanceResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceResult.verify|verify} messages. + * Encodes the specified QuestionAnsweringCorrectnessResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceResult + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult * @static - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringRelevanceResult} message QuestionAnsweringRelevanceResult message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringCorrectnessResult} message QuestionAnsweringCorrectnessResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QuestionAnsweringRelevanceResult.encode = function encode(message, writer) { + QuestionAnsweringCorrectnessResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.score != null && Object.hasOwnProperty.call(message, "score")) @@ -350681,33 +382582,33 @@ }; /** - * Encodes the specified QuestionAnsweringRelevanceResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceResult.verify|verify} messages. + * Encodes the specified QuestionAnsweringCorrectnessResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceResult + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult * @static - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringRelevanceResult} message QuestionAnsweringRelevanceResult message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringCorrectnessResult} message QuestionAnsweringCorrectnessResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QuestionAnsweringRelevanceResult.encodeDelimited = function encodeDelimited(message, writer) { + QuestionAnsweringCorrectnessResult.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QuestionAnsweringRelevanceResult message from the specified reader or buffer. + * Decodes a QuestionAnsweringCorrectnessResult message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceResult + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult * @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.QuestionAnsweringRelevanceResult} QuestionAnsweringRelevanceResult + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult} QuestionAnsweringCorrectnessResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QuestionAnsweringRelevanceResult.decode = function decode(reader, length) { + QuestionAnsweringCorrectnessResult.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.QuestionAnsweringRelevanceResult(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -350732,30 +382633,30 @@ }; /** - * Decodes a QuestionAnsweringRelevanceResult message from the specified reader or buffer, length delimited. + * Decodes a QuestionAnsweringCorrectnessResult message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceResult + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceResult} QuestionAnsweringRelevanceResult + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult} QuestionAnsweringCorrectnessResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QuestionAnsweringRelevanceResult.decodeDelimited = function decodeDelimited(reader) { + QuestionAnsweringCorrectnessResult.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QuestionAnsweringRelevanceResult message. + * Verifies a QuestionAnsweringCorrectnessResult message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceResult + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QuestionAnsweringRelevanceResult.verify = function verify(message) { + QuestionAnsweringCorrectnessResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -350776,17 +382677,17 @@ }; /** - * Creates a QuestionAnsweringRelevanceResult message from a plain object. Also converts values to their respective internal types. + * Creates a QuestionAnsweringCorrectnessResult message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceResult + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceResult} QuestionAnsweringRelevanceResult + * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult} QuestionAnsweringCorrectnessResult */ - QuestionAnsweringRelevanceResult.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceResult) + QuestionAnsweringCorrectnessResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceResult(); + var message = new $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult(); if (object.score != null) message.score = Number(object.score); if (object.explanation != null) @@ -350797,15 +382698,15 @@ }; /** - * Creates a plain object from a QuestionAnsweringRelevanceResult message. Also converts values to other types if specified. + * Creates a plain object from a QuestionAnsweringCorrectnessResult message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceResult + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult * @static - * @param {google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceResult} message QuestionAnsweringRelevanceResult + * @param {google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult} message QuestionAnsweringCorrectnessResult * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QuestionAnsweringRelevanceResult.toObject = function toObject(message, options) { + QuestionAnsweringCorrectnessResult.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -350827,53 +382728,53 @@ }; /** - * Converts this QuestionAnsweringRelevanceResult to JSON. + * Converts this QuestionAnsweringCorrectnessResult to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceResult + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult * @instance * @returns {Object.} JSON object */ - QuestionAnsweringRelevanceResult.prototype.toJSON = function toJSON() { + QuestionAnsweringCorrectnessResult.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for QuestionAnsweringRelevanceResult + * Gets the default type url for QuestionAnsweringCorrectnessResult * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceResult + * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - QuestionAnsweringRelevanceResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + QuestionAnsweringCorrectnessResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceResult"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult"; }; - return QuestionAnsweringRelevanceResult; + return QuestionAnsweringCorrectnessResult; })(); - v1beta1.QuestionAnsweringHelpfulnessInput = (function() { + v1beta1.PointwiseMetricInput = (function() { /** - * Properties of a QuestionAnsweringHelpfulnessInput. + * Properties of a PointwiseMetricInput. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IQuestionAnsweringHelpfulnessInput - * @property {google.cloud.aiplatform.v1beta1.IQuestionAnsweringHelpfulnessSpec|null} [metricSpec] QuestionAnsweringHelpfulnessInput metricSpec - * @property {google.cloud.aiplatform.v1beta1.IQuestionAnsweringHelpfulnessInstance|null} [instance] QuestionAnsweringHelpfulnessInput instance + * @interface IPointwiseMetricInput + * @property {google.cloud.aiplatform.v1beta1.IPointwiseMetricSpec|null} [metricSpec] PointwiseMetricInput metricSpec + * @property {google.cloud.aiplatform.v1beta1.IPointwiseMetricInstance|null} [instance] PointwiseMetricInput instance */ /** - * Constructs a new QuestionAnsweringHelpfulnessInput. + * Constructs a new PointwiseMetricInput. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a QuestionAnsweringHelpfulnessInput. - * @implements IQuestionAnsweringHelpfulnessInput + * @classdesc Represents a PointwiseMetricInput. + * @implements IPointwiseMetricInput * @constructor - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringHelpfulnessInput=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IPointwiseMetricInput=} [properties] Properties to set */ - function QuestionAnsweringHelpfulnessInput(properties) { + function PointwiseMetricInput(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -350881,89 +382782,89 @@ } /** - * QuestionAnsweringHelpfulnessInput metricSpec. - * @member {google.cloud.aiplatform.v1beta1.IQuestionAnsweringHelpfulnessSpec|null|undefined} metricSpec - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInput + * PointwiseMetricInput metricSpec. + * @member {google.cloud.aiplatform.v1beta1.IPointwiseMetricSpec|null|undefined} metricSpec + * @memberof google.cloud.aiplatform.v1beta1.PointwiseMetricInput * @instance */ - QuestionAnsweringHelpfulnessInput.prototype.metricSpec = null; + PointwiseMetricInput.prototype.metricSpec = null; /** - * QuestionAnsweringHelpfulnessInput instance. - * @member {google.cloud.aiplatform.v1beta1.IQuestionAnsweringHelpfulnessInstance|null|undefined} instance - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInput + * PointwiseMetricInput instance. + * @member {google.cloud.aiplatform.v1beta1.IPointwiseMetricInstance|null|undefined} instance + * @memberof google.cloud.aiplatform.v1beta1.PointwiseMetricInput * @instance */ - QuestionAnsweringHelpfulnessInput.prototype.instance = null; + PointwiseMetricInput.prototype.instance = null; /** - * Creates a new QuestionAnsweringHelpfulnessInput instance using the specified properties. + * Creates a new PointwiseMetricInput instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInput + * @memberof google.cloud.aiplatform.v1beta1.PointwiseMetricInput * @static - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringHelpfulnessInput=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInput} QuestionAnsweringHelpfulnessInput instance + * @param {google.cloud.aiplatform.v1beta1.IPointwiseMetricInput=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PointwiseMetricInput} PointwiseMetricInput instance */ - QuestionAnsweringHelpfulnessInput.create = function create(properties) { - return new QuestionAnsweringHelpfulnessInput(properties); + PointwiseMetricInput.create = function create(properties) { + return new PointwiseMetricInput(properties); }; /** - * Encodes the specified QuestionAnsweringHelpfulnessInput message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInput.verify|verify} messages. + * Encodes the specified PointwiseMetricInput message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PointwiseMetricInput.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInput + * @memberof google.cloud.aiplatform.v1beta1.PointwiseMetricInput * @static - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringHelpfulnessInput} message QuestionAnsweringHelpfulnessInput message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPointwiseMetricInput} message PointwiseMetricInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QuestionAnsweringHelpfulnessInput.encode = function encode(message, writer) { + PointwiseMetricInput.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.metricSpec != null && Object.hasOwnProperty.call(message, "metricSpec")) - $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpec.encode(message.metricSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.google.cloud.aiplatform.v1beta1.PointwiseMetricSpec.encode(message.metricSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.instance != null && Object.hasOwnProperty.call(message, "instance")) - $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance.encode(message.instance, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.google.cloud.aiplatform.v1beta1.PointwiseMetricInstance.encode(message.instance, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified QuestionAnsweringHelpfulnessInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInput.verify|verify} messages. + * Encodes the specified PointwiseMetricInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PointwiseMetricInput.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInput + * @memberof google.cloud.aiplatform.v1beta1.PointwiseMetricInput * @static - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringHelpfulnessInput} message QuestionAnsweringHelpfulnessInput message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPointwiseMetricInput} message PointwiseMetricInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QuestionAnsweringHelpfulnessInput.encodeDelimited = function encodeDelimited(message, writer) { + PointwiseMetricInput.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QuestionAnsweringHelpfulnessInput message from the specified reader or buffer. + * Decodes a PointwiseMetricInput message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInput + * @memberof google.cloud.aiplatform.v1beta1.PointwiseMetricInput * @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.QuestionAnsweringHelpfulnessInput} QuestionAnsweringHelpfulnessInput + * @returns {google.cloud.aiplatform.v1beta1.PointwiseMetricInput} PointwiseMetricInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QuestionAnsweringHelpfulnessInput.decode = function decode(reader, length) { + PointwiseMetricInput.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.QuestionAnsweringHelpfulnessInput(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PointwiseMetricInput(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.metricSpec = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpec.decode(reader, reader.uint32()); + message.metricSpec = $root.google.cloud.aiplatform.v1beta1.PointwiseMetricSpec.decode(reader, reader.uint32()); break; } case 2: { - message.instance = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance.decode(reader, reader.uint32()); + message.instance = $root.google.cloud.aiplatform.v1beta1.PointwiseMetricInstance.decode(reader, reader.uint32()); break; } default: @@ -350975,39 +382876,39 @@ }; /** - * Decodes a QuestionAnsweringHelpfulnessInput message from the specified reader or buffer, length delimited. + * Decodes a PointwiseMetricInput message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInput + * @memberof google.cloud.aiplatform.v1beta1.PointwiseMetricInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInput} QuestionAnsweringHelpfulnessInput + * @returns {google.cloud.aiplatform.v1beta1.PointwiseMetricInput} PointwiseMetricInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QuestionAnsweringHelpfulnessInput.decodeDelimited = function decodeDelimited(reader) { + PointwiseMetricInput.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QuestionAnsweringHelpfulnessInput message. + * Verifies a PointwiseMetricInput message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInput + * @memberof google.cloud.aiplatform.v1beta1.PointwiseMetricInput * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QuestionAnsweringHelpfulnessInput.verify = function verify(message) { + PointwiseMetricInput.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) { - var error = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpec.verify(message.metricSpec); + var error = $root.google.cloud.aiplatform.v1beta1.PointwiseMetricSpec.verify(message.metricSpec); if (error) return "metricSpec." + error; } if (message.instance != null && message.hasOwnProperty("instance")) { - var error = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance.verify(message.instance); + var error = $root.google.cloud.aiplatform.v1beta1.PointwiseMetricInstance.verify(message.instance); if (error) return "instance." + error; } @@ -351015,40 +382916,40 @@ }; /** - * Creates a QuestionAnsweringHelpfulnessInput message from a plain object. Also converts values to their respective internal types. + * Creates a PointwiseMetricInput message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInput + * @memberof google.cloud.aiplatform.v1beta1.PointwiseMetricInput * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInput} QuestionAnsweringHelpfulnessInput + * @returns {google.cloud.aiplatform.v1beta1.PointwiseMetricInput} PointwiseMetricInput */ - QuestionAnsweringHelpfulnessInput.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInput) + PointwiseMetricInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PointwiseMetricInput) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInput(); + var message = new $root.google.cloud.aiplatform.v1beta1.PointwiseMetricInput(); if (object.metricSpec != null) { if (typeof object.metricSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInput.metricSpec: object expected"); - message.metricSpec = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpec.fromObject(object.metricSpec); + throw TypeError(".google.cloud.aiplatform.v1beta1.PointwiseMetricInput.metricSpec: object expected"); + message.metricSpec = $root.google.cloud.aiplatform.v1beta1.PointwiseMetricSpec.fromObject(object.metricSpec); } if (object.instance != null) { if (typeof object.instance !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInput.instance: object expected"); - message.instance = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance.fromObject(object.instance); + throw TypeError(".google.cloud.aiplatform.v1beta1.PointwiseMetricInput.instance: object expected"); + message.instance = $root.google.cloud.aiplatform.v1beta1.PointwiseMetricInstance.fromObject(object.instance); } return message; }; /** - * Creates a plain object from a QuestionAnsweringHelpfulnessInput message. Also converts values to other types if specified. + * Creates a plain object from a PointwiseMetricInput message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInput + * @memberof google.cloud.aiplatform.v1beta1.PointwiseMetricInput * @static - * @param {google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInput} message QuestionAnsweringHelpfulnessInput + * @param {google.cloud.aiplatform.v1beta1.PointwiseMetricInput} message PointwiseMetricInput * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QuestionAnsweringHelpfulnessInput.toObject = function toObject(message, options) { + PointwiseMetricInput.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -351057,62 +382958,59 @@ object.instance = null; } if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) - object.metricSpec = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpec.toObject(message.metricSpec, options); + object.metricSpec = $root.google.cloud.aiplatform.v1beta1.PointwiseMetricSpec.toObject(message.metricSpec, options); if (message.instance != null && message.hasOwnProperty("instance")) - object.instance = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance.toObject(message.instance, options); + object.instance = $root.google.cloud.aiplatform.v1beta1.PointwiseMetricInstance.toObject(message.instance, options); return object; }; /** - * Converts this QuestionAnsweringHelpfulnessInput to JSON. + * Converts this PointwiseMetricInput to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInput + * @memberof google.cloud.aiplatform.v1beta1.PointwiseMetricInput * @instance * @returns {Object.} JSON object */ - QuestionAnsweringHelpfulnessInput.prototype.toJSON = function toJSON() { + PointwiseMetricInput.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for QuestionAnsweringHelpfulnessInput + * Gets the default type url for PointwiseMetricInput * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInput + * @memberof google.cloud.aiplatform.v1beta1.PointwiseMetricInput * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - QuestionAnsweringHelpfulnessInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PointwiseMetricInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInput"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PointwiseMetricInput"; }; - return QuestionAnsweringHelpfulnessInput; + return PointwiseMetricInput; })(); - v1beta1.QuestionAnsweringHelpfulnessInstance = (function() { + v1beta1.PointwiseMetricInstance = (function() { /** - * Properties of a QuestionAnsweringHelpfulnessInstance. + * Properties of a PointwiseMetricInstance. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IQuestionAnsweringHelpfulnessInstance - * @property {string|null} [prediction] QuestionAnsweringHelpfulnessInstance prediction - * @property {string|null} [reference] QuestionAnsweringHelpfulnessInstance reference - * @property {string|null} [context] QuestionAnsweringHelpfulnessInstance context - * @property {string|null} [instruction] QuestionAnsweringHelpfulnessInstance instruction + * @interface IPointwiseMetricInstance + * @property {string|null} [jsonInstance] PointwiseMetricInstance jsonInstance */ /** - * Constructs a new QuestionAnsweringHelpfulnessInstance. + * Constructs a new PointwiseMetricInstance. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a QuestionAnsweringHelpfulnessInstance. - * @implements IQuestionAnsweringHelpfulnessInstance + * @classdesc Represents a PointwiseMetricInstance. + * @implements IPointwiseMetricInstance * @constructor - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringHelpfulnessInstance=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IPointwiseMetricInstance=} [properties] Properties to set */ - function QuestionAnsweringHelpfulnessInstance(properties) { + function PointwiseMetricInstance(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -351120,164 +383018,89 @@ } /** - * QuestionAnsweringHelpfulnessInstance prediction. - * @member {string|null|undefined} prediction - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance - * @instance - */ - QuestionAnsweringHelpfulnessInstance.prototype.prediction = null; - - /** - * QuestionAnsweringHelpfulnessInstance reference. - * @member {string|null|undefined} reference - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance - * @instance - */ - QuestionAnsweringHelpfulnessInstance.prototype.reference = null; - - /** - * QuestionAnsweringHelpfulnessInstance context. - * @member {string|null|undefined} context - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance - * @instance - */ - QuestionAnsweringHelpfulnessInstance.prototype.context = null; - - /** - * QuestionAnsweringHelpfulnessInstance instruction. - * @member {string|null|undefined} instruction - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance + * PointwiseMetricInstance jsonInstance. + * @member {string|null|undefined} jsonInstance + * @memberof google.cloud.aiplatform.v1beta1.PointwiseMetricInstance * @instance */ - QuestionAnsweringHelpfulnessInstance.prototype.instruction = null; + PointwiseMetricInstance.prototype.jsonInstance = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * QuestionAnsweringHelpfulnessInstance _prediction. - * @member {"prediction"|undefined} _prediction - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance + * PointwiseMetricInstance instance. + * @member {"jsonInstance"|undefined} instance + * @memberof google.cloud.aiplatform.v1beta1.PointwiseMetricInstance * @instance */ - Object.defineProperty(QuestionAnsweringHelpfulnessInstance.prototype, "_prediction", { - get: $util.oneOfGetter($oneOfFields = ["prediction"]), + Object.defineProperty(PointwiseMetricInstance.prototype, "instance", { + get: $util.oneOfGetter($oneOfFields = ["jsonInstance"]), set: $util.oneOfSetter($oneOfFields) }); /** - * QuestionAnsweringHelpfulnessInstance _reference. - * @member {"reference"|undefined} _reference - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance - * @instance - */ - Object.defineProperty(QuestionAnsweringHelpfulnessInstance.prototype, "_reference", { - get: $util.oneOfGetter($oneOfFields = ["reference"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * QuestionAnsweringHelpfulnessInstance _context. - * @member {"context"|undefined} _context - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance - * @instance - */ - Object.defineProperty(QuestionAnsweringHelpfulnessInstance.prototype, "_context", { - get: $util.oneOfGetter($oneOfFields = ["context"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * QuestionAnsweringHelpfulnessInstance _instruction. - * @member {"instruction"|undefined} _instruction - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance - * @instance - */ - Object.defineProperty(QuestionAnsweringHelpfulnessInstance.prototype, "_instruction", { - get: $util.oneOfGetter($oneOfFields = ["instruction"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new QuestionAnsweringHelpfulnessInstance instance using the specified properties. + * Creates a new PointwiseMetricInstance instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance + * @memberof google.cloud.aiplatform.v1beta1.PointwiseMetricInstance * @static - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringHelpfulnessInstance=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance} QuestionAnsweringHelpfulnessInstance instance + * @param {google.cloud.aiplatform.v1beta1.IPointwiseMetricInstance=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PointwiseMetricInstance} PointwiseMetricInstance instance */ - QuestionAnsweringHelpfulnessInstance.create = function create(properties) { - return new QuestionAnsweringHelpfulnessInstance(properties); + PointwiseMetricInstance.create = function create(properties) { + return new PointwiseMetricInstance(properties); }; /** - * Encodes the specified QuestionAnsweringHelpfulnessInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance.verify|verify} messages. + * Encodes the specified PointwiseMetricInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PointwiseMetricInstance.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance + * @memberof google.cloud.aiplatform.v1beta1.PointwiseMetricInstance * @static - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringHelpfulnessInstance} message QuestionAnsweringHelpfulnessInstance message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPointwiseMetricInstance} message PointwiseMetricInstance message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QuestionAnsweringHelpfulnessInstance.encode = function encode(message, writer) { + PointwiseMetricInstance.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.prediction != null && Object.hasOwnProperty.call(message, "prediction")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.prediction); - if (message.reference != null && Object.hasOwnProperty.call(message, "reference")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.reference); - if (message.context != null && Object.hasOwnProperty.call(message, "context")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.context); - if (message.instruction != null && Object.hasOwnProperty.call(message, "instruction")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.instruction); + if (message.jsonInstance != null && Object.hasOwnProperty.call(message, "jsonInstance")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.jsonInstance); return writer; }; /** - * Encodes the specified QuestionAnsweringHelpfulnessInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance.verify|verify} messages. + * Encodes the specified PointwiseMetricInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PointwiseMetricInstance.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance + * @memberof google.cloud.aiplatform.v1beta1.PointwiseMetricInstance * @static - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringHelpfulnessInstance} message QuestionAnsweringHelpfulnessInstance message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPointwiseMetricInstance} message PointwiseMetricInstance message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QuestionAnsweringHelpfulnessInstance.encodeDelimited = function encodeDelimited(message, writer) { + PointwiseMetricInstance.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QuestionAnsweringHelpfulnessInstance message from the specified reader or buffer. + * Decodes a PointwiseMetricInstance message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance + * @memberof google.cloud.aiplatform.v1beta1.PointwiseMetricInstance * @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.QuestionAnsweringHelpfulnessInstance} QuestionAnsweringHelpfulnessInstance + * @returns {google.cloud.aiplatform.v1beta1.PointwiseMetricInstance} PointwiseMetricInstance * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QuestionAnsweringHelpfulnessInstance.decode = function decode(reader, length) { + PointwiseMetricInstance.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.QuestionAnsweringHelpfulnessInstance(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PointwiseMetricInstance(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.prediction = reader.string(); - break; - } - case 2: { - message.reference = reader.string(); - break; - } - case 3: { - message.context = reader.string(); - break; - } - case 4: { - message.instruction = reader.string(); + message.jsonInstance = reader.string(); break; } default: @@ -351289,163 +383112,126 @@ }; /** - * Decodes a QuestionAnsweringHelpfulnessInstance message from the specified reader or buffer, length delimited. + * Decodes a PointwiseMetricInstance message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance + * @memberof google.cloud.aiplatform.v1beta1.PointwiseMetricInstance * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance} QuestionAnsweringHelpfulnessInstance + * @returns {google.cloud.aiplatform.v1beta1.PointwiseMetricInstance} PointwiseMetricInstance * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QuestionAnsweringHelpfulnessInstance.decodeDelimited = function decodeDelimited(reader) { + PointwiseMetricInstance.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QuestionAnsweringHelpfulnessInstance message. + * Verifies a PointwiseMetricInstance message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance + * @memberof google.cloud.aiplatform.v1beta1.PointwiseMetricInstance * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QuestionAnsweringHelpfulnessInstance.verify = function verify(message) { + PointwiseMetricInstance.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; - if (message.prediction != null && message.hasOwnProperty("prediction")) { - properties._prediction = 1; - if (!$util.isString(message.prediction)) - return "prediction: string expected"; - } - if (message.reference != null && message.hasOwnProperty("reference")) { - properties._reference = 1; - if (!$util.isString(message.reference)) - return "reference: string expected"; - } - if (message.context != null && message.hasOwnProperty("context")) { - properties._context = 1; - if (!$util.isString(message.context)) - return "context: string expected"; - } - if (message.instruction != null && message.hasOwnProperty("instruction")) { - properties._instruction = 1; - if (!$util.isString(message.instruction)) - return "instruction: string expected"; + if (message.jsonInstance != null && message.hasOwnProperty("jsonInstance")) { + properties.instance = 1; + if (!$util.isString(message.jsonInstance)) + return "jsonInstance: string expected"; } return null; }; /** - * Creates a QuestionAnsweringHelpfulnessInstance message from a plain object. Also converts values to their respective internal types. + * Creates a PointwiseMetricInstance message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance + * @memberof google.cloud.aiplatform.v1beta1.PointwiseMetricInstance * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance} QuestionAnsweringHelpfulnessInstance + * @returns {google.cloud.aiplatform.v1beta1.PointwiseMetricInstance} PointwiseMetricInstance */ - QuestionAnsweringHelpfulnessInstance.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance) + PointwiseMetricInstance.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PointwiseMetricInstance) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance(); - if (object.prediction != null) - message.prediction = String(object.prediction); - if (object.reference != null) - message.reference = String(object.reference); - if (object.context != null) - message.context = String(object.context); - if (object.instruction != null) - message.instruction = String(object.instruction); + var message = new $root.google.cloud.aiplatform.v1beta1.PointwiseMetricInstance(); + if (object.jsonInstance != null) + message.jsonInstance = String(object.jsonInstance); return message; }; /** - * Creates a plain object from a QuestionAnsweringHelpfulnessInstance message. Also converts values to other types if specified. + * Creates a plain object from a PointwiseMetricInstance message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance + * @memberof google.cloud.aiplatform.v1beta1.PointwiseMetricInstance * @static - * @param {google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance} message QuestionAnsweringHelpfulnessInstance + * @param {google.cloud.aiplatform.v1beta1.PointwiseMetricInstance} message PointwiseMetricInstance * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QuestionAnsweringHelpfulnessInstance.toObject = function toObject(message, options) { + PointwiseMetricInstance.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (message.prediction != null && message.hasOwnProperty("prediction")) { - object.prediction = message.prediction; - if (options.oneofs) - object._prediction = "prediction"; - } - if (message.reference != null && message.hasOwnProperty("reference")) { - object.reference = message.reference; - if (options.oneofs) - object._reference = "reference"; - } - if (message.context != null && message.hasOwnProperty("context")) { - object.context = message.context; + if (message.jsonInstance != null && message.hasOwnProperty("jsonInstance")) { + object.jsonInstance = message.jsonInstance; if (options.oneofs) - object._context = "context"; - } - if (message.instruction != null && message.hasOwnProperty("instruction")) { - object.instruction = message.instruction; - if (options.oneofs) - object._instruction = "instruction"; + object.instance = "jsonInstance"; } return object; }; /** - * Converts this QuestionAnsweringHelpfulnessInstance to JSON. + * Converts this PointwiseMetricInstance to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance + * @memberof google.cloud.aiplatform.v1beta1.PointwiseMetricInstance * @instance * @returns {Object.} JSON object */ - QuestionAnsweringHelpfulnessInstance.prototype.toJSON = function toJSON() { + PointwiseMetricInstance.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for QuestionAnsweringHelpfulnessInstance + * Gets the default type url for PointwiseMetricInstance * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance + * @memberof google.cloud.aiplatform.v1beta1.PointwiseMetricInstance * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - QuestionAnsweringHelpfulnessInstance.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PointwiseMetricInstance.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PointwiseMetricInstance"; }; - return QuestionAnsweringHelpfulnessInstance; + return PointwiseMetricInstance; })(); - v1beta1.QuestionAnsweringHelpfulnessSpec = (function() { + v1beta1.PointwiseMetricSpec = (function() { /** - * Properties of a QuestionAnsweringHelpfulnessSpec. + * Properties of a PointwiseMetricSpec. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IQuestionAnsweringHelpfulnessSpec - * @property {boolean|null} [useReference] QuestionAnsweringHelpfulnessSpec useReference - * @property {number|null} [version] QuestionAnsweringHelpfulnessSpec version + * @interface IPointwiseMetricSpec + * @property {string|null} [metricPromptTemplate] PointwiseMetricSpec metricPromptTemplate */ /** - * Constructs a new QuestionAnsweringHelpfulnessSpec. + * Constructs a new PointwiseMetricSpec. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a QuestionAnsweringHelpfulnessSpec. - * @implements IQuestionAnsweringHelpfulnessSpec + * @classdesc Represents a PointwiseMetricSpec. + * @implements IPointwiseMetricSpec * @constructor - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringHelpfulnessSpec=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IPointwiseMetricSpec=} [properties] Properties to set */ - function QuestionAnsweringHelpfulnessSpec(properties) { + function PointwiseMetricSpec(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -351453,89 +383239,89 @@ } /** - * QuestionAnsweringHelpfulnessSpec useReference. - * @member {boolean} useReference - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpec + * PointwiseMetricSpec metricPromptTemplate. + * @member {string|null|undefined} metricPromptTemplate + * @memberof google.cloud.aiplatform.v1beta1.PointwiseMetricSpec * @instance */ - QuestionAnsweringHelpfulnessSpec.prototype.useReference = false; + PointwiseMetricSpec.prototype.metricPromptTemplate = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * QuestionAnsweringHelpfulnessSpec version. - * @member {number} version - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpec + * PointwiseMetricSpec _metricPromptTemplate. + * @member {"metricPromptTemplate"|undefined} _metricPromptTemplate + * @memberof google.cloud.aiplatform.v1beta1.PointwiseMetricSpec * @instance */ - QuestionAnsweringHelpfulnessSpec.prototype.version = 0; + Object.defineProperty(PointwiseMetricSpec.prototype, "_metricPromptTemplate", { + get: $util.oneOfGetter($oneOfFields = ["metricPromptTemplate"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new QuestionAnsweringHelpfulnessSpec instance using the specified properties. + * Creates a new PointwiseMetricSpec instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpec + * @memberof google.cloud.aiplatform.v1beta1.PointwiseMetricSpec * @static - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringHelpfulnessSpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpec} QuestionAnsweringHelpfulnessSpec instance + * @param {google.cloud.aiplatform.v1beta1.IPointwiseMetricSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PointwiseMetricSpec} PointwiseMetricSpec instance */ - QuestionAnsweringHelpfulnessSpec.create = function create(properties) { - return new QuestionAnsweringHelpfulnessSpec(properties); + PointwiseMetricSpec.create = function create(properties) { + return new PointwiseMetricSpec(properties); }; /** - * Encodes the specified QuestionAnsweringHelpfulnessSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpec.verify|verify} messages. + * Encodes the specified PointwiseMetricSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PointwiseMetricSpec.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpec + * @memberof google.cloud.aiplatform.v1beta1.PointwiseMetricSpec * @static - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringHelpfulnessSpec} message QuestionAnsweringHelpfulnessSpec message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPointwiseMetricSpec} message PointwiseMetricSpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QuestionAnsweringHelpfulnessSpec.encode = function encode(message, writer) { + PointwiseMetricSpec.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.useReference != null && Object.hasOwnProperty.call(message, "useReference")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.useReference); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.version); + if (message.metricPromptTemplate != null && Object.hasOwnProperty.call(message, "metricPromptTemplate")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.metricPromptTemplate); return writer; }; /** - * Encodes the specified QuestionAnsweringHelpfulnessSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpec.verify|verify} messages. + * Encodes the specified PointwiseMetricSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PointwiseMetricSpec.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpec + * @memberof google.cloud.aiplatform.v1beta1.PointwiseMetricSpec * @static - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringHelpfulnessSpec} message QuestionAnsweringHelpfulnessSpec message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPointwiseMetricSpec} message PointwiseMetricSpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QuestionAnsweringHelpfulnessSpec.encodeDelimited = function encodeDelimited(message, writer) { + PointwiseMetricSpec.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QuestionAnsweringHelpfulnessSpec message from the specified reader or buffer. + * Decodes a PointwiseMetricSpec message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpec + * @memberof google.cloud.aiplatform.v1beta1.PointwiseMetricSpec * @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.QuestionAnsweringHelpfulnessSpec} QuestionAnsweringHelpfulnessSpec + * @returns {google.cloud.aiplatform.v1beta1.PointwiseMetricSpec} PointwiseMetricSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QuestionAnsweringHelpfulnessSpec.decode = function decode(reader, length) { + PointwiseMetricSpec.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.QuestionAnsweringHelpfulnessSpec(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PointwiseMetricSpec(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.useReference = reader.bool(); - break; - } - case 2: { - message.version = reader.int32(); + message.metricPromptTemplate = reader.string(); break; } default: @@ -351547,133 +383333,127 @@ }; /** - * Decodes a QuestionAnsweringHelpfulnessSpec message from the specified reader or buffer, length delimited. + * Decodes a PointwiseMetricSpec message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpec + * @memberof google.cloud.aiplatform.v1beta1.PointwiseMetricSpec * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpec} QuestionAnsweringHelpfulnessSpec + * @returns {google.cloud.aiplatform.v1beta1.PointwiseMetricSpec} PointwiseMetricSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QuestionAnsweringHelpfulnessSpec.decodeDelimited = function decodeDelimited(reader) { + PointwiseMetricSpec.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QuestionAnsweringHelpfulnessSpec message. + * Verifies a PointwiseMetricSpec message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpec + * @memberof google.cloud.aiplatform.v1beta1.PointwiseMetricSpec * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QuestionAnsweringHelpfulnessSpec.verify = function verify(message) { + PointwiseMetricSpec.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.useReference != null && message.hasOwnProperty("useReference")) - if (typeof message.useReference !== "boolean") - return "useReference: boolean expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isInteger(message.version)) - return "version: integer expected"; + var properties = {}; + if (message.metricPromptTemplate != null && message.hasOwnProperty("metricPromptTemplate")) { + properties._metricPromptTemplate = 1; + if (!$util.isString(message.metricPromptTemplate)) + return "metricPromptTemplate: string expected"; + } return null; }; /** - * Creates a QuestionAnsweringHelpfulnessSpec message from a plain object. Also converts values to their respective internal types. + * Creates a PointwiseMetricSpec message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpec + * @memberof google.cloud.aiplatform.v1beta1.PointwiseMetricSpec * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpec} QuestionAnsweringHelpfulnessSpec + * @returns {google.cloud.aiplatform.v1beta1.PointwiseMetricSpec} PointwiseMetricSpec */ - QuestionAnsweringHelpfulnessSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpec) + PointwiseMetricSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PointwiseMetricSpec) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpec(); - if (object.useReference != null) - message.useReference = Boolean(object.useReference); - if (object.version != null) - message.version = object.version | 0; + var message = new $root.google.cloud.aiplatform.v1beta1.PointwiseMetricSpec(); + if (object.metricPromptTemplate != null) + message.metricPromptTemplate = String(object.metricPromptTemplate); return message; }; /** - * Creates a plain object from a QuestionAnsweringHelpfulnessSpec message. Also converts values to other types if specified. + * Creates a plain object from a PointwiseMetricSpec message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpec + * @memberof google.cloud.aiplatform.v1beta1.PointwiseMetricSpec * @static - * @param {google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpec} message QuestionAnsweringHelpfulnessSpec + * @param {google.cloud.aiplatform.v1beta1.PointwiseMetricSpec} message PointwiseMetricSpec * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QuestionAnsweringHelpfulnessSpec.toObject = function toObject(message, options) { + PointwiseMetricSpec.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.useReference = false; - object.version = 0; + if (message.metricPromptTemplate != null && message.hasOwnProperty("metricPromptTemplate")) { + object.metricPromptTemplate = message.metricPromptTemplate; + if (options.oneofs) + object._metricPromptTemplate = "metricPromptTemplate"; } - if (message.useReference != null && message.hasOwnProperty("useReference")) - object.useReference = message.useReference; - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; return object; }; /** - * Converts this QuestionAnsweringHelpfulnessSpec to JSON. + * Converts this PointwiseMetricSpec to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpec + * @memberof google.cloud.aiplatform.v1beta1.PointwiseMetricSpec * @instance * @returns {Object.} JSON object */ - QuestionAnsweringHelpfulnessSpec.prototype.toJSON = function toJSON() { + PointwiseMetricSpec.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for QuestionAnsweringHelpfulnessSpec + * Gets the default type url for PointwiseMetricSpec * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpec + * @memberof google.cloud.aiplatform.v1beta1.PointwiseMetricSpec * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - QuestionAnsweringHelpfulnessSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PointwiseMetricSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpec"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PointwiseMetricSpec"; }; - return QuestionAnsweringHelpfulnessSpec; + return PointwiseMetricSpec; })(); - v1beta1.QuestionAnsweringHelpfulnessResult = (function() { + v1beta1.PointwiseMetricResult = (function() { /** - * Properties of a QuestionAnsweringHelpfulnessResult. + * Properties of a PointwiseMetricResult. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IQuestionAnsweringHelpfulnessResult - * @property {number|null} [score] QuestionAnsweringHelpfulnessResult score - * @property {string|null} [explanation] QuestionAnsweringHelpfulnessResult explanation - * @property {number|null} [confidence] QuestionAnsweringHelpfulnessResult confidence + * @interface IPointwiseMetricResult + * @property {number|null} [score] PointwiseMetricResult score + * @property {string|null} [explanation] PointwiseMetricResult explanation */ /** - * Constructs a new QuestionAnsweringHelpfulnessResult. + * Constructs a new PointwiseMetricResult. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a QuestionAnsweringHelpfulnessResult. - * @implements IQuestionAnsweringHelpfulnessResult + * @classdesc Represents a PointwiseMetricResult. + * @implements IPointwiseMetricResult * @constructor - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringHelpfulnessResult=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IPointwiseMetricResult=} [properties] Properties to set */ - function QuestionAnsweringHelpfulnessResult(properties) { + function PointwiseMetricResult(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -351681,115 +383461,94 @@ } /** - * QuestionAnsweringHelpfulnessResult score. + * PointwiseMetricResult score. * @member {number|null|undefined} score - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessResult + * @memberof google.cloud.aiplatform.v1beta1.PointwiseMetricResult * @instance */ - QuestionAnsweringHelpfulnessResult.prototype.score = null; + PointwiseMetricResult.prototype.score = null; /** - * QuestionAnsweringHelpfulnessResult explanation. + * PointwiseMetricResult explanation. * @member {string} explanation - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessResult - * @instance - */ - QuestionAnsweringHelpfulnessResult.prototype.explanation = ""; - - /** - * QuestionAnsweringHelpfulnessResult confidence. - * @member {number|null|undefined} confidence - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessResult + * @memberof google.cloud.aiplatform.v1beta1.PointwiseMetricResult * @instance */ - QuestionAnsweringHelpfulnessResult.prototype.confidence = null; + PointwiseMetricResult.prototype.explanation = ""; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * QuestionAnsweringHelpfulnessResult _score. + * PointwiseMetricResult _score. * @member {"score"|undefined} _score - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessResult + * @memberof google.cloud.aiplatform.v1beta1.PointwiseMetricResult * @instance */ - Object.defineProperty(QuestionAnsweringHelpfulnessResult.prototype, "_score", { + Object.defineProperty(PointwiseMetricResult.prototype, "_score", { get: $util.oneOfGetter($oneOfFields = ["score"]), set: $util.oneOfSetter($oneOfFields) }); /** - * QuestionAnsweringHelpfulnessResult _confidence. - * @member {"confidence"|undefined} _confidence - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessResult - * @instance - */ - Object.defineProperty(QuestionAnsweringHelpfulnessResult.prototype, "_confidence", { - get: $util.oneOfGetter($oneOfFields = ["confidence"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new QuestionAnsweringHelpfulnessResult instance using the specified properties. + * Creates a new PointwiseMetricResult instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessResult + * @memberof google.cloud.aiplatform.v1beta1.PointwiseMetricResult * @static - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringHelpfulnessResult=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessResult} QuestionAnsweringHelpfulnessResult instance + * @param {google.cloud.aiplatform.v1beta1.IPointwiseMetricResult=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PointwiseMetricResult} PointwiseMetricResult instance */ - QuestionAnsweringHelpfulnessResult.create = function create(properties) { - return new QuestionAnsweringHelpfulnessResult(properties); + PointwiseMetricResult.create = function create(properties) { + return new PointwiseMetricResult(properties); }; /** - * Encodes the specified QuestionAnsweringHelpfulnessResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessResult.verify|verify} messages. + * Encodes the specified PointwiseMetricResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PointwiseMetricResult.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessResult + * @memberof google.cloud.aiplatform.v1beta1.PointwiseMetricResult * @static - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringHelpfulnessResult} message QuestionAnsweringHelpfulnessResult message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPointwiseMetricResult} message PointwiseMetricResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QuestionAnsweringHelpfulnessResult.encode = function encode(message, writer) { + PointwiseMetricResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.score != null && Object.hasOwnProperty.call(message, "score")) writer.uint32(/* id 1, wireType 5 =*/13).float(message.score); if (message.explanation != null && Object.hasOwnProperty.call(message, "explanation")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.explanation); - if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) - writer.uint32(/* id 3, wireType 5 =*/29).float(message.confidence); return writer; }; /** - * Encodes the specified QuestionAnsweringHelpfulnessResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessResult.verify|verify} messages. + * Encodes the specified PointwiseMetricResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PointwiseMetricResult.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessResult + * @memberof google.cloud.aiplatform.v1beta1.PointwiseMetricResult * @static - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringHelpfulnessResult} message QuestionAnsweringHelpfulnessResult message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPointwiseMetricResult} message PointwiseMetricResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QuestionAnsweringHelpfulnessResult.encodeDelimited = function encodeDelimited(message, writer) { + PointwiseMetricResult.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QuestionAnsweringHelpfulnessResult message from the specified reader or buffer. + * Decodes a PointwiseMetricResult message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessResult + * @memberof google.cloud.aiplatform.v1beta1.PointwiseMetricResult * @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.QuestionAnsweringHelpfulnessResult} QuestionAnsweringHelpfulnessResult + * @returns {google.cloud.aiplatform.v1beta1.PointwiseMetricResult} PointwiseMetricResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QuestionAnsweringHelpfulnessResult.decode = function decode(reader, length) { + PointwiseMetricResult.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.QuestionAnsweringHelpfulnessResult(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PointwiseMetricResult(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -351801,10 +383560,6 @@ message.explanation = reader.string(); break; } - case 3: { - message.confidence = reader.float(); - break; - } default: reader.skipType(tag & 7); break; @@ -351814,30 +383569,30 @@ }; /** - * Decodes a QuestionAnsweringHelpfulnessResult message from the specified reader or buffer, length delimited. + * Decodes a PointwiseMetricResult message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessResult + * @memberof google.cloud.aiplatform.v1beta1.PointwiseMetricResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessResult} QuestionAnsweringHelpfulnessResult + * @returns {google.cloud.aiplatform.v1beta1.PointwiseMetricResult} PointwiseMetricResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QuestionAnsweringHelpfulnessResult.decodeDelimited = function decodeDelimited(reader) { + PointwiseMetricResult.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QuestionAnsweringHelpfulnessResult message. + * Verifies a PointwiseMetricResult message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessResult + * @memberof google.cloud.aiplatform.v1beta1.PointwiseMetricResult * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QuestionAnsweringHelpfulnessResult.verify = function verify(message) { + PointwiseMetricResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -351849,45 +383604,38 @@ if (message.explanation != null && message.hasOwnProperty("explanation")) if (!$util.isString(message.explanation)) return "explanation: string expected"; - if (message.confidence != null && message.hasOwnProperty("confidence")) { - properties._confidence = 1; - if (typeof message.confidence !== "number") - return "confidence: number expected"; - } return null; }; /** - * Creates a QuestionAnsweringHelpfulnessResult message from a plain object. Also converts values to their respective internal types. + * Creates a PointwiseMetricResult message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessResult + * @memberof google.cloud.aiplatform.v1beta1.PointwiseMetricResult * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessResult} QuestionAnsweringHelpfulnessResult + * @returns {google.cloud.aiplatform.v1beta1.PointwiseMetricResult} PointwiseMetricResult */ - QuestionAnsweringHelpfulnessResult.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessResult) + PointwiseMetricResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PointwiseMetricResult) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessResult(); + var message = new $root.google.cloud.aiplatform.v1beta1.PointwiseMetricResult(); if (object.score != null) message.score = Number(object.score); if (object.explanation != null) message.explanation = String(object.explanation); - if (object.confidence != null) - message.confidence = Number(object.confidence); return message; }; /** - * Creates a plain object from a QuestionAnsweringHelpfulnessResult message. Also converts values to other types if specified. + * Creates a plain object from a PointwiseMetricResult message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessResult + * @memberof google.cloud.aiplatform.v1beta1.PointwiseMetricResult * @static - * @param {google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessResult} message QuestionAnsweringHelpfulnessResult + * @param {google.cloud.aiplatform.v1beta1.PointwiseMetricResult} message PointwiseMetricResult * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QuestionAnsweringHelpfulnessResult.toObject = function toObject(message, options) { + PointwiseMetricResult.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -351900,62 +383648,57 @@ } if (message.explanation != null && message.hasOwnProperty("explanation")) object.explanation = message.explanation; - if (message.confidence != null && message.hasOwnProperty("confidence")) { - object.confidence = options.json && !isFinite(message.confidence) ? String(message.confidence) : message.confidence; - if (options.oneofs) - object._confidence = "confidence"; - } return object; }; /** - * Converts this QuestionAnsweringHelpfulnessResult to JSON. + * Converts this PointwiseMetricResult to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessResult + * @memberof google.cloud.aiplatform.v1beta1.PointwiseMetricResult * @instance * @returns {Object.} JSON object */ - QuestionAnsweringHelpfulnessResult.prototype.toJSON = function toJSON() { + PointwiseMetricResult.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for QuestionAnsweringHelpfulnessResult + * Gets the default type url for PointwiseMetricResult * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessResult + * @memberof google.cloud.aiplatform.v1beta1.PointwiseMetricResult * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - QuestionAnsweringHelpfulnessResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PointwiseMetricResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessResult"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PointwiseMetricResult"; }; - return QuestionAnsweringHelpfulnessResult; + return PointwiseMetricResult; })(); - v1beta1.QuestionAnsweringCorrectnessInput = (function() { + v1beta1.PairwiseMetricInput = (function() { /** - * Properties of a QuestionAnsweringCorrectnessInput. + * Properties of a PairwiseMetricInput. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IQuestionAnsweringCorrectnessInput - * @property {google.cloud.aiplatform.v1beta1.IQuestionAnsweringCorrectnessSpec|null} [metricSpec] QuestionAnsweringCorrectnessInput metricSpec - * @property {google.cloud.aiplatform.v1beta1.IQuestionAnsweringCorrectnessInstance|null} [instance] QuestionAnsweringCorrectnessInput instance + * @interface IPairwiseMetricInput + * @property {google.cloud.aiplatform.v1beta1.IPairwiseMetricSpec|null} [metricSpec] PairwiseMetricInput metricSpec + * @property {google.cloud.aiplatform.v1beta1.IPairwiseMetricInstance|null} [instance] PairwiseMetricInput instance */ /** - * Constructs a new QuestionAnsweringCorrectnessInput. + * Constructs a new PairwiseMetricInput. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a QuestionAnsweringCorrectnessInput. - * @implements IQuestionAnsweringCorrectnessInput + * @classdesc Represents a PairwiseMetricInput. + * @implements IPairwiseMetricInput * @constructor - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringCorrectnessInput=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IPairwiseMetricInput=} [properties] Properties to set */ - function QuestionAnsweringCorrectnessInput(properties) { + function PairwiseMetricInput(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -351963,89 +383706,89 @@ } /** - * QuestionAnsweringCorrectnessInput metricSpec. - * @member {google.cloud.aiplatform.v1beta1.IQuestionAnsweringCorrectnessSpec|null|undefined} metricSpec - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInput + * PairwiseMetricInput metricSpec. + * @member {google.cloud.aiplatform.v1beta1.IPairwiseMetricSpec|null|undefined} metricSpec + * @memberof google.cloud.aiplatform.v1beta1.PairwiseMetricInput * @instance */ - QuestionAnsweringCorrectnessInput.prototype.metricSpec = null; + PairwiseMetricInput.prototype.metricSpec = null; /** - * QuestionAnsweringCorrectnessInput instance. - * @member {google.cloud.aiplatform.v1beta1.IQuestionAnsweringCorrectnessInstance|null|undefined} instance - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInput + * PairwiseMetricInput instance. + * @member {google.cloud.aiplatform.v1beta1.IPairwiseMetricInstance|null|undefined} instance + * @memberof google.cloud.aiplatform.v1beta1.PairwiseMetricInput * @instance */ - QuestionAnsweringCorrectnessInput.prototype.instance = null; + PairwiseMetricInput.prototype.instance = null; /** - * Creates a new QuestionAnsweringCorrectnessInput instance using the specified properties. + * Creates a new PairwiseMetricInput instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInput + * @memberof google.cloud.aiplatform.v1beta1.PairwiseMetricInput * @static - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringCorrectnessInput=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInput} QuestionAnsweringCorrectnessInput instance + * @param {google.cloud.aiplatform.v1beta1.IPairwiseMetricInput=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PairwiseMetricInput} PairwiseMetricInput instance */ - QuestionAnsweringCorrectnessInput.create = function create(properties) { - return new QuestionAnsweringCorrectnessInput(properties); + PairwiseMetricInput.create = function create(properties) { + return new PairwiseMetricInput(properties); }; /** - * Encodes the specified QuestionAnsweringCorrectnessInput message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInput.verify|verify} messages. + * Encodes the specified PairwiseMetricInput message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PairwiseMetricInput.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInput + * @memberof google.cloud.aiplatform.v1beta1.PairwiseMetricInput * @static - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringCorrectnessInput} message QuestionAnsweringCorrectnessInput message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPairwiseMetricInput} message PairwiseMetricInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QuestionAnsweringCorrectnessInput.encode = function encode(message, writer) { + PairwiseMetricInput.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.metricSpec != null && Object.hasOwnProperty.call(message, "metricSpec")) - $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessSpec.encode(message.metricSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.google.cloud.aiplatform.v1beta1.PairwiseMetricSpec.encode(message.metricSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.instance != null && Object.hasOwnProperty.call(message, "instance")) - $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance.encode(message.instance, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.google.cloud.aiplatform.v1beta1.PairwiseMetricInstance.encode(message.instance, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified QuestionAnsweringCorrectnessInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInput.verify|verify} messages. + * Encodes the specified PairwiseMetricInput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PairwiseMetricInput.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInput + * @memberof google.cloud.aiplatform.v1beta1.PairwiseMetricInput * @static - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringCorrectnessInput} message QuestionAnsweringCorrectnessInput message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPairwiseMetricInput} message PairwiseMetricInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QuestionAnsweringCorrectnessInput.encodeDelimited = function encodeDelimited(message, writer) { + PairwiseMetricInput.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QuestionAnsweringCorrectnessInput message from the specified reader or buffer. + * Decodes a PairwiseMetricInput message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInput + * @memberof google.cloud.aiplatform.v1beta1.PairwiseMetricInput * @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.QuestionAnsweringCorrectnessInput} QuestionAnsweringCorrectnessInput + * @returns {google.cloud.aiplatform.v1beta1.PairwiseMetricInput} PairwiseMetricInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QuestionAnsweringCorrectnessInput.decode = function decode(reader, length) { + PairwiseMetricInput.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.QuestionAnsweringCorrectnessInput(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PairwiseMetricInput(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.metricSpec = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessSpec.decode(reader, reader.uint32()); + message.metricSpec = $root.google.cloud.aiplatform.v1beta1.PairwiseMetricSpec.decode(reader, reader.uint32()); break; } case 2: { - message.instance = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance.decode(reader, reader.uint32()); + message.instance = $root.google.cloud.aiplatform.v1beta1.PairwiseMetricInstance.decode(reader, reader.uint32()); break; } default: @@ -352057,39 +383800,39 @@ }; /** - * Decodes a QuestionAnsweringCorrectnessInput message from the specified reader or buffer, length delimited. + * Decodes a PairwiseMetricInput message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInput + * @memberof google.cloud.aiplatform.v1beta1.PairwiseMetricInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInput} QuestionAnsweringCorrectnessInput + * @returns {google.cloud.aiplatform.v1beta1.PairwiseMetricInput} PairwiseMetricInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QuestionAnsweringCorrectnessInput.decodeDelimited = function decodeDelimited(reader) { + PairwiseMetricInput.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QuestionAnsweringCorrectnessInput message. + * Verifies a PairwiseMetricInput message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInput + * @memberof google.cloud.aiplatform.v1beta1.PairwiseMetricInput * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QuestionAnsweringCorrectnessInput.verify = function verify(message) { + PairwiseMetricInput.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) { - var error = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessSpec.verify(message.metricSpec); + var error = $root.google.cloud.aiplatform.v1beta1.PairwiseMetricSpec.verify(message.metricSpec); if (error) return "metricSpec." + error; } if (message.instance != null && message.hasOwnProperty("instance")) { - var error = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance.verify(message.instance); + var error = $root.google.cloud.aiplatform.v1beta1.PairwiseMetricInstance.verify(message.instance); if (error) return "instance." + error; } @@ -352097,40 +383840,40 @@ }; /** - * Creates a QuestionAnsweringCorrectnessInput message from a plain object. Also converts values to their respective internal types. + * Creates a PairwiseMetricInput message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInput + * @memberof google.cloud.aiplatform.v1beta1.PairwiseMetricInput * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInput} QuestionAnsweringCorrectnessInput + * @returns {google.cloud.aiplatform.v1beta1.PairwiseMetricInput} PairwiseMetricInput */ - QuestionAnsweringCorrectnessInput.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInput) + PairwiseMetricInput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PairwiseMetricInput) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInput(); + var message = new $root.google.cloud.aiplatform.v1beta1.PairwiseMetricInput(); if (object.metricSpec != null) { if (typeof object.metricSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInput.metricSpec: object expected"); - message.metricSpec = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessSpec.fromObject(object.metricSpec); + throw TypeError(".google.cloud.aiplatform.v1beta1.PairwiseMetricInput.metricSpec: object expected"); + message.metricSpec = $root.google.cloud.aiplatform.v1beta1.PairwiseMetricSpec.fromObject(object.metricSpec); } if (object.instance != null) { if (typeof object.instance !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInput.instance: object expected"); - message.instance = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance.fromObject(object.instance); + throw TypeError(".google.cloud.aiplatform.v1beta1.PairwiseMetricInput.instance: object expected"); + message.instance = $root.google.cloud.aiplatform.v1beta1.PairwiseMetricInstance.fromObject(object.instance); } return message; }; /** - * Creates a plain object from a QuestionAnsweringCorrectnessInput message. Also converts values to other types if specified. + * Creates a plain object from a PairwiseMetricInput message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInput + * @memberof google.cloud.aiplatform.v1beta1.PairwiseMetricInput * @static - * @param {google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInput} message QuestionAnsweringCorrectnessInput + * @param {google.cloud.aiplatform.v1beta1.PairwiseMetricInput} message PairwiseMetricInput * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QuestionAnsweringCorrectnessInput.toObject = function toObject(message, options) { + PairwiseMetricInput.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -352139,62 +383882,59 @@ object.instance = null; } if (message.metricSpec != null && message.hasOwnProperty("metricSpec")) - object.metricSpec = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessSpec.toObject(message.metricSpec, options); + object.metricSpec = $root.google.cloud.aiplatform.v1beta1.PairwiseMetricSpec.toObject(message.metricSpec, options); if (message.instance != null && message.hasOwnProperty("instance")) - object.instance = $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance.toObject(message.instance, options); + object.instance = $root.google.cloud.aiplatform.v1beta1.PairwiseMetricInstance.toObject(message.instance, options); return object; }; /** - * Converts this QuestionAnsweringCorrectnessInput to JSON. + * Converts this PairwiseMetricInput to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInput + * @memberof google.cloud.aiplatform.v1beta1.PairwiseMetricInput * @instance * @returns {Object.} JSON object */ - QuestionAnsweringCorrectnessInput.prototype.toJSON = function toJSON() { + PairwiseMetricInput.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for QuestionAnsweringCorrectnessInput + * Gets the default type url for PairwiseMetricInput * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInput + * @memberof google.cloud.aiplatform.v1beta1.PairwiseMetricInput * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - QuestionAnsweringCorrectnessInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PairwiseMetricInput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInput"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PairwiseMetricInput"; }; - return QuestionAnsweringCorrectnessInput; + return PairwiseMetricInput; })(); - v1beta1.QuestionAnsweringCorrectnessInstance = (function() { + v1beta1.PairwiseMetricInstance = (function() { /** - * Properties of a QuestionAnsweringCorrectnessInstance. + * Properties of a PairwiseMetricInstance. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IQuestionAnsweringCorrectnessInstance - * @property {string|null} [prediction] QuestionAnsweringCorrectnessInstance prediction - * @property {string|null} [reference] QuestionAnsweringCorrectnessInstance reference - * @property {string|null} [context] QuestionAnsweringCorrectnessInstance context - * @property {string|null} [instruction] QuestionAnsweringCorrectnessInstance instruction + * @interface IPairwiseMetricInstance + * @property {string|null} [jsonInstance] PairwiseMetricInstance jsonInstance */ /** - * Constructs a new QuestionAnsweringCorrectnessInstance. + * Constructs a new PairwiseMetricInstance. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a QuestionAnsweringCorrectnessInstance. - * @implements IQuestionAnsweringCorrectnessInstance + * @classdesc Represents a PairwiseMetricInstance. + * @implements IPairwiseMetricInstance * @constructor - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringCorrectnessInstance=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IPairwiseMetricInstance=} [properties] Properties to set */ - function QuestionAnsweringCorrectnessInstance(properties) { + function PairwiseMetricInstance(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -352202,164 +383942,89 @@ } /** - * QuestionAnsweringCorrectnessInstance prediction. - * @member {string|null|undefined} prediction - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance - * @instance - */ - QuestionAnsweringCorrectnessInstance.prototype.prediction = null; - - /** - * QuestionAnsweringCorrectnessInstance reference. - * @member {string|null|undefined} reference - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance + * PairwiseMetricInstance jsonInstance. + * @member {string|null|undefined} jsonInstance + * @memberof google.cloud.aiplatform.v1beta1.PairwiseMetricInstance * @instance */ - QuestionAnsweringCorrectnessInstance.prototype.reference = null; - - /** - * QuestionAnsweringCorrectnessInstance context. - * @member {string|null|undefined} context - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance - * @instance - */ - QuestionAnsweringCorrectnessInstance.prototype.context = null; - - /** - * QuestionAnsweringCorrectnessInstance instruction. - * @member {string|null|undefined} instruction - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance - * @instance - */ - QuestionAnsweringCorrectnessInstance.prototype.instruction = null; + PairwiseMetricInstance.prototype.jsonInstance = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * QuestionAnsweringCorrectnessInstance _prediction. - * @member {"prediction"|undefined} _prediction - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance - * @instance - */ - Object.defineProperty(QuestionAnsweringCorrectnessInstance.prototype, "_prediction", { - get: $util.oneOfGetter($oneOfFields = ["prediction"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * QuestionAnsweringCorrectnessInstance _reference. - * @member {"reference"|undefined} _reference - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance - * @instance - */ - Object.defineProperty(QuestionAnsweringCorrectnessInstance.prototype, "_reference", { - get: $util.oneOfGetter($oneOfFields = ["reference"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * QuestionAnsweringCorrectnessInstance _context. - * @member {"context"|undefined} _context - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance - * @instance - */ - Object.defineProperty(QuestionAnsweringCorrectnessInstance.prototype, "_context", { - get: $util.oneOfGetter($oneOfFields = ["context"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * QuestionAnsweringCorrectnessInstance _instruction. - * @member {"instruction"|undefined} _instruction - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance + * PairwiseMetricInstance instance. + * @member {"jsonInstance"|undefined} instance + * @memberof google.cloud.aiplatform.v1beta1.PairwiseMetricInstance * @instance */ - Object.defineProperty(QuestionAnsweringCorrectnessInstance.prototype, "_instruction", { - get: $util.oneOfGetter($oneOfFields = ["instruction"]), + Object.defineProperty(PairwiseMetricInstance.prototype, "instance", { + get: $util.oneOfGetter($oneOfFields = ["jsonInstance"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new QuestionAnsweringCorrectnessInstance instance using the specified properties. + * Creates a new PairwiseMetricInstance instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance + * @memberof google.cloud.aiplatform.v1beta1.PairwiseMetricInstance * @static - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringCorrectnessInstance=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance} QuestionAnsweringCorrectnessInstance instance + * @param {google.cloud.aiplatform.v1beta1.IPairwiseMetricInstance=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PairwiseMetricInstance} PairwiseMetricInstance instance */ - QuestionAnsweringCorrectnessInstance.create = function create(properties) { - return new QuestionAnsweringCorrectnessInstance(properties); + PairwiseMetricInstance.create = function create(properties) { + return new PairwiseMetricInstance(properties); }; /** - * Encodes the specified QuestionAnsweringCorrectnessInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance.verify|verify} messages. + * Encodes the specified PairwiseMetricInstance message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PairwiseMetricInstance.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance + * @memberof google.cloud.aiplatform.v1beta1.PairwiseMetricInstance * @static - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringCorrectnessInstance} message QuestionAnsweringCorrectnessInstance message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPairwiseMetricInstance} message PairwiseMetricInstance message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QuestionAnsweringCorrectnessInstance.encode = function encode(message, writer) { + PairwiseMetricInstance.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.prediction != null && Object.hasOwnProperty.call(message, "prediction")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.prediction); - if (message.reference != null && Object.hasOwnProperty.call(message, "reference")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.reference); - if (message.context != null && Object.hasOwnProperty.call(message, "context")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.context); - if (message.instruction != null && Object.hasOwnProperty.call(message, "instruction")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.instruction); + if (message.jsonInstance != null && Object.hasOwnProperty.call(message, "jsonInstance")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.jsonInstance); return writer; }; /** - * Encodes the specified QuestionAnsweringCorrectnessInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance.verify|verify} messages. + * Encodes the specified PairwiseMetricInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PairwiseMetricInstance.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance + * @memberof google.cloud.aiplatform.v1beta1.PairwiseMetricInstance * @static - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringCorrectnessInstance} message QuestionAnsweringCorrectnessInstance message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPairwiseMetricInstance} message PairwiseMetricInstance message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QuestionAnsweringCorrectnessInstance.encodeDelimited = function encodeDelimited(message, writer) { + PairwiseMetricInstance.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QuestionAnsweringCorrectnessInstance message from the specified reader or buffer. + * Decodes a PairwiseMetricInstance message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance + * @memberof google.cloud.aiplatform.v1beta1.PairwiseMetricInstance * @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.QuestionAnsweringCorrectnessInstance} QuestionAnsweringCorrectnessInstance + * @returns {google.cloud.aiplatform.v1beta1.PairwiseMetricInstance} PairwiseMetricInstance * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QuestionAnsweringCorrectnessInstance.decode = function decode(reader, length) { + PairwiseMetricInstance.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.QuestionAnsweringCorrectnessInstance(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PairwiseMetricInstance(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.prediction = reader.string(); - break; - } - case 2: { - message.reference = reader.string(); - break; - } - case 3: { - message.context = reader.string(); - break; - } - case 4: { - message.instruction = reader.string(); + message.jsonInstance = reader.string(); break; } default: @@ -352371,163 +384036,126 @@ }; /** - * Decodes a QuestionAnsweringCorrectnessInstance message from the specified reader or buffer, length delimited. + * Decodes a PairwiseMetricInstance message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance + * @memberof google.cloud.aiplatform.v1beta1.PairwiseMetricInstance * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance} QuestionAnsweringCorrectnessInstance + * @returns {google.cloud.aiplatform.v1beta1.PairwiseMetricInstance} PairwiseMetricInstance * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QuestionAnsweringCorrectnessInstance.decodeDelimited = function decodeDelimited(reader) { + PairwiseMetricInstance.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QuestionAnsweringCorrectnessInstance message. + * Verifies a PairwiseMetricInstance message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance + * @memberof google.cloud.aiplatform.v1beta1.PairwiseMetricInstance * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QuestionAnsweringCorrectnessInstance.verify = function verify(message) { + PairwiseMetricInstance.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; - if (message.prediction != null && message.hasOwnProperty("prediction")) { - properties._prediction = 1; - if (!$util.isString(message.prediction)) - return "prediction: string expected"; - } - if (message.reference != null && message.hasOwnProperty("reference")) { - properties._reference = 1; - if (!$util.isString(message.reference)) - return "reference: string expected"; - } - if (message.context != null && message.hasOwnProperty("context")) { - properties._context = 1; - if (!$util.isString(message.context)) - return "context: string expected"; - } - if (message.instruction != null && message.hasOwnProperty("instruction")) { - properties._instruction = 1; - if (!$util.isString(message.instruction)) - return "instruction: string expected"; + if (message.jsonInstance != null && message.hasOwnProperty("jsonInstance")) { + properties.instance = 1; + if (!$util.isString(message.jsonInstance)) + return "jsonInstance: string expected"; } return null; }; /** - * Creates a QuestionAnsweringCorrectnessInstance message from a plain object. Also converts values to their respective internal types. + * Creates a PairwiseMetricInstance message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance + * @memberof google.cloud.aiplatform.v1beta1.PairwiseMetricInstance * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance} QuestionAnsweringCorrectnessInstance + * @returns {google.cloud.aiplatform.v1beta1.PairwiseMetricInstance} PairwiseMetricInstance */ - QuestionAnsweringCorrectnessInstance.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance) + PairwiseMetricInstance.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PairwiseMetricInstance) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance(); - if (object.prediction != null) - message.prediction = String(object.prediction); - if (object.reference != null) - message.reference = String(object.reference); - if (object.context != null) - message.context = String(object.context); - if (object.instruction != null) - message.instruction = String(object.instruction); + var message = new $root.google.cloud.aiplatform.v1beta1.PairwiseMetricInstance(); + if (object.jsonInstance != null) + message.jsonInstance = String(object.jsonInstance); return message; }; /** - * Creates a plain object from a QuestionAnsweringCorrectnessInstance message. Also converts values to other types if specified. + * Creates a plain object from a PairwiseMetricInstance message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance + * @memberof google.cloud.aiplatform.v1beta1.PairwiseMetricInstance * @static - * @param {google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance} message QuestionAnsweringCorrectnessInstance + * @param {google.cloud.aiplatform.v1beta1.PairwiseMetricInstance} message PairwiseMetricInstance * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QuestionAnsweringCorrectnessInstance.toObject = function toObject(message, options) { + PairwiseMetricInstance.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (message.prediction != null && message.hasOwnProperty("prediction")) { - object.prediction = message.prediction; - if (options.oneofs) - object._prediction = "prediction"; - } - if (message.reference != null && message.hasOwnProperty("reference")) { - object.reference = message.reference; - if (options.oneofs) - object._reference = "reference"; - } - if (message.context != null && message.hasOwnProperty("context")) { - object.context = message.context; - if (options.oneofs) - object._context = "context"; - } - if (message.instruction != null && message.hasOwnProperty("instruction")) { - object.instruction = message.instruction; + if (message.jsonInstance != null && message.hasOwnProperty("jsonInstance")) { + object.jsonInstance = message.jsonInstance; if (options.oneofs) - object._instruction = "instruction"; + object.instance = "jsonInstance"; } return object; }; /** - * Converts this QuestionAnsweringCorrectnessInstance to JSON. + * Converts this PairwiseMetricInstance to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance + * @memberof google.cloud.aiplatform.v1beta1.PairwiseMetricInstance * @instance * @returns {Object.} JSON object */ - QuestionAnsweringCorrectnessInstance.prototype.toJSON = function toJSON() { + PairwiseMetricInstance.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for QuestionAnsweringCorrectnessInstance + * Gets the default type url for PairwiseMetricInstance * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance + * @memberof google.cloud.aiplatform.v1beta1.PairwiseMetricInstance * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - QuestionAnsweringCorrectnessInstance.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PairwiseMetricInstance.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PairwiseMetricInstance"; }; - return QuestionAnsweringCorrectnessInstance; + return PairwiseMetricInstance; })(); - v1beta1.QuestionAnsweringCorrectnessSpec = (function() { + v1beta1.PairwiseMetricSpec = (function() { /** - * Properties of a QuestionAnsweringCorrectnessSpec. + * Properties of a PairwiseMetricSpec. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IQuestionAnsweringCorrectnessSpec - * @property {boolean|null} [useReference] QuestionAnsweringCorrectnessSpec useReference - * @property {number|null} [version] QuestionAnsweringCorrectnessSpec version + * @interface IPairwiseMetricSpec + * @property {string|null} [metricPromptTemplate] PairwiseMetricSpec metricPromptTemplate */ /** - * Constructs a new QuestionAnsweringCorrectnessSpec. + * Constructs a new PairwiseMetricSpec. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a QuestionAnsweringCorrectnessSpec. - * @implements IQuestionAnsweringCorrectnessSpec + * @classdesc Represents a PairwiseMetricSpec. + * @implements IPairwiseMetricSpec * @constructor - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringCorrectnessSpec=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IPairwiseMetricSpec=} [properties] Properties to set */ - function QuestionAnsweringCorrectnessSpec(properties) { + function PairwiseMetricSpec(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -352535,89 +384163,89 @@ } /** - * QuestionAnsweringCorrectnessSpec useReference. - * @member {boolean} useReference - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessSpec + * PairwiseMetricSpec metricPromptTemplate. + * @member {string|null|undefined} metricPromptTemplate + * @memberof google.cloud.aiplatform.v1beta1.PairwiseMetricSpec * @instance */ - QuestionAnsweringCorrectnessSpec.prototype.useReference = false; + PairwiseMetricSpec.prototype.metricPromptTemplate = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * QuestionAnsweringCorrectnessSpec version. - * @member {number} version - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessSpec + * PairwiseMetricSpec _metricPromptTemplate. + * @member {"metricPromptTemplate"|undefined} _metricPromptTemplate + * @memberof google.cloud.aiplatform.v1beta1.PairwiseMetricSpec * @instance */ - QuestionAnsweringCorrectnessSpec.prototype.version = 0; + Object.defineProperty(PairwiseMetricSpec.prototype, "_metricPromptTemplate", { + get: $util.oneOfGetter($oneOfFields = ["metricPromptTemplate"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new QuestionAnsweringCorrectnessSpec instance using the specified properties. + * Creates a new PairwiseMetricSpec instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessSpec + * @memberof google.cloud.aiplatform.v1beta1.PairwiseMetricSpec * @static - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringCorrectnessSpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessSpec} QuestionAnsweringCorrectnessSpec instance + * @param {google.cloud.aiplatform.v1beta1.IPairwiseMetricSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PairwiseMetricSpec} PairwiseMetricSpec instance */ - QuestionAnsweringCorrectnessSpec.create = function create(properties) { - return new QuestionAnsweringCorrectnessSpec(properties); + PairwiseMetricSpec.create = function create(properties) { + return new PairwiseMetricSpec(properties); }; /** - * Encodes the specified QuestionAnsweringCorrectnessSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessSpec.verify|verify} messages. + * Encodes the specified PairwiseMetricSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PairwiseMetricSpec.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessSpec + * @memberof google.cloud.aiplatform.v1beta1.PairwiseMetricSpec * @static - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringCorrectnessSpec} message QuestionAnsweringCorrectnessSpec message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPairwiseMetricSpec} message PairwiseMetricSpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QuestionAnsweringCorrectnessSpec.encode = function encode(message, writer) { + PairwiseMetricSpec.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.useReference != null && Object.hasOwnProperty.call(message, "useReference")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.useReference); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.version); + if (message.metricPromptTemplate != null && Object.hasOwnProperty.call(message, "metricPromptTemplate")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.metricPromptTemplate); return writer; }; /** - * Encodes the specified QuestionAnsweringCorrectnessSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessSpec.verify|verify} messages. + * Encodes the specified PairwiseMetricSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PairwiseMetricSpec.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessSpec + * @memberof google.cloud.aiplatform.v1beta1.PairwiseMetricSpec * @static - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringCorrectnessSpec} message QuestionAnsweringCorrectnessSpec message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPairwiseMetricSpec} message PairwiseMetricSpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QuestionAnsweringCorrectnessSpec.encodeDelimited = function encodeDelimited(message, writer) { + PairwiseMetricSpec.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QuestionAnsweringCorrectnessSpec message from the specified reader or buffer. + * Decodes a PairwiseMetricSpec message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessSpec + * @memberof google.cloud.aiplatform.v1beta1.PairwiseMetricSpec * @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.QuestionAnsweringCorrectnessSpec} QuestionAnsweringCorrectnessSpec + * @returns {google.cloud.aiplatform.v1beta1.PairwiseMetricSpec} PairwiseMetricSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QuestionAnsweringCorrectnessSpec.decode = function decode(reader, length) { + PairwiseMetricSpec.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.QuestionAnsweringCorrectnessSpec(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PairwiseMetricSpec(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.useReference = reader.bool(); - break; - } - case 2: { - message.version = reader.int32(); + message.metricPromptTemplate = reader.string(); break; } default: @@ -352629,133 +384257,127 @@ }; /** - * Decodes a QuestionAnsweringCorrectnessSpec message from the specified reader or buffer, length delimited. + * Decodes a PairwiseMetricSpec message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessSpec + * @memberof google.cloud.aiplatform.v1beta1.PairwiseMetricSpec * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessSpec} QuestionAnsweringCorrectnessSpec + * @returns {google.cloud.aiplatform.v1beta1.PairwiseMetricSpec} PairwiseMetricSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QuestionAnsweringCorrectnessSpec.decodeDelimited = function decodeDelimited(reader) { + PairwiseMetricSpec.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QuestionAnsweringCorrectnessSpec message. + * Verifies a PairwiseMetricSpec message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessSpec + * @memberof google.cloud.aiplatform.v1beta1.PairwiseMetricSpec * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QuestionAnsweringCorrectnessSpec.verify = function verify(message) { + PairwiseMetricSpec.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.useReference != null && message.hasOwnProperty("useReference")) - if (typeof message.useReference !== "boolean") - return "useReference: boolean expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isInteger(message.version)) - return "version: integer expected"; + var properties = {}; + if (message.metricPromptTemplate != null && message.hasOwnProperty("metricPromptTemplate")) { + properties._metricPromptTemplate = 1; + if (!$util.isString(message.metricPromptTemplate)) + return "metricPromptTemplate: string expected"; + } return null; }; /** - * Creates a QuestionAnsweringCorrectnessSpec message from a plain object. Also converts values to their respective internal types. + * Creates a PairwiseMetricSpec message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessSpec + * @memberof google.cloud.aiplatform.v1beta1.PairwiseMetricSpec * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessSpec} QuestionAnsweringCorrectnessSpec + * @returns {google.cloud.aiplatform.v1beta1.PairwiseMetricSpec} PairwiseMetricSpec */ - QuestionAnsweringCorrectnessSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessSpec) + PairwiseMetricSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PairwiseMetricSpec) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessSpec(); - if (object.useReference != null) - message.useReference = Boolean(object.useReference); - if (object.version != null) - message.version = object.version | 0; + var message = new $root.google.cloud.aiplatform.v1beta1.PairwiseMetricSpec(); + if (object.metricPromptTemplate != null) + message.metricPromptTemplate = String(object.metricPromptTemplate); return message; }; /** - * Creates a plain object from a QuestionAnsweringCorrectnessSpec message. Also converts values to other types if specified. + * Creates a plain object from a PairwiseMetricSpec message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessSpec + * @memberof google.cloud.aiplatform.v1beta1.PairwiseMetricSpec * @static - * @param {google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessSpec} message QuestionAnsweringCorrectnessSpec + * @param {google.cloud.aiplatform.v1beta1.PairwiseMetricSpec} message PairwiseMetricSpec * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QuestionAnsweringCorrectnessSpec.toObject = function toObject(message, options) { + PairwiseMetricSpec.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.useReference = false; - object.version = 0; + if (message.metricPromptTemplate != null && message.hasOwnProperty("metricPromptTemplate")) { + object.metricPromptTemplate = message.metricPromptTemplate; + if (options.oneofs) + object._metricPromptTemplate = "metricPromptTemplate"; } - if (message.useReference != null && message.hasOwnProperty("useReference")) - object.useReference = message.useReference; - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; return object; }; /** - * Converts this QuestionAnsweringCorrectnessSpec to JSON. + * Converts this PairwiseMetricSpec to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessSpec + * @memberof google.cloud.aiplatform.v1beta1.PairwiseMetricSpec * @instance * @returns {Object.} JSON object */ - QuestionAnsweringCorrectnessSpec.prototype.toJSON = function toJSON() { + PairwiseMetricSpec.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for QuestionAnsweringCorrectnessSpec + * Gets the default type url for PairwiseMetricSpec * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessSpec + * @memberof google.cloud.aiplatform.v1beta1.PairwiseMetricSpec * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - QuestionAnsweringCorrectnessSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PairwiseMetricSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessSpec"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PairwiseMetricSpec"; }; - return QuestionAnsweringCorrectnessSpec; + return PairwiseMetricSpec; })(); - v1beta1.QuestionAnsweringCorrectnessResult = (function() { + v1beta1.PairwiseMetricResult = (function() { /** - * Properties of a QuestionAnsweringCorrectnessResult. + * Properties of a PairwiseMetricResult. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IQuestionAnsweringCorrectnessResult - * @property {number|null} [score] QuestionAnsweringCorrectnessResult score - * @property {string|null} [explanation] QuestionAnsweringCorrectnessResult explanation - * @property {number|null} [confidence] QuestionAnsweringCorrectnessResult confidence + * @interface IPairwiseMetricResult + * @property {google.cloud.aiplatform.v1beta1.PairwiseChoice|null} [pairwiseChoice] PairwiseMetricResult pairwiseChoice + * @property {string|null} [explanation] PairwiseMetricResult explanation */ /** - * Constructs a new QuestionAnsweringCorrectnessResult. + * Constructs a new PairwiseMetricResult. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a QuestionAnsweringCorrectnessResult. - * @implements IQuestionAnsweringCorrectnessResult + * @classdesc Represents a PairwiseMetricResult. + * @implements IPairwiseMetricResult * @constructor - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringCorrectnessResult=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IPairwiseMetricResult=} [properties] Properties to set */ - function QuestionAnsweringCorrectnessResult(properties) { + function PairwiseMetricResult(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -352763,130 +384385,91 @@ } /** - * QuestionAnsweringCorrectnessResult score. - * @member {number|null|undefined} score - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult + * PairwiseMetricResult pairwiseChoice. + * @member {google.cloud.aiplatform.v1beta1.PairwiseChoice} pairwiseChoice + * @memberof google.cloud.aiplatform.v1beta1.PairwiseMetricResult * @instance */ - QuestionAnsweringCorrectnessResult.prototype.score = null; + PairwiseMetricResult.prototype.pairwiseChoice = 0; /** - * QuestionAnsweringCorrectnessResult explanation. + * PairwiseMetricResult explanation. * @member {string} explanation - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult - * @instance - */ - QuestionAnsweringCorrectnessResult.prototype.explanation = ""; - - /** - * QuestionAnsweringCorrectnessResult confidence. - * @member {number|null|undefined} confidence - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult - * @instance - */ - QuestionAnsweringCorrectnessResult.prototype.confidence = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * QuestionAnsweringCorrectnessResult _score. - * @member {"score"|undefined} _score - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult - * @instance - */ - Object.defineProperty(QuestionAnsweringCorrectnessResult.prototype, "_score", { - get: $util.oneOfGetter($oneOfFields = ["score"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * QuestionAnsweringCorrectnessResult _confidence. - * @member {"confidence"|undefined} _confidence - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult + * @memberof google.cloud.aiplatform.v1beta1.PairwiseMetricResult * @instance */ - Object.defineProperty(QuestionAnsweringCorrectnessResult.prototype, "_confidence", { - get: $util.oneOfGetter($oneOfFields = ["confidence"]), - set: $util.oneOfSetter($oneOfFields) - }); + PairwiseMetricResult.prototype.explanation = ""; /** - * Creates a new QuestionAnsweringCorrectnessResult instance using the specified properties. + * Creates a new PairwiseMetricResult instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult + * @memberof google.cloud.aiplatform.v1beta1.PairwiseMetricResult * @static - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringCorrectnessResult=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult} QuestionAnsweringCorrectnessResult instance + * @param {google.cloud.aiplatform.v1beta1.IPairwiseMetricResult=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PairwiseMetricResult} PairwiseMetricResult instance */ - QuestionAnsweringCorrectnessResult.create = function create(properties) { - return new QuestionAnsweringCorrectnessResult(properties); + PairwiseMetricResult.create = function create(properties) { + return new PairwiseMetricResult(properties); }; /** - * Encodes the specified QuestionAnsweringCorrectnessResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult.verify|verify} messages. + * Encodes the specified PairwiseMetricResult message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PairwiseMetricResult.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult + * @memberof google.cloud.aiplatform.v1beta1.PairwiseMetricResult * @static - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringCorrectnessResult} message QuestionAnsweringCorrectnessResult message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPairwiseMetricResult} message PairwiseMetricResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QuestionAnsweringCorrectnessResult.encode = function encode(message, writer) { + PairwiseMetricResult.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.score != null && Object.hasOwnProperty.call(message, "score")) - writer.uint32(/* id 1, wireType 5 =*/13).float(message.score); + if (message.pairwiseChoice != null && Object.hasOwnProperty.call(message, "pairwiseChoice")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.pairwiseChoice); if (message.explanation != null && Object.hasOwnProperty.call(message, "explanation")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.explanation); - if (message.confidence != null && Object.hasOwnProperty.call(message, "confidence")) - writer.uint32(/* id 3, wireType 5 =*/29).float(message.confidence); return writer; }; /** - * Encodes the specified QuestionAnsweringCorrectnessResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult.verify|verify} messages. + * Encodes the specified PairwiseMetricResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PairwiseMetricResult.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult + * @memberof google.cloud.aiplatform.v1beta1.PairwiseMetricResult * @static - * @param {google.cloud.aiplatform.v1beta1.IQuestionAnsweringCorrectnessResult} message QuestionAnsweringCorrectnessResult message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPairwiseMetricResult} message PairwiseMetricResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QuestionAnsweringCorrectnessResult.encodeDelimited = function encodeDelimited(message, writer) { + PairwiseMetricResult.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QuestionAnsweringCorrectnessResult message from the specified reader or buffer. + * Decodes a PairwiseMetricResult message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult + * @memberof google.cloud.aiplatform.v1beta1.PairwiseMetricResult * @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.QuestionAnsweringCorrectnessResult} QuestionAnsweringCorrectnessResult + * @returns {google.cloud.aiplatform.v1beta1.PairwiseMetricResult} PairwiseMetricResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QuestionAnsweringCorrectnessResult.decode = function decode(reader, length) { + PairwiseMetricResult.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.QuestionAnsweringCorrectnessResult(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PairwiseMetricResult(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.score = reader.float(); + message.pairwiseChoice = reader.int32(); break; } case 2: { message.explanation = reader.string(); break; } - case 3: { - message.confidence = reader.float(); - break; - } default: reader.skipType(tag & 7); break; @@ -352896,127 +384479,140 @@ }; /** - * Decodes a QuestionAnsweringCorrectnessResult message from the specified reader or buffer, length delimited. + * Decodes a PairwiseMetricResult message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult + * @memberof google.cloud.aiplatform.v1beta1.PairwiseMetricResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult} QuestionAnsweringCorrectnessResult + * @returns {google.cloud.aiplatform.v1beta1.PairwiseMetricResult} PairwiseMetricResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QuestionAnsweringCorrectnessResult.decodeDelimited = function decodeDelimited(reader) { + PairwiseMetricResult.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QuestionAnsweringCorrectnessResult message. + * Verifies a PairwiseMetricResult message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult + * @memberof google.cloud.aiplatform.v1beta1.PairwiseMetricResult * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QuestionAnsweringCorrectnessResult.verify = function verify(message) { + PairwiseMetricResult.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.score != null && message.hasOwnProperty("score")) { - properties._score = 1; - if (typeof message.score !== "number") - return "score: number expected"; - } + if (message.pairwiseChoice != null && message.hasOwnProperty("pairwiseChoice")) + switch (message.pairwiseChoice) { + default: + return "pairwiseChoice: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } if (message.explanation != null && message.hasOwnProperty("explanation")) if (!$util.isString(message.explanation)) return "explanation: string expected"; - if (message.confidence != null && message.hasOwnProperty("confidence")) { - properties._confidence = 1; - if (typeof message.confidence !== "number") - return "confidence: number expected"; - } return null; }; /** - * Creates a QuestionAnsweringCorrectnessResult message from a plain object. Also converts values to their respective internal types. + * Creates a PairwiseMetricResult message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult + * @memberof google.cloud.aiplatform.v1beta1.PairwiseMetricResult * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult} QuestionAnsweringCorrectnessResult + * @returns {google.cloud.aiplatform.v1beta1.PairwiseMetricResult} PairwiseMetricResult */ - QuestionAnsweringCorrectnessResult.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult) + PairwiseMetricResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PairwiseMetricResult) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult(); - if (object.score != null) - message.score = Number(object.score); + var message = new $root.google.cloud.aiplatform.v1beta1.PairwiseMetricResult(); + switch (object.pairwiseChoice) { + default: + if (typeof object.pairwiseChoice === "number") { + message.pairwiseChoice = object.pairwiseChoice; + break; + } + break; + case "PAIRWISE_CHOICE_UNSPECIFIED": + case 0: + message.pairwiseChoice = 0; + break; + case "BASELINE": + case 1: + message.pairwiseChoice = 1; + break; + case "CANDIDATE": + case 2: + message.pairwiseChoice = 2; + break; + case "TIE": + case 3: + message.pairwiseChoice = 3; + break; + } if (object.explanation != null) message.explanation = String(object.explanation); - if (object.confidence != null) - message.confidence = Number(object.confidence); return message; }; /** - * Creates a plain object from a QuestionAnsweringCorrectnessResult message. Also converts values to other types if specified. + * Creates a plain object from a PairwiseMetricResult message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult + * @memberof google.cloud.aiplatform.v1beta1.PairwiseMetricResult * @static - * @param {google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult} message QuestionAnsweringCorrectnessResult + * @param {google.cloud.aiplatform.v1beta1.PairwiseMetricResult} message PairwiseMetricResult * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QuestionAnsweringCorrectnessResult.toObject = function toObject(message, options) { + PairwiseMetricResult.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { + object.pairwiseChoice = options.enums === String ? "PAIRWISE_CHOICE_UNSPECIFIED" : 0; object.explanation = ""; - if (message.score != null && message.hasOwnProperty("score")) { - object.score = options.json && !isFinite(message.score) ? String(message.score) : message.score; - if (options.oneofs) - object._score = "score"; } + if (message.pairwiseChoice != null && message.hasOwnProperty("pairwiseChoice")) + object.pairwiseChoice = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.PairwiseChoice[message.pairwiseChoice] === undefined ? message.pairwiseChoice : $root.google.cloud.aiplatform.v1beta1.PairwiseChoice[message.pairwiseChoice] : message.pairwiseChoice; if (message.explanation != null && message.hasOwnProperty("explanation")) object.explanation = message.explanation; - if (message.confidence != null && message.hasOwnProperty("confidence")) { - object.confidence = options.json && !isFinite(message.confidence) ? String(message.confidence) : message.confidence; - if (options.oneofs) - object._confidence = "confidence"; - } return object; }; /** - * Converts this QuestionAnsweringCorrectnessResult to JSON. + * Converts this PairwiseMetricResult to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult + * @memberof google.cloud.aiplatform.v1beta1.PairwiseMetricResult * @instance * @returns {Object.} JSON object */ - QuestionAnsweringCorrectnessResult.prototype.toJSON = function toJSON() { + PairwiseMetricResult.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for QuestionAnsweringCorrectnessResult + * Gets the default type url for PairwiseMetricResult * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult + * @memberof google.cloud.aiplatform.v1beta1.PairwiseMetricResult * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - QuestionAnsweringCorrectnessResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PairwiseMetricResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResult"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PairwiseMetricResult"; }; - return QuestionAnsweringCorrectnessResult; + return PairwiseMetricResult; })(); v1beta1.ToolCallValidInput = (function() { @@ -366668,6 +398264,7 @@ * @interface IBigQuery * @property {google.cloud.aiplatform.v1beta1.IBigQuerySource|null} [bigQuerySource] BigQuery bigQuerySource * @property {Array.|null} [entityIdColumns] BigQuery entityIdColumns + * @property {google.cloud.aiplatform.v1beta1.FeatureGroup.BigQuery.ITimeSeries|null} [timeSeries] BigQuery timeSeries */ /** @@ -366702,6 +398299,14 @@ */ BigQuery.prototype.entityIdColumns = $util.emptyArray; + /** + * BigQuery timeSeries. + * @member {google.cloud.aiplatform.v1beta1.FeatureGroup.BigQuery.ITimeSeries|null|undefined} timeSeries + * @memberof google.cloud.aiplatform.v1beta1.FeatureGroup.BigQuery + * @instance + */ + BigQuery.prototype.timeSeries = null; + /** * Creates a new BigQuery instance using the specified properties. * @function create @@ -366731,6 +398336,8 @@ if (message.entityIdColumns != null && message.entityIdColumns.length) for (var i = 0; i < message.entityIdColumns.length; ++i) writer.uint32(/* id 2, wireType 2 =*/18).string(message.entityIdColumns[i]); + if (message.timeSeries != null && Object.hasOwnProperty.call(message, "timeSeries")) + $root.google.cloud.aiplatform.v1beta1.FeatureGroup.BigQuery.TimeSeries.encode(message.timeSeries, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; @@ -366775,6 +398382,10 @@ message.entityIdColumns.push(reader.string()); break; } + case 4: { + message.timeSeries = $root.google.cloud.aiplatform.v1beta1.FeatureGroup.BigQuery.TimeSeries.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -366822,6 +398433,11 @@ if (!$util.isString(message.entityIdColumns[i])) return "entityIdColumns: string[] expected"; } + if (message.timeSeries != null && message.hasOwnProperty("timeSeries")) { + var error = $root.google.cloud.aiplatform.v1beta1.FeatureGroup.BigQuery.TimeSeries.verify(message.timeSeries); + if (error) + return "timeSeries." + error; + } return null; }; @@ -366849,6 +398465,11 @@ for (var i = 0; i < object.entityIdColumns.length; ++i) message.entityIdColumns[i] = String(object.entityIdColumns[i]); } + if (object.timeSeries != null) { + if (typeof object.timeSeries !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.FeatureGroup.BigQuery.timeSeries: object expected"); + message.timeSeries = $root.google.cloud.aiplatform.v1beta1.FeatureGroup.BigQuery.TimeSeries.fromObject(object.timeSeries); + } return message; }; @@ -366867,8 +398488,10 @@ var object = {}; if (options.arrays || options.defaults) object.entityIdColumns = []; - if (options.defaults) + if (options.defaults) { object.bigQuerySource = null; + object.timeSeries = null; + } if (message.bigQuerySource != null && message.hasOwnProperty("bigQuerySource")) object.bigQuerySource = $root.google.cloud.aiplatform.v1beta1.BigQuerySource.toObject(message.bigQuerySource, options); if (message.entityIdColumns && message.entityIdColumns.length) { @@ -366876,6 +398499,8 @@ for (var j = 0; j < message.entityIdColumns.length; ++j) object.entityIdColumns[j] = message.entityIdColumns[j]; } + if (message.timeSeries != null && message.hasOwnProperty("timeSeries")) + object.timeSeries = $root.google.cloud.aiplatform.v1beta1.FeatureGroup.BigQuery.TimeSeries.toObject(message.timeSeries, options); return object; }; @@ -366905,6 +398530,209 @@ return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.FeatureGroup.BigQuery"; }; + BigQuery.TimeSeries = (function() { + + /** + * Properties of a TimeSeries. + * @memberof google.cloud.aiplatform.v1beta1.FeatureGroup.BigQuery + * @interface ITimeSeries + * @property {string|null} [timestampColumn] TimeSeries timestampColumn + */ + + /** + * Constructs a new TimeSeries. + * @memberof google.cloud.aiplatform.v1beta1.FeatureGroup.BigQuery + * @classdesc Represents a TimeSeries. + * @implements ITimeSeries + * @constructor + * @param {google.cloud.aiplatform.v1beta1.FeatureGroup.BigQuery.ITimeSeries=} [properties] Properties to set + */ + function TimeSeries(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]]; + } + + /** + * TimeSeries timestampColumn. + * @member {string} timestampColumn + * @memberof google.cloud.aiplatform.v1beta1.FeatureGroup.BigQuery.TimeSeries + * @instance + */ + TimeSeries.prototype.timestampColumn = ""; + + /** + * Creates a new TimeSeries instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.FeatureGroup.BigQuery.TimeSeries + * @static + * @param {google.cloud.aiplatform.v1beta1.FeatureGroup.BigQuery.ITimeSeries=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.FeatureGroup.BigQuery.TimeSeries} TimeSeries instance + */ + TimeSeries.create = function create(properties) { + return new TimeSeries(properties); + }; + + /** + * Encodes the specified TimeSeries message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureGroup.BigQuery.TimeSeries.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.FeatureGroup.BigQuery.TimeSeries + * @static + * @param {google.cloud.aiplatform.v1beta1.FeatureGroup.BigQuery.ITimeSeries} message TimeSeries message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TimeSeries.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.timestampColumn != null && Object.hasOwnProperty.call(message, "timestampColumn")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.timestampColumn); + return writer; + }; + + /** + * Encodes the specified TimeSeries message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureGroup.BigQuery.TimeSeries.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.FeatureGroup.BigQuery.TimeSeries + * @static + * @param {google.cloud.aiplatform.v1beta1.FeatureGroup.BigQuery.ITimeSeries} message TimeSeries message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TimeSeries.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TimeSeries message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.FeatureGroup.BigQuery.TimeSeries + * @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.FeatureGroup.BigQuery.TimeSeries} TimeSeries + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TimeSeries.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.FeatureGroup.BigQuery.TimeSeries(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.timestampColumn = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TimeSeries message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.FeatureGroup.BigQuery.TimeSeries + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.FeatureGroup.BigQuery.TimeSeries} TimeSeries + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TimeSeries.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TimeSeries message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.FeatureGroup.BigQuery.TimeSeries + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TimeSeries.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.timestampColumn != null && message.hasOwnProperty("timestampColumn")) + if (!$util.isString(message.timestampColumn)) + return "timestampColumn: string expected"; + return null; + }; + + /** + * Creates a TimeSeries message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.FeatureGroup.BigQuery.TimeSeries + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.FeatureGroup.BigQuery.TimeSeries} TimeSeries + */ + TimeSeries.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.FeatureGroup.BigQuery.TimeSeries) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.FeatureGroup.BigQuery.TimeSeries(); + if (object.timestampColumn != null) + message.timestampColumn = String(object.timestampColumn); + return message; + }; + + /** + * Creates a plain object from a TimeSeries message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.FeatureGroup.BigQuery.TimeSeries + * @static + * @param {google.cloud.aiplatform.v1beta1.FeatureGroup.BigQuery.TimeSeries} message TimeSeries + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TimeSeries.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.timestampColumn = ""; + if (message.timestampColumn != null && message.hasOwnProperty("timestampColumn")) + object.timestampColumn = message.timestampColumn; + return object; + }; + + /** + * Converts this TimeSeries to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.FeatureGroup.BigQuery.TimeSeries + * @instance + * @returns {Object.} JSON object + */ + TimeSeries.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for TimeSeries + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.FeatureGroup.BigQuery.TimeSeries + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TimeSeries.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.FeatureGroup.BigQuery.TimeSeries"; + }; + + return TimeSeries; + })(); + return BigQuery; })(); @@ -366928,6 +398756,8 @@ * @property {google.cloud.aiplatform.v1beta1.FeatureOnlineStore.IDedicatedServingEndpoint|null} [dedicatedServingEndpoint] FeatureOnlineStore dedicatedServingEndpoint * @property {google.cloud.aiplatform.v1beta1.FeatureOnlineStore.IEmbeddingManagement|null} [embeddingManagement] FeatureOnlineStore embeddingManagement * @property {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null} [encryptionSpec] FeatureOnlineStore encryptionSpec + * @property {boolean|null} [satisfiesPzs] FeatureOnlineStore satisfiesPzs + * @property {boolean|null} [satisfiesPzi] FeatureOnlineStore satisfiesPzi */ /** @@ -367034,6 +398864,22 @@ */ FeatureOnlineStore.prototype.encryptionSpec = null; + /** + * FeatureOnlineStore satisfiesPzs. + * @member {boolean} satisfiesPzs + * @memberof google.cloud.aiplatform.v1beta1.FeatureOnlineStore + * @instance + */ + FeatureOnlineStore.prototype.satisfiesPzs = false; + + /** + * FeatureOnlineStore satisfiesPzi. + * @member {boolean} satisfiesPzi + * @memberof google.cloud.aiplatform.v1beta1.FeatureOnlineStore + * @instance + */ + FeatureOnlineStore.prototype.satisfiesPzi = false; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -367095,6 +398941,10 @@ $root.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Optimized.encode(message.optimized, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.satisfiesPzs != null && Object.hasOwnProperty.call(message, "satisfiesPzs")) + writer.uint32(/* id 15, wireType 0 =*/120).bool(message.satisfiesPzs); + if (message.satisfiesPzi != null && Object.hasOwnProperty.call(message, "satisfiesPzi")) + writer.uint32(/* id 16, wireType 0 =*/128).bool(message.satisfiesPzi); return writer; }; @@ -367192,6 +399042,14 @@ message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.decode(reader, reader.uint32()); break; } + case 15: { + message.satisfiesPzs = reader.bool(); + break; + } + case 16: { + message.satisfiesPzi = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -367294,6 +399152,12 @@ if (error) return "encryptionSpec." + error; } + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) + if (typeof message.satisfiesPzs !== "boolean") + return "satisfiesPzs: boolean expected"; + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) + if (typeof message.satisfiesPzi !== "boolean") + return "satisfiesPzi: boolean expected"; return null; }; @@ -367375,6 +399239,10 @@ throw TypeError(".google.cloud.aiplatform.v1beta1.FeatureOnlineStore.encryptionSpec: object expected"); message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.fromObject(object.encryptionSpec); } + if (object.satisfiesPzs != null) + message.satisfiesPzs = Boolean(object.satisfiesPzs); + if (object.satisfiesPzi != null) + message.satisfiesPzi = Boolean(object.satisfiesPzi); return message; }; @@ -367402,6 +399270,8 @@ object.dedicatedServingEndpoint = null; object.embeddingManagement = null; object.encryptionSpec = null; + object.satisfiesPzs = false; + object.satisfiesPzi = false; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -367435,6 +399305,10 @@ } if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) object.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.toObject(message.encryptionSpec, options); + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) + object.satisfiesPzs = message.satisfiesPzs; + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) + object.satisfiesPzi = message.satisfiesPzi; return object; }; @@ -373972,6 +405846,8 @@ * @property {google.cloud.aiplatform.v1beta1.FeatureView.IIndexConfig|null} [indexConfig] FeatureView indexConfig * @property {google.cloud.aiplatform.v1beta1.FeatureView.ServiceAgentType|null} [serviceAgentType] FeatureView serviceAgentType * @property {string|null} [serviceAccountEmail] FeatureView serviceAccountEmail + * @property {boolean|null} [satisfiesPzs] FeatureView satisfiesPzs + * @property {boolean|null} [satisfiesPzi] FeatureView satisfiesPzi */ /** @@ -374086,6 +405962,22 @@ */ FeatureView.prototype.serviceAccountEmail = ""; + /** + * FeatureView satisfiesPzs. + * @member {boolean} satisfiesPzs + * @memberof google.cloud.aiplatform.v1beta1.FeatureView + * @instance + */ + FeatureView.prototype.satisfiesPzs = false; + + /** + * FeatureView satisfiesPzi. + * @member {boolean} satisfiesPzi + * @memberof google.cloud.aiplatform.v1beta1.FeatureView + * @instance + */ + FeatureView.prototype.satisfiesPzi = false; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -374149,6 +406041,10 @@ writer.uint32(/* id 14, wireType 0 =*/112).int32(message.serviceAgentType); if (message.indexConfig != null && Object.hasOwnProperty.call(message, "indexConfig")) $root.google.cloud.aiplatform.v1beta1.FeatureView.IndexConfig.encode(message.indexConfig, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); + if (message.satisfiesPzs != null && Object.hasOwnProperty.call(message, "satisfiesPzs")) + writer.uint32(/* id 19, wireType 0 =*/152).bool(message.satisfiesPzs); + if (message.satisfiesPzi != null && Object.hasOwnProperty.call(message, "satisfiesPzi")) + writer.uint32(/* id 20, wireType 0 =*/160).bool(message.satisfiesPzi); return writer; }; @@ -374250,6 +406146,14 @@ message.serviceAccountEmail = reader.string(); break; } + case 19: { + message.satisfiesPzs = reader.bool(); + break; + } + case 20: { + message.satisfiesPzi = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -374355,6 +406259,12 @@ if (message.serviceAccountEmail != null && message.hasOwnProperty("serviceAccountEmail")) if (!$util.isString(message.serviceAccountEmail)) return "serviceAccountEmail: string expected"; + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) + if (typeof message.satisfiesPzs !== "boolean") + return "satisfiesPzs: boolean expected"; + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) + if (typeof message.satisfiesPzi !== "boolean") + return "satisfiesPzi: boolean expected"; return null; }; @@ -374438,6 +406348,10 @@ } if (object.serviceAccountEmail != null) message.serviceAccountEmail = String(object.serviceAccountEmail); + if (object.satisfiesPzs != null) + message.satisfiesPzs = Boolean(object.satisfiesPzs); + if (object.satisfiesPzi != null) + message.satisfiesPzi = Boolean(object.satisfiesPzi); return message; }; @@ -374466,6 +406380,8 @@ object.serviceAccountEmail = ""; object.serviceAgentType = options.enums === String ? "SERVICE_AGENT_TYPE_UNSPECIFIED" : 0; object.indexConfig = null; + object.satisfiesPzs = false; + object.satisfiesPzi = false; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -374501,6 +406417,10 @@ object.serviceAgentType = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.FeatureView.ServiceAgentType[message.serviceAgentType] === undefined ? message.serviceAgentType : $root.google.cloud.aiplatform.v1beta1.FeatureView.ServiceAgentType[message.serviceAgentType] : message.serviceAgentType; if (message.indexConfig != null && message.hasOwnProperty("indexConfig")) object.indexConfig = $root.google.cloud.aiplatform.v1beta1.FeatureView.IndexConfig.toObject(message.indexConfig, options); + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) + object.satisfiesPzs = message.satisfiesPzs; + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) + object.satisfiesPzi = message.satisfiesPzi; return object; }; @@ -377253,6 +409173,8 @@ * @property {google.type.IInterval|null} [runTime] FeatureViewSync runTime * @property {google.rpc.IStatus|null} [finalStatus] FeatureViewSync finalStatus * @property {google.cloud.aiplatform.v1beta1.FeatureViewSync.ISyncSummary|null} [syncSummary] FeatureViewSync syncSummary + * @property {boolean|null} [satisfiesPzs] FeatureViewSync satisfiesPzs + * @property {boolean|null} [satisfiesPzi] FeatureViewSync satisfiesPzi */ /** @@ -377310,6 +409232,22 @@ */ FeatureViewSync.prototype.syncSummary = null; + /** + * FeatureViewSync satisfiesPzs. + * @member {boolean} satisfiesPzs + * @memberof google.cloud.aiplatform.v1beta1.FeatureViewSync + * @instance + */ + FeatureViewSync.prototype.satisfiesPzs = false; + + /** + * FeatureViewSync satisfiesPzi. + * @member {boolean} satisfiesPzi + * @memberof google.cloud.aiplatform.v1beta1.FeatureViewSync + * @instance + */ + FeatureViewSync.prototype.satisfiesPzi = false; + /** * Creates a new FeatureViewSync instance using the specified properties. * @function create @@ -377344,6 +409282,10 @@ $root.google.type.Interval.encode(message.runTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); if (message.syncSummary != null && Object.hasOwnProperty.call(message, "syncSummary")) $root.google.cloud.aiplatform.v1beta1.FeatureViewSync.SyncSummary.encode(message.syncSummary, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.satisfiesPzs != null && Object.hasOwnProperty.call(message, "satisfiesPzs")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.satisfiesPzs); + if (message.satisfiesPzi != null && Object.hasOwnProperty.call(message, "satisfiesPzi")) + writer.uint32(/* id 8, wireType 0 =*/64).bool(message.satisfiesPzi); return writer; }; @@ -377398,6 +409340,14 @@ message.syncSummary = $root.google.cloud.aiplatform.v1beta1.FeatureViewSync.SyncSummary.decode(reader, reader.uint32()); break; } + case 7: { + message.satisfiesPzs = reader.bool(); + break; + } + case 8: { + message.satisfiesPzi = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -377456,6 +409406,12 @@ if (error) return "syncSummary." + error; } + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) + if (typeof message.satisfiesPzs !== "boolean") + return "satisfiesPzs: boolean expected"; + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) + if (typeof message.satisfiesPzi !== "boolean") + return "satisfiesPzi: boolean expected"; return null; }; @@ -377493,6 +409449,10 @@ throw TypeError(".google.cloud.aiplatform.v1beta1.FeatureViewSync.syncSummary: object expected"); message.syncSummary = $root.google.cloud.aiplatform.v1beta1.FeatureViewSync.SyncSummary.fromObject(object.syncSummary); } + if (object.satisfiesPzs != null) + message.satisfiesPzs = Boolean(object.satisfiesPzs); + if (object.satisfiesPzi != null) + message.satisfiesPzi = Boolean(object.satisfiesPzi); return message; }; @@ -377515,6 +409475,8 @@ object.finalStatus = null; object.runTime = null; object.syncSummary = null; + object.satisfiesPzs = false; + object.satisfiesPzi = false; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -377526,6 +409488,10 @@ object.runTime = $root.google.type.Interval.toObject(message.runTime, options); if (message.syncSummary != null && message.hasOwnProperty("syncSummary")) object.syncSummary = $root.google.cloud.aiplatform.v1beta1.FeatureViewSync.SyncSummary.toObject(message.syncSummary, options); + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) + object.satisfiesPzs = message.satisfiesPzs; + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) + object.satisfiesPzi = message.satisfiesPzi; return object; }; @@ -405527,6 +437493,8 @@ * @property {google.cloud.aiplatform.v1beta1.Featurestore.State|null} [state] Featurestore state * @property {number|null} [onlineStorageTtlDays] Featurestore onlineStorageTtlDays * @property {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null} [encryptionSpec] Featurestore encryptionSpec + * @property {boolean|null} [satisfiesPzs] Featurestore satisfiesPzs + * @property {boolean|null} [satisfiesPzi] Featurestore satisfiesPzi */ /** @@ -405617,6 +437585,22 @@ */ Featurestore.prototype.encryptionSpec = null; + /** + * Featurestore satisfiesPzs. + * @member {boolean} satisfiesPzs + * @memberof google.cloud.aiplatform.v1beta1.Featurestore + * @instance + */ + Featurestore.prototype.satisfiesPzs = false; + + /** + * Featurestore satisfiesPzi. + * @member {boolean} satisfiesPzi + * @memberof google.cloud.aiplatform.v1beta1.Featurestore + * @instance + */ + Featurestore.prototype.satisfiesPzi = false; + /** * Creates a new Featurestore instance using the specified properties. * @function create @@ -405660,6 +437644,10 @@ $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); if (message.onlineStorageTtlDays != null && Object.hasOwnProperty.call(message, "onlineStorageTtlDays")) writer.uint32(/* id 13, wireType 0 =*/104).int32(message.onlineStorageTtlDays); + if (message.satisfiesPzs != null && Object.hasOwnProperty.call(message, "satisfiesPzs")) + writer.uint32(/* id 14, wireType 0 =*/112).bool(message.satisfiesPzs); + if (message.satisfiesPzi != null && Object.hasOwnProperty.call(message, "satisfiesPzi")) + writer.uint32(/* id 15, wireType 0 =*/120).bool(message.satisfiesPzi); return writer; }; @@ -405749,6 +437737,14 @@ message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.decode(reader, reader.uint32()); break; } + case 14: { + message.satisfiesPzs = reader.bool(); + break; + } + case 15: { + message.satisfiesPzi = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -405830,6 +437826,12 @@ if (error) return "encryptionSpec." + error; } + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) + if (typeof message.satisfiesPzs !== "boolean") + return "satisfiesPzs: boolean expected"; + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) + if (typeof message.satisfiesPzi !== "boolean") + return "satisfiesPzi: boolean expected"; return null; }; @@ -405898,6 +437900,10 @@ throw TypeError(".google.cloud.aiplatform.v1beta1.Featurestore.encryptionSpec: object expected"); message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.fromObject(object.encryptionSpec); } + if (object.satisfiesPzs != null) + message.satisfiesPzs = Boolean(object.satisfiesPzs); + if (object.satisfiesPzi != null) + message.satisfiesPzi = Boolean(object.satisfiesPzi); return message; }; @@ -405925,6 +437931,8 @@ object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; object.encryptionSpec = null; object.onlineStorageTtlDays = 0; + object.satisfiesPzs = false; + object.satisfiesPzi = false; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -405948,6 +437956,10 @@ object.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.toObject(message.encryptionSpec, options); if (message.onlineStorageTtlDays != null && message.hasOwnProperty("onlineStorageTtlDays")) object.onlineStorageTtlDays = message.onlineStorageTtlDays; + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) + object.satisfiesPzs = message.satisfiesPzs; + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) + object.satisfiesPzi = message.satisfiesPzi; return object; }; @@ -411099,6 +443111,8 @@ * @property {google.cloud.aiplatform.v1beta1.ISupervisedTuningDatasetDistribution|null} [userOutputTokenDistribution] SupervisedTuningDataStats userOutputTokenDistribution * @property {google.cloud.aiplatform.v1beta1.ISupervisedTuningDatasetDistribution|null} [userMessagePerExampleDistribution] SupervisedTuningDataStats userMessagePerExampleDistribution * @property {Array.|null} [userDatasetExamples] SupervisedTuningDataStats userDatasetExamples + * @property {number|Long|null} [totalTruncatedExampleCount] SupervisedTuningDataStats totalTruncatedExampleCount + * @property {Array.|null} [truncatedExampleIndices] SupervisedTuningDataStats truncatedExampleIndices */ /** @@ -411111,6 +443125,7 @@ */ function SupervisedTuningDataStats(properties) { this.userDatasetExamples = []; + this.truncatedExampleIndices = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -411189,6 +443204,22 @@ */ SupervisedTuningDataStats.prototype.userDatasetExamples = $util.emptyArray; + /** + * SupervisedTuningDataStats totalTruncatedExampleCount. + * @member {number|Long} totalTruncatedExampleCount + * @memberof google.cloud.aiplatform.v1beta1.SupervisedTuningDataStats + * @instance + */ + SupervisedTuningDataStats.prototype.totalTruncatedExampleCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * SupervisedTuningDataStats truncatedExampleIndices. + * @member {Array.} truncatedExampleIndices + * @memberof google.cloud.aiplatform.v1beta1.SupervisedTuningDataStats + * @instance + */ + SupervisedTuningDataStats.prototype.truncatedExampleIndices = $util.emptyArray; + /** * Creates a new SupervisedTuningDataStats instance using the specified properties. * @function create @@ -411232,6 +443263,14 @@ $root.google.cloud.aiplatform.v1beta1.Content.encode(message.userDatasetExamples[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); if (message.totalBillableTokenCount != null && Object.hasOwnProperty.call(message, "totalBillableTokenCount")) writer.uint32(/* id 9, wireType 0 =*/72).int64(message.totalBillableTokenCount); + if (message.totalTruncatedExampleCount != null && Object.hasOwnProperty.call(message, "totalTruncatedExampleCount")) + writer.uint32(/* id 10, wireType 0 =*/80).int64(message.totalTruncatedExampleCount); + if (message.truncatedExampleIndices != null && message.truncatedExampleIndices.length) { + writer.uint32(/* id 11, wireType 2 =*/90).fork(); + for (var i = 0; i < message.truncatedExampleIndices.length; ++i) + writer.int64(message.truncatedExampleIndices[i]); + writer.ldelim(); + } return writer; }; @@ -411304,6 +443343,21 @@ message.userDatasetExamples.push($root.google.cloud.aiplatform.v1beta1.Content.decode(reader, reader.uint32())); break; } + case 10: { + message.totalTruncatedExampleCount = reader.int64(); + break; + } + case 11: { + if (!(message.truncatedExampleIndices && message.truncatedExampleIndices.length)) + message.truncatedExampleIndices = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.truncatedExampleIndices.push(reader.int64()); + } else + message.truncatedExampleIndices.push(reader.int64()); + break; + } default: reader.skipType(tag & 7); break; @@ -411378,6 +443432,16 @@ return "userDatasetExamples." + error; } } + if (message.totalTruncatedExampleCount != null && message.hasOwnProperty("totalTruncatedExampleCount")) + if (!$util.isInteger(message.totalTruncatedExampleCount) && !(message.totalTruncatedExampleCount && $util.isInteger(message.totalTruncatedExampleCount.low) && $util.isInteger(message.totalTruncatedExampleCount.high))) + return "totalTruncatedExampleCount: integer|Long expected"; + if (message.truncatedExampleIndices != null && message.hasOwnProperty("truncatedExampleIndices")) { + if (!Array.isArray(message.truncatedExampleIndices)) + return "truncatedExampleIndices: array expected"; + for (var i = 0; i < message.truncatedExampleIndices.length; ++i) + if (!$util.isInteger(message.truncatedExampleIndices[i]) && !(message.truncatedExampleIndices[i] && $util.isInteger(message.truncatedExampleIndices[i].low) && $util.isInteger(message.truncatedExampleIndices[i].high))) + return "truncatedExampleIndices: integer|Long[] expected"; + } return null; }; @@ -411463,6 +443527,29 @@ message.userDatasetExamples[i] = $root.google.cloud.aiplatform.v1beta1.Content.fromObject(object.userDatasetExamples[i]); } } + if (object.totalTruncatedExampleCount != null) + if ($util.Long) + (message.totalTruncatedExampleCount = $util.Long.fromValue(object.totalTruncatedExampleCount)).unsigned = false; + else if (typeof object.totalTruncatedExampleCount === "string") + message.totalTruncatedExampleCount = parseInt(object.totalTruncatedExampleCount, 10); + else if (typeof object.totalTruncatedExampleCount === "number") + message.totalTruncatedExampleCount = object.totalTruncatedExampleCount; + else if (typeof object.totalTruncatedExampleCount === "object") + message.totalTruncatedExampleCount = new $util.LongBits(object.totalTruncatedExampleCount.low >>> 0, object.totalTruncatedExampleCount.high >>> 0).toNumber(); + if (object.truncatedExampleIndices) { + if (!Array.isArray(object.truncatedExampleIndices)) + throw TypeError(".google.cloud.aiplatform.v1beta1.SupervisedTuningDataStats.truncatedExampleIndices: array expected"); + message.truncatedExampleIndices = []; + for (var i = 0; i < object.truncatedExampleIndices.length; ++i) + if ($util.Long) + (message.truncatedExampleIndices[i] = $util.Long.fromValue(object.truncatedExampleIndices[i])).unsigned = false; + else if (typeof object.truncatedExampleIndices[i] === "string") + message.truncatedExampleIndices[i] = parseInt(object.truncatedExampleIndices[i], 10); + else if (typeof object.truncatedExampleIndices[i] === "number") + message.truncatedExampleIndices[i] = object.truncatedExampleIndices[i]; + else if (typeof object.truncatedExampleIndices[i] === "object") + message.truncatedExampleIndices[i] = new $util.LongBits(object.truncatedExampleIndices[i].low >>> 0, object.truncatedExampleIndices[i].high >>> 0).toNumber(); + } return message; }; @@ -411479,8 +443566,10 @@ if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) + if (options.arrays || options.defaults) { object.userDatasetExamples = []; + object.truncatedExampleIndices = []; + } if (options.defaults) { if ($util.Long) { var long = new $util.Long(0, 0, false); @@ -411510,6 +443599,11 @@ object.totalBillableTokenCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else object.totalBillableTokenCount = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.totalTruncatedExampleCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.totalTruncatedExampleCount = options.longs === String ? "0" : 0; } if (message.tuningDatasetExampleCount != null && message.hasOwnProperty("tuningDatasetExampleCount")) if (typeof message.tuningDatasetExampleCount === "number") @@ -411547,6 +443641,19 @@ object.totalBillableTokenCount = options.longs === String ? String(message.totalBillableTokenCount) : message.totalBillableTokenCount; else object.totalBillableTokenCount = options.longs === String ? $util.Long.prototype.toString.call(message.totalBillableTokenCount) : options.longs === Number ? new $util.LongBits(message.totalBillableTokenCount.low >>> 0, message.totalBillableTokenCount.high >>> 0).toNumber() : message.totalBillableTokenCount; + if (message.totalTruncatedExampleCount != null && message.hasOwnProperty("totalTruncatedExampleCount")) + if (typeof message.totalTruncatedExampleCount === "number") + object.totalTruncatedExampleCount = options.longs === String ? String(message.totalTruncatedExampleCount) : message.totalTruncatedExampleCount; + else + object.totalTruncatedExampleCount = options.longs === String ? $util.Long.prototype.toString.call(message.totalTruncatedExampleCount) : options.longs === Number ? new $util.LongBits(message.totalTruncatedExampleCount.low >>> 0, message.totalTruncatedExampleCount.high >>> 0).toNumber() : message.totalTruncatedExampleCount; + if (message.truncatedExampleIndices && message.truncatedExampleIndices.length) { + object.truncatedExampleIndices = []; + for (var j = 0; j < message.truncatedExampleIndices.length; ++j) + if (typeof message.truncatedExampleIndices[j] === "number") + object.truncatedExampleIndices[j] = options.longs === String ? String(message.truncatedExampleIndices[j]) : message.truncatedExampleIndices[j]; + else + object.truncatedExampleIndices[j] = options.longs === String ? $util.Long.prototype.toString.call(message.truncatedExampleIndices[j]) : options.longs === Number ? new $util.LongBits(message.truncatedExampleIndices[j].low >>> 0, message.truncatedExampleIndices[j].high >>> 0).toNumber() : message.truncatedExampleIndices[j]; + } return object; }; @@ -414487,6 +446594,8 @@ * @property {google.rpc.IStatus|null} [error] HyperparameterTuningJob error * @property {Object.|null} [labels] HyperparameterTuningJob labels * @property {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null} [encryptionSpec] HyperparameterTuningJob encryptionSpec + * @property {boolean|null} [satisfiesPzs] HyperparameterTuningJob satisfiesPzs + * @property {boolean|null} [satisfiesPzi] HyperparameterTuningJob satisfiesPzi */ /** @@ -414634,6 +446743,22 @@ */ HyperparameterTuningJob.prototype.encryptionSpec = null; + /** + * HyperparameterTuningJob satisfiesPzs. + * @member {boolean} satisfiesPzs + * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + * @instance + */ + HyperparameterTuningJob.prototype.satisfiesPzs = false; + + /** + * HyperparameterTuningJob satisfiesPzi. + * @member {boolean} satisfiesPzi + * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + * @instance + */ + HyperparameterTuningJob.prototype.satisfiesPzi = false; + /** * Creates a new HyperparameterTuningJob instance using the specified properties. * @function create @@ -414692,6 +446817,10 @@ writer.uint32(/* id 16, wireType 2 =*/130).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); + if (message.satisfiesPzs != null && Object.hasOwnProperty.call(message, "satisfiesPzs")) + writer.uint32(/* id 19, wireType 0 =*/152).bool(message.satisfiesPzs); + if (message.satisfiesPzi != null && Object.hasOwnProperty.call(message, "satisfiesPzi")) + writer.uint32(/* id 20, wireType 0 =*/160).bool(message.satisfiesPzi); return writer; }; @@ -414811,6 +446940,14 @@ message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.decode(reader, reader.uint32()); break; } + case 19: { + message.satisfiesPzs = reader.bool(); + break; + } + case 20: { + message.satisfiesPzi = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -414936,6 +447073,12 @@ if (error) return "encryptionSpec." + error; } + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) + if (typeof message.satisfiesPzs !== "boolean") + return "satisfiesPzs: boolean expected"; + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) + if (typeof message.satisfiesPzi !== "boolean") + return "satisfiesPzi: boolean expected"; return null; }; @@ -415074,6 +447217,10 @@ throw TypeError(".google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.encryptionSpec: object expected"); message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.fromObject(object.encryptionSpec); } + if (object.satisfiesPzs != null) + message.satisfiesPzs = Boolean(object.satisfiesPzs); + if (object.satisfiesPzi != null) + message.satisfiesPzi = Boolean(object.satisfiesPzi); return message; }; @@ -415109,6 +447256,8 @@ object.updateTime = null; object.error = null; object.encryptionSpec = null; + object.satisfiesPzs = false; + object.satisfiesPzi = false; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -415149,6 +447298,10 @@ } if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) object.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.toObject(message.encryptionSpec, options); + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) + object.satisfiesPzs = message.satisfiesPzs; + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) + object.satisfiesPzi = message.satisfiesPzi; return object; }; @@ -423025,6 +455178,8 @@ * @property {google.cloud.aiplatform.v1beta1.IIndexStats|null} [indexStats] Index indexStats * @property {google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod|null} [indexUpdateMethod] Index indexUpdateMethod * @property {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null} [encryptionSpec] Index encryptionSpec + * @property {boolean|null} [satisfiesPzs] Index satisfiesPzs + * @property {boolean|null} [satisfiesPzi] Index satisfiesPzi */ /** @@ -423148,6 +455303,22 @@ */ Index.prototype.encryptionSpec = null; + /** + * Index satisfiesPzs. + * @member {boolean} satisfiesPzs + * @memberof google.cloud.aiplatform.v1beta1.Index + * @instance + */ + Index.prototype.satisfiesPzs = false; + + /** + * Index satisfiesPzi. + * @member {boolean} satisfiesPzi + * @memberof google.cloud.aiplatform.v1beta1.Index + * @instance + */ + Index.prototype.satisfiesPzi = false; + /** * Creates a new Index instance using the specified properties. * @function create @@ -423200,6 +455371,10 @@ writer.uint32(/* id 16, wireType 0 =*/128).int32(message.indexUpdateMethod); if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); + if (message.satisfiesPzs != null && Object.hasOwnProperty.call(message, "satisfiesPzs")) + writer.uint32(/* id 18, wireType 0 =*/144).bool(message.satisfiesPzs); + if (message.satisfiesPzi != null && Object.hasOwnProperty.call(message, "satisfiesPzi")) + writer.uint32(/* id 19, wireType 0 =*/152).bool(message.satisfiesPzi); return writer; }; @@ -423307,6 +455482,14 @@ message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.decode(reader, reader.uint32()); break; } + case 18: { + message.satisfiesPzs = reader.bool(); + break; + } + case 19: { + message.satisfiesPzi = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -423408,6 +455591,12 @@ if (error) return "encryptionSpec." + error; } + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) + if (typeof message.satisfiesPzs !== "boolean") + return "satisfiesPzs: boolean expected"; + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) + if (typeof message.satisfiesPzi !== "boolean") + return "satisfiesPzi: boolean expected"; return null; }; @@ -423495,6 +455684,10 @@ throw TypeError(".google.cloud.aiplatform.v1beta1.Index.encryptionSpec: object expected"); message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.fromObject(object.encryptionSpec); } + if (object.satisfiesPzs != null) + message.satisfiesPzs = Boolean(object.satisfiesPzs); + if (object.satisfiesPzi != null) + message.satisfiesPzi = Boolean(object.satisfiesPzi); return message; }; @@ -423527,6 +455720,8 @@ object.indexStats = null; object.indexUpdateMethod = options.enums === String ? "INDEX_UPDATE_METHOD_UNSPECIFIED" : 0; object.encryptionSpec = null; + object.satisfiesPzs = false; + object.satisfiesPzi = false; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -423561,6 +455756,10 @@ object.indexUpdateMethod = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod[message.indexUpdateMethod] === undefined ? message.indexUpdateMethod : $root.google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod[message.indexUpdateMethod] : message.indexUpdateMethod; if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) object.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.toObject(message.encryptionSpec, options); + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) + object.satisfiesPzs = message.satisfiesPzs; + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) + object.satisfiesPzi = message.satisfiesPzi; return object; }; @@ -425480,6 +457679,8 @@ * @property {boolean|null} [publicEndpointEnabled] IndexEndpoint publicEndpointEnabled * @property {string|null} [publicEndpointDomainName] IndexEndpoint publicEndpointDomainName * @property {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null} [encryptionSpec] IndexEndpoint encryptionSpec + * @property {boolean|null} [satisfiesPzs] IndexEndpoint satisfiesPzs + * @property {boolean|null} [satisfiesPzi] IndexEndpoint satisfiesPzi */ /** @@ -425611,6 +457812,22 @@ */ IndexEndpoint.prototype.encryptionSpec = null; + /** + * IndexEndpoint satisfiesPzs. + * @member {boolean} satisfiesPzs + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @instance + */ + IndexEndpoint.prototype.satisfiesPzs = false; + + /** + * IndexEndpoint satisfiesPzi. + * @member {boolean} satisfiesPzi + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @instance + */ + IndexEndpoint.prototype.satisfiesPzi = false; + /** * Creates a new IndexEndpoint instance using the specified properties. * @function create @@ -425665,6 +457882,10 @@ writer.uint32(/* id 14, wireType 2 =*/114).string(message.publicEndpointDomainName); if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); + if (message.satisfiesPzs != null && Object.hasOwnProperty.call(message, "satisfiesPzs")) + writer.uint32(/* id 17, wireType 0 =*/136).bool(message.satisfiesPzs); + if (message.satisfiesPzi != null && Object.hasOwnProperty.call(message, "satisfiesPzi")) + writer.uint32(/* id 18, wireType 0 =*/144).bool(message.satisfiesPzi); return writer; }; @@ -425776,6 +457997,14 @@ message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.decode(reader, reader.uint32()); break; } + case 17: { + message.satisfiesPzs = reader.bool(); + break; + } + case 18: { + message.satisfiesPzi = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -425872,6 +458101,12 @@ if (error) return "encryptionSpec." + error; } + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) + if (typeof message.satisfiesPzs !== "boolean") + return "satisfiesPzs: boolean expected"; + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) + if (typeof message.satisfiesPzi !== "boolean") + return "satisfiesPzi: boolean expected"; return null; }; @@ -425940,6 +458175,10 @@ throw TypeError(".google.cloud.aiplatform.v1beta1.IndexEndpoint.encryptionSpec: object expected"); message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.fromObject(object.encryptionSpec); } + if (object.satisfiesPzs != null) + message.satisfiesPzs = Boolean(object.satisfiesPzs); + if (object.satisfiesPzi != null) + message.satisfiesPzi = Boolean(object.satisfiesPzi); return message; }; @@ -425973,6 +458212,8 @@ object.publicEndpointEnabled = false; object.publicEndpointDomainName = ""; object.encryptionSpec = null; + object.satisfiesPzs = false; + object.satisfiesPzi = false; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -426009,6 +458250,10 @@ object.publicEndpointDomainName = message.publicEndpointDomainName; if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) object.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.toObject(message.encryptionSpec, options); + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) + object.satisfiesPzs = message.satisfiesPzs; + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) + object.satisfiesPzi = message.satisfiesPzi; return object; }; @@ -447130,6 +479375,8 @@ * @property {Object.|null} [labels] NasJob labels * @property {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null} [encryptionSpec] NasJob encryptionSpec * @property {boolean|null} [enableRestrictedImageTraining] NasJob enableRestrictedImageTraining + * @property {boolean|null} [satisfiesPzs] NasJob satisfiesPzs + * @property {boolean|null} [satisfiesPzi] NasJob satisfiesPzi */ /** @@ -447252,6 +479499,22 @@ */ NasJob.prototype.enableRestrictedImageTraining = false; + /** + * NasJob satisfiesPzs. + * @member {boolean} satisfiesPzs + * @memberof google.cloud.aiplatform.v1beta1.NasJob + * @instance + */ + NasJob.prototype.satisfiesPzs = false; + + /** + * NasJob satisfiesPzi. + * @member {boolean} satisfiesPzi + * @memberof google.cloud.aiplatform.v1beta1.NasJob + * @instance + */ + NasJob.prototype.satisfiesPzi = false; + /** * Creates a new NasJob instance using the specified properties. * @function create @@ -447303,6 +479566,10 @@ $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); if (message.enableRestrictedImageTraining != null && Object.hasOwnProperty.call(message, "enableRestrictedImageTraining")) writer.uint32(/* id 14, wireType 0 =*/112).bool(message.enableRestrictedImageTraining); + if (message.satisfiesPzs != null && Object.hasOwnProperty.call(message, "satisfiesPzs")) + writer.uint32(/* id 15, wireType 0 =*/120).bool(message.satisfiesPzs); + if (message.satisfiesPzi != null && Object.hasOwnProperty.call(message, "satisfiesPzi")) + writer.uint32(/* id 16, wireType 0 =*/128).bool(message.satisfiesPzi); return writer; }; @@ -447408,6 +479675,14 @@ message.enableRestrictedImageTraining = reader.bool(); break; } + case 15: { + message.satisfiesPzs = reader.bool(); + break; + } + case 16: { + message.satisfiesPzi = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -447518,6 +479793,12 @@ if (message.enableRestrictedImageTraining != null && message.hasOwnProperty("enableRestrictedImageTraining")) if (typeof message.enableRestrictedImageTraining !== "boolean") return "enableRestrictedImageTraining: boolean expected"; + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) + if (typeof message.satisfiesPzs !== "boolean") + return "satisfiesPzs: boolean expected"; + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) + if (typeof message.satisfiesPzi !== "boolean") + return "satisfiesPzi: boolean expected"; return null; }; @@ -447642,6 +479923,10 @@ } if (object.enableRestrictedImageTraining != null) message.enableRestrictedImageTraining = Boolean(object.enableRestrictedImageTraining); + if (object.satisfiesPzs != null) + message.satisfiesPzs = Boolean(object.satisfiesPzs); + if (object.satisfiesPzi != null) + message.satisfiesPzi = Boolean(object.satisfiesPzi); return message; }; @@ -447673,6 +479958,8 @@ object.error = null; object.encryptionSpec = null; object.enableRestrictedImageTraining = false; + object.satisfiesPzs = false; + object.satisfiesPzi = false; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -447704,6 +479991,10 @@ object.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.toObject(message.encryptionSpec, options); if (message.enableRestrictedImageTraining != null && message.hasOwnProperty("enableRestrictedImageTraining")) object.enableRestrictedImageTraining = message.enableRestrictedImageTraining; + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) + object.satisfiesPzs = message.satisfiesPzs; + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) + object.satisfiesPzi = message.satisfiesPzi; return object; }; @@ -475235,6 +507526,7 @@ * @property {string|null} [languageCode] GetPublisherModelRequest languageCode * @property {google.cloud.aiplatform.v1beta1.PublisherModelView|null} [view] GetPublisherModelRequest view * @property {boolean|null} [isHuggingFaceModel] GetPublisherModelRequest isHuggingFaceModel + * @property {string|null} [huggingFaceToken] GetPublisherModelRequest huggingFaceToken */ /** @@ -475284,6 +507576,14 @@ */ GetPublisherModelRequest.prototype.isHuggingFaceModel = false; + /** + * GetPublisherModelRequest huggingFaceToken. + * @member {string} huggingFaceToken + * @memberof google.cloud.aiplatform.v1beta1.GetPublisherModelRequest + * @instance + */ + GetPublisherModelRequest.prototype.huggingFaceToken = ""; + /** * Creates a new GetPublisherModelRequest instance using the specified properties. * @function create @@ -475316,6 +507616,8 @@ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.view); if (message.isHuggingFaceModel != null && Object.hasOwnProperty.call(message, "isHuggingFaceModel")) writer.uint32(/* id 5, wireType 0 =*/40).bool(message.isHuggingFaceModel); + if (message.huggingFaceToken != null && Object.hasOwnProperty.call(message, "huggingFaceToken")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.huggingFaceToken); return writer; }; @@ -475366,6 +507668,10 @@ message.isHuggingFaceModel = reader.bool(); break; } + case 6: { + message.huggingFaceToken = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -475420,6 +507726,9 @@ if (message.isHuggingFaceModel != null && message.hasOwnProperty("isHuggingFaceModel")) if (typeof message.isHuggingFaceModel !== "boolean") return "isHuggingFaceModel: boolean expected"; + if (message.huggingFaceToken != null && message.hasOwnProperty("huggingFaceToken")) + if (!$util.isString(message.huggingFaceToken)) + return "huggingFaceToken: string expected"; return null; }; @@ -475465,6 +507774,8 @@ } if (object.isHuggingFaceModel != null) message.isHuggingFaceModel = Boolean(object.isHuggingFaceModel); + if (object.huggingFaceToken != null) + message.huggingFaceToken = String(object.huggingFaceToken); return message; }; @@ -475486,6 +507797,7 @@ object.languageCode = ""; object.view = options.enums === String ? "PUBLISHER_MODEL_VIEW_UNSPECIFIED" : 0; object.isHuggingFaceModel = false; + object.huggingFaceToken = ""; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -475495,6 +507807,8 @@ object.view = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.PublisherModelView[message.view] === undefined ? message.view : $root.google.cloud.aiplatform.v1beta1.PublisherModelView[message.view] : message.view; if (message.isHuggingFaceModel != null && message.hasOwnProperty("isHuggingFaceModel")) object.isHuggingFaceModel = message.isHuggingFaceModel; + if (message.huggingFaceToken != null && message.hasOwnProperty("huggingFaceToken")) + object.huggingFaceToken = message.huggingFaceToken; return object; }; @@ -479638,6 +511952,7 @@ * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy * @interface IDeployMetadata * @property {Object.|null} [labels] DeployMetadata labels + * @property {string|null} [sampleRequest] DeployMetadata sampleRequest */ /** @@ -479664,6 +511979,14 @@ */ DeployMetadata.prototype.labels = $util.emptyObject; + /** + * DeployMetadata sampleRequest. + * @member {string} sampleRequest + * @memberof google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction.Deploy.DeployMetadata + * @instance + */ + DeployMetadata.prototype.sampleRequest = ""; + /** * Creates a new DeployMetadata instance using the specified properties. * @function create @@ -479691,6 +512014,8 @@ 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 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.sampleRequest != null && Object.hasOwnProperty.call(message, "sampleRequest")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.sampleRequest); return writer; }; @@ -479748,6 +512073,10 @@ message.labels[key] = value; break; } + case 2: { + message.sampleRequest = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -479791,6 +512120,9 @@ if (!$util.isString(message.labels[key[i]])) return "labels: string{k:string} expected"; } + if (message.sampleRequest != null && message.hasOwnProperty("sampleRequest")) + if (!$util.isString(message.sampleRequest)) + return "sampleRequest: string expected"; return null; }; @@ -479813,6 +512145,8 @@ for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) message.labels[keys[i]] = String(object.labels[keys[i]]); } + if (object.sampleRequest != null) + message.sampleRequest = String(object.sampleRequest); return message; }; @@ -479831,12 +512165,16 @@ var object = {}; if (options.objects || options.defaults) object.labels = {}; + if (options.defaults) + object.sampleRequest = ""; 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]]; } + if (message.sampleRequest != null && message.hasOwnProperty("sampleRequest")) + object.sampleRequest = message.sampleRequest; return object; }; @@ -504038,6 +536376,7 @@ * @property {google.protobuf.ITimestamp|null} [createTime] NotebookExecutionJob createTime * @property {google.protobuf.ITimestamp|null} [updateTime] NotebookExecutionJob updateTime * @property {Object.|null} [labels] NotebookExecutionJob labels + * @property {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null} [encryptionSpec] NotebookExecutionJob encryptionSpec */ /** @@ -504184,6 +536523,14 @@ */ NotebookExecutionJob.prototype.labels = $util.emptyObject; + /** + * NotebookExecutionJob encryptionSpec. + * @member {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null|undefined} encryptionSpec + * @memberof google.cloud.aiplatform.v1beta1.NotebookExecutionJob + * @instance + */ + NotebookExecutionJob.prototype.encryptionSpec = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -504288,6 +536635,8 @@ 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 19, wireType 2 =*/154).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) + $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim(); return writer; }; @@ -504405,6 +536754,10 @@ message.labels[key] = value; break; } + case 22: { + message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -504546,6 +536899,11 @@ if (!$util.isString(message.labels[key[i]])) return "labels: string{k:string} expected"; } + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { + var error = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.verify(message.encryptionSpec); + if (error) + return "encryptionSpec." + error; + } return null; }; @@ -504673,6 +537031,11 @@ for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) message.labels[keys[i]] = String(object.labels[keys[i]]); } + if (object.encryptionSpec != null) { + if (typeof object.encryptionSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.NotebookExecutionJob.encryptionSpec: object expected"); + message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.fromObject(object.encryptionSpec); + } return message; }; @@ -504700,6 +537063,7 @@ object.status = null; object.createTime = null; object.updateTime = null; + object.encryptionSpec = null; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -504758,6 +537122,8 @@ for (var j = 0; j < keys2.length; ++j) object.labels[keys2[j]] = message.labels[keys2[j]]; } + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) + object.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.toObject(message.encryptionSpec, options); return object; }; @@ -591995,6 +624361,209 @@ return RagFileChunkingConfig; })(); + v1beta1.RagFileParsingConfig = (function() { + + /** + * Properties of a RagFileParsingConfig. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IRagFileParsingConfig + * @property {boolean|null} [useAdvancedPdfParsing] RagFileParsingConfig useAdvancedPdfParsing + */ + + /** + * Constructs a new RagFileParsingConfig. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a RagFileParsingConfig. + * @implements IRagFileParsingConfig + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IRagFileParsingConfig=} [properties] Properties to set + */ + function RagFileParsingConfig(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]]; + } + + /** + * RagFileParsingConfig useAdvancedPdfParsing. + * @member {boolean} useAdvancedPdfParsing + * @memberof google.cloud.aiplatform.v1beta1.RagFileParsingConfig + * @instance + */ + RagFileParsingConfig.prototype.useAdvancedPdfParsing = false; + + /** + * Creates a new RagFileParsingConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.RagFileParsingConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.IRagFileParsingConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.RagFileParsingConfig} RagFileParsingConfig instance + */ + RagFileParsingConfig.create = function create(properties) { + return new RagFileParsingConfig(properties); + }; + + /** + * Encodes the specified RagFileParsingConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RagFileParsingConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.RagFileParsingConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.IRagFileParsingConfig} message RagFileParsingConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RagFileParsingConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.useAdvancedPdfParsing != null && Object.hasOwnProperty.call(message, "useAdvancedPdfParsing")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.useAdvancedPdfParsing); + return writer; + }; + + /** + * Encodes the specified RagFileParsingConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RagFileParsingConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.RagFileParsingConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.IRagFileParsingConfig} message RagFileParsingConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RagFileParsingConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RagFileParsingConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.RagFileParsingConfig + * @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.RagFileParsingConfig} RagFileParsingConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RagFileParsingConfig.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.RagFileParsingConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + message.useAdvancedPdfParsing = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RagFileParsingConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.RagFileParsingConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.RagFileParsingConfig} RagFileParsingConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RagFileParsingConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RagFileParsingConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.RagFileParsingConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RagFileParsingConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.useAdvancedPdfParsing != null && message.hasOwnProperty("useAdvancedPdfParsing")) + if (typeof message.useAdvancedPdfParsing !== "boolean") + return "useAdvancedPdfParsing: boolean expected"; + return null; + }; + + /** + * Creates a RagFileParsingConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.RagFileParsingConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.RagFileParsingConfig} RagFileParsingConfig + */ + RagFileParsingConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.RagFileParsingConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.RagFileParsingConfig(); + if (object.useAdvancedPdfParsing != null) + message.useAdvancedPdfParsing = Boolean(object.useAdvancedPdfParsing); + return message; + }; + + /** + * Creates a plain object from a RagFileParsingConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.RagFileParsingConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.RagFileParsingConfig} message RagFileParsingConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RagFileParsingConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.useAdvancedPdfParsing = false; + if (message.useAdvancedPdfParsing != null && message.hasOwnProperty("useAdvancedPdfParsing")) + object.useAdvancedPdfParsing = message.useAdvancedPdfParsing; + return object; + }; + + /** + * Converts this RagFileParsingConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.RagFileParsingConfig + * @instance + * @returns {Object.} JSON object + */ + RagFileParsingConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RagFileParsingConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.RagFileParsingConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RagFileParsingConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.RagFileParsingConfig"; + }; + + return RagFileParsingConfig; + })(); + v1beta1.UploadRagFileConfig = (function() { /** @@ -592214,6 +624783,7 @@ * @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.IRagFileChunkingConfig|null} [ragFileChunkingConfig] ImportRagFilesConfig ragFileChunkingConfig + * @property {google.cloud.aiplatform.v1beta1.IRagFileParsingConfig|null} [ragFileParsingConfig] ImportRagFilesConfig ragFileParsingConfig * @property {number|null} [maxEmbeddingRequestsPerMin] ImportRagFilesConfig maxEmbeddingRequestsPerMin */ @@ -592272,6 +624842,14 @@ */ ImportRagFilesConfig.prototype.ragFileChunkingConfig = null; + /** + * ImportRagFilesConfig ragFileParsingConfig. + * @member {google.cloud.aiplatform.v1beta1.IRagFileParsingConfig|null|undefined} ragFileParsingConfig + * @memberof google.cloud.aiplatform.v1beta1.ImportRagFilesConfig + * @instance + */ + ImportRagFilesConfig.prototype.ragFileParsingConfig = null; + /** * ImportRagFilesConfig maxEmbeddingRequestsPerMin. * @member {number} maxEmbeddingRequestsPerMin @@ -592330,6 +624908,8 @@ $root.google.cloud.aiplatform.v1beta1.SlackSource.encode(message.slackSource, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); if (message.jiraSource != null && Object.hasOwnProperty.call(message, "jiraSource")) $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(); return writer; }; @@ -592384,6 +624964,10 @@ message.ragFileChunkingConfig = $root.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.decode(reader, reader.uint32()); break; } + case 8: { + message.ragFileParsingConfig = $root.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.decode(reader, reader.uint32()); + break; + } case 5: { message.maxEmbeddingRequestsPerMin = reader.int32(); break; @@ -592467,6 +625051,11 @@ if (error) return "ragFileChunkingConfig." + error; } + if (message.ragFileParsingConfig != null && message.hasOwnProperty("ragFileParsingConfig")) { + var error = $root.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.verify(message.ragFileParsingConfig); + if (error) + return "ragFileParsingConfig." + error; + } if (message.maxEmbeddingRequestsPerMin != null && message.hasOwnProperty("maxEmbeddingRequestsPerMin")) if (!$util.isInteger(message.maxEmbeddingRequestsPerMin)) return "maxEmbeddingRequestsPerMin: integer expected"; @@ -592510,6 +625099,11 @@ throw TypeError(".google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.ragFileChunkingConfig: object expected"); message.ragFileChunkingConfig = $root.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.fromObject(object.ragFileChunkingConfig); } + if (object.ragFileParsingConfig != null) { + if (typeof object.ragFileParsingConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.ragFileParsingConfig: object expected"); + message.ragFileParsingConfig = $root.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.fromObject(object.ragFileParsingConfig); + } if (object.maxEmbeddingRequestsPerMin != null) message.maxEmbeddingRequestsPerMin = object.maxEmbeddingRequestsPerMin | 0; return message; @@ -592531,6 +625125,7 @@ if (options.defaults) { object.ragFileChunkingConfig = null; object.maxEmbeddingRequestsPerMin = 0; + object.ragFileParsingConfig = null; } if (message.gcsSource != null && message.hasOwnProperty("gcsSource")) { object.gcsSource = $root.google.cloud.aiplatform.v1beta1.GcsSource.toObject(message.gcsSource, options); @@ -592556,6 +625151,8 @@ if (options.oneofs) object.importSource = "jiraSource"; } + if (message.ragFileParsingConfig != null && message.hasOwnProperty("ragFileParsingConfig")) + object.ragFileParsingConfig = $root.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.toObject(message.ragFileParsingConfig, options); return object; }; diff --git a/packages/google-cloud-aiplatform/protos/protos.json b/packages/google-cloud-aiplatform/protos/protos.json index 9fa1be2bde9..7c439c0193f 100644 --- a/packages/google-cloud-aiplatform/protos/protos.json +++ b/packages/google-cloud-aiplatform/protos/protos.json @@ -415,6 +415,20 @@ "disableContainerLogging": { "type": "bool", "id": 34 + }, + "satisfiesPzs": { + "type": "bool", + "id": 36, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "satisfiesPzi": { + "type": "bool", + "id": 37, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } }, "nested": { @@ -1369,6 +1383,13 @@ "options": { "(google.api.field_behavior)": "IMMUTABLE" } + }, + "reservationAffinity": { + "type": "ReservationAffinity", + "id": 5, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } }, @@ -1402,6 +1423,13 @@ "options": { "(google.api.field_behavior)": "IMMUTABLE" } + }, + "spot": { + "type": "bool", + "id": 5, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } }, @@ -1531,6 +1559,43 @@ } } }, + "ReservationAffinity": { + "fields": { + "reservationAffinityType": { + "type": "Type", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "key": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "values": { + "rule": "repeated", + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "(google.api.resource_reference).type": "compute.googleapis.com/Reservation" + } + } + }, + "nested": { + "Type": { + "values": { + "TYPE_UNSPECIFIED": 0, + "NO_RESERVATION": 1, + "ANY_RESERVATION": 2, + "SPECIFIC_RESERVATION": 3 + } + } + } + }, "ManualBatchTuningParameters": { "fields": { "batchSize": { @@ -2314,10 +2379,20 @@ "frequencyPenalty" ] }, + "_seed": { + "oneof": [ + "seed" + ] + }, "_responseSchema": { "oneof": [ "responseSchema" ] + }, + "_routingConfig": { + "oneof": [ + "routingConfig" + ] } }, "fields": { @@ -2385,6 +2460,14 @@ "proto3_optional": true } }, + "seed": { + "type": "int32", + "id": 12, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true + } + }, "responseMimeType": { "type": "string", "id": 13, @@ -2399,6 +2482,84 @@ "(google.api.field_behavior)": "OPTIONAL", "proto3_optional": true } + }, + "routingConfig": { + "type": "RoutingConfig", + "id": 17, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true + } + } + }, + "nested": { + "RoutingConfig": { + "oneofs": { + "routingConfig": { + "oneof": [ + "autoMode", + "manualMode" + ] + } + }, + "fields": { + "autoMode": { + "type": "AutoRoutingMode", + "id": 1 + }, + "manualMode": { + "type": "ManualRoutingMode", + "id": 2 + } + }, + "nested": { + "AutoRoutingMode": { + "oneofs": { + "_modelRoutingPreference": { + "oneof": [ + "modelRoutingPreference" + ] + } + }, + "fields": { + "modelRoutingPreference": { + "type": "ModelRoutingPreference", + "id": 1, + "options": { + "proto3_optional": true + } + } + }, + "nested": { + "ModelRoutingPreference": { + "values": { + "UNKNOWN": 0, + "PRIORITIZE_QUALITY": 1, + "BALANCED": 2, + "PRIORITIZE_COST": 3 + } + } + } + }, + "ManualRoutingMode": { + "oneofs": { + "_modelName": { + "oneof": [ + "modelName" + ] + } + }, + "fields": { + "modelName": { + "type": "string", + "id": 1, + "options": { + "proto3_optional": true + } + } + } + } + } } } }, @@ -2599,6 +2760,13 @@ "(google.api.field_behavior)": "OUTPUT_ONLY" } }, + "avgLogprobs": { + "type": "double", + "id": 9, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, "finishReason": { "type": "FinishReason", "id": 3, @@ -3328,6 +3496,20 @@ "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } + }, + "satisfiesPzs": { + "type": "bool", + "id": 18, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "satisfiesPzi": { + "type": "bool", + "id": 19, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } } }, @@ -3565,10 +3747,20 @@ }, "nested": { "Strategy": { + "valuesOptions": { + "ON_DEMAND": { + "deprecated": true + }, + "LOW_COST": { + "deprecated": true + } + }, "values": { "STRATEGY_UNSPECIFIED": 0, "ON_DEMAND": 1, - "LOW_COST": 2 + "LOW_COST": 2, + "STANDARD": 3, + "SPOT": 4 } } } @@ -3621,6 +3813,20 @@ "options": { "(google.api.field_behavior)": "OPTIONAL" } + }, + "satisfiesPzs": { + "type": "bool", + "id": 10, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "satisfiesPzi": { + "type": "bool", + "id": 11, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } } }, @@ -3910,6 +4116,20 @@ "options": { "(google.api.field_behavior)": "OPTIONAL" } + }, + "satisfiesPzs": { + "type": "bool", + "id": 19, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "satisfiesPzi": { + "type": "bool", + "id": 20, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } } }, @@ -4123,6 +4343,8 @@ "options": { "(google.api.http).post": "/v1/{parent=projects/*/locations/*}/datasets", "(google.api.http).body": "dataset", + "(google.api.http).additional_bindings.post": "/v1/datasets", + "(google.api.http).additional_bindings.body": "dataset", "(google.api.method_signature)": "parent,dataset", "(google.longrunning.operation_info).response_type": "Dataset", "(google.longrunning.operation_info).metadata_type": "CreateDatasetOperationMetadata" @@ -4131,7 +4353,11 @@ { "(google.api.http)": { "post": "/v1/{parent=projects/*/locations/*}/datasets", - "body": "dataset" + "body": "dataset", + "additional_bindings": { + "post": "/v1/datasets", + "body": "dataset" + } } }, { @@ -4150,12 +4376,16 @@ "responseType": "Dataset", "options": { "(google.api.http).get": "/v1/{name=projects/*/locations/*/datasets/*}", + "(google.api.http).additional_bindings.get": "/v1/{name=datasets/*}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v1/{name=projects/*/locations/*/datasets/*}" + "get": "/v1/{name=projects/*/locations/*/datasets/*}", + "additional_bindings": { + "get": "/v1/{name=datasets/*}" + } } }, { @@ -4169,13 +4399,19 @@ "options": { "(google.api.http).patch": "/v1/{dataset.name=projects/*/locations/*/datasets/*}", "(google.api.http).body": "dataset", + "(google.api.http).additional_bindings.patch": "/v1/{dataset.name=datasets/*}", + "(google.api.http).additional_bindings.body": "dataset", "(google.api.method_signature)": "dataset,update_mask" }, "parsedOptions": [ { "(google.api.http)": { "patch": "/v1/{dataset.name=projects/*/locations/*/datasets/*}", - "body": "dataset" + "body": "dataset", + "additional_bindings": { + "patch": "/v1/{dataset.name=datasets/*}", + "body": "dataset" + } } }, { @@ -4188,12 +4424,16 @@ "responseType": "ListDatasetsResponse", "options": { "(google.api.http).get": "/v1/{parent=projects/*/locations/*}/datasets", + "(google.api.http).additional_bindings.get": "/v1/datasets", "(google.api.method_signature)": "parent" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v1/{parent=projects/*/locations/*}/datasets" + "get": "/v1/{parent=projects/*/locations/*}/datasets", + "additional_bindings": { + "get": "/v1/datasets" + } } }, { @@ -4206,6 +4446,7 @@ "responseType": "google.longrunning.Operation", "options": { "(google.api.http).delete": "/v1/{name=projects/*/locations/*/datasets/*}", + "(google.api.http).additional_bindings.delete": "/v1/{name=datasets/*}", "(google.api.method_signature)": "name", "(google.longrunning.operation_info).response_type": "google.protobuf.Empty", "(google.longrunning.operation_info).metadata_type": "DeleteOperationMetadata" @@ -4213,7 +4454,10 @@ "parsedOptions": [ { "(google.api.http)": { - "delete": "/v1/{name=projects/*/locations/*/datasets/*}" + "delete": "/v1/{name=projects/*/locations/*/datasets/*}", + "additional_bindings": { + "delete": "/v1/{name=datasets/*}" + } } }, { @@ -4289,6 +4533,8 @@ "options": { "(google.api.http).post": "/v1/{parent=projects/*/locations/*/datasets/*}/datasetVersions", "(google.api.http).body": "dataset_version", + "(google.api.http).additional_bindings.post": "/v1/{parent=datasets/*}/datasetVersions", + "(google.api.http).additional_bindings.body": "dataset_version", "(google.api.method_signature)": "parent,dataset_version", "(google.longrunning.operation_info).response_type": "DatasetVersion", "(google.longrunning.operation_info).metadata_type": "CreateDatasetVersionOperationMetadata" @@ -4297,7 +4543,11 @@ { "(google.api.http)": { "post": "/v1/{parent=projects/*/locations/*/datasets/*}/datasetVersions", - "body": "dataset_version" + "body": "dataset_version", + "additional_bindings": { + "post": "/v1/{parent=datasets/*}/datasetVersions", + "body": "dataset_version" + } } }, { @@ -4317,13 +4567,19 @@ "options": { "(google.api.http).patch": "/v1/{dataset_version.name=projects/*/locations/*/datasets/*/datasetVersions/*}", "(google.api.http).body": "dataset_version", + "(google.api.http).additional_bindings.patch": "/v1/{dataset_version.name=datasets/*/datasetVersions/*}", + "(google.api.http).additional_bindings.body": "dataset_version", "(google.api.method_signature)": "dataset_version,update_mask" }, "parsedOptions": [ { "(google.api.http)": { "patch": "/v1/{dataset_version.name=projects/*/locations/*/datasets/*/datasetVersions/*}", - "body": "dataset_version" + "body": "dataset_version", + "additional_bindings": { + "patch": "/v1/{dataset_version.name=datasets/*/datasetVersions/*}", + "body": "dataset_version" + } } }, { @@ -4336,6 +4592,7 @@ "responseType": "google.longrunning.Operation", "options": { "(google.api.http).delete": "/v1/{name=projects/*/locations/*/datasets/*/datasetVersions/*}", + "(google.api.http).additional_bindings.delete": "/v1/{name=datasets/*/datasetVersions/*}", "(google.api.method_signature)": "name", "(google.longrunning.operation_info).response_type": "google.protobuf.Empty", "(google.longrunning.operation_info).metadata_type": "DeleteOperationMetadata" @@ -4343,7 +4600,10 @@ "parsedOptions": [ { "(google.api.http)": { - "delete": "/v1/{name=projects/*/locations/*/datasets/*/datasetVersions/*}" + "delete": "/v1/{name=projects/*/locations/*/datasets/*/datasetVersions/*}", + "additional_bindings": { + "delete": "/v1/{name=datasets/*/datasetVersions/*}" + } } }, { @@ -4362,12 +4622,16 @@ "responseType": "DatasetVersion", "options": { "(google.api.http).get": "/v1/{name=projects/*/locations/*/datasets/*/datasetVersions/*}", + "(google.api.http).additional_bindings.get": "/v1/{name=datasets/*/datasetVersions/*}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v1/{name=projects/*/locations/*/datasets/*/datasetVersions/*}" + "get": "/v1/{name=projects/*/locations/*/datasets/*/datasetVersions/*}", + "additional_bindings": { + "get": "/v1/{name=datasets/*/datasetVersions/*}" + } } }, { @@ -4380,12 +4644,16 @@ "responseType": "ListDatasetVersionsResponse", "options": { "(google.api.http).get": "/v1/{parent=projects/*/locations/*/datasets/*}/datasetVersions", + "(google.api.http).additional_bindings.get": "/v1/{parent=datasets/*}/datasetVersions", "(google.api.method_signature)": "parent" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v1/{parent=projects/*/locations/*/datasets/*}/datasetVersions" + "get": "/v1/{parent=projects/*/locations/*/datasets/*}/datasetVersions", + "additional_bindings": { + "get": "/v1/{parent=datasets/*}/datasetVersions" + } } }, { @@ -4398,6 +4666,7 @@ "responseType": "google.longrunning.Operation", "options": { "(google.api.http).get": "/v1/{name=projects/*/locations/*/datasets/*/datasetVersions/*}:restore", + "(google.api.http).additional_bindings.get": "/v1/{name=datasets/*/datasetVersions/*}:restore", "(google.api.method_signature)": "name", "(google.longrunning.operation_info).response_type": "DatasetVersion", "(google.longrunning.operation_info).metadata_type": "RestoreDatasetVersionOperationMetadata" @@ -4405,7 +4674,10 @@ "parsedOptions": [ { "(google.api.http)": { - "get": "/v1/{name=projects/*/locations/*/datasets/*/datasetVersions/*}:restore" + "get": "/v1/{name=projects/*/locations/*/datasets/*/datasetVersions/*}:restore", + "additional_bindings": { + "get": "/v1/{name=datasets/*/datasetVersions/*}:restore" + } } }, { @@ -5223,6 +5495,20 @@ "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } + }, + "satisfiesPzs": { + "type": "bool", + "id": 10, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "satisfiesPzi": { + "type": "bool", + "id": 11, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } } }, @@ -5324,6 +5610,20 @@ "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } + }, + "satisfiesPzs": { + "type": "bool", + "id": 8, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "satisfiesPzi": { + "type": "bool", + "id": 9, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } } }, @@ -5910,6 +6210,13 @@ "rule": "repeated", "type": "string", "id": 2 + }, + "serviceAttachment": { + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } } }, @@ -6410,240 +6717,2997 @@ "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } - }, - "updateTime": { - "type": "google.protobuf.Timestamp", - "id": 4, + }, + "updateTime": { + "type": "google.protobuf.Timestamp", + "id": 4, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "labels": { + "keyType": "string", + "type": "string", + "id": 6, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "etag": { + "type": "string", + "id": 7, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "monitoringConfig": { + "type": "FeaturestoreMonitoringConfig", + "id": 8, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "offlineStorageTtlDays": { + "type": "int32", + "id": 10, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "satisfiesPzs": { + "type": "bool", + "id": 11, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "satisfiesPzi": { + "type": "bool", + "id": 12, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, + "FeaturestoreMonitoringConfig": { + "fields": { + "snapshotAnalysis": { + "type": "SnapshotAnalysis", + "id": 1 + }, + "importFeaturesAnalysis": { + "type": "ImportFeaturesAnalysis", + "id": 2 + }, + "numericalThresholdConfig": { + "type": "ThresholdConfig", + "id": 3 + }, + "categoricalThresholdConfig": { + "type": "ThresholdConfig", + "id": 4 + } + }, + "nested": { + "SnapshotAnalysis": { + "fields": { + "disabled": { + "type": "bool", + "id": 1 + }, + "monitoringIntervalDays": { + "type": "int32", + "id": 3 + }, + "stalenessDays": { + "type": "int32", + "id": 4 + } + } + }, + "ImportFeaturesAnalysis": { + "fields": { + "state": { + "type": "State", + "id": 1 + }, + "anomalyDetectionBaseline": { + "type": "Baseline", + "id": 2 + } + }, + "nested": { + "State": { + "values": { + "STATE_UNSPECIFIED": 0, + "DEFAULT": 1, + "ENABLED": 2, + "DISABLED": 3 + } + }, + "Baseline": { + "values": { + "BASELINE_UNSPECIFIED": 0, + "LATEST_STATS": 1, + "MOST_RECENT_SNAPSHOT_STATS": 2, + "PREVIOUS_IMPORT_FEATURES_STATS": 3 + } + } + } + }, + "ThresholdConfig": { + "oneofs": { + "threshold": { + "oneof": [ + "value" + ] + } + }, + "fields": { + "value": { + "type": "double", + "id": 1 + } + } + } + } + }, + "EvaluatedAnnotation": { + "fields": { + "type": { + "type": "EvaluatedAnnotationType", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "predictions": { + "rule": "repeated", + "type": "google.protobuf.Value", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "groundTruths": { + "rule": "repeated", + "type": "google.protobuf.Value", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "dataItemPayload": { + "type": "google.protobuf.Value", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "evaluatedDataItemViewId": { + "type": "string", + "id": 6, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "explanations": { + "rule": "repeated", + "type": "EvaluatedAnnotationExplanation", + "id": 8 + }, + "errorAnalysisAnnotations": { + "rule": "repeated", + "type": "ErrorAnalysisAnnotation", + "id": 9 + } + }, + "nested": { + "EvaluatedAnnotationType": { + "values": { + "EVALUATED_ANNOTATION_TYPE_UNSPECIFIED": 0, + "TRUE_POSITIVE": 1, + "FALSE_POSITIVE": 2, + "FALSE_NEGATIVE": 3 + } + } + } + }, + "EvaluatedAnnotationExplanation": { + "fields": { + "explanationType": { + "type": "string", + "id": 1 + }, + "explanation": { + "type": "Explanation", + "id": 2 + } + } + }, + "ErrorAnalysisAnnotation": { + "fields": { + "attributedItems": { + "rule": "repeated", + "type": "AttributedItem", + "id": 1 + }, + "queryType": { + "type": "QueryType", + "id": 2 + }, + "outlierScore": { + "type": "double", + "id": 3 + }, + "outlierThreshold": { + "type": "double", + "id": 4 + } + }, + "nested": { + "AttributedItem": { + "fields": { + "annotationResourceName": { + "type": "string", + "id": 1 + }, + "distance": { + "type": "double", + "id": 2 + } + } + }, + "QueryType": { + "values": { + "QUERY_TYPE_UNSPECIFIED": 0, + "ALL_SIMILAR": 1, + "SAME_CLASS_SIMILAR": 2, + "SAME_CLASS_DISSIMILAR": 3 + } + } + } + }, + "EvaluationService": { + "options": { + "(google.api.default_host)": "aiplatform.googleapis.com", + "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform" + }, + "methods": { + "EvaluateInstances": { + "requestType": "EvaluateInstancesRequest", + "responseType": "EvaluateInstancesResponse", + "options": { + "(google.api.http).post": "/v1/{location=projects/*/locations/*}:evaluateInstances", + "(google.api.http).body": "*" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{location=projects/*/locations/*}:evaluateInstances", + "body": "*" + } + } + ] + } + } + }, + "PairwiseChoice": { + "values": { + "PAIRWISE_CHOICE_UNSPECIFIED": 0, + "BASELINE": 1, + "CANDIDATE": 2, + "TIE": 3 + } + }, + "EvaluateInstancesRequest": { + "oneofs": { + "metricInputs": { + "oneof": [ + "exactMatchInput", + "bleuInput", + "rougeInput", + "fluencyInput", + "coherenceInput", + "safetyInput", + "groundednessInput", + "fulfillmentInput", + "summarizationQualityInput", + "pairwiseSummarizationQualityInput", + "summarizationHelpfulnessInput", + "summarizationVerbosityInput", + "questionAnsweringQualityInput", + "pairwiseQuestionAnsweringQualityInput", + "questionAnsweringRelevanceInput", + "questionAnsweringHelpfulnessInput", + "questionAnsweringCorrectnessInput", + "pointwiseMetricInput", + "pairwiseMetricInput", + "toolCallValidInput", + "toolNameMatchInput", + "toolParameterKeyMatchInput", + "toolParameterKvMatchInput" + ] + } + }, + "fields": { + "exactMatchInput": { + "type": "ExactMatchInput", + "id": 2 + }, + "bleuInput": { + "type": "BleuInput", + "id": 3 + }, + "rougeInput": { + "type": "RougeInput", + "id": 4 + }, + "fluencyInput": { + "type": "FluencyInput", + "id": 5 + }, + "coherenceInput": { + "type": "CoherenceInput", + "id": 6 + }, + "safetyInput": { + "type": "SafetyInput", + "id": 8 + }, + "groundednessInput": { + "type": "GroundednessInput", + "id": 9 + }, + "fulfillmentInput": { + "type": "FulfillmentInput", + "id": 12 + }, + "summarizationQualityInput": { + "type": "SummarizationQualityInput", + "id": 7 + }, + "pairwiseSummarizationQualityInput": { + "type": "PairwiseSummarizationQualityInput", + "id": 23 + }, + "summarizationHelpfulnessInput": { + "type": "SummarizationHelpfulnessInput", + "id": 14 + }, + "summarizationVerbosityInput": { + "type": "SummarizationVerbosityInput", + "id": 15 + }, + "questionAnsweringQualityInput": { + "type": "QuestionAnsweringQualityInput", + "id": 10 + }, + "pairwiseQuestionAnsweringQualityInput": { + "type": "PairwiseQuestionAnsweringQualityInput", + "id": 24 + }, + "questionAnsweringRelevanceInput": { + "type": "QuestionAnsweringRelevanceInput", + "id": 16 + }, + "questionAnsweringHelpfulnessInput": { + "type": "QuestionAnsweringHelpfulnessInput", + "id": 17 + }, + "questionAnsweringCorrectnessInput": { + "type": "QuestionAnsweringCorrectnessInput", + "id": 18 + }, + "pointwiseMetricInput": { + "type": "PointwiseMetricInput", + "id": 28 + }, + "pairwiseMetricInput": { + "type": "PairwiseMetricInput", + "id": 29 + }, + "toolCallValidInput": { + "type": "ToolCallValidInput", + "id": 19 + }, + "toolNameMatchInput": { + "type": "ToolNameMatchInput", + "id": 20 + }, + "toolParameterKeyMatchInput": { + "type": "ToolParameterKeyMatchInput", + "id": 21 + }, + "toolParameterKvMatchInput": { + "type": "ToolParameterKVMatchInput", + "id": 22 + }, + "location": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "locations.googleapis.com/Location" + } + } + } + }, + "EvaluateInstancesResponse": { + "oneofs": { + "evaluationResults": { + "oneof": [ + "exactMatchResults", + "bleuResults", + "rougeResults", + "fluencyResult", + "coherenceResult", + "safetyResult", + "groundednessResult", + "fulfillmentResult", + "summarizationQualityResult", + "pairwiseSummarizationQualityResult", + "summarizationHelpfulnessResult", + "summarizationVerbosityResult", + "questionAnsweringQualityResult", + "pairwiseQuestionAnsweringQualityResult", + "questionAnsweringRelevanceResult", + "questionAnsweringHelpfulnessResult", + "questionAnsweringCorrectnessResult", + "pointwiseMetricResult", + "pairwiseMetricResult", + "toolCallValidResults", + "toolNameMatchResults", + "toolParameterKeyMatchResults", + "toolParameterKvMatchResults" + ] + } + }, + "fields": { + "exactMatchResults": { + "type": "ExactMatchResults", + "id": 1 + }, + "bleuResults": { + "type": "BleuResults", + "id": 2 + }, + "rougeResults": { + "type": "RougeResults", + "id": 3 + }, + "fluencyResult": { + "type": "FluencyResult", + "id": 4 + }, + "coherenceResult": { + "type": "CoherenceResult", + "id": 5 + }, + "safetyResult": { + "type": "SafetyResult", + "id": 7 + }, + "groundednessResult": { + "type": "GroundednessResult", + "id": 8 + }, + "fulfillmentResult": { + "type": "FulfillmentResult", + "id": 11 + }, + "summarizationQualityResult": { + "type": "SummarizationQualityResult", + "id": 6 + }, + "pairwiseSummarizationQualityResult": { + "type": "PairwiseSummarizationQualityResult", + "id": 22 + }, + "summarizationHelpfulnessResult": { + "type": "SummarizationHelpfulnessResult", + "id": 13 + }, + "summarizationVerbosityResult": { + "type": "SummarizationVerbosityResult", + "id": 14 + }, + "questionAnsweringQualityResult": { + "type": "QuestionAnsweringQualityResult", + "id": 9 + }, + "pairwiseQuestionAnsweringQualityResult": { + "type": "PairwiseQuestionAnsweringQualityResult", + "id": 23 + }, + "questionAnsweringRelevanceResult": { + "type": "QuestionAnsweringRelevanceResult", + "id": 15 + }, + "questionAnsweringHelpfulnessResult": { + "type": "QuestionAnsweringHelpfulnessResult", + "id": 16 + }, + "questionAnsweringCorrectnessResult": { + "type": "QuestionAnsweringCorrectnessResult", + "id": 17 + }, + "pointwiseMetricResult": { + "type": "PointwiseMetricResult", + "id": 27 + }, + "pairwiseMetricResult": { + "type": "PairwiseMetricResult", + "id": 28 + }, + "toolCallValidResults": { + "type": "ToolCallValidResults", + "id": 18 + }, + "toolNameMatchResults": { + "type": "ToolNameMatchResults", + "id": 19 + }, + "toolParameterKeyMatchResults": { + "type": "ToolParameterKeyMatchResults", + "id": 20 + }, + "toolParameterKvMatchResults": { + "type": "ToolParameterKVMatchResults", + "id": 21 + } + } + }, + "ExactMatchInput": { + "fields": { + "metricSpec": { + "type": "ExactMatchSpec", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "instances": { + "rule": "repeated", + "type": "ExactMatchInstance", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "ExactMatchInstance": { + "oneofs": { + "_prediction": { + "oneof": [ + "prediction" + ] + }, + "_reference": { + "oneof": [ + "reference" + ] + } + }, + "fields": { + "prediction": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "proto3_optional": true + } + }, + "reference": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "proto3_optional": true + } + } + } + }, + "ExactMatchSpec": { + "fields": {} + }, + "ExactMatchResults": { + "fields": { + "exactMatchMetricValues": { + "rule": "repeated", + "type": "ExactMatchMetricValue", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, + "ExactMatchMetricValue": { + "oneofs": { + "_score": { + "oneof": [ + "score" + ] + } + }, + "fields": { + "score": { + "type": "float", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "proto3_optional": true + } + } + } + }, + "BleuInput": { + "fields": { + "metricSpec": { + "type": "BleuSpec", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "instances": { + "rule": "repeated", + "type": "BleuInstance", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "BleuInstance": { + "oneofs": { + "_prediction": { + "oneof": [ + "prediction" + ] + }, + "_reference": { + "oneof": [ + "reference" + ] + } + }, + "fields": { + "prediction": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "proto3_optional": true + } + }, + "reference": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "proto3_optional": true + } + } + } + }, + "BleuSpec": { + "fields": { + "useEffectiveOrder": { + "type": "bool", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "BleuResults": { + "fields": { + "bleuMetricValues": { + "rule": "repeated", + "type": "BleuMetricValue", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, + "BleuMetricValue": { + "oneofs": { + "_score": { + "oneof": [ + "score" + ] + } + }, + "fields": { + "score": { + "type": "float", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "proto3_optional": true + } + } + } + }, + "RougeInput": { + "fields": { + "metricSpec": { + "type": "RougeSpec", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "instances": { + "rule": "repeated", + "type": "RougeInstance", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "RougeInstance": { + "oneofs": { + "_prediction": { + "oneof": [ + "prediction" + ] + }, + "_reference": { + "oneof": [ + "reference" + ] + } + }, + "fields": { + "prediction": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "proto3_optional": true + } + }, + "reference": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "proto3_optional": true + } + } + } + }, + "RougeSpec": { + "fields": { + "rougeType": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "useStemmer": { + "type": "bool", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "splitSummaries": { + "type": "bool", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "RougeResults": { + "fields": { + "rougeMetricValues": { + "rule": "repeated", + "type": "RougeMetricValue", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, + "RougeMetricValue": { + "oneofs": { + "_score": { + "oneof": [ + "score" + ] + } + }, + "fields": { + "score": { + "type": "float", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "proto3_optional": true + } + } + } + }, + "CoherenceInput": { + "fields": { + "metricSpec": { + "type": "CoherenceSpec", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "instance": { + "type": "CoherenceInstance", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "CoherenceInstance": { + "oneofs": { + "_prediction": { + "oneof": [ + "prediction" + ] + } + }, + "fields": { + "prediction": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "proto3_optional": true + } + } + } + }, + "CoherenceSpec": { + "fields": { + "version": { + "type": "int32", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "CoherenceResult": { + "oneofs": { + "_score": { + "oneof": [ + "score" + ] + }, + "_confidence": { + "oneof": [ + "confidence" + ] + } + }, + "fields": { + "score": { + "type": "float", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "proto3_optional": true + } + }, + "explanation": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "confidence": { + "type": "float", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "proto3_optional": true + } + } + } + }, + "FluencyInput": { + "fields": { + "metricSpec": { + "type": "FluencySpec", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "instance": { + "type": "FluencyInstance", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "FluencyInstance": { + "oneofs": { + "_prediction": { + "oneof": [ + "prediction" + ] + } + }, + "fields": { + "prediction": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "proto3_optional": true + } + } + } + }, + "FluencySpec": { + "fields": { + "version": { + "type": "int32", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "FluencyResult": { + "oneofs": { + "_score": { + "oneof": [ + "score" + ] + }, + "_confidence": { + "oneof": [ + "confidence" + ] + } + }, + "fields": { + "score": { + "type": "float", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "proto3_optional": true + } + }, + "explanation": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "confidence": { + "type": "float", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "proto3_optional": true + } + } + } + }, + "SafetyInput": { + "fields": { + "metricSpec": { + "type": "SafetySpec", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "instance": { + "type": "SafetyInstance", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "SafetyInstance": { + "oneofs": { + "_prediction": { + "oneof": [ + "prediction" + ] + } + }, + "fields": { + "prediction": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "proto3_optional": true + } + } + } + }, + "SafetySpec": { + "fields": { + "version": { + "type": "int32", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "SafetyResult": { + "oneofs": { + "_score": { + "oneof": [ + "score" + ] + }, + "_confidence": { + "oneof": [ + "confidence" + ] + } + }, + "fields": { + "score": { + "type": "float", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "proto3_optional": true + } + }, + "explanation": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "confidence": { + "type": "float", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "proto3_optional": true + } + } + } + }, + "GroundednessInput": { + "fields": { + "metricSpec": { + "type": "GroundednessSpec", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "instance": { + "type": "GroundednessInstance", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "GroundednessInstance": { + "oneofs": { + "_prediction": { + "oneof": [ + "prediction" + ] + }, + "_context": { + "oneof": [ + "context" + ] + } + }, + "fields": { + "prediction": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "proto3_optional": true + } + }, + "context": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "proto3_optional": true + } + } + } + }, + "GroundednessSpec": { + "fields": { + "version": { + "type": "int32", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "GroundednessResult": { + "oneofs": { + "_score": { + "oneof": [ + "score" + ] + }, + "_confidence": { + "oneof": [ + "confidence" + ] + } + }, + "fields": { + "score": { + "type": "float", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "proto3_optional": true + } + }, + "explanation": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "confidence": { + "type": "float", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "proto3_optional": true + } + } + } + }, + "FulfillmentInput": { + "fields": { + "metricSpec": { + "type": "FulfillmentSpec", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "instance": { + "type": "FulfillmentInstance", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "FulfillmentInstance": { + "oneofs": { + "_prediction": { + "oneof": [ + "prediction" + ] + }, + "_instruction": { + "oneof": [ + "instruction" + ] + } + }, + "fields": { + "prediction": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "proto3_optional": true + } + }, + "instruction": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "proto3_optional": true + } + } + } + }, + "FulfillmentSpec": { + "fields": { + "version": { + "type": "int32", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "FulfillmentResult": { + "oneofs": { + "_score": { + "oneof": [ + "score" + ] + }, + "_confidence": { + "oneof": [ + "confidence" + ] + } + }, + "fields": { + "score": { + "type": "float", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "proto3_optional": true + } + }, + "explanation": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "confidence": { + "type": "float", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "proto3_optional": true + } + } + } + }, + "SummarizationQualityInput": { + "fields": { + "metricSpec": { + "type": "SummarizationQualitySpec", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "instance": { + "type": "SummarizationQualityInstance", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "SummarizationQualityInstance": { + "oneofs": { + "_prediction": { + "oneof": [ + "prediction" + ] + }, + "_reference": { + "oneof": [ + "reference" + ] + }, + "_context": { + "oneof": [ + "context" + ] + }, + "_instruction": { + "oneof": [ + "instruction" + ] + } + }, + "fields": { + "prediction": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "proto3_optional": true + } + }, + "reference": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true + } + }, + "context": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "proto3_optional": true + } + }, + "instruction": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "proto3_optional": true + } + } + } + }, + "SummarizationQualitySpec": { + "fields": { + "useReference": { + "type": "bool", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "version": { + "type": "int32", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "SummarizationQualityResult": { + "oneofs": { + "_score": { + "oneof": [ + "score" + ] + }, + "_confidence": { + "oneof": [ + "confidence" + ] + } + }, + "fields": { + "score": { + "type": "float", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "proto3_optional": true + } + }, + "explanation": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "confidence": { + "type": "float", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "proto3_optional": true + } + } + } + }, + "PairwiseSummarizationQualityInput": { + "fields": { + "metricSpec": { + "type": "PairwiseSummarizationQualitySpec", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "instance": { + "type": "PairwiseSummarizationQualityInstance", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "PairwiseSummarizationQualityInstance": { + "oneofs": { + "_prediction": { + "oneof": [ + "prediction" + ] + }, + "_baselinePrediction": { + "oneof": [ + "baselinePrediction" + ] + }, + "_reference": { + "oneof": [ + "reference" + ] + }, + "_context": { + "oneof": [ + "context" + ] + }, + "_instruction": { + "oneof": [ + "instruction" + ] + } + }, + "fields": { + "prediction": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "proto3_optional": true + } + }, + "baselinePrediction": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "proto3_optional": true + } + }, + "reference": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true + } + }, + "context": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "proto3_optional": true + } + }, + "instruction": { + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "proto3_optional": true + } + } + } + }, + "PairwiseSummarizationQualitySpec": { + "fields": { + "useReference": { + "type": "bool", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "version": { + "type": "int32", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "PairwiseSummarizationQualityResult": { + "oneofs": { + "_confidence": { + "oneof": [ + "confidence" + ] + } + }, + "fields": { + "pairwiseChoice": { + "type": "PairwiseChoice", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "explanation": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "confidence": { + "type": "float", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "proto3_optional": true + } + } + } + }, + "SummarizationHelpfulnessInput": { + "fields": { + "metricSpec": { + "type": "SummarizationHelpfulnessSpec", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "instance": { + "type": "SummarizationHelpfulnessInstance", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "SummarizationHelpfulnessInstance": { + "oneofs": { + "_prediction": { + "oneof": [ + "prediction" + ] + }, + "_reference": { + "oneof": [ + "reference" + ] + }, + "_context": { + "oneof": [ + "context" + ] + }, + "_instruction": { + "oneof": [ + "instruction" + ] + } + }, + "fields": { + "prediction": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "proto3_optional": true + } + }, + "reference": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true + } + }, + "context": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "proto3_optional": true + } + }, + "instruction": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true + } + } + } + }, + "SummarizationHelpfulnessSpec": { + "fields": { + "useReference": { + "type": "bool", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "version": { + "type": "int32", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "SummarizationHelpfulnessResult": { + "oneofs": { + "_score": { + "oneof": [ + "score" + ] + }, + "_confidence": { + "oneof": [ + "confidence" + ] + } + }, + "fields": { + "score": { + "type": "float", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "proto3_optional": true + } + }, + "explanation": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "confidence": { + "type": "float", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "proto3_optional": true + } + } + } + }, + "SummarizationVerbosityInput": { + "fields": { + "metricSpec": { + "type": "SummarizationVerbositySpec", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "instance": { + "type": "SummarizationVerbosityInstance", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "SummarizationVerbosityInstance": { + "oneofs": { + "_prediction": { + "oneof": [ + "prediction" + ] + }, + "_reference": { + "oneof": [ + "reference" + ] + }, + "_context": { + "oneof": [ + "context" + ] + }, + "_instruction": { + "oneof": [ + "instruction" + ] + } + }, + "fields": { + "prediction": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "proto3_optional": true + } + }, + "reference": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true + } + }, + "context": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "proto3_optional": true + } + }, + "instruction": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true + } + } + } + }, + "SummarizationVerbositySpec": { + "fields": { + "useReference": { + "type": "bool", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "version": { + "type": "int32", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "SummarizationVerbosityResult": { + "oneofs": { + "_score": { + "oneof": [ + "score" + ] + }, + "_confidence": { + "oneof": [ + "confidence" + ] + } + }, + "fields": { + "score": { + "type": "float", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "proto3_optional": true + } + }, + "explanation": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "confidence": { + "type": "float", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "proto3_optional": true + } + } + } + }, + "QuestionAnsweringQualityInput": { + "fields": { + "metricSpec": { + "type": "QuestionAnsweringQualitySpec", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "instance": { + "type": "QuestionAnsweringQualityInstance", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "QuestionAnsweringQualityInstance": { + "oneofs": { + "_prediction": { + "oneof": [ + "prediction" + ] + }, + "_reference": { + "oneof": [ + "reference" + ] + }, + "_context": { + "oneof": [ + "context" + ] + }, + "_instruction": { + "oneof": [ + "instruction" + ] + } + }, + "fields": { + "prediction": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "proto3_optional": true + } + }, + "reference": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true + } + }, + "context": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "proto3_optional": true + } + }, + "instruction": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "proto3_optional": true + } + } + } + }, + "QuestionAnsweringQualitySpec": { + "fields": { + "useReference": { + "type": "bool", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "version": { + "type": "int32", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "QuestionAnsweringQualityResult": { + "oneofs": { + "_score": { + "oneof": [ + "score" + ] + }, + "_confidence": { + "oneof": [ + "confidence" + ] + } + }, + "fields": { + "score": { + "type": "float", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "proto3_optional": true + } + }, + "explanation": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "confidence": { + "type": "float", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "proto3_optional": true + } + } + } + }, + "PairwiseQuestionAnsweringQualityInput": { + "fields": { + "metricSpec": { + "type": "PairwiseQuestionAnsweringQualitySpec", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "instance": { + "type": "PairwiseQuestionAnsweringQualityInstance", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "PairwiseQuestionAnsweringQualityInstance": { + "oneofs": { + "_prediction": { + "oneof": [ + "prediction" + ] + }, + "_baselinePrediction": { + "oneof": [ + "baselinePrediction" + ] + }, + "_reference": { + "oneof": [ + "reference" + ] + }, + "_context": { + "oneof": [ + "context" + ] + }, + "_instruction": { + "oneof": [ + "instruction" + ] + } + }, + "fields": { + "prediction": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "proto3_optional": true + } + }, + "baselinePrediction": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "proto3_optional": true + } + }, + "reference": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true + } + }, + "context": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "proto3_optional": true + } + }, + "instruction": { + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "proto3_optional": true + } + } + } + }, + "PairwiseQuestionAnsweringQualitySpec": { + "fields": { + "useReference": { + "type": "bool", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "version": { + "type": "int32", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "PairwiseQuestionAnsweringQualityResult": { + "oneofs": { + "_confidence": { + "oneof": [ + "confidence" + ] + } + }, + "fields": { + "pairwiseChoice": { + "type": "PairwiseChoice", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "explanation": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "confidence": { + "type": "float", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "proto3_optional": true + } + } + } + }, + "QuestionAnsweringRelevanceInput": { + "fields": { + "metricSpec": { + "type": "QuestionAnsweringRelevanceSpec", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "instance": { + "type": "QuestionAnsweringRelevanceInstance", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "QuestionAnsweringRelevanceInstance": { + "oneofs": { + "_prediction": { + "oneof": [ + "prediction" + ] + }, + "_reference": { + "oneof": [ + "reference" + ] + }, + "_context": { + "oneof": [ + "context" + ] + }, + "_instruction": { + "oneof": [ + "instruction" + ] + } + }, + "fields": { + "prediction": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "proto3_optional": true + } + }, + "reference": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true + } + }, + "context": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true + } + }, + "instruction": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "proto3_optional": true + } + } + } + }, + "QuestionAnsweringRelevanceSpec": { + "fields": { + "useReference": { + "type": "bool", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "version": { + "type": "int32", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "QuestionAnsweringRelevanceResult": { + "oneofs": { + "_score": { + "oneof": [ + "score" + ] + }, + "_confidence": { + "oneof": [ + "confidence" + ] + } + }, + "fields": { + "score": { + "type": "float", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "proto3_optional": true + } + }, + "explanation": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "confidence": { + "type": "float", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "proto3_optional": true + } + } + } + }, + "QuestionAnsweringHelpfulnessInput": { + "fields": { + "metricSpec": { + "type": "QuestionAnsweringHelpfulnessSpec", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "instance": { + "type": "QuestionAnsweringHelpfulnessInstance", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "QuestionAnsweringHelpfulnessInstance": { + "oneofs": { + "_prediction": { + "oneof": [ + "prediction" + ] + }, + "_reference": { + "oneof": [ + "reference" + ] + }, + "_context": { + "oneof": [ + "context" + ] + }, + "_instruction": { + "oneof": [ + "instruction" + ] + } + }, + "fields": { + "prediction": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "proto3_optional": true + } + }, + "reference": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true + } + }, + "context": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true + } + }, + "instruction": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "proto3_optional": true + } + } + } + }, + "QuestionAnsweringHelpfulnessSpec": { + "fields": { + "useReference": { + "type": "bool", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "version": { + "type": "int32", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "QuestionAnsweringHelpfulnessResult": { + "oneofs": { + "_score": { + "oneof": [ + "score" + ] + }, + "_confidence": { + "oneof": [ + "confidence" + ] + } + }, + "fields": { + "score": { + "type": "float", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "proto3_optional": true + } + }, + "explanation": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "confidence": { + "type": "float", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "proto3_optional": true + } + } + } + }, + "QuestionAnsweringCorrectnessInput": { + "fields": { + "metricSpec": { + "type": "QuestionAnsweringCorrectnessSpec", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "instance": { + "type": "QuestionAnsweringCorrectnessInstance", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "QuestionAnsweringCorrectnessInstance": { + "oneofs": { + "_prediction": { + "oneof": [ + "prediction" + ] + }, + "_reference": { + "oneof": [ + "reference" + ] + }, + "_context": { + "oneof": [ + "context" + ] + }, + "_instruction": { + "oneof": [ + "instruction" + ] + } + }, + "fields": { + "prediction": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "proto3_optional": true + } + }, + "reference": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true + } + }, + "context": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true + } + }, + "instruction": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "proto3_optional": true + } + } + } + }, + "QuestionAnsweringCorrectnessSpec": { + "fields": { + "useReference": { + "type": "bool", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "version": { + "type": "int32", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "QuestionAnsweringCorrectnessResult": { + "oneofs": { + "_score": { + "oneof": [ + "score" + ] + }, + "_confidence": { + "oneof": [ + "confidence" + ] + } + }, + "fields": { + "score": { + "type": "float", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "proto3_optional": true + } + }, + "explanation": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "confidence": { + "type": "float", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "proto3_optional": true + } + } + } + }, + "PointwiseMetricInput": { + "fields": { + "metricSpec": { + "type": "PointwiseMetricSpec", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "instance": { + "type": "PointwiseMetricInstance", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "PointwiseMetricInstance": { + "oneofs": { + "instance": { + "oneof": [ + "jsonInstance" + ] + } + }, + "fields": { + "jsonInstance": { + "type": "string", + "id": 1 + } + } + }, + "PointwiseMetricSpec": { + "oneofs": { + "_metricPromptTemplate": { + "oneof": [ + "metricPromptTemplate" + ] + } + }, + "fields": { + "metricPromptTemplate": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "proto3_optional": true + } + } + } + }, + "PointwiseMetricResult": { + "oneofs": { + "_score": { + "oneof": [ + "score" + ] + } + }, + "fields": { + "score": { + "type": "float", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "proto3_optional": true + } + }, + "explanation": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, + "PairwiseMetricInput": { + "fields": { + "metricSpec": { + "type": "PairwiseMetricSpec", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "instance": { + "type": "PairwiseMetricInstance", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "PairwiseMetricInstance": { + "oneofs": { + "instance": { + "oneof": [ + "jsonInstance" + ] + } + }, + "fields": { + "jsonInstance": { + "type": "string", + "id": 1 + } + } + }, + "PairwiseMetricSpec": { + "oneofs": { + "_metricPromptTemplate": { + "oneof": [ + "metricPromptTemplate" + ] + } + }, + "fields": { + "metricPromptTemplate": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "proto3_optional": true + } + } + } + }, + "PairwiseMetricResult": { + "fields": { + "pairwiseChoice": { + "type": "PairwiseChoice", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "explanation": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, + "ToolCallValidInput": { + "fields": { + "metricSpec": { + "type": "ToolCallValidSpec", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "instances": { + "rule": "repeated", + "type": "ToolCallValidInstance", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "ToolCallValidSpec": { + "fields": {} + }, + "ToolCallValidInstance": { + "oneofs": { + "_prediction": { + "oneof": [ + "prediction" + ] + }, + "_reference": { + "oneof": [ + "reference" + ] + } + }, + "fields": { + "prediction": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "proto3_optional": true + } + }, + "reference": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "proto3_optional": true + } + } + } + }, + "ToolCallValidResults": { + "fields": { + "toolCallValidMetricValues": { + "rule": "repeated", + "type": "ToolCallValidMetricValue", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, + "ToolCallValidMetricValue": { + "oneofs": { + "_score": { + "oneof": [ + "score" + ] + } + }, + "fields": { + "score": { + "type": "float", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "proto3_optional": true + } + } + } + }, + "ToolNameMatchInput": { + "fields": { + "metricSpec": { + "type": "ToolNameMatchSpec", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "instances": { + "rule": "repeated", + "type": "ToolNameMatchInstance", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "ToolNameMatchSpec": { + "fields": {} + }, + "ToolNameMatchInstance": { + "oneofs": { + "_prediction": { + "oneof": [ + "prediction" + ] + }, + "_reference": { + "oneof": [ + "reference" + ] + } + }, + "fields": { + "prediction": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "proto3_optional": true + } + }, + "reference": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "proto3_optional": true + } + } + } + }, + "ToolNameMatchResults": { + "fields": { + "toolNameMatchMetricValues": { + "rule": "repeated", + "type": "ToolNameMatchMetricValue", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, + "ToolNameMatchMetricValue": { + "oneofs": { + "_score": { + "oneof": [ + "score" + ] + } + }, + "fields": { + "score": { + "type": "float", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "proto3_optional": true + } + } + } + }, + "ToolParameterKeyMatchInput": { + "fields": { + "metricSpec": { + "type": "ToolParameterKeyMatchSpec", + "id": 1, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.field_behavior)": "REQUIRED" } }, - "labels": { - "keyType": "string", - "type": "string", - "id": 6, + "instances": { + "rule": "repeated", + "type": "ToolParameterKeyMatchInstance", + "id": 2, "options": { - "(google.api.field_behavior)": "OPTIONAL" + "(google.api.field_behavior)": "REQUIRED" } + } + } + }, + "ToolParameterKeyMatchSpec": { + "fields": {} + }, + "ToolParameterKeyMatchInstance": { + "oneofs": { + "_prediction": { + "oneof": [ + "prediction" + ] }, - "etag": { + "_reference": { + "oneof": [ + "reference" + ] + } + }, + "fields": { + "prediction": { "type": "string", - "id": 7, + "id": 1, "options": { - "(google.api.field_behavior)": "OPTIONAL" + "(google.api.field_behavior)": "REQUIRED", + "proto3_optional": true } }, - "monitoringConfig": { - "type": "FeaturestoreMonitoringConfig", - "id": 8, + "reference": { + "type": "string", + "id": 2, "options": { - "(google.api.field_behavior)": "OPTIONAL" + "(google.api.field_behavior)": "REQUIRED", + "proto3_optional": true } - }, - "offlineStorageTtlDays": { - "type": "int32", - "id": 10, + } + } + }, + "ToolParameterKeyMatchResults": { + "fields": { + "toolParameterKeyMatchMetricValues": { + "rule": "repeated", + "type": "ToolParameterKeyMatchMetricValue", + "id": 1, "options": { - "(google.api.field_behavior)": "OPTIONAL" + "(google.api.field_behavior)": "OUTPUT_ONLY" } } } }, - "FeaturestoreMonitoringConfig": { - "fields": { - "snapshotAnalysis": { - "type": "SnapshotAnalysis", - "id": 1 - }, - "importFeaturesAnalysis": { - "type": "ImportFeaturesAnalysis", - "id": 2 - }, - "numericalThresholdConfig": { - "type": "ThresholdConfig", - "id": 3 - }, - "categoricalThresholdConfig": { - "type": "ThresholdConfig", - "id": 4 + "ToolParameterKeyMatchMetricValue": { + "oneofs": { + "_score": { + "oneof": [ + "score" + ] } }, - "nested": { - "SnapshotAnalysis": { - "fields": { - "disabled": { - "type": "bool", - "id": 1 - }, - "monitoringIntervalDays": { - "type": "int32", - "id": 3 - }, - "stalenessDays": { - "type": "int32", - "id": 4 - } - } - }, - "ImportFeaturesAnalysis": { - "fields": { - "state": { - "type": "State", - "id": 1 - }, - "anomalyDetectionBaseline": { - "type": "Baseline", - "id": 2 - } - }, - "nested": { - "State": { - "values": { - "STATE_UNSPECIFIED": 0, - "DEFAULT": 1, - "ENABLED": 2, - "DISABLED": 3 - } - }, - "Baseline": { - "values": { - "BASELINE_UNSPECIFIED": 0, - "LATEST_STATS": 1, - "MOST_RECENT_SNAPSHOT_STATS": 2, - "PREVIOUS_IMPORT_FEATURES_STATS": 3 - } - } - } - }, - "ThresholdConfig": { - "oneofs": { - "threshold": { - "oneof": [ - "value" - ] - } - }, - "fields": { - "value": { - "type": "double", - "id": 1 - } + "fields": { + "score": { + "type": "float", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "proto3_optional": true } } } }, - "EvaluatedAnnotation": { + "ToolParameterKVMatchInput": { "fields": { - "type": { - "type": "EvaluatedAnnotationType", + "metricSpec": { + "type": "ToolParameterKVMatchSpec", "id": 1, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.field_behavior)": "REQUIRED" } }, - "predictions": { + "instances": { "rule": "repeated", - "type": "google.protobuf.Value", + "type": "ToolParameterKVMatchInstance", "id": 2, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.field_behavior)": "REQUIRED" } - }, - "groundTruths": { - "rule": "repeated", - "type": "google.protobuf.Value", - "id": 3, + } + } + }, + "ToolParameterKVMatchSpec": { + "fields": { + "useStrictStringMatch": { + "type": "bool", + "id": 1, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.field_behavior)": "OPTIONAL" } + } + } + }, + "ToolParameterKVMatchInstance": { + "oneofs": { + "_prediction": { + "oneof": [ + "prediction" + ] }, - "dataItemPayload": { - "type": "google.protobuf.Value", - "id": 5, + "_reference": { + "oneof": [ + "reference" + ] + } + }, + "fields": { + "prediction": { + "type": "string", + "id": 1, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.field_behavior)": "REQUIRED", + "proto3_optional": true } }, - "evaluatedDataItemViewId": { + "reference": { "type": "string", - "id": 6, + "id": 2, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "explanations": { - "rule": "repeated", - "type": "EvaluatedAnnotationExplanation", - "id": 8 - }, - "errorAnalysisAnnotations": { - "rule": "repeated", - "type": "ErrorAnalysisAnnotation", - "id": 9 - } - }, - "nested": { - "EvaluatedAnnotationType": { - "values": { - "EVALUATED_ANNOTATION_TYPE_UNSPECIFIED": 0, - "TRUE_POSITIVE": 1, - "FALSE_POSITIVE": 2, - "FALSE_NEGATIVE": 3 + "(google.api.field_behavior)": "REQUIRED", + "proto3_optional": true } } } }, - "EvaluatedAnnotationExplanation": { + "ToolParameterKVMatchResults": { "fields": { - "explanationType": { - "type": "string", - "id": 1 - }, - "explanation": { - "type": "Explanation", - "id": 2 + "toolParameterKvMatchMetricValues": { + "rule": "repeated", + "type": "ToolParameterKVMatchMetricValue", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } } }, - "ErrorAnalysisAnnotation": { - "fields": { - "attributedItems": { - "rule": "repeated", - "type": "AttributedItem", - "id": 1 - }, - "queryType": { - "type": "QueryType", - "id": 2 - }, - "outlierScore": { - "type": "double", - "id": 3 - }, - "outlierThreshold": { - "type": "double", - "id": 4 + "ToolParameterKVMatchMetricValue": { + "oneofs": { + "_score": { + "oneof": [ + "score" + ] } }, - "nested": { - "AttributedItem": { - "fields": { - "annotationResourceName": { - "type": "string", - "id": 1 - }, - "distance": { - "type": "double", - "id": 2 - } - } - }, - "QueryType": { - "values": { - "QUERY_TYPE_UNSPECIFIED": 0, - "ALL_SIMILAR": 1, - "SAME_CLASS_SIMILAR": 2, - "SAME_CLASS_DISSIMILAR": 3 + "fields": { + "score": { + "type": "float", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "proto3_optional": true } } } @@ -7004,6 +10068,26 @@ "options": { "(google.api.field_behavior)": "OPTIONAL" } + }, + "timeSeries": { + "type": "TimeSeries", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + }, + "nested": { + "TimeSeries": { + "fields": { + "timestampColumn": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } } } } @@ -7087,6 +10171,20 @@ "options": { "(google.api.field_behavior)": "OPTIONAL" } + }, + "satisfiesPzs": { + "type": "bool", + "id": 15, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "satisfiesPzi": { + "type": "bool", + "id": 16, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } }, "nested": { @@ -7867,6 +10965,20 @@ "options": { "(google.api.field_behavior)": "OPTIONAL" } + }, + "satisfiesPzs": { + "type": "bool", + "id": 19, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "satisfiesPzi": { + "type": "bool", + "id": 20, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } }, "nested": { @@ -8087,6 +11199,20 @@ "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } + }, + "satisfiesPzs": { + "type": "bool", + "id": 7, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "satisfiesPzi": { + "type": "bool", + "id": 8, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } }, "nested": { @@ -10936,6 +14062,20 @@ "options": { "(google.api.field_behavior)": "OPTIONAL" } + }, + "satisfiesPzs": { + "type": "bool", + "id": 14, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "satisfiesPzi": { + "type": "bool", + "id": 15, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } }, "nested": { @@ -11465,6 +14605,15 @@ "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } + }, + "totalTruncatedExampleCount": { + "type": "int64", + "id": 10 + }, + "truncatedExampleIndices": { + "rule": "repeated", + "type": "int64", + "id": 11 } } }, @@ -11654,6 +14803,20 @@ "encryptionSpec": { "type": "EncryptionSpec", "id": 17 + }, + "satisfiesPzs": { + "type": "bool", + "id": 19, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "satisfiesPzi": { + "type": "bool", + "id": 20, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } } }, @@ -12487,6 +15650,20 @@ "options": { "(google.api.field_behavior)": "IMMUTABLE" } + }, + "satisfiesPzs": { + "type": "bool", + "id": 18, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "satisfiesPzi": { + "type": "bool", + "id": 19, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } }, "nested": { @@ -12764,6 +15941,20 @@ "options": { "(google.api.field_behavior)": "IMMUTABLE" } + }, + "satisfiesPzs": { + "type": "bool", + "id": 17, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "satisfiesPzi": { + "type": "bool", + "id": 18, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } } }, @@ -15369,6 +18560,20 @@ "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } + }, + "satisfiesPzs": { + "type": "bool", + "id": 26, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "satisfiesPzi": { + "type": "bool", + "id": 27, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } }, "nested": { @@ -15812,6 +19017,20 @@ "deprecated": true, "(google.api.field_behavior)": "OPTIONAL" } + }, + "satisfiesPzs": { + "type": "bool", + "id": 15, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "satisfiesPzi": { + "type": "bool", + "id": 16, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } } }, @@ -16102,7 +19321,7 @@ "options": { "(google.api.http).post": "/v1/{endpoint=projects/*/locations/*/endpoints/*}:countTokens", "(google.api.http).body": "*", - "(google.api.http).additional_bindings.post": "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:countTokens", + "(google.api.http).additional_bindings.post": "/v1/{endpoint=publishers/*/models/*}:countTokens", "(google.api.http).additional_bindings.body": "*", "(google.api.method_signature)": "endpoint,instances" }, @@ -16111,10 +19330,20 @@ "(google.api.http)": { "post": "/v1/{endpoint=projects/*/locations/*/endpoints/*}:countTokens", "body": "*", - "additional_bindings": { - "post": "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:countTokens", - "body": "*" - } + "additional_bindings": [ + { + "post": "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:countTokens", + "body": "*" + }, + { + "post": "/v1/{endpoint=endpoints/*}:countTokens", + "body": "*" + }, + { + "post": "/v1/{endpoint=publishers/*/models/*}:countTokens", + "body": "*" + } + ] } }, { @@ -16128,7 +19357,7 @@ "options": { "(google.api.http).post": "/v1/{endpoint=projects/*/locations/*/endpoints/*}:computeTokens", "(google.api.http).body": "*", - "(google.api.http).additional_bindings.post": "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:computeTokens", + "(google.api.http).additional_bindings.post": "/v1/{endpoint=publishers/*/models/*}:computeTokens", "(google.api.http).additional_bindings.body": "*", "(google.api.method_signature)": "endpoint,instances" }, @@ -16137,10 +19366,20 @@ "(google.api.http)": { "post": "/v1/{endpoint=projects/*/locations/*/endpoints/*}:computeTokens", "body": "*", - "additional_bindings": { - "post": "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:computeTokens", - "body": "*" - } + "additional_bindings": [ + { + "post": "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:computeTokens", + "body": "*" + }, + { + "post": "/v1/{endpoint=endpoints/*}:computeTokens", + "body": "*" + }, + { + "post": "/v1/{endpoint=publishers/*/models/*}:computeTokens", + "body": "*" + } + ] } }, { @@ -16405,7 +19644,7 @@ "options": { "(google.api.http).post": "/v1/{model=projects/*/locations/*/endpoints/*}:generateContent", "(google.api.http).body": "*", - "(google.api.http).additional_bindings.post": "/v1/{model=projects/*/locations/*/publishers/*/models/*}:generateContent", + "(google.api.http).additional_bindings.post": "/v1/{model=publishers/*/models/*}:generateContent", "(google.api.http).additional_bindings.body": "*", "(google.api.method_signature)": "model,contents" }, @@ -16414,10 +19653,20 @@ "(google.api.http)": { "post": "/v1/{model=projects/*/locations/*/endpoints/*}:generateContent", "body": "*", - "additional_bindings": { - "post": "/v1/{model=projects/*/locations/*/publishers/*/models/*}:generateContent", - "body": "*" - } + "additional_bindings": [ + { + "post": "/v1/{model=projects/*/locations/*/publishers/*/models/*}:generateContent", + "body": "*" + }, + { + "post": "/v1/{model=endpoints/*}:generateContent", + "body": "*" + }, + { + "post": "/v1/{model=publishers/*/models/*}:generateContent", + "body": "*" + } + ] } }, { @@ -16432,7 +19681,7 @@ "options": { "(google.api.http).post": "/v1/{model=projects/*/locations/*/endpoints/*}:streamGenerateContent", "(google.api.http).body": "*", - "(google.api.http).additional_bindings.post": "/v1/{model=projects/*/locations/*/publishers/*/models/*}:streamGenerateContent", + "(google.api.http).additional_bindings.post": "/v1/{model=publishers/*/models/*}:streamGenerateContent", "(google.api.http).additional_bindings.body": "*", "(google.api.method_signature)": "model,contents" }, @@ -16441,10 +19690,20 @@ "(google.api.http)": { "post": "/v1/{model=projects/*/locations/*/endpoints/*}:streamGenerateContent", "body": "*", - "additional_bindings": { - "post": "/v1/{model=projects/*/locations/*/publishers/*/models/*}:streamGenerateContent", - "body": "*" - } + "additional_bindings": [ + { + "post": "/v1/{model=projects/*/locations/*/publishers/*/models/*}:streamGenerateContent", + "body": "*" + }, + { + "post": "/v1/{model=endpoints/*}:streamGenerateContent", + "body": "*" + }, + { + "post": "/v1/{model=publishers/*/models/*}:streamGenerateContent", + "body": "*" + } + ] } }, { @@ -19589,6 +22848,13 @@ "options": { "(google.api.field_behavior)": "OPTIONAL" } + }, + "huggingFaceToken": { + "type": "string", + "id": 6, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } }, @@ -20032,6 +23298,13 @@ "options": { "(google.api.field_behavior)": "OPTIONAL" } + }, + "sampleRequest": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } } @@ -21229,6 +24502,10 @@ "keyType": "string", "type": "string", "id": 19 + }, + "encryptionSpec": { + "type": "EncryptionSpec", + "id": 22 } }, "nested": { @@ -30144,6 +33421,13 @@ "options": { "(google.api.field_behavior)": "IMMUTABLE" } + }, + "reservationAffinity": { + "type": "ReservationAffinity", + "id": 5, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } }, @@ -30177,6 +33461,13 @@ "options": { "(google.api.field_behavior)": "IMMUTABLE" } + }, + "spot": { + "type": "bool", + "id": 5, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } }, @@ -30306,6 +33597,43 @@ } } }, + "ReservationAffinity": { + "fields": { + "reservationAffinityType": { + "type": "Type", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "key": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "values": { + "rule": "repeated", + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "(google.api.resource_reference).type": "compute.googleapis.com/Reservation" + } + } + }, + "nested": { + "Type": { + "values": { + "TYPE_UNSPECIFIED": 0, + "NO_RESERVATION": 1, + "ANY_RESERVATION": 2, + "SPECIFIC_RESERVATION": 3 + } + } + } + }, "ManualBatchTuningParameters": { "fields": { "batchSize": { @@ -30469,6 +33797,20 @@ "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } + }, + "satisfiesPzs": { + "type": "bool", + "id": 26, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "satisfiesPzi": { + "type": "bool", + "id": 27, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } }, "nested": { @@ -31699,10 +35041,20 @@ "frequencyPenalty" ] }, + "_seed": { + "oneof": [ + "seed" + ] + }, "_responseSchema": { "oneof": [ "responseSchema" ] + }, + "_routingConfig": { + "oneof": [ + "routingConfig" + ] } }, "fields": { @@ -31770,6 +35122,14 @@ "proto3_optional": true } }, + "seed": { + "type": "int32", + "id": 12, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true + } + }, "responseMimeType": { "type": "string", "id": 13, @@ -31784,6 +35144,84 @@ "(google.api.field_behavior)": "OPTIONAL", "proto3_optional": true } + }, + "routingConfig": { + "type": "RoutingConfig", + "id": 17, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true + } + } + }, + "nested": { + "RoutingConfig": { + "oneofs": { + "routingConfig": { + "oneof": [ + "autoMode", + "manualMode" + ] + } + }, + "fields": { + "autoMode": { + "type": "AutoRoutingMode", + "id": 1 + }, + "manualMode": { + "type": "ManualRoutingMode", + "id": 2 + } + }, + "nested": { + "AutoRoutingMode": { + "oneofs": { + "_modelRoutingPreference": { + "oneof": [ + "modelRoutingPreference" + ] + } + }, + "fields": { + "modelRoutingPreference": { + "type": "ModelRoutingPreference", + "id": 1, + "options": { + "proto3_optional": true + } + } + }, + "nested": { + "ModelRoutingPreference": { + "values": { + "UNKNOWN": 0, + "PRIORITIZE_QUALITY": 1, + "BALANCED": 2, + "PRIORITIZE_COST": 3 + } + } + } + }, + "ManualRoutingMode": { + "oneofs": { + "_modelName": { + "oneof": [ + "modelName" + ] + } + }, + "fields": { + "modelName": { + "type": "string", + "id": 1, + "options": { + "proto3_optional": true + } + } + } + } + } } } }, @@ -31977,6 +35415,13 @@ "(google.api.field_behavior)": "OUTPUT_ONLY" } }, + "avgLogprobs": { + "type": "double", + "id": 9, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, "finishReason": { "type": "FinishReason", "id": 3, @@ -32174,90 +35619,6 @@ } } }, - "GroundingAttribution": { - "oneofs": { - "reference": { - "oneof": [ - "web", - "retrievedContext" - ] - }, - "_confidenceScore": { - "oneof": [ - "confidenceScore" - ] - } - }, - "fields": { - "web": { - "type": "Web", - "id": 3, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - }, - "retrievedContext": { - "type": "RetrievedContext", - "id": 4, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - }, - "segment": { - "type": "Segment", - "id": 1, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "confidenceScore": { - "type": "float", - "id": 2, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY", - "proto3_optional": true - } - } - }, - "nested": { - "Web": { - "fields": { - "uri": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "title": { - "type": "string", - "id": 2, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - } - } - }, - "RetrievedContext": { - "fields": { - "uri": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "title": { - "type": "string", - "id": 2, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - } - } - } - } - }, "GroundingMetadata": { "oneofs": { "_searchEntryPoint": { @@ -32291,14 +35652,6 @@ "(google.api.field_behavior)": "OPTIONAL" } }, - "groundingAttributions": { - "rule": "repeated", - "type": "GroundingAttribution", - "id": 2, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - }, "groundingChunks": { "rule": "repeated", "type": "GroundingChunk", @@ -32762,15 +36115,7 @@ } }, "GoogleSearchRetrieval": { - "fields": { - "disableAttribution": { - "type": "bool", - "id": 1, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - } - } + "fields": {} }, "ToolConfig": { "fields": { @@ -32964,6 +36309,20 @@ "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } + }, + "satisfiesPzs": { + "type": "bool", + "id": 18, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "satisfiesPzi": { + "type": "bool", + "id": 19, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } } }, @@ -33201,10 +36560,20 @@ }, "nested": { "Strategy": { + "valuesOptions": { + "ON_DEMAND": { + "deprecated": true + }, + "LOW_COST": { + "deprecated": true + } + }, "values": { "STRATEGY_UNSPECIFIED": 0, "ON_DEMAND": 1, - "LOW_COST": 2 + "LOW_COST": 2, + "STANDARD": 3, + "SPOT": 4 } } } @@ -33737,6 +37106,8 @@ "options": { "(google.api.http).post": "/v1beta1/{parent=projects/*/locations/*}/datasets", "(google.api.http).body": "dataset", + "(google.api.http).additional_bindings.post": "/v1beta1/datasets", + "(google.api.http).additional_bindings.body": "dataset", "(google.api.method_signature)": "parent,dataset", "(google.longrunning.operation_info).response_type": "Dataset", "(google.longrunning.operation_info).metadata_type": "CreateDatasetOperationMetadata" @@ -33745,7 +37116,11 @@ { "(google.api.http)": { "post": "/v1beta1/{parent=projects/*/locations/*}/datasets", - "body": "dataset" + "body": "dataset", + "additional_bindings": { + "post": "/v1beta1/datasets", + "body": "dataset" + } } }, { @@ -33764,12 +37139,16 @@ "responseType": "Dataset", "options": { "(google.api.http).get": "/v1beta1/{name=projects/*/locations/*/datasets/*}", + "(google.api.http).additional_bindings.get": "/v1beta1/{name=datasets/*}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v1beta1/{name=projects/*/locations/*/datasets/*}" + "get": "/v1beta1/{name=projects/*/locations/*/datasets/*}", + "additional_bindings": { + "get": "/v1beta1/{name=datasets/*}" + } } }, { @@ -33783,13 +37162,19 @@ "options": { "(google.api.http).patch": "/v1beta1/{dataset.name=projects/*/locations/*/datasets/*}", "(google.api.http).body": "dataset", + "(google.api.http).additional_bindings.patch": "/v1beta1/{dataset.name=datasets/*}", + "(google.api.http).additional_bindings.body": "dataset", "(google.api.method_signature)": "dataset,update_mask" }, "parsedOptions": [ { "(google.api.http)": { "patch": "/v1beta1/{dataset.name=projects/*/locations/*/datasets/*}", - "body": "dataset" + "body": "dataset", + "additional_bindings": { + "patch": "/v1beta1/{dataset.name=datasets/*}", + "body": "dataset" + } } }, { @@ -33802,12 +37187,16 @@ "responseType": "ListDatasetsResponse", "options": { "(google.api.http).get": "/v1beta1/{parent=projects/*/locations/*}/datasets", + "(google.api.http).additional_bindings.get": "/v1beta1/datasets", "(google.api.method_signature)": "parent" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v1beta1/{parent=projects/*/locations/*}/datasets" + "get": "/v1beta1/{parent=projects/*/locations/*}/datasets", + "additional_bindings": { + "get": "/v1beta1/datasets" + } } }, { @@ -33820,6 +37209,7 @@ "responseType": "google.longrunning.Operation", "options": { "(google.api.http).delete": "/v1beta1/{name=projects/*/locations/*/datasets/*}", + "(google.api.http).additional_bindings.delete": "/v1beta1/{name=datasets/*}", "(google.api.method_signature)": "name", "(google.longrunning.operation_info).response_type": "google.protobuf.Empty", "(google.longrunning.operation_info).metadata_type": "DeleteOperationMetadata" @@ -33827,7 +37217,10 @@ "parsedOptions": [ { "(google.api.http)": { - "delete": "/v1beta1/{name=projects/*/locations/*/datasets/*}" + "delete": "/v1beta1/{name=projects/*/locations/*/datasets/*}", + "additional_bindings": { + "delete": "/v1beta1/{name=datasets/*}" + } } }, { @@ -33903,6 +37296,8 @@ "options": { "(google.api.http).post": "/v1beta1/{parent=projects/*/locations/*/datasets/*}/datasetVersions", "(google.api.http).body": "dataset_version", + "(google.api.http).additional_bindings.post": "/v1beta1/{parent=datasets/*}/datasetVersions", + "(google.api.http).additional_bindings.body": "dataset_version", "(google.api.method_signature)": "parent,dataset_version", "(google.longrunning.operation_info).response_type": "DatasetVersion", "(google.longrunning.operation_info).metadata_type": "CreateDatasetVersionOperationMetadata" @@ -33911,7 +37306,11 @@ { "(google.api.http)": { "post": "/v1beta1/{parent=projects/*/locations/*/datasets/*}/datasetVersions", - "body": "dataset_version" + "body": "dataset_version", + "additional_bindings": { + "post": "/v1beta1/{parent=datasets/*}/datasetVersions", + "body": "dataset_version" + } } }, { @@ -33931,13 +37330,19 @@ "options": { "(google.api.http).patch": "/v1beta1/{dataset_version.name=projects/*/locations/*/datasets/*/datasetVersions/*}", "(google.api.http).body": "dataset_version", + "(google.api.http).additional_bindings.patch": "/v1beta1/{dataset_version.name=datasets/*/datasetVersions/*}", + "(google.api.http).additional_bindings.body": "dataset_version", "(google.api.method_signature)": "dataset_version,update_mask" }, "parsedOptions": [ { "(google.api.http)": { "patch": "/v1beta1/{dataset_version.name=projects/*/locations/*/datasets/*/datasetVersions/*}", - "body": "dataset_version" + "body": "dataset_version", + "additional_bindings": { + "patch": "/v1beta1/{dataset_version.name=datasets/*/datasetVersions/*}", + "body": "dataset_version" + } } }, { @@ -33950,6 +37355,7 @@ "responseType": "google.longrunning.Operation", "options": { "(google.api.http).delete": "/v1beta1/{name=projects/*/locations/*/datasets/*/datasetVersions/*}", + "(google.api.http).additional_bindings.delete": "/v1beta1/{name=datasets/*/datasetVersions/*}", "(google.api.method_signature)": "name", "(google.longrunning.operation_info).response_type": "google.protobuf.Empty", "(google.longrunning.operation_info).metadata_type": "DeleteOperationMetadata" @@ -33957,7 +37363,10 @@ "parsedOptions": [ { "(google.api.http)": { - "delete": "/v1beta1/{name=projects/*/locations/*/datasets/*/datasetVersions/*}" + "delete": "/v1beta1/{name=projects/*/locations/*/datasets/*/datasetVersions/*}", + "additional_bindings": { + "delete": "/v1beta1/{name=datasets/*/datasetVersions/*}" + } } }, { @@ -33976,12 +37385,16 @@ "responseType": "DatasetVersion", "options": { "(google.api.http).get": "/v1beta1/{name=projects/*/locations/*/datasets/*/datasetVersions/*}", + "(google.api.http).additional_bindings.get": "/v1beta1/{name=datasets/*/datasetVersions/*}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v1beta1/{name=projects/*/locations/*/datasets/*/datasetVersions/*}" + "get": "/v1beta1/{name=projects/*/locations/*/datasets/*/datasetVersions/*}", + "additional_bindings": { + "get": "/v1beta1/{name=datasets/*/datasetVersions/*}" + } } }, { @@ -33994,12 +37407,16 @@ "responseType": "ListDatasetVersionsResponse", "options": { "(google.api.http).get": "/v1beta1/{parent=projects/*/locations/*/datasets/*}/datasetVersions", + "(google.api.http).additional_bindings.get": "/v1beta1/{parent=datasets/*}/datasetVersions", "(google.api.method_signature)": "parent" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v1beta1/{parent=projects/*/locations/*/datasets/*}/datasetVersions" + "get": "/v1beta1/{parent=projects/*/locations/*/datasets/*}/datasetVersions", + "additional_bindings": { + "get": "/v1beta1/{parent=datasets/*}/datasetVersions" + } } }, { @@ -34012,6 +37429,7 @@ "responseType": "google.longrunning.Operation", "options": { "(google.api.http).get": "/v1beta1/{name=projects/*/locations/*/datasets/*/datasetVersions/*}:restore", + "(google.api.http).additional_bindings.get": "/v1beta1/{name=datasets/*/datasetVersions/*}:restore", "(google.api.method_signature)": "name", "(google.longrunning.operation_info).response_type": "DatasetVersion", "(google.longrunning.operation_info).metadata_type": "RestoreDatasetVersionOperationMetadata" @@ -34019,7 +37437,10 @@ "parsedOptions": [ { "(google.api.http)": { - "get": "/v1beta1/{name=projects/*/locations/*/datasets/*/datasetVersions/*}:restore" + "get": "/v1beta1/{name=projects/*/locations/*/datasets/*/datasetVersions/*}:restore", + "additional_bindings": { + "get": "/v1beta1/{name=datasets/*/datasetVersions/*}:restore" + } } }, { @@ -35548,6 +38969,13 @@ "rule": "repeated", "type": "string", "id": 2 + }, + "serviceAttachment": { + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } } }, @@ -36092,6 +39520,20 @@ "options": { "(google.api.field_behavior)": "OPTIONAL" } + }, + "satisfiesPzs": { + "type": "bool", + "id": 11, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "satisfiesPzi": { + "type": "bool", + "id": 12, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } } }, @@ -36354,6 +39796,8 @@ "questionAnsweringRelevanceInput", "questionAnsweringHelpfulnessInput", "questionAnsweringCorrectnessInput", + "pointwiseMetricInput", + "pairwiseMetricInput", "toolCallValidInput", "toolNameMatchInput", "toolParameterKeyMatchInput", @@ -36430,6 +39874,14 @@ "type": "QuestionAnsweringCorrectnessInput", "id": 18 }, + "pointwiseMetricInput": { + "type": "PointwiseMetricInput", + "id": 28 + }, + "pairwiseMetricInput": { + "type": "PairwiseMetricInput", + "id": 29 + }, "toolCallValidInput": { "type": "ToolCallValidInput", "id": 19 @@ -36477,6 +39929,8 @@ "questionAnsweringRelevanceResult", "questionAnsweringHelpfulnessResult", "questionAnsweringCorrectnessResult", + "pointwiseMetricResult", + "pairwiseMetricResult", "toolCallValidResults", "toolNameMatchResults", "toolParameterKeyMatchResults", @@ -36553,6 +40007,14 @@ "type": "QuestionAnsweringCorrectnessResult", "id": 17 }, + "pointwiseMetricResult": { + "type": "PointwiseMetricResult", + "id": 27 + }, + "pairwiseMetricResult": { + "type": "PairwiseMetricResult", + "id": 28 + }, "toolCallValidResults": { "type": "ToolCallValidResults", "id": 18 @@ -37387,13 +40849,286 @@ "type": "string", "id": 4, "options": { - "(google.api.field_behavior)": "REQUIRED", + "(google.api.field_behavior)": "REQUIRED", + "proto3_optional": true + } + } + } + }, + "SummarizationQualitySpec": { + "fields": { + "useReference": { + "type": "bool", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "version": { + "type": "int32", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "SummarizationQualityResult": { + "oneofs": { + "_score": { + "oneof": [ + "score" + ] + }, + "_confidence": { + "oneof": [ + "confidence" + ] + } + }, + "fields": { + "score": { + "type": "float", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "proto3_optional": true + } + }, + "explanation": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "confidence": { + "type": "float", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "proto3_optional": true + } + } + } + }, + "PairwiseSummarizationQualityInput": { + "fields": { + "metricSpec": { + "type": "PairwiseSummarizationQualitySpec", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "instance": { + "type": "PairwiseSummarizationQualityInstance", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "PairwiseSummarizationQualityInstance": { + "oneofs": { + "_prediction": { + "oneof": [ + "prediction" + ] + }, + "_baselinePrediction": { + "oneof": [ + "baselinePrediction" + ] + }, + "_reference": { + "oneof": [ + "reference" + ] + }, + "_context": { + "oneof": [ + "context" + ] + }, + "_instruction": { + "oneof": [ + "instruction" + ] + } + }, + "fields": { + "prediction": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "proto3_optional": true + } + }, + "baselinePrediction": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "proto3_optional": true + } + }, + "reference": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true + } + }, + "context": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "proto3_optional": true + } + }, + "instruction": { + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "proto3_optional": true + } + } + } + }, + "PairwiseSummarizationQualitySpec": { + "fields": { + "useReference": { + "type": "bool", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "version": { + "type": "int32", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "PairwiseSummarizationQualityResult": { + "oneofs": { + "_confidence": { + "oneof": [ + "confidence" + ] + } + }, + "fields": { + "pairwiseChoice": { + "type": "PairwiseChoice", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "explanation": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "confidence": { + "type": "float", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "proto3_optional": true + } + } + } + }, + "SummarizationHelpfulnessInput": { + "fields": { + "metricSpec": { + "type": "SummarizationHelpfulnessSpec", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "instance": { + "type": "SummarizationHelpfulnessInstance", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "SummarizationHelpfulnessInstance": { + "oneofs": { + "_prediction": { + "oneof": [ + "prediction" + ] + }, + "_reference": { + "oneof": [ + "reference" + ] + }, + "_context": { + "oneof": [ + "context" + ] + }, + "_instruction": { + "oneof": [ + "instruction" + ] + } + }, + "fields": { + "prediction": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "proto3_optional": true + } + }, + "reference": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "proto3_optional": true + } + }, + "context": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "proto3_optional": true + } + }, + "instruction": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL", "proto3_optional": true } } } }, - "SummarizationQualitySpec": { + "SummarizationHelpfulnessSpec": { "fields": { "useReference": { "type": "bool", @@ -37411,7 +41146,7 @@ } } }, - "SummarizationQualityResult": { + "SummarizationHelpfulnessResult": { "oneofs": { "_score": { "oneof": [ @@ -37450,157 +41185,17 @@ } } }, - "PairwiseSummarizationQualityInput": { - "fields": { - "metricSpec": { - "type": "PairwiseSummarizationQualitySpec", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "instance": { - "type": "PairwiseSummarizationQualityInstance", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, - "PairwiseSummarizationQualityInstance": { - "oneofs": { - "_prediction": { - "oneof": [ - "prediction" - ] - }, - "_baselinePrediction": { - "oneof": [ - "baselinePrediction" - ] - }, - "_reference": { - "oneof": [ - "reference" - ] - }, - "_context": { - "oneof": [ - "context" - ] - }, - "_instruction": { - "oneof": [ - "instruction" - ] - } - }, - "fields": { - "prediction": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "proto3_optional": true - } - }, - "baselinePrediction": { - "type": "string", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "proto3_optional": true - } - }, - "reference": { - "type": "string", - "id": 3, - "options": { - "(google.api.field_behavior)": "OPTIONAL", - "proto3_optional": true - } - }, - "context": { - "type": "string", - "id": 4, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "proto3_optional": true - } - }, - "instruction": { - "type": "string", - "id": 5, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "proto3_optional": true - } - } - } - }, - "PairwiseSummarizationQualitySpec": { - "fields": { - "useReference": { - "type": "bool", - "id": 1, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - }, - "version": { - "type": "int32", - "id": 2, - "options": { - "(google.api.field_behavior)": "OPTIONAL" - } - } - } - }, - "PairwiseSummarizationQualityResult": { - "oneofs": { - "_confidence": { - "oneof": [ - "confidence" - ] - } - }, - "fields": { - "pairwiseChoice": { - "type": "PairwiseChoice", - "id": 1, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "explanation": { - "type": "string", - "id": 2, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - }, - "confidence": { - "type": "float", - "id": 3, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY", - "proto3_optional": true - } - } - } - }, - "SummarizationHelpfulnessInput": { + "SummarizationVerbosityInput": { "fields": { "metricSpec": { - "type": "SummarizationHelpfulnessSpec", + "type": "SummarizationVerbositySpec", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "instance": { - "type": "SummarizationHelpfulnessInstance", + "type": "SummarizationVerbosityInstance", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" @@ -37608,7 +41203,7 @@ } } }, - "SummarizationHelpfulnessInstance": { + "SummarizationVerbosityInstance": { "oneofs": { "_prediction": { "oneof": [ @@ -37666,7 +41261,7 @@ } } }, - "SummarizationHelpfulnessSpec": { + "SummarizationVerbositySpec": { "fields": { "useReference": { "type": "bool", @@ -37684,7 +41279,7 @@ } } }, - "SummarizationHelpfulnessResult": { + "SummarizationVerbosityResult": { "oneofs": { "_score": { "oneof": [ @@ -37723,17 +41318,17 @@ } } }, - "SummarizationVerbosityInput": { + "QuestionAnsweringQualityInput": { "fields": { "metricSpec": { - "type": "SummarizationVerbositySpec", + "type": "QuestionAnsweringQualitySpec", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "instance": { - "type": "SummarizationVerbosityInstance", + "type": "QuestionAnsweringQualityInstance", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" @@ -37741,7 +41336,7 @@ } } }, - "SummarizationVerbosityInstance": { + "QuestionAnsweringQualityInstance": { "oneofs": { "_prediction": { "oneof": [ @@ -37793,13 +41388,13 @@ "type": "string", "id": 4, "options": { - "(google.api.field_behavior)": "OPTIONAL", + "(google.api.field_behavior)": "REQUIRED", "proto3_optional": true } } } }, - "SummarizationVerbositySpec": { + "QuestionAnsweringQualitySpec": { "fields": { "useReference": { "type": "bool", @@ -37817,7 +41412,7 @@ } } }, - "SummarizationVerbosityResult": { + "QuestionAnsweringQualityResult": { "oneofs": { "_score": { "oneof": [ @@ -37856,17 +41451,17 @@ } } }, - "QuestionAnsweringQualityInput": { + "PairwiseQuestionAnsweringQualityInput": { "fields": { "metricSpec": { - "type": "QuestionAnsweringQualitySpec", + "type": "PairwiseQuestionAnsweringQualitySpec", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "instance": { - "type": "QuestionAnsweringQualityInstance", + "type": "PairwiseQuestionAnsweringQualityInstance", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" @@ -37874,13 +41469,18 @@ } } }, - "QuestionAnsweringQualityInstance": { + "PairwiseQuestionAnsweringQualityInstance": { "oneofs": { "_prediction": { "oneof": [ "prediction" ] }, + "_baselinePrediction": { + "oneof": [ + "baselinePrediction" + ] + }, "_reference": { "oneof": [ "reference" @@ -37906,9 +41506,17 @@ "proto3_optional": true } }, - "reference": { + "baselinePrediction": { "type": "string", "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "proto3_optional": true + } + }, + "reference": { + "type": "string", + "id": 3, "options": { "(google.api.field_behavior)": "OPTIONAL", "proto3_optional": true @@ -37916,7 +41524,7 @@ }, "context": { "type": "string", - "id": 3, + "id": 4, "options": { "(google.api.field_behavior)": "REQUIRED", "proto3_optional": true @@ -37924,7 +41532,7 @@ }, "instruction": { "type": "string", - "id": 4, + "id": 5, "options": { "(google.api.field_behavior)": "REQUIRED", "proto3_optional": true @@ -37932,7 +41540,7 @@ } } }, - "QuestionAnsweringQualitySpec": { + "PairwiseQuestionAnsweringQualitySpec": { "fields": { "useReference": { "type": "bool", @@ -37950,13 +41558,8 @@ } } }, - "QuestionAnsweringQualityResult": { + "PairwiseQuestionAnsweringQualityResult": { "oneofs": { - "_score": { - "oneof": [ - "score" - ] - }, "_confidence": { "oneof": [ "confidence" @@ -37964,12 +41567,11 @@ } }, "fields": { - "score": { - "type": "float", + "pairwiseChoice": { + "type": "PairwiseChoice", "id": 1, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY", - "proto3_optional": true + "(google.api.field_behavior)": "OUTPUT_ONLY" } }, "explanation": { @@ -37989,17 +41591,17 @@ } } }, - "PairwiseQuestionAnsweringQualityInput": { + "QuestionAnsweringRelevanceInput": { "fields": { "metricSpec": { - "type": "PairwiseQuestionAnsweringQualitySpec", + "type": "QuestionAnsweringRelevanceSpec", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "instance": { - "type": "PairwiseQuestionAnsweringQualityInstance", + "type": "QuestionAnsweringRelevanceInstance", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" @@ -38007,18 +41609,13 @@ } } }, - "PairwiseQuestionAnsweringQualityInstance": { + "QuestionAnsweringRelevanceInstance": { "oneofs": { "_prediction": { "oneof": [ "prediction" ] }, - "_baselinePrediction": { - "oneof": [ - "baselinePrediction" - ] - }, "_reference": { "oneof": [ "reference" @@ -38044,17 +41641,9 @@ "proto3_optional": true } }, - "baselinePrediction": { - "type": "string", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "proto3_optional": true - } - }, "reference": { "type": "string", - "id": 3, + "id": 2, "options": { "(google.api.field_behavior)": "OPTIONAL", "proto3_optional": true @@ -38062,15 +41651,15 @@ }, "context": { "type": "string", - "id": 4, + "id": 3, "options": { - "(google.api.field_behavior)": "REQUIRED", + "(google.api.field_behavior)": "OPTIONAL", "proto3_optional": true } }, "instruction": { "type": "string", - "id": 5, + "id": 4, "options": { "(google.api.field_behavior)": "REQUIRED", "proto3_optional": true @@ -38078,7 +41667,7 @@ } } }, - "PairwiseQuestionAnsweringQualitySpec": { + "QuestionAnsweringRelevanceSpec": { "fields": { "useReference": { "type": "bool", @@ -38096,8 +41685,13 @@ } } }, - "PairwiseQuestionAnsweringQualityResult": { + "QuestionAnsweringRelevanceResult": { "oneofs": { + "_score": { + "oneof": [ + "score" + ] + }, "_confidence": { "oneof": [ "confidence" @@ -38105,11 +41699,12 @@ } }, "fields": { - "pairwiseChoice": { - "type": "PairwiseChoice", + "score": { + "type": "float", "id": 1, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" + "(google.api.field_behavior)": "OUTPUT_ONLY", + "proto3_optional": true } }, "explanation": { @@ -38129,17 +41724,17 @@ } } }, - "QuestionAnsweringRelevanceInput": { + "QuestionAnsweringHelpfulnessInput": { "fields": { "metricSpec": { - "type": "QuestionAnsweringRelevanceSpec", + "type": "QuestionAnsweringHelpfulnessSpec", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "instance": { - "type": "QuestionAnsweringRelevanceInstance", + "type": "QuestionAnsweringHelpfulnessInstance", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" @@ -38147,7 +41742,7 @@ } } }, - "QuestionAnsweringRelevanceInstance": { + "QuestionAnsweringHelpfulnessInstance": { "oneofs": { "_prediction": { "oneof": [ @@ -38205,7 +41800,7 @@ } } }, - "QuestionAnsweringRelevanceSpec": { + "QuestionAnsweringHelpfulnessSpec": { "fields": { "useReference": { "type": "bool", @@ -38223,7 +41818,7 @@ } } }, - "QuestionAnsweringRelevanceResult": { + "QuestionAnsweringHelpfulnessResult": { "oneofs": { "_score": { "oneof": [ @@ -38262,17 +41857,17 @@ } } }, - "QuestionAnsweringHelpfulnessInput": { + "QuestionAnsweringCorrectnessInput": { "fields": { "metricSpec": { - "type": "QuestionAnsweringHelpfulnessSpec", + "type": "QuestionAnsweringCorrectnessSpec", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "instance": { - "type": "QuestionAnsweringHelpfulnessInstance", + "type": "QuestionAnsweringCorrectnessInstance", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" @@ -38280,7 +41875,7 @@ } } }, - "QuestionAnsweringHelpfulnessInstance": { + "QuestionAnsweringCorrectnessInstance": { "oneofs": { "_prediction": { "oneof": [ @@ -38338,7 +41933,7 @@ } } }, - "QuestionAnsweringHelpfulnessSpec": { + "QuestionAnsweringCorrectnessSpec": { "fields": { "useReference": { "type": "bool", @@ -38356,7 +41951,7 @@ } } }, - "QuestionAnsweringHelpfulnessResult": { + "QuestionAnsweringCorrectnessResult": { "oneofs": { "_score": { "oneof": [ @@ -38395,17 +41990,17 @@ } } }, - "QuestionAnsweringCorrectnessInput": { + "PointwiseMetricInput": { "fields": { "metricSpec": { - "type": "QuestionAnsweringCorrectnessSpec", + "type": "PointwiseMetricSpec", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "instance": { - "type": "QuestionAnsweringCorrectnessInstance", + "type": "PointwiseMetricInstance", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" @@ -38413,103 +42008,126 @@ } } }, - "QuestionAnsweringCorrectnessInstance": { + "PointwiseMetricInstance": { "oneofs": { - "_prediction": { - "oneof": [ - "prediction" - ] - }, - "_reference": { - "oneof": [ - "reference" - ] - }, - "_context": { + "instance": { "oneof": [ - "context" + "jsonInstance" ] - }, - "_instruction": { + } + }, + "fields": { + "jsonInstance": { + "type": "string", + "id": 1 + } + } + }, + "PointwiseMetricSpec": { + "oneofs": { + "_metricPromptTemplate": { "oneof": [ - "instruction" + "metricPromptTemplate" ] } }, "fields": { - "prediction": { + "metricPromptTemplate": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", "proto3_optional": true } - }, - "reference": { - "type": "string", - "id": 2, - "options": { - "(google.api.field_behavior)": "OPTIONAL", - "proto3_optional": true - } - }, - "context": { - "type": "string", - "id": 3, + } + } + }, + "PointwiseMetricResult": { + "oneofs": { + "_score": { + "oneof": [ + "score" + ] + } + }, + "fields": { + "score": { + "type": "float", + "id": 1, "options": { - "(google.api.field_behavior)": "OPTIONAL", + "(google.api.field_behavior)": "OUTPUT_ONLY", "proto3_optional": true } }, - "instruction": { + "explanation": { "type": "string", - "id": 4, + "id": 2, "options": { - "(google.api.field_behavior)": "REQUIRED", - "proto3_optional": true + "(google.api.field_behavior)": "OUTPUT_ONLY" } } } }, - "QuestionAnsweringCorrectnessSpec": { + "PairwiseMetricInput": { "fields": { - "useReference": { - "type": "bool", + "metricSpec": { + "type": "PairwiseMetricSpec", "id": 1, "options": { - "(google.api.field_behavior)": "OPTIONAL" + "(google.api.field_behavior)": "REQUIRED" } }, - "version": { - "type": "int32", + "instance": { + "type": "PairwiseMetricInstance", "id": 2, "options": { - "(google.api.field_behavior)": "OPTIONAL" + "(google.api.field_behavior)": "REQUIRED" } } } }, - "QuestionAnsweringCorrectnessResult": { + "PairwiseMetricInstance": { "oneofs": { - "_score": { + "instance": { "oneof": [ - "score" + "jsonInstance" ] - }, - "_confidence": { + } + }, + "fields": { + "jsonInstance": { + "type": "string", + "id": 1 + } + } + }, + "PairwiseMetricSpec": { + "oneofs": { + "_metricPromptTemplate": { "oneof": [ - "confidence" + "metricPromptTemplate" ] } }, "fields": { - "score": { - "type": "float", + "metricPromptTemplate": { + "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY", + "(google.api.field_behavior)": "REQUIRED", "proto3_optional": true } + } + } + }, + "PairwiseMetricResult": { + "fields": { + "pairwiseChoice": { + "type": "PairwiseChoice", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } }, "explanation": { "type": "string", @@ -38517,14 +42135,6 @@ "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } - }, - "confidence": { - "type": "float", - "id": 3, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY", - "proto3_optional": true - } } } }, @@ -39964,6 +43574,26 @@ "options": { "(google.api.field_behavior)": "OPTIONAL" } + }, + "timeSeries": { + "type": "TimeSeries", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + }, + "nested": { + "TimeSeries": { + "fields": { + "timestampColumn": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } } } } @@ -40055,6 +43685,20 @@ "options": { "(google.api.field_behavior)": "OPTIONAL" } + }, + "satisfiesPzs": { + "type": "bool", + "id": 15, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "satisfiesPzi": { + "type": "bool", + "id": 16, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } }, "nested": { @@ -40871,6 +44515,20 @@ "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } + }, + "satisfiesPzs": { + "type": "bool", + "id": 19, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "satisfiesPzi": { + "type": "bool", + "id": 20, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } }, "nested": { @@ -41201,6 +44859,20 @@ "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } + }, + "satisfiesPzs": { + "type": "bool", + "id": 7, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "satisfiesPzi": { + "type": "bool", + "id": 8, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } }, "nested": { @@ -44144,6 +47816,20 @@ "options": { "(google.api.field_behavior)": "OPTIONAL" } + }, + "satisfiesPzs": { + "type": "bool", + "id": 14, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "satisfiesPzi": { + "type": "bool", + "id": 15, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } }, "nested": { @@ -44888,6 +48574,15 @@ "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } + }, + "totalTruncatedExampleCount": { + "type": "int64", + "id": 10 + }, + "truncatedExampleIndices": { + "rule": "repeated", + "type": "int64", + "id": 11 } } }, @@ -45353,6 +49048,20 @@ "encryptionSpec": { "type": "EncryptionSpec", "id": 17 + }, + "satisfiesPzs": { + "type": "bool", + "id": 19, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "satisfiesPzi": { + "type": "bool", + "id": 20, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } } }, @@ -46241,6 +49950,20 @@ "options": { "(google.api.field_behavior)": "IMMUTABLE" } + }, + "satisfiesPzs": { + "type": "bool", + "id": 18, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "satisfiesPzi": { + "type": "bool", + "id": 19, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } }, "nested": { @@ -46518,6 +50241,20 @@ "options": { "(google.api.field_behavior)": "IMMUTABLE" } + }, + "satisfiesPzs": { + "type": "bool", + "id": 17, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "satisfiesPzi": { + "type": "bool", + "id": 18, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } } }, @@ -49063,6 +52800,20 @@ "deprecated": true, "(google.api.field_behavior)": "OPTIONAL" } + }, + "satisfiesPzs": { + "type": "bool", + "id": 15, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "satisfiesPzi": { + "type": "bool", + "id": 16, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } } }, @@ -49353,7 +53104,7 @@ "options": { "(google.api.http).post": "/v1beta1/{endpoint=projects/*/locations/*/endpoints/*}:computeTokens", "(google.api.http).body": "*", - "(google.api.http).additional_bindings.post": "/v1beta1/{endpoint=projects/*/locations/*/publishers/*/models/*}:computeTokens", + "(google.api.http).additional_bindings.post": "/v1beta1/{endpoint=publishers/*/models/*}:computeTokens", "(google.api.http).additional_bindings.body": "*", "(google.api.method_signature)": "endpoint,instances" }, @@ -49362,10 +53113,20 @@ "(google.api.http)": { "post": "/v1beta1/{endpoint=projects/*/locations/*/endpoints/*}:computeTokens", "body": "*", - "additional_bindings": { - "post": "/v1beta1/{endpoint=projects/*/locations/*/publishers/*/models/*}:computeTokens", - "body": "*" - } + "additional_bindings": [ + { + "post": "/v1beta1/{endpoint=projects/*/locations/*/publishers/*/models/*}:computeTokens", + "body": "*" + }, + { + "post": "/v1beta1/{endpoint=endpoints/*}:computeTokens", + "body": "*" + }, + { + "post": "/v1beta1/{endpoint=publishers/*/models/*}:computeTokens", + "body": "*" + } + ] } }, { @@ -52044,6 +55805,13 @@ "options": { "(google.api.field_behavior)": "OPTIONAL" } + }, + "huggingFaceToken": { + "type": "string", + "id": 6, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } }, @@ -52578,6 +56346,13 @@ "options": { "(google.api.field_behavior)": "OPTIONAL" } + }, + "sampleRequest": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } } @@ -55130,6 +58905,10 @@ "keyType": "string", "type": "string", "id": 19 + }, + "encryptionSpec": { + "type": "EncryptionSpec", + "id": 22 } }, "nested": { @@ -58459,7 +62238,7 @@ "options": { "(google.api.http).post": "/v1beta1/{endpoint=projects/*/locations/*/endpoints/*}:countTokens", "(google.api.http).body": "*", - "(google.api.http).additional_bindings.post": "/v1beta1/{endpoint=projects/*/locations/*/publishers/*/models/*}:countTokens", + "(google.api.http).additional_bindings.post": "/v1beta1/{endpoint=publishers/*/models/*}:countTokens", "(google.api.http).additional_bindings.body": "*", "(google.api.method_signature)": "endpoint,instances" }, @@ -58468,10 +62247,20 @@ "(google.api.http)": { "post": "/v1beta1/{endpoint=projects/*/locations/*/endpoints/*}:countTokens", "body": "*", - "additional_bindings": { - "post": "/v1beta1/{endpoint=projects/*/locations/*/publishers/*/models/*}:countTokens", - "body": "*" - } + "additional_bindings": [ + { + "post": "/v1beta1/{endpoint=projects/*/locations/*/publishers/*/models/*}:countTokens", + "body": "*" + }, + { + "post": "/v1beta1/{endpoint=endpoints/*}:countTokens", + "body": "*" + }, + { + "post": "/v1beta1/{endpoint=publishers/*/models/*}:countTokens", + "body": "*" + } + ] } }, { @@ -58485,7 +62274,7 @@ "options": { "(google.api.http).post": "/v1beta1/{model=projects/*/locations/*/endpoints/*}:generateContent", "(google.api.http).body": "*", - "(google.api.http).additional_bindings.post": "/v1beta1/{model=projects/*/locations/*/publishers/*/models/*}:generateContent", + "(google.api.http).additional_bindings.post": "/v1beta1/{model=publishers/*/models/*}:generateContent", "(google.api.http).additional_bindings.body": "*", "(google.api.method_signature)": "model,contents" }, @@ -58494,10 +62283,20 @@ "(google.api.http)": { "post": "/v1beta1/{model=projects/*/locations/*/endpoints/*}:generateContent", "body": "*", - "additional_bindings": { - "post": "/v1beta1/{model=projects/*/locations/*/publishers/*/models/*}:generateContent", - "body": "*" - } + "additional_bindings": [ + { + "post": "/v1beta1/{model=projects/*/locations/*/publishers/*/models/*}:generateContent", + "body": "*" + }, + { + "post": "/v1beta1/{model=endpoints/*}:generateContent", + "body": "*" + }, + { + "post": "/v1beta1/{model=publishers/*/models/*}:generateContent", + "body": "*" + } + ] } }, { @@ -58512,7 +62311,7 @@ "options": { "(google.api.http).post": "/v1beta1/{model=projects/*/locations/*/endpoints/*}:streamGenerateContent", "(google.api.http).body": "*", - "(google.api.http).additional_bindings.post": "/v1beta1/{model=projects/*/locations/*/publishers/*/models/*}:streamGenerateContent", + "(google.api.http).additional_bindings.post": "/v1beta1/{model=publishers/*/models/*}:streamGenerateContent", "(google.api.http).additional_bindings.body": "*", "(google.api.method_signature)": "model,contents" }, @@ -58521,10 +62320,20 @@ "(google.api.http)": { "post": "/v1beta1/{model=projects/*/locations/*/endpoints/*}:streamGenerateContent", "body": "*", - "additional_bindings": { - "post": "/v1beta1/{model=projects/*/locations/*/publishers/*/models/*}:streamGenerateContent", - "body": "*" - } + "additional_bindings": [ + { + "post": "/v1beta1/{model=projects/*/locations/*/publishers/*/models/*}:streamGenerateContent", + "body": "*" + }, + { + "post": "/v1beta1/{model=endpoints/*}:streamGenerateContent", + "body": "*" + }, + { + "post": "/v1beta1/{model=publishers/*/models/*}:streamGenerateContent", + "body": "*" + } + ] } }, { @@ -64103,6 +67912,14 @@ } } }, + "RagFileParsingConfig": { + "fields": { + "useAdvancedPdfParsing": { + "type": "bool", + "id": 2 + } + } + }, "UploadRagFileConfig": { "fields": { "ragFileChunkingConfig": { @@ -64143,6 +67960,10 @@ "type": "RagFileChunkingConfig", "id": 4 }, + "ragFileParsingConfig": { + "type": "RagFileParsingConfig", + "id": 8 + }, "maxEmbeddingRequestsPerMin": { "type": "int32", "id": 5, diff --git a/packages/google-cloud-aiplatform/samples/README.md b/packages/google-cloud-aiplatform/samples/README.md index 9f1b4050d83..75528e9a524 100644 --- a/packages/google-cloud-aiplatform/samples/README.md +++ b/packages/google-cloud-aiplatform/samples/README.md @@ -45,6 +45,7 @@ * [Endpoint_service.mutate_deployed_model](#endpoint_service.mutate_deployed_model) * [Endpoint_service.undeploy_model](#endpoint_service.undeploy_model) * [Endpoint_service.update_endpoint](#endpoint_service.update_endpoint) + * [Evaluation_service.evaluate_instances](#evaluation_service.evaluate_instances) * [Feature_online_store_admin_service.create_feature_online_store](#feature_online_store_admin_service.create_feature_online_store) * [Feature_online_store_admin_service.create_feature_view](#feature_online_store_admin_service.create_feature_view) * [Feature_online_store_admin_service.delete_feature_online_store](#feature_online_store_admin_service.delete_feature_online_store) @@ -1226,6 +1227,23 @@ __Usage:__ +### Evaluation_service.evaluate_instances + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/evaluation_service.evaluate_instances.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-aiplatform/samples/generated/v1/evaluation_service.evaluate_instances.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1/evaluation_service.evaluate_instances.js` + + +----- + + + + ### Feature_online_store_admin_service.create_feature_online_store View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/feature_online_store_admin_service.create_feature_online_store.js). diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/evaluation_service.evaluate_instances.js b/packages/google-cloud-aiplatform/samples/generated/v1/evaluation_service.evaluate_instances.js new file mode 100644 index 00000000000..12cb4690525 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/evaluation_service.evaluate_instances.js @@ -0,0 +1,160 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(location) { + // [START aiplatform_v1_generated_EvaluationService_EvaluateInstances_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Auto metric instances. + * Instances and metric spec for exact match metric. + */ + // const exactMatchInput = {} + /** + * Instances and metric spec for bleu metric. + */ + // const bleuInput = {} + /** + * Instances and metric spec for rouge metric. + */ + // const rougeInput = {} + /** + * LLM-based metric instance. + * General text generation metrics, applicable to other categories. + * Input for fluency metric. + */ + // const fluencyInput = {} + /** + * Input for coherence metric. + */ + // const coherenceInput = {} + /** + * Input for safety metric. + */ + // const safetyInput = {} + /** + * Input for groundedness metric. + */ + // const groundednessInput = {} + /** + * Input for fulfillment metric. + */ + // const fulfillmentInput = {} + /** + * Input for summarization quality metric. + */ + // const summarizationQualityInput = {} + /** + * Input for pairwise summarization quality metric. + */ + // const pairwiseSummarizationQualityInput = {} + /** + * Input for summarization helpfulness metric. + */ + // const summarizationHelpfulnessInput = {} + /** + * Input for summarization verbosity metric. + */ + // const summarizationVerbosityInput = {} + /** + * Input for question answering quality metric. + */ + // const questionAnsweringQualityInput = {} + /** + * Input for pairwise question answering quality metric. + */ + // const pairwiseQuestionAnsweringQualityInput = {} + /** + * Input for question answering relevance metric. + */ + // const questionAnsweringRelevanceInput = {} + /** + * Input for question answering helpfulness + * metric. + */ + // const questionAnsweringHelpfulnessInput = {} + /** + * Input for question answering correctness + * metric. + */ + // const questionAnsweringCorrectnessInput = {} + /** + * Input for pointwise metric. + */ + // const pointwiseMetricInput = {} + /** + * Input for pairwise metric. + */ + // const pairwiseMetricInput = {} + /** + * Tool call metric instances. + * Input for tool call valid metric. + */ + // const toolCallValidInput = {} + /** + * Input for tool name match metric. + */ + // const toolNameMatchInput = {} + /** + * Input for tool parameter key match metric. + */ + // const toolParameterKeyMatchInput = {} + /** + * Input for tool parameter key value match metric. + */ + // const toolParameterKvMatchInput = {} + /** + * Required. The resource name of the Location to evaluate the instances. + * Format: `projects/{project}/locations/{location}` + */ + // const location = 'abc123' + + // Imports the Aiplatform library + const {EvaluationServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new EvaluationServiceClient(); + + async function callEvaluateInstances() { + // Construct request + const request = { + location, + }; + + // Run request + const response = await aiplatformClient.evaluateInstances(request); + console.log(response); + } + + callEvaluateInstances(); + // [END aiplatform_v1_generated_EvaluationService_EvaluateInstances_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/model_garden_service.get_publisher_model.js b/packages/google-cloud-aiplatform/samples/generated/v1/model_garden_service.get_publisher_model.js index 1510fb3cc06..46da3e5aeeb 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1/model_garden_service.get_publisher_model.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1/model_garden_service.get_publisher_model.js @@ -48,6 +48,10 @@ function main(name) { * model. */ // const isHuggingFaceModel = true + /** + * Optional. Token used to access Hugging Face gated models. + */ + // const huggingFaceToken = 'abc123' // Imports the Aiplatform library const {ModelGardenServiceClient} = 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 91a342345bd..32ab58872c3 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 @@ -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' /** 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 344d26c404e..64c2e2dfe2c 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 @@ -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' /** 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 3914f9aaf19..225763cc5d1 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 @@ -1599,6 +1599,138 @@ } } }, + { + "regionTag": "aiplatform_v1_generated_EvaluationService_EvaluateInstances_async", + "title": "DatasetService evaluateInstances Sample", + "origin": "API_DEFINITION", + "description": " Evaluates instances based on a given metric.", + "canonical": true, + "file": "evaluation_service.evaluate_instances.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 152, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "EvaluateInstances", + "fullName": "google.cloud.aiplatform.v1.EvaluationService.EvaluateInstances", + "async": true, + "parameters": [ + { + "name": "exact_match_input", + "type": ".google.cloud.aiplatform.v1.ExactMatchInput" + }, + { + "name": "bleu_input", + "type": ".google.cloud.aiplatform.v1.BleuInput" + }, + { + "name": "rouge_input", + "type": ".google.cloud.aiplatform.v1.RougeInput" + }, + { + "name": "fluency_input", + "type": ".google.cloud.aiplatform.v1.FluencyInput" + }, + { + "name": "coherence_input", + "type": ".google.cloud.aiplatform.v1.CoherenceInput" + }, + { + "name": "safety_input", + "type": ".google.cloud.aiplatform.v1.SafetyInput" + }, + { + "name": "groundedness_input", + "type": ".google.cloud.aiplatform.v1.GroundednessInput" + }, + { + "name": "fulfillment_input", + "type": ".google.cloud.aiplatform.v1.FulfillmentInput" + }, + { + "name": "summarization_quality_input", + "type": ".google.cloud.aiplatform.v1.SummarizationQualityInput" + }, + { + "name": "pairwise_summarization_quality_input", + "type": ".google.cloud.aiplatform.v1.PairwiseSummarizationQualityInput" + }, + { + "name": "summarization_helpfulness_input", + "type": ".google.cloud.aiplatform.v1.SummarizationHelpfulnessInput" + }, + { + "name": "summarization_verbosity_input", + "type": ".google.cloud.aiplatform.v1.SummarizationVerbosityInput" + }, + { + "name": "question_answering_quality_input", + "type": ".google.cloud.aiplatform.v1.QuestionAnsweringQualityInput" + }, + { + "name": "pairwise_question_answering_quality_input", + "type": ".google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInput" + }, + { + "name": "question_answering_relevance_input", + "type": ".google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInput" + }, + { + "name": "question_answering_helpfulness_input", + "type": ".google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInput" + }, + { + "name": "question_answering_correctness_input", + "type": ".google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInput" + }, + { + "name": "pointwise_metric_input", + "type": ".google.cloud.aiplatform.v1.PointwiseMetricInput" + }, + { + "name": "pairwise_metric_input", + "type": ".google.cloud.aiplatform.v1.PairwiseMetricInput" + }, + { + "name": "tool_call_valid_input", + "type": ".google.cloud.aiplatform.v1.ToolCallValidInput" + }, + { + "name": "tool_name_match_input", + "type": ".google.cloud.aiplatform.v1.ToolNameMatchInput" + }, + { + "name": "tool_parameter_key_match_input", + "type": ".google.cloud.aiplatform.v1.ToolParameterKeyMatchInput" + }, + { + "name": "tool_parameter_kv_match_input", + "type": ".google.cloud.aiplatform.v1.ToolParameterKVMatchInput" + }, + { + "name": "location", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.aiplatform.v1.EvaluateInstancesResponse", + "client": { + "shortName": "EvaluationServiceClient", + "fullName": "google.cloud.aiplatform.v1.EvaluationServiceClient" + }, + "method": { + "shortName": "EvaluateInstances", + "fullName": "google.cloud.aiplatform.v1.EvaluationService.EvaluateInstances", + "service": { + "shortName": "EvaluationService", + "fullName": "google.cloud.aiplatform.v1.EvaluationService" + } + } + } + }, { "regionTag": "aiplatform_v1_generated_FeatureOnlineStoreAdminService_CreateFeatureOnlineStore_async", "title": "DatasetService createFeatureOnlineStore Sample", @@ -8174,7 +8306,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 73, "type": "FULL" } ], @@ -8198,6 +8330,10 @@ { "name": "is_hugging_face_model", "type": "TYPE_BOOL" + }, + { + "name": "hugging_face_token", + "type": "TYPE_STRING" } ], "resultType": ".google.cloud.aiplatform.v1.PublisherModel", @@ -11098,7 +11234,7 @@ "segments": [ { "start": 25, - "end": 91, + "end": 94, "type": "FULL" } ], @@ -11162,7 +11298,7 @@ "segments": [ { "start": 25, - "end": 93, + "end": 96, "type": "FULL" } ], diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/evaluation_service.evaluate_instances.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/evaluation_service.evaluate_instances.js index 5dcf2190c01..dd0d880695c 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/evaluation_service.evaluate_instances.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/evaluation_service.evaluate_instances.js @@ -101,6 +101,14 @@ function main(location) { * metric. */ // const questionAnsweringCorrectnessInput = {} + /** + * Input for pointwise metric. + */ + // const pointwiseMetricInput = {} + /** + * Input for pairwise metric. + */ + // const pairwiseMetricInput = {} /** * Tool call metric instances. * Input for tool call valid metric. diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_garden_service.get_publisher_model.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_garden_service.get_publisher_model.js index 0fd376ab1dd..fca9e3f580f 100644 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_garden_service.get_publisher_model.js +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_garden_service.get_publisher_model.js @@ -48,6 +48,10 @@ function main(name) { * model. */ // const isHuggingFaceModel = true + /** + * Optional. Token used to access Hugging Face gated models. + */ + // const huggingFaceToken = 'abc123' // Imports the Aiplatform library const {ModelGardenServiceClient} = require('@google-cloud/aiplatform').v1beta1; 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 93bf168c742..2bc263b3c4f 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 @@ -1606,7 +1606,7 @@ "segments": [ { "start": 25, - "end": 144, + "end": 152, "type": "FULL" } ], @@ -1683,6 +1683,14 @@ "name": "question_answering_correctness_input", "type": ".google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInput" }, + { + "name": "pointwise_metric_input", + "type": ".google.cloud.aiplatform.v1beta1.PointwiseMetricInput" + }, + { + "name": "pairwise_metric_input", + "type": ".google.cloud.aiplatform.v1beta1.PairwiseMetricInput" + }, { "name": "tool_call_valid_input", "type": ".google.cloud.aiplatform.v1beta1.ToolCallValidInput" @@ -8826,7 +8834,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 73, "type": "FULL" } ], @@ -8850,6 +8858,10 @@ { "name": "is_hugging_face_model", "type": "TYPE_BOOL" + }, + { + "name": "hugging_face_token", + "type": "TYPE_STRING" } ], "resultType": ".google.cloud.aiplatform.v1beta1.PublisherModel", diff --git a/packages/google-cloud-aiplatform/src/index.ts b/packages/google-cloud-aiplatform/src/index.ts index a19eb4b13c2..b74f9abf7f1 100644 --- a/packages/google-cloud-aiplatform/src/index.ts +++ b/packages/google-cloud-aiplatform/src/index.ts @@ -77,6 +77,9 @@ const NotebookServiceClient = v1.NotebookServiceClient; type NotebookServiceClient = v1.NotebookServiceClient; const PersistentResourceServiceClient = v1.PersistentResourceServiceClient; type PersistentResourceServiceClient = v1.PersistentResourceServiceClient; +const EvaluationServiceClient = v1.EvaluationServiceClient; +type EvaluationServiceClient = v1.EvaluationServiceClient; + export { v1beta1, v1, @@ -106,6 +109,7 @@ export { GenAiTuningServiceClient, NotebookServiceClient, PersistentResourceServiceClient, + EvaluationServiceClient, }; export default { v1beta1, @@ -136,6 +140,7 @@ export default { GenAiTuningServiceClient, NotebookServiceClient, PersistentResourceServiceClient, + EvaluationServiceClient, }; import * as protos from '../protos/protos'; export {protos}; diff --git a/packages/google-cloud-aiplatform/src/v1/dataset_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/dataset_service_proto_list.json index 4d7a50d819b..aa1bc43bf0e 100644 --- a/packages/google-cloud-aiplatform/src/v1/dataset_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/dataset_service_proto_list.json @@ -23,6 +23,7 @@ "../../protos/google/cloud/aiplatform/v1/entity_type.proto", "../../protos/google/cloud/aiplatform/v1/env_var.proto", "../../protos/google/cloud/aiplatform/v1/evaluated_annotation.proto", + "../../protos/google/cloud/aiplatform/v1/evaluation_service.proto", "../../protos/google/cloud/aiplatform/v1/event.proto", "../../protos/google/cloud/aiplatform/v1/execution.proto", "../../protos/google/cloud/aiplatform/v1/explanation.proto", @@ -85,6 +86,7 @@ "../../protos/google/cloud/aiplatform/v1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1/prediction_service.proto", "../../protos/google/cloud/aiplatform/v1/publisher_model.proto", + "../../protos/google/cloud/aiplatform/v1/reservation_affinity.proto", "../../protos/google/cloud/aiplatform/v1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1/schedule.proto", "../../protos/google/cloud/aiplatform/v1/schedule_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/deployment_resource_pool_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/deployment_resource_pool_service_proto_list.json index 4d7a50d819b..aa1bc43bf0e 100644 --- a/packages/google-cloud-aiplatform/src/v1/deployment_resource_pool_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/deployment_resource_pool_service_proto_list.json @@ -23,6 +23,7 @@ "../../protos/google/cloud/aiplatform/v1/entity_type.proto", "../../protos/google/cloud/aiplatform/v1/env_var.proto", "../../protos/google/cloud/aiplatform/v1/evaluated_annotation.proto", + "../../protos/google/cloud/aiplatform/v1/evaluation_service.proto", "../../protos/google/cloud/aiplatform/v1/event.proto", "../../protos/google/cloud/aiplatform/v1/execution.proto", "../../protos/google/cloud/aiplatform/v1/explanation.proto", @@ -85,6 +86,7 @@ "../../protos/google/cloud/aiplatform/v1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1/prediction_service.proto", "../../protos/google/cloud/aiplatform/v1/publisher_model.proto", + "../../protos/google/cloud/aiplatform/v1/reservation_affinity.proto", "../../protos/google/cloud/aiplatform/v1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1/schedule.proto", "../../protos/google/cloud/aiplatform/v1/schedule_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/endpoint_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/endpoint_service_proto_list.json index 4d7a50d819b..aa1bc43bf0e 100644 --- a/packages/google-cloud-aiplatform/src/v1/endpoint_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/endpoint_service_proto_list.json @@ -23,6 +23,7 @@ "../../protos/google/cloud/aiplatform/v1/entity_type.proto", "../../protos/google/cloud/aiplatform/v1/env_var.proto", "../../protos/google/cloud/aiplatform/v1/evaluated_annotation.proto", + "../../protos/google/cloud/aiplatform/v1/evaluation_service.proto", "../../protos/google/cloud/aiplatform/v1/event.proto", "../../protos/google/cloud/aiplatform/v1/execution.proto", "../../protos/google/cloud/aiplatform/v1/explanation.proto", @@ -85,6 +86,7 @@ "../../protos/google/cloud/aiplatform/v1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1/prediction_service.proto", "../../protos/google/cloud/aiplatform/v1/publisher_model.proto", + "../../protos/google/cloud/aiplatform/v1/reservation_affinity.proto", "../../protos/google/cloud/aiplatform/v1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1/schedule.proto", "../../protos/google/cloud/aiplatform/v1/schedule_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/evaluation_service_client.ts b/packages/google-cloud-aiplatform/src/v1/evaluation_service_client.ts new file mode 100644 index 00000000000..6780599c07c --- /dev/null +++ b/packages/google-cloud-aiplatform/src/v1/evaluation_service_client.ts @@ -0,0 +1,4243 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +/* global window */ +import type * as gax from 'google-gax'; +import type { + Callback, + CallOptions, + Descriptors, + ClientOptions, + IamClient, + IamProtos, + LocationsClient, + LocationProtos, +} from 'google-gax'; + +import * as protos from '../../protos/protos'; +import jsonProtos = require('../../protos/protos.json'); + +/** + * Client JSON configuration object, loaded from + * `src/v1/evaluation_service_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ +import * as gapicConfig from './evaluation_service_client_config.json'; +const version = require('../../../package.json').version; + +/** + * Vertex AI Online Evaluation Service. + * @class + * @memberof v1 + */ +export class EvaluationServiceClient { + private _terminated = false; + private _opts: ClientOptions; + private _providedCustomServicePath: boolean; + private _gaxModule: typeof gax | typeof gax.fallback; + private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; + private _protos: {}; + private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; + auth: gax.GoogleAuth; + descriptors: Descriptors = { + page: {}, + stream: {}, + longrunning: {}, + batching: {}, + }; + warn: (code: string, message: string, warnType?: string) => void; + innerApiCalls: {[name: string]: Function}; + iamClient: IamClient; + locationsClient: LocationsClient; + pathTemplates: {[name: string]: gax.PathTemplate}; + evaluationServiceStub?: Promise<{[name: string]: Function}>; + + /** + * Construct an instance of EvaluationServiceClient. + * + * @param {object} [options] - The configuration object. + * The options accepted by the constructor are described in detail + * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). + * The common options are: + * @param {object} [options.credentials] - Credentials object. + * @param {string} [options.credentials.client_email] + * @param {string} [options.credentials.private_key] + * @param {string} [options.email] - Account email address. Required when + * using a .pem or .p12 keyFilename. + * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or + * .p12 key downloaded from the Google Developers Console. If you provide + * a path to a JSON file, the projectId option below is not necessary. + * NOTE: .pem and .p12 require you to specify options.email as well. + * @param {number} [options.port] - The port on which to connect to + * the remote host. + * @param {string} [options.projectId] - The project ID from the Google + * Developer's Console, e.g. 'grape-spaceship-123'. We will also check + * the environment variable GCLOUD_PROJECT for your project ID. If your + * app is running in an environment which supports + * {@link https://developers.google.com/identity/protocols/application-default-credentials Application Default Credentials}, + * your project ID will be detected automatically. + * @param {string} [options.apiEndpoint] - The domain name of the + * API remote host. + * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. + * Follows the structure of {@link gapicConfig}. + * @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode. + * For more information, please check the + * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. + * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you + * need to avoid loading the default gRPC version and want to use the fallback + * HTTP implementation. Load only fallback version and pass it to the constructor: + * ``` + * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC + * const client = new EvaluationServiceClient({fallback: true}, gax); + * ``` + */ + constructor( + opts?: ClientOptions, + gaxInstance?: typeof gax | typeof gax.fallback + ) { + // Ensure that options include all the required fields. + const staticMembers = this.constructor as typeof EvaluationServiceClient; + if ( + opts?.universe_domain && + opts?.universeDomain && + opts?.universe_domain !== opts?.universeDomain + ) { + throw new Error( + 'Please set either universe_domain or universeDomain, but not both.' + ); + } + const universeDomainEnvVar = + typeof process === 'object' && typeof process.env === 'object' + ? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] + : undefined; + this._universeDomain = + opts?.universeDomain ?? + opts?.universe_domain ?? + universeDomainEnvVar ?? + 'googleapis.com'; + this._servicePath = 'aiplatform.' + this._universeDomain; + const servicePath = + opts?.servicePath || opts?.apiEndpoint || this._servicePath; + this._providedCustomServicePath = !!( + opts?.servicePath || opts?.apiEndpoint + ); + const port = opts?.port || staticMembers.port; + const clientConfig = opts?.clientConfig ?? {}; + const fallback = + opts?.fallback ?? + (typeof window !== 'undefined' && typeof window?.fetch === 'function'); + opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); + + // Request numeric enum values if REST transport is used. + opts.numericEnums = true; + + // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. + if (servicePath !== this._servicePath && !('scopes' in opts)) { + opts['scopes'] = staticMembers.scopes; + } + + // Load google-gax module synchronously if needed + if (!gaxInstance) { + gaxInstance = require('google-gax') as typeof gax; + } + + // Choose either gRPC or proto-over-HTTP implementation of google-gax. + this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; + + // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. + this._gaxGrpc = new this._gaxModule.GrpcClient(opts); + + // Save options to use in initialize() method. + this._opts = opts; + + // Save the auth object to the client, for use by other methods. + this.auth = this._gaxGrpc.auth as gax.GoogleAuth; + + // Set useJWTAccessWithScope on the auth object. + this.auth.useJWTAccessWithScope = true; + + // Set defaultServicePath on the auth object. + this.auth.defaultServicePath = this._servicePath; + + // Set the default scopes in auth client if needed. + if (servicePath === this._servicePath) { + this.auth.defaultScopes = staticMembers.scopes; + } + this.iamClient = new this._gaxModule.IamClient(this._gaxGrpc, opts); + + this.locationsClient = new this._gaxModule.LocationsClient( + this._gaxGrpc, + opts + ); + + // Determine the client header string. + const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; + if (typeof process === 'object' && 'versions' in process) { + clientHeader.push(`gl-node/${process.versions.node}`); + } else { + clientHeader.push(`gl-web/${this._gaxModule.version}`); + } + if (!opts.fallback) { + clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`); + } else { + clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`); + } + if (opts.libName && opts.libVersion) { + clientHeader.push(`${opts.libName}/${opts.libVersion}`); + } + // Load the applicable protos. + this._protos = this._gaxGrpc.loadProtoJSON(jsonProtos); + + // This API contains "path templates"; forward-slash-separated + // identifiers to uniquely identify resources within the API. + // Create useful helper objects for these. + this.pathTemplates = { + annotationPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}/annotations/{annotation}' + ), + annotationSpecPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}' + ), + artifactPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}' + ), + batchPredictionJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}' + ), + contextPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/contexts/{context}' + ), + customJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/customJobs/{custom_job}' + ), + dataItemPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}' + ), + dataLabelingJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}' + ), + datasetPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}' + ), + datasetVersionPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}' + ), + deploymentResourcePoolPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}' + ), + entityTypePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}' + ), + executionPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/executions/{execution}' + ), + featureGroupPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}' + ), + featureOnlineStorePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}' + ), + featureViewPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}' + ), + featureViewSyncPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/feature_view_sync' + ), + featurestorePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featurestores/{featurestore}' + ), + hyperparameterTuningJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}' + ), + indexPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/indexes/{index}' + ), + indexEndpointPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}' + ), + locationPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}' + ), + metadataSchemaPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/metadataSchemas/{metadata_schema}' + ), + metadataStorePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/metadataStores/{metadata_store}' + ), + modelPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/models/{model}' + ), + modelDeploymentMonitoringJobPathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}' + ), + modelEvaluationPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}' + ), + modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' + ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), + notebookExecutionJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/notebookExecutionJobs/{notebook_execution_job}' + ), + notebookRuntimePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/notebookRuntimes/{notebook_runtime}' + ), + notebookRuntimeTemplatePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/notebookRuntimeTemplates/{notebook_runtime_template}' + ), + persistentResourcePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/persistentResources/{persistent_resource}' + ), + pipelineJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' + ), + projectLocationEndpointPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/endpoints/{endpoint}' + ), + projectLocationFeatureGroupFeaturePathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}' + ), + projectLocationFeaturestoreEntityTypeFeaturePathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}' + ), + projectLocationPublisherModelPathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/publishers/{publisher}/models/{model}' + ), + publisherModelPathTemplate: new this._gaxModule.PathTemplate( + 'publishers/{publisher}/models/{model}' + ), + savedQueryPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}' + ), + schedulePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/schedules/{schedule}' + ), + specialistPoolPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/specialistPools/{specialist_pool}' + ), + studyPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/studies/{study}' + ), + tensorboardPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/tensorboards/{tensorboard}' + ), + tensorboardExperimentPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}' + ), + tensorboardRunPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}' + ), + tensorboardTimeSeriesPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}' + ), + trainingPipelinePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}' + ), + trialPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/studies/{study}/trials/{trial}' + ), + tuningJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/tuningJobs/{tuning_job}' + ), + }; + + // Put together the default options sent with requests. + this._defaults = this._gaxGrpc.constructSettings( + 'google.cloud.aiplatform.v1.EvaluationService', + gapicConfig as gax.ClientConfig, + opts.clientConfig || {}, + {'x-goog-api-client': clientHeader.join(' ')} + ); + + // Set up a dictionary of "inner API calls"; the core implementation + // of calling the API is handled in `google-gax`, with this code + // merely providing the destination and request information. + this.innerApiCalls = {}; + + // Add a warn function to the client constructor so it can be easily tested. + this.warn = this._gaxModule.warn; + } + + /** + * Initialize the client. + * Performs asynchronous operations (such as authentication) and prepares the client. + * This function will be called automatically when any class method is called for the + * first time, but if you need to initialize it before calling an actual method, + * feel free to call initialize() directly. + * + * You can await on this method if you want to make sure the client is initialized. + * + * @returns {Promise} A promise that resolves to an authenticated service stub. + */ + initialize() { + // If the client stub promise is already initialized, return immediately. + if (this.evaluationServiceStub) { + return this.evaluationServiceStub; + } + + // Put together the "service stub" for + // google.cloud.aiplatform.v1.EvaluationService. + this.evaluationServiceStub = this._gaxGrpc.createStub( + this._opts.fallback + ? (this._protos as protobuf.Root).lookupService( + 'google.cloud.aiplatform.v1.EvaluationService' + ) + : // eslint-disable-next-line @typescript-eslint/no-explicit-any + (this._protos as any).google.cloud.aiplatform.v1.EvaluationService, + this._opts, + this._providedCustomServicePath + ) as Promise<{[method: string]: Function}>; + + // Iterate over each of the methods that the service provides + // and create an API call method for each. + const evaluationServiceStubMethods = ['evaluateInstances']; + for (const methodName of evaluationServiceStubMethods) { + const callPromise = this.evaluationServiceStub.then( + stub => + (...args: Array<{}>) => { + if (this._terminated) { + return Promise.reject('The client has already been closed.'); + } + const func = stub[methodName]; + return func.apply(stub, args); + }, + (err: Error | null | undefined) => () => { + throw err; + } + ); + + const descriptor = undefined; + const apiCall = this._gaxModule.createApiCall( + callPromise, + this._defaults[methodName], + descriptor, + this._opts.fallback + ); + + this.innerApiCalls[methodName] = apiCall; + } + + return this.evaluationServiceStub; + } + + /** + * The DNS address for this API service. + * @deprecated Use the apiEndpoint method of the client instance. + * @returns {string} The DNS address for this service. + */ + static get servicePath() { + if ( + typeof process === 'object' && + typeof process.emitWarning === 'function' + ) { + process.emitWarning( + 'Static servicePath is deprecated, please use the instance method instead.', + 'DeprecationWarning' + ); + } + return 'aiplatform.googleapis.com'; + } + + /** + * The DNS address for this API service - same as servicePath. + * @deprecated Use the apiEndpoint method of the client instance. + * @returns {string} The DNS address for this service. + */ + static get apiEndpoint() { + if ( + typeof process === 'object' && + typeof process.emitWarning === 'function' + ) { + process.emitWarning( + 'Static apiEndpoint is deprecated, please use the instance method instead.', + 'DeprecationWarning' + ); + } + return 'aiplatform.googleapis.com'; + } + + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + + /** + * The port for this API service. + * @returns {number} The default port for this service. + */ + static get port() { + return 443; + } + + /** + * The scopes needed to make gRPC calls for every method defined + * in this service. + * @returns {string[]} List of default scopes. + */ + static get scopes() { + return ['https://www.googleapis.com/auth/cloud-platform']; + } + + getProjectId(): Promise; + getProjectId(callback: Callback): void; + /** + * Return the project ID used by this class. + * @returns {Promise} A promise that resolves to string containing the project ID. + */ + getProjectId( + callback?: Callback + ): Promise | void { + if (callback) { + this.auth.getProjectId(callback); + return; + } + return this.auth.getProjectId(); + } + + // ------------------- + // -- Service calls -- + // ------------------- + /** + * Evaluates instances based on a given metric. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.cloud.aiplatform.v1.ExactMatchInput} request.exactMatchInput + * Auto metric instances. + * Instances and metric spec for exact match metric. + * @param {google.cloud.aiplatform.v1.BleuInput} request.bleuInput + * Instances and metric spec for bleu metric. + * @param {google.cloud.aiplatform.v1.RougeInput} request.rougeInput + * Instances and metric spec for rouge metric. + * @param {google.cloud.aiplatform.v1.FluencyInput} request.fluencyInput + * LLM-based metric instance. + * General text generation metrics, applicable to other categories. + * Input for fluency metric. + * @param {google.cloud.aiplatform.v1.CoherenceInput} request.coherenceInput + * Input for coherence metric. + * @param {google.cloud.aiplatform.v1.SafetyInput} request.safetyInput + * Input for safety metric. + * @param {google.cloud.aiplatform.v1.GroundednessInput} request.groundednessInput + * Input for groundedness metric. + * @param {google.cloud.aiplatform.v1.FulfillmentInput} request.fulfillmentInput + * Input for fulfillment metric. + * @param {google.cloud.aiplatform.v1.SummarizationQualityInput} request.summarizationQualityInput + * Input for summarization quality metric. + * @param {google.cloud.aiplatform.v1.PairwiseSummarizationQualityInput} request.pairwiseSummarizationQualityInput + * Input for pairwise summarization quality metric. + * @param {google.cloud.aiplatform.v1.SummarizationHelpfulnessInput} request.summarizationHelpfulnessInput + * Input for summarization helpfulness metric. + * @param {google.cloud.aiplatform.v1.SummarizationVerbosityInput} request.summarizationVerbosityInput + * Input for summarization verbosity metric. + * @param {google.cloud.aiplatform.v1.QuestionAnsweringQualityInput} request.questionAnsweringQualityInput + * Input for question answering quality metric. + * @param {google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInput} request.pairwiseQuestionAnsweringQualityInput + * Input for pairwise question answering quality metric. + * @param {google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInput} request.questionAnsweringRelevanceInput + * Input for question answering relevance metric. + * @param {google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInput} request.questionAnsweringHelpfulnessInput + * Input for question answering helpfulness + * metric. + * @param {google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInput} request.questionAnsweringCorrectnessInput + * Input for question answering correctness + * metric. + * @param {google.cloud.aiplatform.v1.PointwiseMetricInput} request.pointwiseMetricInput + * Input for pointwise metric. + * @param {google.cloud.aiplatform.v1.PairwiseMetricInput} request.pairwiseMetricInput + * Input for pairwise metric. + * @param {google.cloud.aiplatform.v1.ToolCallValidInput} request.toolCallValidInput + * Tool call metric instances. + * Input for tool call valid metric. + * @param {google.cloud.aiplatform.v1.ToolNameMatchInput} request.toolNameMatchInput + * Input for tool name match metric. + * @param {google.cloud.aiplatform.v1.ToolParameterKeyMatchInput} request.toolParameterKeyMatchInput + * Input for tool parameter key match metric. + * @param {google.cloud.aiplatform.v1.ToolParameterKVMatchInput} request.toolParameterKvMatchInput + * Input for tool parameter key value match metric. + * @param {string} request.location + * Required. The resource name of the Location to evaluate the instances. + * Format: `projects/{project}/locations/{location}` + * @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. + * The first element of the array is an object representing {@link protos.google.cloud.aiplatform.v1.EvaluateInstancesResponse|EvaluateInstancesResponse}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example include:samples/generated/v1/evaluation_service.evaluate_instances.js + * region_tag:aiplatform_v1_generated_EvaluationService_EvaluateInstances_async + */ + evaluateInstances( + request?: protos.google.cloud.aiplatform.v1.IEvaluateInstancesRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.aiplatform.v1.IEvaluateInstancesResponse, + protos.google.cloud.aiplatform.v1.IEvaluateInstancesRequest | undefined, + {} | undefined, + ] + >; + evaluateInstances( + request: protos.google.cloud.aiplatform.v1.IEvaluateInstancesRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.aiplatform.v1.IEvaluateInstancesResponse, + | protos.google.cloud.aiplatform.v1.IEvaluateInstancesRequest + | null + | undefined, + {} | null | undefined + > + ): void; + evaluateInstances( + request: protos.google.cloud.aiplatform.v1.IEvaluateInstancesRequest, + callback: Callback< + protos.google.cloud.aiplatform.v1.IEvaluateInstancesResponse, + | protos.google.cloud.aiplatform.v1.IEvaluateInstancesRequest + | null + | undefined, + {} | null | undefined + > + ): void; + evaluateInstances( + request?: protos.google.cloud.aiplatform.v1.IEvaluateInstancesRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.aiplatform.v1.IEvaluateInstancesResponse, + | protos.google.cloud.aiplatform.v1.IEvaluateInstancesRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.aiplatform.v1.IEvaluateInstancesResponse, + | protos.google.cloud.aiplatform.v1.IEvaluateInstancesRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.aiplatform.v1.IEvaluateInstancesResponse, + protos.google.cloud.aiplatform.v1.IEvaluateInstancesRequest | undefined, + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + location: request.location ?? '', + }); + this.initialize(); + return this.innerApiCalls.evaluateInstances(request, options, callback); + } + + /** + * Gets the access control policy for a resource. Returns an empty policy + * if the resource exists and does not have a policy set. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {Object} [request.options] + * OPTIONAL: A `GetPolicyOptions` object for specifying options to + * `GetIamPolicy`. This field is only used by Cloud IAM. + * + * This object should have the same structure as {@link google.iam.v1.GetPolicyOptions | GetPolicyOptions}. + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See {@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html | gax.CallOptions} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing {@link google.iam.v1.Policy | Policy}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link google.iam.v1.Policy | Policy}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + getIamPolicy( + request: IamProtos.google.iam.v1.GetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise<[IamProtos.google.iam.v1.Policy]> { + return this.iamClient.getIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see {@link https://cloud.google.com/iam/docs/overview#permissions | IAM Overview }. + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See {@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html | gax.CallOptions} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing {@link google.iam.v1.TestIamPermissionsResponse | TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link google.iam.v1.TestIamPermissionsResponse | TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + setIamPolicy( + request: IamProtos.google.iam.v1.SetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise<[IamProtos.google.iam.v1.Policy]> { + return this.iamClient.setIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see {@link https://cloud.google.com/iam/docs/overview#permissions | IAM Overview }. + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See {@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html | gax.CallOptions} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing {@link google.iam.v1.TestIamPermissionsResponse | TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link google.iam.v1.TestIamPermissionsResponse | TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + */ + testIamPermissions( + request: IamProtos.google.iam.v1.TestIamPermissionsRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + > + ): Promise<[IamProtos.google.iam.v1.TestIamPermissionsResponse]> { + return this.iamClient.testIamPermissions(request, options, callback); + } + + /** + * Gets information about a location. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Resource name for the location. + * @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. + * The first element of the array is an object representing {@link google.cloud.location.Location | Location}. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation } + * for more details and examples. + * @example + * ``` + * const [response] = await client.getLocation(request); + * ``` + */ + getLocation( + request: LocationProtos.google.cloud.location.IGetLocationRequest, + options?: + | gax.CallOptions + | Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + > + ): Promise { + return this.locationsClient.getLocation(request, options, callback); + } + + /** + * Lists information about the supported locations for this service. Returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * The resource that owns the locations collection, if applicable. + * @param {string} request.filter + * The standard list filter. + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. + * When you iterate the returned iterable, each element will be an object representing + * {@link google.cloud.location.Location | Location}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + * @example + * ``` + * const iterable = client.listLocationsAsync(request); + * for await (const response of iterable) { + * // process response + * } + * ``` + */ + listLocationsAsync( + request: LocationProtos.google.cloud.location.IListLocationsRequest, + options?: CallOptions + ): AsyncIterable { + return this.locationsClient.listLocationsAsync(request, options); + } + + // -------------------- + // -- Path templates -- + // -------------------- + + /** + * Return a fully-qualified annotation resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} data_item + * @param {string} annotation + * @returns {string} Resource name string. + */ + annotationPath( + project: string, + location: string, + dataset: string, + dataItem: string, + annotation: string + ) { + return this.pathTemplates.annotationPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + data_item: dataItem, + annotation: annotation, + }); + } + + /** + * Parse the project from Annotation resource. + * + * @param {string} annotationName + * A fully-qualified path representing Annotation resource. + * @returns {string} A string representing the project. + */ + matchProjectFromAnnotationName(annotationName: string) { + return this.pathTemplates.annotationPathTemplate.match(annotationName) + .project; + } + + /** + * Parse the location from Annotation resource. + * + * @param {string} annotationName + * A fully-qualified path representing Annotation resource. + * @returns {string} A string representing the location. + */ + matchLocationFromAnnotationName(annotationName: string) { + return this.pathTemplates.annotationPathTemplate.match(annotationName) + .location; + } + + /** + * Parse the dataset from Annotation resource. + * + * @param {string} annotationName + * A fully-qualified path representing Annotation resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromAnnotationName(annotationName: string) { + return this.pathTemplates.annotationPathTemplate.match(annotationName) + .dataset; + } + + /** + * Parse the data_item from Annotation resource. + * + * @param {string} annotationName + * A fully-qualified path representing Annotation resource. + * @returns {string} A string representing the data_item. + */ + matchDataItemFromAnnotationName(annotationName: string) { + return this.pathTemplates.annotationPathTemplate.match(annotationName) + .data_item; + } + + /** + * Parse the annotation from Annotation resource. + * + * @param {string} annotationName + * A fully-qualified path representing Annotation resource. + * @returns {string} A string representing the annotation. + */ + matchAnnotationFromAnnotationName(annotationName: string) { + return this.pathTemplates.annotationPathTemplate.match(annotationName) + .annotation; + } + + /** + * Return a fully-qualified annotationSpec resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} annotation_spec + * @returns {string} Resource name string. + */ + annotationSpecPath( + project: string, + location: string, + dataset: string, + annotationSpec: string + ) { + return this.pathTemplates.annotationSpecPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + annotation_spec: annotationSpec, + }); + } + + /** + * Parse the project from AnnotationSpec resource. + * + * @param {string} annotationSpecName + * A fully-qualified path representing AnnotationSpec resource. + * @returns {string} A string representing the project. + */ + matchProjectFromAnnotationSpecName(annotationSpecName: string) { + return this.pathTemplates.annotationSpecPathTemplate.match( + annotationSpecName + ).project; + } + + /** + * Parse the location from AnnotationSpec resource. + * + * @param {string} annotationSpecName + * A fully-qualified path representing AnnotationSpec resource. + * @returns {string} A string representing the location. + */ + matchLocationFromAnnotationSpecName(annotationSpecName: string) { + return this.pathTemplates.annotationSpecPathTemplate.match( + annotationSpecName + ).location; + } + + /** + * Parse the dataset from AnnotationSpec resource. + * + * @param {string} annotationSpecName + * A fully-qualified path representing AnnotationSpec resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromAnnotationSpecName(annotationSpecName: string) { + return this.pathTemplates.annotationSpecPathTemplate.match( + annotationSpecName + ).dataset; + } + + /** + * Parse the annotation_spec from AnnotationSpec resource. + * + * @param {string} annotationSpecName + * A fully-qualified path representing AnnotationSpec resource. + * @returns {string} A string representing the annotation_spec. + */ + matchAnnotationSpecFromAnnotationSpecName(annotationSpecName: string) { + return this.pathTemplates.annotationSpecPathTemplate.match( + annotationSpecName + ).annotation_spec; + } + + /** + * Return a fully-qualified artifact resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} metadata_store + * @param {string} artifact + * @returns {string} Resource name string. + */ + artifactPath( + project: string, + location: string, + metadataStore: string, + artifact: string + ) { + return this.pathTemplates.artifactPathTemplate.render({ + project: project, + location: location, + metadata_store: metadataStore, + artifact: artifact, + }); + } + + /** + * Parse the project from Artifact resource. + * + * @param {string} artifactName + * A fully-qualified path representing Artifact resource. + * @returns {string} A string representing the project. + */ + matchProjectFromArtifactName(artifactName: string) { + return this.pathTemplates.artifactPathTemplate.match(artifactName).project; + } + + /** + * Parse the location from Artifact resource. + * + * @param {string} artifactName + * A fully-qualified path representing Artifact resource. + * @returns {string} A string representing the location. + */ + matchLocationFromArtifactName(artifactName: string) { + return this.pathTemplates.artifactPathTemplate.match(artifactName).location; + } + + /** + * Parse the metadata_store from Artifact resource. + * + * @param {string} artifactName + * A fully-qualified path representing Artifact resource. + * @returns {string} A string representing the metadata_store. + */ + matchMetadataStoreFromArtifactName(artifactName: string) { + return this.pathTemplates.artifactPathTemplate.match(artifactName) + .metadata_store; + } + + /** + * Parse the artifact from Artifact resource. + * + * @param {string} artifactName + * A fully-qualified path representing Artifact resource. + * @returns {string} A string representing the artifact. + */ + matchArtifactFromArtifactName(artifactName: string) { + return this.pathTemplates.artifactPathTemplate.match(artifactName).artifact; + } + + /** + * Return a fully-qualified batchPredictionJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} batch_prediction_job + * @returns {string} Resource name string. + */ + batchPredictionJobPath( + project: string, + location: string, + batchPredictionJob: string + ) { + return this.pathTemplates.batchPredictionJobPathTemplate.render({ + project: project, + location: location, + batch_prediction_job: batchPredictionJob, + }); + } + + /** + * Parse the project from BatchPredictionJob resource. + * + * @param {string} batchPredictionJobName + * A fully-qualified path representing BatchPredictionJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromBatchPredictionJobName(batchPredictionJobName: string) { + return this.pathTemplates.batchPredictionJobPathTemplate.match( + batchPredictionJobName + ).project; + } + + /** + * Parse the location from BatchPredictionJob resource. + * + * @param {string} batchPredictionJobName + * A fully-qualified path representing BatchPredictionJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromBatchPredictionJobName(batchPredictionJobName: string) { + return this.pathTemplates.batchPredictionJobPathTemplate.match( + batchPredictionJobName + ).location; + } + + /** + * Parse the batch_prediction_job from BatchPredictionJob resource. + * + * @param {string} batchPredictionJobName + * A fully-qualified path representing BatchPredictionJob resource. + * @returns {string} A string representing the batch_prediction_job. + */ + matchBatchPredictionJobFromBatchPredictionJobName( + batchPredictionJobName: string + ) { + return this.pathTemplates.batchPredictionJobPathTemplate.match( + batchPredictionJobName + ).batch_prediction_job; + } + + /** + * Return a fully-qualified context resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} metadata_store + * @param {string} context + * @returns {string} Resource name string. + */ + contextPath( + project: string, + location: string, + metadataStore: string, + context: string + ) { + return this.pathTemplates.contextPathTemplate.render({ + project: project, + location: location, + metadata_store: metadataStore, + context: context, + }); + } + + /** + * Parse the project from Context resource. + * + * @param {string} contextName + * A fully-qualified path representing Context resource. + * @returns {string} A string representing the project. + */ + matchProjectFromContextName(contextName: string) { + return this.pathTemplates.contextPathTemplate.match(contextName).project; + } + + /** + * Parse the location from Context resource. + * + * @param {string} contextName + * A fully-qualified path representing Context resource. + * @returns {string} A string representing the location. + */ + matchLocationFromContextName(contextName: string) { + return this.pathTemplates.contextPathTemplate.match(contextName).location; + } + + /** + * Parse the metadata_store from Context resource. + * + * @param {string} contextName + * A fully-qualified path representing Context resource. + * @returns {string} A string representing the metadata_store. + */ + matchMetadataStoreFromContextName(contextName: string) { + return this.pathTemplates.contextPathTemplate.match(contextName) + .metadata_store; + } + + /** + * Parse the context from Context resource. + * + * @param {string} contextName + * A fully-qualified path representing Context resource. + * @returns {string} A string representing the context. + */ + matchContextFromContextName(contextName: string) { + return this.pathTemplates.contextPathTemplate.match(contextName).context; + } + + /** + * Return a fully-qualified customJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} custom_job + * @returns {string} Resource name string. + */ + customJobPath(project: string, location: string, customJob: string) { + return this.pathTemplates.customJobPathTemplate.render({ + project: project, + location: location, + custom_job: customJob, + }); + } + + /** + * Parse the project from CustomJob resource. + * + * @param {string} customJobName + * A fully-qualified path representing CustomJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromCustomJobName(customJobName: string) { + return this.pathTemplates.customJobPathTemplate.match(customJobName) + .project; + } + + /** + * Parse the location from CustomJob resource. + * + * @param {string} customJobName + * A fully-qualified path representing CustomJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromCustomJobName(customJobName: string) { + return this.pathTemplates.customJobPathTemplate.match(customJobName) + .location; + } + + /** + * Parse the custom_job from CustomJob resource. + * + * @param {string} customJobName + * A fully-qualified path representing CustomJob resource. + * @returns {string} A string representing the custom_job. + */ + matchCustomJobFromCustomJobName(customJobName: string) { + return this.pathTemplates.customJobPathTemplate.match(customJobName) + .custom_job; + } + + /** + * Return a fully-qualified dataItem resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} data_item + * @returns {string} Resource name string. + */ + dataItemPath( + project: string, + location: string, + dataset: string, + dataItem: string + ) { + return this.pathTemplates.dataItemPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + data_item: dataItem, + }); + } + + /** + * Parse the project from DataItem resource. + * + * @param {string} dataItemName + * A fully-qualified path representing DataItem resource. + * @returns {string} A string representing the project. + */ + matchProjectFromDataItemName(dataItemName: string) { + return this.pathTemplates.dataItemPathTemplate.match(dataItemName).project; + } + + /** + * Parse the location from DataItem resource. + * + * @param {string} dataItemName + * A fully-qualified path representing DataItem resource. + * @returns {string} A string representing the location. + */ + matchLocationFromDataItemName(dataItemName: string) { + return this.pathTemplates.dataItemPathTemplate.match(dataItemName).location; + } + + /** + * Parse the dataset from DataItem resource. + * + * @param {string} dataItemName + * A fully-qualified path representing DataItem resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromDataItemName(dataItemName: string) { + return this.pathTemplates.dataItemPathTemplate.match(dataItemName).dataset; + } + + /** + * Parse the data_item from DataItem resource. + * + * @param {string} dataItemName + * A fully-qualified path representing DataItem resource. + * @returns {string} A string representing the data_item. + */ + matchDataItemFromDataItemName(dataItemName: string) { + return this.pathTemplates.dataItemPathTemplate.match(dataItemName) + .data_item; + } + + /** + * Return a fully-qualified dataLabelingJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} data_labeling_job + * @returns {string} Resource name string. + */ + dataLabelingJobPath( + project: string, + location: string, + dataLabelingJob: string + ) { + return this.pathTemplates.dataLabelingJobPathTemplate.render({ + project: project, + location: location, + data_labeling_job: dataLabelingJob, + }); + } + + /** + * Parse the project from DataLabelingJob resource. + * + * @param {string} dataLabelingJobName + * A fully-qualified path representing DataLabelingJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromDataLabelingJobName(dataLabelingJobName: string) { + return this.pathTemplates.dataLabelingJobPathTemplate.match( + dataLabelingJobName + ).project; + } + + /** + * Parse the location from DataLabelingJob resource. + * + * @param {string} dataLabelingJobName + * A fully-qualified path representing DataLabelingJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromDataLabelingJobName(dataLabelingJobName: string) { + return this.pathTemplates.dataLabelingJobPathTemplate.match( + dataLabelingJobName + ).location; + } + + /** + * Parse the data_labeling_job from DataLabelingJob resource. + * + * @param {string} dataLabelingJobName + * A fully-qualified path representing DataLabelingJob resource. + * @returns {string} A string representing the data_labeling_job. + */ + matchDataLabelingJobFromDataLabelingJobName(dataLabelingJobName: string) { + return this.pathTemplates.dataLabelingJobPathTemplate.match( + dataLabelingJobName + ).data_labeling_job; + } + + /** + * Return a fully-qualified dataset resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @returns {string} Resource name string. + */ + datasetPath(project: string, location: string, dataset: string) { + return this.pathTemplates.datasetPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + }); + } + + /** + * Parse the project from Dataset resource. + * + * @param {string} datasetName + * A fully-qualified path representing Dataset resource. + * @returns {string} A string representing the project. + */ + matchProjectFromDatasetName(datasetName: string) { + return this.pathTemplates.datasetPathTemplate.match(datasetName).project; + } + + /** + * Parse the location from Dataset resource. + * + * @param {string} datasetName + * A fully-qualified path representing Dataset resource. + * @returns {string} A string representing the location. + */ + matchLocationFromDatasetName(datasetName: string) { + return this.pathTemplates.datasetPathTemplate.match(datasetName).location; + } + + /** + * Parse the dataset from Dataset resource. + * + * @param {string} datasetName + * A fully-qualified path representing Dataset resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromDatasetName(datasetName: string) { + return this.pathTemplates.datasetPathTemplate.match(datasetName).dataset; + } + + /** + * Return a fully-qualified datasetVersion resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} dataset_version + * @returns {string} Resource name string. + */ + datasetVersionPath( + project: string, + location: string, + dataset: string, + datasetVersion: string + ) { + return this.pathTemplates.datasetVersionPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + dataset_version: datasetVersion, + }); + } + + /** + * Parse the project from DatasetVersion resource. + * + * @param {string} datasetVersionName + * A fully-qualified path representing DatasetVersion resource. + * @returns {string} A string representing the project. + */ + matchProjectFromDatasetVersionName(datasetVersionName: string) { + return this.pathTemplates.datasetVersionPathTemplate.match( + datasetVersionName + ).project; + } + + /** + * Parse the location from DatasetVersion resource. + * + * @param {string} datasetVersionName + * A fully-qualified path representing DatasetVersion resource. + * @returns {string} A string representing the location. + */ + matchLocationFromDatasetVersionName(datasetVersionName: string) { + return this.pathTemplates.datasetVersionPathTemplate.match( + datasetVersionName + ).location; + } + + /** + * Parse the dataset from DatasetVersion resource. + * + * @param {string} datasetVersionName + * A fully-qualified path representing DatasetVersion resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromDatasetVersionName(datasetVersionName: string) { + return this.pathTemplates.datasetVersionPathTemplate.match( + datasetVersionName + ).dataset; + } + + /** + * Parse the dataset_version from DatasetVersion resource. + * + * @param {string} datasetVersionName + * A fully-qualified path representing DatasetVersion resource. + * @returns {string} A string representing the dataset_version. + */ + matchDatasetVersionFromDatasetVersionName(datasetVersionName: string) { + return this.pathTemplates.datasetVersionPathTemplate.match( + datasetVersionName + ).dataset_version; + } + + /** + * Return a fully-qualified deploymentResourcePool resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} deployment_resource_pool + * @returns {string} Resource name string. + */ + deploymentResourcePoolPath( + project: string, + location: string, + deploymentResourcePool: string + ) { + return this.pathTemplates.deploymentResourcePoolPathTemplate.render({ + project: project, + location: location, + deployment_resource_pool: deploymentResourcePool, + }); + } + + /** + * Parse the project from DeploymentResourcePool resource. + * + * @param {string} deploymentResourcePoolName + * A fully-qualified path representing DeploymentResourcePool resource. + * @returns {string} A string representing the project. + */ + matchProjectFromDeploymentResourcePoolName( + deploymentResourcePoolName: string + ) { + return this.pathTemplates.deploymentResourcePoolPathTemplate.match( + deploymentResourcePoolName + ).project; + } + + /** + * Parse the location from DeploymentResourcePool resource. + * + * @param {string} deploymentResourcePoolName + * A fully-qualified path representing DeploymentResourcePool resource. + * @returns {string} A string representing the location. + */ + matchLocationFromDeploymentResourcePoolName( + deploymentResourcePoolName: string + ) { + return this.pathTemplates.deploymentResourcePoolPathTemplate.match( + deploymentResourcePoolName + ).location; + } + + /** + * Parse the deployment_resource_pool from DeploymentResourcePool resource. + * + * @param {string} deploymentResourcePoolName + * A fully-qualified path representing DeploymentResourcePool resource. + * @returns {string} A string representing the deployment_resource_pool. + */ + matchDeploymentResourcePoolFromDeploymentResourcePoolName( + deploymentResourcePoolName: string + ) { + return this.pathTemplates.deploymentResourcePoolPathTemplate.match( + deploymentResourcePoolName + ).deployment_resource_pool; + } + + /** + * Return a fully-qualified entityType resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} featurestore + * @param {string} entity_type + * @returns {string} Resource name string. + */ + entityTypePath( + project: string, + location: string, + featurestore: string, + entityType: string + ) { + return this.pathTemplates.entityTypePathTemplate.render({ + project: project, + location: location, + featurestore: featurestore, + entity_type: entityType, + }); + } + + /** + * Parse the project from EntityType resource. + * + * @param {string} entityTypeName + * A fully-qualified path representing EntityType resource. + * @returns {string} A string representing the project. + */ + matchProjectFromEntityTypeName(entityTypeName: string) { + return this.pathTemplates.entityTypePathTemplate.match(entityTypeName) + .project; + } + + /** + * Parse the location from EntityType resource. + * + * @param {string} entityTypeName + * A fully-qualified path representing EntityType resource. + * @returns {string} A string representing the location. + */ + matchLocationFromEntityTypeName(entityTypeName: string) { + return this.pathTemplates.entityTypePathTemplate.match(entityTypeName) + .location; + } + + /** + * Parse the featurestore from EntityType resource. + * + * @param {string} entityTypeName + * A fully-qualified path representing EntityType resource. + * @returns {string} A string representing the featurestore. + */ + matchFeaturestoreFromEntityTypeName(entityTypeName: string) { + return this.pathTemplates.entityTypePathTemplate.match(entityTypeName) + .featurestore; + } + + /** + * Parse the entity_type from EntityType resource. + * + * @param {string} entityTypeName + * A fully-qualified path representing EntityType resource. + * @returns {string} A string representing the entity_type. + */ + matchEntityTypeFromEntityTypeName(entityTypeName: string) { + return this.pathTemplates.entityTypePathTemplate.match(entityTypeName) + .entity_type; + } + + /** + * Return a fully-qualified execution resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} metadata_store + * @param {string} execution + * @returns {string} Resource name string. + */ + executionPath( + project: string, + location: string, + metadataStore: string, + execution: string + ) { + return this.pathTemplates.executionPathTemplate.render({ + project: project, + location: location, + metadata_store: metadataStore, + execution: execution, + }); + } + + /** + * Parse the project from Execution resource. + * + * @param {string} executionName + * A fully-qualified path representing Execution resource. + * @returns {string} A string representing the project. + */ + matchProjectFromExecutionName(executionName: string) { + return this.pathTemplates.executionPathTemplate.match(executionName) + .project; + } + + /** + * Parse the location from Execution resource. + * + * @param {string} executionName + * A fully-qualified path representing Execution resource. + * @returns {string} A string representing the location. + */ + matchLocationFromExecutionName(executionName: string) { + return this.pathTemplates.executionPathTemplate.match(executionName) + .location; + } + + /** + * Parse the metadata_store from Execution resource. + * + * @param {string} executionName + * A fully-qualified path representing Execution resource. + * @returns {string} A string representing the metadata_store. + */ + matchMetadataStoreFromExecutionName(executionName: string) { + return this.pathTemplates.executionPathTemplate.match(executionName) + .metadata_store; + } + + /** + * Parse the execution from Execution resource. + * + * @param {string} executionName + * A fully-qualified path representing Execution resource. + * @returns {string} A string representing the execution. + */ + matchExecutionFromExecutionName(executionName: string) { + return this.pathTemplates.executionPathTemplate.match(executionName) + .execution; + } + + /** + * Return a fully-qualified featureGroup resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @returns {string} Resource name string. + */ + featureGroupPath(project: string, location: string, featureGroup: string) { + return this.pathTemplates.featureGroupPathTemplate.render({ + project: project, + location: location, + feature_group: featureGroup, + }); + } + + /** + * Parse the project from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .project; + } + + /** + * Parse the location from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .location; + } + + /** + * Parse the feature_group from FeatureGroup resource. + * + * @param {string} featureGroupName + * A fully-qualified path representing FeatureGroup resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromFeatureGroupName(featureGroupName: string) { + return this.pathTemplates.featureGroupPathTemplate.match(featureGroupName) + .feature_group; + } + + /** + * Return a fully-qualified featureOnlineStore resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @returns {string} Resource name string. + */ + featureOnlineStorePath( + project: string, + location: string, + featureOnlineStore: string + ) { + return this.pathTemplates.featureOnlineStorePathTemplate.render({ + project: project, + location: location, + feature_online_store: featureOnlineStore, + }); + } + + /** + * Parse the project from FeatureOnlineStore resource. + * + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureOnlineStoreName(featureOnlineStoreName: string) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).project; + } + + /** + * Parse the location from FeatureOnlineStore resource. + * + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureOnlineStoreName(featureOnlineStoreName: string) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).location; + } + + /** + * Parse the feature_online_store from FeatureOnlineStore resource. + * + * @param {string} featureOnlineStoreName + * A fully-qualified path representing FeatureOnlineStore resource. + * @returns {string} A string representing the feature_online_store. + */ + matchFeatureOnlineStoreFromFeatureOnlineStoreName( + featureOnlineStoreName: string + ) { + return this.pathTemplates.featureOnlineStorePathTemplate.match( + featureOnlineStoreName + ).feature_online_store; + } + + /** + * Return a fully-qualified featureView resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @param {string} feature_view + * @returns {string} Resource name string. + */ + featureViewPath( + project: string, + location: string, + featureOnlineStore: string, + featureView: string + ) { + return this.pathTemplates.featureViewPathTemplate.render({ + project: project, + location: location, + feature_online_store: featureOnlineStore, + feature_view: featureView, + }); + } + + /** + * Parse the project from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .project; + } + + /** + * Parse the location from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .location; + } + + /** + * Parse the feature_online_store from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the feature_online_store. + */ + matchFeatureOnlineStoreFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .feature_online_store; + } + + /** + * Parse the feature_view from FeatureView resource. + * + * @param {string} featureViewName + * A fully-qualified path representing FeatureView resource. + * @returns {string} A string representing the feature_view. + */ + matchFeatureViewFromFeatureViewName(featureViewName: string) { + return this.pathTemplates.featureViewPathTemplate.match(featureViewName) + .feature_view; + } + + /** + * Return a fully-qualified featureViewSync resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_online_store + * @param {string} feature_view + * @returns {string} Resource name string. + */ + featureViewSyncPath( + project: string, + location: string, + featureOnlineStore: string, + featureView: string + ) { + return this.pathTemplates.featureViewSyncPathTemplate.render({ + project: project, + location: location, + feature_online_store: featureOnlineStore, + feature_view: featureView, + }); + } + + /** + * Parse the project from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).project; + } + + /** + * Parse the location from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).location; + } + + /** + * Parse the feature_online_store from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the feature_online_store. + */ + matchFeatureOnlineStoreFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).feature_online_store; + } + + /** + * Parse the feature_view from FeatureViewSync resource. + * + * @param {string} featureViewSyncName + * A fully-qualified path representing FeatureViewSync resource. + * @returns {string} A string representing the feature_view. + */ + matchFeatureViewFromFeatureViewSyncName(featureViewSyncName: string) { + return this.pathTemplates.featureViewSyncPathTemplate.match( + featureViewSyncName + ).feature_view; + } + + /** + * Return a fully-qualified featurestore resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} featurestore + * @returns {string} Resource name string. + */ + featurestorePath(project: string, location: string, featurestore: string) { + return this.pathTemplates.featurestorePathTemplate.render({ + project: project, + location: location, + featurestore: featurestore, + }); + } + + /** + * Parse the project from Featurestore resource. + * + * @param {string} featurestoreName + * A fully-qualified path representing Featurestore resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFeaturestoreName(featurestoreName: string) { + return this.pathTemplates.featurestorePathTemplate.match(featurestoreName) + .project; + } + + /** + * Parse the location from Featurestore resource. + * + * @param {string} featurestoreName + * A fully-qualified path representing Featurestore resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFeaturestoreName(featurestoreName: string) { + return this.pathTemplates.featurestorePathTemplate.match(featurestoreName) + .location; + } + + /** + * Parse the featurestore from Featurestore resource. + * + * @param {string} featurestoreName + * A fully-qualified path representing Featurestore resource. + * @returns {string} A string representing the featurestore. + */ + matchFeaturestoreFromFeaturestoreName(featurestoreName: string) { + return this.pathTemplates.featurestorePathTemplate.match(featurestoreName) + .featurestore; + } + + /** + * Return a fully-qualified hyperparameterTuningJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} hyperparameter_tuning_job + * @returns {string} Resource name string. + */ + hyperparameterTuningJobPath( + project: string, + location: string, + hyperparameterTuningJob: string + ) { + return this.pathTemplates.hyperparameterTuningJobPathTemplate.render({ + project: project, + location: location, + hyperparameter_tuning_job: hyperparameterTuningJob, + }); + } + + /** + * Parse the project from HyperparameterTuningJob resource. + * + * @param {string} hyperparameterTuningJobName + * A fully-qualified path representing HyperparameterTuningJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromHyperparameterTuningJobName( + hyperparameterTuningJobName: string + ) { + return this.pathTemplates.hyperparameterTuningJobPathTemplate.match( + hyperparameterTuningJobName + ).project; + } + + /** + * Parse the location from HyperparameterTuningJob resource. + * + * @param {string} hyperparameterTuningJobName + * A fully-qualified path representing HyperparameterTuningJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromHyperparameterTuningJobName( + hyperparameterTuningJobName: string + ) { + return this.pathTemplates.hyperparameterTuningJobPathTemplate.match( + hyperparameterTuningJobName + ).location; + } + + /** + * Parse the hyperparameter_tuning_job from HyperparameterTuningJob resource. + * + * @param {string} hyperparameterTuningJobName + * A fully-qualified path representing HyperparameterTuningJob resource. + * @returns {string} A string representing the hyperparameter_tuning_job. + */ + matchHyperparameterTuningJobFromHyperparameterTuningJobName( + hyperparameterTuningJobName: string + ) { + return this.pathTemplates.hyperparameterTuningJobPathTemplate.match( + hyperparameterTuningJobName + ).hyperparameter_tuning_job; + } + + /** + * Return a fully-qualified index resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} index + * @returns {string} Resource name string. + */ + indexPath(project: string, location: string, index: string) { + return this.pathTemplates.indexPathTemplate.render({ + project: project, + location: location, + index: index, + }); + } + + /** + * Parse the project from Index resource. + * + * @param {string} indexName + * A fully-qualified path representing Index resource. + * @returns {string} A string representing the project. + */ + matchProjectFromIndexName(indexName: string) { + return this.pathTemplates.indexPathTemplate.match(indexName).project; + } + + /** + * Parse the location from Index resource. + * + * @param {string} indexName + * A fully-qualified path representing Index resource. + * @returns {string} A string representing the location. + */ + matchLocationFromIndexName(indexName: string) { + return this.pathTemplates.indexPathTemplate.match(indexName).location; + } + + /** + * Parse the index from Index resource. + * + * @param {string} indexName + * A fully-qualified path representing Index resource. + * @returns {string} A string representing the index. + */ + matchIndexFromIndexName(indexName: string) { + return this.pathTemplates.indexPathTemplate.match(indexName).index; + } + + /** + * Return a fully-qualified indexEndpoint resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} index_endpoint + * @returns {string} Resource name string. + */ + indexEndpointPath(project: string, location: string, indexEndpoint: string) { + return this.pathTemplates.indexEndpointPathTemplate.render({ + project: project, + location: location, + index_endpoint: indexEndpoint, + }); + } + + /** + * Parse the project from IndexEndpoint resource. + * + * @param {string} indexEndpointName + * A fully-qualified path representing IndexEndpoint resource. + * @returns {string} A string representing the project. + */ + matchProjectFromIndexEndpointName(indexEndpointName: string) { + return this.pathTemplates.indexEndpointPathTemplate.match(indexEndpointName) + .project; + } + + /** + * Parse the location from IndexEndpoint resource. + * + * @param {string} indexEndpointName + * A fully-qualified path representing IndexEndpoint resource. + * @returns {string} A string representing the location. + */ + matchLocationFromIndexEndpointName(indexEndpointName: string) { + return this.pathTemplates.indexEndpointPathTemplate.match(indexEndpointName) + .location; + } + + /** + * Parse the index_endpoint from IndexEndpoint resource. + * + * @param {string} indexEndpointName + * A fully-qualified path representing IndexEndpoint resource. + * @returns {string} A string representing the index_endpoint. + */ + matchIndexEndpointFromIndexEndpointName(indexEndpointName: string) { + return this.pathTemplates.indexEndpointPathTemplate.match(indexEndpointName) + .index_endpoint; + } + + /** + * Return a fully-qualified location resource name string. + * + * @param {string} project + * @param {string} location + * @returns {string} Resource name string. + */ + locationPath(project: string, location: string) { + return this.pathTemplates.locationPathTemplate.render({ + project: project, + location: location, + }); + } + + /** + * Parse the project from Location resource. + * + * @param {string} locationName + * A fully-qualified path representing Location resource. + * @returns {string} A string representing the project. + */ + matchProjectFromLocationName(locationName: string) { + return this.pathTemplates.locationPathTemplate.match(locationName).project; + } + + /** + * Parse the location from Location resource. + * + * @param {string} locationName + * A fully-qualified path representing Location resource. + * @returns {string} A string representing the location. + */ + matchLocationFromLocationName(locationName: string) { + return this.pathTemplates.locationPathTemplate.match(locationName).location; + } + + /** + * Return a fully-qualified metadataSchema resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} metadata_store + * @param {string} metadata_schema + * @returns {string} Resource name string. + */ + metadataSchemaPath( + project: string, + location: string, + metadataStore: string, + metadataSchema: string + ) { + return this.pathTemplates.metadataSchemaPathTemplate.render({ + project: project, + location: location, + metadata_store: metadataStore, + metadata_schema: metadataSchema, + }); + } + + /** + * Parse the project from MetadataSchema resource. + * + * @param {string} metadataSchemaName + * A fully-qualified path representing MetadataSchema resource. + * @returns {string} A string representing the project. + */ + matchProjectFromMetadataSchemaName(metadataSchemaName: string) { + return this.pathTemplates.metadataSchemaPathTemplate.match( + metadataSchemaName + ).project; + } + + /** + * Parse the location from MetadataSchema resource. + * + * @param {string} metadataSchemaName + * A fully-qualified path representing MetadataSchema resource. + * @returns {string} A string representing the location. + */ + matchLocationFromMetadataSchemaName(metadataSchemaName: string) { + return this.pathTemplates.metadataSchemaPathTemplate.match( + metadataSchemaName + ).location; + } + + /** + * Parse the metadata_store from MetadataSchema resource. + * + * @param {string} metadataSchemaName + * A fully-qualified path representing MetadataSchema resource. + * @returns {string} A string representing the metadata_store. + */ + matchMetadataStoreFromMetadataSchemaName(metadataSchemaName: string) { + return this.pathTemplates.metadataSchemaPathTemplate.match( + metadataSchemaName + ).metadata_store; + } + + /** + * Parse the metadata_schema from MetadataSchema resource. + * + * @param {string} metadataSchemaName + * A fully-qualified path representing MetadataSchema resource. + * @returns {string} A string representing the metadata_schema. + */ + matchMetadataSchemaFromMetadataSchemaName(metadataSchemaName: string) { + return this.pathTemplates.metadataSchemaPathTemplate.match( + metadataSchemaName + ).metadata_schema; + } + + /** + * Return a fully-qualified metadataStore resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} metadata_store + * @returns {string} Resource name string. + */ + metadataStorePath(project: string, location: string, metadataStore: string) { + return this.pathTemplates.metadataStorePathTemplate.render({ + project: project, + location: location, + metadata_store: metadataStore, + }); + } + + /** + * Parse the project from MetadataStore resource. + * + * @param {string} metadataStoreName + * A fully-qualified path representing MetadataStore resource. + * @returns {string} A string representing the project. + */ + matchProjectFromMetadataStoreName(metadataStoreName: string) { + return this.pathTemplates.metadataStorePathTemplate.match(metadataStoreName) + .project; + } + + /** + * Parse the location from MetadataStore resource. + * + * @param {string} metadataStoreName + * A fully-qualified path representing MetadataStore resource. + * @returns {string} A string representing the location. + */ + matchLocationFromMetadataStoreName(metadataStoreName: string) { + return this.pathTemplates.metadataStorePathTemplate.match(metadataStoreName) + .location; + } + + /** + * Parse the metadata_store from MetadataStore resource. + * + * @param {string} metadataStoreName + * A fully-qualified path representing MetadataStore resource. + * @returns {string} A string representing the metadata_store. + */ + matchMetadataStoreFromMetadataStoreName(metadataStoreName: string) { + return this.pathTemplates.metadataStorePathTemplate.match(metadataStoreName) + .metadata_store; + } + + /** + * Return a fully-qualified model resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} model + * @returns {string} Resource name string. + */ + modelPath(project: string, location: string, model: string) { + return this.pathTemplates.modelPathTemplate.render({ + project: project, + location: location, + model: model, + }); + } + + /** + * Parse the project from Model resource. + * + * @param {string} modelName + * A fully-qualified path representing Model resource. + * @returns {string} A string representing the project. + */ + matchProjectFromModelName(modelName: string) { + return this.pathTemplates.modelPathTemplate.match(modelName).project; + } + + /** + * Parse the location from Model resource. + * + * @param {string} modelName + * A fully-qualified path representing Model resource. + * @returns {string} A string representing the location. + */ + matchLocationFromModelName(modelName: string) { + return this.pathTemplates.modelPathTemplate.match(modelName).location; + } + + /** + * Parse the model from Model resource. + * + * @param {string} modelName + * A fully-qualified path representing Model resource. + * @returns {string} A string representing the model. + */ + matchModelFromModelName(modelName: string) { + return this.pathTemplates.modelPathTemplate.match(modelName).model; + } + + /** + * Return a fully-qualified modelDeploymentMonitoringJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} model_deployment_monitoring_job + * @returns {string} Resource name string. + */ + modelDeploymentMonitoringJobPath( + project: string, + location: string, + modelDeploymentMonitoringJob: string + ) { + return this.pathTemplates.modelDeploymentMonitoringJobPathTemplate.render({ + project: project, + location: location, + model_deployment_monitoring_job: modelDeploymentMonitoringJob, + }); + } + + /** + * Parse the project from ModelDeploymentMonitoringJob resource. + * + * @param {string} modelDeploymentMonitoringJobName + * A fully-qualified path representing ModelDeploymentMonitoringJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromModelDeploymentMonitoringJobName( + modelDeploymentMonitoringJobName: string + ) { + return this.pathTemplates.modelDeploymentMonitoringJobPathTemplate.match( + modelDeploymentMonitoringJobName + ).project; + } + + /** + * Parse the location from ModelDeploymentMonitoringJob resource. + * + * @param {string} modelDeploymentMonitoringJobName + * A fully-qualified path representing ModelDeploymentMonitoringJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromModelDeploymentMonitoringJobName( + modelDeploymentMonitoringJobName: string + ) { + return this.pathTemplates.modelDeploymentMonitoringJobPathTemplate.match( + modelDeploymentMonitoringJobName + ).location; + } + + /** + * Parse the model_deployment_monitoring_job from ModelDeploymentMonitoringJob resource. + * + * @param {string} modelDeploymentMonitoringJobName + * A fully-qualified path representing ModelDeploymentMonitoringJob resource. + * @returns {string} A string representing the model_deployment_monitoring_job. + */ + matchModelDeploymentMonitoringJobFromModelDeploymentMonitoringJobName( + modelDeploymentMonitoringJobName: string + ) { + return this.pathTemplates.modelDeploymentMonitoringJobPathTemplate.match( + modelDeploymentMonitoringJobName + ).model_deployment_monitoring_job; + } + + /** + * Return a fully-qualified modelEvaluation resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} model + * @param {string} evaluation + * @returns {string} Resource name string. + */ + modelEvaluationPath( + project: string, + location: string, + model: string, + evaluation: string + ) { + return this.pathTemplates.modelEvaluationPathTemplate.render({ + project: project, + location: location, + model: model, + evaluation: evaluation, + }); + } + + /** + * Parse the project from ModelEvaluation resource. + * + * @param {string} modelEvaluationName + * A fully-qualified path representing ModelEvaluation resource. + * @returns {string} A string representing the project. + */ + matchProjectFromModelEvaluationName(modelEvaluationName: string) { + return this.pathTemplates.modelEvaluationPathTemplate.match( + modelEvaluationName + ).project; + } + + /** + * Parse the location from ModelEvaluation resource. + * + * @param {string} modelEvaluationName + * A fully-qualified path representing ModelEvaluation resource. + * @returns {string} A string representing the location. + */ + matchLocationFromModelEvaluationName(modelEvaluationName: string) { + return this.pathTemplates.modelEvaluationPathTemplate.match( + modelEvaluationName + ).location; + } + + /** + * Parse the model from ModelEvaluation resource. + * + * @param {string} modelEvaluationName + * A fully-qualified path representing ModelEvaluation resource. + * @returns {string} A string representing the model. + */ + matchModelFromModelEvaluationName(modelEvaluationName: string) { + return this.pathTemplates.modelEvaluationPathTemplate.match( + modelEvaluationName + ).model; + } + + /** + * Parse the evaluation from ModelEvaluation resource. + * + * @param {string} modelEvaluationName + * A fully-qualified path representing ModelEvaluation resource. + * @returns {string} A string representing the evaluation. + */ + matchEvaluationFromModelEvaluationName(modelEvaluationName: string) { + return this.pathTemplates.modelEvaluationPathTemplate.match( + modelEvaluationName + ).evaluation; + } + + /** + * Return a fully-qualified modelEvaluationSlice resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} model + * @param {string} evaluation + * @param {string} slice + * @returns {string} Resource name string. + */ + modelEvaluationSlicePath( + project: string, + location: string, + model: string, + evaluation: string, + slice: string + ) { + return this.pathTemplates.modelEvaluationSlicePathTemplate.render({ + project: project, + location: location, + model: model, + evaluation: evaluation, + slice: slice, + }); + } + + /** + * Parse the project from ModelEvaluationSlice resource. + * + * @param {string} modelEvaluationSliceName + * A fully-qualified path representing ModelEvaluationSlice resource. + * @returns {string} A string representing the project. + */ + matchProjectFromModelEvaluationSliceName(modelEvaluationSliceName: string) { + return this.pathTemplates.modelEvaluationSlicePathTemplate.match( + modelEvaluationSliceName + ).project; + } + + /** + * Parse the location from ModelEvaluationSlice resource. + * + * @param {string} modelEvaluationSliceName + * A fully-qualified path representing ModelEvaluationSlice resource. + * @returns {string} A string representing the location. + */ + matchLocationFromModelEvaluationSliceName(modelEvaluationSliceName: string) { + return this.pathTemplates.modelEvaluationSlicePathTemplate.match( + modelEvaluationSliceName + ).location; + } + + /** + * Parse the model from ModelEvaluationSlice resource. + * + * @param {string} modelEvaluationSliceName + * A fully-qualified path representing ModelEvaluationSlice resource. + * @returns {string} A string representing the model. + */ + matchModelFromModelEvaluationSliceName(modelEvaluationSliceName: string) { + return this.pathTemplates.modelEvaluationSlicePathTemplate.match( + modelEvaluationSliceName + ).model; + } + + /** + * Parse the evaluation from ModelEvaluationSlice resource. + * + * @param {string} modelEvaluationSliceName + * A fully-qualified path representing ModelEvaluationSlice resource. + * @returns {string} A string representing the evaluation. + */ + matchEvaluationFromModelEvaluationSliceName( + modelEvaluationSliceName: string + ) { + return this.pathTemplates.modelEvaluationSlicePathTemplate.match( + modelEvaluationSliceName + ).evaluation; + } + + /** + * Parse the slice from ModelEvaluationSlice resource. + * + * @param {string} modelEvaluationSliceName + * A fully-qualified path representing ModelEvaluationSlice resource. + * @returns {string} A string representing the slice. + */ + matchSliceFromModelEvaluationSliceName(modelEvaluationSliceName: string) { + return this.pathTemplates.modelEvaluationSlicePathTemplate.match( + modelEvaluationSliceName + ).slice; + } + + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + + /** + * Return a fully-qualified notebookExecutionJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} notebook_execution_job + * @returns {string} Resource name string. + */ + notebookExecutionJobPath( + project: string, + location: string, + notebookExecutionJob: string + ) { + return this.pathTemplates.notebookExecutionJobPathTemplate.render({ + project: project, + location: location, + notebook_execution_job: notebookExecutionJob, + }); + } + + /** + * Parse the project from NotebookExecutionJob resource. + * + * @param {string} notebookExecutionJobName + * A fully-qualified path representing NotebookExecutionJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNotebookExecutionJobName(notebookExecutionJobName: string) { + return this.pathTemplates.notebookExecutionJobPathTemplate.match( + notebookExecutionJobName + ).project; + } + + /** + * Parse the location from NotebookExecutionJob resource. + * + * @param {string} notebookExecutionJobName + * A fully-qualified path representing NotebookExecutionJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNotebookExecutionJobName(notebookExecutionJobName: string) { + return this.pathTemplates.notebookExecutionJobPathTemplate.match( + notebookExecutionJobName + ).location; + } + + /** + * Parse the notebook_execution_job from NotebookExecutionJob resource. + * + * @param {string} notebookExecutionJobName + * A fully-qualified path representing NotebookExecutionJob resource. + * @returns {string} A string representing the notebook_execution_job. + */ + matchNotebookExecutionJobFromNotebookExecutionJobName( + notebookExecutionJobName: string + ) { + return this.pathTemplates.notebookExecutionJobPathTemplate.match( + notebookExecutionJobName + ).notebook_execution_job; + } + + /** + * Return a fully-qualified notebookRuntime resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} notebook_runtime + * @returns {string} Resource name string. + */ + notebookRuntimePath( + project: string, + location: string, + notebookRuntime: string + ) { + return this.pathTemplates.notebookRuntimePathTemplate.render({ + project: project, + location: location, + notebook_runtime: notebookRuntime, + }); + } + + /** + * Parse the project from NotebookRuntime resource. + * + * @param {string} notebookRuntimeName + * A fully-qualified path representing NotebookRuntime resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNotebookRuntimeName(notebookRuntimeName: string) { + return this.pathTemplates.notebookRuntimePathTemplate.match( + notebookRuntimeName + ).project; + } + + /** + * Parse the location from NotebookRuntime resource. + * + * @param {string} notebookRuntimeName + * A fully-qualified path representing NotebookRuntime resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNotebookRuntimeName(notebookRuntimeName: string) { + return this.pathTemplates.notebookRuntimePathTemplate.match( + notebookRuntimeName + ).location; + } + + /** + * Parse the notebook_runtime from NotebookRuntime resource. + * + * @param {string} notebookRuntimeName + * A fully-qualified path representing NotebookRuntime resource. + * @returns {string} A string representing the notebook_runtime. + */ + matchNotebookRuntimeFromNotebookRuntimeName(notebookRuntimeName: string) { + return this.pathTemplates.notebookRuntimePathTemplate.match( + notebookRuntimeName + ).notebook_runtime; + } + + /** + * Return a fully-qualified notebookRuntimeTemplate resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} notebook_runtime_template + * @returns {string} Resource name string. + */ + notebookRuntimeTemplatePath( + project: string, + location: string, + notebookRuntimeTemplate: string + ) { + return this.pathTemplates.notebookRuntimeTemplatePathTemplate.render({ + project: project, + location: location, + notebook_runtime_template: notebookRuntimeTemplate, + }); + } + + /** + * Parse the project from NotebookRuntimeTemplate resource. + * + * @param {string} notebookRuntimeTemplateName + * A fully-qualified path representing NotebookRuntimeTemplate resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNotebookRuntimeTemplateName( + notebookRuntimeTemplateName: string + ) { + return this.pathTemplates.notebookRuntimeTemplatePathTemplate.match( + notebookRuntimeTemplateName + ).project; + } + + /** + * Parse the location from NotebookRuntimeTemplate resource. + * + * @param {string} notebookRuntimeTemplateName + * A fully-qualified path representing NotebookRuntimeTemplate resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNotebookRuntimeTemplateName( + notebookRuntimeTemplateName: string + ) { + return this.pathTemplates.notebookRuntimeTemplatePathTemplate.match( + notebookRuntimeTemplateName + ).location; + } + + /** + * Parse the notebook_runtime_template from NotebookRuntimeTemplate resource. + * + * @param {string} notebookRuntimeTemplateName + * A fully-qualified path representing NotebookRuntimeTemplate resource. + * @returns {string} A string representing the notebook_runtime_template. + */ + matchNotebookRuntimeTemplateFromNotebookRuntimeTemplateName( + notebookRuntimeTemplateName: string + ) { + return this.pathTemplates.notebookRuntimeTemplatePathTemplate.match( + notebookRuntimeTemplateName + ).notebook_runtime_template; + } + + /** + * Return a fully-qualified persistentResource resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} persistent_resource + * @returns {string} Resource name string. + */ + persistentResourcePath( + project: string, + location: string, + persistentResource: string + ) { + return this.pathTemplates.persistentResourcePathTemplate.render({ + project: project, + location: location, + persistent_resource: persistentResource, + }); + } + + /** + * Parse the project from PersistentResource resource. + * + * @param {string} persistentResourceName + * A fully-qualified path representing PersistentResource resource. + * @returns {string} A string representing the project. + */ + matchProjectFromPersistentResourceName(persistentResourceName: string) { + return this.pathTemplates.persistentResourcePathTemplate.match( + persistentResourceName + ).project; + } + + /** + * Parse the location from PersistentResource resource. + * + * @param {string} persistentResourceName + * A fully-qualified path representing PersistentResource resource. + * @returns {string} A string representing the location. + */ + matchLocationFromPersistentResourceName(persistentResourceName: string) { + return this.pathTemplates.persistentResourcePathTemplate.match( + persistentResourceName + ).location; + } + + /** + * Parse the persistent_resource from PersistentResource resource. + * + * @param {string} persistentResourceName + * A fully-qualified path representing PersistentResource resource. + * @returns {string} A string representing the persistent_resource. + */ + matchPersistentResourceFromPersistentResourceName( + persistentResourceName: string + ) { + return this.pathTemplates.persistentResourcePathTemplate.match( + persistentResourceName + ).persistent_resource; + } + + /** + * Return a fully-qualified pipelineJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} pipeline_job + * @returns {string} Resource name string. + */ + pipelineJobPath(project: string, location: string, pipelineJob: string) { + return this.pathTemplates.pipelineJobPathTemplate.render({ + project: project, + location: location, + pipeline_job: pipelineJob, + }); + } + + /** + * Parse the project from PipelineJob resource. + * + * @param {string} pipelineJobName + * A fully-qualified path representing PipelineJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromPipelineJobName(pipelineJobName: string) { + return this.pathTemplates.pipelineJobPathTemplate.match(pipelineJobName) + .project; + } + + /** + * Parse the location from PipelineJob resource. + * + * @param {string} pipelineJobName + * A fully-qualified path representing PipelineJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromPipelineJobName(pipelineJobName: string) { + return this.pathTemplates.pipelineJobPathTemplate.match(pipelineJobName) + .location; + } + + /** + * Parse the pipeline_job from PipelineJob resource. + * + * @param {string} pipelineJobName + * A fully-qualified path representing PipelineJob resource. + * @returns {string} A string representing the pipeline_job. + */ + matchPipelineJobFromPipelineJobName(pipelineJobName: string) { + return this.pathTemplates.pipelineJobPathTemplate.match(pipelineJobName) + .pipeline_job; + } + + /** + * Return a fully-qualified projectLocationEndpoint resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} endpoint + * @returns {string} Resource name string. + */ + projectLocationEndpointPath( + project: string, + location: string, + endpoint: string + ) { + return this.pathTemplates.projectLocationEndpointPathTemplate.render({ + project: project, + location: location, + endpoint: endpoint, + }); + } + + /** + * Parse the project from ProjectLocationEndpoint resource. + * + * @param {string} projectLocationEndpointName + * A fully-qualified path representing project_location_endpoint resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationEndpointName( + projectLocationEndpointName: string + ) { + return this.pathTemplates.projectLocationEndpointPathTemplate.match( + projectLocationEndpointName + ).project; + } + + /** + * Parse the location from ProjectLocationEndpoint resource. + * + * @param {string} projectLocationEndpointName + * A fully-qualified path representing project_location_endpoint resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationEndpointName( + projectLocationEndpointName: string + ) { + return this.pathTemplates.projectLocationEndpointPathTemplate.match( + projectLocationEndpointName + ).location; + } + + /** + * Parse the endpoint from ProjectLocationEndpoint resource. + * + * @param {string} projectLocationEndpointName + * A fully-qualified path representing project_location_endpoint resource. + * @returns {string} A string representing the endpoint. + */ + matchEndpointFromProjectLocationEndpointName( + projectLocationEndpointName: string + ) { + return this.pathTemplates.projectLocationEndpointPathTemplate.match( + projectLocationEndpointName + ).endpoint; + } + + /** + * Return a fully-qualified projectLocationFeatureGroupFeature resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} feature_group + * @param {string} feature + * @returns {string} Resource name string. + */ + projectLocationFeatureGroupFeaturePath( + project: string, + location: string, + featureGroup: string, + feature: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.render( + { + project: project, + location: location, + feature_group: featureGroup, + feature: feature, + } + ); + } + + /** + * Parse the project from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).project; + } + + /** + * Parse the location from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).location; + } + + /** + * Parse the feature_group from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the feature_group. + */ + matchFeatureGroupFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).feature_group; + } + + /** + * Parse the feature from ProjectLocationFeatureGroupFeature resource. + * + * @param {string} projectLocationFeatureGroupFeatureName + * A fully-qualified path representing project_location_feature_group_feature resource. + * @returns {string} A string representing the feature. + */ + matchFeatureFromProjectLocationFeatureGroupFeatureName( + projectLocationFeatureGroupFeatureName: string + ) { + return this.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match( + projectLocationFeatureGroupFeatureName + ).feature; + } + + /** + * Return a fully-qualified projectLocationFeaturestoreEntityTypeFeature resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} featurestore + * @param {string} entity_type + * @param {string} feature + * @returns {string} Resource name string. + */ + projectLocationFeaturestoreEntityTypeFeaturePath( + project: string, + location: string, + featurestore: string, + entityType: string, + feature: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.render( + { + project: project, + location: location, + featurestore: featurestore, + entity_type: entityType, + feature: feature, + } + ); + } + + /** + * Parse the project from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).project; + } + + /** + * Parse the location from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).location; + } + + /** + * Parse the featurestore from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the featurestore. + */ + matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).featurestore; + } + + /** + * Parse the entity_type from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the entity_type. + */ + matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).entity_type; + } + + /** + * Parse the feature from ProjectLocationFeaturestoreEntityTypeFeature resource. + * + * @param {string} projectLocationFeaturestoreEntityTypeFeatureName + * A fully-qualified path representing project_location_featurestore_entity_type_feature resource. + * @returns {string} A string representing the feature. + */ + matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName( + projectLocationFeaturestoreEntityTypeFeatureName: string + ) { + return this.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match( + projectLocationFeaturestoreEntityTypeFeatureName + ).feature; + } + + /** + * Return a fully-qualified projectLocationPublisherModel resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} publisher + * @param {string} model + * @returns {string} Resource name string. + */ + projectLocationPublisherModelPath( + project: string, + location: string, + publisher: string, + model: string + ) { + return this.pathTemplates.projectLocationPublisherModelPathTemplate.render({ + project: project, + location: location, + publisher: publisher, + model: model, + }); + } + + /** + * Parse the project from ProjectLocationPublisherModel resource. + * + * @param {string} projectLocationPublisherModelName + * A fully-qualified path representing project_location_publisher_model resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationPublisherModelName( + projectLocationPublisherModelName: string + ) { + return this.pathTemplates.projectLocationPublisherModelPathTemplate.match( + projectLocationPublisherModelName + ).project; + } + + /** + * Parse the location from ProjectLocationPublisherModel resource. + * + * @param {string} projectLocationPublisherModelName + * A fully-qualified path representing project_location_publisher_model resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationPublisherModelName( + projectLocationPublisherModelName: string + ) { + return this.pathTemplates.projectLocationPublisherModelPathTemplate.match( + projectLocationPublisherModelName + ).location; + } + + /** + * Parse the publisher from ProjectLocationPublisherModel resource. + * + * @param {string} projectLocationPublisherModelName + * A fully-qualified path representing project_location_publisher_model resource. + * @returns {string} A string representing the publisher. + */ + matchPublisherFromProjectLocationPublisherModelName( + projectLocationPublisherModelName: string + ) { + return this.pathTemplates.projectLocationPublisherModelPathTemplate.match( + projectLocationPublisherModelName + ).publisher; + } + + /** + * Parse the model from ProjectLocationPublisherModel resource. + * + * @param {string} projectLocationPublisherModelName + * A fully-qualified path representing project_location_publisher_model resource. + * @returns {string} A string representing the model. + */ + matchModelFromProjectLocationPublisherModelName( + projectLocationPublisherModelName: string + ) { + return this.pathTemplates.projectLocationPublisherModelPathTemplate.match( + projectLocationPublisherModelName + ).model; + } + + /** + * Return a fully-qualified publisherModel resource name string. + * + * @param {string} publisher + * @param {string} model + * @returns {string} Resource name string. + */ + publisherModelPath(publisher: string, model: string) { + return this.pathTemplates.publisherModelPathTemplate.render({ + publisher: publisher, + model: model, + }); + } + + /** + * Parse the publisher from PublisherModel resource. + * + * @param {string} publisherModelName + * A fully-qualified path representing PublisherModel resource. + * @returns {string} A string representing the publisher. + */ + matchPublisherFromPublisherModelName(publisherModelName: string) { + return this.pathTemplates.publisherModelPathTemplate.match( + publisherModelName + ).publisher; + } + + /** + * Parse the model from PublisherModel resource. + * + * @param {string} publisherModelName + * A fully-qualified path representing PublisherModel resource. + * @returns {string} A string representing the model. + */ + matchModelFromPublisherModelName(publisherModelName: string) { + return this.pathTemplates.publisherModelPathTemplate.match( + publisherModelName + ).model; + } + + /** + * Return a fully-qualified savedQuery resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} saved_query + * @returns {string} Resource name string. + */ + savedQueryPath( + project: string, + location: string, + dataset: string, + savedQuery: string + ) { + return this.pathTemplates.savedQueryPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + saved_query: savedQuery, + }); + } + + /** + * Parse the project from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the project. + */ + matchProjectFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .project; + } + + /** + * Parse the location from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the location. + */ + matchLocationFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .location; + } + + /** + * Parse the dataset from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .dataset; + } + + /** + * Parse the saved_query from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the saved_query. + */ + matchSavedQueryFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .saved_query; + } + + /** + * Return a fully-qualified schedule resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} schedule + * @returns {string} Resource name string. + */ + schedulePath(project: string, location: string, schedule: string) { + return this.pathTemplates.schedulePathTemplate.render({ + project: project, + location: location, + schedule: schedule, + }); + } + + /** + * Parse the project from Schedule resource. + * + * @param {string} scheduleName + * A fully-qualified path representing Schedule resource. + * @returns {string} A string representing the project. + */ + matchProjectFromScheduleName(scheduleName: string) { + return this.pathTemplates.schedulePathTemplate.match(scheduleName).project; + } + + /** + * Parse the location from Schedule resource. + * + * @param {string} scheduleName + * A fully-qualified path representing Schedule resource. + * @returns {string} A string representing the location. + */ + matchLocationFromScheduleName(scheduleName: string) { + return this.pathTemplates.schedulePathTemplate.match(scheduleName).location; + } + + /** + * Parse the schedule from Schedule resource. + * + * @param {string} scheduleName + * A fully-qualified path representing Schedule resource. + * @returns {string} A string representing the schedule. + */ + matchScheduleFromScheduleName(scheduleName: string) { + return this.pathTemplates.schedulePathTemplate.match(scheduleName).schedule; + } + + /** + * Return a fully-qualified specialistPool resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} specialist_pool + * @returns {string} Resource name string. + */ + specialistPoolPath( + project: string, + location: string, + specialistPool: string + ) { + return this.pathTemplates.specialistPoolPathTemplate.render({ + project: project, + location: location, + specialist_pool: specialistPool, + }); + } + + /** + * Parse the project from SpecialistPool resource. + * + * @param {string} specialistPoolName + * A fully-qualified path representing SpecialistPool resource. + * @returns {string} A string representing the project. + */ + matchProjectFromSpecialistPoolName(specialistPoolName: string) { + return this.pathTemplates.specialistPoolPathTemplate.match( + specialistPoolName + ).project; + } + + /** + * Parse the location from SpecialistPool resource. + * + * @param {string} specialistPoolName + * A fully-qualified path representing SpecialistPool resource. + * @returns {string} A string representing the location. + */ + matchLocationFromSpecialistPoolName(specialistPoolName: string) { + return this.pathTemplates.specialistPoolPathTemplate.match( + specialistPoolName + ).location; + } + + /** + * Parse the specialist_pool from SpecialistPool resource. + * + * @param {string} specialistPoolName + * A fully-qualified path representing SpecialistPool resource. + * @returns {string} A string representing the specialist_pool. + */ + matchSpecialistPoolFromSpecialistPoolName(specialistPoolName: string) { + return this.pathTemplates.specialistPoolPathTemplate.match( + specialistPoolName + ).specialist_pool; + } + + /** + * Return a fully-qualified study resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} study + * @returns {string} Resource name string. + */ + studyPath(project: string, location: string, study: string) { + return this.pathTemplates.studyPathTemplate.render({ + project: project, + location: location, + study: study, + }); + } + + /** + * Parse the project from Study resource. + * + * @param {string} studyName + * A fully-qualified path representing Study resource. + * @returns {string} A string representing the project. + */ + matchProjectFromStudyName(studyName: string) { + return this.pathTemplates.studyPathTemplate.match(studyName).project; + } + + /** + * Parse the location from Study resource. + * + * @param {string} studyName + * A fully-qualified path representing Study resource. + * @returns {string} A string representing the location. + */ + matchLocationFromStudyName(studyName: string) { + return this.pathTemplates.studyPathTemplate.match(studyName).location; + } + + /** + * Parse the study from Study resource. + * + * @param {string} studyName + * A fully-qualified path representing Study resource. + * @returns {string} A string representing the study. + */ + matchStudyFromStudyName(studyName: string) { + return this.pathTemplates.studyPathTemplate.match(studyName).study; + } + + /** + * Return a fully-qualified tensorboard resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} tensorboard + * @returns {string} Resource name string. + */ + tensorboardPath(project: string, location: string, tensorboard: string) { + return this.pathTemplates.tensorboardPathTemplate.render({ + project: project, + location: location, + tensorboard: tensorboard, + }); + } + + /** + * Parse the project from Tensorboard resource. + * + * @param {string} tensorboardName + * A fully-qualified path representing Tensorboard resource. + * @returns {string} A string representing the project. + */ + matchProjectFromTensorboardName(tensorboardName: string) { + return this.pathTemplates.tensorboardPathTemplate.match(tensorboardName) + .project; + } + + /** + * Parse the location from Tensorboard resource. + * + * @param {string} tensorboardName + * A fully-qualified path representing Tensorboard resource. + * @returns {string} A string representing the location. + */ + matchLocationFromTensorboardName(tensorboardName: string) { + return this.pathTemplates.tensorboardPathTemplate.match(tensorboardName) + .location; + } + + /** + * Parse the tensorboard from Tensorboard resource. + * + * @param {string} tensorboardName + * A fully-qualified path representing Tensorboard resource. + * @returns {string} A string representing the tensorboard. + */ + matchTensorboardFromTensorboardName(tensorboardName: string) { + return this.pathTemplates.tensorboardPathTemplate.match(tensorboardName) + .tensorboard; + } + + /** + * Return a fully-qualified tensorboardExperiment resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} tensorboard + * @param {string} experiment + * @returns {string} Resource name string. + */ + tensorboardExperimentPath( + project: string, + location: string, + tensorboard: string, + experiment: string + ) { + return this.pathTemplates.tensorboardExperimentPathTemplate.render({ + project: project, + location: location, + tensorboard: tensorboard, + experiment: experiment, + }); + } + + /** + * Parse the project from TensorboardExperiment resource. + * + * @param {string} tensorboardExperimentName + * A fully-qualified path representing TensorboardExperiment resource. + * @returns {string} A string representing the project. + */ + matchProjectFromTensorboardExperimentName(tensorboardExperimentName: string) { + return this.pathTemplates.tensorboardExperimentPathTemplate.match( + tensorboardExperimentName + ).project; + } + + /** + * Parse the location from TensorboardExperiment resource. + * + * @param {string} tensorboardExperimentName + * A fully-qualified path representing TensorboardExperiment resource. + * @returns {string} A string representing the location. + */ + matchLocationFromTensorboardExperimentName( + tensorboardExperimentName: string + ) { + return this.pathTemplates.tensorboardExperimentPathTemplate.match( + tensorboardExperimentName + ).location; + } + + /** + * Parse the tensorboard from TensorboardExperiment resource. + * + * @param {string} tensorboardExperimentName + * A fully-qualified path representing TensorboardExperiment resource. + * @returns {string} A string representing the tensorboard. + */ + matchTensorboardFromTensorboardExperimentName( + tensorboardExperimentName: string + ) { + return this.pathTemplates.tensorboardExperimentPathTemplate.match( + tensorboardExperimentName + ).tensorboard; + } + + /** + * Parse the experiment from TensorboardExperiment resource. + * + * @param {string} tensorboardExperimentName + * A fully-qualified path representing TensorboardExperiment resource. + * @returns {string} A string representing the experiment. + */ + matchExperimentFromTensorboardExperimentName( + tensorboardExperimentName: string + ) { + return this.pathTemplates.tensorboardExperimentPathTemplate.match( + tensorboardExperimentName + ).experiment; + } + + /** + * Return a fully-qualified tensorboardRun resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} tensorboard + * @param {string} experiment + * @param {string} run + * @returns {string} Resource name string. + */ + tensorboardRunPath( + project: string, + location: string, + tensorboard: string, + experiment: string, + run: string + ) { + return this.pathTemplates.tensorboardRunPathTemplate.render({ + project: project, + location: location, + tensorboard: tensorboard, + experiment: experiment, + run: run, + }); + } + + /** + * Parse the project from TensorboardRun resource. + * + * @param {string} tensorboardRunName + * A fully-qualified path representing TensorboardRun resource. + * @returns {string} A string representing the project. + */ + matchProjectFromTensorboardRunName(tensorboardRunName: string) { + return this.pathTemplates.tensorboardRunPathTemplate.match( + tensorboardRunName + ).project; + } + + /** + * Parse the location from TensorboardRun resource. + * + * @param {string} tensorboardRunName + * A fully-qualified path representing TensorboardRun resource. + * @returns {string} A string representing the location. + */ + matchLocationFromTensorboardRunName(tensorboardRunName: string) { + return this.pathTemplates.tensorboardRunPathTemplate.match( + tensorboardRunName + ).location; + } + + /** + * Parse the tensorboard from TensorboardRun resource. + * + * @param {string} tensorboardRunName + * A fully-qualified path representing TensorboardRun resource. + * @returns {string} A string representing the tensorboard. + */ + matchTensorboardFromTensorboardRunName(tensorboardRunName: string) { + return this.pathTemplates.tensorboardRunPathTemplate.match( + tensorboardRunName + ).tensorboard; + } + + /** + * Parse the experiment from TensorboardRun resource. + * + * @param {string} tensorboardRunName + * A fully-qualified path representing TensorboardRun resource. + * @returns {string} A string representing the experiment. + */ + matchExperimentFromTensorboardRunName(tensorboardRunName: string) { + return this.pathTemplates.tensorboardRunPathTemplate.match( + tensorboardRunName + ).experiment; + } + + /** + * Parse the run from TensorboardRun resource. + * + * @param {string} tensorboardRunName + * A fully-qualified path representing TensorboardRun resource. + * @returns {string} A string representing the run. + */ + matchRunFromTensorboardRunName(tensorboardRunName: string) { + return this.pathTemplates.tensorboardRunPathTemplate.match( + tensorboardRunName + ).run; + } + + /** + * Return a fully-qualified tensorboardTimeSeries resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} tensorboard + * @param {string} experiment + * @param {string} run + * @param {string} time_series + * @returns {string} Resource name string. + */ + tensorboardTimeSeriesPath( + project: string, + location: string, + tensorboard: string, + experiment: string, + run: string, + timeSeries: string + ) { + return this.pathTemplates.tensorboardTimeSeriesPathTemplate.render({ + project: project, + location: location, + tensorboard: tensorboard, + experiment: experiment, + run: run, + time_series: timeSeries, + }); + } + + /** + * Parse the project from TensorboardTimeSeries resource. + * + * @param {string} tensorboardTimeSeriesName + * A fully-qualified path representing TensorboardTimeSeries resource. + * @returns {string} A string representing the project. + */ + matchProjectFromTensorboardTimeSeriesName(tensorboardTimeSeriesName: string) { + return this.pathTemplates.tensorboardTimeSeriesPathTemplate.match( + tensorboardTimeSeriesName + ).project; + } + + /** + * Parse the location from TensorboardTimeSeries resource. + * + * @param {string} tensorboardTimeSeriesName + * A fully-qualified path representing TensorboardTimeSeries resource. + * @returns {string} A string representing the location. + */ + matchLocationFromTensorboardTimeSeriesName( + tensorboardTimeSeriesName: string + ) { + return this.pathTemplates.tensorboardTimeSeriesPathTemplate.match( + tensorboardTimeSeriesName + ).location; + } + + /** + * Parse the tensorboard from TensorboardTimeSeries resource. + * + * @param {string} tensorboardTimeSeriesName + * A fully-qualified path representing TensorboardTimeSeries resource. + * @returns {string} A string representing the tensorboard. + */ + matchTensorboardFromTensorboardTimeSeriesName( + tensorboardTimeSeriesName: string + ) { + return this.pathTemplates.tensorboardTimeSeriesPathTemplate.match( + tensorboardTimeSeriesName + ).tensorboard; + } + + /** + * Parse the experiment from TensorboardTimeSeries resource. + * + * @param {string} tensorboardTimeSeriesName + * A fully-qualified path representing TensorboardTimeSeries resource. + * @returns {string} A string representing the experiment. + */ + matchExperimentFromTensorboardTimeSeriesName( + tensorboardTimeSeriesName: string + ) { + return this.pathTemplates.tensorboardTimeSeriesPathTemplate.match( + tensorboardTimeSeriesName + ).experiment; + } + + /** + * Parse the run from TensorboardTimeSeries resource. + * + * @param {string} tensorboardTimeSeriesName + * A fully-qualified path representing TensorboardTimeSeries resource. + * @returns {string} A string representing the run. + */ + matchRunFromTensorboardTimeSeriesName(tensorboardTimeSeriesName: string) { + return this.pathTemplates.tensorboardTimeSeriesPathTemplate.match( + tensorboardTimeSeriesName + ).run; + } + + /** + * Parse the time_series from TensorboardTimeSeries resource. + * + * @param {string} tensorboardTimeSeriesName + * A fully-qualified path representing TensorboardTimeSeries resource. + * @returns {string} A string representing the time_series. + */ + matchTimeSeriesFromTensorboardTimeSeriesName( + tensorboardTimeSeriesName: string + ) { + return this.pathTemplates.tensorboardTimeSeriesPathTemplate.match( + tensorboardTimeSeriesName + ).time_series; + } + + /** + * Return a fully-qualified trainingPipeline resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} training_pipeline + * @returns {string} Resource name string. + */ + trainingPipelinePath( + project: string, + location: string, + trainingPipeline: string + ) { + return this.pathTemplates.trainingPipelinePathTemplate.render({ + project: project, + location: location, + training_pipeline: trainingPipeline, + }); + } + + /** + * Parse the project from TrainingPipeline resource. + * + * @param {string} trainingPipelineName + * A fully-qualified path representing TrainingPipeline resource. + * @returns {string} A string representing the project. + */ + matchProjectFromTrainingPipelineName(trainingPipelineName: string) { + return this.pathTemplates.trainingPipelinePathTemplate.match( + trainingPipelineName + ).project; + } + + /** + * Parse the location from TrainingPipeline resource. + * + * @param {string} trainingPipelineName + * A fully-qualified path representing TrainingPipeline resource. + * @returns {string} A string representing the location. + */ + matchLocationFromTrainingPipelineName(trainingPipelineName: string) { + return this.pathTemplates.trainingPipelinePathTemplate.match( + trainingPipelineName + ).location; + } + + /** + * Parse the training_pipeline from TrainingPipeline resource. + * + * @param {string} trainingPipelineName + * A fully-qualified path representing TrainingPipeline resource. + * @returns {string} A string representing the training_pipeline. + */ + matchTrainingPipelineFromTrainingPipelineName(trainingPipelineName: string) { + return this.pathTemplates.trainingPipelinePathTemplate.match( + trainingPipelineName + ).training_pipeline; + } + + /** + * Return a fully-qualified trial resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} study + * @param {string} trial + * @returns {string} Resource name string. + */ + trialPath(project: string, location: string, study: string, trial: string) { + return this.pathTemplates.trialPathTemplate.render({ + project: project, + location: location, + study: study, + trial: trial, + }); + } + + /** + * Parse the project from Trial resource. + * + * @param {string} trialName + * A fully-qualified path representing Trial resource. + * @returns {string} A string representing the project. + */ + matchProjectFromTrialName(trialName: string) { + return this.pathTemplates.trialPathTemplate.match(trialName).project; + } + + /** + * Parse the location from Trial resource. + * + * @param {string} trialName + * A fully-qualified path representing Trial resource. + * @returns {string} A string representing the location. + */ + matchLocationFromTrialName(trialName: string) { + return this.pathTemplates.trialPathTemplate.match(trialName).location; + } + + /** + * Parse the study from Trial resource. + * + * @param {string} trialName + * A fully-qualified path representing Trial resource. + * @returns {string} A string representing the study. + */ + matchStudyFromTrialName(trialName: string) { + return this.pathTemplates.trialPathTemplate.match(trialName).study; + } + + /** + * Parse the trial from Trial resource. + * + * @param {string} trialName + * A fully-qualified path representing Trial resource. + * @returns {string} A string representing the trial. + */ + matchTrialFromTrialName(trialName: string) { + return this.pathTemplates.trialPathTemplate.match(trialName).trial; + } + + /** + * Return a fully-qualified tuningJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} tuning_job + * @returns {string} Resource name string. + */ + tuningJobPath(project: string, location: string, tuningJob: string) { + return this.pathTemplates.tuningJobPathTemplate.render({ + project: project, + location: location, + tuning_job: tuningJob, + }); + } + + /** + * Parse the project from TuningJob resource. + * + * @param {string} tuningJobName + * A fully-qualified path representing TuningJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromTuningJobName(tuningJobName: string) { + return this.pathTemplates.tuningJobPathTemplate.match(tuningJobName) + .project; + } + + /** + * Parse the location from TuningJob resource. + * + * @param {string} tuningJobName + * A fully-qualified path representing TuningJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromTuningJobName(tuningJobName: string) { + return this.pathTemplates.tuningJobPathTemplate.match(tuningJobName) + .location; + } + + /** + * Parse the tuning_job from TuningJob resource. + * + * @param {string} tuningJobName + * A fully-qualified path representing TuningJob resource. + * @returns {string} A string representing the tuning_job. + */ + matchTuningJobFromTuningJobName(tuningJobName: string) { + return this.pathTemplates.tuningJobPathTemplate.match(tuningJobName) + .tuning_job; + } + + /** + * Terminate the gRPC channel and close the client. + * + * The client will no longer be usable and all future behavior is undefined. + * @returns {Promise} A promise that resolves when the client is closed. + */ + close(): Promise { + if (this.evaluationServiceStub && !this._terminated) { + return this.evaluationServiceStub.then(stub => { + this._terminated = true; + stub.close(); + this.iamClient.close(); + this.locationsClient.close(); + }); + } + return Promise.resolve(); + } +} diff --git a/packages/google-cloud-aiplatform/src/v1/evaluation_service_client_config.json b/packages/google-cloud-aiplatform/src/v1/evaluation_service_client_config.json new file mode 100644 index 00000000000..50c344e6dbd --- /dev/null +++ b/packages/google-cloud-aiplatform/src/v1/evaluation_service_client_config.json @@ -0,0 +1,30 @@ +{ + "interfaces": { + "google.cloud.aiplatform.v1.EvaluationService": { + "retry_codes": { + "non_idempotent": [], + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 600000 + } + }, + "methods": { + "EvaluateInstances": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/packages/google-cloud-aiplatform/src/v1/evaluation_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/evaluation_service_proto_list.json new file mode 100644 index 00000000000..aa1bc43bf0e --- /dev/null +++ b/packages/google-cloud-aiplatform/src/v1/evaluation_service_proto_list.json @@ -0,0 +1,147 @@ +[ + "../../protos/google/cloud/aiplatform/v1/accelerator_type.proto", + "../../protos/google/cloud/aiplatform/v1/annotation.proto", + "../../protos/google/cloud/aiplatform/v1/annotation_spec.proto", + "../../protos/google/cloud/aiplatform/v1/artifact.proto", + "../../protos/google/cloud/aiplatform/v1/batch_prediction_job.proto", + "../../protos/google/cloud/aiplatform/v1/completion_stats.proto", + "../../protos/google/cloud/aiplatform/v1/content.proto", + "../../protos/google/cloud/aiplatform/v1/context.proto", + "../../protos/google/cloud/aiplatform/v1/custom_job.proto", + "../../protos/google/cloud/aiplatform/v1/data_item.proto", + "../../protos/google/cloud/aiplatform/v1/data_labeling_job.proto", + "../../protos/google/cloud/aiplatform/v1/dataset.proto", + "../../protos/google/cloud/aiplatform/v1/dataset_service.proto", + "../../protos/google/cloud/aiplatform/v1/dataset_version.proto", + "../../protos/google/cloud/aiplatform/v1/deployed_index_ref.proto", + "../../protos/google/cloud/aiplatform/v1/deployed_model_ref.proto", + "../../protos/google/cloud/aiplatform/v1/deployment_resource_pool.proto", + "../../protos/google/cloud/aiplatform/v1/deployment_resource_pool_service.proto", + "../../protos/google/cloud/aiplatform/v1/encryption_spec.proto", + "../../protos/google/cloud/aiplatform/v1/endpoint.proto", + "../../protos/google/cloud/aiplatform/v1/endpoint_service.proto", + "../../protos/google/cloud/aiplatform/v1/entity_type.proto", + "../../protos/google/cloud/aiplatform/v1/env_var.proto", + "../../protos/google/cloud/aiplatform/v1/evaluated_annotation.proto", + "../../protos/google/cloud/aiplatform/v1/evaluation_service.proto", + "../../protos/google/cloud/aiplatform/v1/event.proto", + "../../protos/google/cloud/aiplatform/v1/execution.proto", + "../../protos/google/cloud/aiplatform/v1/explanation.proto", + "../../protos/google/cloud/aiplatform/v1/explanation_metadata.proto", + "../../protos/google/cloud/aiplatform/v1/feature.proto", + "../../protos/google/cloud/aiplatform/v1/feature_group.proto", + "../../protos/google/cloud/aiplatform/v1/feature_monitoring_stats.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store_admin_service.proto", + "../../protos/google/cloud/aiplatform/v1/feature_online_store_service.proto", + "../../protos/google/cloud/aiplatform/v1/feature_registry_service.proto", + "../../protos/google/cloud/aiplatform/v1/feature_selector.proto", + "../../protos/google/cloud/aiplatform/v1/feature_view.proto", + "../../protos/google/cloud/aiplatform/v1/feature_view_sync.proto", + "../../protos/google/cloud/aiplatform/v1/featurestore.proto", + "../../protos/google/cloud/aiplatform/v1/featurestore_monitoring.proto", + "../../protos/google/cloud/aiplatform/v1/featurestore_online_service.proto", + "../../protos/google/cloud/aiplatform/v1/featurestore_service.proto", + "../../protos/google/cloud/aiplatform/v1/genai_tuning_service.proto", + "../../protos/google/cloud/aiplatform/v1/hyperparameter_tuning_job.proto", + "../../protos/google/cloud/aiplatform/v1/index.proto", + "../../protos/google/cloud/aiplatform/v1/index_endpoint.proto", + "../../protos/google/cloud/aiplatform/v1/index_endpoint_service.proto", + "../../protos/google/cloud/aiplatform/v1/index_service.proto", + "../../protos/google/cloud/aiplatform/v1/io.proto", + "../../protos/google/cloud/aiplatform/v1/job_service.proto", + "../../protos/google/cloud/aiplatform/v1/job_state.proto", + "../../protos/google/cloud/aiplatform/v1/lineage_subgraph.proto", + "../../protos/google/cloud/aiplatform/v1/llm_utility_service.proto", + "../../protos/google/cloud/aiplatform/v1/machine_resources.proto", + "../../protos/google/cloud/aiplatform/v1/manual_batch_tuning_parameters.proto", + "../../protos/google/cloud/aiplatform/v1/match_service.proto", + "../../protos/google/cloud/aiplatform/v1/metadata_schema.proto", + "../../protos/google/cloud/aiplatform/v1/metadata_service.proto", + "../../protos/google/cloud/aiplatform/v1/metadata_store.proto", + "../../protos/google/cloud/aiplatform/v1/migratable_resource.proto", + "../../protos/google/cloud/aiplatform/v1/migration_service.proto", + "../../protos/google/cloud/aiplatform/v1/model.proto", + "../../protos/google/cloud/aiplatform/v1/model_deployment_monitoring_job.proto", + "../../protos/google/cloud/aiplatform/v1/model_evaluation.proto", + "../../protos/google/cloud/aiplatform/v1/model_evaluation_slice.proto", + "../../protos/google/cloud/aiplatform/v1/model_garden_service.proto", + "../../protos/google/cloud/aiplatform/v1/model_monitoring.proto", + "../../protos/google/cloud/aiplatform/v1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1/nas_job.proto", + "../../protos/google/cloud/aiplatform/v1/network_spec.proto", + "../../protos/google/cloud/aiplatform/v1/notebook_euc_config.proto", + "../../protos/google/cloud/aiplatform/v1/notebook_execution_job.proto", + "../../protos/google/cloud/aiplatform/v1/notebook_idle_shutdown_config.proto", + "../../protos/google/cloud/aiplatform/v1/notebook_runtime.proto", + "../../protos/google/cloud/aiplatform/v1/notebook_runtime_template_ref.proto", + "../../protos/google/cloud/aiplatform/v1/notebook_service.proto", + "../../protos/google/cloud/aiplatform/v1/openapi.proto", + "../../protos/google/cloud/aiplatform/v1/operation.proto", + "../../protos/google/cloud/aiplatform/v1/persistent_resource.proto", + "../../protos/google/cloud/aiplatform/v1/persistent_resource_service.proto", + "../../protos/google/cloud/aiplatform/v1/pipeline_failure_policy.proto", + "../../protos/google/cloud/aiplatform/v1/pipeline_job.proto", + "../../protos/google/cloud/aiplatform/v1/pipeline_service.proto", + "../../protos/google/cloud/aiplatform/v1/pipeline_state.proto", + "../../protos/google/cloud/aiplatform/v1/prediction_service.proto", + "../../protos/google/cloud/aiplatform/v1/publisher_model.proto", + "../../protos/google/cloud/aiplatform/v1/reservation_affinity.proto", + "../../protos/google/cloud/aiplatform/v1/saved_query.proto", + "../../protos/google/cloud/aiplatform/v1/schedule.proto", + "../../protos/google/cloud/aiplatform/v1/schedule_service.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_object_detection.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_segmentation.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/text_classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/text_extraction.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/text_sentiment.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/video_action_recognition.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/video_classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/video_object_tracking.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/params/image_classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/params/image_object_detection.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/params/image_segmentation.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/params/video_action_recognition.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/params/video_classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/params/video_object_tracking.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/prediction/classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/prediction/image_object_detection.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/prediction/image_segmentation.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/prediction/tabular_classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/prediction/tabular_regression.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/prediction/text_extraction.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/prediction/text_sentiment.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/prediction/video_action_recognition.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/prediction/video_classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/predict/prediction/video_object_tracking.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_image_classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_image_object_detection.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_image_segmentation.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_tables.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_text_classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_text_extraction.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_text_sentiment.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_action_recognition.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_classification.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_object_tracking.proto", + "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1/service_networking.proto", + "../../protos/google/cloud/aiplatform/v1/specialist_pool.proto", + "../../protos/google/cloud/aiplatform/v1/specialist_pool_service.proto", + "../../protos/google/cloud/aiplatform/v1/study.proto", + "../../protos/google/cloud/aiplatform/v1/tensorboard.proto", + "../../protos/google/cloud/aiplatform/v1/tensorboard_data.proto", + "../../protos/google/cloud/aiplatform/v1/tensorboard_experiment.proto", + "../../protos/google/cloud/aiplatform/v1/tensorboard_run.proto", + "../../protos/google/cloud/aiplatform/v1/tensorboard_service.proto", + "../../protos/google/cloud/aiplatform/v1/tensorboard_time_series.proto", + "../../protos/google/cloud/aiplatform/v1/tool.proto", + "../../protos/google/cloud/aiplatform/v1/training_pipeline.proto", + "../../protos/google/cloud/aiplatform/v1/tuning_job.proto", + "../../protos/google/cloud/aiplatform/v1/types.proto", + "../../protos/google/cloud/aiplatform/v1/unmanaged_container_model.proto", + "../../protos/google/cloud/aiplatform/v1/user_action_reference.proto", + "../../protos/google/cloud/aiplatform/v1/value.proto", + "../../protos/google/cloud/aiplatform/v1/vizier_service.proto" +] diff --git a/packages/google-cloud-aiplatform/src/v1/feature_online_store_admin_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/feature_online_store_admin_service_proto_list.json index 4d7a50d819b..aa1bc43bf0e 100644 --- a/packages/google-cloud-aiplatform/src/v1/feature_online_store_admin_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/feature_online_store_admin_service_proto_list.json @@ -23,6 +23,7 @@ "../../protos/google/cloud/aiplatform/v1/entity_type.proto", "../../protos/google/cloud/aiplatform/v1/env_var.proto", "../../protos/google/cloud/aiplatform/v1/evaluated_annotation.proto", + "../../protos/google/cloud/aiplatform/v1/evaluation_service.proto", "../../protos/google/cloud/aiplatform/v1/event.proto", "../../protos/google/cloud/aiplatform/v1/execution.proto", "../../protos/google/cloud/aiplatform/v1/explanation.proto", @@ -85,6 +86,7 @@ "../../protos/google/cloud/aiplatform/v1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1/prediction_service.proto", "../../protos/google/cloud/aiplatform/v1/publisher_model.proto", + "../../protos/google/cloud/aiplatform/v1/reservation_affinity.proto", "../../protos/google/cloud/aiplatform/v1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1/schedule.proto", "../../protos/google/cloud/aiplatform/v1/schedule_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/feature_online_store_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/feature_online_store_service_proto_list.json index 4d7a50d819b..aa1bc43bf0e 100644 --- a/packages/google-cloud-aiplatform/src/v1/feature_online_store_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/feature_online_store_service_proto_list.json @@ -23,6 +23,7 @@ "../../protos/google/cloud/aiplatform/v1/entity_type.proto", "../../protos/google/cloud/aiplatform/v1/env_var.proto", "../../protos/google/cloud/aiplatform/v1/evaluated_annotation.proto", + "../../protos/google/cloud/aiplatform/v1/evaluation_service.proto", "../../protos/google/cloud/aiplatform/v1/event.proto", "../../protos/google/cloud/aiplatform/v1/execution.proto", "../../protos/google/cloud/aiplatform/v1/explanation.proto", @@ -85,6 +86,7 @@ "../../protos/google/cloud/aiplatform/v1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1/prediction_service.proto", "../../protos/google/cloud/aiplatform/v1/publisher_model.proto", + "../../protos/google/cloud/aiplatform/v1/reservation_affinity.proto", "../../protos/google/cloud/aiplatform/v1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1/schedule.proto", "../../protos/google/cloud/aiplatform/v1/schedule_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/feature_registry_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/feature_registry_service_proto_list.json index 4d7a50d819b..aa1bc43bf0e 100644 --- a/packages/google-cloud-aiplatform/src/v1/feature_registry_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/feature_registry_service_proto_list.json @@ -23,6 +23,7 @@ "../../protos/google/cloud/aiplatform/v1/entity_type.proto", "../../protos/google/cloud/aiplatform/v1/env_var.proto", "../../protos/google/cloud/aiplatform/v1/evaluated_annotation.proto", + "../../protos/google/cloud/aiplatform/v1/evaluation_service.proto", "../../protos/google/cloud/aiplatform/v1/event.proto", "../../protos/google/cloud/aiplatform/v1/execution.proto", "../../protos/google/cloud/aiplatform/v1/explanation.proto", @@ -85,6 +86,7 @@ "../../protos/google/cloud/aiplatform/v1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1/prediction_service.proto", "../../protos/google/cloud/aiplatform/v1/publisher_model.proto", + "../../protos/google/cloud/aiplatform/v1/reservation_affinity.proto", "../../protos/google/cloud/aiplatform/v1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1/schedule.proto", "../../protos/google/cloud/aiplatform/v1/schedule_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/featurestore_online_serving_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/featurestore_online_serving_service_proto_list.json index 4d7a50d819b..aa1bc43bf0e 100644 --- a/packages/google-cloud-aiplatform/src/v1/featurestore_online_serving_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/featurestore_online_serving_service_proto_list.json @@ -23,6 +23,7 @@ "../../protos/google/cloud/aiplatform/v1/entity_type.proto", "../../protos/google/cloud/aiplatform/v1/env_var.proto", "../../protos/google/cloud/aiplatform/v1/evaluated_annotation.proto", + "../../protos/google/cloud/aiplatform/v1/evaluation_service.proto", "../../protos/google/cloud/aiplatform/v1/event.proto", "../../protos/google/cloud/aiplatform/v1/execution.proto", "../../protos/google/cloud/aiplatform/v1/explanation.proto", @@ -85,6 +86,7 @@ "../../protos/google/cloud/aiplatform/v1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1/prediction_service.proto", "../../protos/google/cloud/aiplatform/v1/publisher_model.proto", + "../../protos/google/cloud/aiplatform/v1/reservation_affinity.proto", "../../protos/google/cloud/aiplatform/v1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1/schedule.proto", "../../protos/google/cloud/aiplatform/v1/schedule_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/featurestore_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/featurestore_service_proto_list.json index 4d7a50d819b..aa1bc43bf0e 100644 --- a/packages/google-cloud-aiplatform/src/v1/featurestore_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/featurestore_service_proto_list.json @@ -23,6 +23,7 @@ "../../protos/google/cloud/aiplatform/v1/entity_type.proto", "../../protos/google/cloud/aiplatform/v1/env_var.proto", "../../protos/google/cloud/aiplatform/v1/evaluated_annotation.proto", + "../../protos/google/cloud/aiplatform/v1/evaluation_service.proto", "../../protos/google/cloud/aiplatform/v1/event.proto", "../../protos/google/cloud/aiplatform/v1/execution.proto", "../../protos/google/cloud/aiplatform/v1/explanation.proto", @@ -85,6 +86,7 @@ "../../protos/google/cloud/aiplatform/v1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1/prediction_service.proto", "../../protos/google/cloud/aiplatform/v1/publisher_model.proto", + "../../protos/google/cloud/aiplatform/v1/reservation_affinity.proto", "../../protos/google/cloud/aiplatform/v1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1/schedule.proto", "../../protos/google/cloud/aiplatform/v1/schedule_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/gapic_metadata.json b/packages/google-cloud-aiplatform/src/v1/gapic_metadata.json index db3a2baadd9..19c42e1661a 100644 --- a/packages/google-cloud-aiplatform/src/v1/gapic_metadata.json +++ b/packages/google-cloud-aiplatform/src/v1/gapic_metadata.json @@ -413,6 +413,30 @@ } } }, + "EvaluationService": { + "clients": { + "grpc": { + "libraryClient": "EvaluationServiceClient", + "rpcs": { + "EvaluateInstances": { + "methods": [ + "evaluateInstances" + ] + } + } + }, + "grpc-fallback": { + "libraryClient": "EvaluationServiceClient", + "rpcs": { + "EvaluateInstances": { + "methods": [ + "evaluateInstances" + ] + } + } + } + } + }, "FeatureOnlineStoreAdminService": { "clients": { "grpc": { diff --git a/packages/google-cloud-aiplatform/src/v1/gen_ai_tuning_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/gen_ai_tuning_service_proto_list.json index 4d7a50d819b..aa1bc43bf0e 100644 --- a/packages/google-cloud-aiplatform/src/v1/gen_ai_tuning_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/gen_ai_tuning_service_proto_list.json @@ -23,6 +23,7 @@ "../../protos/google/cloud/aiplatform/v1/entity_type.proto", "../../protos/google/cloud/aiplatform/v1/env_var.proto", "../../protos/google/cloud/aiplatform/v1/evaluated_annotation.proto", + "../../protos/google/cloud/aiplatform/v1/evaluation_service.proto", "../../protos/google/cloud/aiplatform/v1/event.proto", "../../protos/google/cloud/aiplatform/v1/execution.proto", "../../protos/google/cloud/aiplatform/v1/explanation.proto", @@ -85,6 +86,7 @@ "../../protos/google/cloud/aiplatform/v1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1/prediction_service.proto", "../../protos/google/cloud/aiplatform/v1/publisher_model.proto", + "../../protos/google/cloud/aiplatform/v1/reservation_affinity.proto", "../../protos/google/cloud/aiplatform/v1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1/schedule.proto", "../../protos/google/cloud/aiplatform/v1/schedule_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/index.ts b/packages/google-cloud-aiplatform/src/v1/index.ts index dc340462908..c1cda7c2091 100644 --- a/packages/google-cloud-aiplatform/src/v1/index.ts +++ b/packages/google-cloud-aiplatform/src/v1/index.ts @@ -19,6 +19,7 @@ export {DatasetServiceClient} from './dataset_service_client'; export {DeploymentResourcePoolServiceClient} from './deployment_resource_pool_service_client'; export {EndpointServiceClient} from './endpoint_service_client'; +export {EvaluationServiceClient} from './evaluation_service_client'; export {FeatureOnlineStoreAdminServiceClient} from './feature_online_store_admin_service_client'; export {FeatureOnlineStoreServiceClient} from './feature_online_store_service_client'; export {FeatureRegistryServiceClient} from './feature_registry_service_client'; diff --git a/packages/google-cloud-aiplatform/src/v1/index_endpoint_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/index_endpoint_service_proto_list.json index 4d7a50d819b..aa1bc43bf0e 100644 --- a/packages/google-cloud-aiplatform/src/v1/index_endpoint_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/index_endpoint_service_proto_list.json @@ -23,6 +23,7 @@ "../../protos/google/cloud/aiplatform/v1/entity_type.proto", "../../protos/google/cloud/aiplatform/v1/env_var.proto", "../../protos/google/cloud/aiplatform/v1/evaluated_annotation.proto", + "../../protos/google/cloud/aiplatform/v1/evaluation_service.proto", "../../protos/google/cloud/aiplatform/v1/event.proto", "../../protos/google/cloud/aiplatform/v1/execution.proto", "../../protos/google/cloud/aiplatform/v1/explanation.proto", @@ -85,6 +86,7 @@ "../../protos/google/cloud/aiplatform/v1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1/prediction_service.proto", "../../protos/google/cloud/aiplatform/v1/publisher_model.proto", + "../../protos/google/cloud/aiplatform/v1/reservation_affinity.proto", "../../protos/google/cloud/aiplatform/v1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1/schedule.proto", "../../protos/google/cloud/aiplatform/v1/schedule_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/index_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/index_service_proto_list.json index 4d7a50d819b..aa1bc43bf0e 100644 --- a/packages/google-cloud-aiplatform/src/v1/index_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/index_service_proto_list.json @@ -23,6 +23,7 @@ "../../protos/google/cloud/aiplatform/v1/entity_type.proto", "../../protos/google/cloud/aiplatform/v1/env_var.proto", "../../protos/google/cloud/aiplatform/v1/evaluated_annotation.proto", + "../../protos/google/cloud/aiplatform/v1/evaluation_service.proto", "../../protos/google/cloud/aiplatform/v1/event.proto", "../../protos/google/cloud/aiplatform/v1/execution.proto", "../../protos/google/cloud/aiplatform/v1/explanation.proto", @@ -85,6 +86,7 @@ "../../protos/google/cloud/aiplatform/v1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1/prediction_service.proto", "../../protos/google/cloud/aiplatform/v1/publisher_model.proto", + "../../protos/google/cloud/aiplatform/v1/reservation_affinity.proto", "../../protos/google/cloud/aiplatform/v1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1/schedule.proto", "../../protos/google/cloud/aiplatform/v1/schedule_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/job_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/job_service_proto_list.json index 4d7a50d819b..aa1bc43bf0e 100644 --- a/packages/google-cloud-aiplatform/src/v1/job_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/job_service_proto_list.json @@ -23,6 +23,7 @@ "../../protos/google/cloud/aiplatform/v1/entity_type.proto", "../../protos/google/cloud/aiplatform/v1/env_var.proto", "../../protos/google/cloud/aiplatform/v1/evaluated_annotation.proto", + "../../protos/google/cloud/aiplatform/v1/evaluation_service.proto", "../../protos/google/cloud/aiplatform/v1/event.proto", "../../protos/google/cloud/aiplatform/v1/execution.proto", "../../protos/google/cloud/aiplatform/v1/explanation.proto", @@ -85,6 +86,7 @@ "../../protos/google/cloud/aiplatform/v1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1/prediction_service.proto", "../../protos/google/cloud/aiplatform/v1/publisher_model.proto", + "../../protos/google/cloud/aiplatform/v1/reservation_affinity.proto", "../../protos/google/cloud/aiplatform/v1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1/schedule.proto", "../../protos/google/cloud/aiplatform/v1/schedule_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/llm_utility_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/llm_utility_service_proto_list.json index 4d7a50d819b..aa1bc43bf0e 100644 --- a/packages/google-cloud-aiplatform/src/v1/llm_utility_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/llm_utility_service_proto_list.json @@ -23,6 +23,7 @@ "../../protos/google/cloud/aiplatform/v1/entity_type.proto", "../../protos/google/cloud/aiplatform/v1/env_var.proto", "../../protos/google/cloud/aiplatform/v1/evaluated_annotation.proto", + "../../protos/google/cloud/aiplatform/v1/evaluation_service.proto", "../../protos/google/cloud/aiplatform/v1/event.proto", "../../protos/google/cloud/aiplatform/v1/execution.proto", "../../protos/google/cloud/aiplatform/v1/explanation.proto", @@ -85,6 +86,7 @@ "../../protos/google/cloud/aiplatform/v1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1/prediction_service.proto", "../../protos/google/cloud/aiplatform/v1/publisher_model.proto", + "../../protos/google/cloud/aiplatform/v1/reservation_affinity.proto", "../../protos/google/cloud/aiplatform/v1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1/schedule.proto", "../../protos/google/cloud/aiplatform/v1/schedule_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/match_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/match_service_proto_list.json index 4d7a50d819b..aa1bc43bf0e 100644 --- a/packages/google-cloud-aiplatform/src/v1/match_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/match_service_proto_list.json @@ -23,6 +23,7 @@ "../../protos/google/cloud/aiplatform/v1/entity_type.proto", "../../protos/google/cloud/aiplatform/v1/env_var.proto", "../../protos/google/cloud/aiplatform/v1/evaluated_annotation.proto", + "../../protos/google/cloud/aiplatform/v1/evaluation_service.proto", "../../protos/google/cloud/aiplatform/v1/event.proto", "../../protos/google/cloud/aiplatform/v1/execution.proto", "../../protos/google/cloud/aiplatform/v1/explanation.proto", @@ -85,6 +86,7 @@ "../../protos/google/cloud/aiplatform/v1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1/prediction_service.proto", "../../protos/google/cloud/aiplatform/v1/publisher_model.proto", + "../../protos/google/cloud/aiplatform/v1/reservation_affinity.proto", "../../protos/google/cloud/aiplatform/v1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1/schedule.proto", "../../protos/google/cloud/aiplatform/v1/schedule_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/metadata_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/metadata_service_proto_list.json index 4d7a50d819b..aa1bc43bf0e 100644 --- a/packages/google-cloud-aiplatform/src/v1/metadata_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/metadata_service_proto_list.json @@ -23,6 +23,7 @@ "../../protos/google/cloud/aiplatform/v1/entity_type.proto", "../../protos/google/cloud/aiplatform/v1/env_var.proto", "../../protos/google/cloud/aiplatform/v1/evaluated_annotation.proto", + "../../protos/google/cloud/aiplatform/v1/evaluation_service.proto", "../../protos/google/cloud/aiplatform/v1/event.proto", "../../protos/google/cloud/aiplatform/v1/execution.proto", "../../protos/google/cloud/aiplatform/v1/explanation.proto", @@ -85,6 +86,7 @@ "../../protos/google/cloud/aiplatform/v1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1/prediction_service.proto", "../../protos/google/cloud/aiplatform/v1/publisher_model.proto", + "../../protos/google/cloud/aiplatform/v1/reservation_affinity.proto", "../../protos/google/cloud/aiplatform/v1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1/schedule.proto", "../../protos/google/cloud/aiplatform/v1/schedule_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/migration_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/migration_service_proto_list.json index 4d7a50d819b..aa1bc43bf0e 100644 --- a/packages/google-cloud-aiplatform/src/v1/migration_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/migration_service_proto_list.json @@ -23,6 +23,7 @@ "../../protos/google/cloud/aiplatform/v1/entity_type.proto", "../../protos/google/cloud/aiplatform/v1/env_var.proto", "../../protos/google/cloud/aiplatform/v1/evaluated_annotation.proto", + "../../protos/google/cloud/aiplatform/v1/evaluation_service.proto", "../../protos/google/cloud/aiplatform/v1/event.proto", "../../protos/google/cloud/aiplatform/v1/execution.proto", "../../protos/google/cloud/aiplatform/v1/explanation.proto", @@ -85,6 +86,7 @@ "../../protos/google/cloud/aiplatform/v1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1/prediction_service.proto", "../../protos/google/cloud/aiplatform/v1/publisher_model.proto", + "../../protos/google/cloud/aiplatform/v1/reservation_affinity.proto", "../../protos/google/cloud/aiplatform/v1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1/schedule.proto", "../../protos/google/cloud/aiplatform/v1/schedule_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/model_garden_service_client.ts b/packages/google-cloud-aiplatform/src/v1/model_garden_service_client.ts index 9f0509b9f04..288a978c517 100644 --- a/packages/google-cloud-aiplatform/src/v1/model_garden_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/model_garden_service_client.ts @@ -545,6 +545,8 @@ export class ModelGardenServiceClient { * @param {boolean} [request.isHuggingFaceModel] * Optional. Boolean indicates whether the requested model is a Hugging Face * model. + * @param {string} [request.huggingFaceToken] + * Optional. Token used to access Hugging Face gated models. * @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/model_garden_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/model_garden_service_proto_list.json index 4d7a50d819b..aa1bc43bf0e 100644 --- a/packages/google-cloud-aiplatform/src/v1/model_garden_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/model_garden_service_proto_list.json @@ -23,6 +23,7 @@ "../../protos/google/cloud/aiplatform/v1/entity_type.proto", "../../protos/google/cloud/aiplatform/v1/env_var.proto", "../../protos/google/cloud/aiplatform/v1/evaluated_annotation.proto", + "../../protos/google/cloud/aiplatform/v1/evaluation_service.proto", "../../protos/google/cloud/aiplatform/v1/event.proto", "../../protos/google/cloud/aiplatform/v1/execution.proto", "../../protos/google/cloud/aiplatform/v1/explanation.proto", @@ -85,6 +86,7 @@ "../../protos/google/cloud/aiplatform/v1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1/prediction_service.proto", "../../protos/google/cloud/aiplatform/v1/publisher_model.proto", + "../../protos/google/cloud/aiplatform/v1/reservation_affinity.proto", "../../protos/google/cloud/aiplatform/v1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1/schedule.proto", "../../protos/google/cloud/aiplatform/v1/schedule_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/model_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/model_service_proto_list.json index 4d7a50d819b..aa1bc43bf0e 100644 --- a/packages/google-cloud-aiplatform/src/v1/model_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/model_service_proto_list.json @@ -23,6 +23,7 @@ "../../protos/google/cloud/aiplatform/v1/entity_type.proto", "../../protos/google/cloud/aiplatform/v1/env_var.proto", "../../protos/google/cloud/aiplatform/v1/evaluated_annotation.proto", + "../../protos/google/cloud/aiplatform/v1/evaluation_service.proto", "../../protos/google/cloud/aiplatform/v1/event.proto", "../../protos/google/cloud/aiplatform/v1/execution.proto", "../../protos/google/cloud/aiplatform/v1/explanation.proto", @@ -85,6 +86,7 @@ "../../protos/google/cloud/aiplatform/v1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1/prediction_service.proto", "../../protos/google/cloud/aiplatform/v1/publisher_model.proto", + "../../protos/google/cloud/aiplatform/v1/reservation_affinity.proto", "../../protos/google/cloud/aiplatform/v1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1/schedule.proto", "../../protos/google/cloud/aiplatform/v1/schedule_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/notebook_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/notebook_service_proto_list.json index 4d7a50d819b..aa1bc43bf0e 100644 --- a/packages/google-cloud-aiplatform/src/v1/notebook_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/notebook_service_proto_list.json @@ -23,6 +23,7 @@ "../../protos/google/cloud/aiplatform/v1/entity_type.proto", "../../protos/google/cloud/aiplatform/v1/env_var.proto", "../../protos/google/cloud/aiplatform/v1/evaluated_annotation.proto", + "../../protos/google/cloud/aiplatform/v1/evaluation_service.proto", "../../protos/google/cloud/aiplatform/v1/event.proto", "../../protos/google/cloud/aiplatform/v1/execution.proto", "../../protos/google/cloud/aiplatform/v1/explanation.proto", @@ -85,6 +86,7 @@ "../../protos/google/cloud/aiplatform/v1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1/prediction_service.proto", "../../protos/google/cloud/aiplatform/v1/publisher_model.proto", + "../../protos/google/cloud/aiplatform/v1/reservation_affinity.proto", "../../protos/google/cloud/aiplatform/v1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1/schedule.proto", "../../protos/google/cloud/aiplatform/v1/schedule_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/persistent_resource_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/persistent_resource_service_proto_list.json index 4d7a50d819b..aa1bc43bf0e 100644 --- a/packages/google-cloud-aiplatform/src/v1/persistent_resource_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/persistent_resource_service_proto_list.json @@ -23,6 +23,7 @@ "../../protos/google/cloud/aiplatform/v1/entity_type.proto", "../../protos/google/cloud/aiplatform/v1/env_var.proto", "../../protos/google/cloud/aiplatform/v1/evaluated_annotation.proto", + "../../protos/google/cloud/aiplatform/v1/evaluation_service.proto", "../../protos/google/cloud/aiplatform/v1/event.proto", "../../protos/google/cloud/aiplatform/v1/execution.proto", "../../protos/google/cloud/aiplatform/v1/explanation.proto", @@ -85,6 +86,7 @@ "../../protos/google/cloud/aiplatform/v1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1/prediction_service.proto", "../../protos/google/cloud/aiplatform/v1/publisher_model.proto", + "../../protos/google/cloud/aiplatform/v1/reservation_affinity.proto", "../../protos/google/cloud/aiplatform/v1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1/schedule.proto", "../../protos/google/cloud/aiplatform/v1/schedule_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/pipeline_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/pipeline_service_proto_list.json index 4d7a50d819b..aa1bc43bf0e 100644 --- a/packages/google-cloud-aiplatform/src/v1/pipeline_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/pipeline_service_proto_list.json @@ -23,6 +23,7 @@ "../../protos/google/cloud/aiplatform/v1/entity_type.proto", "../../protos/google/cloud/aiplatform/v1/env_var.proto", "../../protos/google/cloud/aiplatform/v1/evaluated_annotation.proto", + "../../protos/google/cloud/aiplatform/v1/evaluation_service.proto", "../../protos/google/cloud/aiplatform/v1/event.proto", "../../protos/google/cloud/aiplatform/v1/execution.proto", "../../protos/google/cloud/aiplatform/v1/explanation.proto", @@ -85,6 +86,7 @@ "../../protos/google/cloud/aiplatform/v1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1/prediction_service.proto", "../../protos/google/cloud/aiplatform/v1/publisher_model.proto", + "../../protos/google/cloud/aiplatform/v1/reservation_affinity.proto", "../../protos/google/cloud/aiplatform/v1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1/schedule.proto", "../../protos/google/cloud/aiplatform/v1/schedule_service.proto", 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 107185721a1..52d23a024d0 100644 --- a/packages/google-cloud-aiplatform/src/v1/prediction_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/prediction_service_client.ts @@ -1138,9 +1138,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. * @@ -1410,9 +1415,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. * diff --git a/packages/google-cloud-aiplatform/src/v1/prediction_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/prediction_service_proto_list.json index 4d7a50d819b..aa1bc43bf0e 100644 --- a/packages/google-cloud-aiplatform/src/v1/prediction_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/prediction_service_proto_list.json @@ -23,6 +23,7 @@ "../../protos/google/cloud/aiplatform/v1/entity_type.proto", "../../protos/google/cloud/aiplatform/v1/env_var.proto", "../../protos/google/cloud/aiplatform/v1/evaluated_annotation.proto", + "../../protos/google/cloud/aiplatform/v1/evaluation_service.proto", "../../protos/google/cloud/aiplatform/v1/event.proto", "../../protos/google/cloud/aiplatform/v1/execution.proto", "../../protos/google/cloud/aiplatform/v1/explanation.proto", @@ -85,6 +86,7 @@ "../../protos/google/cloud/aiplatform/v1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1/prediction_service.proto", "../../protos/google/cloud/aiplatform/v1/publisher_model.proto", + "../../protos/google/cloud/aiplatform/v1/reservation_affinity.proto", "../../protos/google/cloud/aiplatform/v1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1/schedule.proto", "../../protos/google/cloud/aiplatform/v1/schedule_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/schedule_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/schedule_service_proto_list.json index 4d7a50d819b..aa1bc43bf0e 100644 --- a/packages/google-cloud-aiplatform/src/v1/schedule_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/schedule_service_proto_list.json @@ -23,6 +23,7 @@ "../../protos/google/cloud/aiplatform/v1/entity_type.proto", "../../protos/google/cloud/aiplatform/v1/env_var.proto", "../../protos/google/cloud/aiplatform/v1/evaluated_annotation.proto", + "../../protos/google/cloud/aiplatform/v1/evaluation_service.proto", "../../protos/google/cloud/aiplatform/v1/event.proto", "../../protos/google/cloud/aiplatform/v1/execution.proto", "../../protos/google/cloud/aiplatform/v1/explanation.proto", @@ -85,6 +86,7 @@ "../../protos/google/cloud/aiplatform/v1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1/prediction_service.proto", "../../protos/google/cloud/aiplatform/v1/publisher_model.proto", + "../../protos/google/cloud/aiplatform/v1/reservation_affinity.proto", "../../protos/google/cloud/aiplatform/v1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1/schedule.proto", "../../protos/google/cloud/aiplatform/v1/schedule_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/specialist_pool_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/specialist_pool_service_proto_list.json index 4d7a50d819b..aa1bc43bf0e 100644 --- a/packages/google-cloud-aiplatform/src/v1/specialist_pool_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/specialist_pool_service_proto_list.json @@ -23,6 +23,7 @@ "../../protos/google/cloud/aiplatform/v1/entity_type.proto", "../../protos/google/cloud/aiplatform/v1/env_var.proto", "../../protos/google/cloud/aiplatform/v1/evaluated_annotation.proto", + "../../protos/google/cloud/aiplatform/v1/evaluation_service.proto", "../../protos/google/cloud/aiplatform/v1/event.proto", "../../protos/google/cloud/aiplatform/v1/execution.proto", "../../protos/google/cloud/aiplatform/v1/explanation.proto", @@ -85,6 +86,7 @@ "../../protos/google/cloud/aiplatform/v1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1/prediction_service.proto", "../../protos/google/cloud/aiplatform/v1/publisher_model.proto", + "../../protos/google/cloud/aiplatform/v1/reservation_affinity.proto", "../../protos/google/cloud/aiplatform/v1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1/schedule.proto", "../../protos/google/cloud/aiplatform/v1/schedule_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/tensorboard_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/tensorboard_service_proto_list.json index 4d7a50d819b..aa1bc43bf0e 100644 --- a/packages/google-cloud-aiplatform/src/v1/tensorboard_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/tensorboard_service_proto_list.json @@ -23,6 +23,7 @@ "../../protos/google/cloud/aiplatform/v1/entity_type.proto", "../../protos/google/cloud/aiplatform/v1/env_var.proto", "../../protos/google/cloud/aiplatform/v1/evaluated_annotation.proto", + "../../protos/google/cloud/aiplatform/v1/evaluation_service.proto", "../../protos/google/cloud/aiplatform/v1/event.proto", "../../protos/google/cloud/aiplatform/v1/execution.proto", "../../protos/google/cloud/aiplatform/v1/explanation.proto", @@ -85,6 +86,7 @@ "../../protos/google/cloud/aiplatform/v1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1/prediction_service.proto", "../../protos/google/cloud/aiplatform/v1/publisher_model.proto", + "../../protos/google/cloud/aiplatform/v1/reservation_affinity.proto", "../../protos/google/cloud/aiplatform/v1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1/schedule.proto", "../../protos/google/cloud/aiplatform/v1/schedule_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/vizier_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1/vizier_service_proto_list.json index 4d7a50d819b..aa1bc43bf0e 100644 --- a/packages/google-cloud-aiplatform/src/v1/vizier_service_proto_list.json +++ b/packages/google-cloud-aiplatform/src/v1/vizier_service_proto_list.json @@ -23,6 +23,7 @@ "../../protos/google/cloud/aiplatform/v1/entity_type.proto", "../../protos/google/cloud/aiplatform/v1/env_var.proto", "../../protos/google/cloud/aiplatform/v1/evaluated_annotation.proto", + "../../protos/google/cloud/aiplatform/v1/evaluation_service.proto", "../../protos/google/cloud/aiplatform/v1/event.proto", "../../protos/google/cloud/aiplatform/v1/execution.proto", "../../protos/google/cloud/aiplatform/v1/explanation.proto", @@ -85,6 +86,7 @@ "../../protos/google/cloud/aiplatform/v1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1/prediction_service.proto", "../../protos/google/cloud/aiplatform/v1/publisher_model.proto", + "../../protos/google/cloud/aiplatform/v1/reservation_affinity.proto", "../../protos/google/cloud/aiplatform/v1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1/schedule.proto", "../../protos/google/cloud/aiplatform/v1/schedule_service.proto", 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 26339182429..3255894b4d5 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 @@ -101,6 +101,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_execution_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/reservation_affinity.proto", "../../protos/google/cloud/aiplatform/v1beta1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule_service.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 26339182429..3255894b4d5 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 @@ -101,6 +101,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_execution_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/reservation_affinity.proto", "../../protos/google/cloud/aiplatform/v1beta1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule_service.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 26339182429..3255894b4d5 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 @@ -101,6 +101,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_execution_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/reservation_affinity.proto", "../../protos/google/cloud/aiplatform/v1beta1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/evaluation_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/evaluation_service_client.ts index d80ef9dd346..65b36f3087e 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/evaluation_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/evaluation_service_client.ts @@ -597,6 +597,10 @@ export class EvaluationServiceClient { * @param {google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInput} request.questionAnsweringCorrectnessInput * Input for question answering correctness * metric. + * @param {google.cloud.aiplatform.v1beta1.PointwiseMetricInput} request.pointwiseMetricInput + * Input for pointwise metric. + * @param {google.cloud.aiplatform.v1beta1.PairwiseMetricInput} request.pairwiseMetricInput + * Input for pairwise metric. * @param {google.cloud.aiplatform.v1beta1.ToolCallValidInput} request.toolCallValidInput * Tool call metric instances. * Input for tool call valid metric. 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 26339182429..3255894b4d5 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 @@ -101,6 +101,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_execution_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/reservation_affinity.proto", "../../protos/google/cloud/aiplatform/v1beta1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule_service.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 26339182429..3255894b4d5 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 @@ -101,6 +101,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_execution_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/reservation_affinity.proto", "../../protos/google/cloud/aiplatform/v1beta1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule_service.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 26339182429..3255894b4d5 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 @@ -101,6 +101,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_execution_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/reservation_affinity.proto", "../../protos/google/cloud/aiplatform/v1beta1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule_service.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 26339182429..3255894b4d5 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 @@ -101,6 +101,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_execution_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/reservation_affinity.proto", "../../protos/google/cloud/aiplatform/v1beta1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule_service.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 26339182429..3255894b4d5 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 @@ -101,6 +101,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_execution_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/reservation_affinity.proto", "../../protos/google/cloud/aiplatform/v1beta1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule_service.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 26339182429..3255894b4d5 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 @@ -101,6 +101,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_execution_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/reservation_affinity.proto", "../../protos/google/cloud/aiplatform/v1beta1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule_service.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 26339182429..3255894b4d5 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 @@ -101,6 +101,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_execution_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/reservation_affinity.proto", "../../protos/google/cloud/aiplatform/v1beta1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule_service.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 26339182429..3255894b4d5 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 @@ -101,6 +101,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_execution_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/reservation_affinity.proto", "../../protos/google/cloud/aiplatform/v1beta1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule_service.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 26339182429..3255894b4d5 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 @@ -101,6 +101,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_execution_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/reservation_affinity.proto", "../../protos/google/cloud/aiplatform/v1beta1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule_service.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 26339182429..3255894b4d5 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 @@ -101,6 +101,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_execution_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/reservation_affinity.proto", "../../protos/google/cloud/aiplatform/v1beta1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule_service.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 26339182429..3255894b4d5 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 @@ -101,6 +101,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_execution_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/reservation_affinity.proto", "../../protos/google/cloud/aiplatform/v1beta1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule_service.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 26339182429..3255894b4d5 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 @@ -101,6 +101,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_execution_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/reservation_affinity.proto", "../../protos/google/cloud/aiplatform/v1beta1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule_service.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 26339182429..3255894b4d5 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 @@ -101,6 +101,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_execution_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/reservation_affinity.proto", "../../protos/google/cloud/aiplatform/v1beta1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule_service.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 26339182429..3255894b4d5 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 @@ -101,6 +101,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_execution_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/reservation_affinity.proto", "../../protos/google/cloud/aiplatform/v1beta1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule_service.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 26339182429..3255894b4d5 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 @@ -101,6 +101,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_execution_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/reservation_affinity.proto", "../../protos/google/cloud/aiplatform/v1beta1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule_service.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 26339182429..3255894b4d5 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 @@ -101,6 +101,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_execution_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/reservation_affinity.proto", "../../protos/google/cloud/aiplatform/v1beta1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule_service.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 26339182429..3255894b4d5 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 @@ -101,6 +101,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_execution_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/reservation_affinity.proto", "../../protos/google/cloud/aiplatform/v1beta1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule_service.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/model_garden_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/model_garden_service_client.ts index e2b10c35f78..38d5ec00fa8 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/model_garden_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/model_garden_service_client.ts @@ -583,6 +583,8 @@ export class ModelGardenServiceClient { * @param {boolean} [request.isHuggingFaceModel] * Optional. Boolean indicates whether the requested model is a Hugging Face * model. + * @param {string} [request.huggingFaceToken] + * Optional. Token used to access Hugging Face gated models. * @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/v1beta1/model_garden_service_proto_list.json b/packages/google-cloud-aiplatform/src/v1beta1/model_garden_service_proto_list.json index 26339182429..3255894b4d5 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 @@ -101,6 +101,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_execution_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/reservation_affinity.proto", "../../protos/google/cloud/aiplatform/v1beta1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule_service.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 26339182429..3255894b4d5 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 @@ -101,6 +101,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_execution_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/reservation_affinity.proto", "../../protos/google/cloud/aiplatform/v1beta1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule_service.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 26339182429..3255894b4d5 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 @@ -101,6 +101,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_execution_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/reservation_affinity.proto", "../../protos/google/cloud/aiplatform/v1beta1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule_service.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 26339182429..3255894b4d5 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 @@ -101,6 +101,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_execution_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/reservation_affinity.proto", "../../protos/google/cloud/aiplatform/v1beta1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule_service.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 26339182429..3255894b4d5 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 @@ -101,6 +101,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_execution_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/reservation_affinity.proto", "../../protos/google/cloud/aiplatform/v1beta1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule_service.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 26339182429..3255894b4d5 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 @@ -101,6 +101,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_execution_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/reservation_affinity.proto", "../../protos/google/cloud/aiplatform/v1beta1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule_service.proto", 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 26339182429..3255894b4d5 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 @@ -101,6 +101,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_execution_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/reservation_affinity.proto", "../../protos/google/cloud/aiplatform/v1beta1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule_service.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 26339182429..3255894b4d5 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 @@ -101,6 +101,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_execution_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/reservation_affinity.proto", "../../protos/google/cloud/aiplatform/v1beta1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule_service.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 26339182429..3255894b4d5 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 @@ -101,6 +101,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_execution_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/reservation_affinity.proto", "../../protos/google/cloud/aiplatform/v1beta1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule_service.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 26339182429..3255894b4d5 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 @@ -101,6 +101,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_execution_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/reservation_affinity.proto", "../../protos/google/cloud/aiplatform/v1beta1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule_service.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 26339182429..3255894b4d5 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 @@ -101,6 +101,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_execution_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/reservation_affinity.proto", "../../protos/google/cloud/aiplatform/v1beta1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule_service.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 26339182429..3255894b4d5 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 @@ -101,6 +101,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_execution_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/reservation_affinity.proto", "../../protos/google/cloud/aiplatform/v1beta1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule_service.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 26339182429..3255894b4d5 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 @@ -101,6 +101,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_execution_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/reservation_affinity.proto", "../../protos/google/cloud/aiplatform/v1beta1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule_service.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 26339182429..3255894b4d5 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 @@ -101,6 +101,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_execution_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/reservation_affinity.proto", "../../protos/google/cloud/aiplatform/v1beta1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule_service.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 26339182429..3255894b4d5 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 @@ -101,6 +101,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_execution_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/reasoning_engine_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/reservation_affinity.proto", "../../protos/google/cloud/aiplatform/v1beta1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule.proto", "../../protos/google/cloud/aiplatform/v1beta1/schedule_service.proto", diff --git a/packages/google-cloud-aiplatform/system-test/fixtures/sample/src/index.js b/packages/google-cloud-aiplatform/system-test/fixtures/sample/src/index.js index ceee306c982..a0352f6c1ce 100644 --- a/packages/google-cloud-aiplatform/system-test/fixtures/sample/src/index.js +++ b/packages/google-cloud-aiplatform/system-test/fixtures/sample/src/index.js @@ -24,6 +24,7 @@ function main() { const deploymentResourcePoolServiceClient = new aiplatform.DeploymentResourcePoolServiceClient(); const endpointServiceClient = new aiplatform.EndpointServiceClient(); + const evaluationServiceClient = new aiplatform.EvaluationServiceClient(); const featureOnlineStoreAdminServiceClient = new aiplatform.FeatureOnlineStoreAdminServiceClient(); const featureOnlineStoreServiceClient = diff --git a/packages/google-cloud-aiplatform/system-test/fixtures/sample/src/index.ts b/packages/google-cloud-aiplatform/system-test/fixtures/sample/src/index.ts index 699cc85d7d4..2fdb4cfcce9 100644 --- a/packages/google-cloud-aiplatform/system-test/fixtures/sample/src/index.ts +++ b/packages/google-cloud-aiplatform/system-test/fixtures/sample/src/index.ts @@ -20,6 +20,7 @@ import { DatasetServiceClient, DeploymentResourcePoolServiceClient, EndpointServiceClient, + EvaluationServiceClient, FeatureOnlineStoreAdminServiceClient, FeatureOnlineStoreServiceClient, FeatureRegistryServiceClient, @@ -57,6 +58,9 @@ function doStuffWithDeploymentResourcePoolServiceClient( function doStuffWithEndpointServiceClient(client: EndpointServiceClient) { client.close(); } +function doStuffWithEvaluationServiceClient(client: EvaluationServiceClient) { + client.close(); +} function doStuffWithFeatureOnlineStoreAdminServiceClient( client: FeatureOnlineStoreAdminServiceClient ) { @@ -157,6 +161,9 @@ function main() { const endpointServiceClient = new EndpointServiceClient(); doStuffWithEndpointServiceClient(endpointServiceClient); // check that the client instance can be created + const evaluationServiceClient = new EvaluationServiceClient(); + doStuffWithEvaluationServiceClient(evaluationServiceClient); + // check that the client instance can be created const featureOnlineStoreAdminServiceClient = new FeatureOnlineStoreAdminServiceClient(); doStuffWithFeatureOnlineStoreAdminServiceClient( diff --git a/packages/google-cloud-aiplatform/test/gapic_evaluation_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_evaluation_service_v1.ts new file mode 100644 index 00000000000..45405006f30 --- /dev/null +++ b/packages/google-cloud-aiplatform/test/gapic_evaluation_service_v1.ts @@ -0,0 +1,4792 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +import * as protos from '../protos/protos'; +import * as assert from 'assert'; +import * as sinon from 'sinon'; +import {SinonStub} from 'sinon'; +import {describe, it} from 'mocha'; +import * as evaluationserviceModule from '../src'; + +import {protobuf, IamProtos, LocationProtos} from 'google-gax'; + +// Dynamically loaded proto JSON is needed to get the type information +// to fill in default values for request objects +const root = protobuf.Root.fromJSON( + require('../protos/protos.json') +).resolveAll(); + +// eslint-disable-next-line @typescript-eslint/no-unused-vars +function getTypeDefaultValue(typeName: string, fields: string[]) { + let type = root.lookupType(typeName) as protobuf.Type; + for (const field of fields.slice(0, -1)) { + type = type.fields[field]?.resolvedType as protobuf.Type; + } + return type.fields[fields[fields.length - 1]]?.defaultValue; +} + +function generateSampleMessage(instance: T) { + const filledObject = ( + instance.constructor as typeof protobuf.Message + ).toObject(instance as protobuf.Message, {defaults: true}); + return (instance.constructor as typeof protobuf.Message).fromObject( + filledObject + ) as T; +} + +function stubSimpleCall(response?: ResponseType, error?: Error) { + return error + ? sinon.stub().rejects(error) + : sinon.stub().resolves([response]); +} + +function stubSimpleCallWithCallback( + response?: ResponseType, + error?: Error +) { + return error + ? sinon.stub().callsArgWith(2, error) + : sinon.stub().callsArgWith(2, null, response); +} + +function stubAsyncIterationCall( + responses?: ResponseType[], + error?: Error +) { + let counter = 0; + const asyncIterable = { + [Symbol.asyncIterator]() { + return { + async next() { + if (error) { + return Promise.reject(error); + } + if (counter >= responses!.length) { + return Promise.resolve({done: true, value: undefined}); + } + return Promise.resolve({done: false, value: responses![counter++]}); + }, + }; + }, + }; + return sinon.stub().returns(asyncIterable); +} + +describe('v1.EvaluationServiceClient', () => { + describe('Common methods', () => { + it('has apiEndpoint', () => { + const client = new evaluationserviceModule.v1.EvaluationServiceClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'aiplatform.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new evaluationserviceModule.v1.EvaluationServiceClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, 'googleapis.com'); + }); + + if ( + typeof process === 'object' && + typeof process.emitWarning === 'function' + ) { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = + evaluationserviceModule.v1.EvaluationServiceClient.servicePath; + assert.strictEqual(servicePath, 'aiplatform.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = + evaluationserviceModule.v1.EvaluationServiceClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'aiplatform.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets apiEndpoint according to universe domain camelCase', () => { + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + universeDomain: 'example.com', + }); + const servicePath = client.apiEndpoint; + assert.strictEqual(servicePath, 'aiplatform.example.com'); + }); + + it('sets apiEndpoint according to universe domain snakeCase', () => { + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + universe_domain: 'example.com', + }); + const servicePath = client.apiEndpoint; + assert.strictEqual(servicePath, 'aiplatform.example.com'); + }); + + if (typeof process === 'object' && 'env' in process) { + describe('GOOGLE_CLOUD_UNIVERSE_DOMAIN environment variable', () => { + it('sets apiEndpoint from environment variable', () => { + const saved = process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']; + process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] = 'example.com'; + const client = + new evaluationserviceModule.v1.EvaluationServiceClient(); + const servicePath = client.apiEndpoint; + assert.strictEqual(servicePath, 'aiplatform.example.com'); + if (saved) { + process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] = saved; + } else { + delete process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']; + } + }); + + it('value configured in code has priority over environment variable', () => { + const saved = process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']; + process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] = 'example.com'; + const client = new evaluationserviceModule.v1.EvaluationServiceClient( + {universeDomain: 'configured.example.com'} + ); + const servicePath = client.apiEndpoint; + assert.strictEqual(servicePath, 'aiplatform.configured.example.com'); + if (saved) { + process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] = saved; + } else { + delete process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']; + } + }); + }); + } + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { + new evaluationserviceModule.v1.EvaluationServiceClient({ + universe_domain: 'example.com', + universeDomain: 'example.net', + }); + }); + }); + + it('has port', () => { + const port = evaluationserviceModule.v1.EvaluationServiceClient.port; + assert(port); + assert(typeof port === 'number'); + }); + + it('should create a client with no option', () => { + const client = new evaluationserviceModule.v1.EvaluationServiceClient(); + assert(client); + }); + + it('should create a client with gRPC fallback', () => { + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + fallback: true, + }); + assert(client); + }); + + it('has initialize method and supports deferred initialization', async () => { + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.evaluationServiceStub, undefined); + await client.initialize(); + assert(client.evaluationServiceStub); + }); + + it('has close method for the initialized client', done => { + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.evaluationServiceStub); + client.close().then(() => { + done(); + }); + }); + + it('has close method for the non-initialized client', done => { + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.evaluationServiceStub, undefined); + client.close().then(() => { + done(); + }); + }); + + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); + }); + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); + }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); + }); + }); + + describe('evaluateInstances', () => { + it('invokes evaluateInstances without error', async () => { + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.EvaluateInstancesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.EvaluateInstancesRequest', + ['location'] + ); + request.location = defaultValue1; + const expectedHeaderRequestParams = `location=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.EvaluateInstancesResponse() + ); + client.innerApiCalls.evaluateInstances = stubSimpleCall(expectedResponse); + const [response] = await client.evaluateInstances(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.evaluateInstances as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.evaluateInstances as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes evaluateInstances without error using callback', async () => { + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.EvaluateInstancesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.EvaluateInstancesRequest', + ['location'] + ); + request.location = defaultValue1; + const expectedHeaderRequestParams = `location=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.EvaluateInstancesResponse() + ); + client.innerApiCalls.evaluateInstances = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.evaluateInstances( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1.IEvaluateInstancesResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.evaluateInstances as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.evaluateInstances as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes evaluateInstances with error', async () => { + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.EvaluateInstancesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.EvaluateInstancesRequest', + ['location'] + ); + request.location = defaultValue1; + const expectedHeaderRequestParams = `location=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.evaluateInstances = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.evaluateInstances(request), expectedError); + const actualRequest = ( + client.innerApiCalls.evaluateInstances as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.evaluateInstances as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes evaluateInstances with closed client', async () => { + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.EvaluateInstancesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.EvaluateInstancesRequest', + ['location'] + ); + request.location = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.evaluateInstances(request), expectedError); + }); + }); + describe('getIamPolicy', () => { + it('invokes getIamPolicy without error', async () => { + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.getIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getIamPolicy without error using callback', async () => { + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.getIamPolicy as SinonStub).getCall(0)); + }); + it('invokes getIamPolicy with error', async () => { + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.getIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.getIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('setIamPolicy', () => { + it('invokes setIamPolicy without error', async () => { + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.setIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes setIamPolicy without error using callback', async () => { + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.setIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.setIamPolicy as SinonStub).getCall(0)); + }); + it('invokes setIamPolicy with error', async () => { + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.setIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.setIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('testIamPermissions', () => { + it('invokes testIamPermissions without error', async () => { + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = stubSimpleCall(expectedResponse); + const response = await client.testIamPermissions( + request, + expectedOptions + ); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes testIamPermissions without error using callback', async () => { + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.testIamPermissions( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.TestIamPermissionsResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.testIamPermissions as SinonStub).getCall(0)); + }); + it('invokes testIamPermissions with error', async () => { + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.testIamPermissions = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.testIamPermissions(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('getLocation', () => { + it('invokes getLocation without error', async () => { + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = stubSimpleCall(expectedResponse); + const response = await client.getLocation(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getLocation without error using callback', async () => { + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getLocation( + request, + expectedOptions, + ( + err?: Error | null, + result?: LocationProtos.google.cloud.location.ILocation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.locationsClient.getLocation as SinonStub).getCall(0)); + }); + it('invokes getLocation with error', async () => { + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.locationsClient.getLocation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.getLocation(request, expectedOptions), + expectedError + ); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('listLocationsAsync', () => { + it('uses async iteration with listLocations without error', async () => { + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedResponse = [ + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + ]; + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + const iterable = client.listLocationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + it('uses async iteration with listLocations with error', async () => { + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('expected'); + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listLocationsAsync(request); + await assert.rejects(async () => { + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); + + describe('Path templates', () => { + describe('annotation', () => { + const fakePath = '/rendered/path/annotation'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + data_item: 'dataItemValue', + annotation: 'annotationValue', + }; + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.annotationPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.annotationPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('annotationPath', () => { + const result = client.annotationPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'dataItemValue', + 'annotationValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.annotationPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromAnnotationName', () => { + const result = client.matchProjectFromAnnotationName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.annotationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromAnnotationName', () => { + const result = client.matchLocationFromAnnotationName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.annotationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromAnnotationName', () => { + const result = client.matchDatasetFromAnnotationName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.annotationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDataItemFromAnnotationName', () => { + const result = client.matchDataItemFromAnnotationName(fakePath); + assert.strictEqual(result, 'dataItemValue'); + assert( + (client.pathTemplates.annotationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchAnnotationFromAnnotationName', () => { + const result = client.matchAnnotationFromAnnotationName(fakePath); + assert.strictEqual(result, 'annotationValue'); + assert( + (client.pathTemplates.annotationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('annotationSpec', () => { + const fakePath = '/rendered/path/annotationSpec'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + annotation_spec: 'annotationSpecValue', + }; + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.annotationSpecPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.annotationSpecPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('annotationSpecPath', () => { + const result = client.annotationSpecPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'annotationSpecValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.annotationSpecPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromAnnotationSpecName', () => { + const result = client.matchProjectFromAnnotationSpecName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.annotationSpecPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromAnnotationSpecName', () => { + const result = client.matchLocationFromAnnotationSpecName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.annotationSpecPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromAnnotationSpecName', () => { + const result = client.matchDatasetFromAnnotationSpecName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.annotationSpecPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchAnnotationSpecFromAnnotationSpecName', () => { + const result = + client.matchAnnotationSpecFromAnnotationSpecName(fakePath); + assert.strictEqual(result, 'annotationSpecValue'); + assert( + (client.pathTemplates.annotationSpecPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('artifact', () => { + const fakePath = '/rendered/path/artifact'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + metadata_store: 'metadataStoreValue', + artifact: 'artifactValue', + }; + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.artifactPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.artifactPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('artifactPath', () => { + const result = client.artifactPath( + 'projectValue', + 'locationValue', + 'metadataStoreValue', + 'artifactValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.artifactPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromArtifactName', () => { + const result = client.matchProjectFromArtifactName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.artifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromArtifactName', () => { + const result = client.matchLocationFromArtifactName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.artifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataStoreFromArtifactName', () => { + const result = client.matchMetadataStoreFromArtifactName(fakePath); + assert.strictEqual(result, 'metadataStoreValue'); + assert( + (client.pathTemplates.artifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchArtifactFromArtifactName', () => { + const result = client.matchArtifactFromArtifactName(fakePath); + assert.strictEqual(result, 'artifactValue'); + assert( + (client.pathTemplates.artifactPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('batchPredictionJob', () => { + const fakePath = '/rendered/path/batchPredictionJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + batch_prediction_job: 'batchPredictionJobValue', + }; + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.batchPredictionJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.batchPredictionJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('batchPredictionJobPath', () => { + const result = client.batchPredictionJobPath( + 'projectValue', + 'locationValue', + 'batchPredictionJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.batchPredictionJobPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromBatchPredictionJobName', () => { + const result = client.matchProjectFromBatchPredictionJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.batchPredictionJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromBatchPredictionJobName', () => { + const result = client.matchLocationFromBatchPredictionJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.batchPredictionJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchBatchPredictionJobFromBatchPredictionJobName', () => { + const result = + client.matchBatchPredictionJobFromBatchPredictionJobName(fakePath); + assert.strictEqual(result, 'batchPredictionJobValue'); + assert( + ( + client.pathTemplates.batchPredictionJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('context', () => { + const fakePath = '/rendered/path/context'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + metadata_store: 'metadataStoreValue', + context: 'contextValue', + }; + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.contextPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.contextPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('contextPath', () => { + const result = client.contextPath( + 'projectValue', + 'locationValue', + 'metadataStoreValue', + 'contextValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.contextPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromContextName', () => { + const result = client.matchProjectFromContextName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.contextPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromContextName', () => { + const result = client.matchLocationFromContextName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.contextPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataStoreFromContextName', () => { + const result = client.matchMetadataStoreFromContextName(fakePath); + assert.strictEqual(result, 'metadataStoreValue'); + assert( + (client.pathTemplates.contextPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchContextFromContextName', () => { + const result = client.matchContextFromContextName(fakePath); + assert.strictEqual(result, 'contextValue'); + assert( + (client.pathTemplates.contextPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('customJob', () => { + const fakePath = '/rendered/path/customJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + custom_job: 'customJobValue', + }; + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.customJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.customJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('customJobPath', () => { + const result = client.customJobPath( + 'projectValue', + 'locationValue', + 'customJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.customJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromCustomJobName', () => { + const result = client.matchProjectFromCustomJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.customJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromCustomJobName', () => { + const result = client.matchLocationFromCustomJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.customJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchCustomJobFromCustomJobName', () => { + const result = client.matchCustomJobFromCustomJobName(fakePath); + assert.strictEqual(result, 'customJobValue'); + assert( + (client.pathTemplates.customJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('dataItem', () => { + const fakePath = '/rendered/path/dataItem'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + data_item: 'dataItemValue', + }; + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.dataItemPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.dataItemPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('dataItemPath', () => { + const result = client.dataItemPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'dataItemValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.dataItemPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromDataItemName', () => { + const result = client.matchProjectFromDataItemName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.dataItemPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromDataItemName', () => { + const result = client.matchLocationFromDataItemName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.dataItemPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromDataItemName', () => { + const result = client.matchDatasetFromDataItemName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.dataItemPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDataItemFromDataItemName', () => { + const result = client.matchDataItemFromDataItemName(fakePath); + assert.strictEqual(result, 'dataItemValue'); + assert( + (client.pathTemplates.dataItemPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('dataLabelingJob', () => { + const fakePath = '/rendered/path/dataLabelingJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + data_labeling_job: 'dataLabelingJobValue', + }; + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.dataLabelingJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.dataLabelingJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('dataLabelingJobPath', () => { + const result = client.dataLabelingJobPath( + 'projectValue', + 'locationValue', + 'dataLabelingJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.dataLabelingJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromDataLabelingJobName', () => { + const result = client.matchProjectFromDataLabelingJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.dataLabelingJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromDataLabelingJobName', () => { + const result = client.matchLocationFromDataLabelingJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.dataLabelingJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDataLabelingJobFromDataLabelingJobName', () => { + const result = + client.matchDataLabelingJobFromDataLabelingJobName(fakePath); + assert.strictEqual(result, 'dataLabelingJobValue'); + assert( + (client.pathTemplates.dataLabelingJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('dataset', () => { + const fakePath = '/rendered/path/dataset'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + }; + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.datasetPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.datasetPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('datasetPath', () => { + const result = client.datasetPath( + 'projectValue', + 'locationValue', + 'datasetValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.datasetPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromDatasetName', () => { + const result = client.matchProjectFromDatasetName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.datasetPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromDatasetName', () => { + const result = client.matchLocationFromDatasetName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.datasetPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromDatasetName', () => { + const result = client.matchDatasetFromDatasetName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.datasetPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('datasetVersion', () => { + const fakePath = '/rendered/path/datasetVersion'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + dataset_version: 'datasetVersionValue', + }; + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.datasetVersionPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.datasetVersionPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('datasetVersionPath', () => { + const result = client.datasetVersionPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'datasetVersionValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.datasetVersionPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromDatasetVersionName', () => { + const result = client.matchProjectFromDatasetVersionName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.datasetVersionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromDatasetVersionName', () => { + const result = client.matchLocationFromDatasetVersionName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.datasetVersionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromDatasetVersionName', () => { + const result = client.matchDatasetFromDatasetVersionName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.datasetVersionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetVersionFromDatasetVersionName', () => { + const result = + client.matchDatasetVersionFromDatasetVersionName(fakePath); + assert.strictEqual(result, 'datasetVersionValue'); + assert( + (client.pathTemplates.datasetVersionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('deploymentResourcePool', () => { + const fakePath = '/rendered/path/deploymentResourcePool'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + deployment_resource_pool: 'deploymentResourcePoolValue', + }; + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.deploymentResourcePoolPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.deploymentResourcePoolPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('deploymentResourcePoolPath', () => { + const result = client.deploymentResourcePoolPath( + 'projectValue', + 'locationValue', + 'deploymentResourcePoolValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.deploymentResourcePoolPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromDeploymentResourcePoolName', () => { + const result = + client.matchProjectFromDeploymentResourcePoolName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.deploymentResourcePoolPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromDeploymentResourcePoolName', () => { + const result = + client.matchLocationFromDeploymentResourcePoolName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.deploymentResourcePoolPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDeploymentResourcePoolFromDeploymentResourcePoolName', () => { + const result = + client.matchDeploymentResourcePoolFromDeploymentResourcePoolName( + fakePath + ); + assert.strictEqual(result, 'deploymentResourcePoolValue'); + assert( + ( + client.pathTemplates.deploymentResourcePoolPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('entityType', () => { + const fakePath = '/rendered/path/entityType'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + featurestore: 'featurestoreValue', + entity_type: 'entityTypeValue', + }; + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.entityTypePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.entityTypePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('entityTypePath', () => { + const result = client.entityTypePath( + 'projectValue', + 'locationValue', + 'featurestoreValue', + 'entityTypeValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.entityTypePathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromEntityTypeName', () => { + const result = client.matchProjectFromEntityTypeName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.entityTypePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromEntityTypeName', () => { + const result = client.matchLocationFromEntityTypeName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.entityTypePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeaturestoreFromEntityTypeName', () => { + const result = client.matchFeaturestoreFromEntityTypeName(fakePath); + assert.strictEqual(result, 'featurestoreValue'); + assert( + (client.pathTemplates.entityTypePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEntityTypeFromEntityTypeName', () => { + const result = client.matchEntityTypeFromEntityTypeName(fakePath); + assert.strictEqual(result, 'entityTypeValue'); + assert( + (client.pathTemplates.entityTypePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('execution', () => { + const fakePath = '/rendered/path/execution'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + metadata_store: 'metadataStoreValue', + execution: 'executionValue', + }; + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.executionPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.executionPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('executionPath', () => { + const result = client.executionPath( + 'projectValue', + 'locationValue', + 'metadataStoreValue', + 'executionValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.executionPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromExecutionName', () => { + const result = client.matchProjectFromExecutionName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.executionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromExecutionName', () => { + const result = client.matchLocationFromExecutionName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.executionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataStoreFromExecutionName', () => { + const result = client.matchMetadataStoreFromExecutionName(fakePath); + assert.strictEqual(result, 'metadataStoreValue'); + assert( + (client.pathTemplates.executionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchExecutionFromExecutionName', () => { + const result = client.matchExecutionFromExecutionName(fakePath); + assert.strictEqual(result, 'executionValue'); + assert( + (client.pathTemplates.executionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureGroup', () => { + const fakePath = '/rendered/path/featureGroup'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + }; + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureGroupPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureGroupPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureGroupPath', () => { + const result = client.featureGroupPath( + 'projectValue', + 'locationValue', + 'featureGroupValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureGroupPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureGroupName', () => { + const result = client.matchProjectFromFeatureGroupName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureGroupName', () => { + const result = client.matchLocationFromFeatureGroupName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromFeatureGroupName', () => { + const result = client.matchFeatureGroupFromFeatureGroupName(fakePath); + assert.strictEqual(result, 'featureGroupValue'); + assert( + (client.pathTemplates.featureGroupPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureOnlineStore', () => { + const fakePath = '/rendered/path/featureOnlineStore'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + }; + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureOnlineStorePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureOnlineStorePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureOnlineStorePath', () => { + const result = client.featureOnlineStorePath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureOnlineStoreName', () => { + const result = client.matchProjectFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureOnlineStoreName', () => { + const result = client.matchLocationFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureOnlineStoreName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureOnlineStoreName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); + assert( + ( + client.pathTemplates.featureOnlineStorePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureView', () => { + const fakePath = '/rendered/path/featureView'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + feature_view: 'featureViewValue', + }; + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureViewPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureViewPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureViewPath', () => { + const result = client.featureViewPath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue', + 'featureViewValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureViewPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureViewName', () => { + const result = client.matchProjectFromFeatureViewName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureViewName', () => { + const result = client.matchLocationFromFeatureViewName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureViewName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureViewName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureViewFromFeatureViewName', () => { + const result = client.matchFeatureViewFromFeatureViewName(fakePath); + assert.strictEqual(result, 'featureViewValue'); + assert( + (client.pathTemplates.featureViewPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featureViewSync', () => { + const fakePath = '/rendered/path/featureViewSync'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_online_store: 'featureOnlineStoreValue', + feature_view: 'featureViewValue', + }; + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featureViewSyncPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featureViewSyncPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featureViewSyncPath', () => { + const result = client.featureViewSyncPath( + 'projectValue', + 'locationValue', + 'featureOnlineStoreValue', + 'featureViewValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeatureViewSyncName', () => { + const result = client.matchProjectFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeatureViewSyncName', () => { + const result = client.matchLocationFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureOnlineStoreFromFeatureViewSyncName', () => { + const result = + client.matchFeatureOnlineStoreFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'featureOnlineStoreValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureViewFromFeatureViewSyncName', () => { + const result = client.matchFeatureViewFromFeatureViewSyncName(fakePath); + assert.strictEqual(result, 'featureViewValue'); + assert( + (client.pathTemplates.featureViewSyncPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('featurestore', () => { + const fakePath = '/rendered/path/featurestore'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + featurestore: 'featurestoreValue', + }; + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.featurestorePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.featurestorePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('featurestorePath', () => { + const result = client.featurestorePath( + 'projectValue', + 'locationValue', + 'featurestoreValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.featurestorePathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFeaturestoreName', () => { + const result = client.matchProjectFromFeaturestoreName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.featurestorePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFeaturestoreName', () => { + const result = client.matchLocationFromFeaturestoreName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.featurestorePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeaturestoreFromFeaturestoreName', () => { + const result = client.matchFeaturestoreFromFeaturestoreName(fakePath); + assert.strictEqual(result, 'featurestoreValue'); + assert( + (client.pathTemplates.featurestorePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('hyperparameterTuningJob', () => { + const fakePath = '/rendered/path/hyperparameterTuningJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + hyperparameter_tuning_job: 'hyperparameterTuningJobValue', + }; + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.hyperparameterTuningJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.hyperparameterTuningJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('hyperparameterTuningJobPath', () => { + const result = client.hyperparameterTuningJobPath( + 'projectValue', + 'locationValue', + 'hyperparameterTuningJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.hyperparameterTuningJobPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromHyperparameterTuningJobName', () => { + const result = + client.matchProjectFromHyperparameterTuningJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.hyperparameterTuningJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromHyperparameterTuningJobName', () => { + const result = + client.matchLocationFromHyperparameterTuningJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.hyperparameterTuningJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchHyperparameterTuningJobFromHyperparameterTuningJobName', () => { + const result = + client.matchHyperparameterTuningJobFromHyperparameterTuningJobName( + fakePath + ); + assert.strictEqual(result, 'hyperparameterTuningJobValue'); + assert( + ( + client.pathTemplates.hyperparameterTuningJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('index', () => { + const fakePath = '/rendered/path/index'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + index: 'indexValue', + }; + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.indexPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.indexPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('indexPath', () => { + const result = client.indexPath( + 'projectValue', + 'locationValue', + 'indexValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.indexPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromIndexName', () => { + const result = client.matchProjectFromIndexName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.indexPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromIndexName', () => { + const result = client.matchLocationFromIndexName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.indexPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchIndexFromIndexName', () => { + const result = client.matchIndexFromIndexName(fakePath); + assert.strictEqual(result, 'indexValue'); + assert( + (client.pathTemplates.indexPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('indexEndpoint', () => { + const fakePath = '/rendered/path/indexEndpoint'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + index_endpoint: 'indexEndpointValue', + }; + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.indexEndpointPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.indexEndpointPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('indexEndpointPath', () => { + const result = client.indexEndpointPath( + 'projectValue', + 'locationValue', + 'indexEndpointValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.indexEndpointPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromIndexEndpointName', () => { + const result = client.matchProjectFromIndexEndpointName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.indexEndpointPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromIndexEndpointName', () => { + const result = client.matchLocationFromIndexEndpointName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.indexEndpointPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchIndexEndpointFromIndexEndpointName', () => { + const result = client.matchIndexEndpointFromIndexEndpointName(fakePath); + assert.strictEqual(result, 'indexEndpointValue'); + assert( + (client.pathTemplates.indexEndpointPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('location', () => { + const fakePath = '/rendered/path/location'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + }; + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.locationPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.locationPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('locationPath', () => { + const result = client.locationPath('projectValue', 'locationValue'); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.locationPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromLocationName', () => { + const result = client.matchProjectFromLocationName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.locationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromLocationName', () => { + const result = client.matchLocationFromLocationName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.locationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('metadataSchema', () => { + const fakePath = '/rendered/path/metadataSchema'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + metadata_store: 'metadataStoreValue', + metadata_schema: 'metadataSchemaValue', + }; + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.metadataSchemaPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.metadataSchemaPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('metadataSchemaPath', () => { + const result = client.metadataSchemaPath( + 'projectValue', + 'locationValue', + 'metadataStoreValue', + 'metadataSchemaValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.metadataSchemaPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromMetadataSchemaName', () => { + const result = client.matchProjectFromMetadataSchemaName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.metadataSchemaPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromMetadataSchemaName', () => { + const result = client.matchLocationFromMetadataSchemaName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.metadataSchemaPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataStoreFromMetadataSchemaName', () => { + const result = + client.matchMetadataStoreFromMetadataSchemaName(fakePath); + assert.strictEqual(result, 'metadataStoreValue'); + assert( + (client.pathTemplates.metadataSchemaPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataSchemaFromMetadataSchemaName', () => { + const result = + client.matchMetadataSchemaFromMetadataSchemaName(fakePath); + assert.strictEqual(result, 'metadataSchemaValue'); + assert( + (client.pathTemplates.metadataSchemaPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('metadataStore', () => { + const fakePath = '/rendered/path/metadataStore'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + metadata_store: 'metadataStoreValue', + }; + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.metadataStorePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.metadataStorePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('metadataStorePath', () => { + const result = client.metadataStorePath( + 'projectValue', + 'locationValue', + 'metadataStoreValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.metadataStorePathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromMetadataStoreName', () => { + const result = client.matchProjectFromMetadataStoreName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.metadataStorePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromMetadataStoreName', () => { + const result = client.matchLocationFromMetadataStoreName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.metadataStorePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchMetadataStoreFromMetadataStoreName', () => { + const result = client.matchMetadataStoreFromMetadataStoreName(fakePath); + assert.strictEqual(result, 'metadataStoreValue'); + assert( + (client.pathTemplates.metadataStorePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('model', () => { + const fakePath = '/rendered/path/model'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + model: 'modelValue', + }; + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.modelPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.modelPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('modelPath', () => { + const result = client.modelPath( + 'projectValue', + 'locationValue', + 'modelValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.modelPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromModelName', () => { + const result = client.matchProjectFromModelName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.modelPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromModelName', () => { + const result = client.matchLocationFromModelName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.modelPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchModelFromModelName', () => { + const result = client.matchModelFromModelName(fakePath); + assert.strictEqual(result, 'modelValue'); + assert( + (client.pathTemplates.modelPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('modelDeploymentMonitoringJob', () => { + const fakePath = '/rendered/path/modelDeploymentMonitoringJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + model_deployment_monitoring_job: 'modelDeploymentMonitoringJobValue', + }; + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.modelDeploymentMonitoringJobPathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.modelDeploymentMonitoringJobPathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('modelDeploymentMonitoringJobPath', () => { + const result = client.modelDeploymentMonitoringJobPath( + 'projectValue', + 'locationValue', + 'modelDeploymentMonitoringJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.modelDeploymentMonitoringJobPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromModelDeploymentMonitoringJobName', () => { + const result = + client.matchProjectFromModelDeploymentMonitoringJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.modelDeploymentMonitoringJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromModelDeploymentMonitoringJobName', () => { + const result = + client.matchLocationFromModelDeploymentMonitoringJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.modelDeploymentMonitoringJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchModelDeploymentMonitoringJobFromModelDeploymentMonitoringJobName', () => { + const result = + client.matchModelDeploymentMonitoringJobFromModelDeploymentMonitoringJobName( + fakePath + ); + assert.strictEqual(result, 'modelDeploymentMonitoringJobValue'); + assert( + ( + client.pathTemplates.modelDeploymentMonitoringJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('modelEvaluation', () => { + const fakePath = '/rendered/path/modelEvaluation'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + model: 'modelValue', + evaluation: 'evaluationValue', + }; + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.modelEvaluationPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.modelEvaluationPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('modelEvaluationPath', () => { + const result = client.modelEvaluationPath( + 'projectValue', + 'locationValue', + 'modelValue', + 'evaluationValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.modelEvaluationPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromModelEvaluationName', () => { + const result = client.matchProjectFromModelEvaluationName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.modelEvaluationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromModelEvaluationName', () => { + const result = client.matchLocationFromModelEvaluationName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.modelEvaluationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchModelFromModelEvaluationName', () => { + const result = client.matchModelFromModelEvaluationName(fakePath); + assert.strictEqual(result, 'modelValue'); + assert( + (client.pathTemplates.modelEvaluationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEvaluationFromModelEvaluationName', () => { + const result = client.matchEvaluationFromModelEvaluationName(fakePath); + assert.strictEqual(result, 'evaluationValue'); + assert( + (client.pathTemplates.modelEvaluationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('modelEvaluationSlice', () => { + const fakePath = '/rendered/path/modelEvaluationSlice'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + model: 'modelValue', + evaluation: 'evaluationValue', + slice: 'sliceValue', + }; + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.modelEvaluationSlicePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.modelEvaluationSlicePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('modelEvaluationSlicePath', () => { + const result = client.modelEvaluationSlicePath( + 'projectValue', + 'locationValue', + 'modelValue', + 'evaluationValue', + 'sliceValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.modelEvaluationSlicePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromModelEvaluationSliceName', () => { + const result = + client.matchProjectFromModelEvaluationSliceName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.modelEvaluationSlicePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromModelEvaluationSliceName', () => { + const result = + client.matchLocationFromModelEvaluationSliceName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.modelEvaluationSlicePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchModelFromModelEvaluationSliceName', () => { + const result = client.matchModelFromModelEvaluationSliceName(fakePath); + assert.strictEqual(result, 'modelValue'); + assert( + ( + client.pathTemplates.modelEvaluationSlicePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEvaluationFromModelEvaluationSliceName', () => { + const result = + client.matchEvaluationFromModelEvaluationSliceName(fakePath); + assert.strictEqual(result, 'evaluationValue'); + assert( + ( + client.pathTemplates.modelEvaluationSlicePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSliceFromModelEvaluationSliceName', () => { + const result = client.matchSliceFromModelEvaluationSliceName(fakePath); + assert.strictEqual(result, 'sliceValue'); + assert( + ( + client.pathTemplates.modelEvaluationSlicePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('notebookExecutionJob', () => { + const fakePath = '/rendered/path/notebookExecutionJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + notebook_execution_job: 'notebookExecutionJobValue', + }; + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.notebookExecutionJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.notebookExecutionJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('notebookExecutionJobPath', () => { + const result = client.notebookExecutionJobPath( + 'projectValue', + 'locationValue', + 'notebookExecutionJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.notebookExecutionJobPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNotebookExecutionJobName', () => { + const result = + client.matchProjectFromNotebookExecutionJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.notebookExecutionJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNotebookExecutionJobName', () => { + const result = + client.matchLocationFromNotebookExecutionJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.notebookExecutionJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNotebookExecutionJobFromNotebookExecutionJobName', () => { + const result = + client.matchNotebookExecutionJobFromNotebookExecutionJobName( + fakePath + ); + assert.strictEqual(result, 'notebookExecutionJobValue'); + assert( + ( + client.pathTemplates.notebookExecutionJobPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('notebookRuntime', () => { + const fakePath = '/rendered/path/notebookRuntime'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + notebook_runtime: 'notebookRuntimeValue', + }; + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.notebookRuntimePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.notebookRuntimePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('notebookRuntimePath', () => { + const result = client.notebookRuntimePath( + 'projectValue', + 'locationValue', + 'notebookRuntimeValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.notebookRuntimePathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNotebookRuntimeName', () => { + const result = client.matchProjectFromNotebookRuntimeName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.notebookRuntimePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNotebookRuntimeName', () => { + const result = client.matchLocationFromNotebookRuntimeName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.notebookRuntimePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNotebookRuntimeFromNotebookRuntimeName', () => { + const result = + client.matchNotebookRuntimeFromNotebookRuntimeName(fakePath); + assert.strictEqual(result, 'notebookRuntimeValue'); + assert( + (client.pathTemplates.notebookRuntimePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('notebookRuntimeTemplate', () => { + const fakePath = '/rendered/path/notebookRuntimeTemplate'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + notebook_runtime_template: 'notebookRuntimeTemplateValue', + }; + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.notebookRuntimeTemplatePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.notebookRuntimeTemplatePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('notebookRuntimeTemplatePath', () => { + const result = client.notebookRuntimeTemplatePath( + 'projectValue', + 'locationValue', + 'notebookRuntimeTemplateValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.notebookRuntimeTemplatePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNotebookRuntimeTemplateName', () => { + const result = + client.matchProjectFromNotebookRuntimeTemplateName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.notebookRuntimeTemplatePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNotebookRuntimeTemplateName', () => { + const result = + client.matchLocationFromNotebookRuntimeTemplateName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.notebookRuntimeTemplatePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNotebookRuntimeTemplateFromNotebookRuntimeTemplateName', () => { + const result = + client.matchNotebookRuntimeTemplateFromNotebookRuntimeTemplateName( + fakePath + ); + assert.strictEqual(result, 'notebookRuntimeTemplateValue'); + assert( + ( + client.pathTemplates.notebookRuntimeTemplatePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('persistentResource', () => { + const fakePath = '/rendered/path/persistentResource'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + persistent_resource: 'persistentResourceValue', + }; + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.persistentResourcePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.persistentResourcePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('persistentResourcePath', () => { + const result = client.persistentResourcePath( + 'projectValue', + 'locationValue', + 'persistentResourceValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.persistentResourcePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromPersistentResourceName', () => { + const result = client.matchProjectFromPersistentResourceName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.persistentResourcePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromPersistentResourceName', () => { + const result = client.matchLocationFromPersistentResourceName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.persistentResourcePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchPersistentResourceFromPersistentResourceName', () => { + const result = + client.matchPersistentResourceFromPersistentResourceName(fakePath); + assert.strictEqual(result, 'persistentResourceValue'); + assert( + ( + client.pathTemplates.persistentResourcePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('pipelineJob', () => { + const fakePath = '/rendered/path/pipelineJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + pipeline_job: 'pipelineJobValue', + }; + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.pipelineJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.pipelineJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('pipelineJobPath', () => { + const result = client.pipelineJobPath( + 'projectValue', + 'locationValue', + 'pipelineJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.pipelineJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromPipelineJobName', () => { + const result = client.matchProjectFromPipelineJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.pipelineJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromPipelineJobName', () => { + const result = client.matchLocationFromPipelineJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.pipelineJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchPipelineJobFromPipelineJobName', () => { + const result = client.matchPipelineJobFromPipelineJobName(fakePath); + assert.strictEqual(result, 'pipelineJobValue'); + assert( + (client.pathTemplates.pipelineJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('projectLocationEndpoint', () => { + const fakePath = '/rendered/path/projectLocationEndpoint'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + endpoint: 'endpointValue', + }; + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationEndpointPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.projectLocationEndpointPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('projectLocationEndpointPath', () => { + const result = client.projectLocationEndpointPath( + 'projectValue', + 'locationValue', + 'endpointValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.projectLocationEndpointPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationEndpointName', () => { + const result = + client.matchProjectFromProjectLocationEndpointName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.projectLocationEndpointPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationEndpointName', () => { + const result = + client.matchLocationFromProjectLocationEndpointName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.projectLocationEndpointPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEndpointFromProjectLocationEndpointName', () => { + const result = + client.matchEndpointFromProjectLocationEndpointName(fakePath); + assert.strictEqual(result, 'endpointValue'); + assert( + ( + client.pathTemplates.projectLocationEndpointPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('projectLocationFeatureGroupFeature', () => { + const fakePath = '/rendered/path/projectLocationFeatureGroupFeature'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + feature_group: 'featureGroupValue', + feature: 'featureValue', + }; + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationFeatureGroupFeaturePath', () => { + const result = client.projectLocationFeatureGroupFeaturePath( + 'projectValue', + 'locationValue', + 'featureGroupValue', + 'featureValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchProjectFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchLocationFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureGroupFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchFeatureGroupFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureGroupValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureFromProjectLocationFeatureGroupFeatureName', () => { + const result = + client.matchFeatureFromProjectLocationFeatureGroupFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureValue'); + assert( + ( + client.pathTemplates.projectLocationFeatureGroupFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('projectLocationFeaturestoreEntityTypeFeature', () => { + const fakePath = + '/rendered/path/projectLocationFeaturestoreEntityTypeFeature'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + featurestore: 'featurestoreValue', + entity_type: 'entityTypeValue', + feature: 'featureValue', + }; + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationFeaturestoreEntityTypeFeaturePathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationFeaturestoreEntityTypeFeaturePath', () => { + const result = client.projectLocationFeaturestoreEntityTypeFeaturePath( + 'projectValue', + 'locationValue', + 'featurestoreValue', + 'entityTypeValue', + 'featureValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchProjectFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchLocationFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchFeaturestoreFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'featurestoreValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchEntityTypeFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'entityTypeValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName', () => { + const result = + client.matchFeatureFromProjectLocationFeaturestoreEntityTypeFeatureName( + fakePath + ); + assert.strictEqual(result, 'featureValue'); + assert( + ( + client.pathTemplates + .projectLocationFeaturestoreEntityTypeFeaturePathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('projectLocationPublisherModel', () => { + const fakePath = '/rendered/path/projectLocationPublisherModel'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + publisher: 'publisherValue', + model: 'modelValue', + }; + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationPublisherModelPathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationPublisherModelPathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationPublisherModelPath', () => { + const result = client.projectLocationPublisherModelPath( + 'projectValue', + 'locationValue', + 'publisherValue', + 'modelValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.projectLocationPublisherModelPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationPublisherModelName', () => { + const result = + client.matchProjectFromProjectLocationPublisherModelName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.projectLocationPublisherModelPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationPublisherModelName', () => { + const result = + client.matchLocationFromProjectLocationPublisherModelName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.projectLocationPublisherModelPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchPublisherFromProjectLocationPublisherModelName', () => { + const result = + client.matchPublisherFromProjectLocationPublisherModelName(fakePath); + assert.strictEqual(result, 'publisherValue'); + assert( + ( + client.pathTemplates.projectLocationPublisherModelPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchModelFromProjectLocationPublisherModelName', () => { + const result = + client.matchModelFromProjectLocationPublisherModelName(fakePath); + assert.strictEqual(result, 'modelValue'); + assert( + ( + client.pathTemplates.projectLocationPublisherModelPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('publisherModel', () => { + const fakePath = '/rendered/path/publisherModel'; + const expectedParameters = { + publisher: 'publisherValue', + model: 'modelValue', + }; + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.publisherModelPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.publisherModelPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('publisherModelPath', () => { + const result = client.publisherModelPath( + 'publisherValue', + 'modelValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.publisherModelPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchPublisherFromPublisherModelName', () => { + const result = client.matchPublisherFromPublisherModelName(fakePath); + assert.strictEqual(result, 'publisherValue'); + assert( + (client.pathTemplates.publisherModelPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchModelFromPublisherModelName', () => { + const result = client.matchModelFromPublisherModelName(fakePath); + assert.strictEqual(result, 'modelValue'); + assert( + (client.pathTemplates.publisherModelPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('savedQuery', () => { + const fakePath = '/rendered/path/savedQuery'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + saved_query: 'savedQueryValue', + }; + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.savedQueryPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.savedQueryPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('savedQueryPath', () => { + const result = client.savedQueryPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'savedQueryValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.savedQueryPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromSavedQueryName', () => { + const result = client.matchProjectFromSavedQueryName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromSavedQueryName', () => { + const result = client.matchLocationFromSavedQueryName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromSavedQueryName', () => { + const result = client.matchDatasetFromSavedQueryName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSavedQueryFromSavedQueryName', () => { + const result = client.matchSavedQueryFromSavedQueryName(fakePath); + assert.strictEqual(result, 'savedQueryValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('schedule', () => { + const fakePath = '/rendered/path/schedule'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + schedule: 'scheduleValue', + }; + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.schedulePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.schedulePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('schedulePath', () => { + const result = client.schedulePath( + 'projectValue', + 'locationValue', + 'scheduleValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.schedulePathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromScheduleName', () => { + const result = client.matchProjectFromScheduleName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.schedulePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromScheduleName', () => { + const result = client.matchLocationFromScheduleName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.schedulePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchScheduleFromScheduleName', () => { + const result = client.matchScheduleFromScheduleName(fakePath); + assert.strictEqual(result, 'scheduleValue'); + assert( + (client.pathTemplates.schedulePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('specialistPool', () => { + const fakePath = '/rendered/path/specialistPool'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + specialist_pool: 'specialistPoolValue', + }; + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.specialistPoolPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.specialistPoolPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('specialistPoolPath', () => { + const result = client.specialistPoolPath( + 'projectValue', + 'locationValue', + 'specialistPoolValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.specialistPoolPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromSpecialistPoolName', () => { + const result = client.matchProjectFromSpecialistPoolName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.specialistPoolPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromSpecialistPoolName', () => { + const result = client.matchLocationFromSpecialistPoolName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.specialistPoolPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSpecialistPoolFromSpecialistPoolName', () => { + const result = + client.matchSpecialistPoolFromSpecialistPoolName(fakePath); + assert.strictEqual(result, 'specialistPoolValue'); + assert( + (client.pathTemplates.specialistPoolPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('study', () => { + const fakePath = '/rendered/path/study'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + study: 'studyValue', + }; + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.studyPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.studyPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('studyPath', () => { + const result = client.studyPath( + 'projectValue', + 'locationValue', + 'studyValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.studyPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromStudyName', () => { + const result = client.matchProjectFromStudyName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.studyPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromStudyName', () => { + const result = client.matchLocationFromStudyName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.studyPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchStudyFromStudyName', () => { + const result = client.matchStudyFromStudyName(fakePath); + assert.strictEqual(result, 'studyValue'); + assert( + (client.pathTemplates.studyPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('tensorboard', () => { + const fakePath = '/rendered/path/tensorboard'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + tensorboard: 'tensorboardValue', + }; + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.tensorboardPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.tensorboardPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('tensorboardPath', () => { + const result = client.tensorboardPath( + 'projectValue', + 'locationValue', + 'tensorboardValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.tensorboardPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromTensorboardName', () => { + const result = client.matchProjectFromTensorboardName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.tensorboardPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromTensorboardName', () => { + const result = client.matchLocationFromTensorboardName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.tensorboardPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchTensorboardFromTensorboardName', () => { + const result = client.matchTensorboardFromTensorboardName(fakePath); + assert.strictEqual(result, 'tensorboardValue'); + assert( + (client.pathTemplates.tensorboardPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('tensorboardExperiment', () => { + const fakePath = '/rendered/path/tensorboardExperiment'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + tensorboard: 'tensorboardValue', + experiment: 'experimentValue', + }; + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.tensorboardExperimentPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.tensorboardExperimentPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('tensorboardExperimentPath', () => { + const result = client.tensorboardExperimentPath( + 'projectValue', + 'locationValue', + 'tensorboardValue', + 'experimentValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.tensorboardExperimentPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromTensorboardExperimentName', () => { + const result = + client.matchProjectFromTensorboardExperimentName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.tensorboardExperimentPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromTensorboardExperimentName', () => { + const result = + client.matchLocationFromTensorboardExperimentName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.tensorboardExperimentPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchTensorboardFromTensorboardExperimentName', () => { + const result = + client.matchTensorboardFromTensorboardExperimentName(fakePath); + assert.strictEqual(result, 'tensorboardValue'); + assert( + ( + client.pathTemplates.tensorboardExperimentPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchExperimentFromTensorboardExperimentName', () => { + const result = + client.matchExperimentFromTensorboardExperimentName(fakePath); + assert.strictEqual(result, 'experimentValue'); + assert( + ( + client.pathTemplates.tensorboardExperimentPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('tensorboardRun', () => { + const fakePath = '/rendered/path/tensorboardRun'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + tensorboard: 'tensorboardValue', + experiment: 'experimentValue', + run: 'runValue', + }; + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.tensorboardRunPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.tensorboardRunPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('tensorboardRunPath', () => { + const result = client.tensorboardRunPath( + 'projectValue', + 'locationValue', + 'tensorboardValue', + 'experimentValue', + 'runValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.tensorboardRunPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromTensorboardRunName', () => { + const result = client.matchProjectFromTensorboardRunName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.tensorboardRunPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromTensorboardRunName', () => { + const result = client.matchLocationFromTensorboardRunName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.tensorboardRunPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchTensorboardFromTensorboardRunName', () => { + const result = client.matchTensorboardFromTensorboardRunName(fakePath); + assert.strictEqual(result, 'tensorboardValue'); + assert( + (client.pathTemplates.tensorboardRunPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchExperimentFromTensorboardRunName', () => { + const result = client.matchExperimentFromTensorboardRunName(fakePath); + assert.strictEqual(result, 'experimentValue'); + assert( + (client.pathTemplates.tensorboardRunPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchRunFromTensorboardRunName', () => { + const result = client.matchRunFromTensorboardRunName(fakePath); + assert.strictEqual(result, 'runValue'); + assert( + (client.pathTemplates.tensorboardRunPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('tensorboardTimeSeries', () => { + const fakePath = '/rendered/path/tensorboardTimeSeries'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + tensorboard: 'tensorboardValue', + experiment: 'experimentValue', + run: 'runValue', + time_series: 'timeSeriesValue', + }; + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.tensorboardTimeSeriesPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.tensorboardTimeSeriesPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('tensorboardTimeSeriesPath', () => { + const result = client.tensorboardTimeSeriesPath( + 'projectValue', + 'locationValue', + 'tensorboardValue', + 'experimentValue', + 'runValue', + 'timeSeriesValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.tensorboardTimeSeriesPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromTensorboardTimeSeriesName', () => { + const result = + client.matchProjectFromTensorboardTimeSeriesName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.tensorboardTimeSeriesPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromTensorboardTimeSeriesName', () => { + const result = + client.matchLocationFromTensorboardTimeSeriesName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.tensorboardTimeSeriesPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchTensorboardFromTensorboardTimeSeriesName', () => { + const result = + client.matchTensorboardFromTensorboardTimeSeriesName(fakePath); + assert.strictEqual(result, 'tensorboardValue'); + assert( + ( + client.pathTemplates.tensorboardTimeSeriesPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchExperimentFromTensorboardTimeSeriesName', () => { + const result = + client.matchExperimentFromTensorboardTimeSeriesName(fakePath); + assert.strictEqual(result, 'experimentValue'); + assert( + ( + client.pathTemplates.tensorboardTimeSeriesPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchRunFromTensorboardTimeSeriesName', () => { + const result = client.matchRunFromTensorboardTimeSeriesName(fakePath); + assert.strictEqual(result, 'runValue'); + assert( + ( + client.pathTemplates.tensorboardTimeSeriesPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchTimeSeriesFromTensorboardTimeSeriesName', () => { + const result = + client.matchTimeSeriesFromTensorboardTimeSeriesName(fakePath); + assert.strictEqual(result, 'timeSeriesValue'); + assert( + ( + client.pathTemplates.tensorboardTimeSeriesPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('trainingPipeline', () => { + const fakePath = '/rendered/path/trainingPipeline'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + training_pipeline: 'trainingPipelineValue', + }; + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.trainingPipelinePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.trainingPipelinePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('trainingPipelinePath', () => { + const result = client.trainingPipelinePath( + 'projectValue', + 'locationValue', + 'trainingPipelineValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.trainingPipelinePathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromTrainingPipelineName', () => { + const result = client.matchProjectFromTrainingPipelineName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.trainingPipelinePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromTrainingPipelineName', () => { + const result = client.matchLocationFromTrainingPipelineName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.trainingPipelinePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchTrainingPipelineFromTrainingPipelineName', () => { + const result = + client.matchTrainingPipelineFromTrainingPipelineName(fakePath); + assert.strictEqual(result, 'trainingPipelineValue'); + assert( + (client.pathTemplates.trainingPipelinePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('trial', () => { + const fakePath = '/rendered/path/trial'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + study: 'studyValue', + trial: 'trialValue', + }; + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.trialPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.trialPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('trialPath', () => { + const result = client.trialPath( + 'projectValue', + 'locationValue', + 'studyValue', + 'trialValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.trialPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromTrialName', () => { + const result = client.matchProjectFromTrialName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.trialPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromTrialName', () => { + const result = client.matchLocationFromTrialName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.trialPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchStudyFromTrialName', () => { + const result = client.matchStudyFromTrialName(fakePath); + assert.strictEqual(result, 'studyValue'); + assert( + (client.pathTemplates.trialPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchTrialFromTrialName', () => { + const result = client.matchTrialFromTrialName(fakePath); + assert.strictEqual(result, 'trialValue'); + assert( + (client.pathTemplates.trialPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('tuningJob', () => { + const fakePath = '/rendered/path/tuningJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + tuning_job: 'tuningJobValue', + }; + const client = new evaluationserviceModule.v1.EvaluationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.tuningJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.tuningJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('tuningJobPath', () => { + const result = client.tuningJobPath( + 'projectValue', + 'locationValue', + 'tuningJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.tuningJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromTuningJobName', () => { + const result = client.matchProjectFromTuningJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.tuningJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromTuningJobName', () => { + const result = client.matchLocationFromTuningJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.tuningJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchTuningJobFromTuningJobName', () => { + const result = client.matchTuningJobFromTuningJobName(fakePath); + assert.strictEqual(result, 'tuningJobValue'); + assert( + (client.pathTemplates.tuningJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + }); +});