Class InterconnectApplicationAwareInterconnectBandwidthPercentage.Builder (1.93.0)

public static final class InterconnectApplicationAwareInterconnectBandwidthPercentage.Builder extends GeneratedMessage.Builder<InterconnectApplicationAwareInterconnectBandwidthPercentage.Builder> 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

java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > InterconnectApplicationAwareInterconnectBandwidthPercentage.Builder

Static Methods

getDescriptor()

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

Methods

build()

public InterconnectApplicationAwareInterconnectBandwidthPercentage build()
Returns
Type Description
InterconnectApplicationAwareInterconnectBandwidthPercentage

buildPartial()

public InterconnectApplicationAwareInterconnectBandwidthPercentage buildPartial()
Returns
Type Description
InterconnectApplicationAwareInterconnectBandwidthPercentage

clear()

public InterconnectApplicationAwareInterconnectBandwidthPercentage.Builder clear()
Returns
Type Description
InterconnectApplicationAwareInterconnectBandwidthPercentage.Builder
Overrides

clearPercentage()

public InterconnectApplicationAwareInterconnectBandwidthPercentage.Builder clearPercentage()

Bandwidth percentage for a specific traffic class.

optional uint32 percentage = 151909018;

Returns
Type Description
InterconnectApplicationAwareInterconnectBandwidthPercentage.Builder

This builder for chaining.

clearTrafficClass()

public InterconnectApplicationAwareInterconnectBandwidthPercentage.Builder clearTrafficClass()

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
InterconnectApplicationAwareInterconnectBandwidthPercentage.Builder

This builder for chaining.

getDefaultInstanceForType()

public InterconnectApplicationAwareInterconnectBandwidthPercentage getDefaultInstanceForType()
Returns
Type Description
InterconnectApplicationAwareInterconnectBandwidthPercentage

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getPercentage()

public int getPercentage()

Bandwidth percentage for a specific traffic class.

optional uint32 percentage = 151909018;

Returns
Type Description
int

The percentage.

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(InterconnectApplicationAwareInterconnectBandwidthPercentage other)

public InterconnectApplicationAwareInterconnectBandwidthPercentage.Builder mergeFrom(InterconnectApplicationAwareInterconnectBandwidthPercentage other)
Parameter
Name Description
other InterconnectApplicationAwareInterconnectBandwidthPercentage
Returns
Type Description
InterconnectApplicationAwareInterconnectBandwidthPercentage.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public InterconnectApplicationAwareInterconnectBandwidthPercentage.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InterconnectApplicationAwareInterconnectBandwidthPercentage.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public InterconnectApplicationAwareInterconnectBandwidthPercentage.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
InterconnectApplicationAwareInterconnectBandwidthPercentage.Builder
Overrides

setPercentage(int value)

public InterconnectApplicationAwareInterconnectBandwidthPercentage.Builder setPercentage(int value)

Bandwidth percentage for a specific traffic class.

optional uint32 percentage = 151909018;

Parameter
Name Description
value int

The percentage to set.

Returns
Type Description
InterconnectApplicationAwareInterconnectBandwidthPercentage.Builder

This builder for chaining.

setTrafficClass(String value)

public InterconnectApplicationAwareInterconnectBandwidthPercentage.Builder setTrafficClass(String value)

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

optional string traffic_class = 198180022;

Parameter
Name Description
value String

The trafficClass to set.

Returns
Type Description
InterconnectApplicationAwareInterconnectBandwidthPercentage.Builder

This builder for chaining.

setTrafficClassBytes(ByteString value)

public InterconnectApplicationAwareInterconnectBandwidthPercentage.Builder setTrafficClassBytes(ByteString value)

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

optional string traffic_class = 198180022;

Parameter
Name Description
value ByteString

The bytes for trafficClass to set.

Returns
Type Description
InterconnectApplicationAwareInterconnectBandwidthPercentage.Builder

This builder for chaining.