Class NetworkUsage.Builder (0.18.0)

public static final class NetworkUsage.Builder extends GeneratedMessageV3.Builder<NetworkUsage.Builder> implements NetworkUsageOrBuilder

Network with all used IP addresses.

Protobuf type google.cloud.baremetalsolution.v2.NetworkUsage

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllUsedIps(Iterable<String> values)

public NetworkUsage.Builder addAllUsedIps(Iterable<String> values)

All used IP addresses in this network.

repeated string used_ips = 2;

Parameter
NameDescription
valuesIterable<String>

The usedIps to add.

Returns
TypeDescription
NetworkUsage.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUsedIps(String value)

public NetworkUsage.Builder addUsedIps(String value)

All used IP addresses in this network.

repeated string used_ips = 2;

Parameter
NameDescription
valueString

The usedIps to add.

Returns
TypeDescription
NetworkUsage.Builder

This builder for chaining.

addUsedIpsBytes(ByteString value)

public NetworkUsage.Builder addUsedIpsBytes(ByteString value)

All used IP addresses in this network.

repeated string used_ips = 2;

Parameter
NameDescription
valueByteString

The bytes of the usedIps to add.

Returns
TypeDescription
NetworkUsage.Builder

This builder for chaining.

build()

public NetworkUsage build()
Returns
TypeDescription
NetworkUsage

buildPartial()

public NetworkUsage buildPartial()
Returns
TypeDescription
NetworkUsage

clear()

public NetworkUsage.Builder clear()
Returns
TypeDescription
NetworkUsage.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearNetwork()

public NetworkUsage.Builder clearNetwork()

Network.

.google.cloud.baremetalsolution.v2.Network network = 1;

Returns
TypeDescription
NetworkUsage.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUsedIps()

public NetworkUsage.Builder clearUsedIps()

All used IP addresses in this network.

repeated string used_ips = 2;

Returns
TypeDescription
NetworkUsage.Builder

This builder for chaining.

clone()

public NetworkUsage.Builder clone()
Returns
TypeDescription
NetworkUsage.Builder
Overrides

getDefaultInstanceForType()

public NetworkUsage getDefaultInstanceForType()
Returns
TypeDescription
NetworkUsage

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNetwork()

public Network getNetwork()

Network.

.google.cloud.baremetalsolution.v2.Network network = 1;

Returns
TypeDescription
Network

The network.

getNetworkBuilder()

public Network.Builder getNetworkBuilder()

Network.

.google.cloud.baremetalsolution.v2.Network network = 1;

Returns
TypeDescription
Network.Builder

getNetworkOrBuilder()

public NetworkOrBuilder getNetworkOrBuilder()

Network.

.google.cloud.baremetalsolution.v2.Network network = 1;

Returns
TypeDescription
NetworkOrBuilder

getUsedIps(int index)

public String getUsedIps(int index)

All used IP addresses in this network.

repeated string used_ips = 2;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The usedIps at the given index.

getUsedIpsBytes(int index)

public ByteString getUsedIpsBytes(int index)

All used IP addresses in this network.

repeated string used_ips = 2;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the usedIps at the given index.

getUsedIpsCount()

public int getUsedIpsCount()

All used IP addresses in this network.

repeated string used_ips = 2;

Returns
TypeDescription
int

The count of usedIps.

getUsedIpsList()

public ProtocolStringList getUsedIpsList()

All used IP addresses in this network.

repeated string used_ips = 2;

Returns
TypeDescription
ProtocolStringList

A list containing the usedIps.

hasNetwork()

public boolean hasNetwork()

Network.

.google.cloud.baremetalsolution.v2.Network network = 1;

Returns
TypeDescription
boolean

Whether the network field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(NetworkUsage other)

public NetworkUsage.Builder mergeFrom(NetworkUsage other)
Parameter
NameDescription
otherNetworkUsage
Returns
TypeDescription
NetworkUsage.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeNetwork(Network value)

public NetworkUsage.Builder mergeNetwork(Network value)

Network.

.google.cloud.baremetalsolution.v2.Network network = 1;

Parameter
NameDescription
valueNetwork
Returns
TypeDescription
NetworkUsage.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NetworkUsage.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
NetworkUsage.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setNetwork(Network value)

public NetworkUsage.Builder setNetwork(Network value)

Network.

.google.cloud.baremetalsolution.v2.Network network = 1;

Parameter
NameDescription
valueNetwork
Returns
TypeDescription
NetworkUsage.Builder

setNetwork(Network.Builder builderForValue)

public NetworkUsage.Builder setNetwork(Network.Builder builderForValue)

Network.

.google.cloud.baremetalsolution.v2.Network network = 1;

Parameter
NameDescription
builderForValueNetwork.Builder
Returns
TypeDescription
NetworkUsage.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUsedIps(int index, String value)

public NetworkUsage.Builder setUsedIps(int index, String value)

All used IP addresses in this network.

repeated string used_ips = 2;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The usedIps to set.

Returns
TypeDescription
NetworkUsage.Builder

This builder for chaining.