Class LogicalInterface

  • All Implemented Interfaces:
    LogicalInterfaceOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class LogicalInterface
    extends com.google.protobuf.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
    See Also:
    Serialized Form
    • Field Detail

      • LOGICAL_NETWORK_INTERFACES_FIELD_NUMBER

        public static final int LOGICAL_NETWORK_INTERFACES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • INTERFACE_INDEX_FIELD_NUMBER

        public static final int INTERFACE_INDEX_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • getLogicalNetworkInterfacesCount

        public int getLogicalNetworkInterfacesCount()
         List of logical network interfaces within a logical interface.
         
        repeated .google.cloud.baremetalsolution.v2.LogicalInterface.LogicalNetworkInterface logical_network_interfaces = 1;
        Specified by:
        getLogicalNetworkInterfacesCount in interface LogicalInterfaceOrBuilder
      • getName

        public String getName()
         Interface name. This is of syntax <bond><bond_mode> or <nic> and
         forms part of the network template name.
         
        string name = 2;
        Specified by:
        getName in interface LogicalInterfaceOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Interface name. This is of syntax <bond><bond_mode> or <nic> and
         forms part of the network template name.
         
        string name = 2;
        Specified by:
        getNameBytes in interface LogicalInterfaceOrBuilder
        Returns:
        The bytes for name.
      • getInterfaceIndex

        @Deprecated
        public int getInterfaceIndex()
        Deprecated.
        google.cloud.baremetalsolution.v2.LogicalInterface.interface_index is deprecated. See google/cloud/baremetalsolution/v2/network.proto;l=243
         The index of the logical interface mapping to the index of the hardware
         bond or nic on the chosen network template. This field is deprecated.
         
        int32 interface_index = 3 [deprecated = true];
        Specified by:
        getInterfaceIndex in interface LogicalInterfaceOrBuilder
        Returns:
        The interfaceIndex.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static LogicalInterface parseFrom​(ByteBuffer data)
                                          throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static LogicalInterface parseFrom​(ByteBuffer data,
                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static LogicalInterface parseFrom​(com.google.protobuf.ByteString data)
                                          throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static LogicalInterface parseFrom​(com.google.protobuf.ByteString data,
                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static LogicalInterface parseFrom​(byte[] data)
                                          throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static LogicalInterface parseFrom​(byte[] data,
                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static LogicalInterface parseFrom​(com.google.protobuf.CodedInputStream input,
                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws IOException
        Throws:
        IOException
      • newBuilderForType

        public LogicalInterface.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public LogicalInterface.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected LogicalInterface.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<LogicalInterface> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public LogicalInterface getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder