Package com.google.cloud.aiplatform.v1
Class AutoraterConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AutoraterConfig.Builder>
com.google.cloud.aiplatform.v1.AutoraterConfig.Builder
- All Implemented Interfaces:
AutoraterConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AutoraterConfig
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.v1.AutoraterConfig-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Optional.Optional.Optional.Optional.com.google.protobuf.ByteStringOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanOptional.Optional.Optional.Optional.intOptional.booleanOptional.booleanOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(AutoraterConfig other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Optional.setAutoraterModel(String value) Optional.setAutoraterModelBytes(com.google.protobuf.ByteString value) Optional.setFlipEnabled(boolean value) Optional.Optional.setGenerationConfig(GenerationConfig.Builder builderForValue) Optional.setSamplingCount(int value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, 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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<AutoraterConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<AutoraterConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<AutoraterConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AutoraterConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AutoraterConfig.Builder>
-
mergeFrom
public AutoraterConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AutoraterConfig.Builder>- Throws:
IOException
-
hasSamplingCount
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];- Specified by:
hasSamplingCountin interfaceAutoraterConfigOrBuilder- Returns:
- Whether the samplingCount field is set.
-
getSamplingCount
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];- Specified by:
getSamplingCountin interfaceAutoraterConfigOrBuilder- Returns:
- The samplingCount.
-
setSamplingCount
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];- Parameters:
value- The samplingCount to set.- Returns:
- This builder for chaining.
-
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];- Returns:
- This builder for chaining.
-
hasFlipEnabled
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];- Specified by:
hasFlipEnabledin interfaceAutoraterConfigOrBuilder- Returns:
- Whether the flipEnabled field is set.
-
getFlipEnabled
public 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];- Specified by:
getFlipEnabledin interfaceAutoraterConfigOrBuilder- Returns:
- The flipEnabled.
-
setFlipEnabled
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];- Parameters:
value- The flipEnabled to set.- Returns:
- This builder for chaining.
-
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];- Returns:
- This builder for chaining.
-
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];- Specified by:
getAutoraterModelin interfaceAutoraterConfigOrBuilder- Returns:
- The autoraterModel.
-
getAutoraterModelBytes
public 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];- Specified by:
getAutoraterModelBytesin interfaceAutoraterConfigOrBuilder- Returns:
- The bytes for autoraterModel.
-
setAutoraterModel
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];- Parameters:
value- The autoraterModel to set.- Returns:
- This builder for chaining.
-
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];- Returns:
- This builder for chaining.
-
setAutoraterModelBytes
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];- Parameters:
value- The bytes for autoraterModel to set.- Returns:
- This builder for chaining.
-
hasGenerationConfig
public boolean hasGenerationConfig()Optional. Configuration options for model generation and outputs.
.google.cloud.aiplatform.v1.GenerationConfig generation_config = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasGenerationConfigin interfaceAutoraterConfigOrBuilder- Returns:
- Whether the generationConfig field is set.
-
getGenerationConfig
Optional. Configuration options for model generation and outputs.
.google.cloud.aiplatform.v1.GenerationConfig generation_config = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getGenerationConfigin interfaceAutoraterConfigOrBuilder- Returns:
- The generationConfig.
-
setGenerationConfig
Optional. Configuration options for model generation and outputs.
.google.cloud.aiplatform.v1.GenerationConfig generation_config = 4 [(.google.api.field_behavior) = OPTIONAL]; -
setGenerationConfig
Optional. Configuration options for model generation and outputs.
.google.cloud.aiplatform.v1.GenerationConfig generation_config = 4 [(.google.api.field_behavior) = OPTIONAL]; -
mergeGenerationConfig
Optional. Configuration options for model generation and outputs.
.google.cloud.aiplatform.v1.GenerationConfig generation_config = 4 [(.google.api.field_behavior) = OPTIONAL]; -
clearGenerationConfig
Optional. Configuration options for model generation and outputs.
.google.cloud.aiplatform.v1.GenerationConfig generation_config = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getGenerationConfigBuilder
Optional. Configuration options for model generation and outputs.
.google.cloud.aiplatform.v1.GenerationConfig generation_config = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getGenerationConfigOrBuilder
Optional. Configuration options for model generation and outputs.
.google.cloud.aiplatform.v1.GenerationConfig generation_config = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getGenerationConfigOrBuilderin interfaceAutoraterConfigOrBuilder
-