Class StorageMetadataLabel.Builder (3.11.0)

public static final class StorageMetadataLabel.Builder extends GeneratedMessageV3.Builder<StorageMetadataLabel.Builder> implements StorageMetadataLabelOrBuilder

Storage metadata label to indicate which metadata entry contains findings.

Protobuf type google.privacy.dlp.v2.StorageMetadataLabel

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public StorageMetadataLabel build()
Returns
TypeDescription
StorageMetadataLabel

buildPartial()

public StorageMetadataLabel buildPartial()
Returns
TypeDescription
StorageMetadataLabel

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearKey()

public StorageMetadataLabel.Builder clearKey()

string key = 1;

Returns
TypeDescription
StorageMetadataLabel.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public StorageMetadataLabel getDefaultInstanceForType()
Returns
TypeDescription
StorageMetadataLabel

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getKey()

public String getKey()

string key = 1;

Returns
TypeDescription
String

The key.

getKeyBytes()

public ByteString getKeyBytes()

string key = 1;

Returns
TypeDescription
ByteString

The bytes for key.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(StorageMetadataLabel other)

public StorageMetadataLabel.Builder mergeFrom(StorageMetadataLabel other)
Parameter
NameDescription
otherStorageMetadataLabel
Returns
TypeDescription
StorageMetadataLabel.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setKey(String value)

public StorageMetadataLabel.Builder setKey(String value)

string key = 1;

Parameter
NameDescription
valueString

The key to set.

Returns
TypeDescription
StorageMetadataLabel.Builder

This builder for chaining.

setKeyBytes(ByteString value)

public StorageMetadataLabel.Builder setKeyBytes(ByteString value)

string key = 1;

Parameter
NameDescription
valueByteString

The bytes for key to set.

Returns
TypeDescription
StorageMetadataLabel.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public StorageMetadataLabel.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
StorageMetadataLabel.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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