agones.dev/agones@v1.54.0/pkg/apis/multicluster/v1/zz_generated.deepcopy.go (about)

     1  //go:build !ignore_autogenerated
     2  // +build !ignore_autogenerated
     3  
     4  // Copyright 2024 Google LLC All Rights Reserved.
     5  //
     6  // Licensed under the Apache License, Version 2.0 (the "License");
     7  // you may not use this file except in compliance with the License.
     8  // You may obtain a copy of the License at
     9  //
    10  //     http://www.apache.org/licenses/LICENSE-2.0
    11  //
    12  // Unless required by applicable law or agreed to in writing, software
    13  // distributed under the License is distributed on an "AS IS" BASIS,
    14  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    15  // See the License for the specific language governing permissions and
    16  // limitations under the License.
    17  
    18  // This code was autogenerated. Do not edit directly.
    19  
    20  // Code generated by deepcopy-gen. DO NOT EDIT.
    21  
    22  package v1
    23  
    24  import (
    25  	runtime "k8s.io/apimachinery/pkg/runtime"
    26  )
    27  
    28  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    29  func (in *ClusterConnectionInfo) DeepCopyInto(out *ClusterConnectionInfo) {
    30  	*out = *in
    31  	if in.AllocationEndpoints != nil {
    32  		in, out := &in.AllocationEndpoints, &out.AllocationEndpoints
    33  		*out = make([]string, len(*in))
    34  		copy(*out, *in)
    35  	}
    36  	if in.ServerCA != nil {
    37  		in, out := &in.ServerCA, &out.ServerCA
    38  		*out = make([]byte, len(*in))
    39  		copy(*out, *in)
    40  	}
    41  	return
    42  }
    43  
    44  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterConnectionInfo.
    45  func (in *ClusterConnectionInfo) DeepCopy() *ClusterConnectionInfo {
    46  	if in == nil {
    47  		return nil
    48  	}
    49  	out := new(ClusterConnectionInfo)
    50  	in.DeepCopyInto(out)
    51  	return out
    52  }
    53  
    54  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    55  func (in *ConnectionInfoIterator) DeepCopyInto(out *ConnectionInfoIterator) {
    56  	*out = *in
    57  	if in.orderedPriorities != nil {
    58  		in, out := &in.orderedPriorities, &out.orderedPriorities
    59  		*out = make([]int32, len(*in))
    60  		copy(*out, *in)
    61  	}
    62  	if in.priorityToCluster != nil {
    63  		in, out := &in.priorityToCluster, &out.priorityToCluster
    64  		*out = make(map[int32]map[string][]*GameServerAllocationPolicy, len(*in))
    65  		for key, val := range *in {
    66  			var outVal map[string][]*GameServerAllocationPolicy
    67  			if val == nil {
    68  				(*out)[key] = nil
    69  			} else {
    70  				in, out := &val, &outVal
    71  				*out = make(map[string][]*GameServerAllocationPolicy, len(*in))
    72  				for key, val := range *in {
    73  					var outVal []*GameServerAllocationPolicy
    74  					if val == nil {
    75  						(*out)[key] = nil
    76  					} else {
    77  						in, out := &val, &outVal
    78  						*out = make([]*GameServerAllocationPolicy, len(*in))
    79  						for i := range *in {
    80  							if (*in)[i] != nil {
    81  								in, out := &(*in)[i], &(*out)[i]
    82  								*out = new(GameServerAllocationPolicy)
    83  								(*in).DeepCopyInto(*out)
    84  							}
    85  						}
    86  					}
    87  					(*out)[key] = outVal
    88  				}
    89  			}
    90  			(*out)[key] = outVal
    91  		}
    92  	}
    93  	if in.clusterBlackList != nil {
    94  		in, out := &in.clusterBlackList, &out.clusterBlackList
    95  		*out = make(map[string]bool, len(*in))
    96  		for key, val := range *in {
    97  			(*out)[key] = val
    98  		}
    99  	}
   100  	return
   101  }
   102  
   103  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConnectionInfoIterator.
   104  func (in *ConnectionInfoIterator) DeepCopy() *ConnectionInfoIterator {
   105  	if in == nil {
   106  		return nil
   107  	}
   108  	out := new(ConnectionInfoIterator)
   109  	in.DeepCopyInto(out)
   110  	return out
   111  }
   112  
   113  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   114  func (in *GameServerAllocationPolicy) DeepCopyInto(out *GameServerAllocationPolicy) {
   115  	*out = *in
   116  	out.TypeMeta = in.TypeMeta
   117  	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
   118  	in.Spec.DeepCopyInto(&out.Spec)
   119  	return
   120  }
   121  
   122  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GameServerAllocationPolicy.
   123  func (in *GameServerAllocationPolicy) DeepCopy() *GameServerAllocationPolicy {
   124  	if in == nil {
   125  		return nil
   126  	}
   127  	out := new(GameServerAllocationPolicy)
   128  	in.DeepCopyInto(out)
   129  	return out
   130  }
   131  
   132  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   133  func (in *GameServerAllocationPolicy) DeepCopyObject() runtime.Object {
   134  	if c := in.DeepCopy(); c != nil {
   135  		return c
   136  	}
   137  	return nil
   138  }
   139  
   140  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   141  func (in *GameServerAllocationPolicyList) DeepCopyInto(out *GameServerAllocationPolicyList) {
   142  	*out = *in
   143  	out.TypeMeta = in.TypeMeta
   144  	in.ListMeta.DeepCopyInto(&out.ListMeta)
   145  	if in.Items != nil {
   146  		in, out := &in.Items, &out.Items
   147  		*out = make([]GameServerAllocationPolicy, len(*in))
   148  		for i := range *in {
   149  			(*in)[i].DeepCopyInto(&(*out)[i])
   150  		}
   151  	}
   152  	return
   153  }
   154  
   155  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GameServerAllocationPolicyList.
   156  func (in *GameServerAllocationPolicyList) DeepCopy() *GameServerAllocationPolicyList {
   157  	if in == nil {
   158  		return nil
   159  	}
   160  	out := new(GameServerAllocationPolicyList)
   161  	in.DeepCopyInto(out)
   162  	return out
   163  }
   164  
   165  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   166  func (in *GameServerAllocationPolicyList) DeepCopyObject() runtime.Object {
   167  	if c := in.DeepCopy(); c != nil {
   168  		return c
   169  	}
   170  	return nil
   171  }
   172  
   173  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   174  func (in *GameServerAllocationPolicySpec) DeepCopyInto(out *GameServerAllocationPolicySpec) {
   175  	*out = *in
   176  	in.ConnectionInfo.DeepCopyInto(&out.ConnectionInfo)
   177  	return
   178  }
   179  
   180  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GameServerAllocationPolicySpec.
   181  func (in *GameServerAllocationPolicySpec) DeepCopy() *GameServerAllocationPolicySpec {
   182  	if in == nil {
   183  		return nil
   184  	}
   185  	out := new(GameServerAllocationPolicySpec)
   186  	in.DeepCopyInto(out)
   187  	return out
   188  }