Class ImportJob.WrappingPublicKey.Builder (2.43.0)

public static final class ImportJob.WrappingPublicKey.Builder extends GeneratedMessageV3.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ImportJob.WrappingPublicKey.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ImportJob.WrappingPublicKey.Builder
Overrides

build()

public ImportJob.WrappingPublicKey build()
Returns
TypeDescription
ImportJob.WrappingPublicKey

buildPartial()

public ImportJob.WrappingPublicKey buildPartial()
Returns
TypeDescription
ImportJob.WrappingPublicKey

clear()

public ImportJob.WrappingPublicKey.Builder clear()
Returns
TypeDescription
ImportJob.WrappingPublicKey.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ImportJob.WrappingPublicKey.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ImportJob.WrappingPublicKey.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ImportJob.WrappingPublicKey.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ImportJob.WrappingPublicKey.Builder
Overrides

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.

string pem = 1;

Returns
TypeDescription
ImportJob.WrappingPublicKey.Builder

This builder for chaining.

clone()

public ImportJob.WrappingPublicKey.Builder clone()
Returns
TypeDescription
ImportJob.WrappingPublicKey.Builder
Overrides

getDefaultInstanceForType()

public ImportJob.WrappingPublicKey getDefaultInstanceForType()
Returns
TypeDescription
ImportJob.WrappingPublicKey

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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.

string pem = 1;

Returns
TypeDescription
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.

string pem = 1;

Returns
TypeDescription
ByteString

The bytes for pem.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ImportJob.WrappingPublicKey other)

public ImportJob.WrappingPublicKey.Builder mergeFrom(ImportJob.WrappingPublicKey other)
Parameter
NameDescription
otherImportJob.WrappingPublicKey
Returns
TypeDescription
ImportJob.WrappingPublicKey.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ImportJob.WrappingPublicKey.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ImportJob.WrappingPublicKey.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ImportJob.WrappingPublicKey.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ImportJob.WrappingPublicKey.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ImportJob.WrappingPublicKey.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ImportJob.WrappingPublicKey.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ImportJob.WrappingPublicKey.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ImportJob.WrappingPublicKey.Builder
Overrides

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.

string pem = 1;

Parameter
NameDescription
valueString

The pem to set.

Returns
TypeDescription
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.

string pem = 1;

Parameter
NameDescription
valueByteString

The bytes for pem to set.

Returns
TypeDescription
ImportJob.WrappingPublicKey.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ImportJob.WrappingPublicKey.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ImportJob.WrappingPublicKey.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ImportJob.WrappingPublicKey.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ImportJob.WrappingPublicKey.Builder
Overrides