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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
public NetworkUsage.Builder addAllUsedIps(Iterable<String> values)
All used IP addresses in this network.
repeated string used_ips = 2;
Parameter
Returns
public NetworkUsage.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
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
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
public NetworkUsage build()
Returns
public NetworkUsage buildPartial()
Returns
public NetworkUsage.Builder clear()
Returns
Overrides
public NetworkUsage.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public NetworkUsage.Builder clearNetwork()
Network.
.google.cloud.baremetalsolution.v2.Network network = 1;
Returns
public NetworkUsage.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public NetworkUsage.Builder clearUsedIps()
All used IP addresses in this network.
repeated string used_ips = 2;
Returns
public NetworkUsage.Builder clone()
Returns
Overrides
public NetworkUsage getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
public Network getNetwork()
Network.
.google.cloud.baremetalsolution.v2.Network network = 1;
Returns
public Network.Builder getNetworkBuilder()
Network.
.google.cloud.baremetalsolution.v2.Network network = 1;
Returns
public NetworkOrBuilder getNetworkOrBuilder()
Network.
.google.cloud.baremetalsolution.v2.Network network = 1;
Returns
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.
|
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.
|
public int getUsedIpsCount()
All used IP addresses in this network.
repeated string used_ips = 2;
Returns
Type | Description |
int | The count of usedIps.
|
public ProtocolStringList getUsedIpsList()
All used IP addresses in this network.
repeated string used_ips = 2;
Returns
public boolean hasNetwork()
Network.
.google.cloud.baremetalsolution.v2.Network network = 1;
Returns
Type | Description |
boolean | Whether the network field is set.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public NetworkUsage.Builder mergeFrom(NetworkUsage other)
Parameter
Returns
public NetworkUsage.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public NetworkUsage.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public NetworkUsage.Builder mergeNetwork(Network value)
Network.
.google.cloud.baremetalsolution.v2.Network network = 1;
Parameter
Returns
public final NetworkUsage.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public NetworkUsage.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public NetworkUsage.Builder setNetwork(Network value)
Network.
.google.cloud.baremetalsolution.v2.Network network = 1;
Parameter
Returns
public NetworkUsage.Builder setNetwork(Network.Builder builderForValue)
Network.
.google.cloud.baremetalsolution.v2.Network network = 1;
Parameter
Returns
public NetworkUsage.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public final NetworkUsage.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
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