Class Examples (0.2.0)

publicfinalclass ExamplesextendsGeneratedMessageV3implementsExamplesOrBuilder

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

Protobuf type google.cloud.vertexai.v1beta1.Examples

Implements

ExamplesOrBuilder

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

publicstaticfinalintEXAMPLE_GCS_SOURCE_FIELD_NUMBER
Field Value
Type Description
int

GCS_SOURCE_FIELD_NUMBER

publicstaticfinalintGCS_SOURCE_FIELD_NUMBER
Field Value
Type Description
int

NEAREST_NEIGHBOR_SEARCH_CONFIG_FIELD_NUMBER

publicstaticfinalintNEAREST_NEIGHBOR_SEARCH_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

NEIGHBOR_COUNT_FIELD_NUMBER

publicstaticfinalintNEIGHBOR_COUNT_FIELD_NUMBER
Field Value
Type Description
int

PRESETS_FIELD_NUMBER

publicstaticfinalintPRESETS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticExamplesgetDefaultInstance()
Returns
Type Description
Examples

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticExamples.BuildernewBuilder()
Returns
Type Description
Examples.Builder

newBuilder(Examples prototype)

publicstaticExamples.BuildernewBuilder(Examplesprototype)
Parameter
Name Description
prototype Examples
Returns
Type Description
Examples.Builder

parseDelimitedFrom(InputStream input)

publicstaticExamplesparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
Examples
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticExamplesparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Examples
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticExamplesparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
Examples
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticExamplesparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Examples
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticExamplesparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
Examples
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticExamplesparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Examples
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticExamplesparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Examples
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticExamplesparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Examples
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticExamplesparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
Examples
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticExamplesparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Examples
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticExamplesparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Examples
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticExamplesparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Examples
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<Examples>parser()
Returns
Type Description
Parser<Examples>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getConfigCase()

publicExamples.ConfigCasegetConfigCase()
Returns
Type Description
Examples.ConfigCase

getDefaultInstanceForType()

publicExamplesgetDefaultInstanceForType()
Returns
Type Description
Examples

getExampleGcsSource()

publicExamples.ExampleGcsSourcegetExampleGcsSource()

The Cloud Storage input instances.

.google.cloud.vertexai.v1beta1.Examples.ExampleGcsSource example_gcs_source = 5;

Returns
Type Description
Examples.ExampleGcsSource

The exampleGcsSource.

getExampleGcsSourceOrBuilder()

publicExamples.ExampleGcsSourceOrBuildergetExampleGcsSourceOrBuilder()

The Cloud Storage input instances.

.google.cloud.vertexai.v1beta1.Examples.ExampleGcsSource example_gcs_source = 5;

Returns
Type Description
Examples.ExampleGcsSourceOrBuilder

getGcsSource()

publicGcsSourcegetGcsSource()

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

publicGcsSourceOrBuildergetGcsSourceOrBuilder()

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
GcsSourceOrBuilder

getNearestNeighborSearchConfig()

publicValuegetNearestNeighborSearchConfig()

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

publicValueOrBuildergetNearestNeighborSearchConfigOrBuilder()

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
ValueOrBuilder

getNeighborCount()

publicintgetNeighborCount()

The number of neighbors to return when querying for examples.

int32 neighbor_count = 3;

Returns
Type Description
int

The neighborCount.

getParserForType()

publicParser<Examples>getParserForType()
Returns
Type Description
Parser<Examples>
Overrides

getPresets()

publicPresetsgetPresets()

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

publicPresetsOrBuildergetPresetsOrBuilder()

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
PresetsOrBuilder

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getSourceCase()

publicExamples.SourceCasegetSourceCase()
Returns
Type Description
Examples.SourceCase

hasExampleGcsSource()

publicbooleanhasExampleGcsSource()

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

publicbooleanhasGcsSource()

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

publicbooleanhasNearestNeighborSearchConfig()

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

publicbooleanhasPresets()

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

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicExamples.BuildernewBuilderForType()
Returns
Type Description
Examples.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedExamples.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Examples.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicExamples.BuildertoBuilder()
Returns
Type Description
Examples.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.