// SetPartitioner sets the Config.SetPartitioner field
326703
func (ref *Config) SetPartitioner(val string) {
	switch val {
	default:
		ref.Errorf("Invalid partitioner %s - defaulting to ''", val)
		fallthrough
	case "":
		if ref.Partition >= 0 {
			ref.Partitioner = sarama.NewManualPartitioner
		} else {
			ref.Partitioner = sarama.NewHashPartitioner
		}
	case Hash:
		ref.Partitioner = sarama.NewHashPartitioner
		ref.Partition = -1
	case Random:
		ref.Partitioner = sarama.NewRandomPartitioner
		ref.Partition = -1
	case Manual:
		ref.Partitioner = sarama.NewManualPartitioner
		if ref.Partition < 0 {
			ref.Infof("Invalid partition %d - defaulting to 0", ref.Partition)
			ref.Partition = 0
		}
	}
}
693482
func (s *CompletedMultipartUpload) SetParts(v []*CompletedPart) *CompletedMultipartUpload {
	s.Parts = v
	return s
}
506306
func (s *KinesisParameters) SetPartitionKeyPath(v string) *KinesisParameters {
	s.PartitionKeyPath = &v
	return s
}
390887
func (b *SelectBuilder) LimitPerPartition(limit uint) *SelectBuilder {
	b.limitPerPartition = limit
	return b
}
958791
func (s *HeadObjectInput) SetPartNumber(v int64) *HeadObjectInput {
	s.PartNumber = &v
	return s
}
251
func (sc *SpaceComponent) SetCenter(p engo.Point) {
	xDelta := sc.Width / 2
	yDelta := sc.Height / 2
	// update position according to point being used as our center
	if sc.Rotation == 0 {
		sc.Position.X = p.X - xDelta
		sc.Position.Y = p.Y - yDelta
		return
	}
	sin, cos := math.Sincos(sc.Rotation * math.Pi / 180)
	xDelta = (sc.Width*cos - sc.Height*sin) / 2
	yDelta = (sc.Height*cos + sc.Width*sin) / 2
	sc.Position.X = p.X - xDelta
	sc.Position.Y = p.Y - yDelta
}
564851
func (s *DescribeContainerOutput) SetContainer(v *Container) *DescribeContainerOutput {
	s.Container = v
	return s
}
1160329
func (s *MultipartUpload) SetInitiator(v *Initiator) *MultipartUpload {
	s.Initiator = v
	return s
}
391491
func (s *DescribeDimensionKeysInput) SetPartitionBy(v *DimensionGroup) *DescribeDimensionKeysInput {
	s.PartitionBy = v
	return s
}
174158
func (s *Commit) SetCommitter(v *UserInfo) *Commit {
	s.Committer = v
	return s
}
334096
func (s *ListPartsInput) SetPartNumberMarker(v int64) *ListPartsInput {
	s.PartNumberMarker = &v
	return s
}
615696
func (s *Activity) SetParticipants(v *Participants) *Activity {
	s.Participants = v
	return s
}
217891
func (m *SingleNodeManager) SetPartitions(part []int32) {
	sort.Slice(part, func(i, j int) bool { return part[i] < part[j] })
	m.Lock()
	m.node.SetPartitions(part)
	m.Unlock()
	nodePartitions.Set(len(part))
}
66588
func (s *CreateProductInput) SetDistributor(v string) *CreateProductInput {
	s.Distributor = &v
	return s
}
1205985
func (s *H265Settings) SetParControl(v string) *H265Settings {
	s.ParControl = &v
	return s
}
895837
func (s *DimensionKeyDescription) SetPartitions(v []*float64) *DimensionKeyDescription {
	s.Partitions = v
	return s
}
158054
func SetConfReloader(cpath string, reloader func(nc, c *Config), confItems ...string) {
	reloadConfPath = cpath
	confReloader = reloader
	for _, item := range confItems {
		supportedReloadConfigs[item] = struct{}{}
		supportedReloadConfList = append(supportedReloadConfList, item)
	}
}