Class QueryMetricsResponse.Slice

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.contactcenterinsights.v1.QueryMetricsResponse.Slice
All Implemented Interfaces:
QueryMetricsResponse.SliceOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
QueryMetricsResponse

public static final class QueryMetricsResponse.Slice extends com.google.protobuf.GeneratedMessage implements QueryMetricsResponse.SliceOrBuilder
 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.

 For example, if the request specifies a single ISSUE dimension and it has a
 cardinality of 2 (i.e. the data used to compute the metrics has 2 issues in
 total), the response will have 2 slices:

 * Slice 1 -> dimensions=[Issue 1]
 * Slice 2 -> dimensions=[Issue 2]
 
Protobuf type google.cloud.contactcenterinsights.v1.QueryMetricsResponse.Slice
See Also:
  • Field Details

  • 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
    • getDimensionsList

      public List<Dimension> getDimensionsList()
       A unique combination of dimensions that this slice represents.
       
      repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 1;
      Specified by:
      getDimensionsList in interface QueryMetricsResponse.SliceOrBuilder
    • getDimensionsOrBuilderList

      public List<? extends DimensionOrBuilder> getDimensionsOrBuilderList()
       A unique combination of dimensions that this slice represents.
       
      repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 1;
      Specified by:
      getDimensionsOrBuilderList in interface QueryMetricsResponse.SliceOrBuilder
    • getDimensionsCount

      public int getDimensionsCount()
       A unique combination of dimensions that this slice represents.
       
      repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 1;
      Specified by:
      getDimensionsCount in interface QueryMetricsResponse.SliceOrBuilder
    • getDimensions

      public Dimension getDimensions(int index)
       A unique combination of dimensions that this slice represents.
       
      repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 1;
      Specified by:
      getDimensions in interface QueryMetricsResponse.SliceOrBuilder
    • getDimensionsOrBuilder

      public DimensionOrBuilder getDimensionsOrBuilder(int index)
       A unique combination of dimensions that this slice represents.
       
      repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 1;
      Specified by:
      getDimensionsOrBuilder in interface QueryMetricsResponse.SliceOrBuilder
    • hasTotal

      public boolean hasTotal()
       The total metric value. The interval of this data point is
       [starting create time, ending create time) from the request.
       
      .google.cloud.contactcenterinsights.v1.QueryMetricsResponse.Slice.DataPoint total = 2;
      Specified by:
      hasTotal in interface QueryMetricsResponse.SliceOrBuilder
      Returns:
      Whether the total field is set.
    • getTotal

       The total metric value. The interval of this data point is
       [starting create time, ending create time) from the request.
       
      .google.cloud.contactcenterinsights.v1.QueryMetricsResponse.Slice.DataPoint total = 2;
      Specified by:
      getTotal in interface QueryMetricsResponse.SliceOrBuilder
      Returns:
      The total.
    • getTotalOrBuilder

       The total metric value. The interval of this data point is
       [starting create time, ending create time) from the request.
       
      .google.cloud.contactcenterinsights.v1.QueryMetricsResponse.Slice.DataPoint total = 2;
      Specified by:
      getTotalOrBuilder in interface QueryMetricsResponse.SliceOrBuilder
    • hasTimeSeries

      public boolean hasTimeSeries()
       A time series of metric values. This is only populated if the request
       specifies a time granularity other than NONE.
       
      .google.cloud.contactcenterinsights.v1.QueryMetricsResponse.Slice.TimeSeries time_series = 3;
      Specified by:
      hasTimeSeries in interface QueryMetricsResponse.SliceOrBuilder
      Returns:
      Whether the timeSeries field is set.
    • getTimeSeries

      public QueryMetricsResponse.Slice.TimeSeries getTimeSeries()
       A time series of metric values. This is only populated if the request
       specifies a time granularity other than NONE.
       
      .google.cloud.contactcenterinsights.v1.QueryMetricsResponse.Slice.TimeSeries time_series = 3;
      Specified by:
      getTimeSeries in interface QueryMetricsResponse.SliceOrBuilder
      Returns:
      The timeSeries.
    • getTimeSeriesOrBuilder

      public QueryMetricsResponse.Slice.TimeSeriesOrBuilder getTimeSeriesOrBuilder()
       A time series of metric values. This is only populated if the request
       specifies a time granularity other than NONE.
       
      .google.cloud.contactcenterinsights.v1.QueryMetricsResponse.Slice.TimeSeries time_series = 3;
      Specified by:
      getTimeSeriesOrBuilder in interface QueryMetricsResponse.SliceOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static QueryMetricsResponse.Slice parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static QueryMetricsResponse.Slice parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static QueryMetricsResponse.Slice parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static QueryMetricsResponse.Slice parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static QueryMetricsResponse.Slice parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static QueryMetricsResponse.Slice parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static QueryMetricsResponse.Slice parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static QueryMetricsResponse.Slice parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static QueryMetricsResponse.Slice parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static QueryMetricsResponse.Slice parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static QueryMetricsResponse.Slice parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static QueryMetricsResponse.Slice parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public QueryMetricsResponse.Slice.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static QueryMetricsResponse.Slice.Builder newBuilder()
    • newBuilder

      public static QueryMetricsResponse.Slice.Builder newBuilder(QueryMetricsResponse.Slice prototype)
    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected QueryMetricsResponse.Slice.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static QueryMetricsResponse.Slice getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<QueryMetricsResponse.Slice> parser()
    • getParserForType

      public com.google.protobuf.Parser<QueryMetricsResponse.Slice> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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