Class CustomerEncryptionKeyProtectedDisk (1.44.0)

public final class CustomerEncryptionKeyProtectedDisk extends GeneratedMessageV3 implements CustomerEncryptionKeyProtectedDiskOrBuilder

Protobuf type google.cloud.compute.v1.CustomerEncryptionKeyProtectedDisk

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > CustomerEncryptionKeyProtectedDisk

Static Fields

DISK_ENCRYPTION_KEY_FIELD_NUMBER

public static final int DISK_ENCRYPTION_KEY_FIELD_NUMBER
Field Value
TypeDescription
int

SOURCE_FIELD_NUMBER

public static final int SOURCE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CustomerEncryptionKeyProtectedDisk getDefaultInstance()
Returns
TypeDescription
CustomerEncryptionKeyProtectedDisk

getDescriptor()

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

newBuilder()

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

newBuilder(CustomerEncryptionKeyProtectedDisk prototype)

public static CustomerEncryptionKeyProtectedDisk.Builder newBuilder(CustomerEncryptionKeyProtectedDisk prototype)
Parameter
NameDescription
prototypeCustomerEncryptionKeyProtectedDisk
Returns
TypeDescription
CustomerEncryptionKeyProtectedDisk.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public CustomerEncryptionKeyProtectedDisk getDefaultInstanceForType()
Returns
TypeDescription
CustomerEncryptionKeyProtectedDisk

getDiskEncryptionKey()

public CustomerEncryptionKey getDiskEncryptionKey()

Decrypts data associated with the disk with a customer-supplied encryption key.

optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;

Returns
TypeDescription
CustomerEncryptionKey

The diskEncryptionKey.

getDiskEncryptionKeyOrBuilder()

public CustomerEncryptionKeyOrBuilder getDiskEncryptionKeyOrBuilder()

Decrypts data associated with the disk with a customer-supplied encryption key.

optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;

Returns
TypeDescription
CustomerEncryptionKeyOrBuilder

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSource()

public String getSource()

Specifies a valid partial or full URL to an existing Persistent Disk resource. This field is only applicable for persistent disks. For example: "source": "/compute/v1/projects/project_id/zones/zone/disks/ disk_name

optional string source = 177235995;

Returns
TypeDescription
String

The source.

getSourceBytes()

public ByteString getSourceBytes()

Specifies a valid partial or full URL to an existing Persistent Disk resource. This field is only applicable for persistent disks. For example: "source": "/compute/v1/projects/project_id/zones/zone/disks/ disk_name

optional string source = 177235995;

Returns
TypeDescription
ByteString

The bytes for source.

hasDiskEncryptionKey()

public boolean hasDiskEncryptionKey()

Decrypts data associated with the disk with a customer-supplied encryption key.

optional .google.cloud.compute.v1.CustomerEncryptionKey disk_encryption_key = 271660677;

Returns
TypeDescription
boolean

Whether the diskEncryptionKey field is set.

hasSource()

public boolean hasSource()

Specifies a valid partial or full URL to an existing Persistent Disk resource. This field is only applicable for persistent disks. For example: "source": "/compute/v1/projects/project_id/zones/zone/disks/ disk_name

optional string source = 177235995;

Returns
TypeDescription
boolean

Whether the source field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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