Class SnapshotUpdateKmsKeyRequest (1.105.0)

public final class SnapshotUpdateKmsKeyRequest extends GeneratedMessage implements SnapshotUpdateKmsKeyRequestOrBuilder

Protobuf type google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest

Static Fields

KMS_KEY_NAME_FIELD_NUMBER

public static final int KMS_KEY_NAME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static SnapshotUpdateKmsKeyRequest getDefaultInstance()
Returns
Type Description
SnapshotUpdateKmsKeyRequest

getDescriptor()

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

newBuilder()

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

newBuilder(SnapshotUpdateKmsKeyRequest prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<SnapshotUpdateKmsKeyRequest> parser()
Returns
Type Description
Parser<SnapshotUpdateKmsKeyRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public SnapshotUpdateKmsKeyRequest getDefaultInstanceForType()
Returns
Type Description
SnapshotUpdateKmsKeyRequest

getKmsKeyName()

public String getKmsKeyName()

Optional. The new KMS key to replace the current one on the snapshot. If empty, the snapshot will be re-encrypted using the primary version of the snapshot's current KMS key.

The KMS key can be provided in the following formats:

  • projects/project_id/locations/region/keyRings/key_ring/cryptoKeys/key

optional string kms_key_name = 484373913;

Returns
Type Description
String

The kmsKeyName.

getKmsKeyNameBytes()

public ByteString getKmsKeyNameBytes()

Optional. The new KMS key to replace the current one on the snapshot. If empty, the snapshot will be re-encrypted using the primary version of the snapshot's current KMS key.

The KMS key can be provided in the following formats:

  • projects/project_id/locations/region/keyRings/key_ring/cryptoKeys/key

optional string kms_key_name = 484373913;

Returns
Type Description
ByteString

The bytes for kmsKeyName.

getParserForType()

public Parser<SnapshotUpdateKmsKeyRequest> getParserForType()
Returns
Type Description
Parser<SnapshotUpdateKmsKeyRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasKmsKeyName()

public boolean hasKmsKeyName()

Optional. The new KMS key to replace the current one on the snapshot. If empty, the snapshot will be re-encrypted using the primary version of the snapshot's current KMS key.

The KMS key can be provided in the following formats:

  • projects/project_id/locations/region/keyRings/key_ring/cryptoKeys/key

optional string kms_key_name = 484373913;

Returns
Type Description
boolean

Whether the kmsKeyName field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public SnapshotUpdateKmsKeyRequest.Builder newBuilderForType()
Returns
Type Description
SnapshotUpdateKmsKeyRequest.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected SnapshotUpdateKmsKeyRequest.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
SnapshotUpdateKmsKeyRequest.Builder
Overrides

toBuilder()

public SnapshotUpdateKmsKeyRequest.Builder toBuilder()
Returns
Type Description
SnapshotUpdateKmsKeyRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException