Class SpokeSummary.SpokeTypeCount (1.31.0)

public static final class SpokeSummary.SpokeTypeCount extends GeneratedMessageV3 implements SpokeSummary.SpokeTypeCountOrBuilder

The number of spokes of a given type that are associated with a specific hub. The type indicates what kind of resource is associated with the spoke.

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

Static Fields

COUNT_FIELD_NUMBER

public static final int COUNT_FIELD_NUMBER
Field Value
TypeDescription
int

SPOKE_TYPE_FIELD_NUMBER

public static final int SPOKE_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

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

getDescriptor()

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

newBuilder()

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

newBuilder(SpokeSummary.SpokeTypeCount prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

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 of this type that are associated with the hub.

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

Returns
TypeDescription
long

The count.

getDefaultInstanceForType()

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

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSpokeType()

public SpokeType getSpokeType()

Output only. The type of the spokes.

.google.cloud.networkconnectivity.v1.SpokeType spoke_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
SpokeType

The spokeType.

getSpokeTypeValue()

public int getSpokeTypeValue()

Output only. The type of the spokes.

.google.cloud.networkconnectivity.v1.SpokeType spoke_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for spokeType.

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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