Class Presets.Builder (3.44.0)

public static final class Presets.Builder extends GeneratedMessageV3.Builder<Presets.Builder> implements PresetsOrBuilder

Preset configuration for example-based explanations

Protobuf type google.cloud.aiplatform.v1beta1.Presets

Implements

PresetsOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Presets build()
Returns
Type Description
Presets

buildPartial()

public Presets buildPartial()
Returns
Type Description
Presets

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearModality()

public Presets.Builder clearModality()

The modality of the uploaded model, which automatically configures the distance measurement and feature normalization for the underlying example index and queries. If your model does not precisely fit one of these types, it is okay to choose the closest type.

.google.cloud.aiplatform.v1beta1.Presets.Modality modality = 2;

Returns
Type Description
Presets.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearQuery()

public Presets.Builder clearQuery()

Preset option controlling parameters for speed-precision trade-off when querying for examples. If omitted, defaults to PRECISE.

optional .google.cloud.aiplatform.v1beta1.Presets.Query query = 1;

Returns
Type Description
Presets.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public Presets getDefaultInstanceForType()
Returns
Type Description
Presets

getDescriptorForType()

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

getModality()

public Presets.Modality getModality()

The modality of the uploaded model, which automatically configures the distance measurement and feature normalization for the underlying example index and queries. If your model does not precisely fit one of these types, it is okay to choose the closest type.

.google.cloud.aiplatform.v1beta1.Presets.Modality modality = 2;

Returns
Type Description
Presets.Modality

The modality.

getModalityValue()

public int getModalityValue()

The modality of the uploaded model, which automatically configures the distance measurement and feature normalization for the underlying example index and queries. If your model does not precisely fit one of these types, it is okay to choose the closest type.

.google.cloud.aiplatform.v1beta1.Presets.Modality modality = 2;

Returns
Type Description
int

The enum numeric value on the wire for modality.

getQuery()

public Presets.Query getQuery()

Preset option controlling parameters for speed-precision trade-off when querying for examples. If omitted, defaults to PRECISE.

optional .google.cloud.aiplatform.v1beta1.Presets.Query query = 1;

Returns
Type Description
Presets.Query

The query.

getQueryValue()

public int getQueryValue()

Preset option controlling parameters for speed-precision trade-off when querying for examples. If omitted, defaults to PRECISE.

optional .google.cloud.aiplatform.v1beta1.Presets.Query query = 1;

Returns
Type Description
int

The enum numeric value on the wire for query.

hasQuery()

public boolean hasQuery()

Preset option controlling parameters for speed-precision trade-off when querying for examples. If omitted, defaults to PRECISE.

optional .google.cloud.aiplatform.v1beta1.Presets.Query query = 1;

Returns
Type Description
boolean

Whether the query field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Presets other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setModality(Presets.Modality value)

public Presets.Builder setModality(Presets.Modality value)

The modality of the uploaded model, which automatically configures the distance measurement and feature normalization for the underlying example index and queries. If your model does not precisely fit one of these types, it is okay to choose the closest type.

.google.cloud.aiplatform.v1beta1.Presets.Modality modality = 2;

Parameter
Name Description
value Presets.Modality

The modality to set.

Returns
Type Description
Presets.Builder

This builder for chaining.

setModalityValue(int value)

public Presets.Builder setModalityValue(int value)

The modality of the uploaded model, which automatically configures the distance measurement and feature normalization for the underlying example index and queries. If your model does not precisely fit one of these types, it is okay to choose the closest type.

.google.cloud.aiplatform.v1beta1.Presets.Modality modality = 2;

Parameter
Name Description
value int

The enum numeric value on the wire for modality to set.

Returns
Type Description
Presets.Builder

This builder for chaining.

setQuery(Presets.Query value)

public Presets.Builder setQuery(Presets.Query value)

Preset option controlling parameters for speed-precision trade-off when querying for examples. If omitted, defaults to PRECISE.

optional .google.cloud.aiplatform.v1beta1.Presets.Query query = 1;

Parameter
Name Description
value Presets.Query

The query to set.

Returns
Type Description
Presets.Builder

This builder for chaining.

setQueryValue(int value)

public Presets.Builder setQueryValue(int value)

Preset option controlling parameters for speed-precision trade-off when querying for examples. If omitted, defaults to PRECISE.

optional .google.cloud.aiplatform.v1beta1.Presets.Query query = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for query to set.

Returns
Type Description
Presets.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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