Class HotTablet

  • All Implemented Interfaces:
    HotTabletOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class HotTablet
    extends com.google.protobuf.GeneratedMessageV3
    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
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  HotTablet.Builder
      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.
      • Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

        com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,​BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,​BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • 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
      • 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;
        Specified by:
        getName in interface HotTabletOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.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;
        Specified by:
        getNameBytes in interface HotTabletOrBuilder
        Returns:
        The bytes for name.
      • 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][-_.a-zA-Z0-9]*`.
         
        string table_name = 2 [(.google.api.resource_reference) = { ... }
        Specified by:
        getTableName in interface HotTabletOrBuilder
        Returns:
        The tableName.
      • getTableNameBytes

        public com.google.protobuf.ByteString getTableNameBytes()
         Name of the table that contains the tablet. Values are of the form
         `projects/{project}/instances/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`.
         
        string table_name = 2 [(.google.api.resource_reference) = { ... }
        Specified by:
        getTableNameBytes in interface HotTabletOrBuilder
        Returns:
        The bytes for tableName.
      • 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];
        Specified by:
        hasStartTime in interface HotTabletOrBuilder
        Returns:
        Whether the startTime field is set.
      • getStartTime

        public com.google.protobuf.Timestamp getStartTime()
         Output only. The start time of the hot tablet.
         
        .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStartTime in interface HotTabletOrBuilder
        Returns:
        The startTime.
      • getStartTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()
         Output only. The start time of the hot tablet.
         
        .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStartTimeOrBuilder in interface HotTabletOrBuilder
      • 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];
        Specified by:
        hasEndTime in interface HotTabletOrBuilder
        Returns:
        Whether the endTime field is set.
      • getEndTime

        public com.google.protobuf.Timestamp getEndTime()
         Output only. The end time of the hot tablet.
         
        .google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getEndTime in interface HotTabletOrBuilder
        Returns:
        The endTime.
      • getEndTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder()
         Output only. The end time of the hot tablet.
         
        .google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getEndTimeOrBuilder in interface HotTabletOrBuilder
      • getStartKey

        public String getStartKey()
         Tablet Start Key (inclusive).
         
        string start_key = 5;
        Specified by:
        getStartKey in interface HotTabletOrBuilder
        Returns:
        The startKey.
      • getStartKeyBytes

        public com.google.protobuf.ByteString getStartKeyBytes()
         Tablet Start Key (inclusive).
         
        string start_key = 5;
        Specified by:
        getStartKeyBytes in interface HotTabletOrBuilder
        Returns:
        The bytes for startKey.
      • getEndKey

        public String getEndKey()
         Tablet End Key (inclusive).
         
        string end_key = 6;
        Specified by:
        getEndKey in interface HotTabletOrBuilder
        Returns:
        The endKey.
      • getEndKeyBytes

        public com.google.protobuf.ByteString getEndKeyBytes()
         Tablet End Key (inclusive).
         
        string end_key = 6;
        Specified by:
        getEndKeyBytes in interface HotTabletOrBuilder
        Returns:
        The bytes for endKey.
      • 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];
        Specified by:
        getNodeCpuUsagePercent in interface HotTabletOrBuilder
        Returns:
        The nodeCpuUsagePercent.
      • 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 HotTablet parseFrom​(ByteBuffer data)
                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

        public static HotTablet parseFrom​(com.google.protobuf.CodedInputStream input,
                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                   throws IOException
        Throws:
        IOException
      • newBuilderForType

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

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

        protected HotTablet.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static HotTablet getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<HotTablet> parser()
      • getParserForType

        public com.google.protobuf.Parser<HotTablet> 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 HotTablet getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder