// SetPower provides a mock function with given fields: state
320554
func (_m *Protocol) SetPower(state bool) error {
	ret := _m.Called(state)

	var r0 error
	if rf, ok := ret.Get(0).(func(bool) error); ok {
		r0 = rf(state)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}
181972
func (b *Driver) SetTXPower(level int) (err error) {
	buf := []byte{byte(level)}

	err = b.adaptor().WriteCharacteristic(txPowerCharacteristic, buf)
	if err != nil {
		fmt.Println("SetTXLevel error:", err)
		return err
	}

	return
}
652497
func (s *WorkGroupSummary) SetState(v string) *WorkGroupSummary {
	s.State = &v
	return s
}
640957
func (s *AssessmentRun) SetState(v string) *AssessmentRun {
	s.State = &v
	return s
}
379679
func (s *LoadBalancerState) SetState(v string) *LoadBalancerState {
	s.State = &v
	return s
}
1292188
func (s *TreatmentResource) SetState(v *CampaignState) *TreatmentResource {
	s.State = v
	return s
}
1045465
func (s *Resource) SetState(v string) *Resource {
	s.State = &v
	return s
}
831406
func (s *GenerateCredentialReportOutput) SetState(v string) *GenerateCredentialReportOutput {
	s.State = &v
	return s
}
112467
func (s *User) SetState(v string) *User {
	s.State = &v
	return s
}
718941
func (p *ProtobufCarrier) SetState(traceID types.TraceID, spanID uint64, parentSpanID *uint64, sampled bool, flags flag.Flags) {
	p.TraceId = traceID.Low
	p.TraceIdHigh = traceID.High
	p.SpanId = spanID
	if parentSpanID == nil {
		flags |= flag.IsRoot
		p.ParentSpanId = 0
	} else {
		flags &^= flag.IsRoot
		p.ParentSpanId = *parentSpanID
	}
	flags |= flag.SamplingSet
	if sampled {
		flags |= flag.Sampled
		p.Sampled = sampled
	} else {
		flags &^= flag.Sampled
	}
	p.Flags = uint64(flags)
}
442270
func (vs *Set) MaybePower(id crypto.Address) *big.Int {
	if vs.powers[id] == nil {
		return nil
	}
	return new(big.Int).Set(vs.powers[id])
}
847321
func (s *DescribeSessionsInput) SetState(v string) *DescribeSessionsInput {
	s.State = &v
	return s
}
1110353
func (s *Reservation) SetState(v string) *Reservation {
	s.State = &v
	return s
}
892859
func (s *WorkGroup) SetState(v string) *WorkGroup {
	s.State = &v
	return s
}
779366
func (s *AutoScalingPolicyStatus) SetState(v string) *AutoScalingPolicyStatus {
	s.State = &v
	return s
}
230406
func (s *ModificationState) SetState(v string) *ModificationState {
	s.State = &v
	return s
}
1345291
func (s *DescribeReservationOutput) SetState(v string) *DescribeReservationOutput {
	s.State = &v
	return s
}