Class ValueFrequency.Builder (3.9.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ValueFrequency build()
Returns
TypeDescription
ValueFrequency

buildPartial()

public ValueFrequency buildPartial()
Returns
TypeDescription
ValueFrequency

clear()

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

clearCount()

public ValueFrequency.Builder clearCount()

How many times the value is contained in the field.

int64 count = 2;

Returns
TypeDescription
ValueFrequency.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearValue()

public ValueFrequency.Builder clearValue()

A value contained in the field in question.

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

Returns
TypeDescription
ValueFrequency.Builder

clone()

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

getCount()

public long getCount()

How many times the value is contained in the field.

int64 count = 2;

Returns
TypeDescription
long

The count.

getDefaultInstanceForType()

public ValueFrequency getDefaultInstanceForType()
Returns
TypeDescription
ValueFrequency

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getValue()

public Value getValue()

A value contained in the field in question.

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

Returns
TypeDescription
Value

The value.

getValueBuilder()

public Value.Builder getValueBuilder()

A value contained in the field in question.

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

Returns
TypeDescription
Value.Builder

getValueOrBuilder()

public ValueOrBuilder getValueOrBuilder()

A value contained in the field in question.

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

Returns
TypeDescription
ValueOrBuilder

hasValue()

public boolean hasValue()

A value contained in the field in question.

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

Returns
TypeDescription
boolean

Whether the value field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ValueFrequency other)

public ValueFrequency.Builder mergeFrom(ValueFrequency other)
Parameter
NameDescription
otherValueFrequency
Returns
TypeDescription
ValueFrequency.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ValueFrequency.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueValue
Returns
TypeDescription
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
NameDescription
valuelong

The count to set.

Returns
TypeDescription
ValueFrequency.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final ValueFrequency.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueValue
Returns
TypeDescription
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
NameDescription
builderForValueValue.Builder
Returns
TypeDescription
ValueFrequency.Builder