Class RegionDiskUpdateKmsKeyRequest.Builder (1.105.0)

public static final class RegionDiskUpdateKmsKeyRequest.Builder extends GeneratedMessage.Builder<RegionDiskUpdateKmsKeyRequest.Builder> implements RegionDiskUpdateKmsKeyRequestOrBuilder

Protobuf type google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest

Static Methods

getDescriptor()

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

Methods

build()

public RegionDiskUpdateKmsKeyRequest build()
Returns
Type Description
RegionDiskUpdateKmsKeyRequest

buildPartial()

public RegionDiskUpdateKmsKeyRequest buildPartial()
Returns
Type Description
RegionDiskUpdateKmsKeyRequest

clear()

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

clearKmsKeyName()

public RegionDiskUpdateKmsKeyRequest.Builder clearKmsKeyName()

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

The KMS key can be provided in the following formats:

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

Where project is the project ID or project number.

optional string kms_key_name = 484373913;

Returns
Type Description
RegionDiskUpdateKmsKeyRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public RegionDiskUpdateKmsKeyRequest getDefaultInstanceForType()
Returns
Type Description
RegionDiskUpdateKmsKeyRequest

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 disk. If empty, the disk will be re-encrypted using the primary version of the disk's current KMS key.

The KMS key can be provided in the following formats:

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

Where project is the project ID or project number.

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 disk. If empty, the disk will be re-encrypted using the primary version of the disk's current KMS key.

The KMS key can be provided in the following formats:

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

Where project is the project ID or project number.

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 disk. If empty, the disk will be re-encrypted using the primary version of the disk's current KMS key.

The KMS key can be provided in the following formats:

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

Where project is the project ID or project number.

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(RegionDiskUpdateKmsKeyRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setKmsKeyName(String value)

public RegionDiskUpdateKmsKeyRequest.Builder setKmsKeyName(String value)

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

The KMS key can be provided in the following formats:

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

Where project is the project ID or project number.

optional string kms_key_name = 484373913;

Parameter
Name Description
value String

The kmsKeyName to set.

Returns
Type Description
RegionDiskUpdateKmsKeyRequest.Builder

This builder for chaining.

setKmsKeyNameBytes(ByteString value)

public RegionDiskUpdateKmsKeyRequest.Builder setKmsKeyNameBytes(ByteString value)

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

The KMS key can be provided in the following formats:

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

Where project is the project ID or project number.

optional string kms_key_name = 484373913;

Parameter
Name Description
value ByteString

The bytes for kmsKeyName to set.

Returns
Type Description
RegionDiskUpdateKmsKeyRequest.Builder

This builder for chaining.