Class Cell.Builder (2.10.3)

public static final class Cell.Builder extends 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

Implements

CellOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllLabels(Iterable<String> values)

public Cell.Builder addAllLabels(Iterable<String> values)

Labels applied to the cell by a RowFilter.

repeated string labels = 3;

Parameter
NameDescription
valuesIterable<String>

The labels to add.

Returns
TypeDescription
Cell.Builder

This builder for chaining.

addLabels(String value)

public Cell.Builder addLabels(String value)

Labels applied to the cell by a RowFilter.

repeated string labels = 3;

Parameter
NameDescription
valueString

The labels to add.

Returns
TypeDescription
Cell.Builder

This builder for chaining.

addLabelsBytes(ByteString value)

public Cell.Builder addLabelsBytes(ByteString value)

Labels applied to the cell by a RowFilter.

repeated string labels = 3;

Parameter
NameDescription
valueByteString

The bytes of the labels to add.

Returns
TypeDescription
Cell.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Cell.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Cell.Builder
Overrides

build()

public Cell build()
Returns
TypeDescription
Cell

buildPartial()

public Cell buildPartial()
Returns
TypeDescription
Cell

clear()

public Cell.Builder clear()
Returns
TypeDescription
Cell.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Cell.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Cell.Builder
Overrides

clearLabels()

public Cell.Builder clearLabels()

Labels applied to the cell by a RowFilter.

repeated string labels = 3;

Returns
TypeDescription
Cell.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Cell.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Cell.Builder
Overrides

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
TypeDescription
Cell.Builder

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
TypeDescription
Cell.Builder

This builder for chaining.

clone()

public Cell.Builder clone()
Returns
TypeDescription
Cell.Builder
Overrides

getDefaultInstanceForType()

public Cell getDefaultInstanceForType()
Returns
TypeDescription
Cell

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLabels(int index)

public String getLabels(int index)

Labels applied to the cell by a RowFilter.

repeated string labels = 3;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The labels at the given index.

getLabelsBytes(int index)

public ByteString getLabelsBytes(int index)

Labels applied to the cell by a RowFilter.

repeated string labels = 3;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the labels at the given index.

getLabelsCount()

public int getLabelsCount()

Labels applied to the cell by a RowFilter.

repeated string labels = 3;

Returns
TypeDescription
int

The count of labels.

getLabelsList()

public ProtocolStringList getLabelsList()

Labels applied to the cell by a RowFilter.

repeated string labels = 3;

Returns
TypeDescription
ProtocolStringList

A list containing the labels.

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;

Returns
TypeDescription
long

The timestampMicros.

getValue()

public 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;

Returns
TypeDescription
ByteString

The value.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Cell other)

public Cell.Builder mergeFrom(Cell other)
Parameter
NameDescription
otherCell
Returns
TypeDescription
Cell.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Cell.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Cell.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Cell.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Cell.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Cell.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Cell.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Cell.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Cell.Builder
Overrides

setLabels(int index, String value)

public Cell.Builder setLabels(int index, String value)

Labels applied to the cell by a RowFilter.

repeated string labels = 3;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The labels to set.

Returns
TypeDescription
Cell.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Cell.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Cell.Builder
Overrides

setTimestampMicros(long value)

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;

Parameter
NameDescription
valuelong

The timestampMicros to set.

Returns
TypeDescription
Cell.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Cell.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Cell.Builder
Overrides

setValue(ByteString value)

public Cell.Builder setValue(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;

Parameter
NameDescription
valueByteString

The value to set.

Returns
TypeDescription
Cell.Builder

This builder for chaining.