github.com/datastax/go-cassandra-native-protocol@v0.0.0-20220706104457-5e8aad05cf90/frame/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 frame 21 22 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 23 func (in *Body) DeepCopyInto(out *Body) { 24 *out = *in 25 if in.TracingId != nil { 26 in, out := &in.TracingId, &out.TracingId 27 *out = (*in).DeepCopy() 28 } 29 if in.CustomPayload != nil { 30 in, out := &in.CustomPayload, &out.CustomPayload 31 *out = make(map[string][]byte, len(*in)) 32 for key, val := range *in { 33 var outVal []byte 34 if val == nil { 35 (*out)[key] = nil 36 } else { 37 in, out := &val, &outVal 38 *out = make([]byte, len(*in)) 39 copy(*out, *in) 40 } 41 (*out)[key] = outVal 42 } 43 } 44 if in.Warnings != nil { 45 in, out := &in.Warnings, &out.Warnings 46 *out = make([]string, len(*in)) 47 copy(*out, *in) 48 } 49 if in.Message != nil { 50 out.Message = in.Message.DeepCopyMessage() 51 } 52 return 53 } 54 55 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Body. 56 func (in *Body) DeepCopy() *Body { 57 if in == nil { 58 return nil 59 } 60 out := new(Body) 61 in.DeepCopyInto(out) 62 return out 63 } 64 65 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 66 func (in *Frame) DeepCopyInto(out *Frame) { 67 *out = *in 68 if in.Header != nil { 69 in, out := &in.Header, &out.Header 70 *out = new(Header) 71 **out = **in 72 } 73 if in.Body != nil { 74 in, out := &in.Body, &out.Body 75 *out = new(Body) 76 (*in).DeepCopyInto(*out) 77 } 78 return 79 } 80 81 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Frame. 82 func (in *Frame) DeepCopy() *Frame { 83 if in == nil { 84 return nil 85 } 86 out := new(Frame) 87 in.DeepCopyInto(out) 88 return out 89 } 90 91 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 92 func (in *Header) DeepCopyInto(out *Header) { 93 *out = *in 94 return 95 } 96 97 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Header. 98 func (in *Header) DeepCopy() *Header { 99 if in == nil { 100 return nil 101 } 102 out := new(Header) 103 in.DeepCopyInto(out) 104 return out 105 } 106 107 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 108 func (in *RawFrame) DeepCopyInto(out *RawFrame) { 109 *out = *in 110 if in.Header != nil { 111 in, out := &in.Header, &out.Header 112 *out = new(Header) 113 **out = **in 114 } 115 if in.Body != nil { 116 in, out := &in.Body, &out.Body 117 *out = make([]byte, len(*in)) 118 copy(*out, *in) 119 } 120 return 121 } 122 123 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RawFrame. 124 func (in *RawFrame) DeepCopy() *RawFrame { 125 if in == nil { 126 return nil 127 } 128 out := new(RawFrame) 129 in.DeepCopyInto(out) 130 return out 131 }