public final class QueryMetricsRequest extends com.google.protobuf.GeneratedMessageV3 implements QueryMetricsRequestOrBuilder
The request for querying metrics.Protobuf type
google.cloud.contactcenterinsights.v1.QueryMetricsRequest| Modifier and Type | Class and Description |
|---|---|
static class |
QueryMetricsRequest.Builder
The request for querying metrics.
|
static class |
QueryMetricsRequest.TimeGranularity
A time granularity divides the time line into discrete time periods.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
DIMENSIONS_FIELD_NUMBER |
static int |
FILTER_FIELD_NUMBER |
static int |
LOCATION_FIELD_NUMBER |
static int |
MEASURE_MASK_FIELD_NUMBER |
static int |
TIME_GRANULARITY_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static QueryMetricsRequest |
getDefaultInstance() |
QueryMetricsRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Dimension |
getDimensions(int index)
The dimensions that determine the grouping key for the query.
|
int |
getDimensionsCount()
The dimensions that determine the grouping key for the query.
|
List<Dimension> |
getDimensionsList()
The dimensions that determine the grouping key for the query.
|
DimensionOrBuilder |
getDimensionsOrBuilder(int index)
The dimensions that determine the grouping key for the query.
|
List<? extends DimensionOrBuilder> |
getDimensionsOrBuilderList()
The dimensions that determine the grouping key for the query.
|
String |
getFilter()
Required.
|
com.google.protobuf.ByteString |
getFilterBytes()
Required.
|
String |
getLocation()
Required.
|
com.google.protobuf.ByteString |
getLocationBytes()
Required.
|
com.google.protobuf.FieldMask |
getMeasureMask()
Measures to return.
|
com.google.protobuf.FieldMaskOrBuilder |
getMeasureMaskOrBuilder()
Measures to return.
|
com.google.protobuf.Parser<QueryMetricsRequest> |
getParserForType() |
int |
getSerializedSize() |
QueryMetricsRequest.TimeGranularity |
getTimeGranularity()
The time granularity of each data point in the time series.
|
int |
getTimeGranularityValue()
The time granularity of each data point in the time series.
|
int |
hashCode() |
boolean |
hasMeasureMask()
Measures to return.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static QueryMetricsRequest.Builder |
newBuilder() |
static QueryMetricsRequest.Builder |
newBuilder(QueryMetricsRequest prototype) |
QueryMetricsRequest.Builder |
newBuilderForType() |
protected QueryMetricsRequest.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static QueryMetricsRequest |
parseDelimitedFrom(InputStream input) |
static QueryMetricsRequest |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static QueryMetricsRequest |
parseFrom(byte[] data) |
static QueryMetricsRequest |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static QueryMetricsRequest |
parseFrom(ByteBuffer data) |
static QueryMetricsRequest |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static QueryMetricsRequest |
parseFrom(com.google.protobuf.ByteString data) |
static QueryMetricsRequest |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static QueryMetricsRequest |
parseFrom(com.google.protobuf.CodedInputStream input) |
static QueryMetricsRequest |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static QueryMetricsRequest |
parseFrom(InputStream input) |
static QueryMetricsRequest |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<QueryMetricsRequest> |
parser() |
QueryMetricsRequest.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int LOCATION_FIELD_NUMBER
public static final int FILTER_FIELD_NUMBER
public static final int TIME_GRANULARITY_FIELD_NUMBER
public static final int DIMENSIONS_FIELD_NUMBER
public static final int MEASURE_MASK_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getLocation()
Required. The location of the data.
"projects/{project}/locations/{location}"
string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getLocation in interface QueryMetricsRequestOrBuilderpublic 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) = { ... }
getLocationBytes in interface QueryMetricsRequestOrBuilderpublic String 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];getFilter in interface QueryMetricsRequestOrBuilderpublic 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];getFilterBytes in interface QueryMetricsRequestOrBuilderpublic 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;
getTimeGranularityValue in interface QueryMetricsRequestOrBuilderpublic QueryMetricsRequest.TimeGranularity 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;
getTimeGranularity in interface QueryMetricsRequestOrBuilderpublic List<Dimension> 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;getDimensionsList in interface QueryMetricsRequestOrBuilderpublic List<? extends DimensionOrBuilder> 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;getDimensionsOrBuilderList in interface QueryMetricsRequestOrBuilderpublic 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;getDimensionsCount in interface QueryMetricsRequestOrBuilderpublic Dimension getDimensions(int index)
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;getDimensions in interface QueryMetricsRequestOrBuilderpublic DimensionOrBuilder getDimensionsOrBuilder(int index)
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 in interface QueryMetricsRequestOrBuilderpublic 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;hasMeasureMask in interface QueryMetricsRequestOrBuilderpublic 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;getMeasureMask in interface QueryMetricsRequestOrBuilderpublic 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;getMeasureMaskOrBuilder in interface QueryMetricsRequestOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static QueryMetricsRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static QueryMetricsRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static QueryMetricsRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static QueryMetricsRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static QueryMetricsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static QueryMetricsRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static QueryMetricsRequest parseFrom(InputStream input) throws IOException
IOExceptionpublic static QueryMetricsRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static QueryMetricsRequest parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static QueryMetricsRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static QueryMetricsRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static QueryMetricsRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic QueryMetricsRequest.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static QueryMetricsRequest.Builder newBuilder()
public static QueryMetricsRequest.Builder newBuilder(QueryMetricsRequest prototype)
public QueryMetricsRequest.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected QueryMetricsRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static QueryMetricsRequest getDefaultInstance()
public static com.google.protobuf.Parser<QueryMetricsRequest> parser()
public com.google.protobuf.Parser<QueryMetricsRequest> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public QueryMetricsRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.