Starting April 29, 2025, Gemini 1.5 Pro and Gemini 1.5 Flash models are not available in projects that have no prior usage of these models, including new projects. For details, see Model versions and lifecycle.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Interface ExamplesOrBuilder (0.8.0)\n\n public interface ExamplesOrBuilder extends MessageOrBuilder\n\nImplements\n----------\n\n[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)\n\nMethods\n-------\n\n### getConfigCase()\n\n public abstract Examples.ConfigCase getConfigCase()\n\n### getExampleGcsSource()\n\n public abstract Examples.ExampleGcsSource getExampleGcsSource()\n\nThe Cloud Storage input instances.\n\n`.google.cloud.vertexai.v1.Examples.ExampleGcsSource example_gcs_source = 5;`\n\n### getExampleGcsSourceOrBuilder()\n\n public abstract Examples.ExampleGcsSourceOrBuilder getExampleGcsSourceOrBuilder()\n\nThe Cloud Storage input instances.\n\n`.google.cloud.vertexai.v1.Examples.ExampleGcsSource example_gcs_source = 5;`\n\n### getNearestNeighborSearchConfig()\n\n public abstract Value getNearestNeighborSearchConfig()\n\nThe full configuration for the generated index, the semantics are the\nsame as metadata and should\nmatch\n[NearestNeighborSearchConfig](https://cloud.google.com/vertex-ai/docs/explainable-ai/configuring-explanations-example-based#nearest-neighbor-search-config).\n\n`.google.protobuf.Value nearest_neighbor_search_config = 2;`\n\n### getNearestNeighborSearchConfigOrBuilder()\n\n public abstract ValueOrBuilder getNearestNeighborSearchConfigOrBuilder()\n\nThe full configuration for the generated index, the semantics are the\nsame as metadata and should\nmatch\n[NearestNeighborSearchConfig](https://cloud.google.com/vertex-ai/docs/explainable-ai/configuring-explanations-example-based#nearest-neighbor-search-config).\n\n`.google.protobuf.Value nearest_neighbor_search_config = 2;`\n\n### getNeighborCount()\n\n public abstract int getNeighborCount()\n\nThe number of neighbors to return when querying for examples.\n\n`int32 neighbor_count = 3;`\n\n### getPresets()\n\n public abstract Presets getPresets()\n\nSimplified preset configuration, which automatically sets configuration\nvalues based on the desired query speed-precision trade-off and modality.\n\n`.google.cloud.vertexai.v1.Presets presets = 4;`\n\n### getPresetsOrBuilder()\n\n public abstract PresetsOrBuilder getPresetsOrBuilder()\n\nSimplified preset configuration, which automatically sets configuration\nvalues based on the desired query speed-precision trade-off and modality.\n\n`.google.cloud.vertexai.v1.Presets presets = 4;`\n\n### getSourceCase()\n\n public abstract Examples.SourceCase getSourceCase()\n\n### hasExampleGcsSource()\n\n public abstract boolean hasExampleGcsSource()\n\nThe Cloud Storage input instances.\n\n`.google.cloud.vertexai.v1.Examples.ExampleGcsSource example_gcs_source = 5;`\n\n### hasNearestNeighborSearchConfig()\n\n public abstract boolean hasNearestNeighborSearchConfig()\n\nThe full configuration for the generated index, the semantics are the\nsame as metadata and should\nmatch\n[NearestNeighborSearchConfig](https://cloud.google.com/vertex-ai/docs/explainable-ai/configuring-explanations-example-based#nearest-neighbor-search-config).\n\n`.google.protobuf.Value nearest_neighbor_search_config = 2;`\n\n### hasPresets()\n\n public abstract boolean hasPresets()\n\nSimplified preset configuration, which automatically sets configuration\nvalues based on the desired query speed-precision trade-off and modality.\n\n`.google.cloud.vertexai.v1.Presets presets = 4;`"]]