Class GroundingMetadata.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GroundingMetadata.Builder>
com.google.cloud.aiplatform.v1.GroundingMetadata.Builder
All Implemented Interfaces:
GroundingMetadataOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
GroundingMetadata

public static final class GroundingMetadata.Builder extends com.google.protobuf.GeneratedMessage.Builder<GroundingMetadata.Builder> implements GroundingMetadataOrBuilder
 Metadata returned to client when grounding is enabled.
 
Protobuf type google.cloud.aiplatform.v1.GroundingMetadata
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<GroundingMetadata.Builder>
    • clear

      public GroundingMetadata.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<GroundingMetadata.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<GroundingMetadata.Builder>
    • getDefaultInstanceForType

      public GroundingMetadata getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public GroundingMetadata build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public GroundingMetadata buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public GroundingMetadata.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GroundingMetadata.Builder>
    • mergeFrom

      public GroundingMetadata.Builder mergeFrom(GroundingMetadata other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<GroundingMetadata.Builder>
    • mergeFrom

      public GroundingMetadata.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GroundingMetadata.Builder>
      Throws:
      IOException
    • getWebSearchQueriesList

      public com.google.protobuf.ProtocolStringList getWebSearchQueriesList()
       Optional. Web search queries for the following-up web search.
       
      repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getWebSearchQueriesList in interface GroundingMetadataOrBuilder
      Returns:
      A list containing the webSearchQueries.
    • getWebSearchQueriesCount

      public int getWebSearchQueriesCount()
       Optional. Web search queries for the following-up web search.
       
      repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getWebSearchQueriesCount in interface GroundingMetadataOrBuilder
      Returns:
      The count of webSearchQueries.
    • getWebSearchQueries

      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];
      Specified by:
      getWebSearchQueries in interface GroundingMetadataOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The webSearchQueries at the given index.
    • getWebSearchQueriesBytes

      public com.google.protobuf.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];
      Specified by:
      getWebSearchQueriesBytes in interface GroundingMetadataOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the webSearchQueries at the given index.
    • setWebSearchQueries

      public GroundingMetadata.Builder setWebSearchQueries(int index, String value)
       Optional. Web search queries for the following-up web search.
       
      repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The webSearchQueries to set.
      Returns:
      This builder for chaining.
    • addWebSearchQueries

      public GroundingMetadata.Builder addWebSearchQueries(String value)
       Optional. Web search queries for the following-up web search.
       
      repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The webSearchQueries to add.
      Returns:
      This builder for chaining.
    • addAllWebSearchQueries

      public GroundingMetadata.Builder addAllWebSearchQueries(Iterable<String> values)
       Optional. Web search queries for the following-up web search.
       
      repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The webSearchQueries to add.
      Returns:
      This builder for chaining.
    • clearWebSearchQueries

      public GroundingMetadata.Builder clearWebSearchQueries()
       Optional. Web search queries for the following-up web search.
       
      repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addWebSearchQueriesBytes

      public GroundingMetadata.Builder addWebSearchQueriesBytes(com.google.protobuf.ByteString value)
       Optional. Web search queries for the following-up web search.
       
      repeated string web_search_queries = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the webSearchQueries to add.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      hasSearchEntryPoint in interface GroundingMetadataOrBuilder
      Returns:
      Whether the searchEntryPoint field is set.
    • 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];
      Specified by:
      getSearchEntryPoint in interface GroundingMetadataOrBuilder
      Returns:
      The searchEntryPoint.
    • setSearchEntryPoint

      public GroundingMetadata.Builder setSearchEntryPoint(SearchEntryPoint value)
       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];
    • setSearchEntryPoint

      public GroundingMetadata.Builder setSearchEntryPoint(SearchEntryPoint.Builder builderForValue)
       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];
    • mergeSearchEntryPoint

      public GroundingMetadata.Builder mergeSearchEntryPoint(SearchEntryPoint value)
       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];
    • clearSearchEntryPoint

      public GroundingMetadata.Builder clearSearchEntryPoint()
       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];
    • getSearchEntryPointBuilder

      public SearchEntryPoint.Builder getSearchEntryPointBuilder()
       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];
      Specified by:
      getSearchEntryPointOrBuilder in interface GroundingMetadataOrBuilder
    • getGroundingChunksList

      public List<GroundingChunk> getGroundingChunksList()
       List of supporting references retrieved from specified grounding source.
       
      repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
      Specified by:
      getGroundingChunksList in interface GroundingMetadataOrBuilder
    • getGroundingChunksCount

      public int getGroundingChunksCount()
       List of supporting references retrieved from specified grounding source.
       
      repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
      Specified by:
      getGroundingChunksCount in interface GroundingMetadataOrBuilder
    • getGroundingChunks

      public GroundingChunk getGroundingChunks(int index)
       List of supporting references retrieved from specified grounding source.
       
      repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
      Specified by:
      getGroundingChunks in interface GroundingMetadataOrBuilder
    • setGroundingChunks

      public GroundingMetadata.Builder setGroundingChunks(int index, GroundingChunk value)
       List of supporting references retrieved from specified grounding source.
       
      repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
    • setGroundingChunks

      public GroundingMetadata.Builder setGroundingChunks(int index, GroundingChunk.Builder builderForValue)
       List of supporting references retrieved from specified grounding source.
       
      repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
    • addGroundingChunks

      public GroundingMetadata.Builder addGroundingChunks(GroundingChunk value)
       List of supporting references retrieved from specified grounding source.
       
      repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
    • addGroundingChunks

      public GroundingMetadata.Builder addGroundingChunks(int index, GroundingChunk value)
       List of supporting references retrieved from specified grounding source.
       
      repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
    • addGroundingChunks

      public GroundingMetadata.Builder addGroundingChunks(GroundingChunk.Builder builderForValue)
       List of supporting references retrieved from specified grounding source.
       
      repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
    • addGroundingChunks

      public GroundingMetadata.Builder addGroundingChunks(int index, GroundingChunk.Builder builderForValue)
       List of supporting references retrieved from specified grounding source.
       
      repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
    • addAllGroundingChunks

      public GroundingMetadata.Builder addAllGroundingChunks(Iterable<? extends GroundingChunk> values)
       List of supporting references retrieved from specified grounding source.
       
      repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
    • clearGroundingChunks

      public GroundingMetadata.Builder clearGroundingChunks()
       List of supporting references retrieved from specified grounding source.
       
      repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
    • removeGroundingChunks

      public GroundingMetadata.Builder removeGroundingChunks(int index)
       List of supporting references retrieved from specified grounding source.
       
      repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
    • getGroundingChunksBuilder

      public GroundingChunk.Builder getGroundingChunksBuilder(int index)
       List of supporting references retrieved from specified grounding source.
       
      repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
    • getGroundingChunksOrBuilder

      public GroundingChunkOrBuilder getGroundingChunksOrBuilder(int index)
       List of supporting references retrieved from specified grounding source.
       
      repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
      Specified by:
      getGroundingChunksOrBuilder in interface GroundingMetadataOrBuilder
    • getGroundingChunksOrBuilderList

      public List<? extends GroundingChunkOrBuilder> getGroundingChunksOrBuilderList()
       List of supporting references retrieved from specified grounding source.
       
      repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
      Specified by:
      getGroundingChunksOrBuilderList in interface GroundingMetadataOrBuilder
    • addGroundingChunksBuilder

      public GroundingChunk.Builder addGroundingChunksBuilder()
       List of supporting references retrieved from specified grounding source.
       
      repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
    • addGroundingChunksBuilder

      public GroundingChunk.Builder addGroundingChunksBuilder(int index)
       List of supporting references retrieved from specified grounding source.
       
      repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
    • getGroundingChunksBuilderList

      public List<GroundingChunk.Builder> getGroundingChunksBuilderList()
       List of supporting references retrieved from specified grounding source.
       
      repeated .google.cloud.aiplatform.v1.GroundingChunk grounding_chunks = 5;
    • getGroundingSupportsList

      public List<GroundingSupport> getGroundingSupportsList()
       Optional. List of grounding support.
       
      repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getGroundingSupportsList in interface GroundingMetadataOrBuilder
    • getGroundingSupportsCount

      public int getGroundingSupportsCount()
       Optional. List of grounding support.
       
      repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getGroundingSupportsCount in interface GroundingMetadataOrBuilder
    • getGroundingSupports

      public GroundingSupport getGroundingSupports(int index)
       Optional. List of grounding support.
       
      repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getGroundingSupports in interface GroundingMetadataOrBuilder
    • setGroundingSupports

      public GroundingMetadata.Builder setGroundingSupports(int index, GroundingSupport value)
       Optional. List of grounding support.
       
      repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
    • setGroundingSupports

      public GroundingMetadata.Builder setGroundingSupports(int index, GroundingSupport.Builder builderForValue)
       Optional. List of grounding support.
       
      repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
    • addGroundingSupports

      public GroundingMetadata.Builder addGroundingSupports(GroundingSupport value)
       Optional. List of grounding support.
       
      repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
    • addGroundingSupports

      public GroundingMetadata.Builder addGroundingSupports(int index, GroundingSupport value)
       Optional. List of grounding support.
       
      repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
    • addGroundingSupports

      public GroundingMetadata.Builder addGroundingSupports(GroundingSupport.Builder builderForValue)
       Optional. List of grounding support.
       
      repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
    • addGroundingSupports

      public GroundingMetadata.Builder addGroundingSupports(int index, GroundingSupport.Builder builderForValue)
       Optional. List of grounding support.
       
      repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
    • addAllGroundingSupports

      public GroundingMetadata.Builder addAllGroundingSupports(Iterable<? extends GroundingSupport> values)
       Optional. List of grounding support.
       
      repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
    • clearGroundingSupports

      public GroundingMetadata.Builder clearGroundingSupports()
       Optional. List of grounding support.
       
      repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
    • removeGroundingSupports

      public GroundingMetadata.Builder removeGroundingSupports(int index)
       Optional. List of grounding support.
       
      repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
    • getGroundingSupportsBuilder

      public GroundingSupport.Builder getGroundingSupportsBuilder(int index)
       Optional. List of grounding support.
       
      repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
    • getGroundingSupportsOrBuilder

      public GroundingSupportOrBuilder getGroundingSupportsOrBuilder(int index)
       Optional. List of grounding support.
       
      repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getGroundingSupportsOrBuilder in interface GroundingMetadataOrBuilder
    • getGroundingSupportsOrBuilderList

      public List<? extends GroundingSupportOrBuilder> getGroundingSupportsOrBuilderList()
       Optional. List of grounding support.
       
      repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getGroundingSupportsOrBuilderList in interface GroundingMetadataOrBuilder
    • addGroundingSupportsBuilder

      public GroundingSupport.Builder addGroundingSupportsBuilder()
       Optional. List of grounding support.
       
      repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
    • addGroundingSupportsBuilder

      public GroundingSupport.Builder addGroundingSupportsBuilder(int index)
       Optional. List of grounding support.
       
      repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
    • getGroundingSupportsBuilderList

      public List<GroundingSupport.Builder> getGroundingSupportsBuilderList()
       Optional. List of grounding support.
       
      repeated .google.cloud.aiplatform.v1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL];
    • hasRetrievalMetadata

      public boolean hasRetrievalMetadata()
       Optional. Output only. Retrieval metadata.
       
      optional .google.cloud.aiplatform.v1.RetrievalMetadata retrieval_metadata = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasRetrievalMetadata in interface GroundingMetadataOrBuilder
      Returns:
      Whether the retrievalMetadata field is set.
    • getRetrievalMetadata

      public RetrievalMetadata getRetrievalMetadata()
       Optional. Output only. Retrieval metadata.
       
      optional .google.cloud.aiplatform.v1.RetrievalMetadata retrieval_metadata = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRetrievalMetadata in interface GroundingMetadataOrBuilder
      Returns:
      The retrievalMetadata.
    • setRetrievalMetadata

      public GroundingMetadata.Builder setRetrievalMetadata(RetrievalMetadata value)
       Optional. Output only. Retrieval metadata.
       
      optional .google.cloud.aiplatform.v1.RetrievalMetadata retrieval_metadata = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
    • setRetrievalMetadata

      public GroundingMetadata.Builder setRetrievalMetadata(RetrievalMetadata.Builder builderForValue)
       Optional. Output only. Retrieval metadata.
       
      optional .google.cloud.aiplatform.v1.RetrievalMetadata retrieval_metadata = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeRetrievalMetadata

      public GroundingMetadata.Builder mergeRetrievalMetadata(RetrievalMetadata value)
       Optional. Output only. Retrieval metadata.
       
      optional .google.cloud.aiplatform.v1.RetrievalMetadata retrieval_metadata = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
    • clearRetrievalMetadata

      public GroundingMetadata.Builder clearRetrievalMetadata()
       Optional. Output only. Retrieval metadata.
       
      optional .google.cloud.aiplatform.v1.RetrievalMetadata retrieval_metadata = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
    • getRetrievalMetadataBuilder

      public RetrievalMetadata.Builder getRetrievalMetadataBuilder()
       Optional. Output only. Retrieval metadata.
       
      optional .google.cloud.aiplatform.v1.RetrievalMetadata retrieval_metadata = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
    • getRetrievalMetadataOrBuilder

      public RetrievalMetadataOrBuilder getRetrievalMetadataOrBuilder()
       Optional. Output only. Retrieval metadata.
       
      optional .google.cloud.aiplatform.v1.RetrievalMetadata retrieval_metadata = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRetrievalMetadataOrBuilder in interface GroundingMetadataOrBuilder
    • hasGoogleMapsWidgetContextToken

      public boolean hasGoogleMapsWidgetContextToken()
       Optional. Output only. Resource name of the Google Maps widget context
       token to be used with the PlacesContextElement widget to render contextual
       data. This is populated only for Google Maps grounding.
       
      optional string google_maps_widget_context_token = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasGoogleMapsWidgetContextToken in interface GroundingMetadataOrBuilder
      Returns:
      Whether the googleMapsWidgetContextToken field is set.
    • getGoogleMapsWidgetContextToken

      public String getGoogleMapsWidgetContextToken()
       Optional. Output only. Resource name of the Google Maps widget context
       token to be used with the PlacesContextElement widget to render contextual
       data. This is populated only for Google Maps grounding.
       
      optional string google_maps_widget_context_token = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getGoogleMapsWidgetContextToken in interface GroundingMetadataOrBuilder
      Returns:
      The googleMapsWidgetContextToken.
    • getGoogleMapsWidgetContextTokenBytes

      public com.google.protobuf.ByteString getGoogleMapsWidgetContextTokenBytes()
       Optional. Output only. Resource name of the Google Maps widget context
       token to be used with the PlacesContextElement widget to render contextual
       data. This is populated only for Google Maps grounding.
       
      optional string google_maps_widget_context_token = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getGoogleMapsWidgetContextTokenBytes in interface GroundingMetadataOrBuilder
      Returns:
      The bytes for googleMapsWidgetContextToken.
    • setGoogleMapsWidgetContextToken

      public GroundingMetadata.Builder setGoogleMapsWidgetContextToken(String value)
       Optional. Output only. Resource name of the Google Maps widget context
       token to be used with the PlacesContextElement widget to render contextual
       data. This is populated only for Google Maps grounding.
       
      optional string google_maps_widget_context_token = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The googleMapsWidgetContextToken to set.
      Returns:
      This builder for chaining.
    • clearGoogleMapsWidgetContextToken

      public GroundingMetadata.Builder clearGoogleMapsWidgetContextToken()
       Optional. Output only. Resource name of the Google Maps widget context
       token to be used with the PlacesContextElement widget to render contextual
       data. This is populated only for Google Maps grounding.
       
      optional string google_maps_widget_context_token = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setGoogleMapsWidgetContextTokenBytes

      public GroundingMetadata.Builder setGoogleMapsWidgetContextTokenBytes(com.google.protobuf.ByteString value)
       Optional. Output only. Resource name of the Google Maps widget context
       token to be used with the PlacesContextElement widget to render contextual
       data. This is populated only for Google Maps grounding.
       
      optional string google_maps_widget_context_token = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for googleMapsWidgetContextToken to set.
      Returns:
      This builder for chaining.
    • getSourceFlaggingUrisList

      public List<GroundingMetadata.SourceFlaggingUri> getSourceFlaggingUrisList()
       List of source flagging uris. This is currently populated only for Google
       Maps grounding.
       
      repeated .google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
      Specified by:
      getSourceFlaggingUrisList in interface GroundingMetadataOrBuilder
    • getSourceFlaggingUrisCount

      public int getSourceFlaggingUrisCount()
       List of source flagging uris. This is currently populated only for Google
       Maps grounding.
       
      repeated .google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
      Specified by:
      getSourceFlaggingUrisCount in interface GroundingMetadataOrBuilder
    • getSourceFlaggingUris

      public GroundingMetadata.SourceFlaggingUri getSourceFlaggingUris(int index)
       List of source flagging uris. This is currently populated only for Google
       Maps grounding.
       
      repeated .google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
      Specified by:
      getSourceFlaggingUris in interface GroundingMetadataOrBuilder
    • setSourceFlaggingUris

      public GroundingMetadata.Builder setSourceFlaggingUris(int index, GroundingMetadata.SourceFlaggingUri value)
       List of source flagging uris. This is currently populated only for Google
       Maps grounding.
       
      repeated .google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
    • setSourceFlaggingUris

      public GroundingMetadata.Builder setSourceFlaggingUris(int index, GroundingMetadata.SourceFlaggingUri.Builder builderForValue)
       List of source flagging uris. This is currently populated only for Google
       Maps grounding.
       
      repeated .google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
    • addSourceFlaggingUris

      public GroundingMetadata.Builder addSourceFlaggingUris(GroundingMetadata.SourceFlaggingUri value)
       List of source flagging uris. This is currently populated only for Google
       Maps grounding.
       
      repeated .google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
    • addSourceFlaggingUris

      public GroundingMetadata.Builder addSourceFlaggingUris(int index, GroundingMetadata.SourceFlaggingUri value)
       List of source flagging uris. This is currently populated only for Google
       Maps grounding.
       
      repeated .google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
    • addSourceFlaggingUris

      public GroundingMetadata.Builder addSourceFlaggingUris(GroundingMetadata.SourceFlaggingUri.Builder builderForValue)
       List of source flagging uris. This is currently populated only for Google
       Maps grounding.
       
      repeated .google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
    • addSourceFlaggingUris

      public GroundingMetadata.Builder addSourceFlaggingUris(int index, GroundingMetadata.SourceFlaggingUri.Builder builderForValue)
       List of source flagging uris. This is currently populated only for Google
       Maps grounding.
       
      repeated .google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
    • addAllSourceFlaggingUris

      public GroundingMetadata.Builder addAllSourceFlaggingUris(Iterable<? extends GroundingMetadata.SourceFlaggingUri> values)
       List of source flagging uris. This is currently populated only for Google
       Maps grounding.
       
      repeated .google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
    • clearSourceFlaggingUris

      public GroundingMetadata.Builder clearSourceFlaggingUris()
       List of source flagging uris. This is currently populated only for Google
       Maps grounding.
       
      repeated .google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
    • removeSourceFlaggingUris

      public GroundingMetadata.Builder removeSourceFlaggingUris(int index)
       List of source flagging uris. This is currently populated only for Google
       Maps grounding.
       
      repeated .google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
    • getSourceFlaggingUrisBuilder

      public GroundingMetadata.SourceFlaggingUri.Builder getSourceFlaggingUrisBuilder(int index)
       List of source flagging uris. This is currently populated only for Google
       Maps grounding.
       
      repeated .google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
    • getSourceFlaggingUrisOrBuilder

      public GroundingMetadata.SourceFlaggingUriOrBuilder getSourceFlaggingUrisOrBuilder(int index)
       List of source flagging uris. This is currently populated only for Google
       Maps grounding.
       
      repeated .google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
      Specified by:
      getSourceFlaggingUrisOrBuilder in interface GroundingMetadataOrBuilder
    • getSourceFlaggingUrisOrBuilderList

      public List<? extends GroundingMetadata.SourceFlaggingUriOrBuilder> getSourceFlaggingUrisOrBuilderList()
       List of source flagging uris. This is currently populated only for Google
       Maps grounding.
       
      repeated .google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
      Specified by:
      getSourceFlaggingUrisOrBuilderList in interface GroundingMetadataOrBuilder
    • addSourceFlaggingUrisBuilder

      public GroundingMetadata.SourceFlaggingUri.Builder addSourceFlaggingUrisBuilder()
       List of source flagging uris. This is currently populated only for Google
       Maps grounding.
       
      repeated .google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
    • addSourceFlaggingUrisBuilder

      public GroundingMetadata.SourceFlaggingUri.Builder addSourceFlaggingUrisBuilder(int index)
       List of source flagging uris. This is currently populated only for Google
       Maps grounding.
       
      repeated .google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
    • getSourceFlaggingUrisBuilderList

      public List<GroundingMetadata.SourceFlaggingUri.Builder> getSourceFlaggingUrisBuilderList()
       List of source flagging uris. This is currently populated only for Google
       Maps grounding.
       
      repeated .google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;