Class UnwrappedCryptoKey.Builder (3.57.0)

public static final class UnwrappedCryptoKey.Builder extends GeneratedMessageV3.Builder<UnwrappedCryptoKey.Builder> implements UnwrappedCryptoKeyOrBuilder

Using raw keys is prone to security risks due to accidentally leaking the key. Choose another type of key if possible.

Protobuf type google.privacy.dlp.v2.UnwrappedCryptoKey

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UnwrappedCryptoKey.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UnwrappedCryptoKey.Builder
Overrides

build()

public UnwrappedCryptoKey build()
Returns
Type Description
UnwrappedCryptoKey

buildPartial()

public UnwrappedCryptoKey buildPartial()
Returns
Type Description
UnwrappedCryptoKey

clear()

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

clearField(Descriptors.FieldDescriptor field)

public UnwrappedCryptoKey.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
UnwrappedCryptoKey.Builder
Overrides

clearKey()

public UnwrappedCryptoKey.Builder clearKey()

Required. A 128/192/256 bit key.

bytes key = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UnwrappedCryptoKey.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public UnwrappedCryptoKey.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
UnwrappedCryptoKey.Builder
Overrides

clone()

public UnwrappedCryptoKey.Builder clone()
Returns
Type Description
UnwrappedCryptoKey.Builder
Overrides

getDefaultInstanceForType()

public UnwrappedCryptoKey getDefaultInstanceForType()
Returns
Type Description
UnwrappedCryptoKey

getDescriptorForType()

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

getKey()

public ByteString getKey()

Required. A 128/192/256 bit key.

bytes key = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The key.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UnwrappedCryptoKey other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UnwrappedCryptoKey.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UnwrappedCryptoKey.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public UnwrappedCryptoKey.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UnwrappedCryptoKey.Builder
Overrides

setKey(ByteString value)

public UnwrappedCryptoKey.Builder setKey(ByteString value)

Required. A 128/192/256 bit key.

bytes key = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The key to set.

Returns
Type Description
UnwrappedCryptoKey.Builder

This builder for chaining.

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

public UnwrappedCryptoKey.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
UnwrappedCryptoKey.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final UnwrappedCryptoKey.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UnwrappedCryptoKey.Builder
Overrides