Class Volume (0.3.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
Type Description
int

CAPACITY_GIB_FIELD_NUMBER

public static final int CAPACITY_GIB_FIELD_NUMBER
Field Value
Type Description
int

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
Type Description
int

ENCRYPTION_TYPE_FIELD_NUMBER

public static final int ENCRYPTION_TYPE_FIELD_NUMBER
Field Value
Type Description
int

EXPORT_POLICY_FIELD_NUMBER

public static final int EXPORT_POLICY_FIELD_NUMBER
Field Value
Type Description
int

HAS_REPLICATION_FIELD_NUMBER

public static final int HAS_REPLICATION_FIELD_NUMBER
Field Value
Type Description
int

KERBEROS_ENABLED_FIELD_NUMBER

public static final int KERBEROS_ENABLED_FIELD_NUMBER
Field Value
Type Description
int

KMS_CONFIG_FIELD_NUMBER

public static final int KMS_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

LABELS_FIELD_NUMBER

public static final int LABELS_FIELD_NUMBER
Field Value
Type Description
int

LDAP_ENABLED_FIELD_NUMBER

public static final int LDAP_ENABLED_FIELD_NUMBER
Field Value
Type Description
int

MOUNT_OPTIONS_FIELD_NUMBER

public static final int MOUNT_OPTIONS_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

NETWORK_FIELD_NUMBER

public static final int NETWORK_FIELD_NUMBER
Field Value
Type Description
int

PROTOCOLS_FIELD_NUMBER

public static final int PROTOCOLS_FIELD_NUMBER
Field Value
Type Description
int

PSA_RANGE_FIELD_NUMBER

public static final int PSA_RANGE_FIELD_NUMBER
Field Value
Type Description
int

RESTORE_PARAMETERS_FIELD_NUMBER

public static final int RESTORE_PARAMETERS_FIELD_NUMBER
Field Value
Type Description
int

RESTRICTED_ACTIONS_FIELD_NUMBER

public static final int RESTRICTED_ACTIONS_FIELD_NUMBER
Field Value
Type Description
int

SECURITY_STYLE_FIELD_NUMBER

public static final int SECURITY_STYLE_FIELD_NUMBER
Field Value
Type Description
int

SERVICE_LEVEL_FIELD_NUMBER

public static final int SERVICE_LEVEL_FIELD_NUMBER
Field Value
Type Description
int

SHARE_NAME_FIELD_NUMBER

public static final int SHARE_NAME_FIELD_NUMBER
Field Value
Type Description
int

SMB_SETTINGS_FIELD_NUMBER

public static final int SMB_SETTINGS_FIELD_NUMBER
Field Value
Type Description
int

SNAPSHOT_DIRECTORY_FIELD_NUMBER

public static final int SNAPSHOT_DIRECTORY_FIELD_NUMBER
Field Value
Type Description
int

SNAPSHOT_POLICY_FIELD_NUMBER

public static final int SNAPSHOT_POLICY_FIELD_NUMBER
Field Value
Type Description
int

SNAP_RESERVE_FIELD_NUMBER

public static final int SNAP_RESERVE_FIELD_NUMBER
Field Value
Type Description
int

STATE_DETAILS_FIELD_NUMBER

public static final int STATE_DETAILS_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
Type Description
int

STORAGE_POOL_FIELD_NUMBER

public static final int STORAGE_POOL_FIELD_NUMBER
Field Value
Type Description
int

UNIX_PERMISSIONS_FIELD_NUMBER

public static final int UNIX_PERMISSIONS_FIELD_NUMBER
Field Value
Type Description
int

USED_GIB_FIELD_NUMBER

public static final int USED_GIB_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Volume getDefaultInstance()
Returns
Type Description
Volume

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Volume.Builder newBuilder()
Returns
Type Description
Volume.Builder

newBuilder(Volume prototype)

public static Volume.Builder newBuilder(Volume prototype)
Parameter
Name Description
prototype Volume
Returns
Type Description
Volume.Builder

parseDelimitedFrom(InputStream input)

public static Volume parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Volume
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Volume parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Volume
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Volume parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Volume
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Volume parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Volume
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Volume parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Volume
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Volume parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Volume
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Volume parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Volume
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Volume parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Volume
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Volume parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Volume
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Volume parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Volume
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Volume parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Volume
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Volume parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Volume
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Volume> parser()
Returns
Type Description
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
Name Description
key String
Returns
Type Description
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for activeDirectory.

getCapacityGib()

public long getCapacityGib()

Required. Capacity in GIB of the volume

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

Returns
Type Description
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
Type Description
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
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Volume getDefaultInstanceForType()
Returns
Type Description
Volume

getDescription()

public String getDescription()

Optional. Description of the volume

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

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. Description of the volume

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

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for kmsConfig.

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Optional. Labels as key value pairs

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

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Optional. Labels as key value pairs

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

Returns
Type Description
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
Name Description
key String
defaultValue String
Returns
Type Description
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
Name Description
key String
Returns
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
List<? extends com.google.cloud.netapp.v1.MountOptionOrBuilder>

getName()

public String getName()

Output only. Name of the volume

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. Name of the volume

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

Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for network.

getParserForType()

public Parser<Volume> getParserForType()
Returns
Type Description
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
Name Description
index