public final class LogicalInterface extends GeneratedMessageV3 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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
Static Fields
public static final int INTERFACE_INDEX_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int LOGICAL_NETWORK_INTERFACES_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int NAME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
public static LogicalInterface getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static LogicalInterface.Builder newBuilder()
public static LogicalInterface.Builder newBuilder(LogicalInterface prototype)
public static LogicalInterface parseDelimitedFrom(InputStream input)
public static LogicalInterface parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static LogicalInterface parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
public static LogicalInterface parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static LogicalInterface parseFrom(ByteString data)
public static LogicalInterface parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static LogicalInterface parseFrom(CodedInputStream input)
public static LogicalInterface parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static LogicalInterface parseFrom(InputStream input)
public static LogicalInterface parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static LogicalInterface parseFrom(ByteBuffer data)
public static LogicalInterface parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<LogicalInterface> parser()
Methods
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
public LogicalInterface getDefaultInstanceForType()
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 |
---|
Name | Description |
index | int
|
public int getLogicalNetworkInterfacesCount()
List of logical network interfaces within a logical interface.
repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1;
Returns |
---|
Type | Description |
int | |
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;
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 |
---|
Name | Description |
index | int
|
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 |
---|
Type | Description |
ByteString | The bytes for name.
|
public Parser<LogicalInterface> getParserForType()
Overrides
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
Returns |
---|
Type | Description |
int | |
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public LogicalInterface.Builder newBuilderForType()
protected LogicalInterface.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
public LogicalInterface.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides