Class MembershipState.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<MembershipState.Builder>
com.google.cloud.gkehub.metering.v1beta.MembershipState.Builder
All Implemented Interfaces:
MembershipStateOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
MembershipState

public static final class MembershipState.Builder extends com.google.protobuf.GeneratedMessage.Builder<MembershipState.Builder> implements MembershipStateOrBuilder
 **Metering**: Per-Membership Feature State.
 
Protobuf type google.cloud.gkehub.metering.v1beta.MembershipState
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    The time stamp of the most recent measurement of the number of vCPUs in the cluster.
    The vCPUs capacity in the cluster according to the most recent measurement (1/1000 precision).
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Timestamp
    The time stamp of the most recent measurement of the number of vCPUs in the cluster.
    com.google.protobuf.Timestamp.Builder
    The time stamp of the most recent measurement of the number of vCPUs in the cluster.
    com.google.protobuf.TimestampOrBuilder
    The time stamp of the most recent measurement of the number of vCPUs in the cluster.
    float
    The vCPUs capacity in the cluster according to the most recent measurement (1/1000 precision).
    boolean
    The time stamp of the most recent measurement of the number of vCPUs in the cluster.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    mergeLastMeasurementTime(com.google.protobuf.Timestamp value)
    The time stamp of the most recent measurement of the number of vCPUs in the cluster.
    setLastMeasurementTime(com.google.protobuf.Timestamp value)
    The time stamp of the most recent measurement of the number of vCPUs in the cluster.
    setLastMeasurementTime(com.google.protobuf.Timestamp.Builder builderForValue)
    The time stamp of the most recent measurement of the number of vCPUs in the cluster.
    The vCPUs capacity in the cluster according to the most recent measurement (1/1000 precision).

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<MembershipState.Builder>
    • clear

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

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

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

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

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

      public MembershipState.Builder mergeFrom(MembershipState other)
    • isInitialized

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

      public MembershipState.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<MembershipState.Builder>
      Throws:
      IOException
    • hasLastMeasurementTime

      public boolean hasLastMeasurementTime()
       The time stamp of the most recent measurement of the number of vCPUs
       in the cluster.
       
      .google.protobuf.Timestamp last_measurement_time = 1;
      Specified by:
      hasLastMeasurementTime in interface MembershipStateOrBuilder
      Returns:
      Whether the lastMeasurementTime field is set.
    • getLastMeasurementTime

      public com.google.protobuf.Timestamp getLastMeasurementTime()
       The time stamp of the most recent measurement of the number of vCPUs
       in the cluster.
       
      .google.protobuf.Timestamp last_measurement_time = 1;
      Specified by:
      getLastMeasurementTime in interface MembershipStateOrBuilder
      Returns:
      The lastMeasurementTime.
    • setLastMeasurementTime

      public MembershipState.Builder setLastMeasurementTime(com.google.protobuf.Timestamp value)
       The time stamp of the most recent measurement of the number of vCPUs
       in the cluster.
       
      .google.protobuf.Timestamp last_measurement_time = 1;
    • setLastMeasurementTime

      public MembershipState.Builder setLastMeasurementTime(com.google.protobuf.Timestamp.Builder builderForValue)
       The time stamp of the most recent measurement of the number of vCPUs
       in the cluster.
       
      .google.protobuf.Timestamp last_measurement_time = 1;
    • mergeLastMeasurementTime

      public MembershipState.Builder mergeLastMeasurementTime(com.google.protobuf.Timestamp value)
       The time stamp of the most recent measurement of the number of vCPUs
       in the cluster.
       
      .google.protobuf.Timestamp last_measurement_time = 1;
    • clearLastMeasurementTime

      public MembershipState.Builder clearLastMeasurementTime()
       The time stamp of the most recent measurement of the number of vCPUs
       in the cluster.
       
      .google.protobuf.Timestamp last_measurement_time = 1;
    • getLastMeasurementTimeBuilder

      public com.google.protobuf.Timestamp.Builder getLastMeasurementTimeBuilder()
       The time stamp of the most recent measurement of the number of vCPUs
       in the cluster.
       
      .google.protobuf.Timestamp last_measurement_time = 1;
    • getLastMeasurementTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getLastMeasurementTimeOrBuilder()
       The time stamp of the most recent measurement of the number of vCPUs
       in the cluster.
       
      .google.protobuf.Timestamp last_measurement_time = 1;
      Specified by:
      getLastMeasurementTimeOrBuilder in interface MembershipStateOrBuilder
    • getPreciseLastMeasuredClusterVcpuCapacity

      public float getPreciseLastMeasuredClusterVcpuCapacity()
       The vCPUs capacity in the cluster according to the most recent
       measurement (1/1000 precision).
       
      float precise_last_measured_cluster_vcpu_capacity = 3;
      Specified by:
      getPreciseLastMeasuredClusterVcpuCapacity in interface MembershipStateOrBuilder
      Returns:
      The preciseLastMeasuredClusterVcpuCapacity.
    • setPreciseLastMeasuredClusterVcpuCapacity

      public MembershipState.Builder setPreciseLastMeasuredClusterVcpuCapacity(float value)
       The vCPUs capacity in the cluster according to the most recent
       measurement (1/1000 precision).
       
      float precise_last_measured_cluster_vcpu_capacity = 3;
      Parameters:
      value - The preciseLastMeasuredClusterVcpuCapacity to set.
      Returns:
      This builder for chaining.
    • clearPreciseLastMeasuredClusterVcpuCapacity

      public MembershipState.Builder clearPreciseLastMeasuredClusterVcpuCapacity()
       The vCPUs capacity in the cluster according to the most recent
       measurement (1/1000 precision).
       
      float precise_last_measured_cluster_vcpu_capacity = 3;
      Returns:
      This builder for chaining.