github.com/datastax/go-cassandra-native-protocol@v0.0.0-20220706104457-5e8aad05cf90/primitive/deepcopy_generated.go (about)

     1  //go:build !ignore_autogenerated
     2  // +build !ignore_autogenerated
     3  
     4  // Copyright 2022 DataStax
     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  // Code generated by deepcopy-gen. DO NOT EDIT.
    19  
    20  package primitive
    21  
    22  import (
    23  	net "net"
    24  )
    25  
    26  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    27  func (in *FailureReason) DeepCopyInto(out *FailureReason) {
    28  	*out = *in
    29  	if in.Endpoint != nil {
    30  		in, out := &in.Endpoint, &out.Endpoint
    31  		*out = make(net.IP, len(*in))
    32  		copy(*out, *in)
    33  	}
    34  	return
    35  }
    36  
    37  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FailureReason.
    38  func (in *FailureReason) DeepCopy() *FailureReason {
    39  	if in == nil {
    40  		return nil
    41  	}
    42  	out := new(FailureReason)
    43  	in.DeepCopyInto(out)
    44  	return out
    45  }
    46  
    47  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    48  func (in *Inet) DeepCopyInto(out *Inet) {
    49  	*out = *in
    50  	if in.Addr != nil {
    51  		in, out := &in.Addr, &out.Addr
    52  		*out = make(net.IP, len(*in))
    53  		copy(*out, *in)
    54  	}
    55  	return
    56  }
    57  
    58  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Inet.
    59  func (in *Inet) DeepCopy() *Inet {
    60  	if in == nil {
    61  		return nil
    62  	}
    63  	out := new(Inet)
    64  	in.DeepCopyInto(out)
    65  	return out
    66  }
    67  
    68  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    69  func (in *Value) DeepCopyInto(out *Value) {
    70  	*out = *in
    71  	if in.Contents != nil {
    72  		in, out := &in.Contents, &out.Contents
    73  		*out = make([]byte, len(*in))
    74  		copy(*out, *in)
    75  	}
    76  	return
    77  }
    78  
    79  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Value.
    80  func (in *Value) DeepCopy() *Value {
    81  	if in == nil {
    82  		return nil
    83  	}
    84  	out := new(Value)
    85  	in.DeepCopyInto(out)
    86  	return out
    87  }