Class QueryMetricsResponse (2.55.0)

public final class QueryMetricsResponse extends GeneratedMessageV3 implements QueryMetricsResponseOrBuilder

The response for querying metrics.

Protobuf type google.cloud.contactcenterinsights.v1.QueryMetricsResponse

Static Fields

LOCATION_FIELD_NUMBER

public static final int LOCATION_FIELD_NUMBER
Field Value
Type Description
int

MACRO_AVERAGE_SLICE_FIELD_NUMBER

public static final int MACRO_AVERAGE_SLICE_FIELD_NUMBER
Field Value
Type Description
int

SLICES_FIELD_NUMBER

public static final int SLICES_FIELD_NUMBER
Field Value
Type Description
int

UPDATE_TIME_FIELD_NUMBER

public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static QueryMetricsResponse getDefaultInstance()
Returns
Type Description
QueryMetricsResponse

getDescriptor()

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

newBuilder()

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

newBuilder(QueryMetricsResponse prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public QueryMetricsResponse getDefaultInstanceForType()
Returns
Type Description
QueryMetricsResponse

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.

getMacroAverageSlice()

public QueryMetricsResponse.Slice 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;

Returns
Type Description
QueryMetricsResponse.Slice

The macroAverageSlice.

getMacroAverageSliceOrBuilder()

public QueryMetricsResponse.SliceOrBuilder 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;

Returns
Type Description
QueryMetricsResponse.SliceOrBuilder

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSlices(int index)

public QueryMetricsResponse.Slice getSlices(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
QueryMetricsResponse.Slice

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;

Returns
Type Description
int

getSlicesList()

public List<QueryMetricsResponse.Slice> 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;

Returns
Type Description
List<Slice>

getSlicesOrBuilder(int index)

public QueryMetricsResponse.SliceOrBuilder getSlicesOrBuilder(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
QueryMetricsResponse.SliceOrBuilder

getSlicesOrBuilderList()

public List<? extends QueryMetricsResponse.SliceOrBuilder> 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;

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

getUpdateTime()

public Timestamp getUpdateTime()

The metrics last update time.

.google.protobuf.Timestamp update_time = 3;

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

The metrics last update time.

.google.protobuf.Timestamp update_time = 3;

Returns
Type Description
TimestampOrBuilder

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;

Returns
Type Description
boolean

Whether the macroAverageSlice field is set.

hasUpdateTime()

public boolean hasUpdateTime()

The metrics last update time.

.google.protobuf.Timestamp update_time = 3;

Returns
Type Description
boolean

Whether the updateTime 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 QueryMetricsResponse.Builder newBuilderForType()
Returns
Type Description
QueryMetricsResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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