public static final class PointwiseMetricSpec.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PointwiseMetricSpec.Builder> implements PointwiseMetricSpecOrBuilder
Spec for pointwise metric.Protobuf type
google.cloud.aiplatform.v1beta1.PointwiseMetricSpecgetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<PointwiseMetricSpec.Builder>public PointwiseMetricSpec.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<PointwiseMetricSpec.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.GeneratedMessageV3.Builder<PointwiseMetricSpec.Builder>public PointwiseMetricSpec getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic PointwiseMetricSpec build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic PointwiseMetricSpec buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic PointwiseMetricSpec.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<PointwiseMetricSpec.Builder>public PointwiseMetricSpec.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<PointwiseMetricSpec.Builder>public PointwiseMetricSpec.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<PointwiseMetricSpec.Builder>public PointwiseMetricSpec.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<PointwiseMetricSpec.Builder>public PointwiseMetricSpec.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PointwiseMetricSpec.Builder>public PointwiseMetricSpec.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PointwiseMetricSpec.Builder>public PointwiseMetricSpec.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<PointwiseMetricSpec.Builder>public PointwiseMetricSpec.Builder mergeFrom(PointwiseMetricSpec other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<PointwiseMetricSpec.Builder>public PointwiseMetricSpec.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<PointwiseMetricSpec.Builder>IOExceptionpublic boolean hasMetricPromptTemplate()
Required. Metric prompt template for pointwise metric.
optional string metric_prompt_template = 1 [(.google.api.field_behavior) = REQUIRED];
hasMetricPromptTemplate in interface PointwiseMetricSpecOrBuilderpublic String getMetricPromptTemplate()
Required. Metric prompt template for pointwise metric.
optional string metric_prompt_template = 1 [(.google.api.field_behavior) = REQUIRED];
getMetricPromptTemplate in interface PointwiseMetricSpecOrBuilderpublic com.google.protobuf.ByteString getMetricPromptTemplateBytes()
Required. Metric prompt template for pointwise metric.
optional string metric_prompt_template = 1 [(.google.api.field_behavior) = REQUIRED];
getMetricPromptTemplateBytes in interface PointwiseMetricSpecOrBuilderpublic PointwiseMetricSpec.Builder setMetricPromptTemplate(String value)
Required. Metric prompt template for pointwise metric.
optional string metric_prompt_template = 1 [(.google.api.field_behavior) = REQUIRED];
value - The metricPromptTemplate to set.public PointwiseMetricSpec.Builder clearMetricPromptTemplate()
Required. Metric prompt template for pointwise metric.
optional string metric_prompt_template = 1 [(.google.api.field_behavior) = REQUIRED];
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];
value - The bytes for metricPromptTemplate to set.public boolean hasSystemInstruction()
Optional. System instructions for pointwise metric.
optional string system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL];
hasSystemInstruction in interface PointwiseMetricSpecOrBuilderpublic String getSystemInstruction()
Optional. System instructions for pointwise metric.
optional string system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL];
getSystemInstruction in interface PointwiseMetricSpecOrBuilderpublic com.google.protobuf.ByteString getSystemInstructionBytes()
Optional. System instructions for pointwise metric.
optional string system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL];
getSystemInstructionBytes in interface PointwiseMetricSpecOrBuilderpublic PointwiseMetricSpec.Builder setSystemInstruction(String value)
Optional. System instructions for pointwise metric.
optional string system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL];
value - The systemInstruction to set.public PointwiseMetricSpec.Builder clearSystemInstruction()
Optional. System instructions for pointwise metric.
optional string system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL];
public PointwiseMetricSpec.Builder setSystemInstructionBytes(com.google.protobuf.ByteString value)
Optional. System instructions for pointwise metric.
optional string system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL];
value - The bytes for systemInstruction to set.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.v1beta1.CustomOutputFormatConfig custom_output_format_config = 3 [(.google.api.field_behavior) = OPTIONAL];
hasCustomOutputFormatConfig in interface PointwiseMetricSpecOrBuilderpublic CustomOutputFormatConfig 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.v1beta1.CustomOutputFormatConfig custom_output_format_config = 3 [(.google.api.field_behavior) = OPTIONAL];
getCustomOutputFormatConfig in interface PointwiseMetricSpecOrBuilderpublic PointwiseMetricSpec.Builder setCustomOutputFormatConfig(CustomOutputFormatConfig value)
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.v1beta1.CustomOutputFormatConfig custom_output_format_config = 3 [(.google.api.field_behavior) = OPTIONAL];
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.v1beta1.CustomOutputFormatConfig custom_output_format_config = 3 [(.google.api.field_behavior) = OPTIONAL];
public PointwiseMetricSpec.Builder mergeCustomOutputFormatConfig(CustomOutputFormatConfig value)
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.v1beta1.CustomOutputFormatConfig custom_output_format_config = 3 [(.google.api.field_behavior) = OPTIONAL];
public PointwiseMetricSpec.Builder 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.v1beta1.CustomOutputFormatConfig custom_output_format_config = 3 [(.google.api.field_behavior) = OPTIONAL];
public CustomOutputFormatConfig.Builder 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.v1beta1.CustomOutputFormatConfig custom_output_format_config = 3 [(.google.api.field_behavior) = OPTIONAL];
public CustomOutputFormatConfigOrBuilder 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.v1beta1.CustomOutputFormatConfig custom_output_format_config = 3 [(.google.api.field_behavior) = OPTIONAL];
getCustomOutputFormatConfigOrBuilder in interface PointwiseMetricSpecOrBuilderpublic final PointwiseMetricSpec.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PointwiseMetricSpec.Builder>public final PointwiseMetricSpec.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PointwiseMetricSpec.Builder>Copyright © 2025 Google LLC. All rights reserved.