Class ImportJob.WrappingPublicKey.Builder (2.97.0)

public static final class ImportJob.WrappingPublicKey.Builder extends GeneratedMessage.Builder<ImportJob.WrappingPublicKey.Builder> implements ImportJob.WrappingPublicKeyOrBuilder

The public key component of the wrapping key. For details of the type of key this public key corresponds to, see the ImportMethod.

Protobuf type google.cloud.kms.v1.ImportJob.WrappingPublicKey

Static Methods

getDescriptor()

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

Methods

build()

public ImportJob.WrappingPublicKey build()
Returns
Type Description
ImportJob.WrappingPublicKey

buildPartial()

public ImportJob.WrappingPublicKey buildPartial()
Returns
Type Description
ImportJob.WrappingPublicKey

clear()

public ImportJob.WrappingPublicKey.Builder clear()
Returns
Type Description
ImportJob.WrappingPublicKey.Builder
Overrides

clearData()

public ImportJob.WrappingPublicKey.Builder clearData()

Output only. Contains the public key, formatted according to the PublicKey.PublicKeyFormat specified in the KeyManagementService.GetImportJob request.

bytes data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ImportJob.WrappingPublicKey.Builder

This builder for chaining.

clearPem()

public ImportJob.WrappingPublicKey.Builder clearPem()

The public key, encoded in PEM format. For more information, see the RFC 7468 sections for General Considerations and Textual Encoding of Subject Public Key Info. This field gets populated by default for RSA-based import methods, if no public_key_format is specified in the request. If you want to retrieve the wrapping key of an ImportJob in some other format, use KeyManagementService.GetImportJob and set the public_key_format to the desired public key format.

string pem = 1;

Returns
Type Description
ImportJob.WrappingPublicKey.Builder

This builder for chaining.

getData()

public ByteString getData()

Output only. Contains the public key, formatted according to the PublicKey.PublicKeyFormat specified in the KeyManagementService.GetImportJob request.

bytes data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The data.

getDefaultInstanceForType()

public ImportJob.WrappingPublicKey getDefaultInstanceForType()
Returns
Type Description
ImportJob.WrappingPublicKey

getDescriptorForType()

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

getPem()

public String getPem()

The public key, encoded in PEM format. For more information, see the RFC 7468 sections for General Considerations and Textual Encoding of Subject Public Key Info. This field gets populated by default for RSA-based import methods, if no public_key_format is specified in the request. If you want to retrieve the wrapping key of an ImportJob in some other format, use KeyManagementService.GetImportJob and set the public_key_format to the desired public key format.

string pem = 1;

Returns
Type Description
String

The pem.

getPemBytes()

public ByteString getPemBytes()

The public key, encoded in PEM format. For more information, see the RFC 7468 sections for General Considerations and Textual Encoding of Subject Public Key Info. This field gets populated by default for RSA-based import methods, if no public_key_format is specified in the request. If you want to retrieve the wrapping key of an ImportJob in some other format, use KeyManagementService.GetImportJob and set the public_key_format to the desired public key format.

string pem = 1;

Returns
Type Description
ByteString

The bytes for pem.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ImportJob.WrappingPublicKey other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setData(ByteString value)

public ImportJob.WrappingPublicKey.Builder setData(ByteString value)

Output only. Contains the public key, formatted according to the PublicKey.PublicKeyFormat specified in the KeyManagementService.GetImportJob request.

bytes data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The data to set.

Returns
Type Description
ImportJob.WrappingPublicKey.Builder

This builder for chaining.

setPem(String value)

public ImportJob.WrappingPublicKey.Builder setPem(String value)

The public key, encoded in PEM format. For more information, see the RFC 7468 sections for General Considerations and Textual Encoding of Subject Public Key Info. This field gets populated by default for RSA-based import methods, if no public_key_format is specified in the request. If you want to retrieve the wrapping key of an ImportJob in some other format, use KeyManagementService.GetImportJob and set the public_key_format to the desired public key format.

string pem = 1;

Parameter
Name Description
value String

The pem to set.

Returns
Type Description
ImportJob.WrappingPublicKey.Builder

This builder for chaining.

setPemBytes(ByteString value)

public ImportJob.WrappingPublicKey.Builder setPemBytes(ByteString value)

The public key, encoded in PEM format. For more information, see the RFC 7468 sections for General Considerations and Textual Encoding of Subject Public Key Info. This field gets populated by default for RSA-based import methods, if no public_key_format is specified in the request. If you want to retrieve the wrapping key of an ImportJob in some other format, use KeyManagementService.GetImportJob and set the public_key_format to the desired public key format.

string pem = 1;

Parameter
Name Description
value ByteString

The bytes for pem to set.

Returns
Type Description
ImportJob.WrappingPublicKey.Builder

This builder for chaining.