Class RegionSnapshotUpdateKmsKeyRequest.Builder (1.105.0)

public static final class RegionSnapshotUpdateKmsKeyRequest.Builder extends GeneratedMessage.Builder<RegionSnapshotUpdateKmsKeyRequest.Builder> implements RegionSnapshotUpdateKmsKeyRequestOrBuilder

Protobuf type google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest

Static Methods

getDescriptor()

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

Methods

build()

public RegionSnapshotUpdateKmsKeyRequest build()
Returns
Type Description
RegionSnapshotUpdateKmsKeyRequest

buildPartial()

public RegionSnapshotUpdateKmsKeyRequest buildPartial()
Returns
Type Description
RegionSnapshotUpdateKmsKeyRequest

clear()

public RegionSnapshotUpdateKmsKeyRequest.Builder clear()
Returns
Type Description
RegionSnapshotUpdateKmsKeyRequest.Builder
Overrides

clearKmsKeyName()

public RegionSnapshotUpdateKmsKeyRequest.Builder clearKmsKeyName()

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/region/cryptoKeys/key

optional string kms_key_name = 484373913;

Returns
Type Description
RegionSnapshotUpdateKmsKeyRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public RegionSnapshotUpdateKmsKeyRequest getDefaultInstanceForType()
Returns
Type Description
RegionSnapshotUpdateKmsKeyRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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/region/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/region/cryptoKeys/key

optional string kms_key_name = 484373913;

Returns
Type Description
ByteString

The bytes for kmsKeyName.

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/region/cryptoKeys/key

optional string kms_key_name = 484373913;

Returns
Type Description
boolean

Whether the kmsKeyName field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RegionSnapshotUpdateKmsKeyRequest other)

public RegionSnapshotUpdateKmsKeyRequest.Builder mergeFrom(RegionSnapshotUpdateKmsKeyRequest other)
Parameter
Name Description
other RegionSnapshotUpdateKmsKeyRequest
Returns
Type Description
RegionSnapshotUpdateKmsKeyRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RegionSnapshotUpdateKmsKeyRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RegionSnapshotUpdateKmsKeyRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public RegionSnapshotUpdateKmsKeyRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
RegionSnapshotUpdateKmsKeyRequest.Builder
Overrides

setKmsKeyName(String value)

public RegionSnapshotUpdateKmsKeyRequest.Builder setKmsKeyName(String value)

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/region/cryptoKeys/key

optional string kms_key_name = 484373913;

Parameter
Name Description
value String

The kmsKeyName to set.

Returns
Type Description
RegionSnapshotUpdateKmsKeyRequest.Builder

This builder for chaining.

setKmsKeyNameBytes(ByteString value)

public RegionSnapshotUpdateKmsKeyRequest.Builder setKmsKeyNameBytes(ByteString value)

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/region/cryptoKeys/key

optional string kms_key_name = 484373913;

Parameter
Name Description
value ByteString

The bytes for kmsKeyName to set.

Returns
Type Description
RegionSnapshotUpdateKmsKeyRequest.Builder

This builder for chaining.