Class CoherenceSpec.Builder (3.40.0)

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

Spec for coherence score metric.

Protobuf type google.cloud.aiplatform.v1beta1.CoherenceSpec

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CoherenceSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CoherenceSpec.Builder
Overrides

build()

public CoherenceSpec build()
Returns
TypeDescription
CoherenceSpec

buildPartial()

public CoherenceSpec buildPartial()
Returns
TypeDescription
CoherenceSpec

clear()

public CoherenceSpec.Builder clear()
Returns
TypeDescription
CoherenceSpec.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CoherenceSpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CoherenceSpec.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CoherenceSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CoherenceSpec.Builder
Overrides

clearVersion()

public CoherenceSpec.Builder clearVersion()

Optional. Which version to use for evaluation.

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

Returns
TypeDescription
CoherenceSpec.Builder

This builder for chaining.

clone()

public CoherenceSpec.Builder clone()
Returns
TypeDescription
CoherenceSpec.Builder
Overrides

getDefaultInstanceForType()

public CoherenceSpec getDefaultInstanceForType()
Returns
TypeDescription
CoherenceSpec

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getVersion()

public int getVersion()

Optional. Which version to use for evaluation.

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

Returns
TypeDescription
int

The version.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CoherenceSpec other)

public CoherenceSpec.Builder mergeFrom(CoherenceSpec other)
Parameter
NameDescription
otherCoherenceSpec
Returns
TypeDescription
CoherenceSpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CoherenceSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CoherenceSpec.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CoherenceSpec.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CoherenceSpec.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CoherenceSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CoherenceSpec.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CoherenceSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CoherenceSpec.Builder
Overrides

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

public CoherenceSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CoherenceSpec.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CoherenceSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueint

The version to set.

Returns
TypeDescription
CoherenceSpec.Builder

This builder for chaining.