Class ValueFrequency.Builder (3.58.0)

public static final class ValueFrequency.Builder extends GeneratedMessageV3.Builder<ValueFrequency.Builder> implements ValueFrequencyOrBuilder

A value of a field, including its frequency.

Protobuf type google.privacy.dlp.v2.ValueFrequency

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ValueFrequency.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ValueFrequency.Builder
Overrides

build()

public ValueFrequency build()
Returns
Type Description
ValueFrequency

buildPartial()

public ValueFrequency buildPartial()
Returns
Type Description
ValueFrequency

clear()

public ValueFrequency.Builder clear()
Returns
Type Description
ValueFrequency.Builder
Overrides

clearCount()

public ValueFrequency.Builder clearCount()

How many times the value is contained in the field.

int64 count = 2;

Returns
Type Description
ValueFrequency.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ValueFrequency.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ValueFrequency.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ValueFrequency.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ValueFrequency.Builder
Overrides

clearValue()

public ValueFrequency.Builder clearValue()

A value contained in the field in question.

.google.privacy.dlp.v2.Value value = 1;

Returns
Type Description
ValueFrequency.Builder

clone()

public ValueFrequency.Builder clone()
Returns
Type Description
ValueFrequency.Builder
Overrides

getCount()

public long getCount()

How many times the value is contained in the field.

int64 count = 2;

Returns
Type Description
long

The count.

getDefaultInstanceForType()

public ValueFrequency getDefaultInstanceForType()
Returns
Type Description
ValueFrequency

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getValue()

public Value getValue()

A value contained in the field in question.

.google.privacy.dlp.v2.Value value = 1;

Returns
Type Description
Value

The value.

getValueBuilder()

public Value.Builder getValueBuilder()

A value contained in the field in question.

.google.privacy.dlp.v2.Value value = 1;

Returns
Type Description
Value.Builder

getValueOrBuilder()

public ValueOrBuilder getValueOrBuilder()

A value contained in the field in question.

.google.privacy.dlp.v2.Value value = 1;

Returns
Type Description
ValueOrBuilder

hasValue()

public boolean hasValue()

A value contained in the field in question.

.google.privacy.dlp.v2.Value value = 1;

Returns
Type Description
boolean

Whether the value field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ValueFrequency other)

public ValueFrequency.Builder mergeFrom(ValueFrequency other)
Parameter
Name Description
other ValueFrequency
Returns
Type Description
ValueFrequency.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ValueFrequency.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ValueFrequency.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ValueFrequency.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ValueFrequency.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ValueFrequency.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ValueFrequency.Builder
Overrides

mergeValue(Value value)

public ValueFrequency.Builder mergeValue(Value value)

A value contained in the field in question.

.google.privacy.dlp.v2.Value value = 1;

Parameter
Name Description
value Value
Returns
Type Description
ValueFrequency.Builder

setCount(long value)

public ValueFrequency.Builder setCount(long value)

How many times the value is contained in the field.

int64 count = 2;

Parameter
Name Description
value long

The count to set.

Returns
Type Description
ValueFrequency.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ValueFrequency.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ValueFrequency.Builder
Overrides

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

public ValueFrequency.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ValueFrequency.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ValueFrequency.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ValueFrequency.Builder
Overrides

setValue(Value value)

public ValueFrequency.Builder setValue(Value value)

A value contained in the field in question.

.google.privacy.dlp.v2.Value value = 1;

Parameter
Name Description
value Value
Returns
Type Description
ValueFrequency.Builder

setValue(Value.Builder builderForValue)

public ValueFrequency.Builder setValue(Value.Builder builderForValue)

A value contained in the field in question.

.google.privacy.dlp.v2.Value value = 1;

Parameter
Name Description
builderForValue Value.Builder
Returns
Type Description
ValueFrequency.Builder