Class QueryMetricsRequest (2.54.0)

public final class QueryMetricsRequest extends GeneratedMessageV3 implements QueryMetricsRequestOrBuilder

The request for querying metrics.

Protobuf type google.cloud.contactcenterinsights.v1.QueryMetricsRequest

Static Fields

DIMENSIONS_FIELD_NUMBER

public static final int DIMENSIONS_FIELD_NUMBER
Field Value
Type Description
int

FILTER_FIELD_NUMBER

public static final int FILTER_FIELD_NUMBER
Field Value
Type Description
int

LOCATION_FIELD_NUMBER

public static final int LOCATION_FIELD_NUMBER
Field Value
Type Description
int

MEASURE_MASK_FIELD_NUMBER

public static final int MEASURE_MASK_FIELD_NUMBER
Field Value
Type Description
int

TIME_GRANULARITY_FIELD_NUMBER

public static final int TIME_GRANULARITY_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static QueryMetricsRequest getDefaultInstance()
Returns
Type Description
QueryMetricsRequest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static QueryMetricsRequest.Builder newBuilder()
Returns
Type Description
QueryMetricsRequest.Builder

newBuilder(QueryMetricsRequest prototype)

public static QueryMetricsRequest.Builder newBuilder(QueryMetricsRequest prototype)
Parameter
Name Description
prototype QueryMetricsRequest
Returns
Type Description
QueryMetricsRequest.Builder

parseDelimitedFrom(InputStream input)

public static QueryMetricsRequest parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
QueryMetricsRequest
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static QueryMetricsRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QueryMetricsRequest
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static QueryMetricsRequest parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
QueryMetricsRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static QueryMetricsRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QueryMetricsRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static QueryMetricsRequest parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
QueryMetricsRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static QueryMetricsRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QueryMetricsRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static QueryMetricsRequest parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
QueryMetricsRequest
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static QueryMetricsRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QueryMetricsRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static QueryMetricsRequest parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
QueryMetricsRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static QueryMetricsRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QueryMetricsRequest
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static QueryMetricsRequest parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
QueryMetricsRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static QueryMetricsRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QueryMetricsRequest
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<QueryMetricsRequest> parser()
Returns
Type Description
Parser<QueryMetricsRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public QueryMetricsRequest getDefaultInstanceForType()
Returns
Type Description
QueryMetricsRequest

getDimensions(int index)

public 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;

Parameter
Name Description
index int
Returns
Type Description
Dimension

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;

Returns
Type Description
int

getDimensionsList()

public 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;

Returns
Type Description
List<Dimension>

getDimensionsOrBuilder(int index)

public 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;

Parameter
Name Description
index int
Returns
Type Description
DimensionOrBuilder

getDimensionsOrBuilderList()

public 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;

Returns
Type Description
List<? extends com.google.cloud.contactcenterinsights.v1.DimensionOrBuilder>

getFilter()

public 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];

Returns
Type Description
String

The filter.

getFilterBytes()

public 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];

Returns
Type Description
ByteString

The bytes for filter.

getLocation()

public String getLocation()

Required. The location of the data. "projects/{project}/locations/{location}"

string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The location.

getLocationBytes()

public ByteString getLocationBytes()

Required. The location of the data. "projects/{project}/locations/{location}"

string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for location.

getMeasureMask()

public 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;

Returns
Type Description
FieldMask

The measureMask.

getMeasureMaskOrBuilder()

public 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;

Returns
Type Description
FieldMaskOrBuilder

getParserForType()

public Parser<QueryMetricsRequest> getParserForType()
Returns
Type Description
Parser<QueryMetricsRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTimeGranularity()

public 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;

Returns
Type Description
QueryMetricsRequest.TimeGranularity

The timeGranularity.

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;

Returns
Type Description
int

The enum numeric value on the wire for timeGranularity.

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;

Returns
Type Description
boolean

Whether the measureMask field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public QueryMetricsRequest.Builder newBuilderForType()
Returns
Type Description
QueryMetricsRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected QueryMetricsRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
QueryMetricsRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public QueryMetricsRequest.Builder toBuilder()
Returns
Type Description
QueryMetricsRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException