Class UnwrappedCryptoKey.Builder (3.12.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UnwrappedCryptoKey build()
Returns
TypeDescription
UnwrappedCryptoKey

buildPartial()

public UnwrappedCryptoKey buildPartial()
Returns
TypeDescription
UnwrappedCryptoKey

clear()

public UnwrappedCryptoKey.Builder clear()
Returns
TypeDescription
UnwrappedCryptoKey.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearKey()

public UnwrappedCryptoKey.Builder clearKey()

Required. A 128/192/256 bit key.

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

Returns
TypeDescription
UnwrappedCryptoKey.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public UnwrappedCryptoKey.Builder clone()
Returns
TypeDescription
UnwrappedCryptoKey.Builder
Overrides

getDefaultInstanceForType()

public UnwrappedCryptoKey getDefaultInstanceForType()
Returns
TypeDescription
UnwrappedCryptoKey

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getKey()

public ByteString getKey()

Required. A 128/192/256 bit key.

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

Returns
TypeDescription
ByteString

The key.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(UnwrappedCryptoKey other)

public UnwrappedCryptoKey.Builder mergeFrom(UnwrappedCryptoKey other)
Parameter
NameDescription
otherUnwrappedCryptoKey
Returns
TypeDescription
UnwrappedCryptoKey.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public UnwrappedCryptoKey.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueByteString

The key to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
UnwrappedCryptoKey.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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