Class Answer.Reference.ChunkInfo

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

public static final class Answer.Reference.ChunkInfo extends com.google.protobuf.GeneratedMessage implements Answer.Reference.ChunkInfoOrBuilder
 Chunk information.
 
Protobuf type google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo
See Also:
  • Field Details

    • CHUNK_FIELD_NUMBER

      public static final int CHUNK_FIELD_NUMBER
      See Also:
    • CONTENT_FIELD_NUMBER

      public static final int CONTENT_FIELD_NUMBER
      See Also:
    • RELEVANCE_SCORE_FIELD_NUMBER

      public static final int RELEVANCE_SCORE_FIELD_NUMBER
      See Also:
    • DOCUMENT_METADATA_FIELD_NUMBER

      public static final int DOCUMENT_METADATA_FIELD_NUMBER
      See Also:
  • 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
    • getChunk

      public String getChunk()
       Chunk resource name.
       
      string chunk = 1 [(.google.api.resource_reference) = { ... }
      Specified by:
      getChunk in interface Answer.Reference.ChunkInfoOrBuilder
      Returns:
      The chunk.
    • getChunkBytes

      public com.google.protobuf.ByteString getChunkBytes()
       Chunk resource name.
       
      string chunk = 1 [(.google.api.resource_reference) = { ... }
      Specified by:
      getChunkBytes in interface Answer.Reference.ChunkInfoOrBuilder
      Returns:
      The bytes for chunk.
    • getContent

      public String getContent()
       Chunk textual content.
       
      string content = 2;
      Specified by:
      getContent in interface Answer.Reference.ChunkInfoOrBuilder
      Returns:
      The content.
    • getContentBytes

      public com.google.protobuf.ByteString getContentBytes()
       Chunk textual content.
       
      string content = 2;
      Specified by:
      getContentBytes in interface Answer.Reference.ChunkInfoOrBuilder
      Returns:
      The bytes for content.
    • hasRelevanceScore

      public boolean hasRelevanceScore()
       The relevance of the chunk for a given query. Values range from 0.0
       (completely irrelevant) to 1.0 (completely relevant).
       This value is for informational purpose only. It may change for
       the same query and chunk at any time due to a model retraining or
       change in implementation.
       
      optional float relevance_score = 3;
      Specified by:
      hasRelevanceScore in interface Answer.Reference.ChunkInfoOrBuilder
      Returns:
      Whether the relevanceScore field is set.
    • getRelevanceScore

      public float getRelevanceScore()
       The relevance of the chunk for a given query. Values range from 0.0
       (completely irrelevant) to 1.0 (completely relevant).
       This value is for informational purpose only. It may change for
       the same query and chunk at any time due to a model retraining or
       change in implementation.
       
      optional float relevance_score = 3;
      Specified by:
      getRelevanceScore in interface Answer.Reference.ChunkInfoOrBuilder
      Returns:
      The relevanceScore.
    • hasDocumentMetadata

      public boolean hasDocumentMetadata()
       Document metadata.
       
      .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata document_metadata = 4;
      Specified by:
      hasDocumentMetadata in interface Answer.Reference.ChunkInfoOrBuilder
      Returns:
      Whether the documentMetadata field is set.
    • getDocumentMetadata

      public Answer.Reference.ChunkInfo.DocumentMetadata getDocumentMetadata()
       Document metadata.
       
      .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata document_metadata = 4;
      Specified by:
      getDocumentMetadata in interface Answer.Reference.ChunkInfoOrBuilder
      Returns:
      The documentMetadata.
    • getDocumentMetadataOrBuilder

      public Answer.Reference.ChunkInfo.DocumentMetadataOrBuilder getDocumentMetadataOrBuilder()
       Document metadata.
       
      .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata document_metadata = 4;
      Specified by:
      getDocumentMetadataOrBuilder in interface Answer.Reference.ChunkInfoOrBuilder
    • 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 Answer.Reference.ChunkInfo parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

      public static Answer.Reference.ChunkInfo parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static Answer.Reference.ChunkInfo parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

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

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

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

      public static Answer.Reference.ChunkInfo.Builder newBuilder()
    • newBuilder

      public static Answer.Reference.ChunkInfo.Builder newBuilder(Answer.Reference.ChunkInfo prototype)
    • toBuilder

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

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

      public static Answer.Reference.ChunkInfo getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Answer.Reference.ChunkInfo> parser()
    • getParserForType

      public com.google.protobuf.Parser<Answer.Reference.ChunkInfo> 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 Answer.Reference.ChunkInfo getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder