Class MetricxResult.Builder (3.56.0)

public static final class MetricxResult.Builder extends GeneratedMessageV3.Builder<MetricxResult.Builder> implements MetricxResultOrBuilder

Spec for MetricX result - calculates the MetricX score for the given instance using the version specified in the spec.

Protobuf type google.cloud.aiplatform.v1.MetricxResult

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MetricxResult build()
Returns
Type Description
MetricxResult

buildPartial()

public MetricxResult buildPartial()
Returns
Type Description
MetricxResult

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearScore()

public MetricxResult.Builder clearScore()

Output only. MetricX score. Range depends on version.

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

Returns
Type Description
MetricxResult.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public MetricxResult getDefaultInstanceForType()
Returns
Type Description
MetricxResult

getDescriptorForType()

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

getScore()

public float getScore()

Output only. MetricX score. Range depends on version.

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

Returns
Type Description
float

The score.

hasScore()

public boolean hasScore()

Output only. MetricX score. Range depends on version.

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(MetricxResult other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setScore(float value)

public MetricxResult.Builder setScore(float value)

Output only. MetricX score. Range depends on version.

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

Parameter
Name Description
value float

The score to set.

Returns
Type Description
MetricxResult.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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