Class QueryMetricsRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<QueryMetricsRequest.Builder>
com.google.cloud.contactcenterinsights.v1.QueryMetricsRequest.Builder
- All Implemented Interfaces:
QueryMetricsRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- QueryMetricsRequest
public static final class QueryMetricsRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<QueryMetricsRequest.Builder>
implements QueryMetricsRequestOrBuilder
The request for querying metrics.Protobuf type
google.cloud.contactcenterinsights.v1.QueryMetricsRequest-
Method Summary
Modifier and TypeMethodDescriptionaddAllDimensions(Iterable<? extends Dimension> values) The dimensions that determine the grouping key for the query.addDimensions(int index, Dimension value) The dimensions that determine the grouping key for the query.addDimensions(int index, Dimension.Builder builderForValue) The dimensions that determine the grouping key for the query.addDimensions(Dimension value) The dimensions that determine the grouping key for the query.addDimensions(Dimension.Builder builderForValue) The dimensions that determine the grouping key for the query.The dimensions that determine the grouping key for the query.addDimensionsBuilder(int index) The dimensions that determine the grouping key for the query.build()clear()The dimensions that determine the grouping key for the query.Required.Required.Measures to return.The time granularity of each data point in the time series.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetDimensions(int index) The dimensions that determine the grouping key for the query.getDimensionsBuilder(int index) The dimensions that determine the grouping key for the query.The dimensions that determine the grouping key for the query.intThe dimensions that determine the grouping key for the query.The dimensions that determine the grouping key for the query.getDimensionsOrBuilder(int index) The dimensions that determine the grouping key for the query.List<? extends DimensionOrBuilder>The dimensions that determine the grouping key for the query.Required.com.google.protobuf.ByteStringRequired.Required.com.google.protobuf.ByteStringRequired.com.google.protobuf.FieldMaskMeasures to return.com.google.protobuf.FieldMask.BuilderMeasures to return.com.google.protobuf.FieldMaskOrBuilderMeasures to return.The time granularity of each data point in the time series.intThe time granularity of each data point in the time series.booleanMeasures to return.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(QueryMetricsRequest other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeMeasureMask(com.google.protobuf.FieldMask value) Measures to return.removeDimensions(int index) The dimensions that determine the grouping key for the query.setDimensions(int index, Dimension value) The dimensions that determine the grouping key for the query.setDimensions(int index, Dimension.Builder builderForValue) The dimensions that determine the grouping key for the query.Required.setFilterBytes(com.google.protobuf.ByteString value) Required.setLocation(String value) Required.setLocationBytes(com.google.protobuf.ByteString value) Required.setMeasureMask(com.google.protobuf.FieldMask value) Measures to return.setMeasureMask(com.google.protobuf.FieldMask.Builder builderForValue) Measures to return.The time granularity of each data point in the time series.setTimeGranularityValue(int value) The time granularity of each data point in the time series.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<QueryMetricsRequest.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<QueryMetricsRequest.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<QueryMetricsRequest.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<QueryMetricsRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<QueryMetricsRequest.Builder>
-
mergeFrom
public QueryMetricsRequest.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<QueryMetricsRequest.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 interfaceQueryMetricsRequestOrBuilder- 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 interfaceQueryMetricsRequestOrBuilder- 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.
-
getFilter
Required. Filter to select a subset of conversations to compute the metrics. Must specify a window of the conversation create time to compute the metrics. The returned metrics will be from the range [DATE(starting create time), DATE(ending create time)).
string filter = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getFilterin interfaceQueryMetricsRequestOrBuilder- Returns:
- The filter.
-
getFilterBytes
public com.google.protobuf.ByteString getFilterBytes()Required. Filter to select a subset of conversations to compute the metrics. Must specify a window of the conversation create time to compute the metrics. The returned metrics will be from the range [DATE(starting create time), DATE(ending create time)).
string filter = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getFilterBytesin interfaceQueryMetricsRequestOrBuilder- Returns:
- The bytes for filter.
-
setFilter
Required. Filter to select a subset of conversations to compute the metrics. Must specify a window of the conversation create time to compute the metrics. The returned metrics will be from the range [DATE(starting create time), DATE(ending create time)).
string filter = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The filter to set.- Returns:
- This builder for chaining.
-
clearFilter
Required. Filter to select a subset of conversations to compute the metrics. Must specify a window of the conversation create time to compute the metrics. The returned metrics will be from the range [DATE(starting create time), DATE(ending create time)).
string filter = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setFilterBytes
Required. Filter to select a subset of conversations to compute the metrics. Must specify a window of the conversation create time to compute the metrics. The returned metrics will be from the range [DATE(starting create time), DATE(ending create time)).
string filter = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for filter to set.- Returns:
- This builder for chaining.
-
getTimeGranularityValue
public int getTimeGranularityValue()The time granularity of each data point in the time series. Defaults to NONE if this field is unspecified.
.google.cloud.contactcenterinsights.v1.QueryMetricsRequest.TimeGranularity time_granularity = 3;- Specified by:
getTimeGranularityValuein interfaceQueryMetricsRequestOrBuilder- Returns:
- The enum numeric value on the wire for timeGranularity.
-
setTimeGranularityValue
The time granularity of each data point in the time series. Defaults to NONE if this field is unspecified.
.google.cloud.contactcenterinsights.v1.QueryMetricsRequest.TimeGranularity time_granularity = 3;- Parameters:
value- The enum numeric value on the wire for timeGranularity to set.- Returns:
- This builder for chaining.
-
getTimeGranularity
The time granularity of each data point in the time series. Defaults to NONE if this field is unspecified.
.google.cloud.contactcenterinsights.v1.QueryMetricsRequest.TimeGranularity time_granularity = 3;- Specified by:
getTimeGranularityin interfaceQueryMetricsRequestOrBuilder- Returns:
- The timeGranularity.
-
setTimeGranularity
The time granularity of each data point in the time series. Defaults to NONE if this field is unspecified.
.google.cloud.contactcenterinsights.v1.QueryMetricsRequest.TimeGranularity time_granularity = 3;- Parameters:
value- The timeGranularity to set.- Returns:
- This builder for chaining.
-
clearTimeGranularity
The time granularity of each data point in the time series. Defaults to NONE if this field is unspecified.
.google.cloud.contactcenterinsights.v1.QueryMetricsRequest.TimeGranularity time_granularity = 3;- Returns:
- This builder for chaining.
-
getDimensionsList
The dimensions that determine the grouping key for the query. Defaults to no dimension if this field is unspecified. If a dimension is specified, its key must also be specified. Each dimension's key must be unique. If a time granularity is also specified, metric values in the dimension will be bucketed by this granularity. Up to one dimension is supported for now.
repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 4;- Specified by:
getDimensionsListin interfaceQueryMetricsRequestOrBuilder
-
getDimensionsCount
public int getDimensionsCount()The dimensions that determine the grouping key for the query. Defaults to no dimension if this field is unspecified. If a dimension is specified, its key must also be specified. Each dimension's key must be unique. If a time granularity is also specified, metric values in the dimension will be bucketed by this granularity. Up to one dimension is supported for now.
repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 4;- Specified by:
getDimensionsCountin interfaceQueryMetricsRequestOrBuilder
-
getDimensions
The dimensions that determine the grouping key for the query. Defaults to no dimension if this field is unspecified. If a dimension is specified, its key must also be specified. Each dimension's key must be unique. If a time granularity is also specified, metric values in the dimension will be bucketed by this granularity. Up to one dimension is supported for now.
repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 4;- Specified by:
getDimensionsin interfaceQueryMetricsRequestOrBuilder
-
setDimensions
The dimensions that determine the grouping key for the query. Defaults to no dimension if this field is unspecified. If a dimension is specified, its key must also be specified. Each dimension's key must be unique. If a time granularity is also specified, metric values in the dimension will be bucketed by this granularity. Up to one dimension is supported for now.
repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 4; -
setDimensions
The dimensions that determine the grouping key for the query. Defaults to no dimension if this field is unspecified. If a dimension is specified, its key must also be specified. Each dimension's key must be unique. If a time granularity is also specified, metric values in the dimension will be bucketed by this granularity. Up to one dimension is supported for now.
repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 4; -
addDimensions
The dimensions that determine the grouping key for the query. Defaults to no dimension if this field is unspecified. If a dimension is specified, its key must also be specified. Each dimension's key must be unique. If a time granularity is also specified, metric values in the dimension will be bucketed by this granularity. Up to one dimension is supported for now.
repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 4; -
addDimensions
The dimensions that determine the grouping key for the query. Defaults to no dimension if this field is unspecified. If a dimension is specified, its key must also be specified. Each dimension's key must be unique. If a time granularity is also specified, metric values in the dimension will be bucketed by this granularity. Up to one dimension is supported for now.
repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 4; -
addDimensions
The dimensions that determine the grouping key for the query. Defaults to no dimension if this field is unspecified. If a dimension is specified, its key must also be specified. Each dimension's key must be unique. If a time granularity is also specified, metric values in the dimension will be bucketed by this granularity. Up to one dimension is supported for now.
repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 4; -
addDimensions
The dimensions that determine the grouping key for the query. Defaults to no dimension if this field is unspecified. If a dimension is specified, its key must also be specified. Each dimension's key must be unique. If a time granularity is also specified, metric values in the dimension will be bucketed by this granularity. Up to one dimension is supported for now.
repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 4; -
addAllDimensions
The dimensions that determine the grouping key for the query. Defaults to no dimension if this field is unspecified. If a dimension is specified, its key must also be specified. Each dimension's key must be unique. If a time granularity is also specified, metric values in the dimension will be bucketed by this granularity. Up to one dimension is supported for now.
repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 4; -
clearDimensions
The dimensions that determine the grouping key for the query. Defaults to no dimension if this field is unspecified. If a dimension is specified, its key must also be specified. Each dimension's key must be unique. If a time granularity is also specified, metric values in the dimension will be bucketed by this granularity. Up to one dimension is supported for now.
repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 4; -
removeDimensions
The dimensions that determine the grouping key for the query. Defaults to no dimension if this field is unspecified. If a dimension is specified, its key must also be specified. Each dimension's key must be unique. If a time granularity is also specified, metric values in the dimension will be bucketed by this granularity. Up to one dimension is supported for now.
repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 4; -
getDimensionsBuilder
The dimensions that determine the grouping key for the query. Defaults to no dimension if this field is unspecified. If a dimension is specified, its key must also be specified. Each dimension's key must be unique. If a time granularity is also specified, metric values in the dimension will be bucketed by this granularity. Up to one dimension is supported for now.
repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 4; -
getDimensionsOrBuilder
The dimensions that determine the grouping key for the query. Defaults to no dimension if this field is unspecified. If a dimension is specified, its key must also be specified. Each dimension's key must be unique. If a time granularity is also specified, metric values in the dimension will be bucketed by this granularity. Up to one dimension is supported for now.
repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 4;- Specified by:
getDimensionsOrBuilderin interfaceQueryMetricsRequestOrBuilder
-
getDimensionsOrBuilderList
The dimensions that determine the grouping key for the query. Defaults to no dimension if this field is unspecified. If a dimension is specified, its key must also be specified. Each dimension's key must be unique. If a time granularity is also specified, metric values in the dimension will be bucketed by this granularity. Up to one dimension is supported for now.
repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 4;- Specified by:
getDimensionsOrBuilderListin interfaceQueryMetricsRequestOrBuilder
-
addDimensionsBuilder
The dimensions that determine the grouping key for the query. Defaults to no dimension if this field is unspecified. If a dimension is specified, its key must also be specified. Each dimension's key must be unique. If a time granularity is also specified, metric values in the dimension will be bucketed by this granularity. Up to one dimension is supported for now.
repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 4; -
addDimensionsBuilder
The dimensions that determine the grouping key for the query. Defaults to no dimension if this field is unspecified. If a dimension is specified, its key must also be specified. Each dimension's key must be unique. If a time granularity is also specified, metric values in the dimension will be bucketed by this granularity. Up to one dimension is supported for now.
repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 4; -
getDimensionsBuilderList
The dimensions that determine the grouping key for the query. Defaults to no dimension if this field is unspecified. If a dimension is specified, its key must also be specified. Each dimension's key must be unique. If a time granularity is also specified, metric values in the dimension will be bucketed by this granularity. Up to one dimension is supported for now.
repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 4; -
hasMeasureMask
public boolean hasMeasureMask()Measures to return. Defaults to all measures if this field is unspecified. A valid mask should traverse from the `measure` field from the response. For example, a path from a measure mask to get the conversation count is "conversation_measure.count".
.google.protobuf.FieldMask measure_mask = 5;- Specified by:
hasMeasureMaskin interfaceQueryMetricsRequestOrBuilder- Returns:
- Whether the measureMask field is set.
-
getMeasureMask
public com.google.protobuf.FieldMask getMeasureMask()Measures to return. Defaults to all measures if this field is unspecified. A valid mask should traverse from the `measure` field from the response. For example, a path from a measure mask to get the conversation count is "conversation_measure.count".
.google.protobuf.FieldMask measure_mask = 5;- Specified by:
getMeasureMaskin interfaceQueryMetricsRequestOrBuilder- Returns:
- The measureMask.
-
setMeasureMask
Measures to return. Defaults to all measures if this field is unspecified. A valid mask should traverse from the `measure` field from the response. For example, a path from a measure mask to get the conversation count is "conversation_measure.count".
.google.protobuf.FieldMask measure_mask = 5; -
setMeasureMask
public QueryMetricsRequest.Builder setMeasureMask(com.google.protobuf.FieldMask.Builder builderForValue) Measures to return. Defaults to all measures if this field is unspecified. A valid mask should traverse from the `measure` field from the response. For example, a path from a measure mask to get the conversation count is "conversation_measure.count".
.google.protobuf.FieldMask measure_mask = 5; -
mergeMeasureMask
Measures to return. Defaults to all measures if this field is unspecified. A valid mask should traverse from the `measure` field from the response. For example, a path from a measure mask to get the conversation count is "conversation_measure.count".
.google.protobuf.FieldMask measure_mask = 5; -
clearMeasureMask
Measures to return. Defaults to all measures if this field is unspecified. A valid mask should traverse from the `measure` field from the response. For example, a path from a measure mask to get the conversation count is "conversation_measure.count".
.google.protobuf.FieldMask measure_mask = 5; -
getMeasureMaskBuilder
public com.google.protobuf.FieldMask.Builder getMeasureMaskBuilder()Measures to return. Defaults to all measures if this field is unspecified. A valid mask should traverse from the `measure` field from the response. For example, a path from a measure mask to get the conversation count is "conversation_measure.count".
.google.protobuf.FieldMask measure_mask = 5; -
getMeasureMaskOrBuilder
public com.google.protobuf.FieldMaskOrBuilder getMeasureMaskOrBuilder()Measures to return. Defaults to all measures if this field is unspecified. A valid mask should traverse from the `measure` field from the response. For example, a path from a measure mask to get the conversation count is "conversation_measure.count".
.google.protobuf.FieldMask measure_mask = 5;- Specified by:
getMeasureMaskOrBuilderin interfaceQueryMetricsRequestOrBuilder
-