Class HotTablet.Builder (2.12.0)

public static final class HotTablet.Builder extends GeneratedMessageV3.Builder<HotTablet.Builder> implements HotTabletOrBuilder

A tablet is a defined by a start and end key and is explained in https://cloud.google.com/bigtable/docs/overview#architecture and https://cloud.google.com/bigtable/docs/performance#optimization. A Hot tablet is a tablet that exhibits high average cpu usage during the time interval from start time to end time.

Protobuf type google.bigtable.admin.v2.HotTablet

Implements

HotTabletOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public HotTablet build()
Returns
TypeDescription
HotTablet

buildPartial()

public HotTablet buildPartial()
Returns
TypeDescription
HotTablet

clear()

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

clearEndKey()

public HotTablet.Builder clearEndKey()

Tablet End Key (inclusive).

string end_key = 6;

Returns
TypeDescription
HotTablet.Builder

This builder for chaining.

clearEndTime()

public HotTablet.Builder clearEndTime()

Output only. The end time of the hot tablet.

.google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
HotTablet.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public HotTablet.Builder clearName()

The unique name of the hot tablet. Values are of the form projects/{project}/instances/{instance}/clusters/{cluster}/hotTablets/[a-zA-Z0-9_-]*.

string name = 1;

Returns
TypeDescription
HotTablet.Builder

This builder for chaining.

clearNodeCpuUsagePercent()

public HotTablet.Builder clearNodeCpuUsagePercent()

Output only. The average CPU usage spent by a node on this tablet over the start_time to end_time time range. The percentage is the amount of CPU used by the node to serve the tablet, from 0% (tablet was not interacted with) to 100% (the node spent all cycles serving the hot tablet).

float node_cpu_usage_percent = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
HotTablet.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearStartKey()

public HotTablet.Builder clearStartKey()

Tablet Start Key (inclusive).

string start_key = 5;

Returns
TypeDescription
HotTablet.Builder

This builder for chaining.

clearStartTime()

public HotTablet.Builder clearStartTime()

Output only. The start time of the hot tablet.

.google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
HotTablet.Builder

clearTableName()

public HotTablet.Builder clearTableName()

Name of the table that contains the tablet. Values are of the form projects/{project}/instances/{instance}/tables/_a-zA-Z0-9*.

string table_name = 2 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
HotTablet.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public HotTablet getDefaultInstanceForType()
Returns
TypeDescription
HotTablet

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEndKey()

public String getEndKey()

Tablet End Key (inclusive).

string end_key = 6;

Returns
TypeDescription
String

The endKey.

getEndKeyBytes()

public ByteString getEndKeyBytes()

Tablet End Key (inclusive).

string end_key = 6;

Returns
TypeDescription
ByteString

The bytes for endKey.

getEndTime()

public Timestamp getEndTime()

Output only. The end time of the hot tablet.

.google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The endTime.

getEndTimeBuilder()

public Timestamp.Builder getEndTimeBuilder()

Output only. The end time of the hot tablet.

.google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

Output only. The end time of the hot tablet.

.google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getName()

public String getName()

The unique name of the hot tablet. Values are of the form projects/{project}/instances/{instance}/clusters/{cluster}/hotTablets/[a-zA-Z0-9_-]*.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The unique name of the hot tablet. Values are of the form projects/{project}/instances/{instance}/clusters/{cluster}/hotTablets/[a-zA-Z0-9_-]*.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getNodeCpuUsagePercent()

public float getNodeCpuUsagePercent()

Output only. The average CPU usage spent by a node on this tablet over the start_time to end_time time range. The percentage is the amount of CPU used by the node to serve the tablet, from 0% (tablet was not interacted with) to 100% (the node spent all cycles serving the hot tablet).

float node_cpu_usage_percent = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
float

The nodeCpuUsagePercent.

getStartKey()

public String getStartKey()

Tablet Start Key (inclusive).

string start_key = 5;

Returns
TypeDescription
String

The startKey.

getStartKeyBytes()

public ByteString getStartKeyBytes()

Tablet Start Key (inclusive).

string start_key = 5;

Returns
TypeDescription
ByteString

The bytes for startKey.

getStartTime()

public Timestamp getStartTime()

Output only. The start time of the hot tablet.

.google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

Output only. The start time of the hot tablet.

.google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Output only. The start time of the hot tablet.

.google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getTableName()

public String getTableName()

Name of the table that contains the tablet. Values are of the form projects/{project}/instances/{instance}/tables/_a-zA-Z0-9*.

string table_name = 2 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The tableName.

getTableNameBytes()

public ByteString getTableNameBytes()

Name of the table that contains the tablet. Values are of the form projects/{project}/instances/{instance}/tables/_a-zA-Z0-9*.

string table_name = 2 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for tableName.

hasEndTime()

public boolean hasEndTime()

Output only. The end time of the hot tablet.

.google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the endTime field is set.

hasStartTime()

public boolean hasStartTime()

Output only. The start time of the hot tablet.

.google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeEndTime(Timestamp value)

public HotTablet.Builder mergeEndTime(Timestamp value)

Output only. The end time of the hot tablet.

.google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
HotTablet.Builder

mergeFrom(HotTablet other)

public HotTablet.Builder mergeFrom(HotTablet other)
Parameter
NameDescription
otherHotTablet
Returns
TypeDescription
HotTablet.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeStartTime(Timestamp value)

public HotTablet.Builder mergeStartTime(Timestamp value)

Output only. The start time of the hot tablet.

.google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
HotTablet.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEndKey(String value)

public HotTablet.Builder setEndKey(String value)

Tablet End Key (inclusive).

string end_key = 6;

Parameter
NameDescription
valueString

The endKey to set.

Returns
TypeDescription
HotTablet.Builder

This builder for chaining.

setEndKeyBytes(ByteString value)

public HotTablet.Builder setEndKeyBytes(ByteString value)

Tablet End Key (inclusive).

string end_key = 6;

Parameter
NameDescription
valueByteString

The bytes for endKey to set.

Returns
TypeDescription
HotTablet.Builder

This builder for chaining.

setEndTime(Timestamp value)

public HotTablet.Builder setEndTime(Timestamp value)

Output only. The end time of the hot tablet.

.google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
HotTablet.Builder

setEndTime(Timestamp.Builder builderForValue)

public HotTablet.Builder setEndTime(Timestamp.Builder builderForValue)

Output only. The end time of the hot tablet.

.google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
HotTablet.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public HotTablet.Builder setName(String value)

The unique name of the hot tablet. Values are of the form projects/{project}/instances/{instance}/clusters/{cluster}/hotTablets/[a-zA-Z0-9_-]*.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
HotTablet.Builder

This builder for chaining.

setNameBytes(ByteString value)

public HotTablet.Builder setNameBytes(ByteString value)

The unique name of the hot tablet. Values are of the form projects/{project}/instances/{instance}/clusters/{cluster}/hotTablets/[a-zA-Z0-9_-]*.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
HotTablet.Builder

This builder for chaining.

setNodeCpuUsagePercent(float value)

public HotTablet.Builder setNodeCpuUsagePercent(float value)

Output only. The average CPU usage spent by a node on this tablet over the start_time to end_time time range. The percentage is the amount of CPU used by the node to serve the tablet, from 0% (tablet was not interacted with) to 100% (the node spent all cycles serving the hot tablet).

float node_cpu_usage_percent = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuefloat

The nodeCpuUsagePercent to set.

Returns
TypeDescription
HotTablet.Builder

This builder for chaining.

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

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

setStartKey(String value)

public HotTablet.Builder setStartKey(String value)

Tablet Start Key (inclusive).

string start_key = 5;

Parameter
NameDescription
valueString

The startKey to set.

Returns
TypeDescription
HotTablet.Builder

This builder for chaining.

setStartKeyBytes(ByteString value)

public HotTablet.Builder setStartKeyBytes(ByteString value)

Tablet Start Key (inclusive).

string start_key = 5;

Parameter
NameDescription
valueByteString

The bytes for startKey to set.

Returns
TypeDescription
HotTablet.Builder

This builder for chaining.

setStartTime(Timestamp value)

public HotTablet.Builder setStartTime(Timestamp value)

Output only. The start time of the hot tablet.

.google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
HotTablet.Builder

setStartTime(Timestamp.Builder builderForValue)

public HotTablet.Builder setStartTime(Timestamp.Builder builderForValue)

Output only. The start time of the hot tablet.

.google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
HotTablet.Builder

setTableName(String value)

public HotTablet.Builder setTableName(String value)

Name of the table that contains the tablet. Values are of the form projects/{project}/instances/{instance}/tables/_a-zA-Z0-9*.

string table_name = 2 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The tableName to set.

Returns
TypeDescription
HotTablet.Builder

This builder for chaining.

setTableNameBytes(ByteString value)

public HotTablet.Builder setTableNameBytes(ByteString value)

Name of the table that contains the tablet. Values are of the form projects/{project}/instances/{instance}/tables/_a-zA-Z0-9*.

string table_name = 2 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for tableName to set.

Returns
TypeDescription
HotTablet.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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