Class ReadRowsResponse.CellChunk

  • All Implemented Interfaces:
    ReadRowsResponse.CellChunkOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
    Enclosing class:
    ReadRowsResponse

    public static final class ReadRowsResponse.CellChunk
    extends com.google.protobuf.GeneratedMessageV3
    implements ReadRowsResponse.CellChunkOrBuilder
     Specifies a piece of a row's contents returned as part of the read
     response stream.
     
    Protobuf type google.bigtable.v2.ReadRowsResponse.CellChunk
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • getRowKey

        public com.google.protobuf.ByteString getRowKey()
         The row key for this chunk of data.  If the row key is empty,
         this CellChunk is a continuation of the same row as the previous
         CellChunk in the response stream, even if that CellChunk was in a
         previous ReadRowsResponse message.
         
        bytes row_key = 1;
        Specified by:
        getRowKey in interface ReadRowsResponse.CellChunkOrBuilder
        Returns:
        The rowKey.
      • hasFamilyName

        public boolean hasFamilyName()
         The column family name for this chunk of data.  If this message
         is not present this CellChunk is a continuation of the same column
         family as the previous CellChunk.  The empty string can occur as a
         column family name in a response so clients must check
         explicitly for the presence of this message, not just for
         `family_name.value` being non-empty.
         
        .google.protobuf.StringValue family_name = 2;
        Specified by:
        hasFamilyName in interface ReadRowsResponse.CellChunkOrBuilder
        Returns:
        Whether the familyName field is set.
      • getFamilyName

        public com.google.protobuf.StringValue getFamilyName()
         The column family name for this chunk of data.  If this message
         is not present this CellChunk is a continuation of the same column
         family as the previous CellChunk.  The empty string can occur as a
         column family name in a response so clients must check
         explicitly for the presence of this message, not just for
         `family_name.value` being non-empty.
         
        .google.protobuf.StringValue family_name = 2;
        Specified by:
        getFamilyName in interface ReadRowsResponse.CellChunkOrBuilder
        Returns:
        The familyName.
      • getFamilyNameOrBuilder

        public com.google.protobuf.StringValueOrBuilder getFamilyNameOrBuilder()
         The column family name for this chunk of data.  If this message
         is not present this CellChunk is a continuation of the same column
         family as the previous CellChunk.  The empty string can occur as a
         column family name in a response so clients must check
         explicitly for the presence of this message, not just for
         `family_name.value` being non-empty.
         
        .google.protobuf.StringValue family_name = 2;
        Specified by:
        getFamilyNameOrBuilder in interface ReadRowsResponse.CellChunkOrBuilder
      • hasQualifier

        public boolean hasQualifier()
         The column qualifier for this chunk of data.  If this message
         is not present, this CellChunk is a continuation of the same column
         as the previous CellChunk.  Column qualifiers may be empty so
         clients must check for the presence of this message, not just
         for `qualifier.value` being non-empty.
         
        .google.protobuf.BytesValue qualifier = 3;
        Specified by:
        hasQualifier in interface ReadRowsResponse.CellChunkOrBuilder
        Returns:
        Whether the qualifier field is set.
      • getQualifier

        public com.google.protobuf.BytesValue getQualifier()
         The column qualifier for this chunk of data.  If this message
         is not present, this CellChunk is a continuation of the same column
         as the previous CellChunk.  Column qualifiers may be empty so
         clients must check for the presence of this message, not just
         for `qualifier.value` being non-empty.
         
        .google.protobuf.BytesValue qualifier = 3;
        Specified by:
        getQualifier in interface ReadRowsResponse.CellChunkOrBuilder
        Returns:
        The qualifier.
      • getQualifierOrBuilder

        public com.google.protobuf.BytesValueOrBuilder getQualifierOrBuilder()
         The column qualifier for this chunk of data.  If this message
         is not present, this CellChunk is a continuation of the same column
         as the previous CellChunk.  Column qualifiers may be empty so
         clients must check for the presence of this message, not just
         for `qualifier.value` being non-empty.
         
        .google.protobuf.BytesValue qualifier = 3;
        Specified by:
        getQualifierOrBuilder in interface ReadRowsResponse.CellChunkOrBuilder
      • getTimestampMicros

        public long getTimestampMicros()
         The cell's stored timestamp, which also uniquely identifies it
         within its column.  Values are always expressed in
         microseconds, but individual tables may set a coarser
         granularity to further restrict the allowed values. For
         example, a table which specifies millisecond granularity will
         only allow values of `timestamp_micros` which are multiples of
         1000.  Timestamps are only set in the first CellChunk per cell
         (for cells split into multiple chunks).
         
        int64 timestamp_micros = 4;
        Specified by:
        getTimestampMicros in interface ReadRowsResponse.CellChunkOrBuilder
        Returns:
        The timestampMicros.
      • getLabelsList

        public com.google.protobuf.ProtocolStringList getLabelsList()
         Labels applied to the cell by a
         [RowFilter][google.bigtable.v2.RowFilter].  Labels are only set
         on the first CellChunk per cell.
         
        repeated string labels = 5;
        Specified by:
        getLabelsList in interface ReadRowsResponse.CellChunkOrBuilder
        Returns:
        A list containing the labels.
      • getLabelsCount

        public int getLabelsCount()
         Labels applied to the cell by a
         [RowFilter][google.bigtable.v2.RowFilter].  Labels are only set
         on the first CellChunk per cell.
         
        repeated string labels = 5;
        Specified by:
        getLabelsCount in interface ReadRowsResponse.CellChunkOrBuilder
        Returns:
        The count of labels.
      • getLabels

        public String getLabels​(int index)
         Labels applied to the cell by a
         [RowFilter][google.bigtable.v2.RowFilter].  Labels are only set
         on the first CellChunk per cell.
         
        repeated string labels = 5;
        Specified by:
        getLabels in interface ReadRowsResponse.CellChunkOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The labels at the given index.
      • getLabelsBytes

        public com.google.protobuf.ByteString getLabelsBytes​(int index)
         Labels applied to the cell by a
         [RowFilter][google.bigtable.v2.RowFilter].  Labels are only set
         on the first CellChunk per cell.
         
        repeated string labels = 5;
        Specified by:
        getLabelsBytes in interface ReadRowsResponse.CellChunkOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the labels at the given index.
      • getValue

        public com.google.protobuf.ByteString getValue()
         The value stored in the cell.  Cell values can be split across
         multiple CellChunks.  In that case only the value field will be
         set in CellChunks after the first: the timestamp and labels
         will only be present in the first CellChunk, even if the first
         CellChunk came in a previous ReadRowsResponse.
         
        bytes value = 6;
        Specified by:
        getValue in interface ReadRowsResponse.CellChunkOrBuilder
        Returns:
        The value.
      • getValueSize

        public int getValueSize()
         If this CellChunk is part of a chunked cell value and this is
         not the final chunk of that cell, value_size will be set to the
         total length of the cell value.  The client can use this size
         to pre-allocate memory to hold the full cell value.
         
        int32 value_size = 7;
        Specified by:
        getValueSize in interface ReadRowsResponse.CellChunkOrBuilder
        Returns:
        The valueSize.
      • hasResetRow

        public boolean hasResetRow()
         Indicates that the client should drop all previous chunks for
         `row_key`, as it will be re-read from the beginning.
         
        bool reset_row = 8;
        Specified by:
        hasResetRow in interface ReadRowsResponse.CellChunkOrBuilder
        Returns:
        Whether the resetRow field is set.
      • getResetRow

        public boolean getResetRow()
         Indicates that the client should drop all previous chunks for
         `row_key`, as it will be re-read from the beginning.
         
        bool reset_row = 8;
        Specified by:
        getResetRow in interface ReadRowsResponse.CellChunkOrBuilder
        Returns:
        The resetRow.
      • hasCommitRow

        public boolean hasCommitRow()
         Indicates that the client can safely process all previous chunks for
         `row_key`, as its data has been fully read.
         
        bool commit_row = 9;
        Specified by:
        hasCommitRow in interface ReadRowsResponse.CellChunkOrBuilder
        Returns:
        Whether the commitRow field is set.
      • getCommitRow

        public boolean getCommitRow()
         Indicates that the client can safely process all previous chunks for
         `row_key`, as its data has been fully read.
         
        bool commit_row = 9;
        Specified by:
        getCommitRow in interface ReadRowsResponse.CellChunkOrBuilder
        Returns:
        The commitRow.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • 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.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • 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 ReadRowsResponse.CellChunk parseFrom​(ByteBuffer data)
                                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ReadRowsResponse.CellChunk parseFrom​(ByteBuffer data,
                                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ReadRowsResponse.CellChunk parseFrom​(com.google.protobuf.ByteString data)
                                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ReadRowsResponse.CellChunk parseFrom​(com.google.protobuf.ByteString data,
                                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ReadRowsResponse.CellChunk parseFrom​(byte[] data)
                                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ReadRowsResponse.CellChunk parseFrom​(byte[] data,
                                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • newBuilderForType

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

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

        protected ReadRowsResponse.CellChunk.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<ReadRowsResponse.CellChunk> 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.GeneratedMessageV3
      • getDefaultInstanceForType

        public ReadRowsResponse.CellChunk getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder