Send feedback
Class AutoraterConfig (3.58.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version latest keyboard_arrow_down
public final class AutoraterConfig extends GeneratedMessageV3 implements AutoraterConfigOrBuilder
The configs for autorater. This is applicable to both EvaluateInstances and
EvaluateDataset.
Protobuf type google.cloud.aiplatform.v1beta1.AutoraterConfig
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int AUTORATER_MODEL_FIELD_NUMBER
Field Value
Type
Description
int
public static final int FLIP_ENABLED_FIELD_NUMBER
Field Value
Type
Description
int
public static final int SAMPLING_COUNT_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
public static AutoraterConfig getDefaultInstance ()
public static final Descriptors . Descriptor getDescriptor ()
public static AutoraterConfig . Builder newBuilder ()
public static AutoraterConfig . Builder newBuilder ( AutoraterConfig prototype )
public static AutoraterConfig parseDelimitedFrom ( InputStream input )
public static AutoraterConfig parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static AutoraterConfig parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
public static AutoraterConfig parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
public static AutoraterConfig parseFrom ( ByteString data )
public static AutoraterConfig parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static AutoraterConfig parseFrom ( CodedInputStream input )
public static AutoraterConfig parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static AutoraterConfig parseFrom ( InputStream input )
public static AutoraterConfig parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static AutoraterConfig parseFrom ( ByteBuffer data )
public static AutoraterConfig parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
public static Parser<AutoraterConfig> parser ()
Methods
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
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];
Returns
Type
Description
String
The autoraterModel.
public 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];
Returns
Type
Description
ByteString
The bytes for autoraterModel.
public AutoraterConfig getDefaultInstanceForType ()
public boolean getFlipEnabled ()
Optional. 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];
Returns
Type
Description
boolean
The flipEnabled.
public Parser<AutoraterConfig> getParserForType ()
Overrides
public 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];
Returns
Type
Description
int
The samplingCount.
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
public boolean hasFlipEnabled ()
Optional. 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];
Returns
Type
Description
boolean
Whether the flipEnabled field is set.
public 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];
Returns
Type
Description
boolean
Whether the samplingCount field is set.
Returns
Type
Description
int
Overrides
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
public final boolean isInitialized ()
Overrides
public AutoraterConfig . Builder newBuilderForType ()
protected AutoraterConfig . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
public AutoraterConfig . Builder toBuilder ()
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
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-02-05 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-05 UTC."],[],[]]