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.vertexai.v1.Examples
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Examples.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
buildPartial()
public Examples buildPartial()
clear()
public Examples.Builder clear()
Overrides
clearConfig()
public Examples.Builder clearConfig()
clearExampleGcsSource()
public Examples.Builder clearExampleGcsSource()
The Cloud Storage input instances.
.google.cloud.vertexai.v1.Examples.ExampleGcsSource example_gcs_source = 5;
clearField(Descriptors.FieldDescriptor field)
public Examples.Builder clearField(Descriptors.FieldDescriptor field)
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;
clearNeighborCount()
public Examples.Builder clearNeighborCount()
The number of neighbors to return when querying for examples.
int32 neighbor_count = 3;
clearOneof(Descriptors.OneofDescriptor oneof)
public Examples.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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.vertexai.v1.Presets presets = 4;
clearSource()
public Examples.Builder clearSource()
clone()
public Examples.Builder clone()
Overrides
getConfigCase()
public Examples.ConfigCase getConfigCase()
getDefaultInstanceForType()
public Examples getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getExampleGcsSource()
public Examples.ExampleGcsSource getExampleGcsSource()
The Cloud Storage input instances.
.google.cloud.vertexai.v1.Examples.ExampleGcsSource example_gcs_source = 5;
getExampleGcsSourceBuilder()
public Examples.ExampleGcsSource.Builder getExampleGcsSourceBuilder()
The Cloud Storage input instances.
.google.cloud.vertexai.v1.Examples.ExampleGcsSource example_gcs_source = 5;
getExampleGcsSourceOrBuilder()
public Examples.ExampleGcsSourceOrBuilder getExampleGcsSourceOrBuilder()
The Cloud Storage input instances.
.google.cloud.vertexai.v1.Examples.ExampleGcsSource example_gcs_source = 5;
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 |
Type |
Description |
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;
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;
getNeighborCount()
public int getNeighborCount()
The number of neighbors to return when querying for examples.
int32 neighbor_count = 3;
Returns |
Type |
Description |
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.vertexai.v1.Presets presets = 4;
Returns |
Type |
Description |
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.vertexai.v1.Presets presets = 4;
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.vertexai.v1.Presets presets = 4;
getSourceCase()
public Examples.SourceCase getSourceCase()
hasExampleGcsSource()
public boolean hasExampleGcsSource()
The Cloud Storage input instances.
.google.cloud.vertexai.v1.Examples.ExampleGcsSource example_gcs_source = 5;
Returns |
Type |
Description |
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 |
Type |
Description |
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.vertexai.v1.Presets presets = 4;
Returns |
Type |
Description |
boolean |
Whether the presets field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeExampleGcsSource(Examples.ExampleGcsSource value)
public Examples.Builder mergeExampleGcsSource(Examples.ExampleGcsSource value)
The Cloud Storage input instances.
.google.cloud.vertexai.v1.Examples.ExampleGcsSource example_gcs_source = 5;
mergeFrom(Examples other)
public Examples.Builder mergeFrom(Examples other)
Parameter |
Name |
Description |
other |
Examples
|
public Examples.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Examples.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
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 |
Name |
Description |
value |
Value
|
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.vertexai.v1.Presets presets = 4;
Parameter |
Name |
Description |
value |
Presets
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Examples.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setExampleGcsSource(Examples.ExampleGcsSource value)
public Examples.Builder setExampleGcsSource(Examples.ExampleGcsSource value)
The Cloud Storage input instances.
.google.cloud.vertexai.v1.Examples.ExampleGcsSource example_gcs_source = 5;
setExampleGcsSource(Examples.ExampleGcsSource.Builder builderForValue)
public Examples.Builder setExampleGcsSource(Examples.ExampleGcsSource.Builder builderForValue)
The Cloud Storage input instances.
.google.cloud.vertexai.v1.Examples.ExampleGcsSource example_gcs_source = 5;
setField(Descriptors.FieldDescriptor field, Object value)
public Examples.Builder setField(Descriptors.FieldDescriptor field, Object value)
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 |
Name |
Description |
value |
Value
|
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 |
Name |
Description |
builderForValue |
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 |
Name |
Description |
value |
int
The neighborCount to set.
|
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.vertexai.v1.Presets presets = 4;
Parameter |
Name |
Description |
value |
Presets
|
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.vertexai.v1.Presets presets = 4;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Examples.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Examples.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides