Class SpokeSummary.SpokeStateCount (1.40.0)

public static final class SpokeSummary.SpokeStateCount extends GeneratedMessageV3 implements SpokeSummary.SpokeStateCountOrBuilder

The number of spokes that are in a particular state and associated with a given hub.

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

Static Fields

COUNT_FIELD_NUMBER

public static final int COUNT_FIELD_NUMBER
Field Value
TypeDescription
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

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

getDescriptor()

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

newBuilder()

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

newBuilder(SpokeSummary.SpokeStateCount prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

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 in this state and associated with a given hub.

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

Returns
TypeDescription
long

The count.

getDefaultInstanceForType()

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

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getState()

public State getState()

Output only. The state of the spokes.

.google.cloud.networkconnectivity.v1.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
State

The state.

getStateValue()

public int getStateValue()

Output only. The state of the spokes.

.google.cloud.networkconnectivity.v1.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for state.

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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