Class Chunk.ChunkMetadata

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata
All Implemented Interfaces:
Chunk.ChunkMetadataOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
Chunk

public static final class Chunk.ChunkMetadata extends com.google.protobuf.GeneratedMessage implements Chunk.ChunkMetadataOrBuilder
 Metadata of the current chunk. This field is only populated on
 [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
 API.
 
Protobuf type google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata
See Also:
  • Field Details

    • PREVIOUS_CHUNKS_FIELD_NUMBER

      public static final int PREVIOUS_CHUNKS_FIELD_NUMBER
      See Also:
    • NEXT_CHUNKS_FIELD_NUMBER

      public static final int NEXT_CHUNKS_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
    • getPreviousChunksList

      public List<Chunk> getPreviousChunksList()
       The previous chunks of the current chunk. The number is controlled by
       [SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks].
       This field is only populated on
       [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
       API.
       
      repeated .google.cloud.discoveryengine.v1beta.Chunk previous_chunks = 1;
      Specified by:
      getPreviousChunksList in interface Chunk.ChunkMetadataOrBuilder
    • getPreviousChunksOrBuilderList

      public List<? extends ChunkOrBuilder> getPreviousChunksOrBuilderList()
       The previous chunks of the current chunk. The number is controlled by
       [SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks].
       This field is only populated on
       [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
       API.
       
      repeated .google.cloud.discoveryengine.v1beta.Chunk previous_chunks = 1;
      Specified by:
      getPreviousChunksOrBuilderList in interface Chunk.ChunkMetadataOrBuilder
    • getPreviousChunksCount

      public int getPreviousChunksCount()
       The previous chunks of the current chunk. The number is controlled by
       [SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks].
       This field is only populated on
       [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
       API.
       
      repeated .google.cloud.discoveryengine.v1beta.Chunk previous_chunks = 1;
      Specified by:
      getPreviousChunksCount in interface Chunk.ChunkMetadataOrBuilder
    • getPreviousChunks

      public Chunk getPreviousChunks(int index)
       The previous chunks of the current chunk. The number is controlled by
       [SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks].
       This field is only populated on
       [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
       API.
       
      repeated .google.cloud.discoveryengine.v1beta.Chunk previous_chunks = 1;
      Specified by:
      getPreviousChunks in interface Chunk.ChunkMetadataOrBuilder
    • getPreviousChunksOrBuilder

      public ChunkOrBuilder getPreviousChunksOrBuilder(int index)
       The previous chunks of the current chunk. The number is controlled by
       [SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks].
       This field is only populated on
       [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
       API.
       
      repeated .google.cloud.discoveryengine.v1beta.Chunk previous_chunks = 1;
      Specified by:
      getPreviousChunksOrBuilder in interface Chunk.ChunkMetadataOrBuilder
    • getNextChunksList

      public List<Chunk> getNextChunksList()
       The next chunks of the current chunk. The number is controlled by
       [SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks].
       This field is only populated on
       [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
       API.
       
      repeated .google.cloud.discoveryengine.v1beta.Chunk next_chunks = 2;
      Specified by:
      getNextChunksList in interface Chunk.ChunkMetadataOrBuilder
    • getNextChunksOrBuilderList

      public List<? extends ChunkOrBuilder> getNextChunksOrBuilderList()
       The next chunks of the current chunk. The number is controlled by
       [SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks].
       This field is only populated on
       [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
       API.
       
      repeated .google.cloud.discoveryengine.v1beta.Chunk next_chunks = 2;
      Specified by:
      getNextChunksOrBuilderList in interface Chunk.ChunkMetadataOrBuilder
    • getNextChunksCount

      public int getNextChunksCount()
       The next chunks of the current chunk. The number is controlled by
       [SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks].
       This field is only populated on
       [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
       API.
       
      repeated .google.cloud.discoveryengine.v1beta.Chunk next_chunks = 2;
      Specified by:
      getNextChunksCount in interface Chunk.ChunkMetadataOrBuilder
    • getNextChunks

      public Chunk getNextChunks(int index)
       The next chunks of the current chunk. The number is controlled by
       [SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks].
       This field is only populated on
       [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
       API.
       
      repeated .google.cloud.discoveryengine.v1beta.Chunk next_chunks = 2;
      Specified by:
      getNextChunks in interface Chunk.ChunkMetadataOrBuilder
    • getNextChunksOrBuilder

      public ChunkOrBuilder getNextChunksOrBuilder(int index)
       The next chunks of the current chunk. The number is controlled by
       [SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks].
       This field is only populated on
       [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
       API.
       
      repeated .google.cloud.discoveryengine.v1beta.Chunk next_chunks = 2;
      Specified by:
      getNextChunksOrBuilder in interface Chunk.ChunkMetadataOrBuilder
    • 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 Chunk.ChunkMetadata parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Chunk.ChunkMetadata parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Chunk.ChunkMetadata parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Chunk.ChunkMetadata parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Chunk.ChunkMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

      public static Chunk.ChunkMetadata parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static Chunk.ChunkMetadata parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

      public static Chunk.ChunkMetadata parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public Chunk.ChunkMetadata.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Chunk.ChunkMetadata.Builder newBuilder()
    • newBuilder

      public static Chunk.ChunkMetadata.Builder newBuilder(Chunk.ChunkMetadata prototype)
    • toBuilder

      public Chunk.ChunkMetadata.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Chunk.ChunkMetadata.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Chunk.ChunkMetadata getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Chunk.ChunkMetadata> parser()
    • getParserForType

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