Package com.google.cloud.aiplatform.v1
Class Examples.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Examples.Builder>
com.google.cloud.aiplatform.v1.Examples.Builder
- All Implemented Interfaces:
ExamplesOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Examples
public static final class Examples.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Examples.Builder>
implements ExamplesOrBuilder
Example-based explainability that returns the nearest neighbors from the provided dataset.Protobuf type
google.cloud.aiplatform.v1.Examples-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The Cloud Storage input instances.The full configuration for the generated index, the semantics are the same as [metadata][google.cloud.aiplatform.v1.Index.metadata] and should match [NearestNeighborSearchConfig](https://cloud.google.com/vertex-ai/docs/explainable-ai/configuring-explanations-example-based#nearest-neighbor-search-config).The number of neighbors to return when querying for examples.Simplified preset configuration, which automatically sets configuration values based on the desired query speed-precision trade-off and modality.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe Cloud Storage input instances.The Cloud Storage input instances.The Cloud Storage input instances.com.google.protobuf.ValueThe full configuration for the generated index, the semantics are the same as [metadata][google.cloud.aiplatform.v1.Index.metadata] and should match [NearestNeighborSearchConfig](https://cloud.google.com/vertex-ai/docs/explainable-ai/configuring-explanations-example-based#nearest-neighbor-search-config).com.google.protobuf.Value.BuilderThe full configuration for the generated index, the semantics are the same as [metadata][google.cloud.aiplatform.v1.Index.metadata] and should match [NearestNeighborSearchConfig](https://cloud.google.com/vertex-ai/docs/explainable-ai/configuring-explanations-example-based#nearest-neighbor-search-config).com.google.protobuf.ValueOrBuilderThe full configuration for the generated index, the semantics are the same as [metadata][google.cloud.aiplatform.v1.Index.metadata] and should match [NearestNeighborSearchConfig](https://cloud.google.com/vertex-ai/docs/explainable-ai/configuring-explanations-example-based#nearest-neighbor-search-config).intThe number of neighbors to return when querying for examples.Simplified preset configuration, which automatically sets configuration values based on the desired query speed-precision trade-off and modality.Simplified preset configuration, which automatically sets configuration values based on the desired query speed-precision trade-off and modality.Simplified preset configuration, which automatically sets configuration values based on the desired query speed-precision trade-off and modality.booleanThe Cloud Storage input instances.booleanThe full configuration for the generated index, the semantics are the same as [metadata][google.cloud.aiplatform.v1.Index.metadata] and should match [NearestNeighborSearchConfig](https://cloud.google.com/vertex-ai/docs/explainable-ai/configuring-explanations-example-based#nearest-neighbor-search-config).booleanSimplified preset configuration, which automatically sets configuration values based on the desired query speed-precision trade-off and modality.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanThe Cloud Storage input instances.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeNearestNeighborSearchConfig(com.google.protobuf.Value value) The full configuration for the generated index, the semantics are the same as [metadata][google.cloud.aiplatform.v1.Index.metadata] and should match [NearestNeighborSearchConfig](https://cloud.google.com/vertex-ai/docs/explainable-ai/configuring-explanations-example-based#nearest-neighbor-search-config).mergePresets(Presets value) Simplified preset configuration, which automatically sets configuration values based on the desired query speed-precision trade-off and modality.The Cloud Storage input instances.setExampleGcsSource(Examples.ExampleGcsSource.Builder builderForValue) The Cloud Storage input instances.setNearestNeighborSearchConfig(com.google.protobuf.Value value) The full configuration for the generated index, the semantics are the same as [metadata][google.cloud.aiplatform.v1.Index.metadata] and should match [NearestNeighborSearchConfig](https://cloud.google.com/vertex-ai/docs/explainable-ai/configuring-explanations-example-based#nearest-neighbor-search-config).setNearestNeighborSearchConfig(com.google.protobuf.Value.Builder builderForValue) The full configuration for the generated index, the semantics are the same as [metadata][google.cloud.aiplatform.v1.Index.metadata] and should match [NearestNeighborSearchConfig](https://cloud.google.com/vertex-ai/docs/explainable-ai/configuring-explanations-example-based#nearest-neighbor-search-config).setNeighborCount(int value) The number of neighbors to return when querying for examples.setPresets(Presets value) Simplified preset configuration, which automatically sets configuration values based on the desired query speed-precision trade-off and modality.setPresets(Presets.Builder builderForValue) Simplified preset configuration, which automatically sets configuration values based on the desired query speed-precision trade-off and modality.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Examples.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Examples.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Examples.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Examples.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Examples.Builder>
-
mergeFrom
public Examples.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Examples.Builder>- Throws:
IOException
-
getSourceCase
- Specified by:
getSourceCasein interfaceExamplesOrBuilder
-
clearSource
-
getConfigCase
- Specified by:
getConfigCasein interfaceExamplesOrBuilder
-
clearConfig
-
hasExampleGcsSource
public boolean hasExampleGcsSource()The Cloud Storage input instances.
.google.cloud.aiplatform.v1.Examples.ExampleGcsSource example_gcs_source = 5;- Specified by:
hasExampleGcsSourcein interfaceExamplesOrBuilder- Returns:
- Whether the exampleGcsSource field is set.
-
getExampleGcsSource
The Cloud Storage input instances.
.google.cloud.aiplatform.v1.Examples.ExampleGcsSource example_gcs_source = 5;- Specified by:
getExampleGcsSourcein interfaceExamplesOrBuilder- Returns:
- The exampleGcsSource.
-
setExampleGcsSource
The Cloud Storage input instances.
.google.cloud.aiplatform.v1.Examples.ExampleGcsSource example_gcs_source = 5; -
setExampleGcsSource
The Cloud Storage input instances.
.google.cloud.aiplatform.v1.Examples.ExampleGcsSource example_gcs_source = 5; -
mergeExampleGcsSource
The Cloud Storage input instances.
.google.cloud.aiplatform.v1.Examples.ExampleGcsSource example_gcs_source = 5; -
clearExampleGcsSource
The Cloud Storage input instances.
.google.cloud.aiplatform.v1.Examples.ExampleGcsSource example_gcs_source = 5; -
getExampleGcsSourceBuilder
The Cloud Storage input instances.
.google.cloud.aiplatform.v1.Examples.ExampleGcsSource example_gcs_source = 5; -
getExampleGcsSourceOrBuilder
The Cloud Storage input instances.
.google.cloud.aiplatform.v1.Examples.ExampleGcsSource example_gcs_source = 5;- Specified by:
getExampleGcsSourceOrBuilderin interfaceExamplesOrBuilder
-
hasNearestNeighborSearchConfig
public boolean hasNearestNeighborSearchConfig()The full configuration for the generated index, the semantics are the same as [metadata][google.cloud.aiplatform.v1.Index.metadata] and should match [NearestNeighborSearchConfig](https://cloud.google.com/vertex-ai/docs/explainable-ai/configuring-explanations-example-based#nearest-neighbor-search-config).
.google.protobuf.Value nearest_neighbor_search_config = 2;- Specified by:
hasNearestNeighborSearchConfigin interfaceExamplesOrBuilder- Returns:
- Whether the nearestNeighborSearchConfig field is set.
-
getNearestNeighborSearchConfig
public com.google.protobuf.Value getNearestNeighborSearchConfig()The full configuration for the generated index, the semantics are the same as [metadata][google.cloud.aiplatform.v1.Index.metadata] and should match [NearestNeighborSearchConfig](https://cloud.google.com/vertex-ai/docs/explainable-ai/configuring-explanations-example-based#nearest-neighbor-search-config).
.google.protobuf.Value nearest_neighbor_search_config = 2;- Specified by:
getNearestNeighborSearchConfigin interfaceExamplesOrBuilder- Returns:
- The nearestNeighborSearchConfig.
-
setNearestNeighborSearchConfig
The full configuration for the generated index, the semantics are the same as [metadata][google.cloud.aiplatform.v1.Index.metadata] and should match [NearestNeighborSearchConfig](https://cloud.google.com/vertex-ai/docs/explainable-ai/configuring-explanations-example-based#nearest-neighbor-search-config).
.google.protobuf.Value nearest_neighbor_search_config = 2; -
setNearestNeighborSearchConfig
public Examples.Builder setNearestNeighborSearchConfig(com.google.protobuf.Value.Builder builderForValue) The full configuration for the generated index, the semantics are the same as [metadata][google.cloud.aiplatform.v1.Index.metadata] and should match [NearestNeighborSearchConfig](https://cloud.google.com/vertex-ai/docs/explainable-ai/configuring-explanations-example-based#nearest-neighbor-search-config).
.google.protobuf.Value nearest_neighbor_search_config = 2; -
mergeNearestNeighborSearchConfig
The full configuration for the generated index, the semantics are the same as [metadata][google.cloud.aiplatform.v1.Index.metadata] and should match [NearestNeighborSearchConfig](https://cloud.google.com/vertex-ai/docs/explainable-ai/configuring-explanations-example-based#nearest-neighbor-search-config).
.google.protobuf.Value nearest_neighbor_search_config = 2; -
clearNearestNeighborSearchConfig
The full configuration for the generated index, the semantics are the same as [metadata][google.cloud.aiplatform.v1.Index.metadata] and should match [NearestNeighborSearchConfig](https://cloud.google.com/vertex-ai/docs/explainable-ai/configuring-explanations-example-based#nearest-neighbor-search-config).
.google.protobuf.Value nearest_neighbor_search_config = 2; -
getNearestNeighborSearchConfigBuilder
public com.google.protobuf.Value.Builder getNearestNeighborSearchConfigBuilder()The full configuration for the generated index, the semantics are the same as [metadata][google.cloud.aiplatform.v1.Index.metadata] and should match [NearestNeighborSearchConfig](https://cloud.google.com/vertex-ai/docs/explainable-ai/configuring-explanations-example-based#nearest-neighbor-search-config).
.google.protobuf.Value nearest_neighbor_search_config = 2; -
getNearestNeighborSearchConfigOrBuilder
public com.google.protobuf.ValueOrBuilder getNearestNeighborSearchConfigOrBuilder()The full configuration for the generated index, the semantics are the same as [metadata][google.cloud.aiplatform.v1.Index.metadata] and should match [NearestNeighborSearchConfig](https://cloud.google.com/vertex-ai/docs/explainable-ai/configuring-explanations-example-based#nearest-neighbor-search-config).
.google.protobuf.Value nearest_neighbor_search_config = 2;- Specified by:
getNearestNeighborSearchConfigOrBuilderin interfaceExamplesOrBuilder
-
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;- Specified by:
hasPresetsin interfaceExamplesOrBuilder- Returns:
- Whether the presets field is set.
-
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;- Specified by:
getPresetsin interfaceExamplesOrBuilder- Returns:
- The presets.
-
setPresets
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; -
setPresets
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; -
mergePresets
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; -
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; -
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; -
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;- Specified by:
getPresetsOrBuilderin interfaceExamplesOrBuilder
-
getNeighborCount
public int getNeighborCount()The number of neighbors to return when querying for examples.
int32 neighbor_count = 3;- Specified by:
getNeighborCountin interfaceExamplesOrBuilder- Returns:
- The neighborCount.
-
setNeighborCount
The number of neighbors to return when querying for examples.
int32 neighbor_count = 3;- Parameters:
value- The neighborCount to set.- Returns:
- This builder for chaining.
-
clearNeighborCount
The number of neighbors to return when querying for examples.
int32 neighbor_count = 3;- Returns:
- This builder for chaining.
-