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 TypeMethodDescriptionbuild()clear()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.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.TimestampThe time stamp of the most recent measurement of the number of vCPUs in the cluster.com.google.protobuf.Timestamp.BuilderThe time stamp of the most recent measurement of the number of vCPUs in the cluster.com.google.protobuf.TimestampOrBuilderThe time stamp of the most recent measurement of the number of vCPUs in the cluster.floatThe vCPUs capacity in the cluster according to the most recent measurement (1/1000 precision).booleanThe time stamp of the most recent measurement of the number of vCPUs in the cluster.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(MembershipState other) 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.setPreciseLastMeasuredClusterVcpuCapacity(float value) 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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods 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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<MembershipState.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<MembershipState.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<MembershipState.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MembershipState.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
hasLastMeasurementTimein interfaceMembershipStateOrBuilder- 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:
getLastMeasurementTimein interfaceMembershipStateOrBuilder- Returns:
- The lastMeasurementTime.
-
setLastMeasurementTime
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
The time stamp of the most recent measurement of the number of vCPUs in the cluster.
.google.protobuf.Timestamp last_measurement_time = 1; -
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:
getLastMeasurementTimeOrBuilderin interfaceMembershipStateOrBuilder
-
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:
getPreciseLastMeasuredClusterVcpuCapacityin interfaceMembershipStateOrBuilder- Returns:
- The preciseLastMeasuredClusterVcpuCapacity.
-
setPreciseLastMeasuredClusterVcpuCapacity
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
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.
-