github.com/datastax/go-cassandra-native-protocol@v0.0.0-20220706104457-5e8aad05cf90/segment/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 segment 21 22 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 23 func (in *Header) DeepCopyInto(out *Header) { 24 *out = *in 25 return 26 } 27 28 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Header. 29 func (in *Header) DeepCopy() *Header { 30 if in == nil { 31 return nil 32 } 33 out := new(Header) 34 in.DeepCopyInto(out) 35 return out 36 } 37 38 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 39 func (in *Payload) DeepCopyInto(out *Payload) { 40 *out = *in 41 if in.UncompressedData != nil { 42 in, out := &in.UncompressedData, &out.UncompressedData 43 *out = make([]byte, len(*in)) 44 copy(*out, *in) 45 } 46 return 47 } 48 49 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Payload. 50 func (in *Payload) DeepCopy() *Payload { 51 if in == nil { 52 return nil 53 } 54 out := new(Payload) 55 in.DeepCopyInto(out) 56 return out 57 } 58 59 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 60 func (in *Segment) DeepCopyInto(out *Segment) { 61 *out = *in 62 if in.Header != nil { 63 in, out := &in.Header, &out.Header 64 *out = new(Header) 65 **out = **in 66 } 67 if in.Payload != nil { 68 in, out := &in.Payload, &out.Payload 69 *out = new(Payload) 70 (*in).DeepCopyInto(*out) 71 } 72 return 73 } 74 75 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Segment. 76 func (in *Segment) DeepCopy() *Segment { 77 if in == nil { 78 return nil 79 } 80 out := new(Segment) 81 in.DeepCopyInto(out) 82 return out 83 }