public final class Examples extends GeneratedMessageV3 implements ExamplesOrBuilder
Example-based explainability that returns the nearest neighbors from the
provided dataset.
Protobuf type google.cloud.vertexai.v1beta1.Examples
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
EXAMPLE_GCS_SOURCE_FIELD_NUMBER
public static final int EXAMPLE_GCS_SOURCE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
GCS_SOURCE_FIELD_NUMBER
public static final int GCS_SOURCE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
NEAREST_NEIGHBOR_SEARCH_CONFIG_FIELD_NUMBER
public static final int NEAREST_NEIGHBOR_SEARCH_CONFIG_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
NEIGHBOR_COUNT_FIELD_NUMBER
public static final int NEIGHBOR_COUNT_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
PRESETS_FIELD_NUMBER
public static final int PRESETS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static Examples getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Examples.Builder newBuilder()
newBuilder(Examples prototype)
public static Examples.Builder newBuilder(Examples prototype)
Parameter |
Name |
Description |
prototype |
Examples
|
public static Examples parseDelimitedFrom(InputStream input)
public static Examples parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static Examples parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Examples parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static Examples parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Examples parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Examples parseFrom(CodedInputStream input)
public static Examples parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Examples parseFrom(InputStream input)
public static Examples parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static Examples parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Examples parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<Examples> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getConfigCase()
public Examples.ConfigCase getConfigCase()
getDefaultInstanceForType()
public Examples getDefaultInstanceForType()
getExampleGcsSource()
public Examples.ExampleGcsSource getExampleGcsSource()
The Cloud Storage input instances.
.google.cloud.vertexai.v1beta1.Examples.ExampleGcsSource example_gcs_source = 5;
getExampleGcsSourceOrBuilder()
public Examples.ExampleGcsSourceOrBuilder getExampleGcsSourceOrBuilder()
The Cloud Storage input instances.
.google.cloud.vertexai.v1beta1.Examples.ExampleGcsSource example_gcs_source = 5;
getGcsSource()
public GcsSource getGcsSource()
The Cloud Storage locations that contain the instances to be
indexed for approximate nearest neighbor search.
.google.cloud.vertexai.v1beta1.GcsSource gcs_source = 1;
Returns |
Type |
Description |
GcsSource |
The gcsSource.
|
getGcsSourceOrBuilder()
public GcsSourceOrBuilder getGcsSourceOrBuilder()
The Cloud Storage locations that contain the instances to be
indexed for approximate nearest neighbor search.
.google.cloud.vertexai.v1beta1.GcsSource gcs_source = 1;
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.
|
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.
|
getParserForType()
public Parser<Examples> getParserForType()
Overrides
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.v1beta1.Presets presets = 4;
Returns |
Type |
Description |
Presets |
The presets.
|
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.v1beta1.Presets presets = 4;
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
getSourceCase()
public Examples.SourceCase getSourceCase()
hasExampleGcsSource()
public boolean hasExampleGcsSource()
The Cloud Storage input instances.
.google.cloud.vertexai.v1beta1.Examples.ExampleGcsSource example_gcs_source = 5;
Returns |
Type |
Description |
boolean |
Whether the exampleGcsSource field is set.
|
hasGcsSource()
public boolean hasGcsSource()
The Cloud Storage locations that contain the instances to be
indexed for approximate nearest neighbor search.
.google.cloud.vertexai.v1beta1.GcsSource gcs_source = 1;
Returns |
Type |
Description |
boolean |
Whether the gcsSource 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.v1beta1.Presets presets = 4;
Returns |
Type |
Description |
boolean |
Whether the presets field is set.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Examples.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Examples.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public Examples.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides