Class InfoTypeStats.Builder (3.21.0)

public static final class InfoTypeStats.Builder extends GeneratedMessageV3.Builder<InfoTypeStats.Builder> implements InfoTypeStatsOrBuilder

Statistics regarding a specific InfoType.

Protobuf type google.privacy.dlp.v2.InfoTypeStats

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public InfoTypeStats build()
Returns
TypeDescription
InfoTypeStats

buildPartial()

public InfoTypeStats buildPartial()
Returns
TypeDescription
InfoTypeStats

clear()

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

clearCount()

public InfoTypeStats.Builder clearCount()

Number of findings for this infoType.

int64 count = 2;

Returns
TypeDescription
InfoTypeStats.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearInfoType()

public InfoTypeStats.Builder clearInfoType()

The type of finding this stat is for.

.google.privacy.dlp.v2.InfoType info_type = 1;

Returns
TypeDescription
InfoTypeStats.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getCount()

public long getCount()

Number of findings for this infoType.

int64 count = 2;

Returns
TypeDescription
long

The count.

getDefaultInstanceForType()

public InfoTypeStats getDefaultInstanceForType()
Returns
TypeDescription
InfoTypeStats

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getInfoType()

public InfoType getInfoType()

The type of finding this stat is for.

.google.privacy.dlp.v2.InfoType info_type = 1;

Returns
TypeDescription
InfoType

The infoType.

getInfoTypeBuilder()

public InfoType.Builder getInfoTypeBuilder()

The type of finding this stat is for.

.google.privacy.dlp.v2.InfoType info_type = 1;

Returns
TypeDescription
InfoType.Builder

getInfoTypeOrBuilder()

public InfoTypeOrBuilder getInfoTypeOrBuilder()

The type of finding this stat is for.

.google.privacy.dlp.v2.InfoType info_type = 1;

Returns
TypeDescription
InfoTypeOrBuilder

hasInfoType()

public boolean hasInfoType()

The type of finding this stat is for.

.google.privacy.dlp.v2.InfoType info_type = 1;

Returns
TypeDescription
boolean

Whether the infoType field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(InfoTypeStats other)

public InfoTypeStats.Builder mergeFrom(InfoTypeStats other)
Parameter
NameDescription
otherInfoTypeStats
Returns
TypeDescription
InfoTypeStats.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeInfoType(InfoType value)

public InfoTypeStats.Builder mergeInfoType(InfoType value)

The type of finding this stat is for.

.google.privacy.dlp.v2.InfoType info_type = 1;

Parameter
NameDescription
valueInfoType
Returns
TypeDescription
InfoTypeStats.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCount(long value)

public InfoTypeStats.Builder setCount(long value)

Number of findings for this infoType.

int64 count = 2;

Parameter
NameDescription
valuelong

The count to set.

Returns
TypeDescription
InfoTypeStats.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setInfoType(InfoType value)

public InfoTypeStats.Builder setInfoType(InfoType value)

The type of finding this stat is for.

.google.privacy.dlp.v2.InfoType info_type = 1;

Parameter
NameDescription
valueInfoType
Returns
TypeDescription
InfoTypeStats.Builder

setInfoType(InfoType.Builder builderForValue)

public InfoTypeStats.Builder setInfoType(InfoType.Builder builderForValue)

The type of finding this stat is for.

.google.privacy.dlp.v2.InfoType info_type = 1;

Parameter
NameDescription
builderForValueInfoType.Builder
Returns
TypeDescription
InfoTypeStats.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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