Class NfsExportOptions

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

    public final class NfsExportOptions
    extends com.google.protobuf.GeneratedMessageV3
    implements NfsExportOptionsOrBuilder
     NFS export options specifications.
     
    Protobuf type google.cloud.filestore.v1.NfsExportOptions
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  NfsExportOptions.AccessMode
      The access mode.
      static class  NfsExportOptions.Builder
      NFS export options specifications.
      static class  NfsExportOptions.SquashMode
      The squash mode.
      • Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

        com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,​BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,​BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(Object obj)  
      NfsExportOptions.AccessMode getAccessMode()
      Either READ_ONLY, for allowing only read requests on the exported directory, or READ_WRITE, for allowing both read and write requests.
      int getAccessModeValue()
      Either READ_ONLY, for allowing only read requests on the exported directory, or READ_WRITE, for allowing both read and write requests.
      long getAnonGid()
      An integer representing the anonymous group id with a default value of 65534.
      long getAnonUid()
      An integer representing the anonymous user id with a default value of 65534.
      static NfsExportOptions getDefaultInstance()  
      NfsExportOptions getDefaultInstanceForType()  
      static com.google.protobuf.Descriptors.Descriptor getDescriptor()  
      String getIpRanges​(int index)
      List of either an IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format `{octet1}.{octet2}.{octet3}.{octet4}/{mask size}` which may mount the file share.
      com.google.protobuf.ByteString getIpRangesBytes​(int index)
      List of either an IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format `{octet1}.{octet2}.{octet3}.{octet4}/{mask size}` which may mount the file share.
      int getIpRangesCount()
      List of either an IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format `{octet1}.{octet2}.{octet3}.{octet4}/{mask size}` which may mount the file share.
      com.google.protobuf.ProtocolStringList getIpRangesList()
      List of either an IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format `{octet1}.{octet2}.{octet3}.{octet4}/{mask size}` which may mount the file share.
      com.google.protobuf.Parser<NfsExportOptions> getParserForType()  
      int getSerializedSize()  
      NfsExportOptions.SquashMode getSquashMode()
      Either NO_ROOT_SQUASH, for allowing root access on the exported directory, or ROOT_SQUASH, for not allowing root access.
      int getSquashModeValue()
      Either NO_ROOT_SQUASH, for allowing root access on the exported directory, or ROOT_SQUASH, for not allowing root access.
      int hashCode()  
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()  
      boolean isInitialized()  
      static NfsExportOptions.Builder newBuilder()  
      static NfsExportOptions.Builder newBuilder​(NfsExportOptions prototype)  
      NfsExportOptions.Builder newBuilderForType()  
      protected NfsExportOptions.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)  
      protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)  
      static NfsExportOptions parseDelimitedFrom​(InputStream input)  
      static NfsExportOptions parseDelimitedFrom​(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static NfsExportOptions parseFrom​(byte[] data)  
      static NfsExportOptions parseFrom​(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static NfsExportOptions parseFrom​(com.google.protobuf.ByteString data)  
      static NfsExportOptions parseFrom​(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static NfsExportOptions parseFrom​(com.google.protobuf.CodedInputStream input)  
      static NfsExportOptions parseFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static NfsExportOptions parseFrom​(InputStream input)  
      static NfsExportOptions parseFrom​(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static NfsExportOptions parseFrom​(ByteBuffer data)  
      static NfsExportOptions parseFrom​(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static com.google.protobuf.Parser<NfsExportOptions> parser()  
      NfsExportOptions.Builder toBuilder()  
      void writeTo​(com.google.protobuf.CodedOutputStream output)  
      • Methods inherited from class com.google.protobuf.GeneratedMessageV3

        canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
      • Methods inherited from class com.google.protobuf.AbstractMessage

        findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
      • Methods inherited from class com.google.protobuf.AbstractMessageLite

        addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
      • Methods inherited from interface com.google.protobuf.MessageLite

        toByteArray, toByteString, writeDelimitedTo, writeTo
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • 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
      • getIpRangesList

        public com.google.protobuf.ProtocolStringList getIpRangesList()
         List of either an IPv4 addresses in the format
         `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
         `{octet1}.{octet2}.{octet3}.{octet4}/{mask size}` which may mount the
         file share.
         Overlapping IP ranges are not allowed, both within and across
         NfsExportOptions. An error will be returned.
         The limit is 64 IP ranges/addresses for each FileShareConfig among all
         NfsExportOptions.
         
        repeated string ip_ranges = 1;
        Specified by:
        getIpRangesList in interface NfsExportOptionsOrBuilder
        Returns:
        A list containing the ipRanges.
      • getIpRangesCount

        public int getIpRangesCount()
         List of either an IPv4 addresses in the format
         `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
         `{octet1}.{octet2}.{octet3}.{octet4}/{mask size}` which may mount the
         file share.
         Overlapping IP ranges are not allowed, both within and across
         NfsExportOptions. An error will be returned.
         The limit is 64 IP ranges/addresses for each FileShareConfig among all
         NfsExportOptions.
         
        repeated string ip_ranges = 1;
        Specified by:
        getIpRangesCount in interface NfsExportOptionsOrBuilder
        Returns:
        The count of ipRanges.
      • getIpRanges

        public String getIpRanges​(int index)
         List of either an IPv4 addresses in the format
         `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
         `{octet1}.{octet2}.{octet3}.{octet4}/{mask size}` which may mount the
         file share.
         Overlapping IP ranges are not allowed, both within and across
         NfsExportOptions. An error will be returned.
         The limit is 64 IP ranges/addresses for each FileShareConfig among all
         NfsExportOptions.
         
        repeated string ip_ranges = 1;
        Specified by:
        getIpRanges in interface NfsExportOptionsOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The ipRanges at the given index.
      • getIpRangesBytes

        public com.google.protobuf.ByteString getIpRangesBytes​(int index)
         List of either an IPv4 addresses in the format
         `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
         `{octet1}.{octet2}.{octet3}.{octet4}/{mask size}` which may mount the
         file share.
         Overlapping IP ranges are not allowed, both within and across
         NfsExportOptions. An error will be returned.
         The limit is 64 IP ranges/addresses for each FileShareConfig among all
         NfsExportOptions.
         
        repeated string ip_ranges = 1;
        Specified by:
        getIpRangesBytes in interface NfsExportOptionsOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the ipRanges at the given index.
      • getAccessModeValue

        public int getAccessModeValue()
         Either READ_ONLY, for allowing only read requests on the exported
         directory, or READ_WRITE, for allowing both read and write requests.
         The default is READ_WRITE.
         
        .google.cloud.filestore.v1.NfsExportOptions.AccessMode access_mode = 2;
        Specified by:
        getAccessModeValue in interface NfsExportOptionsOrBuilder
        Returns:
        The enum numeric value on the wire for accessMode.
      • getAccessMode

        public NfsExportOptions.AccessMode getAccessMode()
         Either READ_ONLY, for allowing only read requests on the exported
         directory, or READ_WRITE, for allowing both read and write requests.
         The default is READ_WRITE.
         
        .google.cloud.filestore.v1.NfsExportOptions.AccessMode access_mode = 2;
        Specified by:
        getAccessMode in interface NfsExportOptionsOrBuilder
        Returns:
        The accessMode.
      • getSquashModeValue

        public int getSquashModeValue()
         Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
         or ROOT_SQUASH, for not allowing root access. The default is
         NO_ROOT_SQUASH.
         
        .google.cloud.filestore.v1.NfsExportOptions.SquashMode squash_mode = 3;
        Specified by:
        getSquashModeValue in interface NfsExportOptionsOrBuilder
        Returns:
        The enum numeric value on the wire for squashMode.
      • getSquashMode

        public NfsExportOptions.SquashMode getSquashMode()
         Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
         or ROOT_SQUASH, for not allowing root access. The default is
         NO_ROOT_SQUASH.
         
        .google.cloud.filestore.v1.NfsExportOptions.SquashMode squash_mode = 3;
        Specified by:
        getSquashMode in interface NfsExportOptionsOrBuilder
        Returns:
        The squashMode.
      • getAnonUid

        public long getAnonUid()
         An integer representing the anonymous user id with a default value of
         65534.
         Anon_uid may only be set with squash_mode of ROOT_SQUASH.  An error will be
         returned if this field is specified for other squash_mode settings.
         
        int64 anon_uid = 4;
        Specified by:
        getAnonUid in interface NfsExportOptionsOrBuilder
        Returns:
        The anonUid.
      • getAnonGid

        public long getAnonGid()
         An integer representing the anonymous group id with a default value of
         65534.
         Anon_gid may only be set with squash_mode of ROOT_SQUASH.  An error will be
         returned if this field is specified for other squash_mode settings.
         
        int64 anon_gid = 5;
        Specified by:
        getAnonGid in interface NfsExportOptionsOrBuilder
        Returns:
        The anonGid.
      • 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 NfsExportOptions parseFrom​(ByteBuffer data)
                                          throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

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

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