Class GroundingChunk.Builder

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

public static final class GroundingChunk.Builder extends com.google.protobuf.GeneratedMessage.Builder<GroundingChunk.Builder> implements GroundingChunkOrBuilder
 Grounding chunk.
 
Protobuf type google.cloud.aiplatform.v1.GroundingChunk
  • 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<GroundingChunk.Builder>
    • clear

      public GroundingChunk.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<GroundingChunk.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<GroundingChunk.Builder>
    • getDefaultInstanceForType

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

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

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

      public GroundingChunk.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<GroundingChunk.Builder>
    • mergeFrom

      public GroundingChunk.Builder mergeFrom(GroundingChunk other)
    • isInitialized

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

      public GroundingChunk.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<GroundingChunk.Builder>
      Throws:
      IOException
    • getChunkTypeCase

      public GroundingChunk.ChunkTypeCase getChunkTypeCase()
      Specified by:
      getChunkTypeCase in interface GroundingChunkOrBuilder
    • clearChunkType

      public GroundingChunk.Builder clearChunkType()
    • hasWeb

      public boolean hasWeb()
       Grounding chunk from the web.
       
      .google.cloud.aiplatform.v1.GroundingChunk.Web web = 1;
      Specified by:
      hasWeb in interface GroundingChunkOrBuilder
      Returns:
      Whether the web field is set.
    • getWeb

      public GroundingChunk.Web getWeb()
       Grounding chunk from the web.
       
      .google.cloud.aiplatform.v1.GroundingChunk.Web web = 1;
      Specified by:
      getWeb in interface GroundingChunkOrBuilder
      Returns:
      The web.
    • setWeb

       Grounding chunk from the web.
       
      .google.cloud.aiplatform.v1.GroundingChunk.Web web = 1;
    • setWeb

      public GroundingChunk.Builder setWeb(GroundingChunk.Web.Builder builderForValue)
       Grounding chunk from the web.
       
      .google.cloud.aiplatform.v1.GroundingChunk.Web web = 1;
    • mergeWeb

      public GroundingChunk.Builder mergeWeb(GroundingChunk.Web value)
       Grounding chunk from the web.
       
      .google.cloud.aiplatform.v1.GroundingChunk.Web web = 1;
    • clearWeb

      public GroundingChunk.Builder clearWeb()
       Grounding chunk from the web.
       
      .google.cloud.aiplatform.v1.GroundingChunk.Web web = 1;
    • getWebBuilder

      public GroundingChunk.Web.Builder getWebBuilder()
       Grounding chunk from the web.
       
      .google.cloud.aiplatform.v1.GroundingChunk.Web web = 1;
    • getWebOrBuilder

      public GroundingChunk.WebOrBuilder getWebOrBuilder()
       Grounding chunk from the web.
       
      .google.cloud.aiplatform.v1.GroundingChunk.Web web = 1;
      Specified by:
      getWebOrBuilder in interface GroundingChunkOrBuilder
    • hasRetrievedContext

      public boolean hasRetrievedContext()
       Grounding chunk from context retrieved by the retrieval tools.
       
      .google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext retrieved_context = 2;
      Specified by:
      hasRetrievedContext in interface GroundingChunkOrBuilder
      Returns:
      Whether the retrievedContext field is set.
    • getRetrievedContext

      public GroundingChunk.RetrievedContext getRetrievedContext()
       Grounding chunk from context retrieved by the retrieval tools.
       
      .google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext retrieved_context = 2;
      Specified by:
      getRetrievedContext in interface GroundingChunkOrBuilder
      Returns:
      The retrievedContext.
    • setRetrievedContext

      public GroundingChunk.Builder setRetrievedContext(GroundingChunk.RetrievedContext value)
       Grounding chunk from context retrieved by the retrieval tools.
       
      .google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext retrieved_context = 2;
    • setRetrievedContext

      public GroundingChunk.Builder setRetrievedContext(GroundingChunk.RetrievedContext.Builder builderForValue)
       Grounding chunk from context retrieved by the retrieval tools.
       
      .google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext retrieved_context = 2;
    • mergeRetrievedContext

      public GroundingChunk.Builder mergeRetrievedContext(GroundingChunk.RetrievedContext value)
       Grounding chunk from context retrieved by the retrieval tools.
       
      .google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext retrieved_context = 2;
    • clearRetrievedContext

      public GroundingChunk.Builder clearRetrievedContext()
       Grounding chunk from context retrieved by the retrieval tools.
       
      .google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext retrieved_context = 2;
    • getRetrievedContextBuilder

      public GroundingChunk.RetrievedContext.Builder getRetrievedContextBuilder()
       Grounding chunk from context retrieved by the retrieval tools.
       
      .google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext retrieved_context = 2;
    • getRetrievedContextOrBuilder

      public GroundingChunk.RetrievedContextOrBuilder getRetrievedContextOrBuilder()
       Grounding chunk from context retrieved by the retrieval tools.
       
      .google.cloud.aiplatform.v1.GroundingChunk.RetrievedContext retrieved_context = 2;
      Specified by:
      getRetrievedContextOrBuilder in interface GroundingChunkOrBuilder
    • hasMaps

      public boolean hasMaps()
       Grounding chunk from Google Maps.
       
      .google.cloud.aiplatform.v1.GroundingChunk.Maps maps = 3;
      Specified by:
      hasMaps in interface GroundingChunkOrBuilder
      Returns:
      Whether the maps field is set.
    • getMaps

      public GroundingChunk.Maps getMaps()
       Grounding chunk from Google Maps.
       
      .google.cloud.aiplatform.v1.GroundingChunk.Maps maps = 3;
      Specified by:
      getMaps in interface GroundingChunkOrBuilder
      Returns:
      The maps.
    • setMaps

       Grounding chunk from Google Maps.
       
      .google.cloud.aiplatform.v1.GroundingChunk.Maps maps = 3;
    • setMaps

      public GroundingChunk.Builder setMaps(GroundingChunk.Maps.Builder builderForValue)
       Grounding chunk from Google Maps.
       
      .google.cloud.aiplatform.v1.GroundingChunk.Maps maps = 3;
    • mergeMaps

      public GroundingChunk.Builder mergeMaps(GroundingChunk.Maps value)
       Grounding chunk from Google Maps.
       
      .google.cloud.aiplatform.v1.GroundingChunk.Maps maps = 3;
    • clearMaps

      public GroundingChunk.Builder clearMaps()
       Grounding chunk from Google Maps.
       
      .google.cloud.aiplatform.v1.GroundingChunk.Maps maps = 3;
    • getMapsBuilder

      public GroundingChunk.Maps.Builder getMapsBuilder()
       Grounding chunk from Google Maps.
       
      .google.cloud.aiplatform.v1.GroundingChunk.Maps maps = 3;
    • getMapsOrBuilder

      public GroundingChunk.MapsOrBuilder getMapsOrBuilder()
       Grounding chunk from Google Maps.
       
      .google.cloud.aiplatform.v1.GroundingChunk.Maps maps = 3;
      Specified by:
      getMapsOrBuilder in interface GroundingChunkOrBuilder