Class TransferTypes.AgentPool.BandwidthLimit.Builder (1.45.0)

public static final class TransferTypes.AgentPool.BandwidthLimit.Builder extends GeneratedMessageV3.Builder<TransferTypes.AgentPool.BandwidthLimit.Builder> implements TransferTypes.AgentPool.BandwidthLimitOrBuilder

Specifies a bandwidth limit for an agent pool.

Protobuf type google.storagetransfer.v1.AgentPool.BandwidthLimit

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TransferTypes.AgentPool.BandwidthLimit.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TransferTypes.AgentPool.BandwidthLimit.Builder
Overrides

build()

public TransferTypes.AgentPool.BandwidthLimit build()
Returns
Type Description
TransferTypes.AgentPool.BandwidthLimit

buildPartial()

public TransferTypes.AgentPool.BandwidthLimit buildPartial()
Returns
Type Description
TransferTypes.AgentPool.BandwidthLimit

clear()

public TransferTypes.AgentPool.BandwidthLimit.Builder clear()
Returns
Type Description
TransferTypes.AgentPool.BandwidthLimit.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public TransferTypes.AgentPool.BandwidthLimit.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
TransferTypes.AgentPool.BandwidthLimit.Builder
Overrides

clearLimitMbps()

public TransferTypes.AgentPool.BandwidthLimit.Builder clearLimitMbps()

Bandwidth rate in megabytes per second, distributed across all the agents in the pool.

int64 limit_mbps = 1;

Returns
Type Description
TransferTypes.AgentPool.BandwidthLimit.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public TransferTypes.AgentPool.BandwidthLimit.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
TransferTypes.AgentPool.BandwidthLimit.Builder
Overrides

clone()

public TransferTypes.AgentPool.BandwidthLimit.Builder clone()
Returns
Type Description
TransferTypes.AgentPool.BandwidthLimit.Builder
Overrides

getDefaultInstanceForType()

public TransferTypes.AgentPool.BandwidthLimit getDefaultInstanceForType()
Returns
Type Description
TransferTypes.AgentPool.BandwidthLimit

getDescriptorForType()

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

getLimitMbps()

public long getLimitMbps()

Bandwidth rate in megabytes per second, distributed across all the agents in the pool.

int64 limit_mbps = 1;

Returns
Type Description
long

The limitMbps.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public TransferTypes.AgentPool.BandwidthLimit.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
TransferTypes.AgentPool.BandwidthLimit.Builder
Overrides

mergeFrom(TransferTypes.AgentPool.BandwidthLimit other)

public TransferTypes.AgentPool.BandwidthLimit.Builder mergeFrom(TransferTypes.AgentPool.BandwidthLimit other)
Parameter
Name Description
other TransferTypes.AgentPool.BandwidthLimit
Returns
Type Description
TransferTypes.AgentPool.BandwidthLimit.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TransferTypes.AgentPool.BandwidthLimit.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TransferTypes.AgentPool.BandwidthLimit.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public TransferTypes.AgentPool.BandwidthLimit.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TransferTypes.AgentPool.BandwidthLimit.Builder
Overrides

setLimitMbps(long value)

public TransferTypes.AgentPool.BandwidthLimit.Builder setLimitMbps(long value)

Bandwidth rate in megabytes per second, distributed across all the agents in the pool.

int64 limit_mbps = 1;

Parameter
Name Description
value long

The limitMbps to set.

Returns
Type Description
TransferTypes.AgentPool.BandwidthLimit.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public TransferTypes.AgentPool.BandwidthLimit.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
TransferTypes.AgentPool.BandwidthLimit.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final TransferTypes.AgentPool.BandwidthLimit.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TransferTypes.AgentPool.BandwidthLimit.Builder
Overrides