Class MembershipState (1.20.0)

public final class MembershipState extends GeneratedMessageV3 implements MembershipStateOrBuilder

Metering: Per-Membership Feature State.

Protobuf type google.cloud.gkehub.metering.v1beta.MembershipState

Static Fields

LAST_MEASUREMENT_TIME_FIELD_NUMBER

public static final int LAST_MEASUREMENT_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

PRECISE_LAST_MEASURED_CLUSTER_VCPU_CAPACITY_FIELD_NUMBER

public static final int PRECISE_LAST_MEASURED_CLUSTER_VCPU_CAPACITY_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static MembershipState getDefaultInstance()
Returns
TypeDescription
MembershipState

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static MembershipState.Builder newBuilder()
Returns
TypeDescription
MembershipState.Builder

newBuilder(MembershipState prototype)

public static MembershipState.Builder newBuilder(MembershipState prototype)
Parameter
NameDescription
prototypeMembershipState
Returns
TypeDescription
MembershipState.Builder

parseDelimitedFrom(InputStream input)

public static MembershipState parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
MembershipState
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MembershipState parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MembershipState
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static MembershipState parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
MembershipState
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static MembershipState parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MembershipState
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static MembershipState parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
MembershipState
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static MembershipState parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MembershipState
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static MembershipState parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
MembershipState
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static MembershipState parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MembershipState
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static MembershipState parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
MembershipState
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MembershipState parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MembershipState
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static MembershipState parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
MembershipState
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static MembershipState parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MembershipState
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<MembershipState> parser()
Returns
TypeDescription
Parser<MembershipState>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public MembershipState getDefaultInstanceForType()
Returns
TypeDescription
MembershipState

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
TypeDescription
Timestamp

The lastMeasurementTime.

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
TypeDescription
TimestampOrBuilder

getParserForType()

public Parser<MembershipState> getParserForType()
Returns
TypeDescription
Parser<MembershipState>
Overrides

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
TypeDescription
float

The preciseLastMeasuredClusterVcpuCapacity.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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
TypeDescription
boolean

Whether the lastMeasurementTime field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public MembershipState.Builder newBuilderForType()
Returns
TypeDescription
MembershipState.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected MembershipState.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
MembershipState.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public MembershipState.Builder toBuilder()
Returns
TypeDescription
MembershipState.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException