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.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()
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