Class PointwiseMetricResult.Builder (3.52.0)

public static final class PointwiseMetricResult.Builder extends GeneratedMessageV3.Builder<PointwiseMetricResult.Builder> implements PointwiseMetricResultOrBuilder

Spec for pointwise metric result.

Protobuf type google.cloud.aiplatform.v1.PointwiseMetricResult

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PointwiseMetricResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PointwiseMetricResult.Builder
Overrides

build()

public PointwiseMetricResult build()
Returns
Type Description
PointwiseMetricResult

buildPartial()

public PointwiseMetricResult buildPartial()
Returns
Type Description
PointwiseMetricResult

clear()

public PointwiseMetricResult.Builder clear()
Returns
Type Description
PointwiseMetricResult.Builder
Overrides

clearExplanation()

public PointwiseMetricResult.Builder clearExplanation()

Output only. Explanation for pointwise metric score.

string explanation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PointwiseMetricResult.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public PointwiseMetricResult.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
PointwiseMetricResult.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public PointwiseMetricResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
PointwiseMetricResult.Builder
Overrides

clearScore()

public PointwiseMetricResult.Builder clearScore()

Output only. Pointwise metric score.

optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PointwiseMetricResult.Builder

This builder for chaining.

clone()

public PointwiseMetricResult.Builder clone()
Returns
Type Description
PointwiseMetricResult.Builder
Overrides

getDefaultInstanceForType()

public PointwiseMetricResult getDefaultInstanceForType()
Returns
Type Description
PointwiseMetricResult

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getExplanation()

public String getExplanation()

Output only. Explanation for pointwise metric score.

string explanation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The explanation.

getExplanationBytes()

public ByteString getExplanationBytes()

Output only. Explanation for pointwise metric score.

string explanation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for explanation.

getScore()

public float getScore()

Output only. Pointwise metric score.

optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
float

The score.

hasScore()

public boolean hasScore()

Output only. Pointwise metric score.

optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the score field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PointwiseMetricResult other)

public PointwiseMetricResult.Builder mergeFrom(PointwiseMetricResult other)
Parameter
Name Description
other PointwiseMetricResult
Returns
Type Description
PointwiseMetricResult.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PointwiseMetricResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PointwiseMetricResult.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public PointwiseMetricResult.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
PointwiseMetricResult.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PointwiseMetricResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PointwiseMetricResult.Builder
Overrides

setExplanation(String value)

public PointwiseMetricResult.Builder setExplanation(String value)

Output only. Explanation for pointwise metric score.

string explanation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The explanation to set.

Returns
Type Description
PointwiseMetricResult.Builder

This builder for chaining.

setExplanationBytes(ByteString value)

public PointwiseMetricResult.Builder setExplanationBytes(ByteString value)

Output only. Explanation for pointwise metric score.

string explanation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for explanation to set.

Returns
Type Description
PointwiseMetricResult.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public PointwiseMetricResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PointwiseMetricResult.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public PointwiseMetricResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
PointwiseMetricResult.Builder
Overrides

setScore(float value)

public PointwiseMetricResult.Builder setScore(float value)

Output only. Pointwise metric score.

optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value float

The score to set.

Returns
Type Description
PointwiseMetricResult.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final PointwiseMetricResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PointwiseMetricResult.Builder
Overrides