Class QueryMetricsResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<QueryMetricsResponse.Builder>
com.google.cloud.contactcenterinsights.v1.QueryMetricsResponse.Builder
All Implemented Interfaces:
QueryMetricsResponseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
QueryMetricsResponse

public static final class QueryMetricsResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<QueryMetricsResponse.Builder> implements QueryMetricsResponseOrBuilder
 The response for querying metrics.
 
Protobuf type google.cloud.contactcenterinsights.v1.QueryMetricsResponse
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<QueryMetricsResponse.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<QueryMetricsResponse.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<QueryMetricsResponse.Builder>
    • getDefaultInstanceForType

      public QueryMetricsResponse getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public QueryMetricsResponse build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public QueryMetricsResponse buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public QueryMetricsResponse.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<QueryMetricsResponse.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<QueryMetricsResponse.Builder>
    • mergeFrom

      public QueryMetricsResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<QueryMetricsResponse.Builder>
      Throws:
      IOException
    • 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) = { ... }
      Specified by:
      getLocation in interface QueryMetricsResponseOrBuilder
      Returns:
      The location.
    • getLocationBytes

      public 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) = { ... }
      Specified by:
      getLocationBytes in interface QueryMetricsResponseOrBuilder
      Returns:
      The bytes for location.
    • setLocation

      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) = { ... }
      Parameters:
      value - The location to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setLocationBytes

      public QueryMetricsResponse.Builder setLocationBytes(com.google.protobuf.ByteString value)
       Required. The location of the data.
       "projects/{project}/locations/{location}"
       
      string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for location to set.
      Returns:
      This builder for chaining.
    • hasUpdateTime

      public boolean hasUpdateTime()
       The metrics last update time.
       
      .google.protobuf.Timestamp update_time = 3;
      Specified by:
      hasUpdateTime in interface QueryMetricsResponseOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       The metrics last update time.
       
      .google.protobuf.Timestamp update_time = 3;
      Specified by:
      getUpdateTime in interface QueryMetricsResponseOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public QueryMetricsResponse.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       The metrics last update time.
       
      .google.protobuf.Timestamp update_time = 3;
    • setUpdateTime

      public QueryMetricsResponse.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       The metrics last update time.
       
      .google.protobuf.Timestamp update_time = 3;
    • mergeUpdateTime

      public QueryMetricsResponse.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       The metrics last update time.
       
      .google.protobuf.Timestamp update_time = 3;
    • clearUpdateTime

      public QueryMetricsResponse.Builder clearUpdateTime()
       The metrics last update time.
       
      .google.protobuf.Timestamp update_time = 3;
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       The metrics last update time.
       
      .google.protobuf.Timestamp update_time = 3;
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       The metrics last update time.
       
      .google.protobuf.Timestamp update_time = 3;
      Specified by:
      getUpdateTimeOrBuilder in interface QueryMetricsResponseOrBuilder
    • 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;
      Specified by:
      getSlicesList in interface QueryMetricsResponseOrBuilder
    • 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;
      Specified by:
      getSlicesCount in interface QueryMetricsResponseOrBuilder
    • getSlices

      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;
      Specified by:
      getSlices in interface QueryMetricsResponseOrBuilder
    • setSlices

      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;
    • setSlices

      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;
    • addSlices

       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;
    • addSlices

      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;
    • addSlices

       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;
    • addSlices

      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;
    • addAllSlices

      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;
    • 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;
    • removeSlices

      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;
    • getSlicesBuilder

      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;
    • getSlicesOrBuilder

      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;
      Specified by:
      getSlicesOrBuilder in interface QueryMetricsResponseOrBuilder
    • 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;
      Specified by:
      getSlicesOrBuilderList in interface QueryMetricsResponseOrBuilder
    • 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;
    • addSlicesBuilder

      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;
    • 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;
    • 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;
      Specified by:
      hasMacroAverageSlice in interface QueryMetricsResponseOrBuilder
      Returns:
      Whether the macroAverageSlice field is set.
    • 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;
      Specified by:
      getMacroAverageSlice in interface QueryMetricsResponseOrBuilder
      Returns:
      The macroAverageSlice.
    • setMacroAverageSlice

      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;
    • setMacroAverageSlice

      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;
    • mergeMacroAverageSlice

      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;
    • 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;
    • 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;
    • 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;
      Specified by:
      getMacroAverageSliceOrBuilder in interface QueryMetricsResponseOrBuilder