Class StoredInfoTypeConfig.Builder (3.50.0)

public static final class StoredInfoTypeConfig.Builder extends GeneratedMessageV3.Builder<StoredInfoTypeConfig.Builder> implements StoredInfoTypeConfigOrBuilder

Configuration for stored infoTypes. All fields and subfield are provided by the user. For more information, see https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes.

Protobuf type google.privacy.dlp.v2.StoredInfoTypeConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public StoredInfoTypeConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
StoredInfoTypeConfig.Builder
Overrides

build()

public StoredInfoTypeConfig build()
Returns
Type Description
StoredInfoTypeConfig

buildPartial()

public StoredInfoTypeConfig buildPartial()
Returns
Type Description
StoredInfoTypeConfig

clear()

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

clearDescription()

public StoredInfoTypeConfig.Builder clearDescription()

Description of the StoredInfoType (max 256 characters).

string description = 2;

Returns
Type Description
StoredInfoTypeConfig.Builder

This builder for chaining.

clearDictionary()

public StoredInfoTypeConfig.Builder clearDictionary()

Store dictionary-based CustomInfoType.

.google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 4;

Returns
Type Description
StoredInfoTypeConfig.Builder

clearDisplayName()

public StoredInfoTypeConfig.Builder clearDisplayName()

Display name of the StoredInfoType (max 256 characters).

string display_name = 1;

Returns
Type Description
StoredInfoTypeConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public StoredInfoTypeConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
StoredInfoTypeConfig.Builder
Overrides

clearLargeCustomDictionary()

public StoredInfoTypeConfig.Builder clearLargeCustomDictionary()

StoredInfoType where findings are defined by a dictionary of phrases.

.google.privacy.dlp.v2.LargeCustomDictionaryConfig large_custom_dictionary = 3;

Returns
Type Description
StoredInfoTypeConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public StoredInfoTypeConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
StoredInfoTypeConfig.Builder
Overrides

clearRegex()

public StoredInfoTypeConfig.Builder clearRegex()

Store regular expression-based StoredInfoType.

.google.privacy.dlp.v2.CustomInfoType.Regex regex = 5;

Returns
Type Description
StoredInfoTypeConfig.Builder

clearType()

public StoredInfoTypeConfig.Builder clearType()
Returns
Type Description
StoredInfoTypeConfig.Builder

clone()

public StoredInfoTypeConfig.Builder clone()
Returns
Type Description
StoredInfoTypeConfig.Builder
Overrides

getDefaultInstanceForType()

public StoredInfoTypeConfig getDefaultInstanceForType()
Returns
Type Description
StoredInfoTypeConfig

getDescription()

public String getDescription()

Description of the StoredInfoType (max 256 characters).

string description = 2;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Description of the StoredInfoType (max 256 characters).

string description = 2;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getDictionary()

public CustomInfoType.Dictionary getDictionary()

Store dictionary-based CustomInfoType.

.google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 4;

Returns
Type Description
CustomInfoType.Dictionary

The dictionary.

getDictionaryBuilder()

public CustomInfoType.Dictionary.Builder getDictionaryBuilder()

Store dictionary-based CustomInfoType.

.google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 4;

Returns
Type Description
CustomInfoType.Dictionary.Builder

getDictionaryOrBuilder()

public CustomInfoType.DictionaryOrBuilder getDictionaryOrBuilder()

Store dictionary-based CustomInfoType.

.google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 4;

Returns
Type Description
CustomInfoType.DictionaryOrBuilder

getDisplayName()

public String getDisplayName()

Display name of the StoredInfoType (max 256 characters).

string display_name = 1;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Display name of the StoredInfoType (max 256 characters).

string display_name = 1;

Returns
Type Description
ByteString

The bytes for displayName.

getLargeCustomDictionary()

public LargeCustomDictionaryConfig getLargeCustomDictionary()

StoredInfoType where findings are defined by a dictionary of phrases.

.google.privacy.dlp.v2.LargeCustomDictionaryConfig large_custom_dictionary = 3;

Returns
Type Description
LargeCustomDictionaryConfig

The largeCustomDictionary.

getLargeCustomDictionaryBuilder()

public LargeCustomDictionaryConfig.Builder getLargeCustomDictionaryBuilder()

StoredInfoType where findings are defined by a dictionary of phrases.

.google.privacy.dlp.v2.LargeCustomDictionaryConfig large_custom_dictionary = 3;

Returns
Type Description
LargeCustomDictionaryConfig.Builder

getLargeCustomDictionaryOrBuilder()

public LargeCustomDictionaryConfigOrBuilder getLargeCustomDictionaryOrBuilder()

StoredInfoType where findings are defined by a dictionary of phrases.

.google.privacy.dlp.v2.LargeCustomDictionaryConfig large_custom_dictionary = 3;

Returns
Type Description
LargeCustomDictionaryConfigOrBuilder

getRegex()

public CustomInfoType.Regex getRegex()

Store regular expression-based StoredInfoType.

.google.privacy.dlp.v2.CustomInfoType.Regex regex = 5;

Returns
Type Description
CustomInfoType.Regex

The regex.

getRegexBuilder()

public CustomInfoType.Regex.Builder getRegexBuilder()

Store regular expression-based StoredInfoType.

.google.privacy.dlp.v2.CustomInfoType.Regex regex = 5;

Returns
Type Description
CustomInfoType.Regex.Builder

getRegexOrBuilder()

public CustomInfoType.RegexOrBuilder getRegexOrBuilder()

Store regular expression-based StoredInfoType.

.google.privacy.dlp.v2.CustomInfoType.Regex regex = 5;

Returns
Type Description
CustomInfoType.RegexOrBuilder

getTypeCase()

public StoredInfoTypeConfig.TypeCase getTypeCase()
Returns
Type Description
StoredInfoTypeConfig.TypeCase

hasDictionary()

public boolean hasDictionary()

Store dictionary-based CustomInfoType.

.google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 4;

Returns
Type Description
boolean

Whether the dictionary field is set.

hasLargeCustomDictionary()

public boolean hasLargeCustomDictionary()

StoredInfoType where findings are defined by a dictionary of phrases.

.google.privacy.dlp.v2.LargeCustomDictionaryConfig large_custom_dictionary = 3;

Returns
Type Description
boolean

Whether the largeCustomDictionary field is set.

hasRegex()

public boolean hasRegex()

Store regular expression-based StoredInfoType.

.google.privacy.dlp.v2.CustomInfoType.Regex regex = 5;

Returns
Type Description
boolean

Whether the regex field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDictionary(CustomInfoType.Dictionary value)

public StoredInfoTypeConfig.Builder mergeDictionary(CustomInfoType.Dictionary value)

Store dictionary-based CustomInfoType.

.google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 4;

Parameter
Name Description
value CustomInfoType.Dictionary
Returns
Type Description
StoredInfoTypeConfig.Builder

mergeFrom(StoredInfoTypeConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeLargeCustomDictionary(LargeCustomDictionaryConfig value)

public StoredInfoTypeConfig.Builder mergeLargeCustomDictionary(LargeCustomDictionaryConfig value)

StoredInfoType where findings are defined by a dictionary of phrases.

.google.privacy.dlp.v2.LargeCustomDictionaryConfig large_custom_dictionary = 3;

Parameter
Name Description
value LargeCustomDictionaryConfig
Returns
Type Description
StoredInfoTypeConfig.Builder

mergeRegex(CustomInfoType.Regex value)

public StoredInfoTypeConfig.Builder mergeRegex(CustomInfoType.Regex value)

Store regular expression-based StoredInfoType.

.google.privacy.dlp.v2.CustomInfoType.Regex regex = 5;

Parameter
Name Description
value CustomInfoType.Regex
Returns
Type Description
StoredInfoTypeConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StoredInfoTypeConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
StoredInfoTypeConfig.Builder
Overrides

setDescription(String value)

public StoredInfoTypeConfig.Builder setDescription(String value)

Description of the StoredInfoType (max 256 characters).

string description = 2;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
StoredInfoTypeConfig.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public StoredInfoTypeConfig.Builder setDescriptionBytes(ByteString value)

Description of the StoredInfoType (max 256 characters).

string description = 2;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
StoredInfoTypeConfig.Builder

This builder for chaining.

setDictionary(CustomInfoType.Dictionary value)

public StoredInfoTypeConfig.Builder setDictionary(CustomInfoType.Dictionary value)

Store dictionary-based CustomInfoType.

.google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 4;

Parameter
Name Description
value CustomInfoType.Dictionary
Returns
Type Description
StoredInfoTypeConfig.Builder

setDictionary(CustomInfoType.Dictionary.Builder builderForValue)

public StoredInfoTypeConfig.Builder setDictionary(CustomInfoType.Dictionary.Builder builderForValue)

Store dictionary-based CustomInfoType.

.google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 4;

Parameter
Name Description
builderForValue CustomInfoType.Dictionary.Builder
Returns
Type Description
StoredInfoTypeConfig.Builder

setDisplayName(String value)

public StoredInfoTypeConfig.Builder setDisplayName(String value)

Display name of the StoredInfoType (max 256 characters).

string display_name = 1;

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
StoredInfoTypeConfig.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public StoredInfoTypeConfig.Builder setDisplayNameBytes(ByteString value)

Display name of the StoredInfoType (max 256 characters).

string display_name = 1;

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
StoredInfoTypeConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public StoredInfoTypeConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
StoredInfoTypeConfig.Builder
Overrides

setLargeCustomDictionary(LargeCustomDictionaryConfig value)

public StoredInfoTypeConfig.Builder setLargeCustomDictionary(LargeCustomDictionaryConfig value)

StoredInfoType where findings are defined by a dictionary of phrases.

.google.privacy.dlp.v2.LargeCustomDictionaryConfig large_custom_dictionary = 3;

Parameter
Name Description
value LargeCustomDictionaryConfig
Returns
Type Description
StoredInfoTypeConfig.Builder

setLargeCustomDictionary(LargeCustomDictionaryConfig.Builder builderForValue)

public StoredInfoTypeConfig.Builder setLargeCustomDictionary(LargeCustomDictionaryConfig.Builder builderForValue)

StoredInfoType where findings are defined by a dictionary of phrases.

.google.privacy.dlp.v2.LargeCustomDictionaryConfig large_custom_dictionary = 3;

Parameter
Name Description
builderForValue LargeCustomDictionaryConfig.Builder
Returns
Type Description
StoredInfoTypeConfig.Builder

setRegex(CustomInfoType.Regex value)

public StoredInfoTypeConfig.Builder setRegex(CustomInfoType.Regex value)

Store regular expression-based StoredInfoType.

.google.privacy.dlp.v2.CustomInfoType.Regex regex = 5;

Parameter
Name Description
value CustomInfoType.Regex
Returns
Type Description
StoredInfoTypeConfig.Builder

setRegex(CustomInfoType.Regex.Builder builderForValue)

public StoredInfoTypeConfig.Builder setRegex(CustomInfoType.Regex.Builder builderForValue)

Store regular expression-based StoredInfoType.

.google.privacy.dlp.v2.CustomInfoType.Regex regex = 5;

Parameter
Name Description
builderForValue CustomInfoType.Regex.Builder
Returns
Type Description
StoredInfoTypeConfig.Builder

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

public StoredInfoTypeConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
StoredInfoTypeConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final StoredInfoTypeConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
StoredInfoTypeConfig.Builder
Overrides