#[non_exhaustive]pub struct EvaluateInstancesRequest {
pub location: String,
pub metric_inputs: Option<MetricInputs>,
/* private fields */
}evaluation-service only.Expand description
Request message for EvaluationService.EvaluateInstances.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.location: StringRequired. The resource name of the Location to evaluate the instances.
Format: projects/{project}/locations/{location}
metric_inputs: Option<MetricInputs>Instances and specs for evaluation
Implementations§
Source§impl EvaluateInstancesRequest
impl EvaluateInstancesRequest
pub fn new() -> Self
Sourcepub fn set_location<T: Into<String>>(self, v: T) -> Self
pub fn set_location<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_metric_inputs<T: Into<Option<MetricInputs>>>(self, v: T) -> Self
pub fn set_metric_inputs<T: Into<Option<MetricInputs>>>(self, v: T) -> Self
Sets the value of metric_inputs.
Note that all the setters affecting metric_inputs are mutually
exclusive.
§Example
use google_cloud_aiplatform_v1::model::ExactMatchInput;
let x = EvaluateInstancesRequest::new().set_metric_inputs(Some(
google_cloud_aiplatform_v1::model::evaluate_instances_request::MetricInputs::ExactMatchInput(ExactMatchInput::default().into())));Sourcepub fn exact_match_input(&self) -> Option<&Box<ExactMatchInput>>
pub fn exact_match_input(&self) -> Option<&Box<ExactMatchInput>>
The value of metric_inputs
if it holds a ExactMatchInput, None if the field is not set or
holds a different branch.
Sourcepub fn set_exact_match_input<T: Into<Box<ExactMatchInput>>>(self, v: T) -> Self
pub fn set_exact_match_input<T: Into<Box<ExactMatchInput>>>(self, v: T) -> Self
Sets the value of metric_inputs
to hold a ExactMatchInput.
Note that all the setters affecting metric_inputs are
mutually exclusive.
§Example
use google_cloud_aiplatform_v1::model::ExactMatchInput;
let x = EvaluateInstancesRequest::new().set_exact_match_input(ExactMatchInput::default()/* use setters */);
assert!(x.exact_match_input().is_some());
assert!(x.bleu_input().is_none());
assert!(x.rouge_input().is_none());
assert!(x.fluency_input().is_none());
assert!(x.coherence_input().is_none());
assert!(x.safety_input().is_none());
assert!(x.groundedness_input().is_none());
assert!(x.fulfillment_input().is_none());
assert!(x.summarization_quality_input().is_none());
assert!(x.pairwise_summarization_quality_input().is_none());
assert!(x.summarization_helpfulness_input().is_none());
assert!(x.summarization_verbosity_input().is_none());
assert!(x.question_answering_quality_input().is_none());
assert!(x.pairwise_question_answering_quality_input().is_none());
assert!(x.question_answering_relevance_input().is_none());
assert!(x.question_answering_helpfulness_input().is_none());
assert!(x.question_answering_correctness_input().is_none());
assert!(x.pointwise_metric_input().is_none());
assert!(x.pairwise_metric_input().is_none());
assert!(x.tool_call_valid_input().is_none());
assert!(x.tool_name_match_input().is_none());
assert!(x.tool_parameter_key_match_input().is_none());
assert!(x.tool_parameter_kv_match_input().is_none());
assert!(x.comet_input().is_none());
assert!(x.metricx_input().is_none());Sourcepub fn bleu_input(&self) -> Option<&Box<BleuInput>>
pub fn bleu_input(&self) -> Option<&Box<BleuInput>>
The value of metric_inputs
if it holds a BleuInput, None if the field is not set or
holds a different branch.
Sourcepub fn set_bleu_input<T: Into<Box<BleuInput>>>(self, v: T) -> Self
pub fn set_bleu_input<T: Into<Box<BleuInput>>>(self, v: T) -> Self
Sets the value of metric_inputs
to hold a BleuInput.
Note that all the setters affecting metric_inputs are
mutually exclusive.
§Example
use google_cloud_aiplatform_v1::model::BleuInput;
let x = EvaluateInstancesRequest::new().set_bleu_input(BleuInput::default()/* use setters */);
assert!(x.bleu_input().is_some());
assert!(x.exact_match_input().is_none());
assert!(x.rouge_input().is_none());
assert!(x.fluency_input().is_none());
assert!(x.coherence_input().is_none());
assert!(x.safety_input().is_none());
assert!(x.groundedness_input().is_none());
assert!(x.fulfillment_input().is_none());
assert!(x.summarization_quality_input().is_none());
assert!(x.pairwise_summarization_quality_input().is_none());
assert!(x.summarization_helpfulness_input().is_none());
assert!(x.summarization_verbosity_input().is_none());
assert!(x.question_answering_quality_input().is_none());
assert!(x.pairwise_question_answering_quality_input().is_none());
assert!(x.question_answering_relevance_input().is_none());
assert!(x.question_answering_helpfulness_input().is_none());
assert!(x.question_answering_correctness_input().is_none());
assert!(x.pointwise_metric_input().is_none());
assert!(x.pairwise_metric_input().is_none());
assert!(x.tool_call_valid_input().is_none());
assert!(x.tool_name_match_input().is_none());
assert!(x.tool_parameter_key_match_input().is_none());
assert!(x.tool_parameter_kv_match_input().is_none());
assert!(x.comet_input().is_none());
assert!(x.metricx_input().is_none());Sourcepub fn rouge_input(&self) -> Option<&Box<RougeInput>>
pub fn rouge_input(&self) -> Option<&Box<RougeInput>>
The value of metric_inputs
if it holds a RougeInput, None if the field is not set or
holds a different branch.
Sourcepub fn set_rouge_input<T: Into<Box<RougeInput>>>(self, v: T) -> Self
pub fn set_rouge_input<T: Into<Box<RougeInput>>>(self, v: T) -> Self
Sets the value of metric_inputs
to hold a RougeInput.
Note that all the setters affecting metric_inputs are
mutually exclusive.
§Example
use google_cloud_aiplatform_v1::model::RougeInput;
let x = EvaluateInstancesRequest::new().set_rouge_input(RougeInput::default()/* use setters */);
assert!(x.rouge_input().is_some());
assert!(x.exact_match_input().is_none());
assert!(x.bleu_input().is_none());
assert!(x.fluency_input().is_none());
assert!(x.coherence_input().is_none());
assert!(x.safety_input().is_none());
assert!(x.groundedness_input().is_none());
assert!(x.fulfillment_input().is_none());
assert!(x.summarization_quality_input().is_none());
assert!(x.pairwise_summarization_quality_input().is_none());
assert!(x.summarization_helpfulness_input().is_none());
assert!(x.summarization_verbosity_input().is_none());
assert!(x.question_answering_quality_input().is_none());
assert!(x.pairwise_question_answering_quality_input().is_none());
assert!(x.question_answering_relevance_input().is_none());
assert!(x.question_answering_helpfulness_input().is_none());
assert!(x.question_answering_correctness_input().is_none());
assert!(x.pointwise_metric_input().is_none());
assert!(x.pairwise_metric_input().is_none());
assert!(x.tool_call_valid_input().is_none());
assert!(x.tool_name_match_input().is_none());
assert!(x.tool_parameter_key_match_input().is_none());
assert!(x.tool_parameter_kv_match_input().is_none());
assert!(x.comet_input().is_none());
assert!(x.metricx_input().is_none());Sourcepub fn fluency_input(&self) -> Option<&Box<FluencyInput>>
pub fn fluency_input(&self) -> Option<&Box<FluencyInput>>
The value of metric_inputs
if it holds a FluencyInput, None if the field is not set or
holds a different branch.
Sourcepub fn set_fluency_input<T: Into<Box<FluencyInput>>>(self, v: T) -> Self
pub fn set_fluency_input<T: Into<Box<FluencyInput>>>(self, v: T) -> Self
Sets the value of metric_inputs
to hold a FluencyInput.
Note that all the setters affecting metric_inputs are
mutually exclusive.
§Example
use google_cloud_aiplatform_v1::model::FluencyInput;
let x = EvaluateInstancesRequest::new().set_fluency_input(FluencyInput::default()/* use setters */);
assert!(x.fluency_input().is_some());
assert!(x.exact_match_input().is_none());
assert!(x.bleu_input().is_none());
assert!(x.rouge_input().is_none());
assert!(x.coherence_input().is_none());
assert!(x.safety_input().is_none());
assert!(x.groundedness_input().is_none());
assert!(x.fulfillment_input().is_none());
assert!(x.summarization_quality_input().is_none());
assert!(x.pairwise_summarization_quality_input().is_none());
assert!(x.summarization_helpfulness_input().is_none());
assert!(x.summarization_verbosity_input().is_none());
assert!(x.question_answering_quality_input().is_none());
assert!(x.pairwise_question_answering_quality_input().is_none());
assert!(x.question_answering_relevance_input().is_none());
assert!(x.question_answering_helpfulness_input().is_none());
assert!(x.question_answering_correctness_input().is_none());
assert!(x.pointwise_metric_input().is_none());
assert!(x.pairwise_metric_input().is_none());
assert!(x.tool_call_valid_input().is_none());
assert!(x.tool_name_match_input().is_none());
assert!(x.tool_parameter_key_match_input().is_none());
assert!(x.tool_parameter_kv_match_input().is_none());
assert!(x.comet_input().is_none());
assert!(x.metricx_input().is_none());Sourcepub fn coherence_input(&self) -> Option<&Box<CoherenceInput>>
pub fn coherence_input(&self) -> Option<&Box<CoherenceInput>>
The value of metric_inputs
if it holds a CoherenceInput, None if the field is not set or
holds a different branch.
Sourcepub fn set_coherence_input<T: Into<Box<CoherenceInput>>>(self, v: T) -> Self
pub fn set_coherence_input<T: Into<Box<CoherenceInput>>>(self, v: T) -> Self
Sets the value of metric_inputs
to hold a CoherenceInput.
Note that all the setters affecting metric_inputs are
mutually exclusive.
§Example
use google_cloud_aiplatform_v1::model::CoherenceInput;
let x = EvaluateInstancesRequest::new().set_coherence_input(CoherenceInput::default()/* use setters */);
assert!(x.coherence_input().is_some());
assert!(x.exact_match_input().is_none());
assert!(x.bleu_input().is_none());
assert!(x.rouge_input().is_none());
assert!(x.fluency_input().is_none());
assert!(x.safety_input().is_none());
assert!(x.groundedness_input().is_none());
assert!(x.fulfillment_input().is_none());
assert!(x.summarization_quality_input().is_none());
assert!(x.pairwise_summarization_quality_input().is_none());
assert!(x.summarization_helpfulness_input().is_none());
assert!(x.summarization_verbosity_input().is_none());
assert!(x.question_answering_quality_input().is_none());
assert!(x.pairwise_question_answering_quality_input().is_none());
assert!(x.question_answering_relevance_input().is_none());
assert!(x.question_answering_helpfulness_input().is_none());
assert!(x.question_answering_correctness_input().is_none());
assert!(x.pointwise_metric_input().is_none());
assert!(x.pairwise_metric_input().is_none());
assert!(x.tool_call_valid_input().is_none());
assert!(x.tool_name_match_input().is_none());
assert!(x.tool_parameter_key_match_input().is_none());
assert!(x.tool_parameter_kv_match_input().is_none());
assert!(x.comet_input().is_none());
assert!(x.metricx_input().is_none());Sourcepub fn safety_input(&self) -> Option<&Box<SafetyInput>>
pub fn safety_input(&self) -> Option<&Box<SafetyInput>>
The value of metric_inputs
if it holds a SafetyInput, None if the field is not set or
holds a different branch.
Sourcepub fn set_safety_input<T: Into<Box<SafetyInput>>>(self, v: T) -> Self
pub fn set_safety_input<T: Into<Box<SafetyInput>>>(self, v: T) -> Self
Sets the value of metric_inputs
to hold a SafetyInput.
Note that all the setters affecting metric_inputs are
mutually exclusive.
§Example
use google_cloud_aiplatform_v1::model::SafetyInput;
let x = EvaluateInstancesRequest::new().set_safety_input(SafetyInput::default()/* use setters */);
assert!(x.safety_input().is_some());
assert!(x.exact_match_input().is_none());
assert!(x.bleu_input().is_none());
assert!(x.rouge_input().is_none());
assert!(x.fluency_input().is_none());
assert!(x.coherence_input().is_none());
assert!(x.groundedness_input().is_none());
assert!(x.fulfillment_input().is_none());
assert!(x.summarization_quality_input().is_none());
assert!(x.pairwise_summarization_quality_input().is_none());
assert!(x.summarization_helpfulness_input().is_none());
assert!(x.summarization_verbosity_input().is_none());
assert!(x.question_answering_quality_input().is_none());
assert!(x.pairwise_question_answering_quality_input().is_none());
assert!(x.question_answering_relevance_input().is_none());
assert!(x.question_answering_helpfulness_input().is_none());
assert!(x.question_answering_correctness_input().is_none());
assert!(x.pointwise_metric_input().is_none());
assert!(x.pairwise_metric_input().is_none());
assert!(x.tool_call_valid_input().is_none());
assert!(x.tool_name_match_input().is_none());
assert!(x.tool_parameter_key_match_input().is_none());
assert!(x.tool_parameter_kv_match_input().is_none());
assert!(x.comet_input().is_none());
assert!(x.metricx_input().is_none());Sourcepub fn groundedness_input(&self) -> Option<&Box<GroundednessInput>>
pub fn groundedness_input(&self) -> Option<&Box<GroundednessInput>>
The value of metric_inputs
if it holds a GroundednessInput, None if the field is not set or
holds a different branch.
Sourcepub fn set_groundedness_input<T: Into<Box<GroundednessInput>>>(
self,
v: T,
) -> Self
pub fn set_groundedness_input<T: Into<Box<GroundednessInput>>>( self, v: T, ) -> Self
Sets the value of metric_inputs
to hold a GroundednessInput.
Note that all the setters affecting metric_inputs are
mutually exclusive.
§Example
use google_cloud_aiplatform_v1::model::GroundednessInput;
let x = EvaluateInstancesRequest::new().set_groundedness_input(GroundednessInput::default()/* use setters */);
assert!(x.groundedness_input().is_some());
assert!(x.exact_match_input().is_none());
assert!(x.bleu_input().is_none());
assert!(x.rouge_input().is_none());
assert!(x.fluency_input().is_none());
assert!(x.coherence_input().is_none());
assert!(x.safety_input().is_none());
assert!(x.fulfillment_input().is_none());
assert!(x.summarization_quality_input().is_none());
assert!(x.pairwise_summarization_quality_input().is_none());
assert!(x.summarization_helpfulness_input().is_none());
assert!(x.summarization_verbosity_input().is_none());
assert!(x.question_answering_quality_input().is_none());
assert!(x.pairwise_question_answering_quality_input().is_none());
assert!(x.question_answering_relevance_input().is_none());
assert!(x.question_answering_helpfulness_input().is_none());
assert!(x.question_answering_correctness_input().is_none());
assert!(x.pointwise_metric_input().is_none());
assert!(x.pairwise_metric_input().is_none());
assert!(x.tool_call_valid_input().is_none());
assert!(x.tool_name_match_input().is_none());
assert!(x.tool_parameter_key_match_input().is_none());
assert!(x.tool_parameter_kv_match_input().is_none());
assert!(x.comet_input().is_none());
assert!(x.metricx_input().is_none());Sourcepub fn fulfillment_input(&self) -> Option<&Box<FulfillmentInput>>
pub fn fulfillment_input(&self) -> Option<&Box<FulfillmentInput>>
The value of metric_inputs
if it holds a FulfillmentInput, None if the field is not set or
holds a different branch.
Sourcepub fn set_fulfillment_input<T: Into<Box<FulfillmentInput>>>(self, v: T) -> Self
pub fn set_fulfillment_input<T: Into<Box<FulfillmentInput>>>(self, v: T) -> Self
Sets the value of metric_inputs
to hold a FulfillmentInput.
Note that all the setters affecting metric_inputs are
mutually exclusive.
§Example
use google_cloud_aiplatform_v1::model::FulfillmentInput;
let x = EvaluateInstancesRequest::new().set_fulfillment_input(FulfillmentInput::default()/* use setters */);
assert!(x.fulfillment_input().is_some());
assert!(x.exact_match_input().is_none());
assert!(x.bleu_input().is_none());
assert!(x.rouge_input().is_none());
assert!(x.fluency_input().is_none());
assert!(x.coherence_input().is_none());
assert!(x.safety_input().is_none());
assert!(x.groundedness_input().is_none());
assert!(x.summarization_quality_input().is_none());
assert!(x.pairwise_summarization_quality_input().is_none());
assert!(x.summarization_helpfulness_input().is_none());
assert!(x.summarization_verbosity_input().is_none());
assert!(x.question_answering_quality_input().is_none());
assert!(x.pairwise_question_answering_quality_input().is_none());
assert!(x.question_answering_relevance_input().is_none());
assert!(x.question_answering_helpfulness_input().is_none());
assert!(x.question_answering_correctness_input().is_none());
assert!(x.pointwise_metric_input().is_none());
assert!(x.pairwise_metric_input().is_none());
assert!(x.tool_call_valid_input().is_none());
assert!(x.tool_name_match_input().is_none());
assert!(x.tool_parameter_key_match_input().is_none());
assert!(x.tool_parameter_kv_match_input().is_none());
assert!(x.comet_input().is_none());
assert!(x.metricx_input().is_none());Sourcepub fn summarization_quality_input(
&self,
) -> Option<&Box<SummarizationQualityInput>>
pub fn summarization_quality_input( &self, ) -> Option<&Box<SummarizationQualityInput>>
The value of metric_inputs
if it holds a SummarizationQualityInput, None if the field is not set or
holds a different branch.
Sourcepub fn set_summarization_quality_input<T: Into<Box<SummarizationQualityInput>>>(
self,
v: T,
) -> Self
pub fn set_summarization_quality_input<T: Into<Box<SummarizationQualityInput>>>( self, v: T, ) -> Self
Sets the value of metric_inputs
to hold a SummarizationQualityInput.
Note that all the setters affecting metric_inputs are
mutually exclusive.
§Example
use google_cloud_aiplatform_v1::model::SummarizationQualityInput;
let x = EvaluateInstancesRequest::new().set_summarization_quality_input(SummarizationQualityInput::default()/* use setters */);
assert!(x.summarization_quality_input().is_some());
assert!(x.exact_match_input().is_none());
assert!(x.bleu_input().is_none());
assert!(x.rouge_input().is_none());
assert!(x.fluency_input().is_none());
assert!(x.coherence_input().is_none());
assert!(x.safety_input().is_none());
assert!(x.groundedness_input().is_none());
assert!(x.fulfillment_input().is_none());
assert!(x.pairwise_summarization_quality_input().is_none());
assert!(x.summarization_helpfulness_input().is_none());
assert!(x.summarization_verbosity_input().is_none());
assert!(x.question_answering_quality_input().is_none());
assert!(x.pairwise_question_answering_quality_input().is_none());
assert!(x.question_answering_relevance_input().is_none());
assert!(x.question_answering_helpfulness_input().is_none());
assert!(x.question_answering_correctness_input().is_none());
assert!(x.pointwise_metric_input().is_none());
assert!(x.pairwise_metric_input().is_none());
assert!(x.tool_call_valid_input().is_none());
assert!(x.tool_name_match_input().is_none());
assert!(x.tool_parameter_key_match_input().is_none());
assert!(x.tool_parameter_kv_match_input().is_none());
assert!(x.comet_input().is_none());
assert!(x.metricx_input().is_none());Sourcepub fn pairwise_summarization_quality_input(
&self,
) -> Option<&Box<PairwiseSummarizationQualityInput>>
pub fn pairwise_summarization_quality_input( &self, ) -> Option<&Box<PairwiseSummarizationQualityInput>>
The value of metric_inputs
if it holds a PairwiseSummarizationQualityInput, None if the field is not set or
holds a different branch.
Sourcepub fn set_pairwise_summarization_quality_input<T: Into<Box<PairwiseSummarizationQualityInput>>>(
self,
v: T,
) -> Self
pub fn set_pairwise_summarization_quality_input<T: Into<Box<PairwiseSummarizationQualityInput>>>( self, v: T, ) -> Self
Sets the value of metric_inputs
to hold a PairwiseSummarizationQualityInput.
Note that all the setters affecting metric_inputs are
mutually exclusive.
§Example
use google_cloud_aiplatform_v1::model::PairwiseSummarizationQualityInput;
let x = EvaluateInstancesRequest::new().set_pairwise_summarization_quality_input(PairwiseSummarizationQualityInput::default()/* use setters */);
assert!(x.pairwise_summarization_quality_input().is_some());
assert!(x.exact_match_input().is_none());
assert!(x.bleu_input().is_none());
assert!(x.rouge_input().is_none());
assert!(x.fluency_input().is_none());
assert!(x.coherence_input().is_none());
assert!(x.safety_input().is_none());
assert!(x.groundedness_input().is_none());
assert!(x.fulfillment_input().is_none());
assert!(x.summarization_quality_input().is_none());
assert!(x.summarization_helpfulness_input().is_none());
assert!(x.summarization_verbosity_input().is_none());
assert!(x.question_answering_quality_input().is_none());
assert!(x.pairwise_question_answering_quality_input().is_none());
assert!(x.question_answering_relevance_input().is_none());
assert!(x.question_answering_helpfulness_input().is_none());
assert!(x.question_answering_correctness_input().is_none());
assert!(x.pointwise_metric_input().is_none());
assert!(x.pairwise_metric_input().is_none());
assert!(x.tool_call_valid_input().is_none());
assert!(x.tool_name_match_input().is_none());
assert!(x.tool_parameter_key_match_input().is_none());
assert!(x.tool_parameter_kv_match_input().is_none());
assert!(x.comet_input().is_none());
assert!(x.metricx_input().is_none());Sourcepub fn summarization_helpfulness_input(
&self,
) -> Option<&Box<SummarizationHelpfulnessInput>>
pub fn summarization_helpfulness_input( &self, ) -> Option<&Box<SummarizationHelpfulnessInput>>
The value of metric_inputs
if it holds a SummarizationHelpfulnessInput, None if the field is not set or
holds a different branch.
Sourcepub fn set_summarization_helpfulness_input<T: Into<Box<SummarizationHelpfulnessInput>>>(
self,
v: T,
) -> Self
pub fn set_summarization_helpfulness_input<T: Into<Box<SummarizationHelpfulnessInput>>>( self, v: T, ) -> Self
Sets the value of metric_inputs
to hold a SummarizationHelpfulnessInput.
Note that all the setters affecting metric_inputs are
mutually exclusive.
§Example
use google_cloud_aiplatform_v1::model::SummarizationHelpfulnessInput;
let x = EvaluateInstancesRequest::new().set_summarization_helpfulness_input(SummarizationHelpfulnessInput::default()/* use setters */);
assert!(x.summarization_helpfulness_input().is_some());
assert!(x.exact_match_input().is_none());
assert!(x.bleu_input().is_none());
assert!(x.rouge_input().is_none());
assert!(x.fluency_input().is_none());
assert!(x.coherence_input().is_none());
assert!(x.safety_input().is_none());
assert!(x.groundedness_input().is_none());
assert!(x.fulfillment_input().is_none());
assert!(x.summarization_quality_input().is_none());
assert!(x.pairwise_summarization_quality_input().is_none());
assert!(x.summarization_verbosity_input().is_none());
assert!(x.question_answering_quality_input().is_none());
assert!(x.pairwise_question_answering_quality_input().is_none());
assert!(x.question_answering_relevance_input().is_none());
assert!(x.question_answering_helpfulness_input().is_none());
assert!(x.question_answering_correctness_input().is_none());
assert!(x.pointwise_metric_input().is_none());
assert!(x.pairwise_metric_input().is_none());
assert!(x.tool_call_valid_input().is_none());
assert!(x.tool_name_match_input().is_none());
assert!(x.tool_parameter_key_match_input().is_none());
assert!(x.tool_parameter_kv_match_input().is_none());
assert!(x.comet_input().is_none());
assert!(x.metricx_input().is_none());Sourcepub fn summarization_verbosity_input(
&self,
) -> Option<&Box<SummarizationVerbosityInput>>
pub fn summarization_verbosity_input( &self, ) -> Option<&Box<SummarizationVerbosityInput>>
The value of metric_inputs
if it holds a SummarizationVerbosityInput, None if the field is not set or
holds a different branch.
Sourcepub fn set_summarization_verbosity_input<T: Into<Box<SummarizationVerbosityInput>>>(
self,
v: T,
) -> Self
pub fn set_summarization_verbosity_input<T: Into<Box<SummarizationVerbosityInput>>>( self, v: T, ) -> Self
Sets the value of metric_inputs
to hold a SummarizationVerbosityInput.
Note that all the setters affecting metric_inputs are
mutually exclusive.
§Example
use google_cloud_aiplatform_v1::model::SummarizationVerbosityInput;
let x = EvaluateInstancesRequest::new().set_summarization_verbosity_input(SummarizationVerbosityInput::default()/* use setters */);
assert!(x.summarization_verbosity_input().is_some());
assert!(x.exact_match_input().is_none());
assert!(x.bleu_input().is_none());
assert!(x.rouge_input().is_none());
assert!(x.fluency_input().is_none());
assert!(x.coherence_input().is_none());
assert!(x.safety_input().is_none());
assert!(x.groundedness_input().is_none());
assert!(x.fulfillment_input().is_none());
assert!(x.summarization_quality_input().is_none());
assert!(x.pairwise_summarization_quality_input().is_none());
assert!(x.summarization_helpfulness_input().is_none());
assert!(x.question_answering_quality_input().is_none());
assert!(x.pairwise_question_answering_quality_input().is_none());
assert!(x.question_answering_relevance_input().is_none());
assert!(x.question_answering_helpfulness_input().is_none());
assert!(x.question_answering_correctness_input().is_none());
assert!(x.pointwise_metric_input().is_none());
assert!(x.pairwise_metric_input().is_none());
assert!(x.tool_call_valid_input().is_none());
assert!(x.tool_name_match_input().is_none());
assert!(x.tool_parameter_key_match_input().is_none());
assert!(x.tool_parameter_kv_match_input().is_none());
assert!(x.comet_input().is_none());
assert!(x.metricx_input().is_none());Sourcepub fn question_answering_quality_input(
&self,
) -> Option<&Box<QuestionAnsweringQualityInput>>
pub fn question_answering_quality_input( &self, ) -> Option<&Box<QuestionAnsweringQualityInput>>
The value of metric_inputs
if it holds a QuestionAnsweringQualityInput, None if the field is not set or
holds a different branch.
Sourcepub fn set_question_answering_quality_input<T: Into<Box<QuestionAnsweringQualityInput>>>(
self,
v: T,
) -> Self
pub fn set_question_answering_quality_input<T: Into<Box<QuestionAnsweringQualityInput>>>( self, v: T, ) -> Self
Sets the value of metric_inputs
to hold a QuestionAnsweringQualityInput.
Note that all the setters affecting metric_inputs are
mutually exclusive.
§Example
use google_cloud_aiplatform_v1::model::QuestionAnsweringQualityInput;
let x = EvaluateInstancesRequest::new().set_question_answering_quality_input(QuestionAnsweringQualityInput::default()/* use setters */);
assert!(x.question_answering_quality_input().is_some());
assert!(x.exact_match_input().is_none());
assert!(x.bleu_input().is_none());
assert!(x.rouge_input().is_none());
assert!(x.fluency_input().is_none());
assert!(x.coherence_input().is_none());
assert!(x.safety_input().is_none());
assert!(x.groundedness_input().is_none());
assert!(x.fulfillment_input().is_none());
assert!(x.summarization_quality_input().is_none());
assert!(x.pairwise_summarization_quality_input().is_none());
assert!(x.summarization_helpfulness_input().is_none());
assert!(x.summarization_verbosity_input().is_none());
assert!(x.pairwise_question_answering_quality_input().is_none());
assert!(x.question_answering_relevance_input().is_none());
assert!(x.question_answering_helpfulness_input().is_none());
assert!(x.question_answering_correctness_input().is_none());
assert!(x.pointwise_metric_input().is_none());
assert!(x.pairwise_metric_input().is_none());
assert!(x.tool_call_valid_input().is_none());
assert!(x.tool_name_match_input().is_none());
assert!(x.tool_parameter_key_match_input().is_none());
assert!(x.tool_parameter_kv_match_input().is_none());
assert!(x.comet_input().is_none());
assert!(x.metricx_input().is_none());Sourcepub fn pairwise_question_answering_quality_input(
&self,
) -> Option<&Box<PairwiseQuestionAnsweringQualityInput>>
pub fn pairwise_question_answering_quality_input( &self, ) -> Option<&Box<PairwiseQuestionAnsweringQualityInput>>
The value of metric_inputs
if it holds a PairwiseQuestionAnsweringQualityInput, None if the field is not set or
holds a different branch.
Sourcepub fn set_pairwise_question_answering_quality_input<T: Into<Box<PairwiseQuestionAnsweringQualityInput>>>(
self,
v: T,
) -> Self
pub fn set_pairwise_question_answering_quality_input<T: Into<Box<PairwiseQuestionAnsweringQualityInput>>>( self, v: T, ) -> Self
Sets the value of metric_inputs
to hold a PairwiseQuestionAnsweringQualityInput.
Note that all the setters affecting metric_inputs are
mutually exclusive.
§Example
use google_cloud_aiplatform_v1::model::PairwiseQuestionAnsweringQualityInput;
let x = EvaluateInstancesRequest::new().set_pairwise_question_answering_quality_input(PairwiseQuestionAnsweringQualityInput::default()/* use setters */);
assert!(x.pairwise_question_answering_quality_input().is_some());
assert!(x.exact_match_input().is_none());
assert!(x.bleu_input().is_none());
assert!(x.rouge_input().is_none());
assert!(x.fluency_input().is_none());
assert!(x.coherence_input().is_none());
assert!(x.safety_input().is_none());
assert!(x.groundedness_input().is_none());
assert!(x.fulfillment_input().is_none());
assert!(x.summarization_quality_input().is_none());
assert!(x.pairwise_summarization_quality_input().is_none());
assert!(x.summarization_helpfulness_input().is_none());
assert!(x.summarization_verbosity_input().is_none());
assert!(x.question_answering_quality_input().is_none());
assert!(x.question_answering_relevance_input().is_none());
assert!(x.question_answering_helpfulness_input().is_none());
assert!(x.question_answering_correctness_input().is_none());
assert!(x.pointwise_metric_input().is_none());
assert!(x.pairwise_metric_input().is_none());
assert!(x.tool_call_valid_input().is_none());
assert!(x.tool_name_match_input().is_none());
assert!(x.tool_parameter_key_match_input().is_none());
assert!(x.tool_parameter_kv_match_input().is_none());
assert!(x.comet_input().is_none());
assert!(x.metricx_input().is_none());Sourcepub fn question_answering_relevance_input(
&self,
) -> Option<&Box<QuestionAnsweringRelevanceInput>>
pub fn question_answering_relevance_input( &self, ) -> Option<&Box<QuestionAnsweringRelevanceInput>>
The value of metric_inputs
if it holds a QuestionAnsweringRelevanceInput, None if the field is not set or
holds a different branch.
Sourcepub fn set_question_answering_relevance_input<T: Into<Box<QuestionAnsweringRelevanceInput>>>(
self,
v: T,
) -> Self
pub fn set_question_answering_relevance_input<T: Into<Box<QuestionAnsweringRelevanceInput>>>( self, v: T, ) -> Self
Sets the value of metric_inputs
to hold a QuestionAnsweringRelevanceInput.
Note that all the setters affecting metric_inputs are
mutually exclusive.
§Example
use google_cloud_aiplatform_v1::model::QuestionAnsweringRelevanceInput;
let x = EvaluateInstancesRequest::new().set_question_answering_relevance_input(QuestionAnsweringRelevanceInput::default()/* use setters */);
assert!(x.question_answering_relevance_input().is_some());
assert!(x.exact_match_input().is_none());
assert!(x.bleu_input().is_none());
assert!(x.rouge_input().is_none());
assert!(x.fluency_input().is_none());
assert!(x.coherence_input().is_none());
assert!(x.safety_input().is_none());
assert!(x.groundedness_input().is_none());
assert!(x.fulfillment_input().is_none());
assert!(x.summarization_quality_input().is_none());
assert!(x.pairwise_summarization_quality_input().is_none());
assert!(x.summarization_helpfulness_input().is_none());
assert!(x.summarization_verbosity_input().is_none());
assert!(x.question_answering_quality_input().is_none());
assert!(x.pairwise_question_answering_quality_input().is_none());
assert!(x.question_answering_helpfulness_input().is_none());
assert!(x.question_answering_correctness_input().is_none());
assert!(x.pointwise_metric_input().is_none());
assert!(x.pairwise_metric_input().is_none());
assert!(x.tool_call_valid_input().is_none());
assert!(x.tool_name_match_input().is_none());
assert!(x.tool_parameter_key_match_input().is_none());
assert!(x.tool_parameter_kv_match_input().is_none());
assert!(x.comet_input().is_none());
assert!(x.metricx_input().is_none());Sourcepub fn question_answering_helpfulness_input(
&self,
) -> Option<&Box<QuestionAnsweringHelpfulnessInput>>
pub fn question_answering_helpfulness_input( &self, ) -> Option<&Box<QuestionAnsweringHelpfulnessInput>>
The value of metric_inputs
if it holds a QuestionAnsweringHelpfulnessInput, None if the field is not set or
holds a different branch.
Sourcepub fn set_question_answering_helpfulness_input<T: Into<Box<QuestionAnsweringHelpfulnessInput>>>(
self,
v: T,
) -> Self
pub fn set_question_answering_helpfulness_input<T: Into<Box<QuestionAnsweringHelpfulnessInput>>>( self, v: T, ) -> Self
Sets the value of metric_inputs
to hold a QuestionAnsweringHelpfulnessInput.
Note that all the setters affecting metric_inputs are
mutually exclusive.
§Example
use google_cloud_aiplatform_v1::model::QuestionAnsweringHelpfulnessInput;
let x = EvaluateInstancesRequest::new().set_question_answering_helpfulness_input(QuestionAnsweringHelpfulnessInput::default()/* use setters */);
assert!(x.question_answering_helpfulness_input().is_some());
assert!(x.exact_match_input().is_none());
assert!(x.bleu_input().is_none());
assert!(x.rouge_input().is_none());
assert!(x.fluency_input().is_none());
assert!(x.coherence_input().is_none());
assert!(x.safety_input().is_none());
assert!(x.groundedness_input().is_none());
assert!(x.fulfillment_input().is_none());
assert!(x.summarization_quality_input().is_none());
assert!(x.pairwise_summarization_quality_input().is_none());
assert!(x.summarization_helpfulness_input().is_none());
assert!(x.summarization_verbosity_input().is_none());
assert!(x.question_answering_quality_input().is_none());
assert!(x.pairwise_question_answering_quality_input().is_none());
assert!(x.question_answering_relevance_input().is_none());
assert!(x.question_answering_correctness_input().is_none());
assert!(x.pointwise_metric_input().is_none());
assert!(x.pairwise_metric_input().is_none());
assert!(x.tool_call_valid_input().is_none());
assert!(x.tool_name_match_input().is_none());
assert!(x.tool_parameter_key_match_input().is_none());
assert!(x.tool_parameter_kv_match_input().is_none());
assert!(x.comet_input().is_none());
assert!(x.metricx_input().is_none());Sourcepub fn question_answering_correctness_input(
&self,
) -> Option<&Box<QuestionAnsweringCorrectnessInput>>
pub fn question_answering_correctness_input( &self, ) -> Option<&Box<QuestionAnsweringCorrectnessInput>>
The value of metric_inputs
if it holds a QuestionAnsweringCorrectnessInput, None if the field is not set or
holds a different branch.
Sourcepub fn set_question_answering_correctness_input<T: Into<Box<QuestionAnsweringCorrectnessInput>>>(
self,
v: T,
) -> Self
pub fn set_question_answering_correctness_input<T: Into<Box<QuestionAnsweringCorrectnessInput>>>( self, v: T, ) -> Self
Sets the value of metric_inputs
to hold a QuestionAnsweringCorrectnessInput.
Note that all the setters affecting metric_inputs are
mutually exclusive.
§Example
use google_cloud_aiplatform_v1::model::QuestionAnsweringCorrectnessInput;
let x = EvaluateInstancesRequest::new().set_question_answering_correctness_input(QuestionAnsweringCorrectnessInput::default()/* use setters */);
assert!(x.question_answering_correctness_input().is_some());
assert!(x.exact_match_input().is_none());
assert!(x.bleu_input().is_none());
assert!(x.rouge_input().is_none());
assert!(x.fluency_input().is_none());
assert!(x.coherence_input().is_none());
assert!(x.safety_input().is_none());
assert!(x.groundedness_input().is_none());
assert!(x.fulfillment_input().is_none());
assert!(x.summarization_quality_input().is_none());
assert!(x.pairwise_summarization_quality_input().is_none());
assert!(x.summarization_helpfulness_input().is_none());
assert!(x.summarization_verbosity_input().is_none());
assert!(x.question_answering_quality_input().is_none());
assert!(x.pairwise_question_answering_quality_input().is_none());
assert!(x.question_answering_relevance_input().is_none());
assert!(x.question_answering_helpfulness_input().is_none());
assert!(x.pointwise_metric_input().is_none());
assert!(x.pairwise_metric_input().is_none());
assert!(x.tool_call_valid_input().is_none());
assert!(x.tool_name_match_input().is_none());
assert!(x.tool_parameter_key_match_input().is_none());
assert!(x.tool_parameter_kv_match_input().is_none());
assert!(x.comet_input().is_none());
assert!(x.metricx_input().is_none());Sourcepub fn pointwise_metric_input(&self) -> Option<&Box<PointwiseMetricInput>>
pub fn pointwise_metric_input(&self) -> Option<&Box<PointwiseMetricInput>>
The value of metric_inputs
if it holds a PointwiseMetricInput, None if the field is not set or
holds a different branch.
Sourcepub fn set_pointwise_metric_input<T: Into<Box<PointwiseMetricInput>>>(
self,
v: T,
) -> Self
pub fn set_pointwise_metric_input<T: Into<Box<PointwiseMetricInput>>>( self, v: T, ) -> Self
Sets the value of metric_inputs
to hold a PointwiseMetricInput.
Note that all the setters affecting metric_inputs are
mutually exclusive.
§Example
use google_cloud_aiplatform_v1::model::PointwiseMetricInput;
let x = EvaluateInstancesRequest::new().set_pointwise_metric_input(PointwiseMetricInput::default()/* use setters */);
assert!(x.pointwise_metric_input().is_some());
assert!(x.exact_match_input().is_none());
assert!(x.bleu_input().is_none());
assert!(x.rouge_input().is_none());
assert!(x.fluency_input().is_none());
assert!(x.coherence_input().is_none());
assert!(x.safety_input().is_none());
assert!(x.groundedness_input().is_none());
assert!(x.fulfillment_input().is_none());
assert!(x.summarization_quality_input().is_none());
assert!(x.pairwise_summarization_quality_input().is_none());
assert!(x.summarization_helpfulness_input().is_none());
assert!(x.summarization_verbosity_input().is_none());
assert!(x.question_answering_quality_input().is_none());
assert!(x.pairwise_question_answering_quality_input().is_none());
assert!(x.question_answering_relevance_input().is_none());
assert!(x.question_answering_helpfulness_input().is_none());
assert!(x.question_answering_correctness_input().is_none());
assert!(x.pairwise_metric_input().is_none());
assert!(x.tool_call_valid_input().is_none());
assert!(x.tool_name_match_input().is_none());
assert!(x.tool_parameter_key_match_input().is_none());
assert!(x.tool_parameter_kv_match_input().is_none());
assert!(x.comet_input().is_none());
assert!(x.metricx_input().is_none());Sourcepub fn pairwise_metric_input(&self) -> Option<&Box<PairwiseMetricInput>>
pub fn pairwise_metric_input(&self) -> Option<&Box<PairwiseMetricInput>>
The value of metric_inputs
if it holds a PairwiseMetricInput, None if the field is not set or
holds a different branch.
Sourcepub fn set_pairwise_metric_input<T: Into<Box<PairwiseMetricInput>>>(
self,
v: T,
) -> Self
pub fn set_pairwise_metric_input<T: Into<Box<PairwiseMetricInput>>>( self, v: T, ) -> Self
Sets the value of metric_inputs
to hold a PairwiseMetricInput.
Note that all the setters affecting metric_inputs are
mutually exclusive.
§Example
use google_cloud_aiplatform_v1::model::PairwiseMetricInput;
let x = EvaluateInstancesRequest::new().set_pairwise_metric_input(PairwiseMetricInput::default()/* use setters */);
assert!(x.pairwise_metric_input().is_some());
assert!(x.exact_match_input().is_none());
assert!(x.bleu_input().is_none());
assert!(x.rouge_input().is_none());
assert!(x.fluency_input().is_none());
assert!(x.coherence_input().is_none());
assert!(x.safety_input().is_none());
assert!(x.groundedness_input().is_none());
assert!(x.fulfillment_input().is_none());
assert!(x.summarization_quality_input().is_none());
assert!(x.pairwise_summarization_quality_input().is_none());
assert!(x.summarization_helpfulness_input().is_none());
assert!(x.summarization_verbosity_input().is_none());
assert!(x.question_answering_quality_input().is_none());
assert!(x.pairwise_question_answering_quality_input().is_none());
assert!(x.question_answering_relevance_input().is_none());
assert!(x.question_answering_helpfulness_input().is_none());
assert!(x.question_answering_correctness_input().is_none());
assert!(x.pointwise_metric_input().is_none());
assert!(x.tool_call_valid_input().is_none());
assert!(x.tool_name_match_input().is_none());
assert!(x.tool_parameter_key_match_input().is_none());
assert!(x.tool_parameter_kv_match_input().is_none());
assert!(x.comet_input().is_none());
assert!(x.metricx_input().is_none());Sourcepub fn tool_call_valid_input(&self) -> Option<&Box<ToolCallValidInput>>
pub fn tool_call_valid_input(&self) -> Option<&Box<ToolCallValidInput>>
The value of metric_inputs
if it holds a ToolCallValidInput, None if the field is not set or
holds a different branch.
Sourcepub fn set_tool_call_valid_input<T: Into<Box<ToolCallValidInput>>>(
self,
v: T,
) -> Self
pub fn set_tool_call_valid_input<T: Into<Box<ToolCallValidInput>>>( self, v: T, ) -> Self
Sets the value of metric_inputs
to hold a ToolCallValidInput.
Note that all the setters affecting metric_inputs are
mutually exclusive.
§Example
use google_cloud_aiplatform_v1::model::ToolCallValidInput;
let x = EvaluateInstancesRequest::new().set_tool_call_valid_input(ToolCallValidInput::default()/* use setters */);
assert!(x.tool_call_valid_input().is_some());
assert!(x.exact_match_input().is_none());
assert!(x.bleu_input().is_none());
assert!(x.rouge_input().is_none());
assert!(x.fluency_input().is_none());
assert!(x.coherence_input().is_none());
assert!(x.safety_input().is_none());
assert!(x.groundedness_input().is_none());
assert!(x.fulfillment_input().is_none());
assert!(x.summarization_quality_input().is_none());
assert!(x.pairwise_summarization_quality_input().is_none());
assert!(x.summarization_helpfulness_input().is_none());
assert!(x.summarization_verbosity_input().is_none());
assert!(x.question_answering_quality_input().is_none());
assert!(x.pairwise_question_answering_quality_input().is_none());
assert!(x.question_answering_relevance_input().is_none());
assert!(x.question_answering_helpfulness_input().is_none());
assert!(x.question_answering_correctness_input().is_none());
assert!(x.pointwise_metric_input().is_none());
assert!(x.pairwise_metric_input().is_none());
assert!(x.tool_name_match_input().is_none());
assert!(x.tool_parameter_key_match_input().is_none());
assert!(x.tool_parameter_kv_match_input().is_none());
assert!(x.comet_input().is_none());
assert!(x.metricx_input().is_none());Sourcepub fn tool_name_match_input(&self) -> Option<&Box<ToolNameMatchInput>>
pub fn tool_name_match_input(&self) -> Option<&Box<ToolNameMatchInput>>
The value of metric_inputs
if it holds a ToolNameMatchInput, None if the field is not set or
holds a different branch.
Sourcepub fn set_tool_name_match_input<T: Into<Box<ToolNameMatchInput>>>(
self,
v: T,
) -> Self
pub fn set_tool_name_match_input<T: Into<Box<ToolNameMatchInput>>>( self, v: T, ) -> Self
Sets the value of metric_inputs
to hold a ToolNameMatchInput.
Note that all the setters affecting metric_inputs are
mutually exclusive.
§Example
use google_cloud_aiplatform_v1::model::ToolNameMatchInput;
let x = EvaluateInstancesRequest::new().set_tool_name_match_input(ToolNameMatchInput::default()/* use setters */);
assert!(x.tool_name_match_input().is_some());
assert!(x.exact_match_input().is_none());
assert!(x.bleu_input().is_none());
assert!(x.rouge_input().is_none());
assert!(x.fluency_input().is_none());
assert!(x.coherence_input().is_none());
assert!(x.safety_input().is_none());
assert!(x.groundedness_input().is_none());
assert!(x.fulfillment_input().is_none());
assert!(x.summarization_quality_input().is_none());
assert!(x.pairwise_summarization_quality_input().is_none());
assert!(x.summarization_helpfulness_input().is_none());
assert!(x.summarization_verbosity_input().is_none());
assert!(x.question_answering_quality_input().is_none());
assert!(x.pairwise_question_answering_quality_input().is_none());
assert!(x.question_answering_relevance_input().is_none());
assert!(x.question_answering_helpfulness_input().is_none());
assert!(x.question_answering_correctness_input().is_none());
assert!(x.pointwise_metric_input().is_none());
assert!(x.pairwise_metric_input().is_none());
assert!(x.tool_call_valid_input().is_none());
assert!(x.tool_parameter_key_match_input().is_none());
assert!(x.tool_parameter_kv_match_input().is_none());
assert!(x.comet_input().is_none());
assert!(x.metricx_input().is_none());Sourcepub fn tool_parameter_key_match_input(
&self,
) -> Option<&Box<ToolParameterKeyMatchInput>>
pub fn tool_parameter_key_match_input( &self, ) -> Option<&Box<ToolParameterKeyMatchInput>>
The value of metric_inputs
if it holds a ToolParameterKeyMatchInput, None if the field is not set or
holds a different branch.
Sourcepub fn set_tool_parameter_key_match_input<T: Into<Box<ToolParameterKeyMatchInput>>>(
self,
v: T,
) -> Self
pub fn set_tool_parameter_key_match_input<T: Into<Box<ToolParameterKeyMatchInput>>>( self, v: T, ) -> Self
Sets the value of metric_inputs
to hold a ToolParameterKeyMatchInput.
Note that all the setters affecting metric_inputs are
mutually exclusive.
§Example
use google_cloud_aiplatform_v1::model::ToolParameterKeyMatchInput;
let x = EvaluateInstancesRequest::new().set_tool_parameter_key_match_input(ToolParameterKeyMatchInput::default()/* use setters */);
assert!(x.tool_parameter_key_match_input().is_some());
assert!(x.exact_match_input().is_none());
assert!(x.bleu_input().is_none());
assert!(x.rouge_input().is_none());
assert!(x.fluency_input().is_none());
assert!(x.coherence_input().is_none());
assert!(x.safety_input().is_none());
assert!(x.groundedness_input().is_none());
assert!(x.fulfillment_input().is_none());
assert!(x.summarization_quality_input().is_none());
assert!(x.pairwise_summarization_quality_input().is_none());
assert!(x.summarization_helpfulness_input().is_none());
assert!(x.summarization_verbosity_input().is_none());
assert!(x.question_answering_quality_input().is_none());
assert!(x.pairwise_question_answering_quality_input().is_none());
assert!(x.question_answering_relevance_input().is_none());
assert!(x.question_answering_helpfulness_input().is_none());
assert!(x.question_answering_correctness_input().is_none());
assert!(x.pointwise_metric_input().is_none());
assert!(x.pairwise_metric_input().is_none());
assert!(x.tool_call_valid_input().is_none());
assert!(x.tool_name_match_input().is_none());
assert!(x.tool_parameter_kv_match_input().is_none());
assert!(x.comet_input().is_none());
assert!(x.metricx_input().is_none());Sourcepub fn tool_parameter_kv_match_input(
&self,
) -> Option<&Box<ToolParameterKVMatchInput>>
pub fn tool_parameter_kv_match_input( &self, ) -> Option<&Box<ToolParameterKVMatchInput>>
The value of metric_inputs
if it holds a ToolParameterKvMatchInput, None if the field is not set or
holds a different branch.
Sourcepub fn set_tool_parameter_kv_match_input<T: Into<Box<ToolParameterKVMatchInput>>>(
self,
v: T,
) -> Self
pub fn set_tool_parameter_kv_match_input<T: Into<Box<ToolParameterKVMatchInput>>>( self, v: T, ) -> Self
Sets the value of metric_inputs
to hold a ToolParameterKvMatchInput.
Note that all the setters affecting metric_inputs are
mutually exclusive.
§Example
use google_cloud_aiplatform_v1::model::ToolParameterKVMatchInput;
let x = EvaluateInstancesRequest::new().set_tool_parameter_kv_match_input(ToolParameterKVMatchInput::default()/* use setters */);
assert!(x.tool_parameter_kv_match_input().is_some());
assert!(x.exact_match_input().is_none());
assert!(x.bleu_input().is_none());
assert!(x.rouge_input().is_none());
assert!(x.fluency_input().is_none());
assert!(x.coherence_input().is_none());
assert!(x.safety_input().is_none());
assert!(x.groundedness_input().is_none());
assert!(x.fulfillment_input().is_none());
assert!(x.summarization_quality_input().is_none());
assert!(x.pairwise_summarization_quality_input().is_none());
assert!(x.summarization_helpfulness_input().is_none());
assert!(x.summarization_verbosity_input().is_none());
assert!(x.question_answering_quality_input().is_none());
assert!(x.pairwise_question_answering_quality_input().is_none());
assert!(x.question_answering_relevance_input().is_none());
assert!(x.question_answering_helpfulness_input().is_none());
assert!(x.question_answering_correctness_input().is_none());
assert!(x.pointwise_metric_input().is_none());
assert!(x.pairwise_metric_input().is_none());
assert!(x.tool_call_valid_input().is_none());
assert!(x.tool_name_match_input().is_none());
assert!(x.tool_parameter_key_match_input().is_none());
assert!(x.comet_input().is_none());
assert!(x.metricx_input().is_none());Sourcepub fn comet_input(&self) -> Option<&Box<CometInput>>
pub fn comet_input(&self) -> Option<&Box<CometInput>>
The value of metric_inputs
if it holds a CometInput, None if the field is not set or
holds a different branch.
Sourcepub fn set_comet_input<T: Into<Box<CometInput>>>(self, v: T) -> Self
pub fn set_comet_input<T: Into<Box<CometInput>>>(self, v: T) -> Self
Sets the value of metric_inputs
to hold a CometInput.
Note that all the setters affecting metric_inputs are
mutually exclusive.
§Example
use google_cloud_aiplatform_v1::model::CometInput;
let x = EvaluateInstancesRequest::new().set_comet_input(CometInput::default()/* use setters */);
assert!(x.comet_input().is_some());
assert!(x.exact_match_input().is_none());
assert!(x.bleu_input().is_none());
assert!(x.rouge_input().is_none());
assert!(x.fluency_input().is_none());
assert!(x.coherence_input().is_none());
assert!(x.safety_input().is_none());
assert!(x.groundedness_input().is_none());
assert!(x.fulfillment_input().is_none());
assert!(x.summarization_quality_input().is_none());
assert!(x.pairwise_summarization_quality_input().is_none());
assert!(x.summarization_helpfulness_input().is_none());
assert!(x.summarization_verbosity_input().is_none());
assert!(x.question_answering_quality_input().is_none());
assert!(x.pairwise_question_answering_quality_input().is_none());
assert!(x.question_answering_relevance_input().is_none());
assert!(x.question_answering_helpfulness_input().is_none());
assert!(x.question_answering_correctness_input().is_none());
assert!(x.pointwise_metric_input().is_none());
assert!(x.pairwise_metric_input().is_none());
assert!(x.tool_call_valid_input().is_none());
assert!(x.tool_name_match_input().is_none());
assert!(x.tool_parameter_key_match_input().is_none());
assert!(x.tool_parameter_kv_match_input().is_none());
assert!(x.metricx_input().is_none());Sourcepub fn metricx_input(&self) -> Option<&Box<MetricxInput>>
pub fn metricx_input(&self) -> Option<&Box<MetricxInput>>
The value of metric_inputs
if it holds a MetricxInput, None if the field is not set or
holds a different branch.
Sourcepub fn set_metricx_input<T: Into<Box<MetricxInput>>>(self, v: T) -> Self
pub fn set_metricx_input<T: Into<Box<MetricxInput>>>(self, v: T) -> Self
Sets the value of metric_inputs
to hold a MetricxInput.
Note that all the setters affecting metric_inputs are
mutually exclusive.
§Example
use google_cloud_aiplatform_v1::model::MetricxInput;
let x = EvaluateInstancesRequest::new().set_metricx_input(MetricxInput::default()/* use setters */);
assert!(x.metricx_input().is_some());
assert!(x.exact_match_input().is_none());
assert!(x.bleu_input().is_none());
assert!(x.rouge_input().is_none());
assert!(x.fluency_input().is_none());
assert!(x.coherence_input().is_none());
assert!(x.safety_input().is_none());
assert!(x.groundedness_input().is_none());
assert!(x.fulfillment_input().is_none());
assert!(x.summarization_quality_input().is_none());
assert!(x.pairwise_summarization_quality_input().is_none());
assert!(x.summarization_helpfulness_input().is_none());
assert!(x.summarization_verbosity_input().is_none());
assert!(x.question_answering_quality_input().is_none());
assert!(x.pairwise_question_answering_quality_input().is_none());
assert!(x.question_answering_relevance_input().is_none());
assert!(x.question_answering_helpfulness_input().is_none());
assert!(x.question_answering_correctness_input().is_none());
assert!(x.pointwise_metric_input().is_none());
assert!(x.pairwise_metric_input().is_none());
assert!(x.tool_call_valid_input().is_none());
assert!(x.tool_name_match_input().is_none());
assert!(x.tool_parameter_key_match_input().is_none());
assert!(x.tool_parameter_kv_match_input().is_none());
assert!(x.comet_input().is_none());Trait Implementations§
Source§impl Clone for EvaluateInstancesRequest
impl Clone for EvaluateInstancesRequest
Source§fn clone(&self) -> EvaluateInstancesRequest
fn clone(&self) -> EvaluateInstancesRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more