Class Cell.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Cell.Builder>
com.google.bigtable.v2.Cell.Builder
All Implemented Interfaces:
CellOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Cell

public static final class Cell.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Cell.Builder> implements CellOrBuilder
 Specifies (some of) the contents of a single row/column/timestamp of a table.
 
Protobuf type google.bigtable.v2.Cell
  • Method Summary

    Modifier and Type
    Method
    Description
    Labels applied to the cell by a [RowFilter][google.bigtable.v2.RowFilter].
    Labels applied to the cell by a [RowFilter][google.bigtable.v2.RowFilter].
    addLabelsBytes(com.google.protobuf.ByteString value)
    Labels applied to the cell by a [RowFilter][google.bigtable.v2.RowFilter].
    addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
     
     
     
     
    clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
     
    Labels applied to the cell by a [RowFilter][google.bigtable.v2.RowFilter].
    clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
     
    The cell's stored timestamp, which also uniquely identifies it within its column.
    The value stored in the cell.
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    getLabels(int index)
    Labels applied to the cell by a [RowFilter][google.bigtable.v2.RowFilter].
    com.google.protobuf.ByteString
    getLabelsBytes(int index)
    Labels applied to the cell by a [RowFilter][google.bigtable.v2.RowFilter].
    int
    Labels applied to the cell by a [RowFilter][google.bigtable.v2.RowFilter].
    com.google.protobuf.ProtocolStringList
    Labels applied to the cell by a [RowFilter][google.bigtable.v2.RowFilter].
    long
    The cell's stored timestamp, which also uniquely identifies it within its column.
    com.google.protobuf.ByteString
    The value stored in the cell.
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
     
    final boolean
     
    mergeFrom(Cell other)
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
     
    setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
     
    setLabels(int index, String value)
    Labels applied to the cell by a [RowFilter][google.bigtable.v2.RowFilter].
    setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
     
    setTimestampMicros(long value)
    The cell's stored timestamp, which also uniquely identifies it within its column.
    setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
     
    setValue(com.google.protobuf.ByteString value)
    The value stored in the cell.

    Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder

    getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • 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.Builder<Cell.Builder>
    • clear

      public Cell.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.GeneratedMessageV3.Builder<Cell.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.GeneratedMessageV3.Builder<Cell.Builder>
    • getDefaultInstanceForType

      public Cell getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Cell build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Cell buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public Cell.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<Cell.Builder>
    • setField

      public Cell.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<Cell.Builder>
    • clearField

      public Cell.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Cell.Builder>
    • clearOneof

      public Cell.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Cell.Builder>
    • setRepeatedField

      public Cell.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Cell.Builder>
    • addRepeatedField

      public Cell.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Cell.Builder>
    • mergeFrom

      public Cell.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<Cell.Builder>
    • mergeFrom

      public Cell.Builder mergeFrom(Cell other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Cell.Builder>
    • mergeFrom

      public Cell.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<Cell.Builder>
      Throws:
      IOException
    • 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.
       
      int64 timestamp_micros = 1;
      Specified by:
      getTimestampMicros in interface CellOrBuilder
      Returns:
      The timestampMicros.
    • setTimestampMicros

      public Cell.Builder setTimestampMicros(long value)
       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.
       
      int64 timestamp_micros = 1;
      Parameters:
      value - The timestampMicros to set.
      Returns:
      This builder for chaining.
    • clearTimestampMicros

      public Cell.Builder clearTimestampMicros()
       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.
       
      int64 timestamp_micros = 1;
      Returns:
      This builder for chaining.
    • getValue

      public com.google.protobuf.ByteString getValue()
       The value stored in the cell.
       May contain any byte string, including the empty string, up to 100MiB in
       length.
       
      bytes value = 2;
      Specified by:
      getValue in interface CellOrBuilder
      Returns:
      The value.
    • setValue

      public Cell.Builder setValue(com.google.protobuf.ByteString value)
       The value stored in the cell.
       May contain any byte string, including the empty string, up to 100MiB in
       length.
       
      bytes value = 2;
      Parameters:
      value - The value to set.
      Returns:
      This builder for chaining.
    • clearValue

      public Cell.Builder clearValue()
       The value stored in the cell.
       May contain any byte string, including the empty string, up to 100MiB in
       length.
       
      bytes value = 2;
      Returns:
      This builder for chaining.
    • getLabelsList

      public com.google.protobuf.ProtocolStringList getLabelsList()
       Labels applied to the cell by a [RowFilter][google.bigtable.v2.RowFilter].
       
      repeated string labels = 3;
      Specified by:
      getLabelsList in interface CellOrBuilder
      Returns:
      A list containing the labels.
    • getLabelsCount

      public int getLabelsCount()
       Labels applied to the cell by a [RowFilter][google.bigtable.v2.RowFilter].
       
      repeated string labels = 3;
      Specified by:
      getLabelsCount in interface CellOrBuilder
      Returns:
      The count of labels.
    • getLabels

      public String getLabels(int index)
       Labels applied to the cell by a [RowFilter][google.bigtable.v2.RowFilter].
       
      repeated string labels = 3;
      Specified by:
      getLabels in interface CellOrBuilder
      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].
       
      repeated string labels = 3;
      Specified by:
      getLabelsBytes in interface CellOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the labels at the given index.
    • setLabels

      public Cell.Builder setLabels(int index, String value)
       Labels applied to the cell by a [RowFilter][google.bigtable.v2.RowFilter].
       
      repeated string labels = 3;
      Parameters:
      index - The index to set the value at.
      value - The labels to set.
      Returns:
      This builder for chaining.
    • addLabels

      public Cell.Builder addLabels(String value)
       Labels applied to the cell by a [RowFilter][google.bigtable.v2.RowFilter].
       
      repeated string labels = 3;
      Parameters:
      value - The labels to add.
      Returns:
      This builder for chaining.
    • addAllLabels

      public Cell.Builder addAllLabels(Iterable<String> values)
       Labels applied to the cell by a [RowFilter][google.bigtable.v2.RowFilter].
       
      repeated string labels = 3;
      Parameters:
      values - The labels to add.
      Returns:
      This builder for chaining.
    • clearLabels

      public Cell.Builder clearLabels()
       Labels applied to the cell by a [RowFilter][google.bigtable.v2.RowFilter].
       
      repeated string labels = 3;
      Returns:
      This builder for chaining.
    • addLabelsBytes

      public Cell.Builder addLabelsBytes(com.google.protobuf.ByteString value)
       Labels applied to the cell by a [RowFilter][google.bigtable.v2.RowFilter].
       
      repeated string labels = 3;
      Parameters:
      value - The bytes of the labels to add.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final Cell.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Cell.Builder>
    • mergeUnknownFields

      public final Cell.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Cell.Builder>