Class NetworkUsage.Builder (0.46.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
Type Description
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
Name Description
values Iterable<String>

The usedIps to add.

Returns
Type Description
NetworkUsage.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public NetworkUsage.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The usedIps to add.

Returns
Type Description
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
Name Description
value ByteString

The bytes of the usedIps to add.

Returns
Type Description
NetworkUsage.Builder

This builder for chaining.

build()

public NetworkUsage build()
Returns
Type Description
NetworkUsage

buildPartial()

public NetworkUsage buildPartial()
Returns
Type Description
NetworkUsage

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNetwork()

public NetworkUsage.Builder clearNetwork()

Network.

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

Returns
Type Description
NetworkUsage.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUsedIps()

public NetworkUsage.Builder clearUsedIps()

All used IP addresses in this network.

repeated string used_ips = 2;

Returns
Type Description
NetworkUsage.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public NetworkUsage getDefaultInstanceForType()
Returns
Type Description
NetworkUsage

getDescriptorForType()

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

getNetwork()

public Network getNetwork()

Network.

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

Returns
Type Description
Network

The network.

getNetworkBuilder()

public Network.Builder getNetworkBuilder()

Network.

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

Returns
Type Description
Network.Builder

getNetworkOrBuilder()

public NetworkOrBuilder getNetworkOrBuilder()

Network.

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

Returns
Type Description
NetworkOrBuilder

getUsedIps(int index)

public String getUsedIps(int index)

All used IP addresses in this network.

repeated string used_ips = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
int

The count of usedIps.

getUsedIpsList()

public ProtocolStringList getUsedIpsList()

All used IP addresses in this network.

repeated string used_ips = 2;

Returns
Type Description
ProtocolStringList

A list containing the usedIps.

hasNetwork()

public boolean hasNetwork()

Network.

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

Returns
Type Description
boolean

Whether the network field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(NetworkUsage other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeNetwork(Network value)

public NetworkUsage.Builder mergeNetwork(Network value)

Network.

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

Parameter
Name Description
value Network
Returns
Type Description
NetworkUsage.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setNetwork(Network value)

public NetworkUsage.Builder setNetwork(Network value)

Network.

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

Parameter
Name Description
value Network
Returns
Type Description
NetworkUsage.Builder

setNetwork(Network.Builder builderForValue)

public NetworkUsage.Builder setNetwork(Network.Builder builderForValue)

Network.

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

Parameter
Name Description
builderForValue Network.Builder
Returns
Type Description
NetworkUsage.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final NetworkUsage.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
index int

The index to set the value at.

value String

The usedIps to set.

Returns
Type Description
NetworkUsage.Builder

This builder for chaining.