public final class BlockDevice extends GeneratedMessage implements BlockDeviceOrBuilder
Block device represents the device(s) which are stored in the block volume.
Protobuf type google.cloud.netapp.v1.BlockDevice
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
HOST_GROUPS_FIELD_NUMBER
public static final int HOST_GROUPS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
IDENTIFIER_FIELD_NUMBER
public static final int IDENTIFIER_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
OS_TYPE_FIELD_NUMBER
public static final int OS_TYPE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
SIZE_GIB_FIELD_NUMBER
public static final int SIZE_GIB_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static BlockDevice getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static BlockDevice.Builder newBuilder()
newBuilder(BlockDevice prototype)
public static BlockDevice.Builder newBuilder(BlockDevice prototype)
public static BlockDevice parseDelimitedFrom(InputStream input)
public static BlockDevice parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static BlockDevice parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static BlockDevice parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static BlockDevice parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static BlockDevice parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static BlockDevice parseFrom(CodedInputStream input)
public static BlockDevice parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static BlockDevice parseFrom(InputStream input)
public static BlockDevice parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static BlockDevice parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static BlockDevice parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<BlockDevice> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public BlockDevice getDefaultInstanceForType()
getHostGroups(int index)
public 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 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 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 ProtocolStringList 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) = { ... }
getIdentifier()
public 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 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()
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 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 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 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.
|
getParserForType()
public Parser<BlockDevice> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
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()
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 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.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public BlockDevice.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected BlockDevice.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public BlockDevice.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides