Class Answer.Citation.Builder

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

public static final class Answer.Citation.Builder extends com.google.protobuf.GeneratedMessage.Builder<Answer.Citation.Builder> implements Answer.CitationOrBuilder
 Citation info for a segment.
 
Protobuf type google.cloud.discoveryengine.v1beta.Answer.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<Answer.Citation.Builder>
    • clear

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

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

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

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

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

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

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

      public long getStartIndex()
       Index indicates the start of the segment, measured in bytes (UTF-8
       unicode).
       
      int64 start_index = 1;
      Specified by:
      getStartIndex in interface Answer.CitationOrBuilder
      Returns:
      The startIndex.
    • setStartIndex

      public Answer.Citation.Builder setStartIndex(long value)
       Index indicates the start of the segment, measured in bytes (UTF-8
       unicode).
       
      int64 start_index = 1;
      Parameters:
      value - The startIndex to set.
      Returns:
      This builder for chaining.
    • clearStartIndex

      public Answer.Citation.Builder clearStartIndex()
       Index indicates the start of the segment, measured in bytes (UTF-8
       unicode).
       
      int64 start_index = 1;
      Returns:
      This builder for chaining.
    • getEndIndex

      public long getEndIndex()
       End of the attributed segment, exclusive.
       
      int64 end_index = 2;
      Specified by:
      getEndIndex in interface Answer.CitationOrBuilder
      Returns:
      The endIndex.
    • setEndIndex

      public Answer.Citation.Builder setEndIndex(long value)
       End of the attributed segment, exclusive.
       
      int64 end_index = 2;
      Parameters:
      value - The endIndex to set.
      Returns:
      This builder for chaining.
    • clearEndIndex

      public Answer.Citation.Builder clearEndIndex()
       End of the attributed segment, exclusive.
       
      int64 end_index = 2;
      Returns:
      This builder for chaining.
    • getSourcesList

      public List<Answer.CitationSource> getSourcesList()
       Citation sources for the attributed segment.
       
      repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 3;
      Specified by:
      getSourcesList in interface Answer.CitationOrBuilder
    • getSourcesCount

      public int getSourcesCount()
       Citation sources for the attributed segment.
       
      repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 3;
      Specified by:
      getSourcesCount in interface Answer.CitationOrBuilder
    • getSources

      public Answer.CitationSource getSources(int index)
       Citation sources for the attributed segment.
       
      repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 3;
      Specified by:
      getSources in interface Answer.CitationOrBuilder
    • setSources

      public Answer.Citation.Builder setSources(int index, Answer.CitationSource value)
       Citation sources for the attributed segment.
       
      repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 3;
    • setSources

      public Answer.Citation.Builder setSources(int index, Answer.CitationSource.Builder builderForValue)
       Citation sources for the attributed segment.
       
      repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 3;
    • addSources

       Citation sources for the attributed segment.
       
      repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 3;
    • addSources

      public Answer.Citation.Builder addSources(int index, Answer.CitationSource value)
       Citation sources for the attributed segment.
       
      repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 3;
    • addSources

      public Answer.Citation.Builder addSources(Answer.CitationSource.Builder builderForValue)
       Citation sources for the attributed segment.
       
      repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 3;
    • addSources

      public Answer.Citation.Builder addSources(int index, Answer.CitationSource.Builder builderForValue)
       Citation sources for the attributed segment.
       
      repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 3;
    • addAllSources

      public Answer.Citation.Builder addAllSources(Iterable<? extends Answer.CitationSource> values)
       Citation sources for the attributed segment.
       
      repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 3;
    • clearSources

      public Answer.Citation.Builder clearSources()
       Citation sources for the attributed segment.
       
      repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 3;
    • removeSources

      public Answer.Citation.Builder removeSources(int index)
       Citation sources for the attributed segment.
       
      repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 3;
    • getSourcesBuilder

      public Answer.CitationSource.Builder getSourcesBuilder(int index)
       Citation sources for the attributed segment.
       
      repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 3;
    • getSourcesOrBuilder

      public Answer.CitationSourceOrBuilder getSourcesOrBuilder(int index)
       Citation sources for the attributed segment.
       
      repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 3;
      Specified by:
      getSourcesOrBuilder in interface Answer.CitationOrBuilder
    • getSourcesOrBuilderList

      public List<? extends Answer.CitationSourceOrBuilder> getSourcesOrBuilderList()
       Citation sources for the attributed segment.
       
      repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 3;
      Specified by:
      getSourcesOrBuilderList in interface Answer.CitationOrBuilder
    • addSourcesBuilder

      public Answer.CitationSource.Builder addSourcesBuilder()
       Citation sources for the attributed segment.
       
      repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 3;
    • addSourcesBuilder

      public Answer.CitationSource.Builder addSourcesBuilder(int index)
       Citation sources for the attributed segment.
       
      repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 3;
    • getSourcesBuilderList

      public List<Answer.CitationSource.Builder> getSourcesBuilderList()
       Citation sources for the attributed segment.
       
      repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 3;