Class Volume (0.15.0)

public final class Volume extends GeneratedMessageV3 implements VolumeOrBuilder

Volume provides a filesystem that you can mount.

Protobuf type google.cloud.netapp.v1.Volume

Implements

VolumeOrBuilder

Static Fields

ACTIVE_DIRECTORY_FIELD_NUMBER

public static final int ACTIVE_DIRECTORY_FIELD_NUMBER
Field Value
TypeDescription
int

BACKUP_CONFIG_FIELD_NUMBER

public static final int BACKUP_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

CAPACITY_GIB_FIELD_NUMBER

public static final int CAPACITY_GIB_FIELD_NUMBER
Field Value
TypeDescription
int

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
TypeDescription
int

ENCRYPTION_TYPE_FIELD_NUMBER

public static final int ENCRYPTION_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

EXPORT_POLICY_FIELD_NUMBER

public static final int EXPORT_POLICY_FIELD_NUMBER
Field Value
TypeDescription
int

HAS_REPLICATION_FIELD_NUMBER

public static final int HAS_REPLICATION_FIELD_NUMBER
Field Value
TypeDescription
int

KERBEROS_ENABLED_FIELD_NUMBER

public static final int KERBEROS_ENABLED_FIELD_NUMBER
Field Value
TypeDescription
int

KMS_CONFIG_FIELD_NUMBER

public static final int KMS_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

LABELS_FIELD_NUMBER

public static final int LABELS_FIELD_NUMBER
Field Value
TypeDescription
int

LDAP_ENABLED_FIELD_NUMBER

public static final int LDAP_ENABLED_FIELD_NUMBER
Field Value
TypeDescription
int

MOUNT_OPTIONS_FIELD_NUMBER

public static final int MOUNT_OPTIONS_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

NETWORK_FIELD_NUMBER

public static final int NETWORK_FIELD_NUMBER
Field Value
TypeDescription
int

PROTOCOLS_FIELD_NUMBER

public static final int PROTOCOLS_FIELD_NUMBER
Field Value
TypeDescription
int

PSA_RANGE_FIELD_NUMBER

public static final int PSA_RANGE_FIELD_NUMBER
Field Value
TypeDescription
int

RESTORE_PARAMETERS_FIELD_NUMBER

public static final int RESTORE_PARAMETERS_FIELD_NUMBER
Field Value
TypeDescription
int

RESTRICTED_ACTIONS_FIELD_NUMBER

public static final int RESTRICTED_ACTIONS_FIELD_NUMBER
Field Value
TypeDescription
int

SECURITY_STYLE_FIELD_NUMBER

public static final int SECURITY_STYLE_FIELD_NUMBER
Field Value
TypeDescription
int

SERVICE_LEVEL_FIELD_NUMBER

public static final int SERVICE_LEVEL_FIELD_NUMBER
Field Value
TypeDescription
int

SHARE_NAME_FIELD_NUMBER

public static final int SHARE_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

SMB_SETTINGS_FIELD_NUMBER

public static final int SMB_SETTINGS_FIELD_NUMBER
Field Value
TypeDescription
int

SNAPSHOT_DIRECTORY_FIELD_NUMBER

public static final int SNAPSHOT_DIRECTORY_FIELD_NUMBER
Field Value
TypeDescription
int

SNAPSHOT_POLICY_FIELD_NUMBER

public static final int SNAPSHOT_POLICY_FIELD_NUMBER
Field Value
TypeDescription
int

SNAP_RESERVE_FIELD_NUMBER

public static final int SNAP_RESERVE_FIELD_NUMBER
Field Value
TypeDescription
int

STATE_DETAILS_FIELD_NUMBER

public static final int STATE_DETAILS_FIELD_NUMBER
Field Value
TypeDescription
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
TypeDescription
int

STORAGE_POOL_FIELD_NUMBER

public static final int STORAGE_POOL_FIELD_NUMBER
Field Value
TypeDescription
int

UNIX_PERMISSIONS_FIELD_NUMBER

public static final int UNIX_PERMISSIONS_FIELD_NUMBER
Field Value
TypeDescription
int

USED_GIB_FIELD_NUMBER

public static final int USED_GIB_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Volume getDefaultInstance()
Returns
TypeDescription
Volume

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Volume.Builder newBuilder()
Returns
TypeDescription
Volume.Builder

newBuilder(Volume prototype)

public static Volume.Builder newBuilder(Volume prototype)
Parameter
NameDescription
prototypeVolume
Returns
TypeDescription
Volume.Builder

parseDelimitedFrom(InputStream input)

public static Volume parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Volume
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Volume parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Volume
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Volume parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Volume
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Volume parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Volume
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Volume parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Volume
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Volume parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Volume
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Volume parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Volume
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Volume parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Volume
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Volume parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Volume
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Volume parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Volume
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Volume parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Volume
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Volume parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Volume
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Volume> parser()
Returns
TypeDescription
Parser<Volume>

Methods

containsLabels(String key)

public boolean containsLabels(String key)

Optional. Labels as key value pairs

map<string, string> labels = 16 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getActiveDirectory()

public String getActiveDirectory()

Output only. Specifies the ActiveDirectory name of a SMB volume.

string active_directory = 25 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The activeDirectory.

getActiveDirectoryBytes()

public ByteString getActiveDirectoryBytes()

Output only. Specifies the ActiveDirectory name of a SMB volume.

string active_directory = 25 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for activeDirectory.

getBackupConfig()

public BackupConfig getBackupConfig()

BackupConfig of the volume.

optional .google.cloud.netapp.v1.BackupConfig backup_config = 30;

Returns
TypeDescription
BackupConfig

The backupConfig.

getBackupConfigOrBuilder()

public BackupConfigOrBuilder getBackupConfigOrBuilder()

BackupConfig of the volume.

optional .google.cloud.netapp.v1.BackupConfig backup_config = 30;

Returns
TypeDescription
BackupConfigOrBuilder

getCapacityGib()

public long getCapacityGib()

Required. Capacity in GIB of the volume

int64 capacity_gib = 10 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
long

The capacityGib.

getCreateTime()

public Timestamp getCreateTime()

Output only. Create time of the volume

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Create time of the volume

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Volume getDefaultInstanceForType()
Returns
TypeDescription
Volume

getDescription()

public String getDescription()

Optional. Description of the volume

string description = 17 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. Description of the volume

string description = 17 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for description.

getEncryptionType()

public EncryptionType getEncryptionType()

Output only. Specified the current volume encryption key source.

.google.cloud.netapp.v1.EncryptionType encryption_type = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
EncryptionType

The encryptionType.

getEncryptionTypeValue()

public int getEncryptionTypeValue()

Output only. Specified the current volume encryption key source.

.google.cloud.netapp.v1.EncryptionType encryption_type = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for encryptionType.

getExportPolicy()

public ExportPolicy getExportPolicy()

Optional. Export policy of the volume

.google.cloud.netapp.v1.ExportPolicy export_policy = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ExportPolicy

The exportPolicy.

getExportPolicyOrBuilder()

public ExportPolicyOrBuilder getExportPolicyOrBuilder()

Optional. Export policy of the volume

.google.cloud.netapp.v1.ExportPolicy export_policy = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ExportPolicyOrBuilder

getHasReplication()

public boolean getHasReplication()

Output only. Indicates whether the volume is part of a replication relationship.

bool has_replication = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

The hasReplication.

getKerberosEnabled()

public boolean getKerberosEnabled()

Optional. Flag indicating if the volume is a kerberos volume or not, export policy rules control kerberos security modes (krb5, krb5i, krb5p).

bool kerberos_enabled = 23 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

The kerberosEnabled.

getKmsConfig()

public String getKmsConfig()

Output only. Specifies the KMS config to be used for volume encryption.

string kms_config = 27 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The kmsConfig.

getKmsConfigBytes()

public ByteString getKmsConfigBytes()

Output only. Specifies the KMS config to be used for volume encryption.

string kms_config = 27 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for kmsConfig.

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Optional. Labels as key value pairs

map<string, string> labels = 16 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Optional. Labels as key value pairs

map<string, string> labels = 16 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Optional. Labels as key value pairs

map<string, string> labels = 16 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Optional. Labels as key value pairs

map<string, string> labels = 16 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getLdapEnabled()

public boolean getLdapEnabled()

Output only. Flag indicating if the volume is NFS LDAP enabled or not.

bool ldap_enabled = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

The ldapEnabled.

getMountOptions(int index)

public MountOption getMountOptions(int index)

Output only. Mount options of this volume

repeated .google.cloud.netapp.v1.MountOption mount_options = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
MountOption

getMountOptionsCount()

public int getMountOptionsCount()

Output only. Mount options of this volume

repeated .google.cloud.netapp.v1.MountOption mount_options = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

getMountOptionsList()

public List<MountOption> getMountOptionsList()

Output only. Mount options of this volume

repeated .google.cloud.netapp.v1.MountOption mount_options = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<MountOption>

getMountOptionsOrBuilder(int index)

public MountOptionOrBuilder getMountOptionsOrBuilder(int index)

Output only. Mount options of this volume

repeated .google.cloud.netapp.v1.MountOption mount_options = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
MountOptionOrBuilder

getMountOptionsOrBuilderList()

public List<? extends MountOptionOrBuilder> getMountOptionsOrBuilderList()

Output only. Mount options of this volume

repeated .google.cloud.netapp.v1.MountOption mount_options = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<? extends com.google.cloud.netapp.v1.MountOptionOrBuilder>

getName()

public String getName()

Identifier. Name of the volume

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. Name of the volume

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
TypeDescription
ByteString

The bytes for name.

getNetwork()

public String getNetwork()

Output only. VPC Network name. Format: projects/{project}/global/networks/{network}

string network = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The network.

getNetworkBytes()

public ByteString getNetworkBytes()

Output only. VPC Network name. Format: projects/{project}/global/networks/{network}

string network = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for network.

getParserForType()

public Parser<Volume> getParserForType()
Returns
TypeDescription
Parser<Volume>
Overrides

getProtocols(int index)

public Protocols getProtocols(int index)

Required. Protocols required for the volume

repeated .google.cloud.netapp.v1.Protocols protocols = 12 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
Protocols

The protocols at the given index.

getProtocolsCount()

public int getProtocolsCount()

Required. Protocols required for the volume

repeated .google.cloud.netapp.v1.Protocols protocols = 12 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

The count of protocols.

getProtocolsList()

public List<Protocols> getProtocolsList()

Required. Protocols required for the volume

repeated .google.cloud.netapp.v1.Protocols protocols = 12 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
List<Protocols>

A list containing the protocols.

getProtocolsValue(int index)

public int getProtocolsValue(int index)

Required. Protocols required for the volume

repeated .google.cloud.netapp.v1.Protocols protocols = 12 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
int

The enum numeric value on the wire of protocols at the given index.

getProtocolsValueList()

public List<Integer> getProtocolsValueList()

Required. Protocols required for the volume

repeated .google.cloud.netapp.v1.Protocols protocols = 12 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
List<Integer>

A list containing the enum numeric values on the wire for protocols.

getPsaRange()

public String getPsaRange()

Output only. Name of the Private Service Access allocated range. This is optional. If not provided, any available range will be chosen.

string psa_range = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The psaRange.

getPsaRangeBytes()

public ByteString getPsaRangeBytes()

Output only. Name of the Private Service Access allocated range. This is optional. If not provided, any available range will be chosen.

string psa_range = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for psaRange.

getRestoreParameters()

public RestoreParameters getRestoreParameters()

Optional. Specifies the source of the volume to be created from.

.google.cloud.netapp.v1.RestoreParameters restore_parameters = 26 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
RestoreParameters

The restoreParameters.

getRestoreParametersOrBuilder()

public RestoreParametersOrBuilder getRestoreParametersOrBuilder()

Optional. Specifies the source of the volume to be created from.

.google.cloud.netapp.v1.RestoreParameters restore_parameters = 26 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
RestoreParametersOrBuilder

getRestrictedActions(int index)

public RestrictedAction getRestrictedActions(int index)

Optional. List of actions that are restricted on this volume.

repeated .google.cloud.netapp.v1.RestrictedAction restricted_actions = 31 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
RestrictedAction

The restrictedActions at the given index.

getRestrictedActionsCount()

public int getRestrictedActionsCount()

Optional. List of actions that are restricted on this volume.

repeated .google.cloud.netapp.v1.RestrictedAction restricted_actions = 31 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The count of restrictedActions.

getRestrictedActionsList()

public List<RestrictedAction> getRestrictedActionsList()

Optional. List of actions that are restricted on this volume.

repeated .google.cloud.netapp.v1.RestrictedAction restricted_actions = 31 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<RestrictedAction>

A list containing the restrictedActions.

getRestrictedActionsValue(int index)

public int getRestrictedActionsValue(int index)

Optional. List of actions that are restricted on this volume.

repeated .google.cloud.netapp.v1.RestrictedAction restricted_actions = 31 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
int

The enum numeric value on the wire of restrictedActions at the given index.

getRestrictedActionsValueList()

public List<Integer> getRestrictedActionsValueList()

Optional. List of actions that are restricted on this volume.

repeated .google.cloud.netapp.v1.RestrictedAction restricted_actions = 31 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<Integer>

A list containing the enum numeric values on the wire for restrictedActions.

getSecurityStyle()

public SecurityStyle getSecurityStyle()

Optional. Security Style of the Volume

.google.cloud.netapp.v1.SecurityStyle security_style = 22 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
SecurityStyle

The securityStyle.

getSecurityStyleValue()

public int getSecurityStyleValue()

Optional. Security Style of the Volume

.google.cloud.netapp.v1.SecurityStyle security_style = 22 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The enum numeric value on the wire for securityStyle.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getServiceLevel()

public ServiceLevel getServiceLevel()

Output only. Service level of the volume

.google.cloud.netapp.v1.ServiceLevel service_level = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ServiceLevel

The serviceLevel.

getServiceLevelValue()

public int getServiceLevelValue()

Output only. Service level of the volume

.google.cloud.netapp.v1.ServiceLevel service_level = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for serviceLevel.

getShareName()

public String getShareName()

Required. Share name of the volume

string share_name = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The shareName.

getShareNameBytes()

public ByteString getShareNameBytes()

Required. Share name of the volume

string share_name = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for shareName.

getSmbSettings(int index)

public SMBSettings getSmbSettings(int index)

Optional. SMB share settings for the volume.

repeated .google.cloud.netapp.v1.SMBSettings smb_settings = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
SMBSettings

The smbSettings at the given index.

getSmbSettingsCount()

public int getSmbSettingsCount()

Optional. SMB share settings for the volume.

repeated .google.cloud.netapp.v1.SMBSettings smb_settings = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The count of smbSettings.

getSmbSettingsList()

public List<SMBSettings> getSmbSettingsList()

Optional. SMB share settings for the volume.

repeated .google.cloud.netapp.v1.SMBSettings smb_settings = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<SMBSettings>

A list containing the smbSettings.

getSmbSettingsValue(int index)

public int getSmbSettingsValue(int index)

Optional. SMB share settings for the volume.

repeated .google.cloud.netapp.v1.SMBSettings smb_settings = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
int

The enum numeric value on the wire of smbSettings at the given index.

getSmbSettingsValueList()

public List<Integer> getSmbSettingsValueList()

Optional. SMB share settings for the volume.

repeated .google.cloud.netapp.v1.SMBSettings smb_settings = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<Integer>

A list containing the enum numeric values on the wire for smbSettings.

getSnapReserve()

public double getSnapReserve()

Optional. Snap_reserve specifies percentage of volume storage reserved for snapshot storage. Default is 0 percent.

double snap_reserve = 19 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
double

The snapReserve.

getSnapshotDirectory()

public boolean getSnapshotDirectory()

Optional. Snapshot_directory if enabled (true) the volume will contain a read-only .snapshot directory which provides access to each of the volume's snapshots.

bool snapshot_directory = 20 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

The snapshotDirectory.

getSnapshotPolicy()

public SnapshotPolicy getSnapshotPolicy()

Optional. SnapshotPolicy for a volume.

.google.cloud.netapp.v1.SnapshotPolicy snapshot_policy = 18 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
SnapshotPolicy

The snapshotPolicy.

getSnapshotPolicyOrBuilder()

public SnapshotPolicyOrBuilder getSnapshotPolicyOrBuilder()

Optional. SnapshotPolicy for a volume.

.google.cloud.netapp.v1.SnapshotPolicy snapshot_policy = 18 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
SnapshotPolicyOrBuilder

getState()

public Volume.State getState()

Output only. State of the volume

.google.cloud.netapp.v1.Volume.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Volume.State

The state.

getStateDetails()

public String getStateDetails()

Output only. State details of the volume

string state_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The stateDetails.

getStateDetailsBytes()

public ByteString getStateDetailsBytes()

Output only. State details of the volume

string state_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for stateDetails.

getStateValue()

public int getStateValue()

Output only. State of the volume

.google.cloud.netapp.v1.Volume.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getStoragePool()

public String getStoragePool()

Required. StoragePool name of the volume

string storage_pool = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The storagePool.

getStoragePoolBytes()

public ByteString getStoragePoolBytes()

Required. StoragePool name of the volume

string storage_pool = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for storagePool.

getUnixPermissions()

public String getUnixPermissions()

Optional. Default unix style permission (e.g. 777) the mount point will be created with. Applicable for NFS protocol types only.

string unix_permissions = 15 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The unixPermissions.

getUnixPermissionsBytes()

public ByteString getUnixPermissionsBytes()

Optional. Default unix style permission (e.g. 777) the mount point will be created with. Applicable for NFS protocol types only.

string unix_permissions = 15 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for unixPermissions.

getUsedGib()

public long getUsedGib()

Output only. Used capacity in GIB of the volume. This is computed periodically and it does not represent the realtime usage.

int64 used_gib = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
long

The usedGib.

hasBackupConfig()

public boolean hasBackupConfig()

BackupConfig of the volume.

optional .google.cloud.netapp.v1.BackupConfig backup_config = 30;

Returns
TypeDescription
boolean

Whether the backupConfig field is set.

hasCreateTime()

public boolean hasCreateTime()

Output only. Create time of the volume

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasExportPolicy()

public boolean hasExportPolicy()

Optional. Export policy of the volume

.google.cloud.netapp.v1.ExportPolicy export_policy = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the exportPolicy field is set.

hasRestoreParameters()

public boolean hasRestoreParameters()

Optional. Specifies the source of the volume to be created from.

.google.cloud.netapp.v1.RestoreParameters restore_parameters = 26 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the restoreParameters field is set.

hasSnapshotPolicy()

public boolean hasSnapshotPolicy()

Optional. SnapshotPolicy for a volume.

.google.cloud.netapp.v1.SnapshotPolicy snapshot_policy = 18 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the snapshotPolicy field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Volume.Builder newBuilderForType()
Returns
TypeDescription
Volume.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Volume.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Volume.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Volume.Builder toBuilder()
Returns
TypeDescription
Volume.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException