Class CoherenceSpec.Builder (3.55.0)

public static final class CoherenceSpec.Builder extends GeneratedMessageV3.Builder<CoherenceSpec.Builder> implements CoherenceSpecOrBuilder

Spec for coherence score metric.

Protobuf type google.cloud.aiplatform.v1.CoherenceSpec

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CoherenceSpec build()
Returns
Type Description
CoherenceSpec

buildPartial()

public CoherenceSpec buildPartial()
Returns
Type Description
CoherenceSpec

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearVersion()

public CoherenceSpec.Builder clearVersion()

Optional. Which version to use for evaluation.

int32 version = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CoherenceSpec.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CoherenceSpec getDefaultInstanceForType()
Returns
Type Description
CoherenceSpec

getDescriptorForType()

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

getVersion()

public int getVersion()

Optional. Which version to use for evaluation.

int32 version = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The version.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CoherenceSpec other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setVersion(int value)

public CoherenceSpec.Builder setVersion(int value)

Optional. Which version to use for evaluation.

int32 version = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The version to set.

Returns
Type Description
CoherenceSpec.Builder

This builder for chaining.