Class Citation.Builder

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

public static final class Citation.Builder extends com.google.protobuf.GeneratedMessage.Builder<Citation.Builder> implements CitationOrBuilder
 Source attributions for content.
 
Protobuf type google.cloud.aiplatform.v1.Citation
  • 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<Citation.Builder>
    • clear

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

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

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

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

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

      public Citation.Builder mergeFrom(Citation other)
    • isInitialized

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

      public Citation.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<Citation.Builder>
      Throws:
      IOException
    • getStartIndex

      public int getStartIndex()
       Output only. Start index into the content.
       
      int32 start_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStartIndex in interface CitationOrBuilder
      Returns:
      The startIndex.
    • setStartIndex

      public Citation.Builder setStartIndex(int value)
       Output only. Start index into the content.
       
      int32 start_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The startIndex to set.
      Returns:
      This builder for chaining.
    • clearStartIndex

      public Citation.Builder clearStartIndex()
       Output only. Start index into the content.
       
      int32 start_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getEndIndex

      public int getEndIndex()
       Output only. End index into the content.
       
      int32 end_index = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEndIndex in interface CitationOrBuilder
      Returns:
      The endIndex.
    • setEndIndex

      public Citation.Builder setEndIndex(int value)
       Output only. End index into the content.
       
      int32 end_index = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The endIndex to set.
      Returns:
      This builder for chaining.
    • clearEndIndex

      public Citation.Builder clearEndIndex()
       Output only. End index into the content.
       
      int32 end_index = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getUri

      public String getUri()
       Output only. Url reference of the attribution.
       
      string uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUri in interface CitationOrBuilder
      Returns:
      The uri.
    • getUriBytes

      public com.google.protobuf.ByteString getUriBytes()
       Output only. Url reference of the attribution.
       
      string uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUriBytes in interface CitationOrBuilder
      Returns:
      The bytes for uri.
    • setUri

      public Citation.Builder setUri(String value)
       Output only. Url reference of the attribution.
       
      string uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The uri to set.
      Returns:
      This builder for chaining.
    • clearUri

      public Citation.Builder clearUri()
       Output only. Url reference of the attribution.
       
      string uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setUriBytes

      public Citation.Builder setUriBytes(com.google.protobuf.ByteString value)
       Output only. Url reference of the attribution.
       
      string uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for uri to set.
      Returns:
      This builder for chaining.
    • getTitle

      public String getTitle()
       Output only. Title of the attribution.
       
      string title = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTitle in interface CitationOrBuilder
      Returns:
      The title.
    • getTitleBytes

      public com.google.protobuf.ByteString getTitleBytes()
       Output only. Title of the attribution.
       
      string title = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTitleBytes in interface CitationOrBuilder
      Returns:
      The bytes for title.
    • setTitle

      public Citation.Builder setTitle(String value)
       Output only. Title of the attribution.
       
      string title = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The title to set.
      Returns:
      This builder for chaining.
    • clearTitle

      public Citation.Builder clearTitle()
       Output only. Title of the attribution.
       
      string title = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setTitleBytes

      public Citation.Builder setTitleBytes(com.google.protobuf.ByteString value)
       Output only. Title of the attribution.
       
      string title = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for title to set.
      Returns:
      This builder for chaining.
    • getLicense

      public String getLicense()
       Output only. License of the attribution.
       
      string license = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLicense in interface CitationOrBuilder
      Returns:
      The license.
    • getLicenseBytes

      public com.google.protobuf.ByteString getLicenseBytes()
       Output only. License of the attribution.
       
      string license = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLicenseBytes in interface CitationOrBuilder
      Returns:
      The bytes for license.
    • setLicense

      public Citation.Builder setLicense(String value)
       Output only. License of the attribution.
       
      string license = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The license to set.
      Returns:
      This builder for chaining.
    • clearLicense

      public Citation.Builder clearLicense()
       Output only. License of the attribution.
       
      string license = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setLicenseBytes

      public Citation.Builder setLicenseBytes(com.google.protobuf.ByteString value)
       Output only. License of the attribution.
       
      string license = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for license to set.
      Returns:
      This builder for chaining.
    • hasPublicationDate

      public boolean hasPublicationDate()
       Output only. Publication date of the attribution.
       
      .google.type.Date publication_date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasPublicationDate in interface CitationOrBuilder
      Returns:
      Whether the publicationDate field is set.
    • getPublicationDate

      public Date getPublicationDate()
       Output only. Publication date of the attribution.
       
      .google.type.Date publication_date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPublicationDate in interface CitationOrBuilder
      Returns:
      The publicationDate.
    • setPublicationDate

      public Citation.Builder setPublicationDate(Date value)
       Output only. Publication date of the attribution.
       
      .google.type.Date publication_date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setPublicationDate

      public Citation.Builder setPublicationDate(Date.Builder builderForValue)
       Output only. Publication date of the attribution.
       
      .google.type.Date publication_date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergePublicationDate

      public Citation.Builder mergePublicationDate(Date value)
       Output only. Publication date of the attribution.
       
      .google.type.Date publication_date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearPublicationDate

      public Citation.Builder clearPublicationDate()
       Output only. Publication date of the attribution.
       
      .google.type.Date publication_date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getPublicationDateBuilder

      public Date.Builder getPublicationDateBuilder()
       Output only. Publication date of the attribution.
       
      .google.type.Date publication_date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getPublicationDateOrBuilder

      public DateOrBuilder getPublicationDateOrBuilder()
       Output only. Publication date of the attribution.
       
      .google.type.Date publication_date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPublicationDateOrBuilder in interface CitationOrBuilder