Class GroundingMetadata (3.41.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 3.41.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   final   class  GroundingMetadata   extends   GeneratedMessageV3   implements   GroundingMetadataOrBuilder  
   Metadata returned to client when grounding is enabled.
 Protobuf type google.cloud.aiplatform.v1beta1.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_ATTRIBUTIONS_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  
      
        databyte [] 
     
  
  
  
  
    
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  
      
        objObject  
     
  
  
  Overrides 
  
  
    
public   GroundingMetadata   getDefaultInstanceForType ()  
  
  
    
public   GroundingAttribution   getGroundingAttributions ( int   index )  
   Optional. List of grounding attributions.
 
 repeated .google.cloud.aiplatform.v1beta1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];
 
    
      
        Parameter  
      
        Name Description  
      
        indexint  
     
  
  
  
    
public   int   getGroundingAttributionsCount ()  
   Optional. List of grounding attributions.
 
 repeated .google.cloud.aiplatform.v1beta1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];
 
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  
    
public   List<GroundingAttribution>   getGroundingAttributionsList ()  
   Optional. List of grounding attributions.
 
 repeated .google.cloud.aiplatform.v1beta1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];
 
    
public   GroundingAttributionOrBuilder   getGroundingAttributionsOrBuilder ( int   index )  
   Optional. List of grounding attributions.
 
 repeated .google.cloud.aiplatform.v1beta1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];
 
    
      
        Parameter  
      
        Name Description  
      
        indexint  
     
  
  
  
    
public   List <?   extends   GroundingAttributionOrBuilder >  getGroundingAttributionsOrBuilderList ()  
   Optional. List of grounding attributions.
 
 repeated .google.cloud.aiplatform.v1beta1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL];
 
    
      
        Returns  
      
        Type Description  
      
        List <? extends com.google.cloud.aiplatform.v1beta1.GroundingAttributionOrBuilder > 
     
  
  
    
public   Parser<GroundingMetadata>   getParserForType ()  
  
  Overrides 
  
  
    
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  
      
        indexint 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  
      
        indexint 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];
    
      
        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 
  
  
 
     
    
  
  
  
     
  
    
    
      
       
    
    
  
  
 
  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-10-11 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-11 UTC."],[],[]]