Send feedback
Class GroundingMetadata (3.52.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 3.52.0 keyboard_arrow_down
public final class GroundingMetadata extends GeneratedMessageV3 implements GroundingMetadataOrBuilder
Metadata returned to client when grounding is enabled.
Protobuf type google.cloud.aiplatform.v1.GroundingMetadata
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
public static final int GROUNDING_CHUNKS_FIELD_NUMBER
Field Value
Type
Description
int
public static final int GROUNDING_SUPPORTS_FIELD_NUMBER
Field Value
Type
Description
int
SEARCH_ENTRY_POINT_FIELD_NUMBER
public static final int SEARCH_ENTRY_POINT_FIELD_NUMBER
Field Value
Type
Description
int
public static final int WEB_SEARCH_QUERIES_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
public static GroundingMetadata getDefaultInstance ()
public static final Descriptors . Descriptor getDescriptor ()
public static GroundingMetadata . Builder newBuilder ()
public static GroundingMetadata . Builder newBuilder ( GroundingMetadata prototype )
public static GroundingMetadata parseDelimitedFrom ( InputStream input )
public static GroundingMetadata parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static GroundingMetadata parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
public static GroundingMetadata parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
public static GroundingMetadata parseFrom ( ByteString data )
public static GroundingMetadata parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static GroundingMetadata parseFrom ( CodedInputStream input )
public static GroundingMetadata parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static GroundingMetadata parseFrom ( InputStream input )
public static GroundingMetadata parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static GroundingMetadata parseFrom ( ByteBuffer data )
public static GroundingMetadata parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
public static Parser<GroundingMetadata> parser ()
Methods
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
public GroundingMetadata getDefaultInstanceForType ()
public GroundingChunk getGroundingChunks ( int index )
List of supporting references retrieved from specified grounding source.
repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
Parameter
Name
Description
index
int
public int getGroundingChunksCount ()
List of supporting references retrieved from specified grounding source.
repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
Returns
Type
Description
int
public List<GroundingChunk> getGroundingChunksList ()
List of supporting references retrieved from specified grounding source.
repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
public GroundingChunkOrBuilder getGroundingChunksOrBuilder ( int index )
List of supporting references retrieved from specified grounding source.
repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
Parameter
Name
Description
index
int
public List <? extends GroundingChunkOrBuilder > getGroundingChunksOrBuilderList ()
List of supporting references retrieved from specified grounding source.
repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
Returns
Type
Description
List <? extends com.google.cloud.aiplatform.v1.GroundingChunkOrBuilder >
public GroundingSupport getGroundingSupports ( int index )
Optional. List of grounding support.
repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Name
Description
index
int
public int getGroundingSupportsCount ()
Optional. List of grounding support.
repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
int
public List<GroundingSupport> getGroundingSupportsList ()
Optional. List of grounding support.
repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
public GroundingSupportOrBuilder getGroundingSupportsOrBuilder ( int index )
Optional. List of grounding support.
repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Name
Description
index
int
public List <? extends GroundingSupportOrBuilder > getGroundingSupportsOrBuilderList ()
Optional. List of grounding support.
repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
List <? extends com.google.cloud.aiplatform.v1.GroundingSupportOrBuilder >
public Parser<GroundingMetadata> getParserForType ()
Overrides
getSearchEntryPoint()
public SearchEntryPoint getSearchEntryPoint ()
Optional. Google search entry for the following-up web searches.
optional .google.cloud.aiplatform.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
getSearchEntryPointOrBuilder()
public SearchEntryPointOrBuilder getSearchEntryPointOrBuilder ()
Optional. Google search entry for the following-up web searches.
optional .google.cloud.aiplatform.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
public String getWebSearchQueries ( int index )
Optional. Web search queries for the following-up web search.
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Name
Description
index
int
The index of the element to return.
Returns
Type
Description
String
The webSearchQueries at the given index.
public ByteString getWebSearchQueriesBytes ( int index )
Optional. Web search queries for the following-up web search.
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Name
Description
index
int
The index of the value to return.
Returns
Type
Description
ByteString
The bytes of the webSearchQueries at the given index.
public int getWebSearchQueriesCount ()
Optional. Web search queries for the following-up web search.
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
int
The count of webSearchQueries.
public ProtocolStringList getWebSearchQueriesList ()
Optional. Web search queries for the following-up web search.
repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
hasSearchEntryPoint()
public boolean hasSearchEntryPoint ()
Optional. Google search entry for the following-up web searches.
optional .google.cloud.aiplatform.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
boolean
Whether the searchEntryPoint field is set.
Returns
Type
Description
int
Overrides
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
public final boolean isInitialized ()
Overrides
public GroundingMetadata . Builder newBuilderForType ()
protected GroundingMetadata . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
public GroundingMetadata . Builder toBuilder ()
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
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-01-27 UTC.
Need to tell us more?
[[["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-01-27 UTC."],[],[]]