Class InfoTypeDescription.Builder (3.26.0)

public static final class InfoTypeDescription.Builder extends GeneratedMessageV3.Builder<InfoTypeDescription.Builder> implements InfoTypeDescriptionOrBuilder

InfoType description.

Protobuf type google.privacy.dlp.v2.InfoTypeDescription

Static Methods

getDescriptor()

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

Methods

addAllCategories(Iterable<? extends InfoTypeCategory> values)

public InfoTypeDescription.Builder addAllCategories(Iterable<? extends InfoTypeCategory> values)

The category of the infoType.

repeated .google.privacy.dlp.v2.InfoTypeCategory categories = 10;

Parameter
NameDescription
valuesIterable<? extends com.google.privacy.dlp.v2.InfoTypeCategory>
Returns
TypeDescription
InfoTypeDescription.Builder

addAllSupportedBy(Iterable<? extends InfoTypeSupportedBy> values)

public InfoTypeDescription.Builder addAllSupportedBy(Iterable<? extends InfoTypeSupportedBy> values)

Which parts of the API supports this InfoType.

repeated .google.privacy.dlp.v2.InfoTypeSupportedBy supported_by = 3;

Parameter
NameDescription
valuesIterable<? extends com.google.privacy.dlp.v2.InfoTypeSupportedBy>

The supportedBy to add.

Returns
TypeDescription
InfoTypeDescription.Builder

This builder for chaining.

addAllSupportedByValue(Iterable<Integer> values)

public InfoTypeDescription.Builder addAllSupportedByValue(Iterable<Integer> values)

Which parts of the API supports this InfoType.

repeated .google.privacy.dlp.v2.InfoTypeSupportedBy supported_by = 3;

Parameter
NameDescription
valuesIterable<Integer>

The enum numeric values on the wire for supportedBy to add.

Returns
TypeDescription
InfoTypeDescription.Builder

This builder for chaining.

addAllVersions(Iterable<? extends VersionDescription> values)

public InfoTypeDescription.Builder addAllVersions(Iterable<? extends VersionDescription> values)

A list of available versions for the infotype.

repeated .google.privacy.dlp.v2.VersionDescription versions = 9;

Parameter
NameDescription
valuesIterable<? extends com.google.privacy.dlp.v2.VersionDescription>
Returns
TypeDescription
InfoTypeDescription.Builder

addCategories(InfoTypeCategory value)

public InfoTypeDescription.Builder addCategories(InfoTypeCategory value)

The category of the infoType.

repeated .google.privacy.dlp.v2.InfoTypeCategory categories = 10;

Parameter
NameDescription
valueInfoTypeCategory
Returns
TypeDescription
InfoTypeDescription.Builder

addCategories(InfoTypeCategory.Builder builderForValue)

public InfoTypeDescription.Builder addCategories(InfoTypeCategory.Builder builderForValue)

The category of the infoType.

repeated .google.privacy.dlp.v2.InfoTypeCategory categories = 10;

Parameter
NameDescription
builderForValueInfoTypeCategory.Builder
Returns
TypeDescription
InfoTypeDescription.Builder

addCategories(int index, InfoTypeCategory value)

public InfoTypeDescription.Builder addCategories(int index, InfoTypeCategory value)

The category of the infoType.

repeated .google.privacy.dlp.v2.InfoTypeCategory categories = 10;

Parameters
NameDescription
indexint
valueInfoTypeCategory
Returns
TypeDescription
InfoTypeDescription.Builder

addCategories(int index, InfoTypeCategory.Builder builderForValue)

public InfoTypeDescription.Builder addCategories(int index, InfoTypeCategory.Builder builderForValue)

The category of the infoType.

repeated .google.privacy.dlp.v2.InfoTypeCategory categories = 10;

Parameters
NameDescription
indexint
builderForValueInfoTypeCategory.Builder
Returns
TypeDescription
InfoTypeDescription.Builder

addCategoriesBuilder()

public InfoTypeCategory.Builder addCategoriesBuilder()

The category of the infoType.

repeated .google.privacy.dlp.v2.InfoTypeCategory categories = 10;

Returns
TypeDescription
InfoTypeCategory.Builder

addCategoriesBuilder(int index)

public InfoTypeCategory.Builder addCategoriesBuilder(int index)

The category of the infoType.

repeated .google.privacy.dlp.v2.InfoTypeCategory categories = 10;

Parameter
NameDescription
indexint
Returns
TypeDescription
InfoTypeCategory.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSupportedBy(InfoTypeSupportedBy value)

public InfoTypeDescription.Builder addSupportedBy(InfoTypeSupportedBy value)

Which parts of the API supports this InfoType.

repeated .google.privacy.dlp.v2.InfoTypeSupportedBy supported_by = 3;

Parameter
NameDescription
valueInfoTypeSupportedBy

The supportedBy to add.

Returns
TypeDescription
InfoTypeDescription.Builder

This builder for chaining.

addSupportedByValue(int value)

public InfoTypeDescription.Builder addSupportedByValue(int value)

Which parts of the API supports this InfoType.

repeated .google.privacy.dlp.v2.InfoTypeSupportedBy supported_by = 3;

Parameter
NameDescription
valueint

The enum numeric value on the wire for supportedBy to add.

Returns
TypeDescription
InfoTypeDescription.Builder

This builder for chaining.

addVersions(VersionDescription value)

public InfoTypeDescription.Builder addVersions(VersionDescription value)

A list of available versions for the infotype.

repeated .google.privacy.dlp.v2.VersionDescription versions = 9;

Parameter
NameDescription
valueVersionDescription
Returns
TypeDescription
InfoTypeDescription.Builder

addVersions(VersionDescription.Builder builderForValue)

public InfoTypeDescription.Builder addVersions(VersionDescription.Builder builderForValue)

A list of available versions for the infotype.

repeated .google.privacy.dlp.v2.VersionDescription versions = 9;

Parameter
NameDescription
builderForValueVersionDescription.Builder
Returns
TypeDescription
InfoTypeDescription.Builder

addVersions(int index, VersionDescription value)

public InfoTypeDescription.Builder addVersions(int index, VersionDescription value)

A list of available versions for the infotype.

repeated .google.privacy.dlp.v2.VersionDescription versions = 9;

Parameters
NameDescription
indexint
valueVersionDescription
Returns
TypeDescription
InfoTypeDescription.Builder

addVersions(int index, VersionDescription.Builder builderForValue)

public InfoTypeDescription.Builder addVersions(int index, VersionDescription.Builder builderForValue)

A list of available versions for the infotype.

repeated .google.privacy.dlp.v2.VersionDescription versions = 9;

Parameters
NameDescription
indexint
builderForValueVersionDescription.Builder
Returns
TypeDescription
InfoTypeDescription.Builder

addVersionsBuilder()

public VersionDescription.Builder addVersionsBuilder()

A list of available versions for the infotype.

repeated .google.privacy.dlp.v2.VersionDescription versions = 9;

Returns
TypeDescription
VersionDescription.Builder

addVersionsBuilder(int index)

public VersionDescription.Builder addVersionsBuilder(int index)

A list of available versions for the infotype.

repeated .google.privacy.dlp.v2.VersionDescription versions = 9;

Parameter
NameDescription
indexint
Returns
TypeDescription
VersionDescription.Builder

build()

public InfoTypeDescription build()
Returns
TypeDescription
InfoTypeDescription

buildPartial()

public InfoTypeDescription buildPartial()
Returns
TypeDescription
InfoTypeDescription

clear()

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

clearCategories()

public InfoTypeDescription.Builder clearCategories()

The category of the infoType.

repeated .google.privacy.dlp.v2.InfoTypeCategory categories = 10;

Returns
TypeDescription
InfoTypeDescription.Builder

clearDescription()

public InfoTypeDescription.Builder clearDescription()

Description of the infotype. Translated when language is provided in the request.

string description = 4;

Returns
TypeDescription
InfoTypeDescription.Builder

This builder for chaining.

clearDisplayName()

public InfoTypeDescription.Builder clearDisplayName()

Human readable form of the infoType name.

string display_name = 2;

Returns
TypeDescription
InfoTypeDescription.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public InfoTypeDescription.Builder clearName()

Internal name of the infoType.

string name = 1;

Returns
TypeDescription
InfoTypeDescription.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSupportedBy()

public InfoTypeDescription.Builder clearSupportedBy()

Which parts of the API supports this InfoType.

repeated .google.privacy.dlp.v2.InfoTypeSupportedBy supported_by = 3;

Returns
TypeDescription
InfoTypeDescription.Builder

This builder for chaining.

clearVersions()

public InfoTypeDescription.Builder clearVersions()

A list of available versions for the infotype.

repeated .google.privacy.dlp.v2.VersionDescription versions = 9;

Returns
TypeDescription
InfoTypeDescription.Builder

clone()

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

getCategories(int index)

public InfoTypeCategory getCategories(int index)

The category of the infoType.

repeated .google.privacy.dlp.v2.InfoTypeCategory categories = 10;

Parameter
NameDescription
indexint
Returns
TypeDescription
InfoTypeCategory

getCategoriesBuilder(int index)

public InfoTypeCategory.Builder getCategoriesBuilder(int index)

The category of the infoType.

repeated .google.privacy.dlp.v2.InfoTypeCategory categories = 10;

Parameter
NameDescription
indexint
Returns
TypeDescription
InfoTypeCategory.Builder

getCategoriesBuilderList()

public List<InfoTypeCategory.Builder> getCategoriesBuilderList()

The category of the infoType.

repeated .google.privacy.dlp.v2.InfoTypeCategory categories = 10;

Returns
TypeDescription
List<Builder>

getCategoriesCount()

public int getCategoriesCount()

The category of the infoType.

repeated .google.privacy.dlp.v2.InfoTypeCategory categories = 10;

Returns
TypeDescription
int

getCategoriesList()

public List<InfoTypeCategory> getCategoriesList()

The category of the infoType.

repeated .google.privacy.dlp.v2.InfoTypeCategory categories = 10;

Returns
TypeDescription
List<InfoTypeCategory>

getCategoriesOrBuilder(int index)

public InfoTypeCategoryOrBuilder getCategoriesOrBuilder(int index)

The category of the infoType.

repeated .google.privacy.dlp.v2.InfoTypeCategory categories = 10;

Parameter
NameDescription
indexint
Returns
TypeDescription
InfoTypeCategoryOrBuilder

getCategoriesOrBuilderList()

public List<? extends InfoTypeCategoryOrBuilder> getCategoriesOrBuilderList()

The category of the infoType.

repeated .google.privacy.dlp.v2.InfoTypeCategory categories = 10;

Returns
TypeDescription
List<? extends com.google.privacy.dlp.v2.InfoTypeCategoryOrBuilder>

getDefaultInstanceForType()

public InfoTypeDescription getDefaultInstanceForType()
Returns
TypeDescription
InfoTypeDescription

getDescription()

public String getDescription()

Description of the infotype. Translated when language is provided in the request.

string description = 4;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Description of the infotype. Translated when language is provided in the request.

string description = 4;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Human readable form of the infoType name.

string display_name = 2;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Human readable form of the infoType name.

string display_name = 2;

Returns
TypeDescription
ByteString

The bytes for displayName.

getName()

public String getName()

Internal name of the infoType.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Internal name of the infoType.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getSupportedBy(int index)

public InfoTypeSupportedBy getSupportedBy(int index)

Which parts of the API supports this InfoType.

repeated .google.privacy.dlp.v2.InfoTypeSupportedBy supported_by = 3;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
InfoTypeSupportedBy

The supportedBy at the given index.

getSupportedByCount()

public int getSupportedByCount()

Which parts of the API supports this InfoType.

repeated .google.privacy.dlp.v2.InfoTypeSupportedBy supported_by = 3;

Returns
TypeDescription
int

The count of supportedBy.

getSupportedByList()

public List<InfoTypeSupportedBy> getSupportedByList()

Which parts of the API supports this InfoType.

repeated .google.privacy.dlp.v2.InfoTypeSupportedBy supported_by = 3;

Returns
TypeDescription
List<InfoTypeSupportedBy>

A list containing the supportedBy.

getSupportedByValue(int index)

public int getSupportedByValue(int index)

Which parts of the API supports this InfoType.

repeated .google.privacy.dlp.v2.InfoTypeSupportedBy supported_by = 3;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
int

The enum numeric value on the wire of supportedBy at the given index.

getSupportedByValueList()

public List<Integer> getSupportedByValueList()

Which parts of the API supports this InfoType.

repeated .google.privacy.dlp.v2.InfoTypeSupportedBy supported_by = 3;

Returns
TypeDescription
List<Integer>

A list containing the enum numeric values on the wire for supportedBy.

getVersions(int index)

public VersionDescription getVersions(int index)

A list of available versions for the infotype.

repeated .google.privacy.dlp.v2.VersionDescription versions = 9;

Parameter
NameDescription
indexint
Returns
TypeDescription
VersionDescription

getVersionsBuilder(int index)

public VersionDescription.Builder getVersionsBuilder(int index)

A list of available versions for the infotype.

repeated .google.privacy.dlp.v2.VersionDescription versions = 9;

Parameter
NameDescription
indexint
Returns
TypeDescription
VersionDescription.Builder

getVersionsBuilderList()

public List<VersionDescription.Builder> getVersionsBuilderList()

A list of available versions for the infotype.

repeated .google.privacy.dlp.v2.VersionDescription versions = 9;

Returns
TypeDescription
List<Builder>

getVersionsCount()

public int getVersionsCount()

A list of available versions for the infotype.

repeated .google.privacy.dlp.v2.VersionDescription versions = 9;

Returns
TypeDescription
int

getVersionsList()

public List<VersionDescription> getVersionsList()

A list of available versions for the infotype.

repeated .google.privacy.dlp.v2.VersionDescription versions = 9;

Returns
TypeDescription
List<VersionDescription>

getVersionsOrBuilder(int index)

public VersionDescriptionOrBuilder getVersionsOrBuilder(int index)

A list of available versions for the infotype.

repeated .google.privacy.dlp.v2.VersionDescription versions = 9;

Parameter
NameDescription
indexint
Returns
TypeDescription
VersionDescriptionOrBuilder

getVersionsOrBuilderList()

public List<? extends VersionDescriptionOrBuilder> getVersionsOrBuilderList()

A list of available versions for the infotype.

repeated .google.privacy.dlp.v2.VersionDescription versions = 9;

Returns
TypeDescription
List<? extends com.google.privacy.dlp.v2.VersionDescriptionOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(InfoTypeDescription other)

public InfoTypeDescription.Builder mergeFrom(InfoTypeDescription other)
Parameter
NameDescription
otherInfoTypeDescription
Returns
TypeDescription
InfoTypeDescription.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeCategories(int index)

public InfoTypeDescription.Builder removeCategories(int index)

The category of the infoType.

repeated .google.privacy.dlp.v2.InfoTypeCategory categories = 10;

Parameter
NameDescription
indexint
Returns
TypeDescription
InfoTypeDescription.Builder

removeVersions(int index)

public InfoTypeDescription.Builder removeVersions(int index)

A list of available versions for the infotype.

repeated .google.privacy.dlp.v2.VersionDescription versions = 9;

Parameter
NameDescription
indexint
Returns
TypeDescription
InfoTypeDescription.Builder

setCategories(int index, InfoTypeCategory value)

public InfoTypeDescription.Builder setCategories(int index, InfoTypeCategory value)

The category of the infoType.

repeated .google.privacy.dlp.v2.InfoTypeCategory categories = 10;

Parameters
NameDescription
indexint
valueInfoTypeCategory
Returns
TypeDescription
InfoTypeDescription.Builder

setCategories(int index, InfoTypeCategory.Builder builderForValue)

public InfoTypeDescription.Builder setCategories(int index, InfoTypeCategory.Builder builderForValue)

The category of the infoType.

repeated .google.privacy.dlp.v2.InfoTypeCategory categories = 10;

Parameters
NameDescription
indexint
builderForValueInfoTypeCategory.Builder
Returns
TypeDescription
InfoTypeDescription.Builder

setDescription(String value)

public InfoTypeDescription.Builder setDescription(String value)

Description of the infotype. Translated when language is provided in the request.

string description = 4;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
InfoTypeDescription.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public InfoTypeDescription.Builder setDescriptionBytes(ByteString value)

Description of the infotype. Translated when language is provided in the request.

string description = 4;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
InfoTypeDescription.Builder

This builder for chaining.

setDisplayName(String value)

public InfoTypeDescription.Builder setDisplayName(String value)

Human readable form of the infoType name.

string display_name = 2;

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
InfoTypeDescription.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public InfoTypeDescription.Builder setDisplayNameBytes(ByteString value)

Human readable form of the infoType name.

string display_name = 2;

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
InfoTypeDescription.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public InfoTypeDescription.Builder setName(String value)

Internal name of the infoType.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
InfoTypeDescription.Builder

This builder for chaining.

setNameBytes(ByteString value)

public InfoTypeDescription.Builder setNameBytes(ByteString value)

Internal name of the infoType.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
InfoTypeDescription.Builder

This builder for chaining.

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

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

setSupportedBy(int index, InfoTypeSupportedBy value)

public InfoTypeDescription.Builder setSupportedBy(int index, InfoTypeSupportedBy value)

Which parts of the API supports this InfoType.

repeated .google.privacy.dlp.v2.InfoTypeSupportedBy supported_by = 3;

Parameters
NameDescription
indexint

The index to set the value at.

valueInfoTypeSupportedBy

The supportedBy to set.

Returns
TypeDescription
InfoTypeDescription.Builder

This builder for chaining.

setSupportedByValue(int index, int value)

public InfoTypeDescription.Builder setSupportedByValue(int index, int value)

Which parts of the API supports this InfoType.

repeated .google.privacy.dlp.v2.InfoTypeSupportedBy supported_by = 3;

Parameters
NameDescription
indexint

The index to set the value at.

valueint

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

Returns
TypeDescription
InfoTypeDescription.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setVersions(int index, VersionDescription value)

public InfoTypeDescription.Builder setVersions(int index, VersionDescription value)

A list of available versions for the infotype.

repeated .google.privacy.dlp.v2.VersionDescription versions = 9;

Parameters
NameDescription
indexint
valueVersionDescription
Returns
TypeDescription
InfoTypeDescription.Builder

setVersions(int index, VersionDescription.Builder builderForValue)

public InfoTypeDescription.Builder setVersions(int index, VersionDescription.Builder builderForValue)

A list of available versions for the infotype.

repeated .google.privacy.dlp.v2.VersionDescription versions = 9;

Parameters
NameDescription
indexint
builderForValueVersionDescription.Builder
Returns
TypeDescription
InfoTypeDescription.Builder