public static final class PairwiseMetricSpec.Builder extends GeneratedMessageV3.Builder<PairwiseMetricSpec.Builder> implements PairwiseMetricSpecOrBuilder
Spec for pairwise metric.
Protobuf type google.cloud.aiplatform.v1beta1.PairwiseMetricSpec
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 PairwiseMetricSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public PairwiseMetricSpec build()
public PairwiseMetricSpec buildPartial()
public PairwiseMetricSpec.Builder clear()
Overrides
public PairwiseMetricSpec.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public PairwiseMetricSpec.Builder clearMetricPromptTemplate()
Required. Metric prompt template for pairwise metric.
optional string metric_prompt_template = 1 [(.google.api.field_behavior) = REQUIRED];
public PairwiseMetricSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public PairwiseMetricSpec.Builder clone()
Overrides
public PairwiseMetricSpec getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public String getMetricPromptTemplate()
Required. Metric prompt template for pairwise 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 pairwise 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 pairwise 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 PairwiseMetricSpec.Builder mergeFrom(PairwiseMetricSpec other)
public PairwiseMetricSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public PairwiseMetricSpec.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public final PairwiseMetricSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public PairwiseMetricSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public PairwiseMetricSpec.Builder setMetricPromptTemplate(String value)
Required. Metric prompt template for pairwise metric.
optional string metric_prompt_template = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
String
The metricPromptTemplate to set.
|
public PairwiseMetricSpec.Builder setMetricPromptTemplateBytes(ByteString value)
Required. Metric prompt template for pairwise metric.
optional string metric_prompt_template = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
ByteString
The bytes for metricPromptTemplate to set.
|
public PairwiseMetricSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final PairwiseMetricSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides