public static final class InterconnectApplicationAwareInterconnectBandwidthPercentage.Builder extends GeneratedMessage.Builder<InterconnectApplicationAwareInterconnectBandwidthPercentage.Builder> implements InterconnectApplicationAwareInterconnectBandwidthPercentageOrBuilderSpecify 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.BuilderStatic 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 |
|
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 |
|
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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public InterconnectApplicationAwareInterconnectBandwidthPercentage.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
InterconnectApplicationAwareInterconnectBandwidthPercentage.Builder |
|
setPercentage(int value)
public InterconnectApplicationAwareInterconnectBandwidthPercentage.Builder setPercentage(int value)Bandwidth percentage for a specific traffic class.
optional uint32 percentage = 151909018;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe 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 |
StringThe 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 |
ByteStringThe bytes for trafficClass to set. |
| Returns | |
|---|---|
| Type | Description |
InterconnectApplicationAwareInterconnectBandwidthPercentage.Builder |
This builder for chaining. |