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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
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>
|
public QueryMetricsResponse.Slice.Builder addDimensions(Dimension value)
A unique combination of dimensions that this slice represents.
repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 1;
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;
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;
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;
public Dimension.Builder addDimensionsBuilder()
A unique combination of dimensions that this slice represents.
repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 1;
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
|
public QueryMetricsResponse.Slice.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public QueryMetricsResponse.Slice build()
public QueryMetricsResponse.Slice buildPartial()
public QueryMetricsResponse.Slice.Builder clear()
Overrides
public QueryMetricsResponse.Slice.Builder clearDimensions()
A unique combination of dimensions that this slice represents.
repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 1;
public QueryMetricsResponse.Slice.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public QueryMetricsResponse.Slice.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
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;
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;
public QueryMetricsResponse.Slice.Builder clone()
Overrides
public QueryMetricsResponse.Slice getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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
|
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
|
public List<Dimension.Builder> getDimensionsBuilderList()
A unique combination of dimensions that this slice represents.
repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 1;
public int getDimensionsCount()
A unique combination of dimensions that this slice represents.
repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 1;
Returns |
Type |
Description |
int |
|
public List<Dimension> getDimensionsList()
A unique combination of dimensions that this slice represents.
repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 1;
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
|
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> |
|
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;
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;
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;
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;
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;
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;
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.
|
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.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public QueryMetricsResponse.Slice.Builder mergeFrom(QueryMetricsResponse.Slice other)
public QueryMetricsResponse.Slice.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public QueryMetricsResponse.Slice.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
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;
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;
public final QueryMetricsResponse.Slice.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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
|
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;
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;
public QueryMetricsResponse.Slice.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public QueryMetricsResponse.Slice.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
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;
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;
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;
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;
public final QueryMetricsResponse.Slice.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides