Class MembershipState.Builder (1.75.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 1.75.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   static   final   class  MembershipState . Builder   extends   GeneratedMessageV3 . Builder<MembershipState . Builder >  implements   MembershipStateOrBuilder  
   Metering : Per-Membership Feature State.
 Protobuf type google.cloud.gkehub.metering.v1beta.MembershipState
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder() 
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int) 
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int) 
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString) 
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int) 
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int) 
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder) 
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Methods
   
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  Methods
   
  addRepeatedField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   MembershipState . Builder   addRepeatedField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  build() 
  
    
public   MembershipState   build ()  
  
  buildPartial() 
  
    
public   MembershipState   buildPartial ()  
  
  clear() 
  
    
public   MembershipState . Builder   clear ()  
  
  Overrides 
  
  clearField(Descriptors.FieldDescriptor field) 
  
    
public   MembershipState . Builder   clearField ( Descriptors . FieldDescriptor   field )  
  
  
  Overrides 
  
  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;
clearOneof(Descriptors.OneofDescriptor oneof) 
  
    
public   MembershipState . Builder   clearOneof ( Descriptors . OneofDescriptor   oneof )  
  
  
  Overrides 
  
  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;
clone() 
  
    
public   MembershipState . Builder   clone ()  
  
  Overrides 
  
  getDefaultInstanceForType() 
  
    
public   MembershipState   getDefaultInstanceForType ()  
  
  getDescriptorForType() 
  
    
public   Descriptors . Descriptor   getDescriptorForType ()  
  
  Overrides 
  
  getLastMeasurementTime() 
  
    
public   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;
    
      
        Returns  
      
        Type Description  
      
        Timestamp The lastMeasurementTime.
 
     
  
  getLastMeasurementTimeBuilder() 
  
    
public   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   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;
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;
    
      
        Returns  
      
        Type Description  
      
        float The preciseLastMeasuredClusterVcpuCapacity.
 
     
  
  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;
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the lastMeasurementTime field is set.
 
     
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  mergeFrom(MembershipState other) 
  
    
public   MembershipState . Builder   mergeFrom ( MembershipState   other )  
  
  
  
    
public   MembershipState . Builder   mergeFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  Overrides 
  
  
  mergeFrom(Message other) 
  
    
public   MembershipState . Builder   mergeFrom ( Message   other )  
  
    
      
        Parameter  
      
        Name Description  
      
        otherMessage  
     
  
  
  Overrides 
  
  mergeLastMeasurementTime(Timestamp value) 
  
    
public   MembershipState . Builder   mergeLastMeasurementTime ( 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;
mergeUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   MembershipState . Builder   mergeUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  Overrides 
  
  setField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   MembershipState . Builder   setField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  setLastMeasurementTime(Timestamp value) 
  
    
public   MembershipState . Builder   setLastMeasurementTime ( 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(Timestamp.Builder builderForValue) 
  
    
public   MembershipState . Builder   setLastMeasurementTime ( 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;
    
      
        Parameter  
      
        Name Description  
      
        builderForValueBuilder  
     
  
  
  setPreciseLastMeasuredClusterVcpuCapacity(float value) 
  
    
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;
    
      
        Parameter  
      
        Name Description  
      
        valuefloat The preciseLastMeasuredClusterVcpuCapacity to set.
 
     
  
  
  setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) 
  
    
public   MembershipState . Builder   setRepeatedField ( Descriptors . FieldDescriptor   field ,   int   index ,   Object   value )  
  
  
  Overrides 
  
  setUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   MembershipState . Builder   setUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  Overrides 
  
 
     
    
  
  
  
     
  
    
    
      
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-29 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-29 UTC."],[],[]]