Class CometResult.Builder (3.55.0)

public static final class CometResult.Builder extends GeneratedMessageV3.Builder<CometResult.Builder> implements CometResultOrBuilder

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

Protobuf type google.cloud.aiplatform.v1.CometResult

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CometResult build()
Returns
Type Description
CometResult

buildPartial()

public CometResult buildPartial()
Returns
Type Description
CometResult

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearScore()

public CometResult.Builder clearScore()

Output only. Comet score. Range depends on version.

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

Returns
Type Description
CometResult.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CometResult getDefaultInstanceForType()
Returns
Type Description
CometResult

getDescriptorForType()

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

getScore()

public float getScore()

Output only. Comet 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. Comet 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(CometResult other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setScore(float value)

public CometResult.Builder setScore(float value)

Output only. Comet 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
CometResult.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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