Class QueryMetricsRequest.Builder

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

public static final class QueryMetricsRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<QueryMetricsRequest.Builder> implements QueryMetricsRequestOrBuilder
 The request for querying metrics.
 
Protobuf type google.cloud.contactcenterinsights.v1.QueryMetricsRequest
  • 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<QueryMetricsRequest.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<QueryMetricsRequest.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<QueryMetricsRequest.Builder>
    • getDefaultInstanceForType

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

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

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

      public QueryMetricsRequest.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<QueryMetricsRequest.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<QueryMetricsRequest.Builder>
    • mergeFrom

      public QueryMetricsRequest.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<QueryMetricsRequest.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 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.
    • setLocation

      public QueryMetricsRequest.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 QueryMetricsRequest.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 QueryMetricsRequest.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.
    • 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.
    • setFilter

      public QueryMetricsRequest.Builder setFilter(String value)
       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];
      Parameters:
      value - The filter to set.
      Returns:
      This builder for chaining.
    • clearFilter

      public QueryMetricsRequest.Builder clearFilter()
       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];
      Returns:
      This builder for chaining.
    • setFilterBytes

      public QueryMetricsRequest.Builder setFilterBytes(com.google.protobuf.ByteString value)
       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];
      Parameters:
      value - The bytes for filter to set.
      Returns:
      This builder for chaining.
    • 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.
    • setTimeGranularityValue

      public QueryMetricsRequest.Builder setTimeGranularityValue(int value)
       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;
      Parameters:
      value - The enum numeric value on the wire for timeGranularity to set.
      Returns:
      This builder for chaining.
    • 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.
    • setTimeGranularity

       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;
      Parameters:
      value - The timeGranularity to set.
      Returns:
      This builder for chaining.
    • clearTimeGranularity

      public QueryMetricsRequest.Builder clearTimeGranularity()
       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;
      Returns:
      This builder for chaining.
    • 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
    • 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
    • setDimensions

      public QueryMetricsRequest.Builder setDimensions(int index, Dimension value)
       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;
    • setDimensions

      public QueryMetricsRequest.Builder setDimensions(int index, Dimension.Builder builderForValue)
       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;
    • addDimensions

      public QueryMetricsRequest.Builder addDimensions(Dimension value)
       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;
    • addDimensions

      public QueryMetricsRequest.Builder addDimensions(int index, Dimension value)
       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;
    • addDimensions

      public QueryMetricsRequest.Builder addDimensions(Dimension.Builder builderForValue)
       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;
    • addDimensions

      public QueryMetricsRequest.Builder addDimensions(int index, Dimension.Builder builderForValue)
       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;
    • addAllDimensions

      public QueryMetricsRequest.Builder addAllDimensions(Iterable<? extends Dimension> values)
       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;
    • clearDimensions

      public QueryMetricsRequest.Builder clearDimensions()
       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;
    • removeDimensions

      public QueryMetricsRequest.Builder removeDimensions(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;
    • getDimensionsBuilder

      public Dimension.Builder getDimensionsBuilder(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;
    • 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
    • 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
    • addDimensionsBuilder

      public Dimension.Builder addDimensionsBuilder()
       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;
    • addDimensionsBuilder

      public Dimension.Builder addDimensionsBuilder(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;
    • getDimensionsBuilderList

      public List<Dimension.Builder> getDimensionsBuilderList()
       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;
    • 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.
    • setMeasureMask

      public QueryMetricsRequest.Builder setMeasureMask(com.google.protobuf.FieldMask value)
       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;
    • setMeasureMask

      public QueryMetricsRequest.Builder setMeasureMask(com.google.protobuf.FieldMask.Builder builderForValue)
       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;
    • mergeMeasureMask

      public QueryMetricsRequest.Builder mergeMeasureMask(com.google.protobuf.FieldMask value)
       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;
    • clearMeasureMask

      public QueryMetricsRequest.Builder clearMeasureMask()
       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;
    • getMeasureMaskBuilder

      public com.google.protobuf.FieldMask.Builder getMeasureMaskBuilder()
       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;
    • 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