Class SearchResponse.Summary.Reference

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Reference
All Implemented Interfaces:
SearchResponse.Summary.ReferenceOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
SearchResponse.Summary

public static final class SearchResponse.Summary.Reference extends com.google.protobuf.GeneratedMessage implements SearchResponse.Summary.ReferenceOrBuilder
 Document reference.
 
Protobuf type google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Reference
See Also:
  • Field Details

  • 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
    • getTitle

      public String getTitle()
       Title of the document.
       
      string title = 1;
      Specified by:
      getTitle in interface SearchResponse.Summary.ReferenceOrBuilder
      Returns:
      The title.
    • getTitleBytes

      public com.google.protobuf.ByteString getTitleBytes()
       Title of the document.
       
      string title = 1;
      Specified by:
      getTitleBytes in interface SearchResponse.Summary.ReferenceOrBuilder
      Returns:
      The bytes for title.
    • getDocument

      public String getDocument()
       Required.
       [Document.name][google.cloud.discoveryengine.v1beta.Document.name] of
       the document. Full resource name of the referenced document, in the
       format
       `projects/*/locations/*/collections/*/dataStores/*/branches/*/documents/*`.
       
      string document = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getDocument in interface SearchResponse.Summary.ReferenceOrBuilder
      Returns:
      The document.
    • getDocumentBytes

      public com.google.protobuf.ByteString getDocumentBytes()
       Required.
       [Document.name][google.cloud.discoveryengine.v1beta.Document.name] of
       the document. Full resource name of the referenced document, in the
       format
       `projects/*/locations/*/collections/*/dataStores/*/branches/*/documents/*`.
       
      string document = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getDocumentBytes in interface SearchResponse.Summary.ReferenceOrBuilder
      Returns:
      The bytes for document.
    • getUri

      public String getUri()
       Cloud Storage or HTTP uri for the document.
       
      string uri = 3;
      Specified by:
      getUri in interface SearchResponse.Summary.ReferenceOrBuilder
      Returns:
      The uri.
    • getUriBytes

      public com.google.protobuf.ByteString getUriBytes()
       Cloud Storage or HTTP uri for the document.
       
      string uri = 3;
      Specified by:
      getUriBytes in interface SearchResponse.Summary.ReferenceOrBuilder
      Returns:
      The bytes for uri.
    • getChunkContentsList

      public List<SearchResponse.Summary.Reference.ChunkContent> getChunkContentsList()
       List of cited chunk contents derived from document content.
       
      repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Reference.ChunkContent chunk_contents = 4;
      Specified by:
      getChunkContentsList in interface SearchResponse.Summary.ReferenceOrBuilder
    • getChunkContentsOrBuilderList

      public List<? extends SearchResponse.Summary.Reference.ChunkContentOrBuilder> getChunkContentsOrBuilderList()
       List of cited chunk contents derived from document content.
       
      repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Reference.ChunkContent chunk_contents = 4;
      Specified by:
      getChunkContentsOrBuilderList in interface SearchResponse.Summary.ReferenceOrBuilder
    • getChunkContentsCount

      public int getChunkContentsCount()
       List of cited chunk contents derived from document content.
       
      repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Reference.ChunkContent chunk_contents = 4;
      Specified by:
      getChunkContentsCount in interface SearchResponse.Summary.ReferenceOrBuilder
    • getChunkContents

      public SearchResponse.Summary.Reference.ChunkContent getChunkContents(int index)
       List of cited chunk contents derived from document content.
       
      repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Reference.ChunkContent chunk_contents = 4;
      Specified by:
      getChunkContents in interface SearchResponse.Summary.ReferenceOrBuilder
    • getChunkContentsOrBuilder

      public SearchResponse.Summary.Reference.ChunkContentOrBuilder getChunkContentsOrBuilder(int index)
       List of cited chunk contents derived from document content.
       
      repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Reference.ChunkContent chunk_contents = 4;
      Specified by:
      getChunkContentsOrBuilder in interface SearchResponse.Summary.ReferenceOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static SearchResponse.Summary.Reference parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SearchResponse.Summary.Reference parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SearchResponse.Summary.Reference parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SearchResponse.Summary.Reference parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SearchResponse.Summary.Reference parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SearchResponse.Summary.Reference parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SearchResponse.Summary.Reference parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SearchResponse.Summary.Reference parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static SearchResponse.Summary.Reference parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static SearchResponse.Summary.Reference parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SearchResponse.Summary.Reference parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SearchResponse.Summary.Reference parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public SearchResponse.Summary.Reference.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static SearchResponse.Summary.Reference.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected SearchResponse.Summary.Reference.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static SearchResponse.Summary.Reference getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<SearchResponse.Summary.Reference> parser()
    • getParserForType

      public com.google.protobuf.Parser<SearchResponse.Summary.Reference> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public SearchResponse.Summary.Reference getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder