agones.dev/agones@v1.53.0/pkg/apis/allocation/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  	agonesv1 "agones.dev/agones/pkg/apis/agones/v1"
    26  	corev1 "k8s.io/api/core/v1"
    27  	runtime "k8s.io/apimachinery/pkg/runtime"
    28  )
    29  
    30  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    31  func (in *CounterAction) DeepCopyInto(out *CounterAction) {
    32  	*out = *in
    33  	if in.Action != nil {
    34  		in, out := &in.Action, &out.Action
    35  		*out = new(string)
    36  		**out = **in
    37  	}
    38  	if in.Amount != nil {
    39  		in, out := &in.Amount, &out.Amount
    40  		*out = new(int64)
    41  		**out = **in
    42  	}
    43  	if in.Capacity != nil {
    44  		in, out := &in.Capacity, &out.Capacity
    45  		*out = new(int64)
    46  		**out = **in
    47  	}
    48  	return
    49  }
    50  
    51  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CounterAction.
    52  func (in *CounterAction) DeepCopy() *CounterAction {
    53  	if in == nil {
    54  		return nil
    55  	}
    56  	out := new(CounterAction)
    57  	in.DeepCopyInto(out)
    58  	return out
    59  }
    60  
    61  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    62  func (in *CounterSelector) DeepCopyInto(out *CounterSelector) {
    63  	*out = *in
    64  	return
    65  }
    66  
    67  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CounterSelector.
    68  func (in *CounterSelector) DeepCopy() *CounterSelector {
    69  	if in == nil {
    70  		return nil
    71  	}
    72  	out := new(CounterSelector)
    73  	in.DeepCopyInto(out)
    74  	return out
    75  }
    76  
    77  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    78  func (in *GameServerAllocation) DeepCopyInto(out *GameServerAllocation) {
    79  	*out = *in
    80  	out.TypeMeta = in.TypeMeta
    81  	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
    82  	in.Spec.DeepCopyInto(&out.Spec)
    83  	in.Status.DeepCopyInto(&out.Status)
    84  	return
    85  }
    86  
    87  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GameServerAllocation.
    88  func (in *GameServerAllocation) DeepCopy() *GameServerAllocation {
    89  	if in == nil {
    90  		return nil
    91  	}
    92  	out := new(GameServerAllocation)
    93  	in.DeepCopyInto(out)
    94  	return out
    95  }
    96  
    97  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
    98  func (in *GameServerAllocation) DeepCopyObject() runtime.Object {
    99  	if c := in.DeepCopy(); c != nil {
   100  		return c
   101  	}
   102  	return nil
   103  }
   104  
   105  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   106  func (in *GameServerAllocationList) DeepCopyInto(out *GameServerAllocationList) {
   107  	*out = *in
   108  	out.TypeMeta = in.TypeMeta
   109  	in.ListMeta.DeepCopyInto(&out.ListMeta)
   110  	if in.Items != nil {
   111  		in, out := &in.Items, &out.Items
   112  		*out = make([]GameServerAllocation, len(*in))
   113  		for i := range *in {
   114  			(*in)[i].DeepCopyInto(&(*out)[i])
   115  		}
   116  	}
   117  	return
   118  }
   119  
   120  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GameServerAllocationList.
   121  func (in *GameServerAllocationList) DeepCopy() *GameServerAllocationList {
   122  	if in == nil {
   123  		return nil
   124  	}
   125  	out := new(GameServerAllocationList)
   126  	in.DeepCopyInto(out)
   127  	return out
   128  }
   129  
   130  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   131  func (in *GameServerAllocationList) DeepCopyObject() runtime.Object {
   132  	if c := in.DeepCopy(); c != nil {
   133  		return c
   134  	}
   135  	return nil
   136  }
   137  
   138  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   139  func (in *GameServerAllocationSpec) DeepCopyInto(out *GameServerAllocationSpec) {
   140  	*out = *in
   141  	in.MultiClusterSetting.DeepCopyInto(&out.MultiClusterSetting)
   142  	in.Required.DeepCopyInto(&out.Required)
   143  	if in.Preferred != nil {
   144  		in, out := &in.Preferred, &out.Preferred
   145  		*out = make([]GameServerSelector, len(*in))
   146  		for i := range *in {
   147  			(*in)[i].DeepCopyInto(&(*out)[i])
   148  		}
   149  	}
   150  	if in.Priorities != nil {
   151  		in, out := &in.Priorities, &out.Priorities
   152  		*out = make([]agonesv1.Priority, len(*in))
   153  		copy(*out, *in)
   154  	}
   155  	if in.Selectors != nil {
   156  		in, out := &in.Selectors, &out.Selectors
   157  		*out = make([]GameServerSelector, len(*in))
   158  		for i := range *in {
   159  			(*in)[i].DeepCopyInto(&(*out)[i])
   160  		}
   161  	}
   162  	in.MetaPatch.DeepCopyInto(&out.MetaPatch)
   163  	if in.Counters != nil {
   164  		in, out := &in.Counters, &out.Counters
   165  		*out = make(map[string]CounterAction, len(*in))
   166  		for key, val := range *in {
   167  			(*out)[key] = *val.DeepCopy()
   168  		}
   169  	}
   170  	if in.Lists != nil {
   171  		in, out := &in.Lists, &out.Lists
   172  		*out = make(map[string]ListAction, len(*in))
   173  		for key, val := range *in {
   174  			(*out)[key] = *val.DeepCopy()
   175  		}
   176  	}
   177  	return
   178  }
   179  
   180  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GameServerAllocationSpec.
   181  func (in *GameServerAllocationSpec) DeepCopy() *GameServerAllocationSpec {
   182  	if in == nil {
   183  		return nil
   184  	}
   185  	out := new(GameServerAllocationSpec)
   186  	in.DeepCopyInto(out)
   187  	return out
   188  }
   189  
   190  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   191  func (in *GameServerAllocationStatus) DeepCopyInto(out *GameServerAllocationStatus) {
   192  	*out = *in
   193  	if in.Ports != nil {
   194  		in, out := &in.Ports, &out.Ports
   195  		*out = make([]agonesv1.GameServerStatusPort, len(*in))
   196  		copy(*out, *in)
   197  	}
   198  	if in.Addresses != nil {
   199  		in, out := &in.Addresses, &out.Addresses
   200  		*out = make([]corev1.NodeAddress, len(*in))
   201  		copy(*out, *in)
   202  	}
   203  	if in.Metadata != nil {
   204  		in, out := &in.Metadata, &out.Metadata
   205  		*out = new(GameServerMetadata)
   206  		(*in).DeepCopyInto(*out)
   207  	}
   208  	if in.Counters != nil {
   209  		in, out := &in.Counters, &out.Counters
   210  		*out = make(map[string]agonesv1.CounterStatus, len(*in))
   211  		for key, val := range *in {
   212  			(*out)[key] = val
   213  		}
   214  	}
   215  	if in.Lists != nil {
   216  		in, out := &in.Lists, &out.Lists
   217  		*out = make(map[string]agonesv1.ListStatus, len(*in))
   218  		for key, val := range *in {
   219  			(*out)[key] = *val.DeepCopy()
   220  		}
   221  	}
   222  	return
   223  }
   224  
   225  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GameServerAllocationStatus.
   226  func (in *GameServerAllocationStatus) DeepCopy() *GameServerAllocationStatus {
   227  	if in == nil {
   228  		return nil
   229  	}
   230  	out := new(GameServerAllocationStatus)
   231  	in.DeepCopyInto(out)
   232  	return out
   233  }
   234  
   235  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   236  func (in *GameServerMetadata) DeepCopyInto(out *GameServerMetadata) {
   237  	*out = *in
   238  	if in.Labels != nil {
   239  		in, out := &in.Labels, &out.Labels
   240  		*out = make(map[string]string, len(*in))
   241  		for key, val := range *in {
   242  			(*out)[key] = val
   243  		}
   244  	}
   245  	if in.Annotations != nil {
   246  		in, out := &in.Annotations, &out.Annotations
   247  		*out = make(map[string]string, len(*in))
   248  		for key, val := range *in {
   249  			(*out)[key] = val
   250  		}
   251  	}
   252  	return
   253  }
   254  
   255  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GameServerMetadata.
   256  func (in *GameServerMetadata) DeepCopy() *GameServerMetadata {
   257  	if in == nil {
   258  		return nil
   259  	}
   260  	out := new(GameServerMetadata)
   261  	in.DeepCopyInto(out)
   262  	return out
   263  }
   264  
   265  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   266  func (in *GameServerSelector) DeepCopyInto(out *GameServerSelector) {
   267  	*out = *in
   268  	in.LabelSelector.DeepCopyInto(&out.LabelSelector)
   269  	if in.GameServerState != nil {
   270  		in, out := &in.GameServerState, &out.GameServerState
   271  		*out = new(agonesv1.GameServerState)
   272  		**out = **in
   273  	}
   274  	if in.Players != nil {
   275  		in, out := &in.Players, &out.Players
   276  		*out = new(PlayerSelector)
   277  		**out = **in
   278  	}
   279  	if in.Counters != nil {
   280  		in, out := &in.Counters, &out.Counters
   281  		*out = make(map[string]CounterSelector, len(*in))
   282  		for key, val := range *in {
   283  			(*out)[key] = val
   284  		}
   285  	}
   286  	if in.Lists != nil {
   287  		in, out := &in.Lists, &out.Lists
   288  		*out = make(map[string]ListSelector, len(*in))
   289  		for key, val := range *in {
   290  			(*out)[key] = val
   291  		}
   292  	}
   293  	return
   294  }
   295  
   296  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GameServerSelector.
   297  func (in *GameServerSelector) DeepCopy() *GameServerSelector {
   298  	if in == nil {
   299  		return nil
   300  	}
   301  	out := new(GameServerSelector)
   302  	in.DeepCopyInto(out)
   303  	return out
   304  }
   305  
   306  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   307  func (in *ListAction) DeepCopyInto(out *ListAction) {
   308  	*out = *in
   309  	if in.AddValues != nil {
   310  		in, out := &in.AddValues, &out.AddValues
   311  		*out = make([]string, len(*in))
   312  		copy(*out, *in)
   313  	}
   314  	if in.DeleteValues != nil {
   315  		in, out := &in.DeleteValues, &out.DeleteValues
   316  		*out = make([]string, len(*in))
   317  		copy(*out, *in)
   318  	}
   319  	if in.Capacity != nil {
   320  		in, out := &in.Capacity, &out.Capacity
   321  		*out = new(int64)
   322  		**out = **in
   323  	}
   324  	return
   325  }
   326  
   327  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ListAction.
   328  func (in *ListAction) DeepCopy() *ListAction {
   329  	if in == nil {
   330  		return nil
   331  	}
   332  	out := new(ListAction)
   333  	in.DeepCopyInto(out)
   334  	return out
   335  }
   336  
   337  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   338  func (in *ListSelector) DeepCopyInto(out *ListSelector) {
   339  	*out = *in
   340  	return
   341  }
   342  
   343  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ListSelector.
   344  func (in *ListSelector) DeepCopy() *ListSelector {
   345  	if in == nil {
   346  		return nil
   347  	}
   348  	out := new(ListSelector)
   349  	in.DeepCopyInto(out)
   350  	return out
   351  }
   352  
   353  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   354  func (in *MetaPatch) DeepCopyInto(out *MetaPatch) {
   355  	*out = *in
   356  	if in.Labels != nil {
   357  		in, out := &in.Labels, &out.Labels
   358  		*out = make(map[string]string, len(*in))
   359  		for key, val := range *in {
   360  			(*out)[key] = val
   361  		}
   362  	}
   363  	if in.Annotations != nil {
   364  		in, out := &in.Annotations, &out.Annotations
   365  		*out = make(map[string]string, len(*in))
   366  		for key, val := range *in {
   367  			(*out)[key] = val
   368  		}
   369  	}
   370  	return
   371  }
   372  
   373  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetaPatch.
   374  func (in *MetaPatch) DeepCopy() *MetaPatch {
   375  	if in == nil {
   376  		return nil
   377  	}
   378  	out := new(MetaPatch)
   379  	in.DeepCopyInto(out)
   380  	return out
   381  }
   382  
   383  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   384  func (in *MultiClusterSetting) DeepCopyInto(out *MultiClusterSetting) {
   385  	*out = *in
   386  	in.PolicySelector.DeepCopyInto(&out.PolicySelector)
   387  	return
   388  }
   389  
   390  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MultiClusterSetting.
   391  func (in *MultiClusterSetting) DeepCopy() *MultiClusterSetting {
   392  	if in == nil {
   393  		return nil
   394  	}
   395  	out := new(MultiClusterSetting)
   396  	in.DeepCopyInto(out)
   397  	return out
   398  }
   399  
   400  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   401  func (in *PlayerSelector) DeepCopyInto(out *PlayerSelector) {
   402  	*out = *in
   403  	return
   404  }
   405  
   406  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PlayerSelector.
   407  func (in *PlayerSelector) DeepCopy() *PlayerSelector {
   408  	if in == nil {
   409  		return nil
   410  	}
   411  	out := new(PlayerSelector)
   412  	in.DeepCopyInto(out)
   413  	return out
   414  }