public static final class PairwiseMetricSpec.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PairwiseMetricSpec.Builder> implements PairwiseMetricSpecOrBuilder
Spec for pairwise metric.Protobuf type
google.cloud.aiplatform.v1beta1.PairwiseMetricSpecgetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<PairwiseMetricSpec.Builder>public PairwiseMetricSpec.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<PairwiseMetricSpec.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<PairwiseMetricSpec.Builder>public PairwiseMetricSpec getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic PairwiseMetricSpec build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic PairwiseMetricSpec buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic PairwiseMetricSpec.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<PairwiseMetricSpec.Builder>public PairwiseMetricSpec.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<PairwiseMetricSpec.Builder>public PairwiseMetricSpec.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<PairwiseMetricSpec.Builder>public PairwiseMetricSpec.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<PairwiseMetricSpec.Builder>public PairwiseMetricSpec.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PairwiseMetricSpec.Builder>public PairwiseMetricSpec.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PairwiseMetricSpec.Builder>public PairwiseMetricSpec.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<PairwiseMetricSpec.Builder>public PairwiseMetricSpec.Builder mergeFrom(PairwiseMetricSpec other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<PairwiseMetricSpec.Builder>public PairwiseMetricSpec.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<PairwiseMetricSpec.Builder>IOExceptionpublic boolean hasMetricPromptTemplate()
Required. Metric prompt template for pairwise metric.
optional string metric_prompt_template = 1 [(.google.api.field_behavior) = REQUIRED];
hasMetricPromptTemplate in interface PairwiseMetricSpecOrBuilderpublic String getMetricPromptTemplate()
Required. Metric prompt template for pairwise metric.
optional string metric_prompt_template = 1 [(.google.api.field_behavior) = REQUIRED];
getMetricPromptTemplate in interface PairwiseMetricSpecOrBuilderpublic com.google.protobuf.ByteString getMetricPromptTemplateBytes()
Required. Metric prompt template for pairwise metric.
optional string metric_prompt_template = 1 [(.google.api.field_behavior) = REQUIRED];
getMetricPromptTemplateBytes in interface PairwiseMetricSpecOrBuilderpublic PairwiseMetricSpec.Builder setMetricPromptTemplate(String value)
Required. Metric prompt template for pairwise metric.
optional string metric_prompt_template = 1 [(.google.api.field_behavior) = REQUIRED];
value - The metricPromptTemplate to set.public PairwiseMetricSpec.Builder clearMetricPromptTemplate()
Required. Metric prompt template for pairwise metric.
optional string metric_prompt_template = 1 [(.google.api.field_behavior) = REQUIRED];
public PairwiseMetricSpec.Builder setMetricPromptTemplateBytes(com.google.protobuf.ByteString value)
Required. Metric prompt template for pairwise metric.
optional string metric_prompt_template = 1 [(.google.api.field_behavior) = REQUIRED];
value - The bytes for metricPromptTemplate to set.public String getCandidateResponseFieldName()
Optional. The field name of the candidate response.
string candidate_response_field_name = 2 [(.google.api.field_behavior) = OPTIONAL];
getCandidateResponseFieldName in interface PairwiseMetricSpecOrBuilderpublic com.google.protobuf.ByteString getCandidateResponseFieldNameBytes()
Optional. The field name of the candidate response.
string candidate_response_field_name = 2 [(.google.api.field_behavior) = OPTIONAL];
getCandidateResponseFieldNameBytes in interface PairwiseMetricSpecOrBuilderpublic PairwiseMetricSpec.Builder setCandidateResponseFieldName(String value)
Optional. The field name of the candidate response.
string candidate_response_field_name = 2 [(.google.api.field_behavior) = OPTIONAL];
value - The candidateResponseFieldName to set.public PairwiseMetricSpec.Builder clearCandidateResponseFieldName()
Optional. The field name of the candidate response.
string candidate_response_field_name = 2 [(.google.api.field_behavior) = OPTIONAL];
public PairwiseMetricSpec.Builder setCandidateResponseFieldNameBytes(com.google.protobuf.ByteString value)
Optional. The field name of the candidate response.
string candidate_response_field_name = 2 [(.google.api.field_behavior) = OPTIONAL];
value - The bytes for candidateResponseFieldName to set.public String getBaselineResponseFieldName()
Optional. The field name of the baseline response.
string baseline_response_field_name = 3 [(.google.api.field_behavior) = OPTIONAL];
getBaselineResponseFieldName in interface PairwiseMetricSpecOrBuilderpublic com.google.protobuf.ByteString getBaselineResponseFieldNameBytes()
Optional. The field name of the baseline response.
string baseline_response_field_name = 3 [(.google.api.field_behavior) = OPTIONAL];
getBaselineResponseFieldNameBytes in interface PairwiseMetricSpecOrBuilderpublic PairwiseMetricSpec.Builder setBaselineResponseFieldName(String value)
Optional. The field name of the baseline response.
string baseline_response_field_name = 3 [(.google.api.field_behavior) = OPTIONAL];
value - The baselineResponseFieldName to set.public PairwiseMetricSpec.Builder clearBaselineResponseFieldName()
Optional. The field name of the baseline response.
string baseline_response_field_name = 3 [(.google.api.field_behavior) = OPTIONAL];
public PairwiseMetricSpec.Builder setBaselineResponseFieldNameBytes(com.google.protobuf.ByteString value)
Optional. The field name of the baseline response.
string baseline_response_field_name = 3 [(.google.api.field_behavior) = OPTIONAL];
value - The bytes for baselineResponseFieldName to set.public boolean hasSystemInstruction()
Optional. System instructions for pairwise metric.
optional string system_instruction = 4 [(.google.api.field_behavior) = OPTIONAL];
hasSystemInstruction in interface PairwiseMetricSpecOrBuilderpublic String getSystemInstruction()
Optional. System instructions for pairwise metric.
optional string system_instruction = 4 [(.google.api.field_behavior) = OPTIONAL];
getSystemInstruction in interface PairwiseMetricSpecOrBuilderpublic com.google.protobuf.ByteString getSystemInstructionBytes()
Optional. System instructions for pairwise metric.
optional string system_instruction = 4 [(.google.api.field_behavior) = OPTIONAL];
getSystemInstructionBytes in interface PairwiseMetricSpecOrBuilderpublic PairwiseMetricSpec.Builder setSystemInstruction(String value)
Optional. System instructions for pairwise metric.
optional string system_instruction = 4 [(.google.api.field_behavior) = OPTIONAL];
value - The systemInstruction to set.public PairwiseMetricSpec.Builder clearSystemInstruction()
Optional. System instructions for pairwise metric.
optional string system_instruction = 4 [(.google.api.field_behavior) = OPTIONAL];
public PairwiseMetricSpec.Builder setSystemInstructionBytes(com.google.protobuf.ByteString value)
Optional. System instructions for pairwise metric.
optional string system_instruction = 4 [(.google.api.field_behavior) = OPTIONAL];
value - The bytes for systemInstruction to set.public boolean hasCustomOutputFormatConfig()
Optional. CustomOutputFormatConfig allows customization of metric output. When this config is set, the default output is replaced with the raw output string. If a custom format is chosen, the `pairwise_choice` and `explanation` fields in the corresponding metric result will be empty.
.google.cloud.aiplatform.v1beta1.CustomOutputFormatConfig custom_output_format_config = 5 [(.google.api.field_behavior) = OPTIONAL];
hasCustomOutputFormatConfig in interface PairwiseMetricSpecOrBuilderpublic CustomOutputFormatConfig getCustomOutputFormatConfig()
Optional. CustomOutputFormatConfig allows customization of metric output. When this config is set, the default output is replaced with the raw output string. If a custom format is chosen, the `pairwise_choice` and `explanation` fields in the corresponding metric result will be empty.
.google.cloud.aiplatform.v1beta1.CustomOutputFormatConfig custom_output_format_config = 5 [(.google.api.field_behavior) = OPTIONAL];
getCustomOutputFormatConfig in interface PairwiseMetricSpecOrBuilderpublic PairwiseMetricSpec.Builder setCustomOutputFormatConfig(CustomOutputFormatConfig value)
Optional. CustomOutputFormatConfig allows customization of metric output. When this config is set, the default output is replaced with the raw output string. If a custom format is chosen, the `pairwise_choice` and `explanation` fields in the corresponding metric result will be empty.
.google.cloud.aiplatform.v1beta1.CustomOutputFormatConfig custom_output_format_config = 5 [(.google.api.field_behavior) = OPTIONAL];
public PairwiseMetricSpec.Builder setCustomOutputFormatConfig(CustomOutputFormatConfig.Builder builderForValue)
Optional. CustomOutputFormatConfig allows customization of metric output. When this config is set, the default output is replaced with the raw output string. If a custom format is chosen, the `pairwise_choice` and `explanation` fields in the corresponding metric result will be empty.
.google.cloud.aiplatform.v1beta1.CustomOutputFormatConfig custom_output_format_config = 5 [(.google.api.field_behavior) = OPTIONAL];
public PairwiseMetricSpec.Builder mergeCustomOutputFormatConfig(CustomOutputFormatConfig value)
Optional. CustomOutputFormatConfig allows customization of metric output. When this config is set, the default output is replaced with the raw output string. If a custom format is chosen, the `pairwise_choice` and `explanation` fields in the corresponding metric result will be empty.
.google.cloud.aiplatform.v1beta1.CustomOutputFormatConfig custom_output_format_config = 5 [(.google.api.field_behavior) = OPTIONAL];
public PairwiseMetricSpec.Builder clearCustomOutputFormatConfig()
Optional. CustomOutputFormatConfig allows customization of metric output. When this config is set, the default output is replaced with the raw output string. If a custom format is chosen, the `pairwise_choice` and `explanation` fields in the corresponding metric result will be empty.
.google.cloud.aiplatform.v1beta1.CustomOutputFormatConfig custom_output_format_config = 5 [(.google.api.field_behavior) = OPTIONAL];
public CustomOutputFormatConfig.Builder getCustomOutputFormatConfigBuilder()
Optional. CustomOutputFormatConfig allows customization of metric output. When this config is set, the default output is replaced with the raw output string. If a custom format is chosen, the `pairwise_choice` and `explanation` fields in the corresponding metric result will be empty.
.google.cloud.aiplatform.v1beta1.CustomOutputFormatConfig custom_output_format_config = 5 [(.google.api.field_behavior) = OPTIONAL];
public CustomOutputFormatConfigOrBuilder getCustomOutputFormatConfigOrBuilder()
Optional. CustomOutputFormatConfig allows customization of metric output. When this config is set, the default output is replaced with the raw output string. If a custom format is chosen, the `pairwise_choice` and `explanation` fields in the corresponding metric result will be empty.
.google.cloud.aiplatform.v1beta1.CustomOutputFormatConfig custom_output_format_config = 5 [(.google.api.field_behavior) = OPTIONAL];
getCustomOutputFormatConfigOrBuilder in interface PairwiseMetricSpecOrBuilderpublic final PairwiseMetricSpec.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PairwiseMetricSpec.Builder>public final PairwiseMetricSpec.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PairwiseMetricSpec.Builder>Copyright © 2025 Google LLC. All rights reserved.