Class SearchResponse.Summary.CitationSource.Builder

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

public static final class SearchResponse.Summary.CitationSource.Builder extends com.google.protobuf.GeneratedMessage.Builder<SearchResponse.Summary.CitationSource.Builder> implements SearchResponse.Summary.CitationSourceOrBuilder
 Citation source.
 
Protobuf type google.cloud.discoveryengine.v1beta.SearchResponse.Summary.CitationSource
  • 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<SearchResponse.Summary.CitationSource.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<SearchResponse.Summary.CitationSource.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<SearchResponse.Summary.CitationSource.Builder>
    • getDefaultInstanceForType

      public SearchResponse.Summary.CitationSource 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

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

      public SearchResponse.Summary.CitationSource.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<SearchResponse.Summary.CitationSource.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<SearchResponse.Summary.CitationSource.Builder>
    • mergeFrom

      public SearchResponse.Summary.CitationSource.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<SearchResponse.Summary.CitationSource.Builder>
      Throws:
      IOException
    • getReferenceIndex

      public long getReferenceIndex()
       Document reference index from SummaryWithMetadata.references.
       It is 0-indexed and the value will be zero if the reference_index is
       not set explicitly.
       
      int64 reference_index = 4;
      Specified by:
      getReferenceIndex in interface SearchResponse.Summary.CitationSourceOrBuilder
      Returns:
      The referenceIndex.
    • setReferenceIndex

      public SearchResponse.Summary.CitationSource.Builder setReferenceIndex(long value)
       Document reference index from SummaryWithMetadata.references.
       It is 0-indexed and the value will be zero if the reference_index is
       not set explicitly.
       
      int64 reference_index = 4;
      Parameters:
      value - The referenceIndex to set.
      Returns:
      This builder for chaining.
    • clearReferenceIndex

      public SearchResponse.Summary.CitationSource.Builder clearReferenceIndex()
       Document reference index from SummaryWithMetadata.references.
       It is 0-indexed and the value will be zero if the reference_index is
       not set explicitly.
       
      int64 reference_index = 4;
      Returns:
      This builder for chaining.