Class ExportTrustedKeyWrappedCryptoKeyVersionRequest.Builder (2.98.0)

public static final class ExportTrustedKeyWrappedCryptoKeyVersionRequest.Builder extends GeneratedMessage.Builder<ExportTrustedKeyWrappedCryptoKeyVersionRequest.Builder> implements ExportTrustedKeyWrappedCryptoKeyVersionRequestOrBuilder

Request message for KeyManagementService.ExportTrustedKeyWrappedCryptoKeyVersion.

Protobuf type google.cloud.kms.v1.ExportTrustedKeyWrappedCryptoKeyVersionRequest

Static Methods

getDescriptor()

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

Methods

build()

public ExportTrustedKeyWrappedCryptoKeyVersionRequest build()
Returns
Type Description
ExportTrustedKeyWrappedCryptoKeyVersionRequest

buildPartial()

public ExportTrustedKeyWrappedCryptoKeyVersionRequest buildPartial()
Returns
Type Description
ExportTrustedKeyWrappedCryptoKeyVersionRequest

clear()

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

clearName()

public ExportTrustedKeyWrappedCryptoKeyVersionRequest.Builder clearName()

Required. The name of the CryptoKeyVersion to export. The CryptoKeyVersion must have trusted_wrapping_enabled set to true.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ExportTrustedKeyWrappedCryptoKeyVersionRequest.Builder

This builder for chaining.

clearWrappingKey()

public ExportTrustedKeyWrappedCryptoKeyVersionRequest.Builder clearWrappingKey()

Required. The name of the CryptoKeyVersion to use as a wrapping key. The CryptoKeyVersion must have hsm_trusted set to true.

string wrapping_key = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ExportTrustedKeyWrappedCryptoKeyVersionRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public ExportTrustedKeyWrappedCryptoKeyVersionRequest getDefaultInstanceForType()
Returns
Type Description
ExportTrustedKeyWrappedCryptoKeyVersionRequest

getDescriptorForType()

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

getName()

public String getName()

Required. The name of the CryptoKeyVersion to export. The CryptoKeyVersion must have trusted_wrapping_enabled set to true.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The name of the CryptoKeyVersion to export. The CryptoKeyVersion must have trusted_wrapping_enabled set to true.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

getWrappingKey()

public String getWrappingKey()

Required. The name of the CryptoKeyVersion to use as a wrapping key. The CryptoKeyVersion must have hsm_trusted set to true.

string wrapping_key = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The wrappingKey.

getWrappingKeyBytes()

public ByteString getWrappingKeyBytes()

Required. The name of the CryptoKeyVersion to use as a wrapping key. The CryptoKeyVersion must have hsm_trusted set to true.

string wrapping_key = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for wrappingKey.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ExportTrustedKeyWrappedCryptoKeyVersionRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setName(String value)

public ExportTrustedKeyWrappedCryptoKeyVersionRequest.Builder setName(String value)

Required. The name of the CryptoKeyVersion to export. The CryptoKeyVersion must have trusted_wrapping_enabled set to true.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ExportTrustedKeyWrappedCryptoKeyVersionRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ExportTrustedKeyWrappedCryptoKeyVersionRequest.Builder setNameBytes(ByteString value)

Required. The name of the CryptoKeyVersion to export. The CryptoKeyVersion must have trusted_wrapping_enabled set to true.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ExportTrustedKeyWrappedCryptoKeyVersionRequest.Builder

This builder for chaining.

setWrappingKey(String value)

public ExportTrustedKeyWrappedCryptoKeyVersionRequest.Builder setWrappingKey(String value)

Required. The name of the CryptoKeyVersion to use as a wrapping key. The CryptoKeyVersion must have hsm_trusted set to true.

string wrapping_key = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The wrappingKey to set.

Returns
Type Description
ExportTrustedKeyWrappedCryptoKeyVersionRequest.Builder

This builder for chaining.

setWrappingKeyBytes(ByteString value)

public ExportTrustedKeyWrappedCryptoKeyVersionRequest.Builder setWrappingKeyBytes(ByteString value)

Required. The name of the CryptoKeyVersion to use as a wrapping key. The CryptoKeyVersion must have hsm_trusted set to true.

string wrapping_key = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for wrappingKey to set.

Returns
Type Description
ExportTrustedKeyWrappedCryptoKeyVersionRequest.Builder

This builder for chaining.