Class QueryMetricsResponse

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

@Generated public final class QueryMetricsResponse extends com.google.protobuf.GeneratedMessage implements QueryMetricsResponseOrBuilder
 The response for querying metrics.
 
Protobuf type google.cloud.contactcenterinsights.v1.QueryMetricsResponse
See Also:
  • Field Details

    • LOCATION_FIELD_NUMBER

      public static final int LOCATION_FIELD_NUMBER
      See Also:
    • UPDATE_TIME_FIELD_NUMBER

      public static final int UPDATE_TIME_FIELD_NUMBER
      See Also:
    • SLICES_FIELD_NUMBER

      public static final int SLICES_FIELD_NUMBER
      See Also:
    • MACRO_AVERAGE_SLICE_FIELD_NUMBER

      public static final int MACRO_AVERAGE_SLICE_FIELD_NUMBER
      See Also:
  • 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
    • 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.
    • 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.
    • 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
    • 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
    • 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
    • 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
    • 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.
    • 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
    • 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 parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

      public static QueryMetricsResponse 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 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

      public static QueryMetricsResponse.Builder newBuilder()
    • newBuilder

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

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

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

      public static QueryMetricsResponse getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<QueryMetricsResponse> 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 getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder