github.com/datastax/go-cassandra-native-protocol@v0.0.0-20220706104457-5e8aad05cf90/datatype/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 datatype 21 22 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 23 func (in *Custom) DeepCopyInto(out *Custom) { 24 *out = *in 25 return 26 } 27 28 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Custom. 29 func (in *Custom) DeepCopy() *Custom { 30 if in == nil { 31 return nil 32 } 33 out := new(Custom) 34 in.DeepCopyInto(out) 35 return out 36 } 37 38 // DeepCopyDataType is an autogenerated deepcopy function, copying the receiver, creating a new DataType. 39 func (in *Custom) DeepCopyDataType() DataType { 40 if c := in.DeepCopy(); c != nil { 41 return c 42 } 43 return nil 44 } 45 46 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 47 func (in *List) DeepCopyInto(out *List) { 48 *out = *in 49 if in.ElementType != nil { 50 out.ElementType = in.ElementType.DeepCopyDataType() 51 } 52 return 53 } 54 55 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new List. 56 func (in *List) DeepCopy() *List { 57 if in == nil { 58 return nil 59 } 60 out := new(List) 61 in.DeepCopyInto(out) 62 return out 63 } 64 65 // DeepCopyDataType is an autogenerated deepcopy function, copying the receiver, creating a new DataType. 66 func (in *List) DeepCopyDataType() DataType { 67 if c := in.DeepCopy(); c != nil { 68 return c 69 } 70 return nil 71 } 72 73 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 74 func (in *Map) DeepCopyInto(out *Map) { 75 *out = *in 76 if in.KeyType != nil { 77 out.KeyType = in.KeyType.DeepCopyDataType() 78 } 79 if in.ValueType != nil { 80 out.ValueType = in.ValueType.DeepCopyDataType() 81 } 82 return 83 } 84 85 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Map. 86 func (in *Map) DeepCopy() *Map { 87 if in == nil { 88 return nil 89 } 90 out := new(Map) 91 in.DeepCopyInto(out) 92 return out 93 } 94 95 // DeepCopyDataType is an autogenerated deepcopy function, copying the receiver, creating a new DataType. 96 func (in *Map) DeepCopyDataType() DataType { 97 if c := in.DeepCopy(); c != nil { 98 return c 99 } 100 return nil 101 } 102 103 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 104 func (in *PrimitiveType) DeepCopyInto(out *PrimitiveType) { 105 *out = *in 106 return 107 } 108 109 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrimitiveType. 110 func (in *PrimitiveType) DeepCopy() *PrimitiveType { 111 if in == nil { 112 return nil 113 } 114 out := new(PrimitiveType) 115 in.DeepCopyInto(out) 116 return out 117 } 118 119 // DeepCopyDataType is an autogenerated deepcopy function, copying the receiver, creating a new DataType. 120 func (in *PrimitiveType) DeepCopyDataType() DataType { 121 if c := in.DeepCopy(); c != nil { 122 return c 123 } 124 return nil 125 } 126 127 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 128 func (in *Set) DeepCopyInto(out *Set) { 129 *out = *in 130 if in.ElementType != nil { 131 out.ElementType = in.ElementType.DeepCopyDataType() 132 } 133 return 134 } 135 136 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Set. 137 func (in *Set) DeepCopy() *Set { 138 if in == nil { 139 return nil 140 } 141 out := new(Set) 142 in.DeepCopyInto(out) 143 return out 144 } 145 146 // DeepCopyDataType is an autogenerated deepcopy function, copying the receiver, creating a new DataType. 147 func (in *Set) DeepCopyDataType() DataType { 148 if c := in.DeepCopy(); c != nil { 149 return c 150 } 151 return nil 152 } 153 154 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 155 func (in *Tuple) DeepCopyInto(out *Tuple) { 156 *out = *in 157 if in.FieldTypes != nil { 158 in, out := &in.FieldTypes, &out.FieldTypes 159 *out = make([]DataType, len(*in)) 160 for i := range *in { 161 if (*in)[i] != nil { 162 (*out)[i] = (*in)[i].DeepCopyDataType() 163 } 164 } 165 } 166 return 167 } 168 169 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Tuple. 170 func (in *Tuple) DeepCopy() *Tuple { 171 if in == nil { 172 return nil 173 } 174 out := new(Tuple) 175 in.DeepCopyInto(out) 176 return out 177 } 178 179 // DeepCopyDataType is an autogenerated deepcopy function, copying the receiver, creating a new DataType. 180 func (in *Tuple) DeepCopyDataType() DataType { 181 if c := in.DeepCopy(); c != nil { 182 return c 183 } 184 return nil 185 } 186 187 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. 188 func (in *UserDefined) DeepCopyInto(out *UserDefined) { 189 *out = *in 190 if in.FieldNames != nil { 191 in, out := &in.FieldNames, &out.FieldNames 192 *out = make([]string, len(*in)) 193 copy(*out, *in) 194 } 195 if in.FieldTypes != nil { 196 in, out := &in.FieldTypes, &out.FieldTypes 197 *out = make([]DataType, len(*in)) 198 for i := range *in { 199 if (*in)[i] != nil { 200 (*out)[i] = (*in)[i].DeepCopyDataType() 201 } 202 } 203 } 204 return 205 } 206 207 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserDefined. 208 func (in *UserDefined) DeepCopy() *UserDefined { 209 if in == nil { 210 return nil 211 } 212 out := new(UserDefined) 213 in.DeepCopyInto(out) 214 return out 215 } 216 217 // DeepCopyDataType is an autogenerated deepcopy function, copying the receiver, creating a new DataType. 218 func (in *UserDefined) DeepCopyDataType() DataType { 219 if c := in.DeepCopy(); c != nil { 220 return c 221 } 222 return nil 223 }