Sets the stats value for this LineItemSummary.

@param stats   * Contains trafficking statistics for the line item. This attribute
is
readonly and is populated by Google. This will be
{@code null} in case
there are no statistics for a line item yet.
12215
public void setStats(com.google.api.ads.admanager.axis.v201805.Stats stats) {
        this.stats = stats;
    }
649906
def set(self, stats, value):
        
        self.update_stats(stats, value, self.SC_SET)
145300
def set_stats(self, run_stats):
        
        self.stats = run_stats.copy()
        self.stats['files'] = ', '.join(self.stats['files'])
        self.stats['tot_files'] = len(run_stats['files'])
        self.stats['extra_tags'] = ', '.join(self.stats['extra_tags'])
92827
public GetInstanceMetricDataRequest withStatistics(MetricStatistic... statistics) {
        java.util.ArrayList<String> statisticsCopy = new java.util.ArrayList<String>(statistics.length);
        for (MetricStatistic value : statistics) {
            statisticsCopy.add(value.toString());
        }
        if (getStatistics() == null) {
            setStatistics(statisticsCopy);
        } else {
            getStatistics().addAll(statisticsCopy);
        }
        return this;
    }
242906
public void setCurrentShardLevelMetrics(java.util.Collection<String> currentShardLevelMetrics) {
        if (currentShardLevelMetrics == null) {
            this.currentShardLevelMetrics = null;
            return;
        }

        this.currentShardLevelMetrics = new com.amazonaws.internal.SdkInternalList<String>(currentShardLevelMetrics);
    }
443477
void collectStats(final StatsCollector collector) {
    collector.record("compaction.count", compaction_count);
    collector.record("compaction.duplicates", duplicates_same, "type=identical");
    collector.record("compaction.duplicates", duplicates_different, "type=variant");
    if (!tsdb.config.enable_compactions()) {
      return;
    }
    // The remaining stats only make sense with compactions enabled.
    collector.record("compaction.queue.size", size);
    collector.record("compaction.errors", handle_read_error.errors, "rpc=read");
    collector.record("compaction.errors", handle_write_error.errors, "rpc=put");
    collector.record("compaction.errors", handle_delete_error.errors,
                     "rpc=delete");
    collector.record("compaction.writes", written_cells);
    collector.record("compaction.deletes", deleted_cells);
  }
251205
func (s *SearchInput) SetStats(v string) *SearchInput {
	s.Stats = &v
	return s
}
244472
public void setDataItems(List<M> items) {
        boolean changed = this.dataItems != items;
        if (items == null) {
            this.dataItems = null;
        } else {
            this.dataItems = items instanceof BindableListWrapper ? (BindableListWrapper<M>) items
                                                                  : new BindableListWrapper<M>(items);
            if (changed) this.dataItems.addChangeHandler(this);
        }
        addDataItems();
    }
988239
@SuppressWarnings("unchecked")
	@Override
	public <T extends Query> T setStatsOptions(StatsOptions statsOptions) {

		this.statsOptions = statsOptions;
		return (T) this;
	}
429333
public void setItems(java.util.Collection<ApiMapping> items) {
        if (items == null) {
            this.items = null;
            return;
        }

        this.items = new java.util.ArrayList<ApiMapping>(items);
    }
1001589
public SearchResult withStats(java.util.Map<String, FieldStats> stats) {
        setStats(stats);
        return this;
    }
808028
public void setStatistics(boolean enabled) {
        all().forEach(cache -> updateStatistics(cache.getName(), new Cache(false, enabled)));
    }
1194078
public static void setStatistics() {
    // decrease to INFO if it was higher
    if(LOGGER_GLOBAL_TOP.getLevel() == null || LOGGER_GLOBAL_TOP.getLevel().intValue() > Level.STATISTICS.intValue()) {
      LOGGER_GLOBAL_TOP.setLevel(Level.STATISTICS);
    }
    if(LOGGER_ELKI_TOP.getLevel() == null || LOGGER_ELKI_TOP.getLevel().intValue() > Level.STATISTICS.intValue()) {
      LOGGER_ELKI_TOP.setLevel(Level.STATISTICS);
    }
    if(LOGGER_TIME_TOP.getLevel() == null || LOGGER_TIME_TOP.getLevel().intValue() > Level.STATISTICS.intValue()) {
      LOGGER_TIME_TOP.setLevel(Level.STATISTICS);
    }
  }
705433
public void setMetricDataResults(java.util.Collection<MetricDataResult> metricDataResults) {
        if (metricDataResults == null) {
            this.metricDataResults = null;
            return;
        }

        this.metricDataResults = new com.amazonaws.internal.SdkInternalList<MetricDataResult>(metricDataResults);
    }
1279900
protected void init_stats() {
		byteCount = 0;
		ctrlWordCount = 0;
		openGroupCount = 0;
		closeGroupCount = 0;
		characterCount = 0;
		ctrlWordHandledCount = 0;
		ctrlWordNotHandledCount = 0;
		ctrlWordSkippedCount = 0;
		groupSkippedCount = 0;
	}
329412
public void setChannelSummaries(java.util.Collection<ChannelSummary> channelSummaries) {
        if (channelSummaries == null) {
            this.channelSummaries = null;
            return;
        }

        this.channelSummaries = new java.util.ArrayList<ChannelSummary>(channelSummaries);
    }
1046617
public void setLineItemDeliveryForecasts(com.google.api.ads.admanager.axis.v201902.LineItemDeliveryForecast[] lineItemDeliveryForecasts) {
        this.lineItemDeliveryForecasts = lineItemDeliveryForecasts;
    }