Class SpokeSummary.SpokeStateReasonCount (1.28.0)

public static final class SpokeSummary.SpokeStateReasonCount extends GeneratedMessageV3 implements SpokeSummary.SpokeStateReasonCountOrBuilder

The number of spokes in the hub that are inactive for this reason.

Protobuf type google.cloud.networkconnectivity.v1.SpokeSummary.SpokeStateReasonCount

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > SpokeSummary.SpokeStateReasonCount

Static Fields

COUNT_FIELD_NUMBER

public static final int COUNT_FIELD_NUMBER
Field Value
TypeDescription
int

STATE_REASON_CODE_FIELD_NUMBER

public static final int STATE_REASON_CODE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SpokeSummary.SpokeStateReasonCount getDefaultInstance()
Returns
TypeDescription
SpokeSummary.SpokeStateReasonCount

getDescriptor()

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

newBuilder()

public static SpokeSummary.SpokeStateReasonCount.Builder newBuilder()
Returns
TypeDescription
SpokeSummary.SpokeStateReasonCount.Builder

newBuilder(SpokeSummary.SpokeStateReasonCount prototype)

public static SpokeSummary.SpokeStateReasonCount.Builder newBuilder(SpokeSummary.SpokeStateReasonCount prototype)
Parameter
NameDescription
prototypeSpokeSummary.SpokeStateReasonCount
Returns
TypeDescription
SpokeSummary.SpokeStateReasonCount.Builder

parseDelimitedFrom(InputStream input)

public static SpokeSummary.SpokeStateReasonCount parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SpokeSummary.SpokeStateReasonCount
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static SpokeSummary.SpokeStateReasonCount parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
SpokeSummary.SpokeStateReasonCount
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static SpokeSummary.SpokeStateReasonCount parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
SpokeSummary.SpokeStateReasonCount
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static SpokeSummary.SpokeStateReasonCount parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SpokeSummary.SpokeStateReasonCount
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static SpokeSummary.SpokeStateReasonCount parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
SpokeSummary.SpokeStateReasonCount
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<SpokeSummary.SpokeStateReasonCount> parser()
Returns
TypeDescription
Parser<SpokeStateReasonCount>

Methods

equals(Object obj)

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

getCount()

public long getCount()

Output only. The total number of spokes that are inactive for a particular reason and associated with a given hub.

int64 count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
long

The count.

getDefaultInstanceForType()

public SpokeSummary.SpokeStateReasonCount getDefaultInstanceForType()
Returns
TypeDescription
SpokeSummary.SpokeStateReasonCount

getParserForType()

public Parser<SpokeSummary.SpokeStateReasonCount> getParserForType()
Returns
TypeDescription
Parser<SpokeStateReasonCount>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getStateReasonCode()

public Spoke.StateReason.Code getStateReasonCode()

Output only. The reason that a spoke is inactive.

.google.cloud.networkconnectivity.v1.Spoke.StateReason.Code state_reason_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Spoke.StateReason.Code

The stateReasonCode.

getStateReasonCodeValue()

public int getStateReasonCodeValue()

Output only. The reason that a spoke is inactive.

.google.cloud.networkconnectivity.v1.Spoke.StateReason.Code state_reason_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for stateReasonCode.

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 SpokeSummary.SpokeStateReasonCount.Builder newBuilderForType()
Returns
TypeDescription
SpokeSummary.SpokeStateReasonCount.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public SpokeSummary.SpokeStateReasonCount.Builder toBuilder()
Returns
TypeDescription
SpokeSummary.SpokeStateReasonCount.Builder

writeTo(CodedOutputStream output)

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