Interface BlockDeviceOrBuilder (0.61.0)

public interface BlockDeviceOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getHostGroups(int index)

public abstract String getHostGroups(int index)

Optional. A list of host groups that identify hosts that can mount the block volume. Format: projects/{project_id}/locations/{location}/hostGroups/{host_group_id} This field can be updated after the block device is created.

repeated string host_groups = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The hostGroups at the given index.

getHostGroupsBytes(int index)

public abstract ByteString getHostGroupsBytes(int index)

Optional. A list of host groups that identify hosts that can mount the block volume. Format: projects/{project_id}/locations/{location}/hostGroups/{host_group_id} This field can be updated after the block device is created.

repeated string host_groups = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the hostGroups at the given index.

getHostGroupsCount()

public abstract int getHostGroupsCount()

Optional. A list of host groups that identify hosts that can mount the block volume. Format: projects/{project_id}/locations/{location}/hostGroups/{host_group_id} This field can be updated after the block device is created.

repeated string host_groups = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
int

The count of hostGroups.

getHostGroupsList()

public abstract List<String> getHostGroupsList()

Optional. A list of host groups that identify hosts that can mount the block volume. Format: projects/{project_id}/locations/{location}/hostGroups/{host_group_id} This field can be updated after the block device is created.

repeated string host_groups = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
List<String>

A list containing the hostGroups.

getIdentifier()

public abstract String getIdentifier()

Output only. Device identifier of the block volume. This represents lun_serial_number for iSCSI volumes.

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

Returns
Type Description
String

The identifier.

getIdentifierBytes()

public abstract ByteString getIdentifierBytes()

Output only. Device identifier of the block volume. This represents lun_serial_number for iSCSI volumes.

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

Returns
Type Description
ByteString

The bytes for identifier.

getName()

public abstract String getName()

Optional. User-defined name for the block device, unique within the volume. In case no user input is provided, name will be auto-generated in the backend. The name must meet the following requirements:

  • Be between 1 and 255 characters long.
  • Contain only uppercase or lowercase letters (A-Z, a-z), numbers (0-9), and the following special characters: "-", "_", "}", "{", ".".
  • Spaces are not allowed.

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

Returns
Type Description
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

Optional. User-defined name for the block device, unique within the volume. In case no user input is provided, name will be auto-generated in the backend. The name must meet the following requirements:

  • Be between 1 and 255 characters long.
  • Contain only uppercase or lowercase letters (A-Z, a-z), numbers (0-9), and the following special characters: "-", "_", "}", "{", ".".
  • Spaces are not allowed.

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

Returns
Type Description
ByteString

The bytes for name.

getOsType()

public abstract OsType getOsType()

Required. Immutable. The OS type of the volume. This field can't be changed after the block device is created.

.google.cloud.netapp.v1.OsType os_type = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
OsType

The osType.

getOsTypeValue()

public abstract int getOsTypeValue()

Required. Immutable. The OS type of the volume. This field can't be changed after the block device is created.

.google.cloud.netapp.v1.OsType os_type = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
int

The enum numeric value on the wire for osType.

getSizeGib()

public abstract long getSizeGib()

Optional. The size of the block device in GiB. Any value provided for the size_gib field during volume creation is ignored. The block device's size is system-managed and will be set to match the parent Volume's capacity_gib.

optional int64 size_gib = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
long

The sizeGib.

hasName()

public abstract boolean hasName()

Optional. User-defined name for the block device, unique within the volume. In case no user input is provided, name will be auto-generated in the backend. The name must meet the following requirements:

  • Be between 1 and 255 characters long.
  • Contain only uppercase or lowercase letters (A-Z, a-z), numbers (0-9), and the following special characters: "-", "_", "}", "{", ".".
  • Spaces are not allowed.

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

Returns
Type Description
boolean

Whether the name field is set.

hasSizeGib()

public abstract boolean hasSizeGib()

Optional. The size of the block device in GiB. Any value provided for the size_gib field during volume creation is ignored. The block device's size is system-managed and will be set to match the parent Volume's capacity_gib.

optional int64 size_gib = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the sizeGib field is set.