Class NetworkConfig

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

    public final class NetworkConfig
    extends com.google.protobuf.GeneratedMessageV3
    implements NetworkConfigOrBuilder
     Configuration parameters for a new network.
     
    Protobuf type google.cloud.baremetalsolution.v2.NetworkConfig
    See Also:
    Serialized Form
    • 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
      • getName

        public String getName()
         Output only. The name of the network config.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getName in interface NetworkConfigOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Output only. The name of the network config.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getNameBytes in interface NetworkConfigOrBuilder
        Returns:
        The bytes for name.
      • getId

        public String getId()
         A transient unique identifier to identify a volume within an
         ProvisioningConfig request.
         
        string id = 2;
        Specified by:
        getId in interface NetworkConfigOrBuilder
        Returns:
        The id.
      • getIdBytes

        public com.google.protobuf.ByteString getIdBytes()
         A transient unique identifier to identify a volume within an
         ProvisioningConfig request.
         
        string id = 2;
        Specified by:
        getIdBytes in interface NetworkConfigOrBuilder
        Returns:
        The bytes for id.
      • getTypeValue

        public int getTypeValue()
         The type of this network, either Client or Private.
         
        .google.cloud.baremetalsolution.v2.NetworkConfig.Type type = 3;
        Specified by:
        getTypeValue in interface NetworkConfigOrBuilder
        Returns:
        The enum numeric value on the wire for type.
      • getType

        public NetworkConfig.Type getType()
         The type of this network, either Client or Private.
         
        .google.cloud.baremetalsolution.v2.NetworkConfig.Type type = 3;
        Specified by:
        getType in interface NetworkConfigOrBuilder
        Returns:
        The type.
      • getBandwidthValue

        public int getBandwidthValue()
         Interconnect bandwidth. Set only when type is CLIENT.
         
        .google.cloud.baremetalsolution.v2.NetworkConfig.Bandwidth bandwidth = 4;
        Specified by:
        getBandwidthValue in interface NetworkConfigOrBuilder
        Returns:
        The enum numeric value on the wire for bandwidth.
      • getVlanAttachmentsCount

        public int getVlanAttachmentsCount()
         List of VLAN attachments. As of now there are always 2 attachments, but it
         is going to change in  the future (multi vlan).
         
        repeated .google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment vlan_attachments = 5;
        Specified by:
        getVlanAttachmentsCount in interface NetworkConfigOrBuilder
      • getVlanAttachments

        public NetworkConfig.IntakeVlanAttachment getVlanAttachments​(int index)
         List of VLAN attachments. As of now there are always 2 attachments, but it
         is going to change in  the future (multi vlan).
         
        repeated .google.cloud.baremetalsolution.v2.NetworkConfig.IntakeVlanAttachment vlan_attachments = 5;
        Specified by:
        getVlanAttachments in interface NetworkConfigOrBuilder
      • getCidrBytes

        public com.google.protobuf.ByteString getCidrBytes()
         CIDR range of the network.
         
        string cidr = 6;
        Specified by:
        getCidrBytes in interface NetworkConfigOrBuilder
        Returns:
        The bytes for cidr.
      • getServiceCidrValue

        public int getServiceCidrValue()
         Service CIDR, if any.
         
        .google.cloud.baremetalsolution.v2.NetworkConfig.ServiceCidr service_cidr = 7;
        Specified by:
        getServiceCidrValue in interface NetworkConfigOrBuilder
        Returns:
        The enum numeric value on the wire for serviceCidr.
      • getUserNote

        public String getUserNote()
         User note field, it can be used by customers to add additional information
         for the BMS Ops team .
         
        string user_note = 8;
        Specified by:
        getUserNote in interface NetworkConfigOrBuilder
        Returns:
        The userNote.
      • getUserNoteBytes

        public com.google.protobuf.ByteString getUserNoteBytes()
         User note field, it can be used by customers to add additional information
         for the BMS Ops team .
         
        string user_note = 8;
        Specified by:
        getUserNoteBytes in interface NetworkConfigOrBuilder
        Returns:
        The bytes for userNote.
      • getGcpService

        public String getGcpService()
         The GCP service of the network. Available gcp_service are in
         https://cloud.google.com/bare-metal/docs/bms-planning.
         
        string gcp_service = 9;
        Specified by:
        getGcpService in interface NetworkConfigOrBuilder
        Returns:
        The gcpService.
      • getGcpServiceBytes

        public com.google.protobuf.ByteString getGcpServiceBytes()
         The GCP service of the network. Available gcp_service are in
         https://cloud.google.com/bare-metal/docs/bms-planning.
         
        string gcp_service = 9;
        Specified by:
        getGcpServiceBytes in interface NetworkConfigOrBuilder
        Returns:
        The bytes for gcpService.
      • getVlanSameProject

        public boolean getVlanSameProject()
         Whether the VLAN attachment pair is located in the same project.
         
        bool vlan_same_project = 10;
        Specified by:
        getVlanSameProject in interface NetworkConfigOrBuilder
        Returns:
        The vlanSameProject.
      • getJumboFramesEnabled

        public boolean getJumboFramesEnabled()
         The JumboFramesEnabled option for customer to set.
         
        bool jumbo_frames_enabled = 11;
        Specified by:
        getJumboFramesEnabled in interface NetworkConfigOrBuilder
        Returns:
        The jumboFramesEnabled.
      • 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 NetworkConfig parseFrom​(ByteBuffer data)
                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

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

        public static NetworkConfig getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<NetworkConfig> parser()
      • getParserForType

        public com.google.protobuf.Parser<NetworkConfig> 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 NetworkConfig getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder