Class QueryMetricsResponse.Builder (2.55.0)

public static final class QueryMetricsResponse.Builder extends GeneratedMessageV3.Builder<QueryMetricsResponse.Builder> implements QueryMetricsResponseOrBuilder

The response for querying metrics.

Protobuf type google.cloud.contactcenterinsights.v1.QueryMetricsResponse

Static Methods

getDescriptor()

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

Methods

addAllSlices(Iterable<? extends QueryMetricsResponse.Slice> values)

public QueryMetricsResponse.Builder addAllSlices(Iterable<? extends QueryMetricsResponse.Slice> values)

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
values Iterable<? extends com.google.cloud.contactcenterinsights.v1.QueryMetricsResponse.Slice>
Returns
Type Description
QueryMetricsResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public QueryMetricsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
QueryMetricsResponse.Builder
Overrides

addSlices(QueryMetricsResponse.Slice value)

public QueryMetricsResponse.Builder addSlices(QueryMetricsResponse.Slice value)

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
value QueryMetricsResponse.Slice
Returns
Type Description
QueryMetricsResponse.Builder

addSlices(QueryMetricsResponse.Slice.Builder builderForValue)

public QueryMetricsResponse.Builder addSlices(QueryMetricsResponse.Slice.Builder builderForValue)

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
builderForValue QueryMetricsResponse.Slice.Builder
Returns
Type Description
QueryMetricsResponse.Builder

addSlices(int index, QueryMetricsResponse.Slice value)

public QueryMetricsResponse.Builder addSlices(int index, QueryMetricsResponse.Slice value)

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;

Parameters
Name Description
index int
value QueryMetricsResponse.Slice
Returns
Type Description
QueryMetricsResponse.Builder

addSlices(int index, QueryMetricsResponse.Slice.Builder builderForValue)

public QueryMetricsResponse.Builder addSlices(int index, QueryMetricsResponse.Slice.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue QueryMetricsResponse.Slice.Builder
Returns
Type Description
QueryMetricsResponse.Builder

addSlicesBuilder()

public QueryMetricsResponse.Slice.Builder addSlicesBuilder()

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
QueryMetricsResponse.Slice.Builder

addSlicesBuilder(int index)

public QueryMetricsResponse.Slice.Builder addSlicesBuilder(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.Builder

build()

public QueryMetricsResponse build()
Returns
Type Description
QueryMetricsResponse

buildPartial()

public QueryMetricsResponse buildPartial()
Returns
Type Description
QueryMetricsResponse

clear()

public QueryMetricsResponse.Builder clear()
Returns
Type Description
QueryMetricsResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public QueryMetricsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
QueryMetricsResponse.Builder
Overrides

clearLocation()

public QueryMetricsResponse.Builder clearLocation()

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
QueryMetricsResponse.Builder

This builder for chaining.

clearMacroAverageSlice()

public QueryMetricsResponse.Builder clearMacroAverageSlice()

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.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public QueryMetricsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
QueryMetricsResponse.Builder
Overrides

clearSlices()

public QueryMetricsResponse.Builder clearSlices()

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
QueryMetricsResponse.Builder

clearUpdateTime()

public QueryMetricsResponse.Builder clearUpdateTime()

The metrics last update time.

.google.protobuf.Timestamp update_time = 3;

Returns
Type Description
QueryMetricsResponse.Builder

clone()

public QueryMetricsResponse.Builder clone()
Returns
Type Description
QueryMetricsResponse.Builder
Overrides

getDefaultInstanceForType()

public QueryMetricsResponse getDefaultInstanceForType()
Returns
Type Description
QueryMetricsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

getMacroAverageSliceBuilder()

public QueryMetricsResponse.Slice.Builder getMacroAverageSliceBuilder()

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.Builder

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

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

getSlicesBuilder(int index)

public QueryMetricsResponse.Slice.Builder getSlicesBuilder(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.Builder

getSlicesBuilderList()

public List<QueryMetricsResponse.Slice.Builder> getSlicesBuilderList()

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<Builder>

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.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

The metrics last update time.

.google.protobuf.Timestamp update_time = 3;

Returns
Type Description
Builder

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(QueryMetricsResponse other)

public QueryMetricsResponse.Builder mergeFrom(QueryMetricsResponse other)
Parameter
Name Description
other QueryMetricsResponse
Returns
Type Description
QueryMetricsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public QueryMetricsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QueryMetricsResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public QueryMetricsResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
QueryMetricsResponse.Builder
Overrides

mergeMacroAverageSlice(QueryMetricsResponse.Slice value)

public QueryMetricsResponse.Builder mergeMacroAverageSlice(QueryMetricsResponse.Slice value)

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;

Parameter
Name Description
value QueryMetricsResponse.Slice
Returns
Type Description
QueryMetricsResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final QueryMetricsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
QueryMetricsResponse.Builder
Overrides

mergeUpdateTime(Timestamp value)

public QueryMetricsResponse.Builder mergeUpdateTime(Timestamp value)

The metrics last update time.

.google.protobuf.Timestamp update_time = 3;

Parameter
Name Description
value Timestamp
Returns
Type Description
QueryMetricsResponse.Builder

removeSlices(int index)

public QueryMetricsResponse.Builder removeSlices(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.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public QueryMetricsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
QueryMetricsResponse.Builder
Overrides

setLocation(String value)

public QueryMetricsResponse.Builder setLocation(String value)

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

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

Parameter
Name Description
value String

The location to set.

Returns
Type Description
QueryMetricsResponse.Builder

This builder for chaining.

setLocationBytes(ByteString value)

public QueryMetricsResponse.Builder setLocationBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for location to set.

Returns
Type Description
QueryMetricsResponse.Builder

This builder for chaining.

setMacroAverageSlice(QueryMetricsResponse.Slice value)

public QueryMetricsResponse.Builder setMacroAverageSlice(QueryMetricsResponse.Slice value)

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;

Parameter
Name Description
value QueryMetricsResponse.Slice
Returns
Type Description
QueryMetricsResponse.Builder

setMacroAverageSlice(QueryMetricsResponse.Slice.Builder builderForValue)

public QueryMetricsResponse.Builder setMacroAverageSlice(QueryMetricsResponse.Slice.Builder builderForValue)

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;

Parameter
Name Description
builderForValue QueryMetricsResponse.Slice.Builder
Returns
Type Description
QueryMetricsResponse.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public QueryMetricsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
QueryMetricsResponse.Builder
Overrides

setSlices(int index, QueryMetricsResponse.Slice value)

public QueryMetricsResponse.Builder setSlices(int index, QueryMetricsResponse.Slice value)

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;

Parameters
Name Description
index int
value QueryMetricsResponse.Slice
Returns
Type Description
QueryMetricsResponse.Builder

setSlices(int index, QueryMetricsResponse.Slice.Builder builderForValue)

public QueryMetricsResponse.Builder setSlices(int index, QueryMetricsResponse.Slice.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue QueryMetricsResponse.Slice.Builder
Returns
Type Description
QueryMetricsResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final QueryMetricsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
QueryMetricsResponse.Builder
Overrides

setUpdateTime(Timestamp value)

public QueryMetricsResponse.Builder setUpdateTime(Timestamp value)

The metrics last update time.

.google.protobuf.Timestamp update_time = 3;

Parameter
Name Description
value Timestamp
Returns
Type Description
QueryMetricsResponse.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public QueryMetricsResponse.Builder setUpdateTime(Timestamp.Builder builderForValue)

The metrics last update time.

.google.protobuf.Timestamp update_time = 3;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
QueryMetricsResponse.Builder