Class KeyValueMetadataLabel.Builder (3.92.0)

public static final class KeyValueMetadataLabel.Builder extends GeneratedMessage.Builder<KeyValueMetadataLabel.Builder> implements KeyValueMetadataLabelOrBuilder

The metadata key that contains a finding.

Protobuf type google.privacy.dlp.v2.KeyValueMetadataLabel

Static Methods

getDescriptor()

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

Methods

build()

public KeyValueMetadataLabel build()
Returns
Type Description
KeyValueMetadataLabel

buildPartial()

public KeyValueMetadataLabel buildPartial()
Returns
Type Description
KeyValueMetadataLabel

clear()

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

clearKey()

public KeyValueMetadataLabel.Builder clearKey()

The metadata key. The format depends on the source of the metadata.

Example:

  • MSIP_Label_122709e3-8f6b-4860-985f-7f722a94f61e_Enabled (a Microsoft Purview Information Protection key example)

string key = 1;

Returns
Type Description
KeyValueMetadataLabel.Builder

This builder for chaining.

getDefaultInstanceForType()

public KeyValueMetadataLabel getDefaultInstanceForType()
Returns
Type Description
KeyValueMetadataLabel

getDescriptorForType()

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

getKey()

public String getKey()

The metadata key. The format depends on the source of the metadata.

Example:

  • MSIP_Label_122709e3-8f6b-4860-985f-7f722a94f61e_Enabled (a Microsoft Purview Information Protection key example)

string key = 1;

Returns
Type Description
String

The key.

getKeyBytes()

public ByteString getKeyBytes()

The metadata key. The format depends on the source of the metadata.

Example:

  • MSIP_Label_122709e3-8f6b-4860-985f-7f722a94f61e_Enabled (a Microsoft Purview Information Protection key example)

string key = 1;

Returns
Type Description
ByteString

The bytes for key.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(KeyValueMetadataLabel other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setKey(String value)

public KeyValueMetadataLabel.Builder setKey(String value)

The metadata key. The format depends on the source of the metadata.

Example:

  • MSIP_Label_122709e3-8f6b-4860-985f-7f722a94f61e_Enabled (a Microsoft Purview Information Protection key example)

string key = 1;

Parameter
Name Description
value String

The key to set.

Returns
Type Description
KeyValueMetadataLabel.Builder

This builder for chaining.

setKeyBytes(ByteString value)

public KeyValueMetadataLabel.Builder setKeyBytes(ByteString value)

The metadata key. The format depends on the source of the metadata.

Example:

  • MSIP_Label_122709e3-8f6b-4860-985f-7f722a94f61e_Enabled (a Microsoft Purview Information Protection key example)

string key = 1;

Parameter
Name Description
value ByteString

The bytes for key to set.

Returns
Type Description
KeyValueMetadataLabel.Builder

This builder for chaining.