Class Presets.Builder (3.25.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.v1.Presets

Implements

PresetsOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Presets build()
Returns
TypeDescription
Presets

buildPartial()

public Presets buildPartial()
Returns
TypeDescription
Presets

clear()

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

clearField(Descriptors.FieldDescriptor field)

public Presets.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
Presets.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Presets.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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.v1.Presets.Query query = 1;

Returns
TypeDescription
Presets.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public Presets getDefaultInstanceForType()
Returns
TypeDescription
Presets

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the query field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Presets other)

public Presets.Builder mergeFrom(Presets other)
Parameter
NameDescription
otherPresets
Returns
TypeDescription
Presets.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public Presets.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valuePresets.Modality

The modality to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
valuePresets.Query

The query to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Presets.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Presets.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Presets.Builder
Overrides