Class InfoTypeCategory.Builder (3.7.3)

Stay organized with collections Save and categorize content based on your preferences.
public static final class InfoTypeCategory.Builder extends GeneratedMessageV3.Builder<InfoTypeCategory.Builder> implements InfoTypeCategoryOrBuilder

Classification of infoTypes to organize them according to geographic location, industry, and data type.

Protobuf type google.privacy.dlp.v2.InfoTypeCategory

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public InfoTypeCategory build()
Returns
TypeDescription
InfoTypeCategory

buildPartial()

public InfoTypeCategory buildPartial()
Returns
TypeDescription
InfoTypeCategory

clear()

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

clearCategory()

public InfoTypeCategory.Builder clearCategory()
Returns
TypeDescription
InfoTypeCategory.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearIndustryCategory()

public InfoTypeCategory.Builder clearIndustryCategory()

The group of relevant businesses where this infoType is commonly used

.google.privacy.dlp.v2.InfoTypeCategory.IndustryCategory industry_category = 2;

Returns
TypeDescription
InfoTypeCategory.Builder

This builder for chaining.

clearLocationCategory()

public InfoTypeCategory.Builder clearLocationCategory()

The region or country that issued the ID or document represented by the infoType.

.google.privacy.dlp.v2.InfoTypeCategory.LocationCategory location_category = 1;

Returns
TypeDescription
InfoTypeCategory.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTypeCategory()

public InfoTypeCategory.Builder clearTypeCategory()

The class of identifiers where this infoType belongs

.google.privacy.dlp.v2.InfoTypeCategory.TypeCategory type_category = 3;

Returns
TypeDescription
InfoTypeCategory.Builder

This builder for chaining.

clone()

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

getCategoryCase()

public InfoTypeCategory.CategoryCase getCategoryCase()
Returns
TypeDescription
InfoTypeCategory.CategoryCase

getDefaultInstanceForType()

public InfoTypeCategory getDefaultInstanceForType()
Returns
TypeDescription
InfoTypeCategory

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getIndustryCategory()

public InfoTypeCategory.IndustryCategory getIndustryCategory()

The group of relevant businesses where this infoType is commonly used

.google.privacy.dlp.v2.InfoTypeCategory.IndustryCategory industry_category = 2;

Returns
TypeDescription
InfoTypeCategory.IndustryCategory

The industryCategory.

getIndustryCategoryValue()

public int getIndustryCategoryValue()

The group of relevant businesses where this infoType is commonly used

.google.privacy.dlp.v2.InfoTypeCategory.IndustryCategory industry_category = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for industryCategory.

getLocationCategory()

public InfoTypeCategory.LocationCategory getLocationCategory()

The region or country that issued the ID or document represented by the infoType.

.google.privacy.dlp.v2.InfoTypeCategory.LocationCategory location_category = 1;

Returns
TypeDescription
InfoTypeCategory.LocationCategory

The locationCategory.

getLocationCategoryValue()

public int getLocationCategoryValue()

The region or country that issued the ID or document represented by the infoType.

.google.privacy.dlp.v2.InfoTypeCategory.LocationCategory location_category = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for locationCategory.

getTypeCategory()

public InfoTypeCategory.TypeCategory getTypeCategory()

The class of identifiers where this infoType belongs

.google.privacy.dlp.v2.InfoTypeCategory.TypeCategory type_category = 3;

Returns
TypeDescription
InfoTypeCategory.TypeCategory

The typeCategory.

getTypeCategoryValue()

public int getTypeCategoryValue()

The class of identifiers where this infoType belongs

.google.privacy.dlp.v2.InfoTypeCategory.TypeCategory type_category = 3;

Returns
TypeDescription
int

The enum numeric value on the wire for typeCategory.

hasIndustryCategory()

public boolean hasIndustryCategory()

The group of relevant businesses where this infoType is commonly used

.google.privacy.dlp.v2.InfoTypeCategory.IndustryCategory industry_category = 2;

Returns
TypeDescription
boolean

Whether the industryCategory field is set.

hasLocationCategory()

public boolean hasLocationCategory()

The region or country that issued the ID or document represented by the infoType.

.google.privacy.dlp.v2.InfoTypeCategory.LocationCategory location_category = 1;

Returns
TypeDescription
boolean

Whether the locationCategory field is set.

hasTypeCategory()

public boolean hasTypeCategory()

The class of identifiers where this infoType belongs

.google.privacy.dlp.v2.InfoTypeCategory.TypeCategory type_category = 3;

Returns
TypeDescription
boolean

Whether the typeCategory field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(InfoTypeCategory other)

public InfoTypeCategory.Builder mergeFrom(InfoTypeCategory other)
Parameter
NameDescription
otherInfoTypeCategory
Returns
TypeDescription
InfoTypeCategory.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setIndustryCategory(InfoTypeCategory.IndustryCategory value)

public InfoTypeCategory.Builder setIndustryCategory(InfoTypeCategory.IndustryCategory value)

The group of relevant businesses where this infoType is commonly used

.google.privacy.dlp.v2.InfoTypeCategory.IndustryCategory industry_category = 2;

Parameter
NameDescription
valueInfoTypeCategory.IndustryCategory

The industryCategory to set.

Returns
TypeDescription
InfoTypeCategory.Builder

This builder for chaining.

setIndustryCategoryValue(int value)

public InfoTypeCategory.Builder setIndustryCategoryValue(int value)

The group of relevant businesses where this infoType is commonly used

.google.privacy.dlp.v2.InfoTypeCategory.IndustryCategory industry_category = 2;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
InfoTypeCategory.Builder

This builder for chaining.

setLocationCategory(InfoTypeCategory.LocationCategory value)

public InfoTypeCategory.Builder setLocationCategory(InfoTypeCategory.LocationCategory value)

The region or country that issued the ID or document represented by the infoType.

.google.privacy.dlp.v2.InfoTypeCategory.LocationCategory location_category = 1;

Parameter
NameDescription
valueInfoTypeCategory.LocationCategory

The locationCategory to set.

Returns
TypeDescription
InfoTypeCategory.Builder

This builder for chaining.

setLocationCategoryValue(int value)

public InfoTypeCategory.Builder setLocationCategoryValue(int value)

The region or country that issued the ID or document represented by the infoType.

.google.privacy.dlp.v2.InfoTypeCategory.LocationCategory location_category = 1;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
InfoTypeCategory.Builder

This builder for chaining.

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

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

setTypeCategory(InfoTypeCategory.TypeCategory value)

public InfoTypeCategory.Builder setTypeCategory(InfoTypeCategory.TypeCategory value)

The class of identifiers where this infoType belongs

.google.privacy.dlp.v2.InfoTypeCategory.TypeCategory type_category = 3;

Parameter
NameDescription
valueInfoTypeCategory.TypeCategory

The typeCategory to set.

Returns
TypeDescription
InfoTypeCategory.Builder

This builder for chaining.

setTypeCategoryValue(int value)

public InfoTypeCategory.Builder setTypeCategoryValue(int value)

The class of identifiers where this infoType belongs

.google.privacy.dlp.v2.InfoTypeCategory.TypeCategory type_category = 3;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
InfoTypeCategory.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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