public static final class KeyValueMetadataProperty.Builder extends GeneratedMessage.Builder<KeyValueMetadataProperty.Builder> implements KeyValueMetadataPropertyOrBuilderA key-value pair in the Metadata.
Protobuf type google.privacy.dlp.v2.KeyValueMetadataProperty
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > KeyValueMetadataProperty.BuilderImplements
KeyValueMetadataPropertyOrBuilderStatic 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 |
|
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 |
|
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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public KeyValueMetadataProperty.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
KeyValueMetadataProperty.Builder |
|
setKey(String value)
public KeyValueMetadataProperty.Builder setKey(String value)The key of the property.
string key = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe 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 |
ByteStringThe 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 |
StringThe 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 |
ByteStringThe bytes for value to set. |
| Returns | |
|---|---|
| Type | Description |
KeyValueMetadataProperty.Builder |
This builder for chaining. |