Class NfsShare.AllowedClient

  • All Implemented Interfaces:
    NfsShare.AllowedClientOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
    Enclosing class:
    NfsShare

    public static final class NfsShare.AllowedClient
    extends com.google.protobuf.GeneratedMessageV3
    implements NfsShare.AllowedClientOrBuilder
     Represents an 'access point' for the share.
     
    Protobuf type google.cloud.baremetalsolution.v2.NfsShare.AllowedClient
    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
      • getNetwork

        public String getNetwork()
         The network the access point sits on.
         
        string network = 1 [(.google.api.resource_reference) = { ... }
        Specified by:
        getNetwork in interface NfsShare.AllowedClientOrBuilder
        Returns:
        The network.
      • getNetworkBytes

        public com.google.protobuf.ByteString getNetworkBytes()
         The network the access point sits on.
         
        string network = 1 [(.google.api.resource_reference) = { ... }
        Specified by:
        getNetworkBytes in interface NfsShare.AllowedClientOrBuilder
        Returns:
        The bytes for network.
      • getShareIp

        public String getShareIp()
         Output only. The IP address of the share on this network. Assigned
         automatically during provisioning based on the network's services_cidr.
         
        string share_ip = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getShareIp in interface NfsShare.AllowedClientOrBuilder
        Returns:
        The shareIp.
      • getShareIpBytes

        public com.google.protobuf.ByteString getShareIpBytes()
         Output only. The IP address of the share on this network. Assigned
         automatically during provisioning based on the network's services_cidr.
         
        string share_ip = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getShareIpBytes in interface NfsShare.AllowedClientOrBuilder
        Returns:
        The bytes for shareIp.
      • getAllowedClientsCidrBytes

        public com.google.protobuf.ByteString getAllowedClientsCidrBytes()
         The subnet of IP addresses permitted to access the share.
         
        string allowed_clients_cidr = 3;
        Specified by:
        getAllowedClientsCidrBytes in interface NfsShare.AllowedClientOrBuilder
        Returns:
        The bytes for allowedClientsCidr.
      • getMountPermissionsValue

        public int getMountPermissionsValue()
         Mount permissions.
         
        .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4;
        Specified by:
        getMountPermissionsValue in interface NfsShare.AllowedClientOrBuilder
        Returns:
        The enum numeric value on the wire for mountPermissions.
      • getAllowDev

        public boolean getAllowDev()
         Allow dev flag.  Which controls whether to allow creation of devices.
         
        bool allow_dev = 5;
        Specified by:
        getAllowDev in interface NfsShare.AllowedClientOrBuilder
        Returns:
        The allowDev.
      • getNoRootSquash

        public boolean getNoRootSquash()
         Disable root squashing, which is a feature of NFS.
         Root squash is a special mapping of the remote superuser (root) identity
         when using identity authentication.
         
        bool no_root_squash = 7;
        Specified by:
        getNoRootSquash in interface NfsShare.AllowedClientOrBuilder
        Returns:
        The noRootSquash.
      • getNfsPath

        public String getNfsPath()
         Output only. The path to access NFS, in format shareIP:/InstanceID
         InstanceID is the generated ID instead of customer provided name.
         example like "10.0.0.0:/g123456789-nfs001"
         
        string nfs_path = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getNfsPath in interface NfsShare.AllowedClientOrBuilder
        Returns:
        The nfsPath.
      • getNfsPathBytes

        public com.google.protobuf.ByteString getNfsPathBytes()
         Output only. The path to access NFS, in format shareIP:/InstanceID
         InstanceID is the generated ID instead of customer provided name.
         example like "10.0.0.0:/g123456789-nfs001"
         
        string nfs_path = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getNfsPathBytes in interface NfsShare.AllowedClientOrBuilder
        Returns:
        The bytes for nfsPath.
      • 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 NfsShare.AllowedClient parseFrom​(ByteBuffer data)
                                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

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