count = $count; } /** * @return AggregationCount */ public function getCount() { return $this->count; } /** * The name of the field on which to aggregate. * * @param string $field */ public function setField($field) { $this->field = $field; } /** * @return string */ public function getField() { return $this->field; } /** * Creates a frequency distribution of all field values. * * @param AggregationFrequency $frequency */ public function setFrequency(AggregationFrequency $frequency) { $this->frequency = $frequency; } /** * @return AggregationFrequency */ public function getFrequency() { return $this->frequency; } /** * Creates a bucketed histogram of field values. * * @param AggregationHistogram $histogram */ public function setHistogram(AggregationHistogram $histogram) { $this->histogram = $histogram; } /** * @return AggregationHistogram */ public function getHistogram() { return $this->histogram; } /** * Sum over a numeric field. * * @param AggregationSum $sum */ public function setSum(AggregationSum $sum) { $this->sum = $sum; } /** * @return AggregationSum */ public function getSum() { return $this->sum; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Aggregation::class, 'Google_Service_MigrationCenterAPI_Aggregation');