Class CitationMetadata.Builder

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

public static final class CitationMetadata.Builder extends com.google.protobuf.GeneratedMessage.Builder<CitationMetadata.Builder> implements CitationMetadataOrBuilder
 A collection of source attributions for a piece of content.
 
Protobuf type google.cloud.aiplatform.v1.CitationMetadata
  • 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<CitationMetadata.Builder>
    • clear

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

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

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

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

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

      public CitationMetadata.Builder mergeFrom(CitationMetadata other)
    • isInitialized

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

      public CitationMetadata.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<CitationMetadata.Builder>
      Throws:
      IOException
    • getCitationsList

      public List<Citation> getCitationsList()
       Output only. List of citations.
       
      repeated .google.cloud.aiplatform.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCitationsList in interface CitationMetadataOrBuilder
    • getCitationsCount

      public int getCitationsCount()
       Output only. List of citations.
       
      repeated .google.cloud.aiplatform.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCitationsCount in interface CitationMetadataOrBuilder
    • getCitations

      public Citation getCitations(int index)
       Output only. List of citations.
       
      repeated .google.cloud.aiplatform.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCitations in interface CitationMetadataOrBuilder
    • setCitations

      public CitationMetadata.Builder setCitations(int index, Citation value)
       Output only. List of citations.
       
      repeated .google.cloud.aiplatform.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCitations

      public CitationMetadata.Builder setCitations(int index, Citation.Builder builderForValue)
       Output only. List of citations.
       
      repeated .google.cloud.aiplatform.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addCitations

      public CitationMetadata.Builder addCitations(Citation value)
       Output only. List of citations.
       
      repeated .google.cloud.aiplatform.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addCitations

      public CitationMetadata.Builder addCitations(int index, Citation value)
       Output only. List of citations.
       
      repeated .google.cloud.aiplatform.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addCitations

      public CitationMetadata.Builder addCitations(Citation.Builder builderForValue)
       Output only. List of citations.
       
      repeated .google.cloud.aiplatform.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addCitations

      public CitationMetadata.Builder addCitations(int index, Citation.Builder builderForValue)
       Output only. List of citations.
       
      repeated .google.cloud.aiplatform.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addAllCitations

      public CitationMetadata.Builder addAllCitations(Iterable<? extends Citation> values)
       Output only. List of citations.
       
      repeated .google.cloud.aiplatform.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCitations

      public CitationMetadata.Builder clearCitations()
       Output only. List of citations.
       
      repeated .google.cloud.aiplatform.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • removeCitations

      public CitationMetadata.Builder removeCitations(int index)
       Output only. List of citations.
       
      repeated .google.cloud.aiplatform.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCitationsBuilder

      public Citation.Builder getCitationsBuilder(int index)
       Output only. List of citations.
       
      repeated .google.cloud.aiplatform.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCitationsOrBuilder

      public CitationOrBuilder getCitationsOrBuilder(int index)
       Output only. List of citations.
       
      repeated .google.cloud.aiplatform.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCitationsOrBuilder in interface CitationMetadataOrBuilder
    • getCitationsOrBuilderList

      public List<? extends CitationOrBuilder> getCitationsOrBuilderList()
       Output only. List of citations.
       
      repeated .google.cloud.aiplatform.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCitationsOrBuilderList in interface CitationMetadataOrBuilder
    • addCitationsBuilder

      public Citation.Builder addCitationsBuilder()
       Output only. List of citations.
       
      repeated .google.cloud.aiplatform.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addCitationsBuilder

      public Citation.Builder addCitationsBuilder(int index)
       Output only. List of citations.
       
      repeated .google.cloud.aiplatform.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCitationsBuilderList

      public List<Citation.Builder> getCitationsBuilderList()
       Output only. List of citations.
       
      repeated .google.cloud.aiplatform.v1.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];