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.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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()
Methods
public NetworkUsage.Builder addAllUsedIps(Iterable<String> values)
All used IP addresses in this network.
repeated string used_ips = 2;
public NetworkUsage.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
public NetworkUsage build()
public NetworkUsage buildPartial()
public NetworkUsage.Builder clear()
Overrides
public NetworkUsage.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public NetworkUsage.Builder clearNetwork()
Network.
.google.cloud.baremetalsolution.v2.Network network = 1;
public NetworkUsage.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public NetworkUsage.Builder clearUsedIps()
All used IP addresses in this network.
repeated string used_ips = 2;
public NetworkUsage.Builder clone()
Overrides
public NetworkUsage getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public Network getNetwork()
Network.
.google.cloud.baremetalsolution.v2.Network network = 1;
Returns |
Type |
Description |
Network |
The network.
|
public Network.Builder getNetworkBuilder()
Network.
.google.cloud.baremetalsolution.v2.Network network = 1;
public NetworkOrBuilder getNetworkOrBuilder()
Network.
.google.cloud.baremetalsolution.v2.Network network = 1;
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;
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()
Overrides
public final boolean isInitialized()
Overrides
public NetworkUsage.Builder mergeFrom(NetworkUsage other)
public NetworkUsage.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public NetworkUsage.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public NetworkUsage.Builder mergeNetwork(Network value)
Network.
.google.cloud.baremetalsolution.v2.Network network = 1;
Parameter |
Name |
Description |
value |
Network
|
public final NetworkUsage.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public NetworkUsage.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public NetworkUsage.Builder setNetwork(Network value)
Network.
.google.cloud.baremetalsolution.v2.Network network = 1;
Parameter |
Name |
Description |
value |
Network
|
public NetworkUsage.Builder setNetwork(Network.Builder builderForValue)
Network.
.google.cloud.baremetalsolution.v2.Network network = 1;
public NetworkUsage.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final NetworkUsage.Builder setUnknownFields(UnknownFieldSet unknownFields)
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.
|