Package com.google.bigtable.v2
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 TypeMethodDescriptionaddAllLabels
(Iterable<String> values) 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) build()
clear()
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.clone()
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
getValue()
The value stored in the cell.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) final Cell.Builder
mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) 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.final Cell.Builder
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, internalGetMutableMapField, 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 classcom.google.protobuf.GeneratedMessageV3.Builder<Cell.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Cell.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Cell.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Cell.Builder>
-
setField
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Cell.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Cell.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Cell.Builder>
-
addRepeatedField
public Cell.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Cell.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Cell.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.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 interfaceCellOrBuilder
- Returns:
- The timestampMicros.
-
setTimestampMicros
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
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 interfaceCellOrBuilder
- Returns:
- The value.
-
setValue
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
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 interfaceCellOrBuilder
- 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 interfaceCellOrBuilder
- Returns:
- The count of labels.
-
getLabels
Labels applied to the cell by a [RowFilter][google.bigtable.v2.RowFilter].
repeated string labels = 3;
- Specified by:
getLabels
in interfaceCellOrBuilder
- 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 interfaceCellOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the labels at the given index.
-
setLabels
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
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
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
Labels applied to the cell by a [RowFilter][google.bigtable.v2.RowFilter].
repeated string labels = 3;
- Returns:
- This builder for chaining.
-
addLabelsBytes
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
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Cell.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Cell.Builder>
-