public static final class KeyValueMetadataLabel.Builder extends GeneratedMessage.Builder<KeyValueMetadataLabel.Builder> implements KeyValueMetadataLabelOrBuilderThe metadata key that contains a finding.
Protobuf type google.privacy.dlp.v2.KeyValueMetadataLabel
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > KeyValueMetadataLabel.BuilderImplements
KeyValueMetadataLabelOrBuilderStatic 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 |
|
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 |
|
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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public KeyValueMetadataLabel.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
KeyValueMetadataLabel.Builder |
|
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 |
StringThe 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 |
ByteStringThe bytes for key to set. |
| Returns | |
|---|---|
| Type | Description |
KeyValueMetadataLabel.Builder |
This builder for chaining. |