// Set changes the increment to given value, the succeeding call to Next() will return the given value+1
174579
func (i *Uint16) Set(value uint16) {
	i.lock.Lock()
	defer i.lock.Unlock()
	i.increment = value
}
55920
func (a *Algorithm) Set(value string) error {
	if value == "" {
		*a = Canonical
	} else {
		// just do a type conversion, support is queried with Available.
		*a = Algorithm(value)
	}

	return nil
}
901630
func (sa *StringValue) Set(s string) error {
	*sa = StringValue(s)
	return nil
}
526675
func (l *Level) Set(value string) error {
	v, err := strconv.Atoi(value)
	if err != nil {
		return err
	}
	l.set(Level(v))
	return nil
}
121298
func (v Values) Set(key, value string) {
	v[key] = []string{value}
}
730308
func (v *Value) Set(s string) error {
	b, err := DecodeString(s)
	if err != nil {
		return err
	}
	*v = b
	return nil
}
149708
func (m *MemBytes) Set(value string) error {
	val, err := units.RAMInBytes(value)
	*m = MemBytes(val)
	return err
}
1162018
func (s *inMemoryStore) Set(ctx context.Context, h types.Metric, resetTime time.Time, fieldVals []interface{}, value interface{}) {
	if resetTime.IsZero() {
		resetTime = clock.Now(ctx)
	}
	t := target.Get(ctx)

	m := s.getOrCreateData(h)
	m.lock.Lock()
	defer m.lock.Unlock()

	c := m.get(fieldVals, t, resetTime)

	if m.ValueType.IsCumulative() && isLessThan(value, c.Value) {
		logging.Errorf(ctx,
			"Attempted to set cumulative metric %q to %v, which is lower than the previous value %v",
			h.Info().Name, value, c.Value)
		return
	}

	c.Value = value
}
799500
func (nb *NullBase) Set(value interface{}) error {

	nb.valid = false
	nb.value = nil

	if value == nil {
		return nil
	}

	nb.valid = true
	nb.value = value

	return nil
}
757225
func (b *Batch) Set(key, value []byte) {
	if len(b.data) == 0 {
		b.init(len(key) + len(value) + 2*binary.MaxVarintLen64 + batchHeaderLen)
	}
	if b.increment() {
		b.data = append(b.data, byte(internalKeyKindSet))
		b.appendStr(key)
		b.appendStr(value)
	}
}
1360561
func (i *AtomicInt32) Set(n int32) {
	atomic.StoreInt32(&i.int32, n)
}
924267
func (r *Memory) Set(key string, value interface{}) error {
	r.Lock()
	defer r.Unlock()

	return r.cache.Set(key, value)
}
457398
func (f *Strings) Set(i string) error {
	*f = append(*f, i)
	return nil
}
401991
func (v *Float) Set(value float64) {
	v.mu.Lock()
	v.f = value
	v.mu.Unlock()
}
1109661
func (r *Range) Set(value string) error {
	newRange, err := ParseRange(value)
	if err != nil {
		return err
	}
	*r = *newRange
	return nil
}
912247
func Set(key string, value interface{}, args ...interface{}) error {
	return std.Set(key, value, args...)
}
469862
func (n *Nodes) Set(node string) error {
	*n = append(*n, node)
	return nil
}