public static final class AutoraterConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<AutoraterConfig.Builder> implements AutoraterConfigOrBuilder
The configs for autorater. This is applicable to both EvaluateInstances and EvaluateDataset.Protobuf type
google.cloud.aiplatform.v1beta1.AutoraterConfigaddRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<AutoraterConfig.Builder>public AutoraterConfig.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<AutoraterConfig.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.GeneratedMessage.Builder<AutoraterConfig.Builder>public AutoraterConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic AutoraterConfig build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic AutoraterConfig buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic AutoraterConfig.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AutoraterConfig.Builder>public AutoraterConfig.Builder mergeFrom(AutoraterConfig other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<AutoraterConfig.Builder>public AutoraterConfig.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<AutoraterConfig.Builder>IOExceptionpublic boolean hasSamplingCount()
Optional. Number of samples for each instance in the dataset. If not specified, the default is 4. Minimum value is 1, maximum value is 32.
optional int32 sampling_count = 1 [(.google.api.field_behavior) = OPTIONAL];hasSamplingCount in interface AutoraterConfigOrBuilderpublic int getSamplingCount()
Optional. Number of samples for each instance in the dataset. If not specified, the default is 4. Minimum value is 1, maximum value is 32.
optional int32 sampling_count = 1 [(.google.api.field_behavior) = OPTIONAL];getSamplingCount in interface AutoraterConfigOrBuilderpublic AutoraterConfig.Builder setSamplingCount(int value)
Optional. Number of samples for each instance in the dataset. If not specified, the default is 4. Minimum value is 1, maximum value is 32.
optional int32 sampling_count = 1 [(.google.api.field_behavior) = OPTIONAL];value - The samplingCount to set.public AutoraterConfig.Builder clearSamplingCount()
Optional. Number of samples for each instance in the dataset. If not specified, the default is 4. Minimum value is 1, maximum value is 32.
optional int32 sampling_count = 1 [(.google.api.field_behavior) = OPTIONAL];public boolean hasFlipEnabled()
Optional. Default is true. Whether to flip the candidate and baseline responses. This is only applicable to the pairwise metric. If enabled, also provide PairwiseMetricSpec.candidate_response_field_name and PairwiseMetricSpec.baseline_response_field_name. When rendering PairwiseMetricSpec.metric_prompt_template, the candidate and baseline fields will be flipped for half of the samples to reduce bias.
optional bool flip_enabled = 2 [(.google.api.field_behavior) = OPTIONAL];hasFlipEnabled in interface AutoraterConfigOrBuilderpublic boolean getFlipEnabled()
Optional. Default is true. Whether to flip the candidate and baseline responses. This is only applicable to the pairwise metric. If enabled, also provide PairwiseMetricSpec.candidate_response_field_name and PairwiseMetricSpec.baseline_response_field_name. When rendering PairwiseMetricSpec.metric_prompt_template, the candidate and baseline fields will be flipped for half of the samples to reduce bias.
optional bool flip_enabled = 2 [(.google.api.field_behavior) = OPTIONAL];getFlipEnabled in interface AutoraterConfigOrBuilderpublic AutoraterConfig.Builder setFlipEnabled(boolean value)
Optional. Default is true. Whether to flip the candidate and baseline responses. This is only applicable to the pairwise metric. If enabled, also provide PairwiseMetricSpec.candidate_response_field_name and PairwiseMetricSpec.baseline_response_field_name. When rendering PairwiseMetricSpec.metric_prompt_template, the candidate and baseline fields will be flipped for half of the samples to reduce bias.
optional bool flip_enabled = 2 [(.google.api.field_behavior) = OPTIONAL];value - The flipEnabled to set.public AutoraterConfig.Builder clearFlipEnabled()
Optional. Default is true. Whether to flip the candidate and baseline responses. This is only applicable to the pairwise metric. If enabled, also provide PairwiseMetricSpec.candidate_response_field_name and PairwiseMetricSpec.baseline_response_field_name. When rendering PairwiseMetricSpec.metric_prompt_template, the candidate and baseline fields will be flipped for half of the samples to reduce bias.
optional bool flip_enabled = 2 [(.google.api.field_behavior) = OPTIONAL];public String getAutoraterModel()
Optional. The fully qualified name of the publisher model or tuned
autorater endpoint to use.
Publisher model format:
`projects/{project}/locations/{location}/publishers/*/models/*`
Tuned model endpoint format:
`projects/{project}/locations/{location}/endpoints/{endpoint}`
string autorater_model = 3 [(.google.api.field_behavior) = OPTIONAL];getAutoraterModel in interface AutoraterConfigOrBuilderpublic com.google.protobuf.ByteString getAutoraterModelBytes()
Optional. The fully qualified name of the publisher model or tuned
autorater endpoint to use.
Publisher model format:
`projects/{project}/locations/{location}/publishers/*/models/*`
Tuned model endpoint format:
`projects/{project}/locations/{location}/endpoints/{endpoint}`
string autorater_model = 3 [(.google.api.field_behavior) = OPTIONAL];getAutoraterModelBytes in interface AutoraterConfigOrBuilderpublic AutoraterConfig.Builder setAutoraterModel(String value)
Optional. The fully qualified name of the publisher model or tuned
autorater endpoint to use.
Publisher model format:
`projects/{project}/locations/{location}/publishers/*/models/*`
Tuned model endpoint format:
`projects/{project}/locations/{location}/endpoints/{endpoint}`
string autorater_model = 3 [(.google.api.field_behavior) = OPTIONAL];value - The autoraterModel to set.public AutoraterConfig.Builder clearAutoraterModel()
Optional. The fully qualified name of the publisher model or tuned
autorater endpoint to use.
Publisher model format:
`projects/{project}/locations/{location}/publishers/*/models/*`
Tuned model endpoint format:
`projects/{project}/locations/{location}/endpoints/{endpoint}`
string autorater_model = 3 [(.google.api.field_behavior) = OPTIONAL];public AutoraterConfig.Builder setAutoraterModelBytes(com.google.protobuf.ByteString value)
Optional. The fully qualified name of the publisher model or tuned
autorater endpoint to use.
Publisher model format:
`projects/{project}/locations/{location}/publishers/*/models/*`
Tuned model endpoint format:
`projects/{project}/locations/{location}/endpoints/{endpoint}`
string autorater_model = 3 [(.google.api.field_behavior) = OPTIONAL];value - The bytes for autoraterModel to set.Copyright © 2026 Google LLC. All rights reserved.