Class Network

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

    public final class Network
    extends com.google.protobuf.GeneratedMessageV3
    implements NetworkOrBuilder
     A Network.
     
    Protobuf type google.cloud.baremetalsolution.v2.Network
    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()
      • internalGetMapField

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3
      • internalGetFieldAccessorTable

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

        public String getName()
         Output only. The resource name of this `Network`.
         Resource names are schemeless URIs that follow the conventions in
         https://cloud.google.com/apis/design/resource_names.
         Format:
         `projects/{project}/locations/{location}/networks/{network}`
         
        string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getName in interface NetworkOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Output only. The resource name of this `Network`.
         Resource names are schemeless URIs that follow the conventions in
         https://cloud.google.com/apis/design/resource_names.
         Format:
         `projects/{project}/locations/{location}/networks/{network}`
         
        string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getNameBytes in interface NetworkOrBuilder
        Returns:
        The bytes for name.
      • getId

        public String getId()
         An identifier for the `Network`, generated by the backend.
         
        string id = 10;
        Specified by:
        getId in interface NetworkOrBuilder
        Returns:
        The id.
      • getIdBytes

        public com.google.protobuf.ByteString getIdBytes()
         An identifier for the `Network`, generated by the backend.
         
        string id = 10;
        Specified by:
        getIdBytes in interface NetworkOrBuilder
        Returns:
        The bytes for id.
      • getTypeValue

        public int getTypeValue()
         The type of this network.
         
        .google.cloud.baremetalsolution.v2.Network.Type type = 2;
        Specified by:
        getTypeValue in interface NetworkOrBuilder
        Returns:
        The enum numeric value on the wire for type.
      • getType

        public Network.Type getType()
         The type of this network.
         
        .google.cloud.baremetalsolution.v2.Network.Type type = 2;
        Specified by:
        getType in interface NetworkOrBuilder
        Returns:
        The type.
      • getIpAddress

        public String getIpAddress()
         IP address configured.
         
        string ip_address = 3;
        Specified by:
        getIpAddress in interface NetworkOrBuilder
        Returns:
        The ipAddress.
      • getIpAddressBytes

        public com.google.protobuf.ByteString getIpAddressBytes()
         IP address configured.
         
        string ip_address = 3;
        Specified by:
        getIpAddressBytes in interface NetworkOrBuilder
        Returns:
        The bytes for ipAddress.
      • getMacAddressList

        public com.google.protobuf.ProtocolStringList getMacAddressList()
         List of physical interfaces.
         
        repeated string mac_address = 4;
        Specified by:
        getMacAddressList in interface NetworkOrBuilder
        Returns:
        A list containing the macAddress.
      • getMacAddressCount

        public int getMacAddressCount()
         List of physical interfaces.
         
        repeated string mac_address = 4;
        Specified by:
        getMacAddressCount in interface NetworkOrBuilder
        Returns:
        The count of macAddress.
      • getMacAddress

        public String getMacAddress​(int index)
         List of physical interfaces.
         
        repeated string mac_address = 4;
        Specified by:
        getMacAddress in interface NetworkOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The macAddress at the given index.
      • getMacAddressBytes

        public com.google.protobuf.ByteString getMacAddressBytes​(int index)
         List of physical interfaces.
         
        repeated string mac_address = 4;
        Specified by:
        getMacAddressBytes in interface NetworkOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the macAddress at the given index.
      • getStateValue

        public int getStateValue()
         The Network state.
         
        .google.cloud.baremetalsolution.v2.Network.State state = 6;
        Specified by:
        getStateValue in interface NetworkOrBuilder
        Returns:
        The enum numeric value on the wire for state.
      • getState

        public Network.State getState()
         The Network state.
         
        .google.cloud.baremetalsolution.v2.Network.State state = 6;
        Specified by:
        getState in interface NetworkOrBuilder
        Returns:
        The state.
      • getVlanId

        public String getVlanId()
         The vlan id of the Network.
         
        string vlan_id = 7;
        Specified by:
        getVlanId in interface NetworkOrBuilder
        Returns:
        The vlanId.
      • getVlanIdBytes

        public com.google.protobuf.ByteString getVlanIdBytes()
         The vlan id of the Network.
         
        string vlan_id = 7;
        Specified by:
        getVlanIdBytes in interface NetworkOrBuilder
        Returns:
        The bytes for vlanId.
      • getCidr

        public String getCidr()
         The cidr of the Network.
         
        string cidr = 8;
        Specified by:
        getCidr in interface NetworkOrBuilder
        Returns:
        The cidr.
      • getCidrBytes

        public com.google.protobuf.ByteString getCidrBytes()
         The cidr of the Network.
         
        string cidr = 8;
        Specified by:
        getCidrBytes in interface NetworkOrBuilder
        Returns:
        The bytes for cidr.
      • hasVrf

        public boolean hasVrf()
         The vrf for the Network.
         
        .google.cloud.baremetalsolution.v2.VRF vrf = 9;
        Specified by:
        hasVrf in interface NetworkOrBuilder
        Returns:
        Whether the vrf field is set.
      • getVrf

        public VRF getVrf()
         The vrf for the Network.
         
        .google.cloud.baremetalsolution.v2.VRF vrf = 9;
        Specified by:
        getVrf in interface NetworkOrBuilder
        Returns:
        The vrf.
      • containsLabels

        public boolean containsLabels​(String key)
         Labels as key value pairs.
         
        map<string, string> labels = 11;
        Specified by:
        containsLabels in interface NetworkOrBuilder
      • getServicesCidr

        public String getServicesCidr()
         IP range for reserved for services (e.g. NFS).
         
        string services_cidr = 12;
        Specified by:
        getServicesCidr in interface NetworkOrBuilder
        Returns:
        The servicesCidr.
      • getServicesCidrBytes

        public com.google.protobuf.ByteString getServicesCidrBytes()
         IP range for reserved for services (e.g. NFS).
         
        string services_cidr = 12;
        Specified by:
        getServicesCidrBytes in interface NetworkOrBuilder
        Returns:
        The bytes for servicesCidr.
      • getReservationsList

        public List<NetworkAddressReservation> getReservationsList()
         List of IP address reservations in this network.
         When updating this field, an error will be generated if a reservation
         conflicts with an IP address already allocated to a physical server.
         
        repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13;
        Specified by:
        getReservationsList in interface NetworkOrBuilder
      • getReservationsOrBuilderList

        public List<? extends NetworkAddressReservationOrBuilder> getReservationsOrBuilderList()
         List of IP address reservations in this network.
         When updating this field, an error will be generated if a reservation
         conflicts with an IP address already allocated to a physical server.
         
        repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13;
        Specified by:
        getReservationsOrBuilderList in interface NetworkOrBuilder
      • getReservationsCount

        public int getReservationsCount()
         List of IP address reservations in this network.
         When updating this field, an error will be generated if a reservation
         conflicts with an IP address already allocated to a physical server.
         
        repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13;
        Specified by:
        getReservationsCount in interface NetworkOrBuilder
      • getReservations

        public NetworkAddressReservation getReservations​(int index)
         List of IP address reservations in this network.
         When updating this field, an error will be generated if a reservation
         conflicts with an IP address already allocated to a physical server.
         
        repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13;
        Specified by:
        getReservations in interface NetworkOrBuilder
      • getReservationsOrBuilder

        public NetworkAddressReservationOrBuilder getReservationsOrBuilder​(int index)
         List of IP address reservations in this network.
         When updating this field, an error will be generated if a reservation
         conflicts with an IP address already allocated to a physical server.
         
        repeated .google.cloud.baremetalsolution.v2.NetworkAddressReservation reservations = 13;
        Specified by:
        getReservationsOrBuilder in interface NetworkOrBuilder
      • getPod

        public String getPod()
         Output only. Pod name.
         
        string pod = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getPod in interface NetworkOrBuilder
        Returns:
        The pod.
      • getPodBytes

        public com.google.protobuf.ByteString getPodBytes()
         Output only. Pod name.
         
        string pod = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getPodBytes in interface NetworkOrBuilder
        Returns:
        The bytes for pod.
      • getMountPointsList

        public List<NetworkMountPoint> getMountPointsList()
         Input only. List of mount points to attach the network to.
         
        repeated .google.cloud.baremetalsolution.v2.NetworkMountPoint mount_points = 15 [(.google.api.field_behavior) = INPUT_ONLY];
        Specified by:
        getMountPointsList in interface NetworkOrBuilder
      • getMountPointsOrBuilderList

        public List<? extends NetworkMountPointOrBuilder> getMountPointsOrBuilderList()
         Input only. List of mount points to attach the network to.
         
        repeated .google.cloud.baremetalsolution.v2.NetworkMountPoint mount_points = 15 [(.google.api.field_behavior) = INPUT_ONLY];
        Specified by:
        getMountPointsOrBuilderList in interface NetworkOrBuilder
      • getMountPointsCount

        public int getMountPointsCount()
         Input only. List of mount points to attach the network to.
         
        repeated .google.cloud.baremetalsolution.v2.NetworkMountPoint mount_points = 15 [(.google.api.field_behavior) = INPUT_ONLY];
        Specified by:
        getMountPointsCount in interface NetworkOrBuilder
      • getMountPoints

        public NetworkMountPoint getMountPoints​(int index)
         Input only. List of mount points to attach the network to.
         
        repeated .google.cloud.baremetalsolution.v2.NetworkMountPoint mount_points = 15 [(.google.api.field_behavior) = INPUT_ONLY];
        Specified by:
        getMountPoints in interface NetworkOrBuilder
      • getMountPointsOrBuilder

        public NetworkMountPointOrBuilder getMountPointsOrBuilder​(int index)
         Input only. List of mount points to attach the network to.
         
        repeated .google.cloud.baremetalsolution.v2.NetworkMountPoint mount_points = 15 [(.google.api.field_behavior) = INPUT_ONLY];
        Specified by:
        getMountPointsOrBuilder in interface NetworkOrBuilder
      • getJumboFramesEnabled

        public boolean getJumboFramesEnabled()
         Whether network uses standard frames or jumbo ones.
         
        bool jumbo_frames_enabled = 16;
        Specified by:
        getJumboFramesEnabled in interface NetworkOrBuilder
        Returns:
        The jumboFramesEnabled.
      • getGatewayIp

        public String getGatewayIp()
         Output only. Gateway ip address.
         
        string gateway_ip = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getGatewayIp in interface NetworkOrBuilder
        Returns:
        The gatewayIp.
      • getGatewayIpBytes

        public com.google.protobuf.ByteString getGatewayIpBytes()
         Output only. Gateway ip address.
         
        string gateway_ip = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getGatewayIpBytes in interface NetworkOrBuilder
        Returns:
        The bytes for gatewayIp.
      • 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 Network parseFrom​(ByteBuffer data)
                                 throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

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

        public static Network getDefaultInstance()
      • parser

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

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