Class NetworkUsageSample.Builder (0.34.0)

public static final class NetworkUsageSample.Builder extends GeneratedMessageV3.Builder<NetworkUsageSample.Builder> implements NetworkUsageSampleOrBuilder

Network usage sample. Values are across all network interfaces.

Protobuf type google.cloud.migrationcenter.v1.NetworkUsageSample

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public NetworkUsageSample build()
Returns
Type Description
NetworkUsageSample

buildPartial()

public NetworkUsageSample buildPartial()
Returns
Type Description
NetworkUsageSample

clear()

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

clearAverageEgressBps()

public NetworkUsageSample.Builder clearAverageEgressBps()

Average network egress in B/s sampled over a short window. Must be non-negative.

float average_egress_bps = 2;

Returns
Type Description
NetworkUsageSample.Builder

This builder for chaining.

clearAverageIngressBps()

public NetworkUsageSample.Builder clearAverageIngressBps()

Average network ingress in B/s sampled over a short window. Must be non-negative.

float average_ingress_bps = 1;

Returns
Type Description
NetworkUsageSample.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public NetworkUsageSample.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
NetworkUsageSample.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public NetworkUsageSample.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
NetworkUsageSample.Builder
Overrides

clone()

public NetworkUsageSample.Builder clone()
Returns
Type Description
NetworkUsageSample.Builder
Overrides

getAverageEgressBps()

public float getAverageEgressBps()

Average network egress in B/s sampled over a short window. Must be non-negative.

float average_egress_bps = 2;

Returns
Type Description
float

The averageEgressBps.

getAverageIngressBps()

public float getAverageIngressBps()

Average network ingress in B/s sampled over a short window. Must be non-negative.

float average_ingress_bps = 1;

Returns
Type Description
float

The averageIngressBps.

getDefaultInstanceForType()

public NetworkUsageSample getDefaultInstanceForType()
Returns
Type Description
NetworkUsageSample

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(NetworkUsageSample other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NetworkUsageSample.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
NetworkUsageSample.Builder
Overrides

setAverageEgressBps(float value)

public NetworkUsageSample.Builder setAverageEgressBps(float value)

Average network egress in B/s sampled over a short window. Must be non-negative.

float average_egress_bps = 2;

Parameter
Name Description
value float

The averageEgressBps to set.

Returns
Type Description
NetworkUsageSample.Builder

This builder for chaining.

setAverageIngressBps(float value)

public NetworkUsageSample.Builder setAverageIngressBps(float value)

Average network ingress in B/s sampled over a short window. Must be non-negative.

float average_ingress_bps = 1;

Parameter
Name Description
value float

The averageIngressBps to set.

Returns
Type Description
NetworkUsageSample.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final NetworkUsageSample.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
NetworkUsageSample.Builder
Overrides