Class ReportValue.Builder (3.23.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ReportValue build()
Returns
TypeDescription
ReportValue

buildPartial()

public ReportValue buildPartial()
Returns
TypeDescription
ReportValue

clear()

public ReportValue.Builder clear()
Returns
TypeDescription
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
TypeDescription
ReportValue.Builder

clearDateValue()

public ReportValue.Builder clearDateValue()

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

.google.type.Date date_value = 5;

Returns
TypeDescription
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
TypeDescription
ReportValue.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearIntValue()

public ReportValue.Builder clearIntValue()

A value of type int.

int64 int_value = 2;

Returns
TypeDescription
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
TypeDescription
ReportValue.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearStringValue()

public ReportValue.Builder clearStringValue()

A value of type string.

string string_value = 1;

Returns
TypeDescription
ReportValue.Builder

This builder for chaining.

clearValue()

public ReportValue.Builder clearValue()
Returns
TypeDescription
ReportValue.Builder

clone()

public ReportValue.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
com.google.type.DecimalOrBuilder

getDefaultInstanceForType()

public ReportValue getDefaultInstanceForType()
Returns
TypeDescription
ReportValue

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getIntValue()

public long getIntValue()

A value of type int.

int64 int_value = 2;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
com.google.type.MoneyOrBuilder

getStringValue()

public String getStringValue()

A value of type string.

string string_value = 1;

Returns
TypeDescription
String

The stringValue.

getStringValueBytes()

public ByteString getStringValueBytes()

A value of type string.

string string_value = 1;

Returns
TypeDescription
ByteString

The bytes for stringValue.

getValueCase()

public ReportValue.ValueCase getValueCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the decimalValue field is set.

hasIntValue()

public boolean hasIntValue()

A value of type int.

int64 int_value = 2;

Returns
TypeDescription
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
TypeDescription
boolean

Whether the moneyValue field is set.

hasStringValue()

public boolean hasStringValue()

A value of type string.

string string_value = 1;

Returns
TypeDescription
boolean

Whether the stringValue field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valuecom.google.type.DateTime
Returns
TypeDescription
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
NameDescription
valuecom.google.type.Date
Returns
TypeDescription
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
NameDescription
valuecom.google.type.Decimal
Returns
TypeDescription
ReportValue.Builder

mergeFrom(ReportValue other)

public ReportValue.Builder mergeFrom(ReportValue other)
Parameter
NameDescription
otherReportValue
Returns
TypeDescription
ReportValue.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ReportValue.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valuecom.google.type.Money
Returns
TypeDescription
ReportValue.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ReportValue.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuecom.google.type.DateTime
Returns
TypeDescription
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
NameDescription
builderForValuecom.google.type.DateTime.Builder
Returns
TypeDescription
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
NameDescription
valuecom.google.type.Date
Returns
TypeDescription
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
NameDescription
builderForValuecom.google.type.Date.Builder
Returns
TypeDescription
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
NameDescription
valuecom.google.type.Decimal
Returns
TypeDescription
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
NameDescription
builderForValuecom.google.type.Decimal.Builder
Returns
TypeDescription
ReportValue.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setIntValue(long value)

public ReportValue.Builder setIntValue(long value)

A value of type int.

int64 int_value = 2;

Parameter
NameDescription
valuelong

The intValue to set.

Returns
TypeDescription
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
NameDescription
valuecom.google.type.Money
Returns
TypeDescription
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
NameDescription
builderForValuecom.google.type.Money.Builder
Returns
TypeDescription
ReportValue.Builder

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

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

setStringValue(String value)

public ReportValue.Builder setStringValue(String value)

A value of type string.

string string_value = 1;

Parameter
NameDescription
valueString

The stringValue to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for stringValue to set.

Returns
TypeDescription
ReportValue.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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