Package com.google.cloud.aiplatform.v1
Class PairwiseMetricSpec.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PairwiseMetricSpec.Builder>
com.google.cloud.aiplatform.v1.PairwiseMetricSpec.Builder
- All Implemented Interfaces:
PairwiseMetricSpecOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- PairwiseMetricSpec
public static final class PairwiseMetricSpec.Builder
extends com.google.protobuf.GeneratedMessage.Builder<PairwiseMetricSpec.Builder>
implements PairwiseMetricSpecOrBuilder
Spec for pairwise metric.Protobuf type
google.cloud.aiplatform.v1.PairwiseMetricSpec-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Optional.Optional.Required.Optional.Optional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.Optional.Optional.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.com.google.protobuf.ByteStringRequired.Optional.com.google.protobuf.ByteStringOptional.booleanOptional.booleanRequired.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanOptional.mergeFrom(PairwiseMetricSpec other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Optional.setBaselineResponseFieldNameBytes(com.google.protobuf.ByteString value) Optional.Optional.setCandidateResponseFieldNameBytes(com.google.protobuf.ByteString value) Optional.Optional.setCustomOutputFormatConfig(CustomOutputFormatConfig.Builder builderForValue) Optional.setMetricPromptTemplate(String value) Required.setMetricPromptTemplateBytes(com.google.protobuf.ByteString value) Required.setSystemInstruction(String value) Optional.setSystemInstructionBytes(com.google.protobuf.ByteString 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<PairwiseMetricSpec.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<PairwiseMetricSpec.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<PairwiseMetricSpec.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<PairwiseMetricSpec.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<PairwiseMetricSpec.Builder>
-
mergeFrom
public PairwiseMetricSpec.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<PairwiseMetricSpec.Builder>- Throws:
IOException
-
hasMetricPromptTemplate
public boolean hasMetricPromptTemplate()Required. Metric prompt template for pairwise metric.
optional string metric_prompt_template = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasMetricPromptTemplatein interfacePairwiseMetricSpecOrBuilder- Returns:
- Whether the metricPromptTemplate field is set.
-
getMetricPromptTemplate
Required. Metric prompt template for pairwise metric.
optional string metric_prompt_template = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getMetricPromptTemplatein interfacePairwiseMetricSpecOrBuilder- Returns:
- The metricPromptTemplate.
-
getMetricPromptTemplateBytes
public com.google.protobuf.ByteString getMetricPromptTemplateBytes()Required. Metric prompt template for pairwise metric.
optional string metric_prompt_template = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getMetricPromptTemplateBytesin interfacePairwiseMetricSpecOrBuilder- Returns:
- The bytes for metricPromptTemplate.
-
setMetricPromptTemplate
Required. Metric prompt template for pairwise metric.
optional string metric_prompt_template = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The metricPromptTemplate to set.- Returns:
- This builder for chaining.
-
clearMetricPromptTemplate
Required. Metric prompt template for pairwise metric.
optional string metric_prompt_template = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setMetricPromptTemplateBytes
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];- Parameters:
value- The bytes for metricPromptTemplate to set.- Returns:
- This builder for chaining.
-
getCandidateResponseFieldName
Optional. The field name of the candidate response.
string candidate_response_field_name = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCandidateResponseFieldNamein interfacePairwiseMetricSpecOrBuilder- Returns:
- The candidateResponseFieldName.
-
getCandidateResponseFieldNameBytes
public com.google.protobuf.ByteString getCandidateResponseFieldNameBytes()Optional. The field name of the candidate response.
string candidate_response_field_name = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCandidateResponseFieldNameBytesin interfacePairwiseMetricSpecOrBuilder- Returns:
- The bytes for candidateResponseFieldName.
-
setCandidateResponseFieldName
Optional. The field name of the candidate response.
string candidate_response_field_name = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The candidateResponseFieldName to set.- Returns:
- This builder for chaining.
-
clearCandidateResponseFieldName
Optional. The field name of the candidate response.
string candidate_response_field_name = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setCandidateResponseFieldNameBytes
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];- Parameters:
value- The bytes for candidateResponseFieldName to set.- Returns:
- This builder for chaining.
-
getBaselineResponseFieldName
Optional. The field name of the baseline response.
string baseline_response_field_name = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getBaselineResponseFieldNamein interfacePairwiseMetricSpecOrBuilder- Returns:
- The baselineResponseFieldName.
-
getBaselineResponseFieldNameBytes
public com.google.protobuf.ByteString getBaselineResponseFieldNameBytes()Optional. The field name of the baseline response.
string baseline_response_field_name = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getBaselineResponseFieldNameBytesin interfacePairwiseMetricSpecOrBuilder- Returns:
- The bytes for baselineResponseFieldName.
-
setBaselineResponseFieldName
Optional. The field name of the baseline response.
string baseline_response_field_name = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The baselineResponseFieldName to set.- Returns:
- This builder for chaining.
-
clearBaselineResponseFieldName
Optional. The field name of the baseline response.
string baseline_response_field_name = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setBaselineResponseFieldNameBytes
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];- Parameters:
value- The bytes for baselineResponseFieldName to set.- Returns:
- This builder for chaining.
-
hasSystemInstruction
public boolean hasSystemInstruction()Optional. System instructions for pairwise metric.
optional string system_instruction = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasSystemInstructionin interfacePairwiseMetricSpecOrBuilder- Returns:
- Whether the systemInstruction field is set.
-
getSystemInstruction
Optional. System instructions for pairwise metric.
optional string system_instruction = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSystemInstructionin interfacePairwiseMetricSpecOrBuilder- Returns:
- The systemInstruction.
-
getSystemInstructionBytes
public com.google.protobuf.ByteString getSystemInstructionBytes()Optional. System instructions for pairwise metric.
optional string system_instruction = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSystemInstructionBytesin interfacePairwiseMetricSpecOrBuilder- Returns:
- The bytes for systemInstruction.
-
setSystemInstruction
Optional. System instructions for pairwise metric.
optional string system_instruction = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The systemInstruction to set.- Returns:
- This builder for chaining.
-
clearSystemInstruction
Optional. System instructions for pairwise metric.
optional string system_instruction = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setSystemInstructionBytes
Optional. System instructions for pairwise metric.
optional string system_instruction = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for systemInstruction to set.- Returns:
- This builder for chaining.
-
hasCustomOutputFormatConfig
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.v1.CustomOutputFormatConfig custom_output_format_config = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasCustomOutputFormatConfigin interfacePairwiseMetricSpecOrBuilder- Returns:
- Whether the customOutputFormatConfig field is set.
-
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.v1.CustomOutputFormatConfig custom_output_format_config = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCustomOutputFormatConfigin interfacePairwiseMetricSpecOrBuilder- Returns:
- The customOutputFormatConfig.
-
setCustomOutputFormatConfig
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.v1.CustomOutputFormatConfig custom_output_format_config = 5 [(.google.api.field_behavior) = OPTIONAL]; -
setCustomOutputFormatConfig
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.v1.CustomOutputFormatConfig custom_output_format_config = 5 [(.google.api.field_behavior) = OPTIONAL]; -
mergeCustomOutputFormatConfig
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.v1.CustomOutputFormatConfig custom_output_format_config = 5 [(.google.api.field_behavior) = OPTIONAL]; -
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.v1.CustomOutputFormatConfig custom_output_format_config = 5 [(.google.api.field_behavior) = OPTIONAL]; -
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.v1.CustomOutputFormatConfig custom_output_format_config = 5 [(.google.api.field_behavior) = OPTIONAL]; -
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.v1.CustomOutputFormatConfig custom_output_format_config = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCustomOutputFormatConfigOrBuilderin interfacePairwiseMetricSpecOrBuilder
-