Google Cloud Ai Platform V1 Client - Class QuestionAnsweringHelpfulnessInput (1.14.0)

Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class QuestionAnsweringHelpfulnessInput.

Input for question answering helpfulness metric.

Generated from protobuf message google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInput

Namespace

Google \ Cloud \ AIPlatform \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ metric_spec QuestionAnsweringHelpfulnessSpec

Required. Spec for question answering helpfulness score metric.

↳ instance QuestionAnsweringHelpfulnessInstance

Required. Question answering helpfulness instance.

getMetricSpec

Required. Spec for question answering helpfulness score metric.

Returns
Type Description
QuestionAnsweringHelpfulnessSpec|null

hasMetricSpec

clearMetricSpec

setMetricSpec

Required. Spec for question answering helpfulness score metric.

Parameter
Name Description
var QuestionAnsweringHelpfulnessSpec
Returns
Type Description
$this

getInstance

Required. Question answering helpfulness instance.

Returns
Type Description
QuestionAnsweringHelpfulnessInstance|null

hasInstance

clearInstance

setInstance

Required. Question answering helpfulness instance.

Parameter
Name Description
var QuestionAnsweringHelpfulnessInstance
Returns
Type Description
$this

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月08日 UTC.