Class Examples.Builder (3.8.0)

public static final class Examples.Builder extends GeneratedMessageV3.Builder<Examples.Builder> implements ExamplesOrBuilder

Example-based explainability that returns the nearest neighbors from the provided dataset.

Protobuf type google.cloud.aiplatform.v1beta1.Examples

Implements

ExamplesOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Examples build()
Returns
TypeDescription
Examples

buildPartial()

public Examples buildPartial()
Returns
TypeDescription
Examples

clear()

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

clearConfig()

public Examples.Builder clearConfig()
Returns
TypeDescription
Examples.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearGcsSource()

public Examples.Builder clearGcsSource()

The Cloud Storage location for the input instances.

.google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1;

Returns
TypeDescription
Examples.Builder

clearNearestNeighborSearchConfig()

public Examples.Builder clearNearestNeighborSearchConfig()

The configuration for the generated index, the semantics are the same as metadata and should match NearestNeighborSearchConfig.

.google.protobuf.Value nearest_neighbor_search_config = 2;

Returns
TypeDescription
Examples.Builder

clearNeighborCount()

public Examples.Builder clearNeighborCount()

The number of neighbors to return.

int32 neighbor_count = 3;

Returns
TypeDescription
Examples.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPresets()

public Examples.Builder clearPresets()

Preset config based on the desired query speed-precision trade-off and modality

.google.cloud.aiplatform.v1beta1.Presets presets = 4;

Returns
TypeDescription
Examples.Builder

clone()

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

getConfigCase()

public Examples.ConfigCase getConfigCase()
Returns
TypeDescription
Examples.ConfigCase

getDefaultInstanceForType()

public Examples getDefaultInstanceForType()
Returns
TypeDescription
Examples

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGcsSource()

public GcsSource getGcsSource()

The Cloud Storage location for the input instances.

.google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1;

Returns
TypeDescription
GcsSource

The gcsSource.

getGcsSourceBuilder()

public GcsSource.Builder getGcsSourceBuilder()

The Cloud Storage location for the input instances.

.google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1;

Returns
TypeDescription
GcsSource.Builder

getGcsSourceOrBuilder()

public GcsSourceOrBuilder getGcsSourceOrBuilder()

The Cloud Storage location for the input instances.

.google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1;

Returns
TypeDescription
GcsSourceOrBuilder

getNearestNeighborSearchConfig()

public Value getNearestNeighborSearchConfig()

The configuration for the generated index, the semantics are the same as metadata and should match NearestNeighborSearchConfig.

.google.protobuf.Value nearest_neighbor_search_config = 2;

Returns
TypeDescription
Value

The nearestNeighborSearchConfig.

getNearestNeighborSearchConfigBuilder()

public Value.Builder getNearestNeighborSearchConfigBuilder()

The configuration for the generated index, the semantics are the same as metadata and should match NearestNeighborSearchConfig.

.google.protobuf.Value nearest_neighbor_search_config = 2;

Returns
TypeDescription
Builder

getNearestNeighborSearchConfigOrBuilder()

public ValueOrBuilder getNearestNeighborSearchConfigOrBuilder()

The configuration for the generated index, the semantics are the same as metadata and should match NearestNeighborSearchConfig.

.google.protobuf.Value nearest_neighbor_search_config = 2;

Returns
TypeDescription
ValueOrBuilder

getNeighborCount()

public int getNeighborCount()

The number of neighbors to return.

int32 neighbor_count = 3;

Returns
TypeDescription
int

The neighborCount.

getPresets()

public Presets getPresets()

Preset config based on the desired query speed-precision trade-off and modality

.google.cloud.aiplatform.v1beta1.Presets presets = 4;

Returns
TypeDescription
Presets

The presets.

getPresetsBuilder()

public Presets.Builder getPresetsBuilder()

Preset config based on the desired query speed-precision trade-off and modality

.google.cloud.aiplatform.v1beta1.Presets presets = 4;

Returns
TypeDescription
Presets.Builder

getPresetsOrBuilder()

public PresetsOrBuilder getPresetsOrBuilder()

Preset config based on the desired query speed-precision trade-off and modality

.google.cloud.aiplatform.v1beta1.Presets presets = 4;

Returns
TypeDescription
PresetsOrBuilder

hasGcsSource()

public boolean hasGcsSource()

The Cloud Storage location for the input instances.

.google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1;

Returns
TypeDescription
boolean

Whether the gcsSource field is set.

hasNearestNeighborSearchConfig()

public boolean hasNearestNeighborSearchConfig()

The configuration for the generated index, the semantics are the same as metadata and should match NearestNeighborSearchConfig.

.google.protobuf.Value nearest_neighbor_search_config = 2;

Returns
TypeDescription
boolean

Whether the nearestNeighborSearchConfig field is set.

hasPresets()

public boolean hasPresets()

Preset config based on the desired query speed-precision trade-off and modality

.google.cloud.aiplatform.v1beta1.Presets presets = 4;

Returns
TypeDescription
boolean

Whether the presets field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Examples other)

public Examples.Builder mergeFrom(Examples other)
Parameter
NameDescription
otherExamples
Returns
TypeDescription
Examples.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeGcsSource(GcsSource value)

public Examples.Builder mergeGcsSource(GcsSource value)

The Cloud Storage location for the input instances.

.google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1;

Parameter
NameDescription
valueGcsSource
Returns
TypeDescription
Examples.Builder

mergeNearestNeighborSearchConfig(Value value)

public Examples.Builder mergeNearestNeighborSearchConfig(Value value)

The configuration for the generated index, the semantics are the same as metadata and should match NearestNeighborSearchConfig.

.google.protobuf.Value nearest_neighbor_search_config = 2;

Parameter
NameDescription
valueValue
Returns
TypeDescription
Examples.Builder

mergePresets(Presets value)

public Examples.Builder mergePresets(Presets value)

Preset config based on the desired query speed-precision trade-off and modality

.google.cloud.aiplatform.v1beta1.Presets presets = 4;

Parameter
NameDescription
valuePresets
Returns
TypeDescription
Examples.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setGcsSource(GcsSource value)

public Examples.Builder setGcsSource(GcsSource value)

The Cloud Storage location for the input instances.

.google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1;

Parameter
NameDescription
valueGcsSource
Returns
TypeDescription
Examples.Builder

setGcsSource(GcsSource.Builder builderForValue)

public Examples.Builder setGcsSource(GcsSource.Builder builderForValue)

The Cloud Storage location for the input instances.

.google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1;

Parameter
NameDescription
builderForValueGcsSource.Builder
Returns
TypeDescription
Examples.Builder

setNearestNeighborSearchConfig(Value value)

public Examples.Builder setNearestNeighborSearchConfig(Value value)

The configuration for the generated index, the semantics are the same as metadata and should match NearestNeighborSearchConfig.

.google.protobuf.Value nearest_neighbor_search_config = 2;

Parameter
NameDescription
valueValue
Returns
TypeDescription
Examples.Builder

setNearestNeighborSearchConfig(Value.Builder builderForValue)

public Examples.Builder setNearestNeighborSearchConfig(Value.Builder builderForValue)

The configuration for the generated index, the semantics are the same as metadata and should match NearestNeighborSearchConfig.

.google.protobuf.Value nearest_neighbor_search_config = 2;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Examples.Builder

setNeighborCount(int value)

public Examples.Builder setNeighborCount(int value)

The number of neighbors to return.

int32 neighbor_count = 3;

Parameter
NameDescription
valueint

The neighborCount to set.

Returns
TypeDescription
Examples.Builder

This builder for chaining.

setPresets(Presets value)

public Examples.Builder setPresets(Presets value)

Preset config based on the desired query speed-precision trade-off and modality

.google.cloud.aiplatform.v1beta1.Presets presets = 4;

Parameter
NameDescription
valuePresets
Returns
TypeDescription
Examples.Builder

setPresets(Presets.Builder builderForValue)

public Examples.Builder setPresets(Presets.Builder builderForValue)

Preset config based on the desired query speed-precision trade-off and modality

.google.cloud.aiplatform.v1beta1.Presets presets = 4;

Parameter
NameDescription
builderForValuePresets.Builder
Returns
TypeDescription
Examples.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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