Class Value.Builder (3.47.0)

public static final class Value.Builder extends GeneratedMessageV3.Builder<Value.Builder> implements ValueOrBuilder

Set of primitive values supported by the system. Note that for the purposes of inspection or transformation, the number of bytes considered to comprise a 'Value' is based on its representation as a UTF-8 encoded string. For example, if 'integer_value' is set to 123456789, the number of bytes would be counted as 9, even though an int64 only holds up to 8 bytes of data.

Protobuf type google.privacy.dlp.v2.Value

Implements

ValueOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Value build()
Returns
Type Description
Value

buildPartial()

public Value buildPartial()
Returns
Type Description
Value

clear()

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

clearBooleanValue()

public Value.Builder clearBooleanValue()

boolean

bool boolean_value = 4;

Returns
Type Description
Value.Builder

This builder for chaining.

clearDateValue()

public Value.Builder clearDateValue()

date

.google.type.Date date_value = 7;

Returns
Type Description
Value.Builder

clearDayOfWeekValue()

public Value.Builder clearDayOfWeekValue()

day of week

.google.type.DayOfWeek day_of_week_value = 8;

Returns
Type Description
Value.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearFloatValue()

public Value.Builder clearFloatValue()

float

double float_value = 2;

Returns
Type Description
Value.Builder

This builder for chaining.

clearIntegerValue()

public Value.Builder clearIntegerValue()

integer

int64 integer_value = 1;

Returns
Type Description
Value.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearStringValue()

public Value.Builder clearStringValue()

string

string string_value = 3;

Returns
Type Description
Value.Builder

This builder for chaining.

clearTimeValue()

public Value.Builder clearTimeValue()

time of day

.google.type.TimeOfDay time_value = 6;

Returns
Type Description
Value.Builder

clearTimestampValue()

public Value.Builder clearTimestampValue()

timestamp

.google.protobuf.Timestamp timestamp_value = 5;

Returns
Type Description
Value.Builder

clearType()

public Value.Builder clearType()
Returns
Type Description
Value.Builder

clone()

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

getBooleanValue()

public boolean getBooleanValue()

boolean

bool boolean_value = 4;

Returns
Type Description
boolean

The booleanValue.

getDateValue()

public Date getDateValue()

date

.google.type.Date date_value = 7;

Returns
Type Description
com.google.type.Date

The dateValue.

getDateValueBuilder()

public Date.Builder getDateValueBuilder()

date

.google.type.Date date_value = 7;

Returns
Type Description
com.google.type.Date.Builder

getDateValueOrBuilder()

public DateOrBuilder getDateValueOrBuilder()

date

.google.type.Date date_value = 7;

Returns
Type Description
com.google.type.DateOrBuilder

getDayOfWeekValue()

public DayOfWeek getDayOfWeekValue()

day of week

.google.type.DayOfWeek day_of_week_value = 8;

Returns
Type Description
com.google.type.DayOfWeek

The dayOfWeekValue.

getDayOfWeekValueValue()

public int getDayOfWeekValueValue()

day of week

.google.type.DayOfWeek day_of_week_value = 8;

Returns
Type Description
int

The enum numeric value on the wire for dayOfWeekValue.

getDefaultInstanceForType()

public Value getDefaultInstanceForType()
Returns
Type Description
Value

getDescriptorForType()

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

getFloatValue()

public double getFloatValue()

float

double float_value = 2;

Returns
Type Description
double

The floatValue.

getIntegerValue()

public long getIntegerValue()

integer

int64 integer_value = 1;

Returns
Type Description
long

The integerValue.

getStringValue()

public String getStringValue()

string

string string_value = 3;

Returns
Type Description