public static final class PointwiseMetricSpec.Builder extends GeneratedMessageV3.Builder<PointwiseMetricSpec.Builder> implements PointwiseMetricSpecOrBuilder
Spec for pointwise metric.
Protobuf type google.cloud.aiplatform.v1.PointwiseMetricSpec
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public PointwiseMetricSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public PointwiseMetricSpec build()
public PointwiseMetricSpec buildPartial()
public PointwiseMetricSpec.Builder clear()
Overrides
public PointwiseMetricSpec.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
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 clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public PointwiseMetricSpec.Builder clone()
Overrides
public PointwiseMetricSpec getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public String getMetricPromptTemplate()
Required. Metric prompt template for pointwise metric.
optional string metric_prompt_template = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
String |
The metricPromptTemplate.
|
public ByteString getMetricPromptTemplateBytes()
Required. Metric prompt template for pointwise metric.
optional string metric_prompt_template = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
ByteString |
The bytes for metricPromptTemplate.
|
public boolean hasMetricPromptTemplate()
Required. Metric prompt template for pointwise metric.
optional string metric_prompt_template = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
boolean |
Whether the metricPromptTemplate field is set.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public PointwiseMetricSpec.Builder mergeFrom(PointwiseMetricSpec other)
public PointwiseMetricSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public PointwiseMetricSpec.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public final PointwiseMetricSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public PointwiseMetricSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public PointwiseMetricSpec.Builder setMetricPromptTemplate(String value)
Required. Metric prompt template for pointwise metric.
optional string metric_prompt_template = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
String
The metricPromptTemplate to set.
|
public PointwiseMetricSpec.Builder setMetricPromptTemplateBytes(ByteString value)
Required. Metric prompt template for pointwise metric.
optional string metric_prompt_template = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
ByteString
The bytes for metricPromptTemplate to set.
|
public PointwiseMetricSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final PointwiseMetricSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides