Class NetworkUsageSample.Builder (0.13.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public NetworkUsageSample.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
NetworkUsageSample.Builder
Overrides

build()

public NetworkUsageSample build()
Returns
TypeDescription
NetworkUsageSample

buildPartial()

public NetworkUsageSample buildPartial()
Returns
TypeDescription
NetworkUsageSample

clear()

public NetworkUsageSample.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
NetworkUsageSample.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public NetworkUsageSample.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
NetworkUsageSample.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public NetworkUsageSample.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
NetworkUsageSample.Builder
Overrides

clone()

public NetworkUsageSample.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
float

The averageIngressBps.

getDefaultInstanceForType()

public NetworkUsageSample getDefaultInstanceForType()
Returns
TypeDescription
NetworkUsageSample

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(NetworkUsageSample other)

public NetworkUsageSample.Builder mergeFrom(NetworkUsageSample other)
Parameter
NameDescription
otherNetworkUsageSample
Returns
TypeDescription
NetworkUsageSample.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public NetworkUsageSample.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NetworkUsageSample.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public NetworkUsageSample.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
NetworkUsageSample.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NetworkUsageSample.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuefloat

The averageEgressBps to set.

Returns
TypeDescription
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
NameDescription
valuefloat

The averageIngressBps to set.

Returns
TypeDescription
NetworkUsageSample.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public NetworkUsageSample.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
NetworkUsageSample.Builder
Overrides

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

public NetworkUsageSample.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
NetworkUsageSample.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final NetworkUsageSample.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
NetworkUsageSample.Builder
Overrides