// SetDoubleValue sets the DoubleValue field's value.
322234
func (s *EntitlementValue) SetDoubleValue(v float64) *EntitlementValue {
	s.DoubleValue = &v
	return s
}
909598
func (s *Value) SetBitValue(v bool) *Value {
	s.BitValue = &v
	return s
}
651699
func (s *FileSystemSize) SetValue(v int64) *FileSystemSize {
	s.Value = &v
	return s
}
349772
func (s *MetricDatum) SetValue(v float64) *MetricDatum {
	s.Value = &v
	return s
}
57720
func (s *MouthOpen) SetValue(v bool) *MouthOpen {
	s.Value = &v
	return s
}
521688
func (s *Ssml) SetValue(v string) *Ssml {
	s.Value = &v
	return s
}
62834
func (s *ServiceSetting) SetSettingValue(v string) *ServiceSetting {
	s.SettingValue = &v
	return s
}
465541
func (s *DataPoint) SetValue(v float64) *DataPoint {
	s.Value = &v
	return s
}
686599
func (s *RecordTag) SetValue(v string) *RecordTag {
	s.Value = &v
	return s
}
626150
func (s *IndexField) SetDoubleArrayOptions(v *DoubleArrayOptions) *IndexField {
	s.DoubleArrayOptions = v
	return s
}
317056
func (s *Filter) SetValue(v string) *Filter {
	s.Value = &v
	return s
}
1133322
func (s *Eyeglasses) SetValue(v bool) *Eyeglasses {
	s.Value = &v
	return s
}
1149697
func (s *CurrentMetricData) SetValue(v float64) *CurrentMetricData {
	s.Value = &v
	return s
}
1302280
func (s *AssociationFilter) SetValue(v string) *AssociationFilter {
	s.Value = &v
	return s
}
1188881
func (s *MessageTag) SetValue(v string) *MessageTag {
	s.Value = &v
	return s
}
490614
func (c *CMSketch) setValue(h1, h2 uint64, count uint64) {
	oriCount := c.queryHashValue(h1, h2)
	if c.considerDefVal(oriCount) {
		// We should update c.defaultValue if we used c.defaultValue when getting the estimate count.
		// This should make estimation better, remove this line if it does not work as expected.
		c.defaultValue = uint64(float64(c.defaultValue)*0.95 + float64(c.defaultValue)*0.05)
		if c.defaultValue == 0 {
			// c.defaultValue never guess 0 since we are using a sampled data.
			c.defaultValue = 1
		}
	}

	c.count += count - oriCount
	// let it overflow naturally
	deltaCount := uint32(count) - uint32(oriCount)
	for i := range c.table {
		j := (h1 + h2*uint64(i)) % uint64(c.width)
		c.table[i][j] = c.table[i][j] + deltaCount
	}
}
55419
func (s *Value) SetRealValue(v float64) *Value {
	s.RealValue = &v
	return s
}