//go:build !ignore_autogenerated

/*
Copyright 2025 Stacklok

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

// Code generated by controller-gen. DO NOT EDIT.

package types

import ()

// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *RateLimitBucket) DeepCopyInto(out *RateLimitBucket) {
	*out = *in
	out.RefillPeriod = in.RefillPeriod
}

// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RateLimitBucket.
func (in *RateLimitBucket) DeepCopy() *RateLimitBucket {
	if in == nil {
		return nil
	}
	out := new(RateLimitBucket)
	in.DeepCopyInto(out)
	return out
}

// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *RateLimitConfig) DeepCopyInto(out *RateLimitConfig) {
	*out = *in
	if in.Shared != nil {
		in, out := &in.Shared, &out.Shared
		*out = new(RateLimitBucket)
		**out = **in
	}
	if in.PerUser != nil {
		in, out := &in.PerUser, &out.PerUser
		*out = new(RateLimitBucket)
		**out = **in
	}
	if in.Tools != nil {
		in, out := &in.Tools, &out.Tools
		*out = make([]ToolRateLimitConfig, len(*in))
		for i := range *in {
			(*in)[i].DeepCopyInto(&(*out)[i])
		}
	}
}

// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RateLimitConfig.
func (in *RateLimitConfig) DeepCopy() *RateLimitConfig {
	if in == nil {
		return nil
	}
	out := new(RateLimitConfig)
	in.DeepCopyInto(out)
	return out
}

// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *ToolRateLimitConfig) DeepCopyInto(out *ToolRateLimitConfig) {
	*out = *in
	if in.Shared != nil {
		in, out := &in.Shared, &out.Shared
		*out = new(RateLimitBucket)
		**out = **in
	}
	if in.PerUser != nil {
		in, out := &in.PerUser, &out.PerUser
		*out = new(RateLimitBucket)
		**out = **in
	}
}

// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ToolRateLimitConfig.
func (in *ToolRateLimitConfig) DeepCopy() *ToolRateLimitConfig {
	if in == nil {
		return nil
	}
	out := new(ToolRateLimitConfig)
	in.DeepCopyInto(out)
	return out
}
