Package com.google.cloud.aiplatform.v1
Class PointwiseMetricSpec.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PointwiseMetricSpec.Builder>
com.google.cloud.aiplatform.v1.PointwiseMetricSpec.Builder
- All Implemented Interfaces:
PointwiseMetricSpecOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- PointwiseMetricSpec
public static final class PointwiseMetricSpec.Builder
extends com.google.protobuf.GeneratedMessage.Builder<PointwiseMetricSpec.Builder>
implements PointwiseMetricSpecOrBuilder
Spec for pointwise metric.Protobuf type
google.cloud.aiplatform.v1.PointwiseMetricSpec-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Required.Optional.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(PointwiseMetricSpec other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) 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<PointwiseMetricSpec.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<PointwiseMetricSpec.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<PointwiseMetricSpec.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<PointwiseMetricSpec.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<PointwiseMetricSpec.Builder>
-
mergeFrom
public PointwiseMetricSpec.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<PointwiseMetricSpec.Builder>- Throws:
IOException
-
hasMetricPromptTemplate
public boolean hasMetricPromptTemplate()Required. Metric prompt template for pointwise metric.
optional string metric_prompt_template = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasMetricPromptTemplatein interfacePointwiseMetricSpecOrBuilder- Returns:
- Whether the metricPromptTemplate field is set.
-
getMetricPromptTemplate
Required. Metric prompt template for pointwise metric.
optional string metric_prompt_template = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getMetricPromptTemplatein interfacePointwiseMetricSpecOrBuilder- Returns:
- The metricPromptTemplate.
-
getMetricPromptTemplateBytes
public com.google.protobuf.ByteString getMetricPromptTemplateBytes()Required. Metric prompt template for pointwise metric.
optional string metric_prompt_template = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getMetricPromptTemplateBytesin interfacePointwiseMetricSpecOrBuilder- Returns:
- The bytes for metricPromptTemplate.
-
setMetricPromptTemplate
Required. Metric prompt template for pointwise 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 pointwise metric.
optional string metric_prompt_template = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setMetricPromptTemplateBytes
public PointwiseMetricSpec.Builder setMetricPromptTemplateBytes(com.google.protobuf.ByteString value) Required. Metric prompt template for pointwise 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.
-
hasSystemInstruction
public boolean hasSystemInstruction()Optional. System instructions for pointwise metric.
optional string system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasSystemInstructionin interfacePointwiseMetricSpecOrBuilder- Returns:
- Whether the systemInstruction field is set.
-
getSystemInstruction
Optional. System instructions for pointwise metric.
optional string system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSystemInstructionin interfacePointwiseMetricSpecOrBuilder- Returns:
- The systemInstruction.
-
getSystemInstructionBytes
public com.google.protobuf.ByteString getSystemInstructionBytes()Optional. System instructions for pointwise metric.
optional string system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSystemInstructionBytesin interfacePointwiseMetricSpecOrBuilder- Returns:
- The bytes for systemInstruction.
-
setSystemInstruction
Optional. System instructions for pointwise metric.
optional string system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The systemInstruction to set.- Returns:
- This builder for chaining.
-
clearSystemInstruction
Optional. System instructions for pointwise metric.
optional string system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setSystemInstructionBytes
Optional. System instructions for pointwise metric.
optional string system_instruction = 2 [(.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. By default, metrics return a score and explanation. When this config is set, the default output is replaced with either: - The raw output string. - A parsed output based on a user-defined schema. If a custom format is chosen, the `score` and `explanation` fields in the corresponding metric result will be empty.
.google.cloud.aiplatform.v1.CustomOutputFormatConfig custom_output_format_config = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasCustomOutputFormatConfigin interfacePointwiseMetricSpecOrBuilder- Returns:
- Whether the customOutputFormatConfig field is set.
-
getCustomOutputFormatConfig
Optional. CustomOutputFormatConfig allows customization of metric output. By default, metrics return a score and explanation. When this config is set, the default output is replaced with either: - The raw output string. - A parsed output based on a user-defined schema. If a custom format is chosen, the `score` and `explanation` fields in the corresponding metric result will be empty.
.google.cloud.aiplatform.v1.CustomOutputFormatConfig custom_output_format_config = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCustomOutputFormatConfigin interfacePointwiseMetricSpecOrBuilder- Returns:
- The customOutputFormatConfig.
-
setCustomOutputFormatConfig
Optional. CustomOutputFormatConfig allows customization of metric output. By default, metrics return a score and explanation. When this config is set, the default output is replaced with either: - The raw output string. - A parsed output based on a user-defined schema. If a custom format is chosen, the `score` and `explanation` fields in the corresponding metric result will be empty.
.google.cloud.aiplatform.v1.CustomOutputFormatConfig custom_output_format_config = 3 [(.google.api.field_behavior) = OPTIONAL]; -
setCustomOutputFormatConfig
public PointwiseMetricSpec.Builder setCustomOutputFormatConfig(CustomOutputFormatConfig.Builder builderForValue) Optional. CustomOutputFormatConfig allows customization of metric output. By default, metrics return a score and explanation. When this config is set, the default output is replaced with either: - The raw output string. - A parsed output based on a user-defined schema. If a custom format is chosen, the `score` and `explanation` fields in the corresponding metric result will be empty.
.google.cloud.aiplatform.v1.CustomOutputFormatConfig custom_output_format_config = 3 [(.google.api.field_behavior) = OPTIONAL]; -
mergeCustomOutputFormatConfig
Optional. CustomOutputFormatConfig allows customization of metric output. By default, metrics return a score and explanation. When this config is set, the default output is replaced with either: - The raw output string. - A parsed output based on a user-defined schema. If a custom format is chosen, the `score` and `explanation` fields in the corresponding metric result will be empty.
.google.cloud.aiplatform.v1.CustomOutputFormatConfig custom_output_format_config = 3 [(.google.api.field_behavior) = OPTIONAL]; -
clearCustomOutputFormatConfig
Optional. CustomOutputFormatConfig allows customization of metric output. By default, metrics return a score and explanation. When this config is set, the default output is replaced with either: - The raw output string. - A parsed output based on a user-defined schema. If a custom format is chosen, the `score` and `explanation` fields in the corresponding metric result will be empty.
.google.cloud.aiplatform.v1.CustomOutputFormatConfig custom_output_format_config = 3 [(.google.api.field_behavior) = OPTIONAL]; -
getCustomOutputFormatConfigBuilder
Optional. CustomOutputFormatConfig allows customization of metric output. By default, metrics return a score and explanation. When this config is set, the default output is replaced with either: - The raw output string. - A parsed output based on a user-defined schema. If a custom format is chosen, the `score` and `explanation` fields in the corresponding metric result will be empty.
.google.cloud.aiplatform.v1.CustomOutputFormatConfig custom_output_format_config = 3 [(.google.api.field_behavior) = OPTIONAL]; -
getCustomOutputFormatConfigOrBuilder
Optional. CustomOutputFormatConfig allows customization of metric output. By default, metrics return a score and explanation. When this config is set, the default output is replaced with either: - The raw output string. - A parsed output based on a user-defined schema. If a custom format is chosen, the `score` and `explanation` fields in the corresponding metric result will be empty.
.google.cloud.aiplatform.v1.CustomOutputFormatConfig custom_output_format_config = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCustomOutputFormatConfigOrBuilderin interfacePointwiseMetricSpecOrBuilder
-