Class MetadataLocation.Builder (3.25.0)

public static final class MetadataLocation.Builder extends GeneratedMessageV3.Builder<MetadataLocation.Builder> implements MetadataLocationOrBuilder

Metadata Location

Protobuf type google.privacy.dlp.v2.MetadataLocation

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MetadataLocation build()
Returns
TypeDescription
MetadataLocation

buildPartial()

public MetadataLocation buildPartial()
Returns
TypeDescription
MetadataLocation

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearLabel()

public MetadataLocation.Builder clearLabel()
Returns
TypeDescription
MetadataLocation.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearStorageLabel()

public MetadataLocation.Builder clearStorageLabel()

Storage metadata.

.google.privacy.dlp.v2.StorageMetadataLabel storage_label = 3;

Returns
TypeDescription
MetadataLocation.Builder

clearType()

public MetadataLocation.Builder clearType()

Type of metadata containing the finding.

.google.privacy.dlp.v2.MetadataType type = 1;

Returns
TypeDescription
MetadataLocation.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public MetadataLocation getDefaultInstanceForType()
Returns
TypeDescription
MetadataLocation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLabelCase()

public MetadataLocation.LabelCase getLabelCase()
Returns
TypeDescription
MetadataLocation.LabelCase

getStorageLabel()

public StorageMetadataLabel getStorageLabel()

Storage metadata.

.google.privacy.dlp.v2.StorageMetadataLabel storage_label = 3;

Returns
TypeDescription
StorageMetadataLabel

The storageLabel.

getStorageLabelBuilder()

public StorageMetadataLabel.Builder getStorageLabelBuilder()

Storage metadata.

.google.privacy.dlp.v2.StorageMetadataLabel storage_label = 3;

Returns
TypeDescription
StorageMetadataLabel.Builder

getStorageLabelOrBuilder()

public StorageMetadataLabelOrBuilder getStorageLabelOrBuilder()

Storage metadata.

.google.privacy.dlp.v2.StorageMetadataLabel storage_label = 3;

Returns
TypeDescription
StorageMetadataLabelOrBuilder

getType()

public MetadataType getType()

Type of metadata containing the finding.

.google.privacy.dlp.v2.MetadataType type = 1;

Returns
TypeDescription
MetadataType

The type.

getTypeValue()

public int getTypeValue()

Type of metadata containing the finding.

.google.privacy.dlp.v2.MetadataType type = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for type.

hasStorageLabel()

public boolean hasStorageLabel()

Storage metadata.

.google.privacy.dlp.v2.StorageMetadataLabel storage_label = 3;

Returns
TypeDescription
boolean

Whether the storageLabel field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(MetadataLocation other)

public MetadataLocation.Builder mergeFrom(MetadataLocation other)
Parameter
NameDescription
otherMetadataLocation
Returns
TypeDescription
MetadataLocation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeStorageLabel(StorageMetadataLabel value)

public MetadataLocation.Builder mergeStorageLabel(StorageMetadataLabel value)

Storage metadata.

.google.privacy.dlp.v2.StorageMetadataLabel storage_label = 3;

Parameter
NameDescription
valueStorageMetadataLabel
Returns
TypeDescription
MetadataLocation.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setStorageLabel(StorageMetadataLabel value)

public MetadataLocation.Builder setStorageLabel(StorageMetadataLabel value)

Storage metadata.

.google.privacy.dlp.v2.StorageMetadataLabel storage_label = 3;

Parameter
NameDescription
valueStorageMetadataLabel
Returns
TypeDescription
MetadataLocation.Builder

setStorageLabel(StorageMetadataLabel.Builder builderForValue)

public MetadataLocation.Builder setStorageLabel(StorageMetadataLabel.Builder builderForValue)

Storage metadata.

.google.privacy.dlp.v2.StorageMetadataLabel storage_label = 3;

Parameter
NameDescription
builderForValueStorageMetadataLabel.Builder
Returns
TypeDescription
MetadataLocation.Builder

setType(MetadataType value)

public MetadataLocation.Builder setType(MetadataType value)

Type of metadata containing the finding.

.google.privacy.dlp.v2.MetadataType type = 1;

Parameter
NameDescription
valueMetadataType

The type to set.

Returns
TypeDescription
MetadataLocation.Builder

This builder for chaining.

setTypeValue(int value)

public MetadataLocation.Builder setTypeValue(int value)

Type of metadata containing the finding.

.google.privacy.dlp.v2.MetadataType type = 1;

Parameter
NameDescription
valueint

The enum numeric value on the wire for type to set.

Returns
TypeDescription
MetadataLocation.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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