Class Presets.Builder (3.84.0)

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

Preset configuration for example-based explanations

Protobuf type google.cloud.aiplatform.v1.Presets

Implements

PresetsOrBuilder

Static Methods

getDescriptor()

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

Methods

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

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.v1.Presets.Modality modality = 2;

Returns
Type Description
Presets.Builder

This builder for chaining.

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.v1.Presets.Query query = 1;

Returns
Type Description
Presets.Builder

This builder for chaining.

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.v1.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.v1.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.v1.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.v1.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.v1.Presets.Query query = 1;

Returns
Type Description
boolean

Whether the query field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.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

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.v1.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.v1.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.v1.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.v1.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.