Class KeyValueMetadataProperty.Builder (3.95.0)

public static final class KeyValueMetadataProperty.Builder extends GeneratedMessage.Builder<KeyValueMetadataProperty.Builder> implements KeyValueMetadataPropertyOrBuilder

A key-value pair in the Metadata.

Protobuf type google.privacy.dlp.v2.KeyValueMetadataProperty

Static Methods

getDescriptor()

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

Methods

build()

public KeyValueMetadataProperty build()
Returns
Type Description
KeyValueMetadataProperty

buildPartial()

public KeyValueMetadataProperty buildPartial()
Returns
Type Description
KeyValueMetadataProperty

clear()

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

clearKey()

public KeyValueMetadataProperty.Builder clearKey()

The key of the property.

string key = 1;

Returns
Type Description
KeyValueMetadataProperty.Builder

This builder for chaining.

clearValue()

public KeyValueMetadataProperty.Builder clearValue()

The value of the property.

string value = 2;

Returns
Type Description
KeyValueMetadataProperty.Builder

This builder for chaining.

getDefaultInstanceForType()

public KeyValueMetadataProperty getDefaultInstanceForType()
Returns
Type Description
KeyValueMetadataProperty

getDescriptorForType()

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

getKey()

public String getKey()

The key of the property.

string key = 1;

Returns
Type Description
String

The key.

getKeyBytes()

public ByteString getKeyBytes()

The key of the property.

string key = 1;

Returns
Type Description
ByteString

The bytes for key.

getValue()

public String getValue()

The value of the property.

string value = 2;

Returns
Type Description
String

The value.

getValueBytes()

public ByteString getValueBytes()

The value of the property.

string value = 2;

Returns
Type Description
ByteString

The bytes for value.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(KeyValueMetadataProperty other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setKey(String value)

public KeyValueMetadataProperty.Builder setKey(String value)

The key of the property.

string key = 1;

Parameter
Name Description
value String

The key to set.

Returns
Type Description
KeyValueMetadataProperty.Builder

This builder for chaining.

setKeyBytes(ByteString value)

public KeyValueMetadataProperty.Builder setKeyBytes(ByteString value)

The key of the property.

string key = 1;

Parameter
Name Description
value ByteString

The bytes for key to set.

Returns
Type Description
KeyValueMetadataProperty.Builder

This builder for chaining.

setValue(String value)

public KeyValueMetadataProperty.Builder setValue(String value)

The value of the property.

string value = 2;

Parameter
Name Description
value String

The value to set.

Returns
Type Description
KeyValueMetadataProperty.Builder

This builder for chaining.

setValueBytes(ByteString value)

public KeyValueMetadataProperty.Builder setValueBytes(ByteString value)

The value of the property.

string value = 2;

Parameter
Name Description
value ByteString

The bytes for value to set.

Returns
Type Description
KeyValueMetadataProperty.Builder

This builder for chaining.