Send feedback
Class MembershipState.Builder (1.3.4)
Stay organized with collections
Save and categorize content based on your preferences.
Version 1.3.4 keyboard_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.v1alpha.MembershipState
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public MembershipState . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
public MembershipState build ()
Returns
buildPartial()
public MembershipState buildPartial ()
Returns
clear()
public MembershipState . Builder clear ()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public MembershipState . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
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;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public MembershipState . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
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;
Returns
clone()
public MembershipState . Builder clone ()
Returns
Overrides
getDefaultInstanceForType()
public MembershipState getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
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;
Returns
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;
Returns
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 ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
mergeFrom(MembershipState other)
public MembershipState . Builder mergeFrom ( MembershipState other )
Parameter
Returns
public MembershipState . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public MembershipState . Builder mergeFrom ( Message other )
Parameter
Returns
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;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final MembershipState . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public MembershipState . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
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;
Parameter
Returns
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 builderForValue Builder
Returns
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 value float
The preciseLastMeasuredClusterVcpuCapacity to set.
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public MembershipState . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final MembershipState . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
Send feedback
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-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]