Class Examples.Builder (3.29.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.v1.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

clearExampleGcsSource()

public Examples.Builder clearExampleGcsSource()

The Cloud Storage input instances.

.google.cloud.aiplatform.v1.Examples.ExampleGcsSource example_gcs_source = 5;

Returns
TypeDescription
Examples.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNearestNeighborSearchConfig()

public Examples.Builder clearNearestNeighborSearchConfig()

The full 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 when querying for examples.

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()

Simplified preset configuration, which automatically sets configuration values based on the desired query speed-precision trade-off and modality.

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

Returns
TypeDescription
Examples.Builder

clearSource()

public Examples.Builder clearSource()
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

getExampleGcsSource()

public Examples.ExampleGcsSource getExampleGcsSource()

The Cloud Storage input instances.

.google.cloud.aiplatform.v1.Examples.ExampleGcsSource example_gcs_source = 5;

Returns
TypeDescription
Examples.ExampleGcsSource

The exampleGcsSource.

getExampleGcsSourceBuilder()

public Examples.ExampleGcsSource.Builder getExampleGcsSourceBuilder()

The Cloud Storage input instances.

.google.cloud.aiplatform.v1.Examples.ExampleGcsSource example_gcs_source = 5;

Returns
TypeDescription
Examples.ExampleGcsSource.Builder

getExampleGcsSourceOrBuilder()

public Examples.ExampleGcsSourceOrBuilder getExampleGcsSourceOrBuilder()

The Cloud Storage input instances.

.google.cloud.aiplatform.v1.Examples.ExampleGcsSource example_gcs_source = 5;

Returns
TypeDescription
Examples.ExampleGcsSourceOrBuilder

getNearestNeighborSearchConfig()

public Value getNearestNeighborSearchConfig()

The full 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 full 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 full 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 when querying for examples.

int32 neighbor_count = 3;

Returns
TypeDescription
int

The neighborCount.

getPresets()

public Presets getPresets()

Simplified preset configuration, which automatically sets configuration values based on the desired query speed-precision trade-off and modality.

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

Returns
TypeDescription
Presets

The presets.

getPresetsBuilder()

public Presets.Builder getPresetsBuilder()

Simplified preset configuration, which automatically sets configuration values based on the desired query speed-precision trade-off and modality.

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

Returns
TypeDescription
Presets.Builder

getPresetsOrBuilder()

public PresetsOrBuilder getPresetsOrBuilder()

Simplified preset configuration, which automatically sets configuration values based on the desired query speed-precision trade-off and modality.

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

Returns
TypeDescription
PresetsOrBuilder

getSourceCase()

public Examples.SourceCase getSourceCase()
Returns
TypeDescription
Examples.SourceCase

hasExampleGcsSource()

public boolean hasExampleGcsSource()

The Cloud Storage input instances.

.google.cloud.aiplatform.v1.Examples.ExampleGcsSource example_gcs_source = 5;

Returns
TypeDescription
boolean

Whether the exampleGcsSource field is set.

hasNearestNeighborSearchConfig()

public boolean hasNearestNeighborSearchConfig()

The full 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()

Simplified preset configuration, which automatically sets configuration values based on the desired query speed-precision trade-off and modality.

.google.cloud.aiplatform.v1.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

mergeExampleGcsSource(Examples.ExampleGcsSource value)

public Examples.Builder mergeExampleGcsSource(Examples.ExampleGcsSource value)

The Cloud Storage input instances.

.google.cloud.aiplatform.v1.Examples.ExampleGcsSource example_gcs_source = 5;

Parameter
NameDescription
valueExamples.ExampleGcsSource
Returns
TypeDescription
Examples.Builder

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

mergeNearestNeighborSearchConfig(Value value)

public Examples.Builder mergeNearestNeighborSearchConfig(Value value)

The full 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)

Simplified preset configuration, which automatically sets configuration values based on the desired query speed-precision trade-off and modality.

.google.cloud.aiplatform.v1.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

setExampleGcsSource(Examples.ExampleGcsSource value)

public Examples.Builder setExampleGcsSource(Examples.ExampleGcsSource value)

The Cloud Storage input instances.

.google.cloud.aiplatform.v1.Examples.ExampleGcsSource example_gcs_source = 5;

Parameter
NameDescription
valueExamples.ExampleGcsSource
Returns
TypeDescription
Examples.Builder

setExampleGcsSource(Examples.ExampleGcsSource.Builder builderForValue)

public Examples.Builder setExampleGcsSource(Examples.ExampleGcsSource.Builder builderForValue)

The Cloud Storage input instances.

.google.cloud.aiplatform.v1.Examples.ExampleGcsSource example_gcs_source = 5;

Parameter
NameDescription
builderForValueExamples.ExampleGcsSource.Builder
Returns
TypeDescription
Examples.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNearestNeighborSearchConfig(Value value)

public Examples.Builder setNearestNeighborSearchConfig(Value value)

The full 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 full 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 when querying for examples.

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)

Simplified preset configuration, which automatically sets configuration values based on the desired query speed-precision trade-off and modality.

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

Parameter
NameDescription
valuePresets
Returns
TypeDescription
Examples.Builder

setPresets(Presets.Builder builderForValue)

public Examples.Builder setPresets(Presets.Builder builderForValue)

Simplified preset configuration, which automatically sets configuration values based on the desired query speed-precision trade-off and modality.

.google.cloud.aiplatform.v1.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