Class StoredInfoTypeConfig.Builder (3.33.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/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
TypeDescription
StoredInfoTypeConfig.Builder
Overrides

build()

public StoredInfoTypeConfig build()
Returns
TypeDescription
StoredInfoTypeConfig

buildPartial()

public StoredInfoTypeConfig buildPartial()
Returns
TypeDescription
StoredInfoTypeConfig

clear()

public StoredInfoTypeConfig.Builder clear()
Returns
TypeDescription
StoredInfoTypeConfig.Builder
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
TypeDescription
StoredInfoTypeConfig.Builder

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
TypeDescription
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
TypeDescription
StoredInfoTypeConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRegex()

public StoredInfoTypeConfig.Builder clearRegex()

Store regular expression-based StoredInfoType.

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

Returns
TypeDescription
StoredInfoTypeConfig.Builder

clearType()

public StoredInfoTypeConfig.Builder clearType()
Returns
TypeDescription
StoredInfoTypeConfig.Builder

clone()

public StoredInfoTypeConfig.Builder clone()
Returns
TypeDescription
StoredInfoTypeConfig.Builder
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
TypeDescription
CustomInfoType.Dictionary.Builder

getDictionaryOrBuilder()

public CustomInfoType.DictionaryOrBuilder getDictionaryOrBuilder()

Store dictionary-based CustomInfoType.

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

Returns
TypeDescription
CustomInfoType.DictionaryOrBuilder

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

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
TypeDescription
CustomInfoType.Regex.Builder

getRegexOrBuilder()

public CustomInfoType.RegexOrBuilder getRegexOrBuilder()

Store regular expression-based StoredInfoType.

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

Returns
TypeDescription
CustomInfoType.RegexOrBuilder

getTypeCase()

public StoredInfoTypeConfig.TypeCase getTypeCase()
Returns
TypeDescription
StoredInfoTypeConfig.TypeCase

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
TypeDescription
StoredInfoTypeConfig.Builder

mergeFrom(StoredInfoTypeConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StoredInfoTypeConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
StoredInfoTypeConfig.Builder
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
TypeDescription
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
NameDescription
builderForValueCustomInfoType.Dictionary.Builder
Returns
TypeDescription
StoredInfoTypeConfig.Builder

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
TypeDescription
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
NameDescription
valueLargeCustomDictionaryConfig
Returns
TypeDescription
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
NameDescription
builderForValueLargeCustomDictionaryConfig.Builder
Returns
TypeDescription
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
NameDescription
valueCustomInfoType.Regex
Returns
TypeDescription
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
NameDescription
builderForValueCustomInfoType.Regex.Builder
Returns
TypeDescription
StoredInfoTypeConfig.Builder

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
TypeDescription
StoredInfoTypeConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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