# Interface NfsExportOptionsOrBuilder (1.94.0)

1.94.0 (latest) 1.92.0 1.89.0 1.88.0 1.86.0 1.84.0 1.83.0 1.82.0 1.81.0 1.79.0 1.77.0 1.76.0 1.75.0 1.74.0 1.73.0 1.71.0 1.69.0 1.68.0 1.65.0 1.64.0 1.63.0 1.61.0 1.60.0 1.59.0 1.58.0 1.57.0 1.56.0 1.55.0 1.54.0 1.53.0 1.52.0 1.50.0 1.49.0 1.48.0 1.47.0 1.46.0 1.45.0 1.44.0 1.43.0 1.42.0 1.41.0 1.40.0 1.38.0 1.37.0 1.36.0 1.35.0 1.34.0 1.33.0 1.32.0 1.31.0 1.30.0 1.29.0 1.28.0 1.25.0 1.24.0 1.23.0 1.22.0 1.21.0 1.20.0 1.19.0 1.18.0 1.17.0 1.16.0 1.15.0 1.14.0 1.13.0 1.12.0 1.10.0 1.9.0 1.8.0 1.7.0 1.6.0 1.5.0 1.2.0

    public interface NfsExportOptionsOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getAccessMode()

    public abstract 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.v1beta1.NfsExportOptions.AccessMode access_mode = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-filestore/latest/com.google.cloud.filestore.v1beta1.NfsExportOptions.AccessMode` | The accessMode. |

### getAccessModeValue()

    public abstract 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.v1beta1.NfsExportOptions.AccessMode access_mode = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for accessMode. |

### getAnonGid()

    public abstract 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;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The anonGid. |

### getAnonUid()

    public abstract 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;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The anonUid. |

### getIpRanges(int index)

    public abstract 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;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the element to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The ipRanges at the given index. |

### getIpRangesBytes(int index)

    public abstract 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;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the value to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes of the ipRanges at the given index. |

### getIpRangesCount()

    public abstract 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;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The count of ipRanges. |

### getIpRangesList()

    public abstract List<String> 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;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` | A list containing the ipRanges. |

### getSecurityFlavors(int index)

    public abstract NfsExportOptions.SecurityFlavor getSecurityFlavors(int index)

The security flavors allowed for mount operations.
The default is AUTH_SYS.

`
repeated .google.cloud.filestore.v1beta1.NfsExportOptions.SecurityFlavor security_flavors = 6;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the element to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-filestore/latest/com.google.cloud.filestore.v1beta1.NfsExportOptions.SecurityFlavor` | The securityFlavors at the given index. |

### getSecurityFlavorsCount()

    public abstract int getSecurityFlavorsCount()

The security flavors allowed for mount operations.
The default is AUTH_SYS.

`
repeated .google.cloud.filestore.v1beta1.NfsExportOptions.SecurityFlavor security_flavors = 6;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The count of securityFlavors. |

### getSecurityFlavorsList()

    public abstract List<NfsExportOptions.SecurityFlavor> getSecurityFlavorsList()

The security flavors allowed for mount operations.
The default is AUTH_SYS.

`
repeated .google.cloud.filestore.v1beta1.NfsExportOptions.SecurityFlavor security_flavors = 6;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-filestore/latest/com.google.cloud.filestore.v1beta1.NfsExportOptions.SecurityFlavor>` | A list containing the securityFlavors. |

### getSecurityFlavorsValue(int index)

    public abstract int getSecurityFlavorsValue(int index)

The security flavors allowed for mount operations.
The default is AUTH_SYS.

`
repeated .google.cloud.filestore.v1beta1.NfsExportOptions.SecurityFlavor security_flavors = 6;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the value to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire of securityFlavors at the given index. |

### getSecurityFlavorsValueList()

    public abstract List<Integer> getSecurityFlavorsValueList()

The security flavors allowed for mount operations.
The default is AUTH_SYS.

`
repeated .google.cloud.filestore.v1beta1.NfsExportOptions.SecurityFlavor security_flavors = 6;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html>` | A list containing the enum numeric values on the wire for securityFlavors. |

### getSquashMode()

    public abstract 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.v1beta1.NfsExportOptions.SquashMode squash_mode = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-filestore/latest/com.google.cloud.filestore.v1beta1.NfsExportOptions.SquashMode` | The squashMode. |

### getSquashModeValue()

    public abstract 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.v1beta1.NfsExportOptions.SquashMode squash_mode = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for squashMode. |