Class TimeSeries.Builder (0.62.0)

public static final class TimeSeries.Builder extends GeneratedMessage.Builder<TimeSeries.Builder> implements TimeSeriesOrBuilder

Represents a chronological sequence of daily values.

Protobuf type google.ads.admanager.v1.TimeSeries

Implements

TimeSeriesOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllValues(Iterable<? extends Long> values)

public TimeSeries.Builder addAllValues(Iterable<? extends Long> values)

The daily values constituting the time series.

The number of time series values must equal the number of days spanned by the time series date range, inclusive. For example, a timeSeriesDateRange of 2001-08-15 to 2001-08-17 contains one value for the 15th, one value for the 16th, and one value for the 17th.

repeated int64 values = 2;

Parameter
Name Description
values Iterable<? extends java.lang.Long>

The values to add.

Returns
Type Description
TimeSeries.Builder

This builder for chaining.

addValues(long value)

public TimeSeries.Builder addValues(long value)

The daily values constituting the time series.

The number of time series values must equal the number of days spanned by the time series date range, inclusive. For example, a timeSeriesDateRange of 2001-08-15 to 2001-08-17 contains one value for the 15th, one value for the 16th, and one value for the 17th.

repeated int64 values = 2;

Parameter
Name Description
value long

The values to add.

Returns
Type Description
TimeSeries.Builder

This builder for chaining.

build()

public TimeSeries build()
Returns
Type Description
TimeSeries

buildPartial()

public TimeSeries buildPartial()
Returns
Type Description
TimeSeries

clear()

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

clearTimeSeriesDateRange()

public TimeSeries.Builder clearTimeSeriesDateRange()

The date range of the time series.

.google.ads.admanager.v1.DateRange time_series_date_range = 1;

Returns
Type Description
TimeSeries.Builder

clearValues()

public TimeSeries.Builder clearValues()

The daily values constituting the time series.

The number of time series values must equal the number of days spanned by the time series date range, inclusive. For example, a timeSeriesDateRange of 2001-08-15 to 2001-08-17 contains one value for the 15th, one value for the 16th, and one value for the 17th.

repeated int64 values = 2;

Returns
Type Description
TimeSeries.Builder

This builder for chaining.

getDefaultInstanceForType()

public TimeSeries getDefaultInstanceForType()
Returns
Type Description
TimeSeries

getDescriptorForType()

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

getTimeSeriesDateRange()

public DateRange getTimeSeriesDateRange()

The date range of the time series.

.google.ads.admanager.v1.DateRange time_series_date_range = 1;

Returns
Type Description
DateRange

The timeSeriesDateRange.

getTimeSeriesDateRangeBuilder()

public DateRange.Builder getTimeSeriesDateRangeBuilder()

The date range of the time series.

.google.ads.admanager.v1.DateRange time_series_date_range = 1;

Returns
Type Description
DateRange.Builder

getTimeSeriesDateRangeOrBuilder()

public DateRangeOrBuilder getTimeSeriesDateRangeOrBuilder()

The date range of the time series.

.google.ads.admanager.v1.DateRange time_series_date_range = 1;

Returns
Type Description
DateRangeOrBuilder

getValues(int index)

public long getValues(int index)

The daily values constituting the time series.

The number of time series values must equal the number of days spanned by the time series date range, inclusive. For example, a timeSeriesDateRange of 2001-08-15 to 2001-08-17 contains one value for the 15th, one value for the 16th, and one value for the 17th.

repeated int64 values = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
long

The values at the given index.

getValuesCount()

public int getValuesCount()

The daily values constituting the time series.

The number of time series values must equal the number of days spanned by the time series date range, inclusive. For example, a timeSeriesDateRange of 2001-08-15 to 2001-08-17 contains one value for the 15th, one value for the 16th, and one value for the 17th.

repeated int64 values = 2;

Returns
Type Description
int

The count of values.

getValuesList()

public List<Long> getValuesList()

The daily values constituting the time series.

The number of time series values must equal the number of days spanned by the time series date range, inclusive. For example, a timeSeriesDateRange of 2001-08-15 to 2001-08-17 contains one value for the 15th, one value for the 16th, and one value for the 17th.

repeated int64 values = 2;

Returns
Type Description
List<Long>

A list containing the values.

hasTimeSeriesDateRange()

public boolean hasTimeSeriesDateRange()

The date range of the time series.

.google.ads.admanager.v1.DateRange time_series_date_range = 1;

Returns
Type Description
boolean

Whether the timeSeriesDateRange field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TimeSeries other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeTimeSeriesDateRange(DateRange value)

public TimeSeries.Builder mergeTimeSeriesDateRange(DateRange value)

The date range of the time series.

.google.ads.admanager.v1.DateRange time_series_date_range = 1;

Parameter
Name Description
value DateRange
Returns
Type Description
TimeSeries.Builder

setTimeSeriesDateRange(DateRange value)

public TimeSeries.Builder setTimeSeriesDateRange(DateRange value)

The date range of the time series.

.google.ads.admanager.v1.DateRange time_series_date_range = 1;

Parameter
Name Description
value DateRange
Returns
Type Description
TimeSeries.Builder

setTimeSeriesDateRange(DateRange.Builder builderForValue)

public TimeSeries.Builder setTimeSeriesDateRange(DateRange.Builder builderForValue)

The date range of the time series.

.google.ads.admanager.v1.DateRange time_series_date_range = 1;

Parameter
Name Description
builderForValue DateRange.Builder
Returns
Type Description
TimeSeries.Builder

setValues(int index, long value)

public TimeSeries.Builder setValues(int index, long value)

The daily values constituting the time series.

The number of time series values must equal the number of days spanned by the time series date range, inclusive. For example, a timeSeriesDateRange of 2001-08-15 to 2001-08-17 contains one value for the 15th, one value for the 16th, and one value for the 17th.

repeated int64 values = 2;

Parameters
Name Description
index int

The index to set the value at.

value long

The values to set.

Returns
Type Description
TimeSeries.Builder

This builder for chaining.