Class QueryMetricsRequest

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

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

    • LOCATION_FIELD_NUMBER

      public static final int LOCATION_FIELD_NUMBER
      See Also:
    • FILTER_FIELD_NUMBER

      public static final int FILTER_FIELD_NUMBER
      See Also:
    • TIME_GRANULARITY_FIELD_NUMBER

      public static final int TIME_GRANULARITY_FIELD_NUMBER
      See Also:
    • DIMENSIONS_FIELD_NUMBER

      public static final int DIMENSIONS_FIELD_NUMBER
      See Also:
    • MEASURE_MASK_FIELD_NUMBER

      public static final int MEASURE_MASK_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 QueryMetricsRequestOrBuilder
      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 QueryMetricsRequestOrBuilder
      Returns:
      The bytes for location.
    • getFilter

      public String getFilter()
       Required. Filter to select a subset of conversations to compute the
       metrics. Must specify a window of the conversation create time to compute
       the metrics. The returned metrics will be from the range [DATE(starting
       create time), DATE(ending create time)).
       
      string filter = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getFilter in interface QueryMetricsRequestOrBuilder
      Returns:
      The filter.
    • getFilterBytes

      public com.google.protobuf.ByteString getFilterBytes()
       Required. Filter to select a subset of conversations to compute the
       metrics. Must specify a window of the conversation create time to compute
       the metrics. The returned metrics will be from the range [DATE(starting
       create time), DATE(ending create time)).
       
      string filter = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getFilterBytes in interface QueryMetricsRequestOrBuilder
      Returns:
      The bytes for filter.
    • getTimeGranularityValue

      public int getTimeGranularityValue()
       The time granularity of each data point in the time series.
       Defaults to NONE if this field is unspecified.
       
      .google.cloud.contactcenterinsights.v1.QueryMetricsRequest.TimeGranularity time_granularity = 3;
      Specified by:
      getTimeGranularityValue in interface QueryMetricsRequestOrBuilder
      Returns:
      The enum numeric value on the wire for timeGranularity.
    • getTimeGranularity

      public QueryMetricsRequest.TimeGranularity getTimeGranularity()
       The time granularity of each data point in the time series.
       Defaults to NONE if this field is unspecified.
       
      .google.cloud.contactcenterinsights.v1.QueryMetricsRequest.TimeGranularity time_granularity = 3;
      Specified by:
      getTimeGranularity in interface QueryMetricsRequestOrBuilder
      Returns:
      The timeGranularity.
    • getDimensionsList

      public List<Dimension> getDimensionsList()
       The dimensions that determine the grouping key for the query. Defaults to
       no dimension if this field is unspecified. If a dimension is specified,
       its key must also be specified. Each dimension's key must be unique.
      
       If a time granularity is also specified, metric values in the dimension
       will be bucketed by this granularity.
      
       Up to one dimension is supported for now.
       
      repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 4;
      Specified by:
      getDimensionsList in interface QueryMetricsRequestOrBuilder
    • getDimensionsOrBuilderList

      public List<? extends DimensionOrBuilder> getDimensionsOrBuilderList()
       The dimensions that determine the grouping key for the query. Defaults to
       no dimension if this field is unspecified. If a dimension is specified,
       its key must also be specified. Each dimension's key must be unique.
      
       If a time granularity is also specified, metric values in the dimension
       will be bucketed by this granularity.
      
       Up to one dimension is supported for now.
       
      repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 4;
      Specified by:
      getDimensionsOrBuilderList in interface QueryMetricsRequestOrBuilder
    • getDimensionsCount

      public int getDimensionsCount()
       The dimensions that determine the grouping key for the query. Defaults to
       no dimension if this field is unspecified. If a dimension is specified,
       its key must also be specified. Each dimension's key must be unique.
      
       If a time granularity is also specified, metric values in the dimension
       will be bucketed by this granularity.
      
       Up to one dimension is supported for now.
       
      repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 4;
      Specified by:
      getDimensionsCount in interface QueryMetricsRequestOrBuilder
    • getDimensions

      public Dimension getDimensions(int index)
       The dimensions that determine the grouping key for the query. Defaults to
       no dimension if this field is unspecified. If a dimension is specified,
       its key must also be specified. Each dimension's key must be unique.
      
       If a time granularity is also specified, metric values in the dimension
       will be bucketed by this granularity.
      
       Up to one dimension is supported for now.
       
      repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 4;
      Specified by:
      getDimensions in interface QueryMetricsRequestOrBuilder
    • getDimensionsOrBuilder

      public DimensionOrBuilder getDimensionsOrBuilder(int index)
       The dimensions that determine the grouping key for the query. Defaults to
       no dimension if this field is unspecified. If a dimension is specified,
       its key must also be specified. Each dimension's key must be unique.
      
       If a time granularity is also specified, metric values in the dimension
       will be bucketed by this granularity.
      
       Up to one dimension is supported for now.
       
      repeated .google.cloud.contactcenterinsights.v1.Dimension dimensions = 4;
      Specified by:
      getDimensionsOrBuilder in interface QueryMetricsRequestOrBuilder
    • hasMeasureMask

      public boolean hasMeasureMask()
       Measures to return. Defaults to all measures if this field is unspecified.
       A valid mask should traverse from the `measure` field from the response.
       For example, a path from a measure mask to get the conversation count is
       "conversation_measure.count".
       
      .google.protobuf.FieldMask measure_mask = 5;
      Specified by:
      hasMeasureMask in interface QueryMetricsRequestOrBuilder
      Returns:
      Whether the measureMask field is set.
    • getMeasureMask

      public com.google.protobuf.FieldMask getMeasureMask()
       Measures to return. Defaults to all measures if this field is unspecified.
       A valid mask should traverse from the `measure` field from the response.
       For example, a path from a measure mask to get the conversation count is
       "conversation_measure.count".
       
      .google.protobuf.FieldMask measure_mask = 5;
      Specified by:
      getMeasureMask in interface QueryMetricsRequestOrBuilder
      Returns:
      The measureMask.
    • getMeasureMaskOrBuilder

      public com.google.protobuf.FieldMaskOrBuilder getMeasureMaskOrBuilder()
       Measures to return. Defaults to all measures if this field is unspecified.
       A valid mask should traverse from the `measure` field from the response.
       For example, a path from a measure mask to get the conversation count is
       "conversation_measure.count".
       
      .google.protobuf.FieldMask measure_mask = 5;
      Specified by:
      getMeasureMaskOrBuilder in interface QueryMetricsRequestOrBuilder
    • 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 QueryMetricsRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static QueryMetricsRequest.Builder newBuilder()
    • newBuilder

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

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

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

      public static QueryMetricsRequest getDefaultInstance()
    • parser

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

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