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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > NetworkUsageSample.BuilderImplements
NetworkUsageSampleOrBuilderStatic 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 |
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 |
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 |
clearOneof(Descriptors.OneofDescriptor oneof)
public NetworkUsageSample.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
NetworkUsageSample.Builder |
clone()
public NetworkUsageSample.Builder clone()
Returns | |
---|---|
Type | Description |
NetworkUsageSample.Builder |
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 |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public NetworkUsageSample.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
NetworkUsageSample.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final NetworkUsageSample.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
NetworkUsageSample.Builder |
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 |
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 |
setUnknownFields(UnknownFieldSet unknownFields)
public final NetworkUsageSample.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
NetworkUsageSample.Builder |