public final class QueryMetricsResponse extends GeneratedMessageV3 implements QueryMetricsResponseOrBuilder
The response for querying metrics.
Protobuf type google.cloud.contactcenterinsights.v1.QueryMetricsResponse
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int LOCATION_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int MACRO_AVERAGE_SLICE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int SLICES_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int UPDATE_TIME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
public static QueryMetricsResponse getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static QueryMetricsResponse.Builder newBuilder()
public static QueryMetricsResponse.Builder newBuilder(QueryMetricsResponse prototype)
public static QueryMetricsResponse parseDelimitedFrom(InputStream input)
public static QueryMetricsResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static QueryMetricsResponse parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
public static QueryMetricsResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static QueryMetricsResponse parseFrom(ByteString data)
public static QueryMetricsResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static QueryMetricsResponse parseFrom(CodedInputStream input)
public static QueryMetricsResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static QueryMetricsResponse parseFrom(InputStream input)
public static QueryMetricsResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static QueryMetricsResponse parseFrom(ByteBuffer data)
public static QueryMetricsResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<QueryMetricsResponse> parser()
Methods
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
public QueryMetricsResponse getDefaultInstanceForType()
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.
|
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.
|
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;
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;
public Parser<QueryMetricsResponse> getParserForType()
Overrides
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
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
|
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 |
|
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;
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
|
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> |
|
public Timestamp getUpdateTime()
The metrics last update time.
.google.protobuf.Timestamp update_time = 3;
Returns |
Type |
Description |
Timestamp |
The updateTime.
|
public TimestampOrBuilder getUpdateTimeOrBuilder()
The metrics last update time.
.google.protobuf.Timestamp update_time = 3;
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.
|
public boolean hasUpdateTime()
The metrics last update time.
.google.protobuf.Timestamp update_time = 3;
Returns |
Type |
Description |
boolean |
Whether the updateTime field is set.
|
Returns |
Type |
Description |
int |
|
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public QueryMetricsResponse.Builder newBuilderForType()
protected QueryMetricsResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
public QueryMetricsResponse.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides