Class GroundingChunk.Maps.Builder

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

public static final class GroundingChunk.Maps.Builder extends com.google.protobuf.GeneratedMessage.Builder<GroundingChunk.Maps.Builder> implements GroundingChunk.MapsOrBuilder
 Chunk from Google Maps.
 
Protobuf type google.cloud.aiplatform.v1.GroundingChunk.Maps
  • 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.Maps.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.Maps.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.Maps.Builder>
    • getDefaultInstanceForType

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

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

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

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

    • isInitialized

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

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

      public boolean hasUri()
       URI reference of the chunk.
       
      optional string uri = 1;
      Specified by:
      hasUri in interface GroundingChunk.MapsOrBuilder
      Returns:
      Whether the uri field is set.
    • getUri

      public String getUri()
       URI reference of the chunk.
       
      optional string uri = 1;
      Specified by:
      getUri in interface GroundingChunk.MapsOrBuilder
      Returns:
      The uri.
    • getUriBytes

      public com.google.protobuf.ByteString getUriBytes()
       URI reference of the chunk.
       
      optional string uri = 1;
      Specified by:
      getUriBytes in interface GroundingChunk.MapsOrBuilder
      Returns:
      The bytes for uri.
    • setUri

      public GroundingChunk.Maps.Builder setUri(String value)
       URI reference of the chunk.
       
      optional string uri = 1;
      Parameters:
      value - The uri to set.
      Returns:
      This builder for chaining.
    • clearUri

      public GroundingChunk.Maps.Builder clearUri()
       URI reference of the chunk.
       
      optional string uri = 1;
      Returns:
      This builder for chaining.
    • setUriBytes

      public GroundingChunk.Maps.Builder setUriBytes(com.google.protobuf.ByteString value)
       URI reference of the chunk.
       
      optional string uri = 1;
      Parameters:
      value - The bytes for uri to set.
      Returns:
      This builder for chaining.
    • hasTitle

      public boolean hasTitle()
       Title of the chunk.
       
      optional string title = 2;
      Specified by:
      hasTitle in interface GroundingChunk.MapsOrBuilder
      Returns:
      Whether the title field is set.
    • getTitle

      public String getTitle()
       Title of the chunk.
       
      optional string title = 2;
      Specified by:
      getTitle in interface GroundingChunk.MapsOrBuilder
      Returns:
      The title.
    • getTitleBytes

      public com.google.protobuf.ByteString getTitleBytes()
       Title of the chunk.
       
      optional string title = 2;
      Specified by:
      getTitleBytes in interface GroundingChunk.MapsOrBuilder
      Returns:
      The bytes for title.
    • setTitle

      public GroundingChunk.Maps.Builder setTitle(String value)
       Title of the chunk.
       
      optional string title = 2;
      Parameters:
      value - The title to set.
      Returns:
      This builder for chaining.
    • clearTitle

      public GroundingChunk.Maps.Builder clearTitle()
       Title of the chunk.
       
      optional string title = 2;
      Returns:
      This builder for chaining.
    • setTitleBytes

      public GroundingChunk.Maps.Builder setTitleBytes(com.google.protobuf.ByteString value)
       Title of the chunk.
       
      optional string title = 2;
      Parameters:
      value - The bytes for title to set.
      Returns:
      This builder for chaining.
    • hasText

      public boolean hasText()
       Text of the chunk.
       
      optional string text = 3;
      Specified by:
      hasText in interface GroundingChunk.MapsOrBuilder
      Returns:
      Whether the text field is set.
    • getText

      public String getText()
       Text of the chunk.
       
      optional string text = 3;
      Specified by:
      getText in interface GroundingChunk.MapsOrBuilder
      Returns:
      The text.
    • getTextBytes

      public com.google.protobuf.ByteString getTextBytes()
       Text of the chunk.
       
      optional string text = 3;
      Specified by:
      getTextBytes in interface GroundingChunk.MapsOrBuilder
      Returns:
      The bytes for text.
    • setText

      public GroundingChunk.Maps.Builder setText(String value)
       Text of the chunk.
       
      optional string text = 3;
      Parameters:
      value - The text to set.
      Returns:
      This builder for chaining.
    • clearText

      public GroundingChunk.Maps.Builder clearText()
       Text of the chunk.
       
      optional string text = 3;
      Returns:
      This builder for chaining.
    • setTextBytes

      public GroundingChunk.Maps.Builder setTextBytes(com.google.protobuf.ByteString value)
       Text of the chunk.
       
      optional string text = 3;
      Parameters:
      value - The bytes for text to set.
      Returns:
      This builder for chaining.
    • hasPlaceId

      public boolean hasPlaceId()
       This Place's resource name, in `places/{place_id}` format.  Can be used
       to look up the Place.
       
      optional string place_id = 4;
      Specified by:
      hasPlaceId in interface GroundingChunk.MapsOrBuilder
      Returns:
      Whether the placeId field is set.
    • getPlaceId

      public String getPlaceId()
       This Place's resource name, in `places/{place_id}` format.  Can be used
       to look up the Place.
       
      optional string place_id = 4;
      Specified by:
      getPlaceId in interface GroundingChunk.MapsOrBuilder
      Returns:
      The placeId.
    • getPlaceIdBytes

      public com.google.protobuf.ByteString getPlaceIdBytes()
       This Place's resource name, in `places/{place_id}` format.  Can be used
       to look up the Place.
       
      optional string place_id = 4;
      Specified by:
      getPlaceIdBytes in interface GroundingChunk.MapsOrBuilder
      Returns:
      The bytes for placeId.
    • setPlaceId

      public GroundingChunk.Maps.Builder setPlaceId(String value)
       This Place's resource name, in `places/{place_id}` format.  Can be used
       to look up the Place.
       
      optional string place_id = 4;
      Parameters:
      value - The placeId to set.
      Returns:
      This builder for chaining.
    • clearPlaceId

      public GroundingChunk.Maps.Builder clearPlaceId()
       This Place's resource name, in `places/{place_id}` format.  Can be used
       to look up the Place.
       
      optional string place_id = 4;
      Returns:
      This builder for chaining.
    • setPlaceIdBytes

      public GroundingChunk.Maps.Builder setPlaceIdBytes(com.google.protobuf.ByteString value)
       This Place's resource name, in `places/{place_id}` format.  Can be used
       to look up the Place.
       
      optional string place_id = 4;
      Parameters:
      value - The bytes for placeId to set.
      Returns:
      This builder for chaining.
    • hasPlaceAnswerSources

      public boolean hasPlaceAnswerSources()
       Sources used to generate the place answer.
       This includes review snippets and photos that were used to generate the
       answer, as well as uris to flag content.
       
      .google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources place_answer_sources = 5;
      Specified by:
      hasPlaceAnswerSources in interface GroundingChunk.MapsOrBuilder
      Returns:
      Whether the placeAnswerSources field is set.
    • getPlaceAnswerSources

      public GroundingChunk.Maps.PlaceAnswerSources getPlaceAnswerSources()
       Sources used to generate the place answer.
       This includes review snippets and photos that were used to generate the
       answer, as well as uris to flag content.
       
      .google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources place_answer_sources = 5;
      Specified by:
      getPlaceAnswerSources in interface GroundingChunk.MapsOrBuilder
      Returns:
      The placeAnswerSources.
    • setPlaceAnswerSources

       Sources used to generate the place answer.
       This includes review snippets and photos that were used to generate the
       answer, as well as uris to flag content.
       
      .google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources place_answer_sources = 5;
    • setPlaceAnswerSources

      public GroundingChunk.Maps.Builder setPlaceAnswerSources(GroundingChunk.Maps.PlaceAnswerSources.Builder builderForValue)
       Sources used to generate the place answer.
       This includes review snippets and photos that were used to generate the
       answer, as well as uris to flag content.
       
      .google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources place_answer_sources = 5;
    • mergePlaceAnswerSources

       Sources used to generate the place answer.
       This includes review snippets and photos that were used to generate the
       answer, as well as uris to flag content.
       
      .google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources place_answer_sources = 5;
    • clearPlaceAnswerSources

      public GroundingChunk.Maps.Builder clearPlaceAnswerSources()
       Sources used to generate the place answer.
       This includes review snippets and photos that were used to generate the
       answer, as well as uris to flag content.
       
      .google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources place_answer_sources = 5;
    • getPlaceAnswerSourcesBuilder

      public GroundingChunk.Maps.PlaceAnswerSources.Builder getPlaceAnswerSourcesBuilder()
       Sources used to generate the place answer.
       This includes review snippets and photos that were used to generate the
       answer, as well as uris to flag content.
       
      .google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources place_answer_sources = 5;
    • getPlaceAnswerSourcesOrBuilder

      public GroundingChunk.Maps.PlaceAnswerSourcesOrBuilder getPlaceAnswerSourcesOrBuilder()
       Sources used to generate the place answer.
       This includes review snippets and photos that were used to generate the
       answer, as well as uris to flag content.
       
      .google.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources place_answer_sources = 5;
      Specified by:
      getPlaceAnswerSourcesOrBuilder in interface GroundingChunk.MapsOrBuilder