Class GroundingChunk.Maps

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

public static final class GroundingChunk.Maps extends com.google.protobuf.GeneratedMessage implements GroundingChunk.MapsOrBuilder
 Chunk from Google Maps.
 
Protobuf type google.cloud.aiplatform.v1.GroundingChunk.Maps
See Also:
  • Field Details

  • 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
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static GroundingChunk.Maps parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GroundingChunk.Maps parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GroundingChunk.Maps parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GroundingChunk.Maps parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GroundingChunk.Maps parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GroundingChunk.Maps parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static GroundingChunk.Maps parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static GroundingChunk.Maps parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static GroundingChunk.Maps parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static GroundingChunk.Maps parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static GroundingChunk.Maps parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static GroundingChunk.Maps parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static GroundingChunk.Maps.Builder newBuilder()
    • newBuilder

      public static GroundingChunk.Maps.Builder newBuilder(GroundingChunk.Maps prototype)
    • toBuilder

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

      protected GroundingChunk.Maps.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static GroundingChunk.Maps getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<GroundingChunk.Maps> parser()
    • getParserForType

      public com.google.protobuf.Parser<GroundingChunk.Maps> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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