Class CalculateStatsResponse.TimeSeries.Builder (2.28.0)

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

A time series representing conversations over time.

Protobuf type google.cloud.contactcenterinsights.v1.CalculateStatsResponse.TimeSeries

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllPoints(Iterable<? extends CalculateStatsResponse.TimeSeries.Interval> values)

public CalculateStatsResponse.TimeSeries.Builder addAllPoints(Iterable<? extends CalculateStatsResponse.TimeSeries.Interval> values)

An ordered list of intervals from earliest to latest, where each interval represents the number of conversations that transpired during the time window.

repeated .google.cloud.contactcenterinsights.v1.CalculateStatsResponse.TimeSeries.Interval points = 2;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.contactcenterinsights.v1.CalculateStatsResponse.TimeSeries.Interval>
Returns
TypeDescription
CalculateStatsResponse.TimeSeries.Builder

addPoints(CalculateStatsResponse.TimeSeries.Interval value)

public CalculateStatsResponse.TimeSeries.Builder addPoints(CalculateStatsResponse.TimeSeries.Interval value)

An ordered list of intervals from earliest to latest, where each interval represents the number of conversations that transpired during the time window.

repeated .google.cloud.contactcenterinsights.v1.CalculateStatsResponse.TimeSeries.Interval points = 2;

Parameter
NameDescription
valueCalculateStatsResponse.TimeSeries.Interval
Returns
TypeDescription
CalculateStatsResponse.TimeSeries.Builder

addPoints(CalculateStatsResponse.TimeSeries.Interval.Builder builderForValue)

public CalculateStatsResponse.TimeSeries.Builder addPoints(CalculateStatsResponse.TimeSeries.Interval.Builder builderForValue)

An ordered list of intervals from earliest to latest, where each interval represents the number of conversations that transpired during the time window.

repeated .google.cloud.contactcenterinsights.v1.CalculateStatsResponse.TimeSeries.Interval points = 2;

Parameter
NameDescription
builderForValueCalculateStatsResponse.TimeSeries.Interval.Builder
Returns
TypeDescription
CalculateStatsResponse.TimeSeries.Builder

addPoints(int index, CalculateStatsResponse.TimeSeries.Interval value)

public CalculateStatsResponse.TimeSeries.Builder addPoints(int index, CalculateStatsResponse.TimeSeries.Interval value)

An ordered list of intervals from earliest to latest, where each interval represents the number of conversations that transpired during the time window.

repeated .google.cloud.contactcenterinsights.v1.CalculateStatsResponse.TimeSeries.Interval points = 2;

Parameters
NameDescription
indexint
valueCalculateStatsResponse.TimeSeries.Interval
Returns
TypeDescription
CalculateStatsResponse.TimeSeries.Builder

addPoints(int index, CalculateStatsResponse.TimeSeries.Interval.Builder builderForValue)

public CalculateStatsResponse.TimeSeries.Builder addPoints(int index, CalculateStatsResponse.TimeSeries.Interval.Builder builderForValue)

An ordered list of intervals from earliest to latest, where each interval represents the number of conversations that transpired during the time window.

repeated .google.cloud.contactcenterinsights.v1.CalculateStatsResponse.TimeSeries.Interval points = 2;

Parameters
NameDescription
indexint
builderForValueCalculateStatsResponse.TimeSeries.Interval.Builder
Returns
TypeDescription
CalculateStatsResponse.TimeSeries.Builder

addPointsBuilder()

public CalculateStatsResponse.TimeSeries.Interval.Builder addPointsBuilder()

An ordered list of intervals from earliest to latest, where each interval represents the number of conversations that transpired during the time window.

repeated .google.cloud.contactcenterinsights.v1.CalculateStatsResponse.TimeSeries.Interval points = 2;

Returns
TypeDescription
CalculateStatsResponse.TimeSeries.Interval.Builder

addPointsBuilder(int index)

public CalculateStatsResponse.TimeSeries.Interval.Builder addPointsBuilder(int index)

An ordered list of intervals from earliest to latest, where each interval represents the number of conversations that transpired during the time window.

repeated .google.cloud.contactcenterinsights.v1.CalculateStatsResponse.TimeSeries.Interval points = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
CalculateStatsResponse.TimeSeries.Interval.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CalculateStatsResponse.TimeSeries build()
Returns
TypeDescription
CalculateStatsResponse.TimeSeries

buildPartial()

public CalculateStatsResponse.TimeSeries buildPartial()
Returns
TypeDescription
CalculateStatsResponse.TimeSeries

clear()

public CalculateStatsResponse.TimeSeries.Builder clear()
Returns
TypeDescription
CalculateStatsResponse.TimeSeries.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearIntervalDuration()

public CalculateStatsResponse.TimeSeries.Builder clearIntervalDuration()

The duration of each interval.

.google.protobuf.Duration interval_duration = 1;

Returns
TypeDescription
CalculateStatsResponse.TimeSeries.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPoints()

public CalculateStatsResponse.TimeSeries.Builder clearPoints()

An ordered list of intervals from earliest to latest, where each interval represents the number of conversations that transpired during the time window.

repeated .google.cloud.contactcenterinsights.v1.CalculateStatsResponse.TimeSeries.Interval points = 2;

Returns
TypeDescription
CalculateStatsResponse.TimeSeries.Builder

clone()

public CalculateStatsResponse.TimeSeries.Builder clone()
Returns
TypeDescription
CalculateStatsResponse.TimeSeries.Builder
Overrides

getDefaultInstanceForType()

public CalculateStatsResponse.TimeSeries getDefaultInstanceForType()
Returns
TypeDescription
CalculateStatsResponse.TimeSeries

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getIntervalDuration()

public Duration getIntervalDuration()

The duration of each interval.

.google.protobuf.Duration interval_duration = 1;

Returns
TypeDescription
Duration

The intervalDuration.

getIntervalDurationBuilder()

public Duration.Builder getIntervalDurationBuilder()

The duration of each interval.

.google.protobuf.Duration interval_duration = 1;

Returns
TypeDescription
Builder

getIntervalDurationOrBuilder()

public DurationOrBuilder getIntervalDurationOrBuilder()

The duration of each interval.

.google.protobuf.Duration interval_duration = 1;

Returns
TypeDescription
DurationOrBuilder

getPoints(int index)

public CalculateStatsResponse.TimeSeries.Interval getPoints(int index)

An ordered list of intervals from earliest to latest, where each interval represents the number of conversations that transpired during the time window.

repeated .google.cloud.contactcenterinsights.v1.CalculateStatsResponse.TimeSeries.Interval points = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
CalculateStatsResponse.TimeSeries.Interval

getPointsBuilder(int index)

public CalculateStatsResponse.TimeSeries.Interval.Builder getPointsBuilder(int index)

An ordered list of intervals from earliest to latest, where each interval represents the number of conversations that transpired during the time window.

repeated .google.cloud.contactcenterinsights.v1.CalculateStatsResponse.TimeSeries.Interval points = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
CalculateStatsResponse.TimeSeries.Interval.Builder

getPointsBuilderList()

public List<CalculateStatsResponse.TimeSeries.Interval.Builder> getPointsBuilderList()

An ordered list of intervals from earliest to latest, where each interval represents the number of conversations that transpired during the time window.

repeated .google.cloud.contactcenterinsights.v1.CalculateStatsResponse.TimeSeries.Interval points = 2;

Returns
TypeDescription
List<Builder>

getPointsCount()

public int getPointsCount()

An ordered list of intervals from earliest to latest, where each interval represents the number of conversations that transpired during the time window.

repeated .google.cloud.contactcenterinsights.v1.CalculateStatsResponse.TimeSeries.Interval points = 2;

Returns
TypeDescription
int

getPointsList()

public List<CalculateStatsResponse.TimeSeries.Interval> getPointsList()

An ordered list of intervals from earliest to latest, where each interval represents the number of conversations that transpired during the time window.

repeated .google.cloud.contactcenterinsights.v1.CalculateStatsResponse.TimeSeries.Interval points = 2;

Returns
TypeDescription
List<Interval>

getPointsOrBuilder(int index)

public CalculateStatsResponse.TimeSeries.IntervalOrBuilder getPointsOrBuilder(int index)

An ordered list of intervals from earliest to latest, where each interval represents the number of conversations that transpired during the time window.

repeated .google.cloud.contactcenterinsights.v1.CalculateStatsResponse.TimeSeries.Interval points = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
CalculateStatsResponse.TimeSeries.IntervalOrBuilder

getPointsOrBuilderList()

public List<? extends CalculateStatsResponse.TimeSeries.IntervalOrBuilder> getPointsOrBuilderList()

An ordered list of intervals from earliest to latest, where each interval represents the number of conversations that transpired during the time window.

repeated .google.cloud.contactcenterinsights.v1.CalculateStatsResponse.TimeSeries.Interval points = 2;

Returns
TypeDescription
List<? extends com.google.cloud.contactcenterinsights.v1.CalculateStatsResponse.TimeSeries.IntervalOrBuilder>

hasIntervalDuration()

public boolean hasIntervalDuration()

The duration of each interval.

.google.protobuf.Duration interval_duration = 1;

Returns
TypeDescription
boolean

Whether the intervalDuration field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CalculateStatsResponse.TimeSeries other)

public CalculateStatsResponse.TimeSeries.Builder mergeFrom(CalculateStatsResponse.TimeSeries other)
Parameter
NameDescription
otherCalculateStatsResponse.TimeSeries
Returns
TypeDescription
CalculateStatsResponse.TimeSeries.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeIntervalDuration(Duration value)

public CalculateStatsResponse.TimeSeries.Builder mergeIntervalDuration(Duration value)

The duration of each interval.

.google.protobuf.Duration interval_duration = 1;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
CalculateStatsResponse.TimeSeries.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CalculateStatsResponse.TimeSeries.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CalculateStatsResponse.TimeSeries.Builder
Overrides

removePoints(int index)

public CalculateStatsResponse.TimeSeries.Builder removePoints(int index)

An ordered list of intervals from earliest to latest, where each interval represents the number of conversations that transpired during the time window.

repeated .google.cloud.contactcenterinsights.v1.CalculateStatsResponse.TimeSeries.Interval points = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
CalculateStatsResponse.TimeSeries.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setIntervalDuration(Duration value)

public CalculateStatsResponse.TimeSeries.Builder setIntervalDuration(Duration value)

The duration of each interval.

.google.protobuf.Duration interval_duration = 1;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
CalculateStatsResponse.TimeSeries.Builder

setIntervalDuration(Duration.Builder builderForValue)

public CalculateStatsResponse.TimeSeries.Builder setIntervalDuration(Duration.Builder builderForValue)

The duration of each interval.

.google.protobuf.Duration interval_duration = 1;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
CalculateStatsResponse.TimeSeries.Builder

setPoints(int index, CalculateStatsResponse.TimeSeries.Interval value)

public CalculateStatsResponse.TimeSeries.Builder setPoints(int index, CalculateStatsResponse.TimeSeries.Interval value)

An ordered list of intervals from earliest to latest, where each interval represents the number of conversations that transpired during the time window.

repeated .google.cloud.contactcenterinsights.v1.CalculateStatsResponse.TimeSeries.Interval points = 2;

Parameters
NameDescription
indexint
valueCalculateStatsResponse.TimeSeries.Interval
Returns
TypeDescription
CalculateStatsResponse.TimeSeries.Builder

setPoints(int index, CalculateStatsResponse.TimeSeries.Interval.Builder builderForValue)

public CalculateStatsResponse.TimeSeries.Builder setPoints(int index, CalculateStatsResponse.TimeSeries.Interval.Builder builderForValue)

An ordered list of intervals from earliest to latest, where each interval represents the number of conversations that transpired during the time window.

repeated .google.cloud.contactcenterinsights.v1.CalculateStatsResponse.TimeSeries.Interval points = 2;

Parameters
NameDescription
indexint
builderForValueCalculateStatsResponse.TimeSeries.Interval.Builder
Returns
TypeDescription
CalculateStatsResponse.TimeSeries.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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