public static final class LogicalInterface.Builder extends GeneratedMessageV3.Builder<LogicalInterface.Builder> implements LogicalInterfaceOrBuilder
Each logical interface represents a logical abstraction of the underlying
physical interface (for eg. bond, nic) of the instance. Each logical
interface can effectively map to multiple network-IP pairs and still be
mapped to one underlying physical interface.
Protobuf type google.cloud.baremetalsolution.v2.LogicalInterface
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
public LogicalInterface.Builder addAllLogicalNetworkInterfaces(Iterable<? extends LogicalInterface.LogicalNetworkInterface> values)
List of logical network interfaces within a logical interface.
repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1;
Parameter
Name | Description |
values | Iterable<? extends com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface>
|
Returns
public LogicalInterface.Builder addLogicalNetworkInterfaces(LogicalInterface.LogicalNetworkInterface value)
List of logical network interfaces within a logical interface.
repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1;
Parameter
Returns
public LogicalInterface.Builder addLogicalNetworkInterfaces(LogicalInterface.LogicalNetworkInterface.Builder builderForValue)
List of logical network interfaces within a logical interface.
repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1;
Parameter
Returns
public LogicalInterface.Builder addLogicalNetworkInterfaces(int index, LogicalInterface.LogicalNetworkInterface value)
List of logical network interfaces within a logical interface.
repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1;
Parameters
Returns
public LogicalInterface.Builder addLogicalNetworkInterfaces(int index, LogicalInterface.LogicalNetworkInterface.Builder builderForValue)
List of logical network interfaces within a logical interface.
repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1;
Parameters
Returns
public LogicalInterface.LogicalNetworkInterface.Builder addLogicalNetworkInterfacesBuilder()
List of logical network interfaces within a logical interface.
repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1;
Returns
public LogicalInterface.LogicalNetworkInterface.Builder addLogicalNetworkInterfacesBuilder(int index)
List of logical network interfaces within a logical interface.
repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1;
Parameter
Returns
public LogicalInterface.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public LogicalInterface build()
Returns
public LogicalInterface buildPartial()
Returns
public LogicalInterface.Builder clear()
Returns
Overrides
public LogicalInterface.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public LogicalInterface.Builder clearInterfaceIndex()
The index of the logical interface mapping to the index of the hardware
bond or nic on the chosen network template.
int32 interface_index = 3;
Returns
public LogicalInterface.Builder clearLogicalNetworkInterfaces()
List of logical network interfaces within a logical interface.
repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1;
Returns
public LogicalInterface.Builder clearName()
Interface name. This is of syntax <bond><bond_mode> or <nic> and
forms part of the network template name.
string name = 2;
Returns
public LogicalInterface.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public LogicalInterface.Builder clone()
Returns
Overrides
public LogicalInterface getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
public int getInterfaceIndex()
The index of the logical interface mapping to the index of the hardware
bond or nic on the chosen network template.
int32 interface_index = 3;
Returns
Type | Description |
int | The interfaceIndex.
|
public LogicalInterface.LogicalNetworkInterface getLogicalNetworkInterfaces(int index)
List of logical network interfaces within a logical interface.
repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1;
Parameter
Returns
public LogicalInterface.LogicalNetworkInterface.Builder getLogicalNetworkInterfacesBuilder(int index)
List of logical network interfaces within a logical interface.
repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1;
Parameter
Returns
public List<LogicalInterface.LogicalNetworkInterface.Builder> getLogicalNetworkInterfacesBuilderList()
List of logical network interfaces within a logical interface.
repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1;
Returns
public int getLogicalNetworkInterfacesCount()
List of logical network interfaces within a logical interface.
repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1;
Returns
public List<LogicalInterface.LogicalNetworkInterface> getLogicalNetworkInterfacesList()
List of logical network interfaces within a logical interface.
repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1;
Returns
public LogicalInterface.LogicalNetworkInterfaceOrBuilder getLogicalNetworkInterfacesOrBuilder(int index)
List of logical network interfaces within a logical interface.
repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1;
Parameter
Returns
public List<? extends LogicalInterface.LogicalNetworkInterfaceOrBuilder> getLogicalNetworkInterfacesOrBuilderList()
List of logical network interfaces within a logical interface.
repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1;
Returns
Type | Description |
List<? extends com.google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterfaceOrBuilder> | |
Interface name. This is of syntax <bond><bond_mode> or <nic> and
forms part of the network template name.
string name = 2;
Returns
Type | Description |
String | The name.
|
public ByteString getNameBytes()
Interface name. This is of syntax <bond><bond_mode> or <nic> and
forms part of the network template name.
string name = 2;
Returns
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public LogicalInterface.Builder mergeFrom(LogicalInterface other)
Parameter
Returns
public LogicalInterface.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public LogicalInterface.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public final LogicalInterface.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public LogicalInterface.Builder removeLogicalNetworkInterfaces(int index)
List of logical network interfaces within a logical interface.
repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1;
Parameter
Returns
public LogicalInterface.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public LogicalInterface.Builder setInterfaceIndex(int value)
The index of the logical interface mapping to the index of the hardware
bond or nic on the chosen network template.
int32 interface_index = 3;
Parameter
Name | Description |
value | int
The interfaceIndex to set.
|
Returns
public LogicalInterface.Builder setLogicalNetworkInterfaces(int index, LogicalInterface.LogicalNetworkInterface value)
List of logical network interfaces within a logical interface.
repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1;
Parameters
Returns
public LogicalInterface.Builder setLogicalNetworkInterfaces(int index, LogicalInterface.LogicalNetworkInterface.Builder builderForValue)
List of logical network interfaces within a logical interface.
repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1;
Parameters
Returns
public LogicalInterface.Builder setName(String value)
Interface name. This is of syntax <bond><bond_mode> or <nic> and
forms part of the network template name.
string name = 2;
Parameter
Name | Description |
value | String
The name to set.
|
Returns
public LogicalInterface.Builder setNameBytes(ByteString value)
Interface name. This is of syntax <bond><bond_mode> or <nic> and
forms part of the network template name.
string name = 2;
Parameter
Name | Description |
value | ByteString
The bytes for name to set.
|
Returns
public LogicalInterface.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public final LogicalInterface.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides