Class ReportValue.Builder (3.48.0)

public static final class ReportValue.Builder extends GeneratedMessageV3.Builder<ReportValue.Builder> implements ReportValueOrBuilder

A single report value.

Protobuf type google.cloud.channel.v1.ReportValue

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ReportValue build()
Returns
Type Description
ReportValue

buildPartial()

public ReportValue buildPartial()
Returns
Type Description
ReportValue

clear()

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

clearDateTimeValue()

public ReportValue.Builder clearDateTimeValue()

A value of type google.type.DateTime (year, month, day, hour, minute, second, and UTC offset or timezone.)

.google.type.DateTime date_time_value = 6;

Returns
Type Description
ReportValue.Builder

clearDateValue()

public ReportValue.Builder clearDateValue()

A value of type google.type.Date (year, month, day).

.google.type.Date date_value = 5;

Returns
Type Description
ReportValue.Builder

clearDecimalValue()

public ReportValue.Builder clearDecimalValue()

A value of type google.type.Decimal, representing non-integer numeric values.

.google.type.Decimal decimal_value = 3;

Returns
Type Description
ReportValue.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearIntValue()

public ReportValue.Builder clearIntValue()

A value of type int.

int64 int_value = 2;

Returns
Type Description
ReportValue.Builder

This builder for chaining.

clearMoneyValue()

public ReportValue.Builder clearMoneyValue()

A value of type google.type.Money (currency code, whole units, decimal units).

.google.type.Money money_value = 4;

Returns
Type Description
ReportValue.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearStringValue()

public ReportValue.Builder clearStringValue()

A value of type string.

string string_value = 1;

Returns
Type Description
ReportValue.Builder

This builder for chaining.

clearValue()

public ReportValue.Builder clearValue()
Returns
Type Description
ReportValue.Builder

clone()

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

getDateTimeValue()

public DateTime getDateTimeValue()

A value of type google.type.DateTime (year, month, day, hour, minute, second, and UTC offset or timezone.)

.google.type.DateTime date_time_value = 6;

Returns
Type Description
com.google.type.DateTime

The dateTimeValue.

getDateTimeValueBuilder()

public DateTime.Builder getDateTimeValueBuilder()

A value of type google.type.DateTime (year, month, day, hour, minute, second, and UTC offset or timezone.)

.google.type.DateTime date_time_value = 6;

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

getDateTimeValueOrBuilder()

public DateTimeOrBuilder getDateTimeValueOrBuilder()

A value of type google.type.DateTime (year, month, day, hour, minute, second, and UTC offset or timezone.)

.google.type.DateTime date_time_value = 6;

Returns
Type Description
com.google.type.DateTimeOrBuilder

getDateValue()

public Date getDateValue()

A value of type google.type.Date (year, month, day).

.google.type.Date date_value = 5;

Returns
Type Description
com.google.type.Date

The dateValue.

getDateValueBuilder()

public Date.Builder getDateValueBuilder()

A value of type google.type.Date (year, month, day).

.google.type.Date date_value = 5;

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

getDateValueOrBuilder()

public DateOrBuilder getDateValueOrBuilder()

A value of type google.type.Date (year, month, day).

.google.type.Date date_value = 5;

Returns
Type Description
com.google.type.DateOrBuilder

getDecimalValue()

public Decimal getDecimalValue()

A value of type google.type.Decimal, representing non-integer numeric values.

.google.type.Decimal decimal_value = 3;

Returns
Type Description
com.google.type.Decimal

The decimalValue.

getDecimalValueBuilder()

public Decimal.Builder getDecimalValueBuilder()

A value of type google.type.Decimal, representing non-integer numeric values.

.google.type.Decimal decimal_value = 3;

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

getDecimalValueOrBuilder()

public DecimalOrBuilder getDecimalValueOrBuilder()

A value of type google.type.Decimal, representing non-integer numeric values.

.google.type.Decimal decimal_value = 3;

Returns
Type Description
com.google.type.DecimalOrBuilder

getDefaultInstanceForType()

public ReportValue getDefaultInstanceForType()
Returns
Type Description
ReportValue

getDescriptorForType()

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

getIntValue()

public long getIntValue()

A value of type int.

int64 int_value = 2;

Returns
Type Description
long

The intValue.

getMoneyValue()

public Money getMoneyValue()

A value of type google.type.Money (currency code, whole units, decimal units).

.google.type.Money money_value = 4;

Returns
Type Description
com.google.type.Money

The moneyValue.

getMoneyValueBuilder()

public Money.Builder getMoneyValueBuilder()

A value of type google.type.Money (currency code, whole units, decimal units).

.google.type.Money money_value = 4;

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

getMoneyValueOrBuilder()

public MoneyOrBuilder getMoneyValueOrBuilder()

A value of type google.type.Money (currency code, whole units, decimal units).

.google.type.Money money_value = 4;

Returns
Type Description
com.google.type.MoneyOrBuilder

getStringValue()

public String getStringValue()

A value of type string.

string string_value = 1;

Returns
Type Description
String

The stringValue.

getStringValueBytes()

public ByteString getStringValueBytes()

A value of type string.

string string_value = 1;

Returns
Type Description
ByteString

The bytes for stringValue.

getValueCase()

public ReportValue.ValueCase getValueCase()
Returns
Type Description
ReportValue.ValueCase

hasDateTimeValue()

public boolean hasDateTimeValue()

A value of type google.type.DateTime (year, month, day, hour, minute, second, and UTC offset or timezone.)

.google.type.DateTime date_time_value = 6;

Returns
Type Description
boolean

Whether the dateTimeValue field is set.

hasDateValue()

public boolean hasDateValue()

A value of type google.type.Date (year, month, day).

.google.type.Date date_value = 5;

Returns
Type Description
boolean

Whether the dateValue field is set.

hasDecimalValue()

public boolean hasDecimalValue()

A value of type google.type.Decimal, representing non-integer numeric values.

.google.type.Decimal decimal_value = 3;

Returns
Type Description
boolean

Whether the decimalValue field is set.

hasIntValue()

public boolean hasIntValue()

A value of type int.

int64 int_value = 2;

Returns
Type Description
boolean

Whether the intValue field is set.

hasMoneyValue()

public boolean hasMoneyValue()

A value of type google.type.Money (currency code, whole units, decimal units).

.google.type.Money money_value = 4;

Returns
Type Description
boolean

Whether the moneyValue field is set.

hasStringValue()

public boolean hasStringValue()

A value of type string.

string string_value = 1;

Returns
Type Description
boolean

Whether the stringValue field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDateTimeValue(DateTime value)

public ReportValue.Builder mergeDateTimeValue(DateTime value)

A value of type google.type.DateTime (year, month, day, hour, minute, second, and UTC offset or timezone.)

.google.type.DateTime date_time_value = 6;

Parameter
Name Description
value com.google.type.DateTime
Returns
Type Description
ReportValue.Builder

mergeDateValue(Date value)

public ReportValue.Builder mergeDateValue(Date value)

A value of type google.type.Date (year, month, day).

.google.type.Date date_value = 5;

Parameter
Name Description
value com.google.type.Date
Returns
Type Description
ReportValue.Builder

mergeDecimalValue(Decimal value)

public ReportValue.Builder mergeDecimalValue(Decimal value)

A value of type google.type.Decimal, representing non-integer numeric values.

.google.type.Decimal decimal_value = 3;

Parameter
Name Description
value com.google.type.Decimal
Returns
Type Description
ReportValue.Builder

mergeFrom(ReportValue other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMoneyValue(Money value)

public ReportValue.Builder mergeMoneyValue(Money value)

A value of type google.type.Money (currency code, whole units, decimal units).

.google.type.Money money_value = 4;

Parameter
Name Description
value com.google.type.Money
Returns
Type Description
ReportValue.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDateTimeValue(DateTime value)

public ReportValue.Builder setDateTimeValue(DateTime value)

A value of type google.type.DateTime (year, month, day, hour, minute, second, and UTC offset or timezone.)

.google.type.DateTime date_time_value = 6;

Parameter
Name Description
value com.google.type.DateTime
Returns
Type Description
ReportValue.Builder

setDateTimeValue(DateTime.Builder builderForValue)

public ReportValue.Builder setDateTimeValue(DateTime.Builder builderForValue)

A value of type google.type.DateTime (year, month, day, hour, minute, second, and UTC offset or timezone.)

.google.type.DateTime date_time_value = 6;

Parameter
Name Description
builderForValue com.google.type.DateTime.Builder
Returns
Type Description
ReportValue.Builder

setDateValue(Date value)

public ReportValue.Builder setDateValue(Date value)

A value of type google.type.Date (year, month, day).

.google.type.Date date_value = 5;

Parameter
Name Description
value com.google.type.Date
Returns
Type Description
ReportValue.Builder

setDateValue(Date.Builder builderForValue)

public ReportValue.Builder setDateValue(Date.Builder builderForValue)

A value of type google.type.Date (year, month, day).

.google.type.Date date_value = 5;

Parameter
Name Description
builderForValue com.google.type.Date.Builder
Returns
Type Description
ReportValue.Builder

setDecimalValue(Decimal value)

public ReportValue.Builder setDecimalValue(Decimal value)

A value of type google.type.Decimal, representing non-integer numeric values.

.google.type.Decimal decimal_value = 3;

Parameter
Name Description
value com.google.type.Decimal
Returns
Type Description
ReportValue.Builder

setDecimalValue(Decimal.Builder builderForValue)

public ReportValue.Builder setDecimalValue(Decimal.Builder builderForValue)

A value of type google.type.Decimal, representing non-integer numeric values.

.google.type.Decimal decimal_value = 3;

Parameter
Name Description
builderForValue com.google.type.Decimal.Builder
Returns
Type Description
ReportValue.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setIntValue(long value)

public ReportValue.Builder setIntValue(long value)

A value of type int.

int64 int_value = 2;

Parameter
Name Description
value long

The intValue to set.

Returns
Type Description
ReportValue.Builder

This builder for chaining.

setMoneyValue(Money value)

public ReportValue.Builder setMoneyValue(Money value)

A value of type google.type.Money (currency code, whole units, decimal units).

.google.type.Money money_value = 4;

Parameter
Name Description
value com.google.type.Money
Returns
Type Description
ReportValue.Builder

setMoneyValue(Money.Builder builderForValue)

public ReportValue.Builder setMoneyValue(Money.Builder builderForValue)

A value of type google.type.Money (currency code, whole units, decimal units).

.google.type.Money money_value = 4;

Parameter
Name Description
builderForValue com.google.type.Money.Builder
Returns
Type Description
ReportValue.Builder

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

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

setStringValue(String value)

public ReportValue.Builder setStringValue(String value)

A value of type string.

string string_value = 1;

Parameter
Name Description
value String

The stringValue to set.

Returns
Type Description
ReportValue.Builder

This builder for chaining.

setStringValueBytes(ByteString value)

public ReportValue.Builder setStringValueBytes(ByteString value)

A value of type string.

string string_value = 1;

Parameter
Name Description
value ByteString

The bytes for stringValue to set.

Returns
Type Description
ReportValue.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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