Class QueryMetricsResponse.Slice.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<QueryMetricsResponse.Slice.Builder>
com.google.cloud.contactcenterinsights.v1.QueryMetricsResponse.Slice.Builder
- All Implemented Interfaces:
QueryMetricsResponse.SliceOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- QueryMetricsResponse.Slice
public static final class QueryMetricsResponse.Slice.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionaddAllDimensions(Iterable<? extends Dimension> values) A unique combination of dimensions that this slice represents.addDimensions(int index, Dimension value) A unique combination of dimensions that this slice represents.addDimensions(int index, Dimension.Builder builderForValue) A unique combination of dimensions that this slice represents.addDimensions(Dimension value) A unique combination of dimensions that this slice represents.addDimensions(Dimension.Builder builderForValue) A unique combination of dimensions that this slice represents.A unique combination of dimensions that this slice represents.addDimensionsBuilder(int index) A unique combination of dimensions that this slice represents.build()clear()A unique combination of dimensions that this slice represents.A time series of metric values.The total metric value.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetDimensions(int index) A unique combination of dimensions that this slice represents.getDimensionsBuilder(int index) A unique combination of dimensions that this slice represents.A unique combination of dimensions that this slice represents.intA unique combination of dimensions that this slice represents.A unique combination of dimensions that this slice represents.getDimensionsOrBuilder(int index) A unique combination of dimensions that this slice represents.List<? extends DimensionOrBuilder>A unique combination of dimensions that this slice represents.A time series of metric values.A time series of metric values.A time series of metric values.getTotal()The total metric value.The total metric value.The total metric value.booleanA time series of metric values.booleanhasTotal()The total metric value.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) A time series of metric values.The total metric value.removeDimensions(int index) A unique combination of dimensions that this slice represents.setDimensions(int index, Dimension value) A unique combination of dimensions that this slice represents.setDimensions(int index, Dimension.Builder builderForValue) A unique combination of dimensions that this slice represents.A time series of metric values.setTimeSeries(QueryMetricsResponse.Slice.TimeSeries.Builder builderForValue) A time series of metric values.The total metric value.setTotal(QueryMetricsResponse.Slice.DataPoint.Builder builderForValue) The total metric value.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<QueryMetricsResponse.Slice.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<QueryMetricsResponse.Slice.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<QueryMetricsResponse.Slice.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<QueryMetricsResponse.Slice.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<QueryMetricsResponse.Slice.Builder>
-
mergeFrom
public QueryMetricsResponse.Slice.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<QueryMetricsResponse.Slice.Builder>- Throws:
IOException
-
getDimensionsList
A unique combination of dimensions that this slice represents.
repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 1;- Specified by:
getDimensionsListin interfaceQueryMetricsResponse.SliceOrBuilder
-
getDimensionsCount
public int getDimensionsCount()A unique combination of dimensions that this slice represents.
repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 1;- Specified by:
getDimensionsCountin interfaceQueryMetricsResponse.SliceOrBuilder
-
getDimensions
A unique combination of dimensions that this slice represents.
repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 1;- Specified by:
getDimensionsin interfaceQueryMetricsResponse.SliceOrBuilder
-
setDimensions
A unique combination of dimensions that this slice represents.
repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 1; -
setDimensions
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; -
addDimensions
A unique combination of dimensions that this slice represents.
repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 1; -
addDimensions
A unique combination of dimensions that this slice represents.
repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 1; -
addDimensions
A unique combination of dimensions that this slice represents.
repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 1; -
addDimensions
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; -
addAllDimensions
A unique combination of dimensions that this slice represents.
repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 1; -
clearDimensions
A unique combination of dimensions that this slice represents.
repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 1; -
removeDimensions
A unique combination of dimensions that this slice represents.
repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 1; -
getDimensionsBuilder
A unique combination of dimensions that this slice represents.
repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 1; -
getDimensionsOrBuilder
A unique combination of dimensions that this slice represents.
repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 1;- Specified by:
getDimensionsOrBuilderin interfaceQueryMetricsResponse.SliceOrBuilder
-
getDimensionsOrBuilderList
A unique combination of dimensions that this slice represents.
repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 1;- Specified by:
getDimensionsOrBuilderListin interfaceQueryMetricsResponse.SliceOrBuilder
-
addDimensionsBuilder
A unique combination of dimensions that this slice represents.
repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 1; -
addDimensionsBuilder
A unique combination of dimensions that this slice represents.
repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 1; -
getDimensionsBuilderList
A unique combination of dimensions that this slice represents.
repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 1; -
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;- Specified by:
hasTotalin interfaceQueryMetricsResponse.SliceOrBuilder- Returns:
- Whether the total field is set.
-
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;- Specified by:
getTotalin interfaceQueryMetricsResponse.SliceOrBuilder- Returns:
- The total.
-
setTotal
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; -
setTotal
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; -
mergeTotal
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; -
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; -
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; -
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;- Specified by:
getTotalOrBuilderin interfaceQueryMetricsResponse.SliceOrBuilder
-
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;- Specified by:
hasTimeSeriesin interfaceQueryMetricsResponse.SliceOrBuilder- Returns:
- Whether the timeSeries field is set.
-
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;- Specified by:
getTimeSeriesin interfaceQueryMetricsResponse.SliceOrBuilder- Returns:
- The timeSeries.
-
setTimeSeries
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; -
setTimeSeries
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; -
mergeTimeSeries
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; -
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; -
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; -
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;- Specified by:
getTimeSeriesOrBuilderin interfaceQueryMetricsResponse.SliceOrBuilder
-