Class QueryMetricsResponse.Slice.Builder (2.55.0)

public static final class QueryMetricsResponse.Slice.Builder extends GeneratedMessageV3.Builder<QueryMetricsResponse.Slice.Builder> implements QueryMetricsResponse.SliceOrBuilder

A slice contains a total and (if the request specified a time granularity) a time series of metric values. Each slice contains a unique combination of the cardinality of dimensions from the request.

For example, if the request specifies a single ISSUE dimension and it has a cardinality of 2 (i.e. the data used to compute the metrics has 2 issues in total), the response will have 2 slices:

  • Slice 1 -> dimensions=[Issue 1]
  • Slice 2 -> dimensions=[Issue 2]

Protobuf type google.cloud.contactcenterinsights.v1.QueryMetricsResponse.Slice

Static Methods

getDescriptor()

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

Methods

addAllDimensions(Iterable<? extends Dimension> values)

public QueryMetricsResponse.Slice.Builder addAllDimensions(Iterable<? extends Dimension> values)

A unique combination of dimensions that this slice represents.

repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.contactcenterinsights.v1.Dimension>
Returns
Type Description
QueryMetricsResponse.Slice.Builder

addDimensions(Dimension value)

public QueryMetricsResponse.Slice.Builder addDimensions(Dimension value)

A unique combination of dimensions that this slice represents.

repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 1;

Parameter
Name Description
value Dimension
Returns
Type Description
QueryMetricsResponse.Slice.Builder

addDimensions(Dimension.Builder builderForValue)

public QueryMetricsResponse.Slice.Builder addDimensions(Dimension.Builder builderForValue)

A unique combination of dimensions that this slice represents.

repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 1;

Parameter
Name Description
builderForValue Dimension.Builder
Returns
Type Description
QueryMetricsResponse.Slice.Builder

addDimensions(int index, Dimension value)

public QueryMetricsResponse.Slice.Builder addDimensions(int index, Dimension value)

A unique combination of dimensions that this slice represents.

repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 1;

Parameters
Name Description
index int
value Dimension
Returns
Type Description
QueryMetricsResponse.Slice.Builder

addDimensions(int index, Dimension.Builder builderForValue)

public QueryMetricsResponse.Slice.Builder addDimensions(int index, Dimension.Builder builderForValue)

A unique combination of dimensions that this slice represents.

repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 1;

Parameters
Name Description
index int
builderForValue Dimension.Builder
Returns
Type Description
QueryMetricsResponse.Slice.Builder

addDimensionsBuilder()

public Dimension.Builder addDimensionsBuilder()

A unique combination of dimensions that this slice represents.

repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 1;

Returns
Type Description
Dimension.Builder

addDimensionsBuilder(int index)

public Dimension.Builder addDimensionsBuilder(int index)

A unique combination of dimensions that this slice represents.

repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 1;

Parameter
Name Description
index int
Returns
Type Description
Dimension.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public QueryMetricsResponse.Slice build()
Returns
Type Description
QueryMetricsResponse.Slice

buildPartial()

public QueryMetricsResponse.Slice buildPartial()
Returns
Type Description
QueryMetricsResponse.Slice

clear()

public QueryMetricsResponse.Slice.Builder clear()
Returns
Type Description
QueryMetricsResponse.Slice.Builder
Overrides

clearDimensions()

public QueryMetricsResponse.Slice.Builder clearDimensions()

A unique combination of dimensions that this slice represents.

repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 1;

Returns
Type Description
QueryMetricsResponse.Slice.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTimeSeries()

public QueryMetricsResponse.Slice.Builder clearTimeSeries()

A time series of metric values. This is only populated if the request specifies a time granularity other than NONE.

.google.cloud.contactcenterinsights.v1.QueryMetricsResponse.Slice.TimeSeries time_series = 3;

Returns
Type Description
QueryMetricsResponse.Slice.Builder

clearTotal()

public QueryMetricsResponse.Slice.Builder clearTotal()

The total metric value. The interval of this data point is [starting create time, ending create time) from the request.

.google.cloud.contactcenterinsights.v1.QueryMetricsResponse.Slice.DataPoint total = 2;

Returns
Type Description
QueryMetricsResponse.Slice.Builder

clone()

public QueryMetricsResponse.Slice.Builder clone()
Returns
Type Description
QueryMetricsResponse.Slice.Builder
Overrides

getDefaultInstanceForType()

public QueryMetricsResponse.Slice getDefaultInstanceForType()
Returns
Type Description
QueryMetricsResponse.Slice

getDescriptorForType()

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

getDimensions(int index)

public Dimension getDimensions(int index)

A unique combination of dimensions that this slice represents.

repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 1;

Parameter
Name Description
index int
Returns
Type Description
Dimension

getDimensionsBuilder(int index)

public Dimension.Builder getDimensionsBuilder(int index)

A unique combination of dimensions that this slice represents.

repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 1;

Parameter
Name Description
index int
Returns
Type Description
Dimension.Builder

getDimensionsBuilderList()

public List<Dimension.Builder> getDimensionsBuilderList()

A unique combination of dimensions that this slice represents.

repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 1;

Returns
Type Description
List<Builder>

getDimensionsCount()

public int getDimensionsCount()

A unique combination of dimensions that this slice represents.

repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 1;

Returns
Type Description
int

getDimensionsList()

public List<Dimension> getDimensionsList()

A unique combination of dimensions that this slice represents.

repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 1;

Returns
Type Description
List<Dimension>

getDimensionsOrBuilder(int index)

public DimensionOrBuilder getDimensionsOrBuilder(int index)

A unique combination of dimensions that this slice represents.

repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 1;

Parameter
Name Description
index int
Returns
Type Description
DimensionOrBuilder

getDimensionsOrBuilderList()

public List<? extends DimensionOrBuilder> getDimensionsOrBuilderList()

A unique combination of dimensions that this slice represents.

repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 1;

Returns
Type Description
List<? extends com.google.cloud.contactcenterinsights.v1.DimensionOrBuilder>

getTimeSeries()

public QueryMetricsResponse.Slice.TimeSeries getTimeSeries()

A time series of metric values. This is only populated if the request specifies a time granularity other than NONE.

.google.cloud.contactcenterinsights.v1.QueryMetricsResponse.Slice.TimeSeries time_series = 3;

Returns
Type Description
QueryMetricsResponse.Slice.TimeSeries

The timeSeries.

getTimeSeriesBuilder()

public QueryMetricsResponse.Slice.TimeSeries.Builder getTimeSeriesBuilder()

A time series of metric values. This is only populated if the request specifies a time granularity other than NONE.

.google.cloud.contactcenterinsights.v1.QueryMetricsResponse.Slice.TimeSeries time_series = 3;

Returns
Type Description
QueryMetricsResponse.Slice.TimeSeries.Builder

getTimeSeriesOrBuilder()

public QueryMetricsResponse.Slice.TimeSeriesOrBuilder getTimeSeriesOrBuilder()

A time series of metric values. This is only populated if the request specifies a time granularity other than NONE.

.google.cloud.contactcenterinsights.v1.QueryMetricsResponse.Slice.TimeSeries time_series = 3;

Returns
Type Description
QueryMetricsResponse.Slice.TimeSeriesOrBuilder

getTotal()

public QueryMetricsResponse.Slice.DataPoint getTotal()

The total metric value. The interval of this data point is [starting create time, ending create time) from the request.

.google.cloud.contactcenterinsights.v1.QueryMetricsResponse.Slice.DataPoint total = 2;

Returns
Type Description
QueryMetricsResponse.Slice.DataPoint

The total.

getTotalBuilder()

public QueryMetricsResponse.Slice.DataPoint.Builder getTotalBuilder()

The total metric value. The interval of this data point is [starting create time, ending create time) from the request.

.google.cloud.contactcenterinsights.v1.QueryMetricsResponse.Slice.DataPoint total = 2;

Returns
Type Description
QueryMetricsResponse.Slice.DataPoint.Builder

getTotalOrBuilder()

public QueryMetricsResponse.Slice.DataPointOrBuilder getTotalOrBuilder()

The total metric value. The interval of this data point is [starting create time, ending create time) from the request.

.google.cloud.contactcenterinsights.v1.QueryMetricsResponse.Slice.DataPoint total = 2;

Returns
Type Description
QueryMetricsResponse.Slice.DataPointOrBuilder

hasTimeSeries()

public boolean hasTimeSeries()

A time series of metric values. This is only populated if the request specifies a time granularity other than NONE.

.google.cloud.contactcenterinsights.v1.QueryMetricsResponse.Slice.TimeSeries time_series = 3;

Returns
Type Description
boolean

Whether the timeSeries field is set.

hasTotal()

public boolean hasTotal()

The total metric value. The interval of this data point is [starting create time, ending create time) from the request.

.google.cloud.contactcenterinsights.v1.QueryMetricsResponse.Slice.DataPoint total = 2;

Returns
Type Description
boolean

Whether the total field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(QueryMetricsResponse.Slice other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeTimeSeries(QueryMetricsResponse.Slice.TimeSeries value)

public QueryMetricsResponse.Slice.Builder mergeTimeSeries(QueryMetricsResponse.Slice.TimeSeries value)

A time series of metric values. This is only populated if the request specifies a time granularity other than NONE.

.google.cloud.contactcenterinsights.v1.QueryMetricsResponse.Slice.TimeSeries time_series = 3;

Parameter
Name Description
value QueryMetricsResponse.Slice.TimeSeries
Returns
Type Description
QueryMetricsResponse.Slice.Builder

mergeTotal(QueryMetricsResponse.Slice.DataPoint value)

public QueryMetricsResponse.Slice.Builder mergeTotal(QueryMetricsResponse.Slice.DataPoint value)

The total metric value. The interval of this data point is [starting create time, ending create time) from the request.

.google.cloud.contactcenterinsights.v1.QueryMetricsResponse.Slice.DataPoint total = 2;

Parameter
Name Description
value QueryMetricsResponse.Slice.DataPoint
Returns
Type Description
QueryMetricsResponse.Slice.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeDimensions(int index)

public QueryMetricsResponse.Slice.Builder removeDimensions(int index)

A unique combination of dimensions that this slice represents.

repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 1;

Parameter
Name Description
index int
Returns
Type Description
QueryMetricsResponse.Slice.Builder

setDimensions(int index, Dimension value)

public QueryMetricsResponse.Slice.Builder setDimensions(int index, Dimension value)

A unique combination of dimensions that this slice represents.

repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 1;

Parameters
Name Description
index int
value Dimension
Returns
Type Description
QueryMetricsResponse.Slice.Builder

setDimensions(int index, Dimension.Builder builderForValue)

public QueryMetricsResponse.Slice.Builder setDimensions(int index, Dimension.Builder builderForValue)

A unique combination of dimensions that this slice represents.

repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 1;

Parameters
Name Description
index int
builderForValue Dimension.Builder
Returns
Type Description
QueryMetricsResponse.Slice.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setTimeSeries(QueryMetricsResponse.Slice.TimeSeries value)

public QueryMetricsResponse.Slice.Builder setTimeSeries(QueryMetricsResponse.Slice.TimeSeries value)

A time series of metric values. This is only populated if the request specifies a time granularity other than NONE.

.google.cloud.contactcenterinsights.v1.QueryMetricsResponse.Slice.TimeSeries time_series = 3;

Parameter
Name Description
value QueryMetricsResponse.Slice.TimeSeries
Returns
Type Description
QueryMetricsResponse.Slice.Builder

setTimeSeries(QueryMetricsResponse.Slice.TimeSeries.Builder builderForValue)

public QueryMetricsResponse.Slice.Builder setTimeSeries(QueryMetricsResponse.Slice.TimeSeries.Builder builderForValue)

A time series of metric values. This is only populated if the request specifies a time granularity other than NONE.

.google.cloud.contactcenterinsights.v1.QueryMetricsResponse.Slice.TimeSeries time_series = 3;

Parameter
Name Description
builderForValue QueryMetricsResponse.Slice.TimeSeries.Builder
Returns
Type Description
QueryMetricsResponse.Slice.Builder

setTotal(QueryMetricsResponse.Slice.DataPoint value)

public QueryMetricsResponse.Slice.Builder setTotal(QueryMetricsResponse.Slice.DataPoint value)

The total metric value. The interval of this data point is [starting create time, ending create time) from the request.

.google.cloud.contactcenterinsights.v1.QueryMetricsResponse.Slice.DataPoint total = 2;

Parameter
Name Description
value QueryMetricsResponse.Slice.DataPoint
Returns
Type Description
QueryMetricsResponse.Slice.Builder

setTotal(QueryMetricsResponse.Slice.DataPoint.Builder builderForValue)

public QueryMetricsResponse.Slice.Builder setTotal(QueryMetricsResponse.Slice.DataPoint.Builder builderForValue)

The total metric value. The interval of this data point is [starting create time, ending create time) from the request.

.google.cloud.contactcenterinsights.v1.QueryMetricsResponse.Slice.DataPoint total = 2;

Parameter
Name Description
builderForValue QueryMetricsResponse.Slice.DataPoint.Builder
Returns
Type Description
QueryMetricsResponse.Slice.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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