Class NfsShare.AllowedClient.Builder

    • Method Detail

      • 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.Builder<NfsShare.AllowedClient.Builder>
      • clear

        public NfsShare.AllowedClient.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<NfsShare.AllowedClient.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<NfsShare.AllowedClient.Builder>
      • getDefaultInstanceForType

        public NfsShare.AllowedClient getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

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

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

        public NfsShare.AllowedClient.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<NfsShare.AllowedClient.Builder>
      • clearField

        public NfsShare.AllowedClient.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<NfsShare.AllowedClient.Builder>
      • clearOneof

        public NfsShare.AllowedClient.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<NfsShare.AllowedClient.Builder>
      • setRepeatedField

        public NfsShare.AllowedClient.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                               int index,
                                                               Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<NfsShare.AllowedClient.Builder>
      • addRepeatedField

        public NfsShare.AllowedClient.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                               Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<NfsShare.AllowedClient.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<NfsShare.AllowedClient.Builder>
      • mergeFrom

        public NfsShare.AllowedClient.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                 throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<NfsShare.AllowedClient.Builder>
        Throws:
        IOException
      • 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.
      • setNetwork

        public NfsShare.AllowedClient.Builder setNetwork​(String value)
         The network the access point sits on.
         
        string network = 1 [(.google.api.resource_reference) = { ... }
        Parameters:
        value - The network to set.
        Returns:
        This builder for chaining.
      • clearNetwork

        public NfsShare.AllowedClient.Builder clearNetwork()
         The network the access point sits on.
         
        string network = 1 [(.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setNetworkBytes

        public NfsShare.AllowedClient.Builder setNetworkBytes​(com.google.protobuf.ByteString value)
         The network the access point sits on.
         
        string network = 1 [(.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for network to set.
        Returns:
        This builder for chaining.
      • 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.
      • setShareIp

        public NfsShare.AllowedClient.Builder setShareIp​(String value)
         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];
        Parameters:
        value - The shareIp to set.
        Returns:
        This builder for chaining.
      • clearShareIp

        public NfsShare.AllowedClient.Builder clearShareIp()
         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];
        Returns:
        This builder for chaining.
      • setShareIpBytes

        public NfsShare.AllowedClient.Builder setShareIpBytes​(com.google.protobuf.ByteString value)
         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];
        Parameters:
        value - The bytes for shareIp to set.
        Returns:
        This builder for chaining.
      • 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.
      • setAllowedClientsCidr

        public NfsShare.AllowedClient.Builder setAllowedClientsCidr​(String value)
         The subnet of IP addresses permitted to access the share.
         
        string allowed_clients_cidr = 3;
        Parameters:
        value - The allowedClientsCidr to set.
        Returns:
        This builder for chaining.
      • clearAllowedClientsCidr

        public NfsShare.AllowedClient.Builder clearAllowedClientsCidr()
         The subnet of IP addresses permitted to access the share.
         
        string allowed_clients_cidr = 3;
        Returns:
        This builder for chaining.
      • setAllowedClientsCidrBytes

        public NfsShare.AllowedClient.Builder setAllowedClientsCidrBytes​(com.google.protobuf.ByteString value)
         The subnet of IP addresses permitted to access the share.
         
        string allowed_clients_cidr = 3;
        Parameters:
        value - The bytes for allowedClientsCidr to set.
        Returns:
        This builder for chaining.
      • 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.
      • setMountPermissionsValue

        public NfsShare.AllowedClient.Builder setMountPermissionsValue​(int value)
         Mount permissions.
         
        .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4;
        Parameters:
        value - The enum numeric value on the wire for mountPermissions to set.
        Returns:
        This builder for chaining.
      • setMountPermissions

        public NfsShare.AllowedClient.Builder setMountPermissions​(NfsShare.MountPermissions value)
         Mount permissions.
         
        .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4;
        Parameters:
        value - The mountPermissions to set.
        Returns:
        This builder for chaining.
      • clearMountPermissions

        public NfsShare.AllowedClient.Builder clearMountPermissions()
         Mount permissions.
         
        .google.cloud.baremetalsolution.v2.NfsShare.MountPermissions mount_permissions = 4;
        Returns:
        This builder for chaining.
      • 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.
      • setAllowDev

        public NfsShare.AllowedClient.Builder setAllowDev​(boolean value)
         Allow dev flag.  Which controls whether to allow creation of devices.
         
        bool allow_dev = 5;
        Parameters:
        value - The allowDev to set.
        Returns:
        This builder for chaining.
      • clearAllowDev

        public NfsShare.AllowedClient.Builder clearAllowDev()
         Allow dev flag.  Which controls whether to allow creation of devices.
         
        bool allow_dev = 5;
        Returns:
        This builder for chaining.
      • setAllowSuid

        public NfsShare.AllowedClient.Builder setAllowSuid​(boolean value)
         Allow the setuid flag.
         
        bool allow_suid = 6;
        Parameters:
        value - The allowSuid to set.
        Returns:
        This builder for chaining.
      • clearAllowSuid

        public NfsShare.AllowedClient.Builder clearAllowSuid()
         Allow the setuid flag.
         
        bool allow_suid = 6;
        Returns:
        This builder for chaining.
      • 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.
      • setNoRootSquash

        public NfsShare.AllowedClient.Builder setNoRootSquash​(boolean value)
         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;
        Parameters:
        value - The noRootSquash to set.
        Returns:
        This builder for chaining.
      • clearNoRootSquash

        public NfsShare.AllowedClient.Builder clearNoRootSquash()
         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;
        Returns:
        This builder for chaining.
      • 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.
      • setNfsPath

        public NfsShare.AllowedClient.Builder setNfsPath​(String value)
         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];
        Parameters:
        value - The nfsPath to set.
        Returns:
        This builder for chaining.
      • clearNfsPath

        public NfsShare.AllowedClient.Builder clearNfsPath()
         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];
        Returns:
        This builder for chaining.
      • setNfsPathBytes

        public NfsShare.AllowedClient.Builder setNfsPathBytes​(com.google.protobuf.ByteString value)
         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];
        Parameters:
        value - The bytes for nfsPath to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final NfsShare.AllowedClient.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<NfsShare.AllowedClient.Builder>
      • mergeUnknownFields

        public final NfsShare.AllowedClient.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<NfsShare.AllowedClient.Builder>