public static final class QuestionAnsweringHelpfulnessInput.Builder extends GeneratedMessageV3.Builder<QuestionAnsweringHelpfulnessInput.Builder> implements QuestionAnsweringHelpfulnessInputOrBuilder
Input for question answering helpfulness metric.
Protobuf type google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInput
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public QuestionAnsweringHelpfulnessInput.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public QuestionAnsweringHelpfulnessInput build()
public QuestionAnsweringHelpfulnessInput buildPartial()
public QuestionAnsweringHelpfulnessInput.Builder clear()
Overrides
public QuestionAnsweringHelpfulnessInput.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public QuestionAnsweringHelpfulnessInput.Builder clearInstance()
Required. Question answering helpfulness instance.
.google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInstance instance = 2 [(.google.api.field_behavior) = REQUIRED];
public QuestionAnsweringHelpfulnessInput.Builder clearMetricSpec()
Required. Spec for question answering helpfulness score metric.
.google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED];
public QuestionAnsweringHelpfulnessInput.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public QuestionAnsweringHelpfulnessInput.Builder clone()
Overrides
public QuestionAnsweringHelpfulnessInput getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public QuestionAnsweringHelpfulnessInstance getInstance()
Required. Question answering helpfulness instance.
.google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInstance instance = 2 [(.google.api.field_behavior) = REQUIRED];
public QuestionAnsweringHelpfulnessInstance.Builder getInstanceBuilder()
Required. Question answering helpfulness instance.
.google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInstance instance = 2 [(.google.api.field_behavior) = REQUIRED];
public QuestionAnsweringHelpfulnessInstanceOrBuilder getInstanceOrBuilder()
Required. Question answering helpfulness instance.
.google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInstance instance = 2 [(.google.api.field_behavior) = REQUIRED];
public QuestionAnsweringHelpfulnessSpec getMetricSpec()
Required. Spec for question answering helpfulness score metric.
.google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED];
public QuestionAnsweringHelpfulnessSpec.Builder getMetricSpecBuilder()
Required. Spec for question answering helpfulness score metric.
.google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED];
public QuestionAnsweringHelpfulnessSpecOrBuilder getMetricSpecOrBuilder()
Required. Spec for question answering helpfulness score metric.
.google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED];
public boolean hasInstance()
Required. Question answering helpfulness instance.
.google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInstance instance = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
boolean |
Whether the instance field is set.
|
public boolean hasMetricSpec()
Required. Spec for question answering helpfulness score metric.
.google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
boolean |
Whether the metricSpec field is set.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public QuestionAnsweringHelpfulnessInput.Builder mergeFrom(QuestionAnsweringHelpfulnessInput other)
public QuestionAnsweringHelpfulnessInput.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public QuestionAnsweringHelpfulnessInput.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public QuestionAnsweringHelpfulnessInput.Builder mergeInstance(QuestionAnsweringHelpfulnessInstance value)
Required. Question answering helpfulness instance.
.google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInstance instance = 2 [(.google.api.field_behavior) = REQUIRED];
public QuestionAnsweringHelpfulnessInput.Builder mergeMetricSpec(QuestionAnsweringHelpfulnessSpec value)
Required. Spec for question answering helpfulness score metric.
.google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED];
public final QuestionAnsweringHelpfulnessInput.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public QuestionAnsweringHelpfulnessInput.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public QuestionAnsweringHelpfulnessInput.Builder setInstance(QuestionAnsweringHelpfulnessInstance value)
Required. Question answering helpfulness instance.
.google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInstance instance = 2 [(.google.api.field_behavior) = REQUIRED];
public QuestionAnsweringHelpfulnessInput.Builder setInstance(QuestionAnsweringHelpfulnessInstance.Builder builderForValue)
Required. Question answering helpfulness instance.
.google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInstance instance = 2 [(.google.api.field_behavior) = REQUIRED];
public QuestionAnsweringHelpfulnessInput.Builder setMetricSpec(QuestionAnsweringHelpfulnessSpec value)
Required. Spec for question answering helpfulness score metric.
.google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED];
public QuestionAnsweringHelpfulnessInput.Builder setMetricSpec(QuestionAnsweringHelpfulnessSpec.Builder builderForValue)
Required. Spec for question answering helpfulness score metric.
.google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED];
public QuestionAnsweringHelpfulnessInput.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final QuestionAnsweringHelpfulnessInput.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides