Class QueryMetricsResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<QueryMetricsResponse.Builder>
com.google.cloud.contactcenterinsights.v1.QueryMetricsResponse.Builder
- All Implemented Interfaces:
QueryMetricsResponseOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- QueryMetricsResponse
public static final class QueryMetricsResponse.Builder
extends com.google.protobuf.GeneratedMessage.Builder<QueryMetricsResponse.Builder>
implements QueryMetricsResponseOrBuilder
The response for querying metrics.Protobuf type
google.cloud.contactcenterinsights.v1.QueryMetricsResponse-
Method Summary
Modifier and TypeMethodDescriptionaddAllSlices(Iterable<? extends QueryMetricsResponse.Slice> values) A slice contains a total and (if the request specified a time granularity) a time series of metric values.addSlices(int index, QueryMetricsResponse.Slice value) A slice contains a total and (if the request specified a time granularity) a time series of metric values.addSlices(int index, QueryMetricsResponse.Slice.Builder builderForValue) A slice contains a total and (if the request specified a time granularity) a time series of metric values.A slice contains a total and (if the request specified a time granularity) a time series of metric values.addSlices(QueryMetricsResponse.Slice.Builder builderForValue) A slice contains a total and (if the request specified a time granularity) a time series of metric values.A slice contains a total and (if the request specified a time granularity) a time series of metric values.addSlicesBuilder(int index) A slice contains a total and (if the request specified a time granularity) a time series of metric values.build()clear()Required.The macro average slice contains aggregated averages across the selected dimension. i.e. if group_by agent is specified this field will contain the average across all agents.A slice contains a total and (if the request specified a time granularity) a time series of metric values.The metrics last update time.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.com.google.protobuf.ByteStringRequired.The macro average slice contains aggregated averages across the selected dimension. i.e. if group_by agent is specified this field will contain the average across all agents.The macro average slice contains aggregated averages across the selected dimension. i.e. if group_by agent is specified this field will contain the average across all agents.The macro average slice contains aggregated averages across the selected dimension. i.e. if group_by agent is specified this field will contain the average across all agents.getSlices(int index) A slice contains a total and (if the request specified a time granularity) a time series of metric values.getSlicesBuilder(int index) A slice contains a total and (if the request specified a time granularity) a time series of metric values.A slice contains a total and (if the request specified a time granularity) a time series of metric values.intA slice contains a total and (if the request specified a time granularity) a time series of metric values.A slice contains a total and (if the request specified a time granularity) a time series of metric values.getSlicesOrBuilder(int index) A slice contains a total and (if the request specified a time granularity) a time series of metric values.List<? extends QueryMetricsResponse.SliceOrBuilder>A slice contains a total and (if the request specified a time granularity) a time series of metric values.com.google.protobuf.TimestampThe metrics last update time.com.google.protobuf.Timestamp.BuilderThe metrics last update time.com.google.protobuf.TimestampOrBuilderThe metrics last update time.booleanThe macro average slice contains aggregated averages across the selected dimension. i.e. if group_by agent is specified this field will contain the average across all agents.booleanThe metrics last update time.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(QueryMetricsResponse other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) The macro average slice contains aggregated averages across the selected dimension. i.e. if group_by agent is specified this field will contain the average across all agents.mergeUpdateTime(com.google.protobuf.Timestamp value) The metrics last update time.removeSlices(int index) A slice contains a total and (if the request specified a time granularity) a time series of metric values.setLocation(String value) Required.setLocationBytes(com.google.protobuf.ByteString value) Required.The macro average slice contains aggregated averages across the selected dimension. i.e. if group_by agent is specified this field will contain the average across all agents.setMacroAverageSlice(QueryMetricsResponse.Slice.Builder builderForValue) The macro average slice contains aggregated averages across the selected dimension. i.e. if group_by agent is specified this field will contain the average across all agents.setSlices(int index, QueryMetricsResponse.Slice value) A slice contains a total and (if the request specified a time granularity) a time series of metric values.setSlices(int index, QueryMetricsResponse.Slice.Builder builderForValue) A slice contains a total and (if the request specified a time granularity) a time series of metric values.setUpdateTime(com.google.protobuf.Timestamp value) The metrics last update time.setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) The metrics last update time.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.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.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.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.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<QueryMetricsResponse.Builder>
-
mergeFrom
public QueryMetricsResponse.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.Builder>- Throws:
IOException
-
getLocation
Required. The location of the data. "projects/{project}/locations/{location}"string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getLocationin interfaceQueryMetricsResponseOrBuilder- Returns:
- The location.
-
getLocationBytes
public com.google.protobuf.ByteString getLocationBytes()Required. The location of the data. "projects/{project}/locations/{location}"string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getLocationBytesin interfaceQueryMetricsResponseOrBuilder- Returns:
- The bytes for location.
-
setLocation
Required. The location of the data. "projects/{project}/locations/{location}"string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The location to set.- Returns:
- This builder for chaining.
-
clearLocation
Required. The location of the data. "projects/{project}/locations/{location}"string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setLocationBytes
Required. The location of the data. "projects/{project}/locations/{location}"string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for location to set.- Returns:
- This builder for chaining.
-
hasUpdateTime
public boolean hasUpdateTime()The metrics last update time.
.google.protobuf.Timestamp update_time = 3;- Specified by:
hasUpdateTimein interfaceQueryMetricsResponseOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()The metrics last update time.
.google.protobuf.Timestamp update_time = 3;- Specified by:
getUpdateTimein interfaceQueryMetricsResponseOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
The metrics last update time.
.google.protobuf.Timestamp update_time = 3; -
setUpdateTime
public QueryMetricsResponse.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) The metrics last update time.
.google.protobuf.Timestamp update_time = 3; -
mergeUpdateTime
The metrics last update time.
.google.protobuf.Timestamp update_time = 3; -
clearUpdateTime
The metrics last update time.
.google.protobuf.Timestamp update_time = 3; -
getUpdateTimeBuilder
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()The metrics last update time.
.google.protobuf.Timestamp update_time = 3; -
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()The metrics last update time.
.google.protobuf.Timestamp update_time = 3;- Specified by:
getUpdateTimeOrBuilderin interfaceQueryMetricsResponseOrBuilder
-
getSlicesList
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.
repeated .google.cloud.contactcenterinsights.v1.QueryMetricsResponse.Slice slices = 2;- Specified by:
getSlicesListin interfaceQueryMetricsResponseOrBuilder
-
getSlicesCount
public int getSlicesCount()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.
repeated .google.cloud.contactcenterinsights.v1.QueryMetricsResponse.Slice slices = 2;- Specified by:
getSlicesCountin interfaceQueryMetricsResponseOrBuilder
-
getSlices
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.
repeated .google.cloud.contactcenterinsights.v1.QueryMetricsResponse.Slice slices = 2;- Specified by:
getSlicesin interfaceQueryMetricsResponseOrBuilder
-
setSlices
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.
repeated .google.cloud.contactcenterinsights.v1.QueryMetricsResponse.Slice slices = 2; -
setSlices
public QueryMetricsResponse.Builder setSlices(int index, QueryMetricsResponse.Slice.Builder builderForValue) 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.
repeated .google.cloud.contactcenterinsights.v1.QueryMetricsResponse.Slice slices = 2; -
addSlices
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.
repeated .google.cloud.contactcenterinsights.v1.QueryMetricsResponse.Slice slices = 2; -
addSlices
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.
repeated .google.cloud.contactcenterinsights.v1.QueryMetricsResponse.Slice slices = 2; -
addSlices
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.
repeated .google.cloud.contactcenterinsights.v1.QueryMetricsResponse.Slice slices = 2; -
addSlices
public QueryMetricsResponse.Builder addSlices(int index, QueryMetricsResponse.Slice.Builder builderForValue) 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.
repeated .google.cloud.contactcenterinsights.v1.QueryMetricsResponse.Slice slices = 2; -
addAllSlices
public QueryMetricsResponse.Builder addAllSlices(Iterable<? extends QueryMetricsResponse.Slice> values) 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.
repeated .google.cloud.contactcenterinsights.v1.QueryMetricsResponse.Slice slices = 2; -
clearSlices
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.
repeated .google.cloud.contactcenterinsights.v1.QueryMetricsResponse.Slice slices = 2; -
removeSlices
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.
repeated .google.cloud.contactcenterinsights.v1.QueryMetricsResponse.Slice slices = 2; -
getSlicesBuilder
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.
repeated .google.cloud.contactcenterinsights.v1.QueryMetricsResponse.Slice slices = 2; -
getSlicesOrBuilder
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.
repeated .google.cloud.contactcenterinsights.v1.QueryMetricsResponse.Slice slices = 2;- Specified by:
getSlicesOrBuilderin interfaceQueryMetricsResponseOrBuilder
-
getSlicesOrBuilderList
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.
repeated .google.cloud.contactcenterinsights.v1.QueryMetricsResponse.Slice slices = 2;- Specified by:
getSlicesOrBuilderListin interfaceQueryMetricsResponseOrBuilder
-
addSlicesBuilder
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.
repeated .google.cloud.contactcenterinsights.v1.QueryMetricsResponse.Slice slices = 2; -
addSlicesBuilder
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.
repeated .google.cloud.contactcenterinsights.v1.QueryMetricsResponse.Slice slices = 2; -
getSlicesBuilderList
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.
repeated .google.cloud.contactcenterinsights.v1.QueryMetricsResponse.Slice slices = 2; -
hasMacroAverageSlice
public boolean hasMacroAverageSlice()The macro average slice contains aggregated averages across the selected dimension. i.e. if group_by agent is specified this field will contain the average across all agents. This field is only populated if the request specifies a Dimension.
optional .google.cloud.contactcenterinsights.v1.QueryMetricsResponse.Slice macro_average_slice = 4;- Specified by:
hasMacroAverageSlicein interfaceQueryMetricsResponseOrBuilder- Returns:
- Whether the macroAverageSlice field is set.
-
getMacroAverageSlice
The macro average slice contains aggregated averages across the selected dimension. i.e. if group_by agent is specified this field will contain the average across all agents. This field is only populated if the request specifies a Dimension.
optional .google.cloud.contactcenterinsights.v1.QueryMetricsResponse.Slice macro_average_slice = 4;- Specified by:
getMacroAverageSlicein interfaceQueryMetricsResponseOrBuilder- Returns:
- The macroAverageSlice.
-
setMacroAverageSlice
The macro average slice contains aggregated averages across the selected dimension. i.e. if group_by agent is specified this field will contain the average across all agents. This field is only populated if the request specifies a Dimension.
optional .google.cloud.contactcenterinsights.v1.QueryMetricsResponse.Slice macro_average_slice = 4; -
setMacroAverageSlice
public QueryMetricsResponse.Builder setMacroAverageSlice(QueryMetricsResponse.Slice.Builder builderForValue) The macro average slice contains aggregated averages across the selected dimension. i.e. if group_by agent is specified this field will contain the average across all agents. This field is only populated if the request specifies a Dimension.
optional .google.cloud.contactcenterinsights.v1.QueryMetricsResponse.Slice macro_average_slice = 4; -
mergeMacroAverageSlice
The macro average slice contains aggregated averages across the selected dimension. i.e. if group_by agent is specified this field will contain the average across all agents. This field is only populated if the request specifies a Dimension.
optional .google.cloud.contactcenterinsights.v1.QueryMetricsResponse.Slice macro_average_slice = 4; -
clearMacroAverageSlice
The macro average slice contains aggregated averages across the selected dimension. i.e. if group_by agent is specified this field will contain the average across all agents. This field is only populated if the request specifies a Dimension.
optional .google.cloud.contactcenterinsights.v1.QueryMetricsResponse.Slice macro_average_slice = 4; -
getMacroAverageSliceBuilder
The macro average slice contains aggregated averages across the selected dimension. i.e. if group_by agent is specified this field will contain the average across all agents. This field is only populated if the request specifies a Dimension.
optional .google.cloud.contactcenterinsights.v1.QueryMetricsResponse.Slice macro_average_slice = 4; -
getMacroAverageSliceOrBuilder
The macro average slice contains aggregated averages across the selected dimension. i.e. if group_by agent is specified this field will contain the average across all agents. This field is only populated if the request specifies a Dimension.
optional .google.cloud.contactcenterinsights.v1.QueryMetricsResponse.Slice macro_average_slice = 4;- Specified by:
getMacroAverageSliceOrBuilderin interfaceQueryMetricsResponseOrBuilder
-