Class HotTablet.Builder

  • All Implemented Interfaces:
    HotTabletOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    HotTablet

    public static final class HotTablet.Builder
    extends com.google.protobuf.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
    • Method Detail

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

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

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

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

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

        public HotTablet.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<HotTablet.Builder>
      • setField

        public HotTablet.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<HotTablet.Builder>
      • clearField

        public HotTablet.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<HotTablet.Builder>
      • clearOneof

        public HotTablet.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<HotTablet.Builder>
      • setRepeatedField

        public HotTablet.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<HotTablet.Builder>
      • addRepeatedField

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

        public HotTablet.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<HotTablet.Builder>
      • isInitialized

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

        public HotTablet.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<HotTablet.Builder>
        Throws:
        IOException
      • 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.
      • setName

        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;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • 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:
        This builder for chaining.
      • setNameBytes

        public HotTablet.Builder setNameBytes​(com.google.protobuf.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;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • 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.
      • setTableName

        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][-_.a-zA-Z0-9]*`.
         
        string table_name = 2 [(.google.api.resource_reference) = { ... }
        Parameters:
        value - The tableName to set.
        Returns:
        This builder for chaining.
      • 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][-_.a-zA-Z0-9]*`.
         
        string table_name = 2 [(.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setTableNameBytes

        public HotTablet.Builder setTableNameBytes​(com.google.protobuf.ByteString value)
         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) = { ... }
        Parameters:
        value - The bytes for tableName to set.
        Returns:
        This builder for chaining.
      • 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.
      • setStartTime

        public HotTablet.Builder setStartTime​(com.google.protobuf.Timestamp value)
         Output only. The start time of the hot tablet.
         
        .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setStartTime

        public HotTablet.Builder setStartTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. The start time of the hot tablet.
         
        .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeStartTime

        public HotTablet.Builder mergeStartTime​(com.google.protobuf.Timestamp value)
         Output only. The start time of the hot tablet.
         
        .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • 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];
      • getStartTimeBuilder

        public com.google.protobuf.Timestamp.Builder getStartTimeBuilder()
         Output only. The start time of the hot tablet.
         
        .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • 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.
      • setEndTime

        public HotTablet.Builder setEndTime​(com.google.protobuf.Timestamp value)
         Output only. The end time of the hot tablet.
         
        .google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setEndTime

        public HotTablet.Builder setEndTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. The end time of the hot tablet.
         
        .google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeEndTime

        public HotTablet.Builder mergeEndTime​(com.google.protobuf.Timestamp value)
         Output only. The end time of the hot tablet.
         
        .google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • 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];
      • getEndTimeBuilder

        public com.google.protobuf.Timestamp.Builder getEndTimeBuilder()
         Output only. The end time of the hot tablet.
         
        .google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • 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.
      • setStartKey

        public HotTablet.Builder setStartKey​(String value)
         Tablet Start Key (inclusive).
         
        string start_key = 5;
        Parameters:
        value - The startKey to set.
        Returns:
        This builder for chaining.
      • clearStartKey

        public HotTablet.Builder clearStartKey()
         Tablet Start Key (inclusive).
         
        string start_key = 5;
        Returns:
        This builder for chaining.
      • setStartKeyBytes

        public HotTablet.Builder setStartKeyBytes​(com.google.protobuf.ByteString value)
         Tablet Start Key (inclusive).
         
        string start_key = 5;
        Parameters:
        value - The bytes for startKey to set.
        Returns:
        This builder for chaining.
      • 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.
      • setEndKey

        public HotTablet.Builder setEndKey​(String value)
         Tablet End Key (inclusive).
         
        string end_key = 6;
        Parameters:
        value - The endKey to set.
        Returns:
        This builder for chaining.
      • clearEndKey

        public HotTablet.Builder clearEndKey()
         Tablet End Key (inclusive).
         
        string end_key = 6;
        Returns:
        This builder for chaining.
      • setEndKeyBytes

        public HotTablet.Builder setEndKeyBytes​(com.google.protobuf.ByteString value)
         Tablet End Key (inclusive).
         
        string end_key = 6;
        Parameters:
        value - The bytes for endKey to set.
        Returns:
        This builder for chaining.
      • 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.
      • setNodeCpuUsagePercent

        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];
        Parameters:
        value - The nodeCpuUsagePercent to set.
        Returns:
        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:
        This builder for chaining.
      • setUnknownFields

        public final HotTablet.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<HotTablet.Builder>
      • mergeUnknownFields

        public final HotTablet.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<HotTablet.Builder>