Class InterconnectApplicationAwareInterconnectBandwidthPercentage (1.82.0)

public final class InterconnectApplicationAwareInterconnectBandwidthPercentage extends GeneratedMessageV3 implements InterconnectApplicationAwareInterconnectBandwidthPercentageOrBuilder

Specify bandwidth percentages [1-100] for various traffic classes in BandwidthPercentagePolicy. The sum of all percentages must equal 100. All traffic classes must have a percentage value specified.

Protobuf type google.cloud.compute.v1.InterconnectApplicationAwareInterconnectBandwidthPercentage

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > InterconnectApplicationAwareInterconnectBandwidthPercentage

Static Fields

PERCENTAGE_FIELD_NUMBER

public static final int PERCENTAGE_FIELD_NUMBER
Field Value
Type Description
int

TRAFFIC_CLASS_FIELD_NUMBER

public static final int TRAFFIC_CLASS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static InterconnectApplicationAwareInterconnectBandwidthPercentage getDefaultInstance()
Returns
Type Description
InterconnectApplicationAwareInterconnectBandwidthPercentage

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static InterconnectApplicationAwareInterconnectBandwidthPercentage.Builder newBuilder()
Returns
Type Description
InterconnectApplicationAwareInterconnectBandwidthPercentage.Builder

newBuilder(InterconnectApplicationAwareInterconnectBandwidthPercentage prototype)

public static InterconnectApplicationAwareInterconnectBandwidthPercentage.Builder newBuilder(InterconnectApplicationAwareInterconnectBandwidthPercentage prototype)
Parameter
Name Description
prototype InterconnectApplicationAwareInterconnectBandwidthPercentage
Returns
Type Description
InterconnectApplicationAwareInterconnectBandwidthPercentage.Builder

parseDelimitedFrom(InputStream input)

public static InterconnectApplicationAwareInterconnectBandwidthPercentage parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
InterconnectApplicationAwareInterconnectBandwidthPercentage
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static InterconnectApplicationAwareInterconnectBandwidthPercentage parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InterconnectApplicationAwareInterconnectBandwidthPercentage
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static InterconnectApplicationAwareInterconnectBandwidthPercentage parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
InterconnectApplicationAwareInterconnectBandwidthPercentage
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static InterconnectApplicationAwareInterconnectBandwidthPercentage parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InterconnectApplicationAwareInterconnectBandwidthPercentage
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static InterconnectApplicationAwareInterconnectBandwidthPercentage parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
InterconnectApplicationAwareInterconnectBandwidthPercentage
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static InterconnectApplicationAwareInterconnectBandwidthPercentage parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InterconnectApplicationAwareInterconnectBandwidthPercentage
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static InterconnectApplicationAwareInterconnectBandwidthPercentage parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
InterconnectApplicationAwareInterconnectBandwidthPercentage
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static InterconnectApplicationAwareInterconnectBandwidthPercentage parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InterconnectApplicationAwareInterconnectBandwidthPercentage
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static InterconnectApplicationAwareInterconnectBandwidthPercentage parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
InterconnectApplicationAwareInterconnectBandwidthPercentage
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static InterconnectApplicationAwareInterconnectBandwidthPercentage parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InterconnectApplicationAwareInterconnectBandwidthPercentage
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static InterconnectApplicationAwareInterconnectBandwidthPercentage parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
InterconnectApplicationAwareInterconnectBandwidthPercentage
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static InterconnectApplicationAwareInterconnectBandwidthPercentage parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InterconnectApplicationAwareInterconnectBandwidthPercentage
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<InterconnectApplicationAwareInterconnectBandwidthPercentage> parser()
Returns
Type Description
Parser<InterconnectApplicationAwareInterconnectBandwidthPercentage>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public InterconnectApplicationAwareInterconnectBandwidthPercentage getDefaultInstanceForType()
Returns
Type Description
InterconnectApplicationAwareInterconnectBandwidthPercentage

getParserForType()

public Parser<InterconnectApplicationAwareInterconnectBandwidthPercentage> getParserForType()
Returns
Type Description
Parser<InterconnectApplicationAwareInterconnectBandwidthPercentage>
Overrides

getPercentage()

public int getPercentage()

Bandwidth percentage for a specific traffic class.

optional uint32 percentage = 151909018;

Returns
Type Description
int

The percentage.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTrafficClass()

public String getTrafficClass()

TrafficClass whose bandwidth percentage is being specified. Check the TrafficClass enum for the list of possible values.

optional string traffic_class = 198180022;

Returns
Type Description
String

The trafficClass.

getTrafficClassBytes()

public ByteString getTrafficClassBytes()

TrafficClass whose bandwidth percentage is being specified. Check the TrafficClass enum for the list of possible values.

optional string traffic_class = 198180022;

Returns
Type Description
ByteString

The bytes for trafficClass.

hasPercentage()

public boolean hasPercentage()

Bandwidth percentage for a specific traffic class.

optional uint32 percentage = 151909018;

Returns
Type Description
boolean

Whether the percentage field is set.

hasTrafficClass()

public boolean hasTrafficClass()

TrafficClass whose bandwidth percentage is being specified. Check the TrafficClass enum for the list of possible values.

optional string traffic_class = 198180022;

Returns
Type Description
boolean

Whether the trafficClass field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public InterconnectApplicationAwareInterconnectBandwidthPercentage.Builder newBuilderForType()
Returns
Type Description
InterconnectApplicationAwareInterconnectBandwidthPercentage.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected InterconnectApplicationAwareInterconnectBandwidthPercentage.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
InterconnectApplicationAwareInterconnectBandwidthPercentage.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public InterconnectApplicationAwareInterconnectBandwidthPercentage.Builder toBuilder()
Returns
Type Description
InterconnectApplicationAwareInterconnectBandwidthPercentage.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException