Class StoredInfoTypeConfig.Builder (3.3.2)

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/dlp/docs/creating-custom-infotypes.

Protobuf type google.privacy.dlp.v2.StoredInfoTypeConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public StoredInfoTypeConfig build()
Returns
TypeDescription
StoredInfoTypeConfig

buildPartial()

public StoredInfoTypeConfig buildPartial()
Returns
TypeDescription
StoredInfoTypeConfig

clear()

public StoredInfoTypeConfig.Builder clear()
Returns Overrides

clearDescription()

public StoredInfoTypeConfig.Builder clearDescription()

Description of the StoredInfoType (max 256 characters).

string description = 2;

Returns
TypeDescription
StoredInfoTypeConfig.Builder

This builder for chaining.

clearDictionary()

public StoredInfoTypeConfig.Builder clearDictionary()

Store dictionary-based CustomInfoType.

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

Returns

clearDisplayName()

public StoredInfoTypeConfig.Builder clearDisplayName()

Display name of the StoredInfoType (max 256 characters).

string display_name = 1;

Returns
TypeDescription
StoredInfoTypeConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public StoredInfoTypeConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns 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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRegex()

public StoredInfoTypeConfig.Builder clearRegex()

Store regular expression-based StoredInfoType.

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

Returns

clearType()

public StoredInfoTypeConfig.Builder clearType()
Returns

clone()

public StoredInfoTypeConfig.Builder clone()
Returns Overrides

getDefaultInstanceForType()

public StoredInfoTypeConfig getDefaultInstanceForType()
Returns
TypeDescription
StoredInfoTypeConfig

getDescription()

public String getDescription()

Description of the StoredInfoType (max 256 characters).

string description = 2;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Description of the StoredInfoType (max 256 characters).

string description = 2;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDictionary()

public CustomInfoType.Dictionary getDictionary()

Store dictionary-based CustomInfoType.

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

Returns
TypeDescription
CustomInfoType.Dictionary

The dictionary.

getDictionaryBuilder()

public CustomInfoType.Dictionary.Builder getDictionaryBuilder()

Store dictionary-based CustomInfoType.

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

Returns

getDictionaryOrBuilder()

public CustomInfoType.DictionaryOrBuilder getDictionaryOrBuilder()

Store dictionary-based CustomInfoType.

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

Returns

getDisplayName()

public String getDisplayName()

Display name of the StoredInfoType (max 256 characters).

string display_name = 1;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Display name of the StoredInfoType (max 256 characters).

string display_name = 1;

Returns
TypeDescription
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
TypeDescription
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

getLargeCustomDictionaryOrBuilder()

public LargeCustomDictionaryConfigOrBuilder getLargeCustomDictionaryOrBuilder()

StoredInfoType where findings are defined by a dictionary of phrases.

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

Returns

getRegex()

public CustomInfoType.Regex getRegex()

Store regular expression-based StoredInfoType.

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

Returns
TypeDescription
CustomInfoType.Regex

The regex.

getRegexBuilder()

public CustomInfoType.Regex.Builder getRegexBuilder()

Store regular expression-based StoredInfoType.

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

Returns

getRegexOrBuilder()

public CustomInfoType.RegexOrBuilder getRegexOrBuilder()

Store regular expression-based StoredInfoType.

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

Returns

getTypeCase()

public StoredInfoTypeConfig.TypeCase getTypeCase()
Returns

hasDictionary()

public boolean hasDictionary()

Store dictionary-based CustomInfoType.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the regex field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueCustomInfoType.Dictionary
Returns

mergeFrom(StoredInfoTypeConfig other)

public StoredInfoTypeConfig.Builder mergeFrom(StoredInfoTypeConfig other)
Parameter
NameDescription
otherStoredInfoTypeConfig
Returns

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public StoredInfoTypeConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns 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
NameDescription
valueLargeCustomDictionaryConfig
Returns

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
NameDescription
valueCustomInfoType.Regex
Returns

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDescription(String value)

public StoredInfoTypeConfig.Builder setDescription(String value)

Description of the StoredInfoType (max 256 characters).

string description = 2;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
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
NameDescription
valueCustomInfoType.Dictionary
Returns

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
NameDescription
builderForValueCustomInfoType.Dictionary.Builder
Returns

setDisplayName(String value)

public StoredInfoTypeConfig.Builder setDisplayName(String value)

Display name of the StoredInfoType (max 256 characters).

string display_name = 1;

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
StoredInfoTypeConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public StoredInfoTypeConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns 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
NameDescription
valueLargeCustomDictionaryConfig
Returns

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
NameDescription
builderForValueLargeCustomDictionaryConfig.Builder
Returns

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
NameDescription
valueCustomInfoType.Regex
Returns

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
NameDescription
builderForValueCustomInfoType.Regex.Builder
Returns

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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