Class GroundingMetadata.SourceFlaggingUri.Builder

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

public static final class GroundingMetadata.SourceFlaggingUri.Builder extends com.google.protobuf.GeneratedMessage.Builder<GroundingMetadata.SourceFlaggingUri.Builder> implements GroundingMetadata.SourceFlaggingUriOrBuilder
 Source content flagging uri for a place or review. This is currently
 populated only for Google Maps grounding.
 
Protobuf type google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri
  • 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.SourceFlaggingUri.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.SourceFlaggingUri.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.SourceFlaggingUri.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

      public GroundingMetadata.SourceFlaggingUri.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.SourceFlaggingUri.Builder>
      Throws:
      IOException
    • getSourceId

      public String getSourceId()
       Id of the place or review.
       
      string source_id = 1;
      Specified by:
      getSourceId in interface GroundingMetadata.SourceFlaggingUriOrBuilder
      Returns:
      The sourceId.
    • getSourceIdBytes

      public com.google.protobuf.ByteString getSourceIdBytes()
       Id of the place or review.
       
      string source_id = 1;
      Specified by:
      getSourceIdBytes in interface GroundingMetadata.SourceFlaggingUriOrBuilder
      Returns:
      The bytes for sourceId.
    • setSourceId

       Id of the place or review.
       
      string source_id = 1;
      Parameters:
      value - The sourceId to set.
      Returns:
      This builder for chaining.
    • clearSourceId

       Id of the place or review.
       
      string source_id = 1;
      Returns:
      This builder for chaining.
    • setSourceIdBytes

      public GroundingMetadata.SourceFlaggingUri.Builder setSourceIdBytes(com.google.protobuf.ByteString value)
       Id of the place or review.
       
      string source_id = 1;
      Parameters:
      value - The bytes for sourceId to set.
      Returns:
      This builder for chaining.
    • getFlagContentUri

      public String getFlagContentUri()
       A link where users can flag a problem with the source (place or review).
       (-- The link is generated by Google and it does not contain
       information from the user query. It may contain information of the
       content it is flagging, which can be used to identify places. --)
       
      string flag_content_uri = 2;
      Specified by:
      getFlagContentUri in interface GroundingMetadata.SourceFlaggingUriOrBuilder
      Returns:
      The flagContentUri.
    • getFlagContentUriBytes

      public com.google.protobuf.ByteString getFlagContentUriBytes()
       A link where users can flag a problem with the source (place or review).
       (-- The link is generated by Google and it does not contain
       information from the user query. It may contain information of the
       content it is flagging, which can be used to identify places. --)
       
      string flag_content_uri = 2;
      Specified by:
      getFlagContentUriBytes in interface GroundingMetadata.SourceFlaggingUriOrBuilder
      Returns:
      The bytes for flagContentUri.
    • setFlagContentUri

      public GroundingMetadata.SourceFlaggingUri.Builder setFlagContentUri(String value)
       A link where users can flag a problem with the source (place or review).
       (-- The link is generated by Google and it does not contain
       information from the user query. It may contain information of the
       content it is flagging, which can be used to identify places. --)
       
      string flag_content_uri = 2;
      Parameters:
      value - The flagContentUri to set.
      Returns:
      This builder for chaining.
    • clearFlagContentUri

      public GroundingMetadata.SourceFlaggingUri.Builder clearFlagContentUri()
       A link where users can flag a problem with the source (place or review).
       (-- The link is generated by Google and it does not contain
       information from the user query. It may contain information of the
       content it is flagging, which can be used to identify places. --)
       
      string flag_content_uri = 2;
      Returns:
      This builder for chaining.
    • setFlagContentUriBytes

      public GroundingMetadata.SourceFlaggingUri.Builder setFlagContentUriBytes(com.google.protobuf.ByteString value)
       A link where users can flag a problem with the source (place or review).
       (-- The link is generated by Google and it does not contain
       information from the user query. It may contain information of the
       content it is flagging, which can be used to identify places. --)
       
      string flag_content_uri = 2;
      Parameters:
      value - The bytes for flagContentUri to set.
      Returns:
      This builder for chaining.