Matteo Scandolo | a428586 | 2020-12-01 18:10:10 -0800 | [diff] [blame^] | 1 | /* |
| 2 | Copyright The Kubernetes Authors. |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | // Code generated by protoc-gen-gogo. DO NOT EDIT. |
| 18 | // source: k8s.io/kubernetes/vendor/k8s.io/api/storage/v1alpha1/generated.proto |
| 19 | |
| 20 | package v1alpha1 |
| 21 | |
| 22 | import ( |
| 23 | fmt "fmt" |
| 24 | |
| 25 | io "io" |
| 26 | |
| 27 | proto "github.com/gogo/protobuf/proto" |
| 28 | github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" |
| 29 | v11 "k8s.io/api/core/v1" |
| 30 | resource "k8s.io/apimachinery/pkg/api/resource" |
| 31 | v1 "k8s.io/apimachinery/pkg/apis/meta/v1" |
| 32 | |
| 33 | math "math" |
| 34 | math_bits "math/bits" |
| 35 | reflect "reflect" |
| 36 | strings "strings" |
| 37 | ) |
| 38 | |
| 39 | // Reference imports to suppress errors if they are not otherwise used. |
| 40 | var _ = proto.Marshal |
| 41 | var _ = fmt.Errorf |
| 42 | var _ = math.Inf |
| 43 | |
| 44 | // This is a compile-time assertion to ensure that this generated file |
| 45 | // is compatible with the proto package it is being compiled against. |
| 46 | // A compilation error at this line likely means your copy of the |
| 47 | // proto package needs to be updated. |
| 48 | const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package |
| 49 | |
| 50 | func (m *CSIStorageCapacity) Reset() { *m = CSIStorageCapacity{} } |
| 51 | func (*CSIStorageCapacity) ProtoMessage() {} |
| 52 | func (*CSIStorageCapacity) Descriptor() ([]byte, []int) { |
| 53 | return fileDescriptor_10f856db1e670dc4, []int{0} |
| 54 | } |
| 55 | func (m *CSIStorageCapacity) XXX_Unmarshal(b []byte) error { |
| 56 | return m.Unmarshal(b) |
| 57 | } |
| 58 | func (m *CSIStorageCapacity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 59 | b = b[:cap(b)] |
| 60 | n, err := m.MarshalToSizedBuffer(b) |
| 61 | if err != nil { |
| 62 | return nil, err |
| 63 | } |
| 64 | return b[:n], nil |
| 65 | } |
| 66 | func (m *CSIStorageCapacity) XXX_Merge(src proto.Message) { |
| 67 | xxx_messageInfo_CSIStorageCapacity.Merge(m, src) |
| 68 | } |
| 69 | func (m *CSIStorageCapacity) XXX_Size() int { |
| 70 | return m.Size() |
| 71 | } |
| 72 | func (m *CSIStorageCapacity) XXX_DiscardUnknown() { |
| 73 | xxx_messageInfo_CSIStorageCapacity.DiscardUnknown(m) |
| 74 | } |
| 75 | |
| 76 | var xxx_messageInfo_CSIStorageCapacity proto.InternalMessageInfo |
| 77 | |
| 78 | func (m *CSIStorageCapacityList) Reset() { *m = CSIStorageCapacityList{} } |
| 79 | func (*CSIStorageCapacityList) ProtoMessage() {} |
| 80 | func (*CSIStorageCapacityList) Descriptor() ([]byte, []int) { |
| 81 | return fileDescriptor_10f856db1e670dc4, []int{1} |
| 82 | } |
| 83 | func (m *CSIStorageCapacityList) XXX_Unmarshal(b []byte) error { |
| 84 | return m.Unmarshal(b) |
| 85 | } |
| 86 | func (m *CSIStorageCapacityList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 87 | b = b[:cap(b)] |
| 88 | n, err := m.MarshalToSizedBuffer(b) |
| 89 | if err != nil { |
| 90 | return nil, err |
| 91 | } |
| 92 | return b[:n], nil |
| 93 | } |
| 94 | func (m *CSIStorageCapacityList) XXX_Merge(src proto.Message) { |
| 95 | xxx_messageInfo_CSIStorageCapacityList.Merge(m, src) |
| 96 | } |
| 97 | func (m *CSIStorageCapacityList) XXX_Size() int { |
| 98 | return m.Size() |
| 99 | } |
| 100 | func (m *CSIStorageCapacityList) XXX_DiscardUnknown() { |
| 101 | xxx_messageInfo_CSIStorageCapacityList.DiscardUnknown(m) |
| 102 | } |
| 103 | |
| 104 | var xxx_messageInfo_CSIStorageCapacityList proto.InternalMessageInfo |
| 105 | |
| 106 | func (m *VolumeAttachment) Reset() { *m = VolumeAttachment{} } |
| 107 | func (*VolumeAttachment) ProtoMessage() {} |
| 108 | func (*VolumeAttachment) Descriptor() ([]byte, []int) { |
| 109 | return fileDescriptor_10f856db1e670dc4, []int{2} |
| 110 | } |
| 111 | func (m *VolumeAttachment) XXX_Unmarshal(b []byte) error { |
| 112 | return m.Unmarshal(b) |
| 113 | } |
| 114 | func (m *VolumeAttachment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 115 | b = b[:cap(b)] |
| 116 | n, err := m.MarshalToSizedBuffer(b) |
| 117 | if err != nil { |
| 118 | return nil, err |
| 119 | } |
| 120 | return b[:n], nil |
| 121 | } |
| 122 | func (m *VolumeAttachment) XXX_Merge(src proto.Message) { |
| 123 | xxx_messageInfo_VolumeAttachment.Merge(m, src) |
| 124 | } |
| 125 | func (m *VolumeAttachment) XXX_Size() int { |
| 126 | return m.Size() |
| 127 | } |
| 128 | func (m *VolumeAttachment) XXX_DiscardUnknown() { |
| 129 | xxx_messageInfo_VolumeAttachment.DiscardUnknown(m) |
| 130 | } |
| 131 | |
| 132 | var xxx_messageInfo_VolumeAttachment proto.InternalMessageInfo |
| 133 | |
| 134 | func (m *VolumeAttachmentList) Reset() { *m = VolumeAttachmentList{} } |
| 135 | func (*VolumeAttachmentList) ProtoMessage() {} |
| 136 | func (*VolumeAttachmentList) Descriptor() ([]byte, []int) { |
| 137 | return fileDescriptor_10f856db1e670dc4, []int{3} |
| 138 | } |
| 139 | func (m *VolumeAttachmentList) XXX_Unmarshal(b []byte) error { |
| 140 | return m.Unmarshal(b) |
| 141 | } |
| 142 | func (m *VolumeAttachmentList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 143 | b = b[:cap(b)] |
| 144 | n, err := m.MarshalToSizedBuffer(b) |
| 145 | if err != nil { |
| 146 | return nil, err |
| 147 | } |
| 148 | return b[:n], nil |
| 149 | } |
| 150 | func (m *VolumeAttachmentList) XXX_Merge(src proto.Message) { |
| 151 | xxx_messageInfo_VolumeAttachmentList.Merge(m, src) |
| 152 | } |
| 153 | func (m *VolumeAttachmentList) XXX_Size() int { |
| 154 | return m.Size() |
| 155 | } |
| 156 | func (m *VolumeAttachmentList) XXX_DiscardUnknown() { |
| 157 | xxx_messageInfo_VolumeAttachmentList.DiscardUnknown(m) |
| 158 | } |
| 159 | |
| 160 | var xxx_messageInfo_VolumeAttachmentList proto.InternalMessageInfo |
| 161 | |
| 162 | func (m *VolumeAttachmentSource) Reset() { *m = VolumeAttachmentSource{} } |
| 163 | func (*VolumeAttachmentSource) ProtoMessage() {} |
| 164 | func (*VolumeAttachmentSource) Descriptor() ([]byte, []int) { |
| 165 | return fileDescriptor_10f856db1e670dc4, []int{4} |
| 166 | } |
| 167 | func (m *VolumeAttachmentSource) XXX_Unmarshal(b []byte) error { |
| 168 | return m.Unmarshal(b) |
| 169 | } |
| 170 | func (m *VolumeAttachmentSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 171 | b = b[:cap(b)] |
| 172 | n, err := m.MarshalToSizedBuffer(b) |
| 173 | if err != nil { |
| 174 | return nil, err |
| 175 | } |
| 176 | return b[:n], nil |
| 177 | } |
| 178 | func (m *VolumeAttachmentSource) XXX_Merge(src proto.Message) { |
| 179 | xxx_messageInfo_VolumeAttachmentSource.Merge(m, src) |
| 180 | } |
| 181 | func (m *VolumeAttachmentSource) XXX_Size() int { |
| 182 | return m.Size() |
| 183 | } |
| 184 | func (m *VolumeAttachmentSource) XXX_DiscardUnknown() { |
| 185 | xxx_messageInfo_VolumeAttachmentSource.DiscardUnknown(m) |
| 186 | } |
| 187 | |
| 188 | var xxx_messageInfo_VolumeAttachmentSource proto.InternalMessageInfo |
| 189 | |
| 190 | func (m *VolumeAttachmentSpec) Reset() { *m = VolumeAttachmentSpec{} } |
| 191 | func (*VolumeAttachmentSpec) ProtoMessage() {} |
| 192 | func (*VolumeAttachmentSpec) Descriptor() ([]byte, []int) { |
| 193 | return fileDescriptor_10f856db1e670dc4, []int{5} |
| 194 | } |
| 195 | func (m *VolumeAttachmentSpec) XXX_Unmarshal(b []byte) error { |
| 196 | return m.Unmarshal(b) |
| 197 | } |
| 198 | func (m *VolumeAttachmentSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 199 | b = b[:cap(b)] |
| 200 | n, err := m.MarshalToSizedBuffer(b) |
| 201 | if err != nil { |
| 202 | return nil, err |
| 203 | } |
| 204 | return b[:n], nil |
| 205 | } |
| 206 | func (m *VolumeAttachmentSpec) XXX_Merge(src proto.Message) { |
| 207 | xxx_messageInfo_VolumeAttachmentSpec.Merge(m, src) |
| 208 | } |
| 209 | func (m *VolumeAttachmentSpec) XXX_Size() int { |
| 210 | return m.Size() |
| 211 | } |
| 212 | func (m *VolumeAttachmentSpec) XXX_DiscardUnknown() { |
| 213 | xxx_messageInfo_VolumeAttachmentSpec.DiscardUnknown(m) |
| 214 | } |
| 215 | |
| 216 | var xxx_messageInfo_VolumeAttachmentSpec proto.InternalMessageInfo |
| 217 | |
| 218 | func (m *VolumeAttachmentStatus) Reset() { *m = VolumeAttachmentStatus{} } |
| 219 | func (*VolumeAttachmentStatus) ProtoMessage() {} |
| 220 | func (*VolumeAttachmentStatus) Descriptor() ([]byte, []int) { |
| 221 | return fileDescriptor_10f856db1e670dc4, []int{6} |
| 222 | } |
| 223 | func (m *VolumeAttachmentStatus) XXX_Unmarshal(b []byte) error { |
| 224 | return m.Unmarshal(b) |
| 225 | } |
| 226 | func (m *VolumeAttachmentStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 227 | b = b[:cap(b)] |
| 228 | n, err := m.MarshalToSizedBuffer(b) |
| 229 | if err != nil { |
| 230 | return nil, err |
| 231 | } |
| 232 | return b[:n], nil |
| 233 | } |
| 234 | func (m *VolumeAttachmentStatus) XXX_Merge(src proto.Message) { |
| 235 | xxx_messageInfo_VolumeAttachmentStatus.Merge(m, src) |
| 236 | } |
| 237 | func (m *VolumeAttachmentStatus) XXX_Size() int { |
| 238 | return m.Size() |
| 239 | } |
| 240 | func (m *VolumeAttachmentStatus) XXX_DiscardUnknown() { |
| 241 | xxx_messageInfo_VolumeAttachmentStatus.DiscardUnknown(m) |
| 242 | } |
| 243 | |
| 244 | var xxx_messageInfo_VolumeAttachmentStatus proto.InternalMessageInfo |
| 245 | |
| 246 | func (m *VolumeError) Reset() { *m = VolumeError{} } |
| 247 | func (*VolumeError) ProtoMessage() {} |
| 248 | func (*VolumeError) Descriptor() ([]byte, []int) { |
| 249 | return fileDescriptor_10f856db1e670dc4, []int{7} |
| 250 | } |
| 251 | func (m *VolumeError) XXX_Unmarshal(b []byte) error { |
| 252 | return m.Unmarshal(b) |
| 253 | } |
| 254 | func (m *VolumeError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 255 | b = b[:cap(b)] |
| 256 | n, err := m.MarshalToSizedBuffer(b) |
| 257 | if err != nil { |
| 258 | return nil, err |
| 259 | } |
| 260 | return b[:n], nil |
| 261 | } |
| 262 | func (m *VolumeError) XXX_Merge(src proto.Message) { |
| 263 | xxx_messageInfo_VolumeError.Merge(m, src) |
| 264 | } |
| 265 | func (m *VolumeError) XXX_Size() int { |
| 266 | return m.Size() |
| 267 | } |
| 268 | func (m *VolumeError) XXX_DiscardUnknown() { |
| 269 | xxx_messageInfo_VolumeError.DiscardUnknown(m) |
| 270 | } |
| 271 | |
| 272 | var xxx_messageInfo_VolumeError proto.InternalMessageInfo |
| 273 | |
| 274 | func init() { |
| 275 | proto.RegisterType((*CSIStorageCapacity)(nil), "k8s.io.api.storage.v1alpha1.CSIStorageCapacity") |
| 276 | proto.RegisterType((*CSIStorageCapacityList)(nil), "k8s.io.api.storage.v1alpha1.CSIStorageCapacityList") |
| 277 | proto.RegisterType((*VolumeAttachment)(nil), "k8s.io.api.storage.v1alpha1.VolumeAttachment") |
| 278 | proto.RegisterType((*VolumeAttachmentList)(nil), "k8s.io.api.storage.v1alpha1.VolumeAttachmentList") |
| 279 | proto.RegisterType((*VolumeAttachmentSource)(nil), "k8s.io.api.storage.v1alpha1.VolumeAttachmentSource") |
| 280 | proto.RegisterType((*VolumeAttachmentSpec)(nil), "k8s.io.api.storage.v1alpha1.VolumeAttachmentSpec") |
| 281 | proto.RegisterType((*VolumeAttachmentStatus)(nil), "k8s.io.api.storage.v1alpha1.VolumeAttachmentStatus") |
| 282 | proto.RegisterMapType((map[string]string)(nil), "k8s.io.api.storage.v1alpha1.VolumeAttachmentStatus.AttachmentMetadataEntry") |
| 283 | proto.RegisterType((*VolumeError)(nil), "k8s.io.api.storage.v1alpha1.VolumeError") |
| 284 | } |
| 285 | |
| 286 | func init() { |
| 287 | proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/storage/v1alpha1/generated.proto", fileDescriptor_10f856db1e670dc4) |
| 288 | } |
| 289 | |
| 290 | var fileDescriptor_10f856db1e670dc4 = []byte{ |
| 291 | // 895 bytes of a gzipped FileDescriptorProto |
| 292 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x56, 0x4f, 0x6f, 0xe3, 0x44, |
| 293 | 0x14, 0x8f, 0x9b, 0x74, 0x37, 0x3b, 0x29, 0x10, 0x8d, 0xa2, 0x25, 0x0a, 0x92, 0x53, 0xe5, 0x14, |
| 294 | 0x10, 0x3b, 0xa6, 0x0b, 0x42, 0x2b, 0x6e, 0x75, 0xdb, 0x43, 0x45, 0x5b, 0x60, 0x52, 0x21, 0x04, |
| 295 | 0x1c, 0x98, 0x38, 0x0f, 0xc7, 0x4d, 0xfc, 0x47, 0x33, 0xe3, 0x4a, 0xb9, 0xc1, 0x85, 0x33, 0x37, |
| 296 | 0xbe, 0x01, 0x9f, 0xa5, 0x07, 0x24, 0x56, 0x9c, 0xf6, 0x14, 0x51, 0xf3, 0x2d, 0xb8, 0x80, 0x3c, |
| 297 | 0x9e, 0x38, 0x6e, 0x9c, 0x74, 0xb3, 0x7b, 0xd8, 0x9b, 0xe7, 0xcd, 0x7b, 0xbf, 0xdf, 0xfb, 0xf3, |
| 298 | 0x9b, 0x27, 0xa3, 0xe3, 0xc9, 0x33, 0x41, 0xbc, 0xd0, 0x9a, 0xc4, 0x43, 0xe0, 0x01, 0x48, 0x10, |
| 299 | 0xd6, 0x35, 0x04, 0xa3, 0x90, 0x5b, 0xfa, 0x82, 0x45, 0x9e, 0x25, 0x64, 0xc8, 0x99, 0x0b, 0xd6, |
| 300 | 0xf5, 0x01, 0x9b, 0x46, 0x63, 0x76, 0x60, 0xb9, 0x10, 0x00, 0x67, 0x12, 0x46, 0x24, 0xe2, 0xa1, |
| 301 | 0x0c, 0xf1, 0x7b, 0x99, 0x33, 0x61, 0x91, 0x47, 0xb4, 0x33, 0x59, 0x38, 0x77, 0x9e, 0xb8, 0x9e, |
| 302 | 0x1c, 0xc7, 0x43, 0xe2, 0x84, 0xbe, 0xe5, 0x86, 0x6e, 0x68, 0xa9, 0x98, 0x61, 0xfc, 0xa3, 0x3a, |
| 303 | 0xa9, 0x83, 0xfa, 0xca, 0xb0, 0x3a, 0xbd, 0x02, 0xb1, 0x13, 0xf2, 0x94, 0x75, 0x95, 0xaf, 0xf3, |
| 304 | 0xc9, 0xd2, 0xc7, 0x67, 0xce, 0xd8, 0x0b, 0x80, 0xcf, 0xac, 0x68, 0xe2, 0xaa, 0x20, 0x0e, 0x22, |
| 305 | 0x8c, 0xb9, 0x03, 0xaf, 0x14, 0x25, 0x2c, 0x1f, 0x24, 0x5b, 0xc7, 0x65, 0x6d, 0x8a, 0xe2, 0x71, |
| 306 | 0x20, 0x3d, 0xbf, 0x4c, 0xf3, 0xe9, 0xcb, 0x02, 0x84, 0x33, 0x06, 0x9f, 0xad, 0xc6, 0xf5, 0x7e, |
| 307 | 0xae, 0x22, 0x7c, 0x34, 0x38, 0x1d, 0x64, 0xfd, 0x3b, 0x62, 0x11, 0x73, 0x3c, 0x39, 0xc3, 0x3f, |
| 308 | 0xa0, 0x7a, 0x9a, 0xda, 0x88, 0x49, 0xd6, 0x36, 0xf6, 0x8d, 0x7e, 0xe3, 0xe9, 0x47, 0x64, 0xd9, |
| 309 | 0xee, 0x9c, 0x81, 0x44, 0x13, 0x37, 0x35, 0x08, 0x92, 0x7a, 0x93, 0xeb, 0x03, 0xf2, 0xc5, 0xf0, |
| 310 | 0x0a, 0x1c, 0x79, 0x0e, 0x92, 0xd9, 0xf8, 0x66, 0xde, 0xad, 0x24, 0xf3, 0x2e, 0x5a, 0xda, 0x68, |
| 311 | 0x8e, 0x8a, 0x3d, 0xb4, 0x17, 0x84, 0x23, 0xb8, 0x0c, 0xa3, 0x70, 0x1a, 0xba, 0xb3, 0xf6, 0x8e, |
| 312 | 0x62, 0xf9, 0x78, 0x3b, 0x96, 0x33, 0x36, 0x84, 0xe9, 0x00, 0xa6, 0xe0, 0xc8, 0x90, 0xdb, 0xcd, |
| 313 | 0x64, 0xde, 0xdd, 0xbb, 0x28, 0x80, 0xd1, 0x3b, 0xd0, 0xf8, 0x18, 0x35, 0xb5, 0x3e, 0x8e, 0xa6, |
| 314 | 0x4c, 0x88, 0x0b, 0xe6, 0x43, 0xbb, 0xba, 0x6f, 0xf4, 0x1f, 0xd9, 0x6d, 0x9d, 0x62, 0x73, 0xb0, |
| 315 | 0x72, 0x4f, 0x4b, 0x11, 0xf8, 0x1b, 0x54, 0x77, 0x74, 0x7b, 0xda, 0x35, 0x95, 0x2c, 0xb9, 0x2f, |
| 316 | 0x59, 0xb2, 0x50, 0x04, 0xf9, 0x2a, 0x66, 0x81, 0xf4, 0xe4, 0xcc, 0xde, 0x4b, 0xe6, 0xdd, 0xfa, |
| 317 | 0xa2, 0xc5, 0x34, 0x47, 0xeb, 0xfd, 0x61, 0xa0, 0xc7, 0xe5, 0x19, 0x9c, 0x79, 0x42, 0xe2, 0xef, |
| 318 | 0x4b, 0x73, 0x20, 0x5b, 0x76, 0xc8, 0x13, 0xd9, 0x14, 0x9a, 0xba, 0xc4, 0xfa, 0xc2, 0x52, 0x98, |
| 319 | 0xc1, 0x25, 0xda, 0xf5, 0x24, 0xf8, 0xa2, 0xbd, 0xb3, 0x5f, 0xed, 0x37, 0x9e, 0x5a, 0xe4, 0x9e, |
| 320 | 0x17, 0x45, 0xca, 0x19, 0xda, 0x6f, 0x69, 0xec, 0xdd, 0xd3, 0x14, 0x85, 0x66, 0x60, 0xbd, 0xdf, |
| 321 | 0x77, 0x50, 0xf3, 0xeb, 0x70, 0x1a, 0xfb, 0x70, 0x28, 0x25, 0x73, 0xc6, 0x3e, 0x04, 0xf2, 0x0d, |
| 322 | 0x08, 0x6a, 0x80, 0x6a, 0x22, 0x02, 0x47, 0x0b, 0xe9, 0xe0, 0xde, 0x5a, 0x56, 0xd3, 0x1b, 0x44, |
| 323 | 0xe0, 0xd8, 0x7b, 0x1a, 0xbe, 0x96, 0x9e, 0xa8, 0x02, 0xc3, 0xdf, 0xa1, 0x07, 0x42, 0x32, 0x19, |
| 324 | 0x0b, 0x25, 0x98, 0xbb, 0xfa, 0xdc, 0x02, 0x56, 0x85, 0xda, 0x6f, 0x6b, 0xe0, 0x07, 0xd9, 0x99, |
| 325 | 0x6a, 0xc8, 0xde, 0x8d, 0x81, 0x5a, 0xab, 0x21, 0x6f, 0x60, 0xea, 0xf4, 0xee, 0xd4, 0x9f, 0xbc, |
| 326 | 0x52, 0x49, 0x1b, 0x66, 0xfe, 0x97, 0x81, 0x1e, 0x97, 0xaa, 0x57, 0xf2, 0xc7, 0x67, 0xa8, 0x15, |
| 327 | 0x01, 0x17, 0x9e, 0x90, 0x10, 0xc8, 0xcc, 0x47, 0xbd, 0x40, 0x23, 0x7b, 0x81, 0xc9, 0xbc, 0xdb, |
| 328 | 0xfa, 0x72, 0xcd, 0x3d, 0x5d, 0x1b, 0x85, 0xaf, 0x50, 0xd3, 0x0b, 0xa6, 0x5e, 0x00, 0x99, 0x6d, |
| 329 | 0xb0, 0x9c, 0x78, 0xbf, 0x58, 0x47, 0xba, 0xc3, 0xd3, 0x86, 0xac, 0x22, 0xab, 0x41, 0xb7, 0xd2, |
| 330 | 0x17, 0x7f, 0xba, 0x82, 0x42, 0x4b, 0xb8, 0xbd, 0x3f, 0xd7, 0xcc, 0x27, 0xbd, 0xc0, 0x1f, 0xa2, |
| 331 | 0x3a, 0x53, 0x16, 0xe0, 0xba, 0x8c, 0xbc, 0xdf, 0x87, 0xda, 0x4e, 0x73, 0x0f, 0xa5, 0x21, 0xd5, |
| 332 | 0x8a, 0x35, 0x3b, 0x6e, 0x0b, 0x0d, 0xa9, 0xd0, 0x82, 0x86, 0xd4, 0x99, 0x6a, 0xc8, 0x34, 0x95, |
| 333 | 0x74, 0xd7, 0x15, 0x76, 0x5a, 0x9e, 0xca, 0x85, 0xb6, 0xd3, 0xdc, 0xa3, 0xf7, 0x5f, 0x75, 0xcd, |
| 334 | 0x98, 0x94, 0x18, 0x0b, 0x35, 0x8d, 0x54, 0x4d, 0xf5, 0x52, 0x4d, 0xa3, 0xbc, 0xa6, 0x11, 0xfe, |
| 335 | 0xcd, 0x40, 0x98, 0xe5, 0x10, 0xe7, 0x0b, 0xb1, 0x66, 0x8a, 0xfa, 0xfc, 0x35, 0x1e, 0x09, 0x39, |
| 336 | 0x2c, 0xa1, 0x9d, 0x04, 0x92, 0xcf, 0xec, 0x8e, 0xce, 0x02, 0x97, 0x1d, 0xe8, 0x9a, 0x14, 0xf0, |
| 337 | 0x15, 0x6a, 0x64, 0xd6, 0x13, 0xce, 0x43, 0xae, 0x9f, 0x6d, 0x7f, 0x8b, 0x8c, 0x94, 0xbf, 0x6d, |
| 338 | 0x26, 0xf3, 0x6e, 0xe3, 0x70, 0x09, 0xf0, 0xef, 0xbc, 0xdb, 0x28, 0xdc, 0xd3, 0x22, 0x78, 0xca, |
| 339 | 0x35, 0x82, 0x25, 0x57, 0xed, 0x75, 0xb8, 0x8e, 0x61, 0x33, 0x57, 0x01, 0xbc, 0x73, 0x82, 0xde, |
| 340 | 0xdd, 0xd0, 0x22, 0xdc, 0x44, 0xd5, 0x09, 0xcc, 0x32, 0x25, 0xd2, 0xf4, 0x13, 0xb7, 0xd0, 0xee, |
| 341 | 0x35, 0x9b, 0xc6, 0x99, 0xe2, 0x1e, 0xd1, 0xec, 0xf0, 0xd9, 0xce, 0x33, 0xa3, 0xf7, 0x8b, 0x81, |
| 342 | 0x8a, 0x1c, 0xf8, 0x0c, 0xd5, 0xd2, 0xdf, 0x03, 0xbd, 0x66, 0x3e, 0xd8, 0x6e, 0xcd, 0x5c, 0x7a, |
| 343 | 0x3e, 0x2c, 0xd7, 0x65, 0x7a, 0xa2, 0x0a, 0x05, 0xbf, 0x8f, 0x1e, 0xfa, 0x20, 0x04, 0x73, 0x35, |
| 344 | 0xb3, 0xfd, 0x8e, 0x76, 0x7a, 0x78, 0x9e, 0x99, 0xe9, 0xe2, 0xde, 0x26, 0x37, 0xb7, 0x66, 0xe5, |
| 345 | 0xf9, 0xad, 0x59, 0x79, 0x71, 0x6b, 0x56, 0x7e, 0x4a, 0x4c, 0xe3, 0x26, 0x31, 0x8d, 0xe7, 0x89, |
| 346 | 0x69, 0xbc, 0x48, 0x4c, 0xe3, 0xef, 0xc4, 0x34, 0x7e, 0xfd, 0xc7, 0xac, 0x7c, 0x5b, 0x5f, 0x34, |
| 347 | 0xee, 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, 0x6e, 0xb9, 0x9d, 0xb3, 0x34, 0x0a, 0x00, 0x00, |
| 348 | } |
| 349 | |
| 350 | func (m *CSIStorageCapacity) Marshal() (dAtA []byte, err error) { |
| 351 | size := m.Size() |
| 352 | dAtA = make([]byte, size) |
| 353 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 354 | if err != nil { |
| 355 | return nil, err |
| 356 | } |
| 357 | return dAtA[:n], nil |
| 358 | } |
| 359 | |
| 360 | func (m *CSIStorageCapacity) MarshalTo(dAtA []byte) (int, error) { |
| 361 | size := m.Size() |
| 362 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 363 | } |
| 364 | |
| 365 | func (m *CSIStorageCapacity) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 366 | i := len(dAtA) |
| 367 | _ = i |
| 368 | var l int |
| 369 | _ = l |
| 370 | if m.Capacity != nil { |
| 371 | { |
| 372 | size, err := m.Capacity.MarshalToSizedBuffer(dAtA[:i]) |
| 373 | if err != nil { |
| 374 | return 0, err |
| 375 | } |
| 376 | i -= size |
| 377 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 378 | } |
| 379 | i-- |
| 380 | dAtA[i] = 0x22 |
| 381 | } |
| 382 | i -= len(m.StorageClassName) |
| 383 | copy(dAtA[i:], m.StorageClassName) |
| 384 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.StorageClassName))) |
| 385 | i-- |
| 386 | dAtA[i] = 0x1a |
| 387 | if m.NodeTopology != nil { |
| 388 | { |
| 389 | size, err := m.NodeTopology.MarshalToSizedBuffer(dAtA[:i]) |
| 390 | if err != nil { |
| 391 | return 0, err |
| 392 | } |
| 393 | i -= size |
| 394 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 395 | } |
| 396 | i-- |
| 397 | dAtA[i] = 0x12 |
| 398 | } |
| 399 | { |
| 400 | size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) |
| 401 | if err != nil { |
| 402 | return 0, err |
| 403 | } |
| 404 | i -= size |
| 405 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 406 | } |
| 407 | i-- |
| 408 | dAtA[i] = 0xa |
| 409 | return len(dAtA) - i, nil |
| 410 | } |
| 411 | |
| 412 | func (m *CSIStorageCapacityList) Marshal() (dAtA []byte, err error) { |
| 413 | size := m.Size() |
| 414 | dAtA = make([]byte, size) |
| 415 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 416 | if err != nil { |
| 417 | return nil, err |
| 418 | } |
| 419 | return dAtA[:n], nil |
| 420 | } |
| 421 | |
| 422 | func (m *CSIStorageCapacityList) MarshalTo(dAtA []byte) (int, error) { |
| 423 | size := m.Size() |
| 424 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 425 | } |
| 426 | |
| 427 | func (m *CSIStorageCapacityList) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 428 | i := len(dAtA) |
| 429 | _ = i |
| 430 | var l int |
| 431 | _ = l |
| 432 | if len(m.Items) > 0 { |
| 433 | for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { |
| 434 | { |
| 435 | size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 436 | if err != nil { |
| 437 | return 0, err |
| 438 | } |
| 439 | i -= size |
| 440 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 441 | } |
| 442 | i-- |
| 443 | dAtA[i] = 0x12 |
| 444 | } |
| 445 | } |
| 446 | { |
| 447 | size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) |
| 448 | if err != nil { |
| 449 | return 0, err |
| 450 | } |
| 451 | i -= size |
| 452 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 453 | } |
| 454 | i-- |
| 455 | dAtA[i] = 0xa |
| 456 | return len(dAtA) - i, nil |
| 457 | } |
| 458 | |
| 459 | func (m *VolumeAttachment) Marshal() (dAtA []byte, err error) { |
| 460 | size := m.Size() |
| 461 | dAtA = make([]byte, size) |
| 462 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 463 | if err != nil { |
| 464 | return nil, err |
| 465 | } |
| 466 | return dAtA[:n], nil |
| 467 | } |
| 468 | |
| 469 | func (m *VolumeAttachment) MarshalTo(dAtA []byte) (int, error) { |
| 470 | size := m.Size() |
| 471 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 472 | } |
| 473 | |
| 474 | func (m *VolumeAttachment) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 475 | i := len(dAtA) |
| 476 | _ = i |
| 477 | var l int |
| 478 | _ = l |
| 479 | { |
| 480 | size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) |
| 481 | if err != nil { |
| 482 | return 0, err |
| 483 | } |
| 484 | i -= size |
| 485 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 486 | } |
| 487 | i-- |
| 488 | dAtA[i] = 0x1a |
| 489 | { |
| 490 | size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) |
| 491 | if err != nil { |
| 492 | return 0, err |
| 493 | } |
| 494 | i -= size |
| 495 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 496 | } |
| 497 | i-- |
| 498 | dAtA[i] = 0x12 |
| 499 | { |
| 500 | size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) |
| 501 | if err != nil { |
| 502 | return 0, err |
| 503 | } |
| 504 | i -= size |
| 505 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 506 | } |
| 507 | i-- |
| 508 | dAtA[i] = 0xa |
| 509 | return len(dAtA) - i, nil |
| 510 | } |
| 511 | |
| 512 | func (m *VolumeAttachmentList) Marshal() (dAtA []byte, err error) { |
| 513 | size := m.Size() |
| 514 | dAtA = make([]byte, size) |
| 515 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 516 | if err != nil { |
| 517 | return nil, err |
| 518 | } |
| 519 | return dAtA[:n], nil |
| 520 | } |
| 521 | |
| 522 | func (m *VolumeAttachmentList) MarshalTo(dAtA []byte) (int, error) { |
| 523 | size := m.Size() |
| 524 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 525 | } |
| 526 | |
| 527 | func (m *VolumeAttachmentList) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 528 | i := len(dAtA) |
| 529 | _ = i |
| 530 | var l int |
| 531 | _ = l |
| 532 | if len(m.Items) > 0 { |
| 533 | for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { |
| 534 | { |
| 535 | size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 536 | if err != nil { |
| 537 | return 0, err |
| 538 | } |
| 539 | i -= size |
| 540 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 541 | } |
| 542 | i-- |
| 543 | dAtA[i] = 0x12 |
| 544 | } |
| 545 | } |
| 546 | { |
| 547 | size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) |
| 548 | if err != nil { |
| 549 | return 0, err |
| 550 | } |
| 551 | i -= size |
| 552 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 553 | } |
| 554 | i-- |
| 555 | dAtA[i] = 0xa |
| 556 | return len(dAtA) - i, nil |
| 557 | } |
| 558 | |
| 559 | func (m *VolumeAttachmentSource) Marshal() (dAtA []byte, err error) { |
| 560 | size := m.Size() |
| 561 | dAtA = make([]byte, size) |
| 562 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 563 | if err != nil { |
| 564 | return nil, err |
| 565 | } |
| 566 | return dAtA[:n], nil |
| 567 | } |
| 568 | |
| 569 | func (m *VolumeAttachmentSource) MarshalTo(dAtA []byte) (int, error) { |
| 570 | size := m.Size() |
| 571 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 572 | } |
| 573 | |
| 574 | func (m *VolumeAttachmentSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 575 | i := len(dAtA) |
| 576 | _ = i |
| 577 | var l int |
| 578 | _ = l |
| 579 | if m.InlineVolumeSpec != nil { |
| 580 | { |
| 581 | size, err := m.InlineVolumeSpec.MarshalToSizedBuffer(dAtA[:i]) |
| 582 | if err != nil { |
| 583 | return 0, err |
| 584 | } |
| 585 | i -= size |
| 586 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 587 | } |
| 588 | i-- |
| 589 | dAtA[i] = 0x12 |
| 590 | } |
| 591 | if m.PersistentVolumeName != nil { |
| 592 | i -= len(*m.PersistentVolumeName) |
| 593 | copy(dAtA[i:], *m.PersistentVolumeName) |
| 594 | i = encodeVarintGenerated(dAtA, i, uint64(len(*m.PersistentVolumeName))) |
| 595 | i-- |
| 596 | dAtA[i] = 0xa |
| 597 | } |
| 598 | return len(dAtA) - i, nil |
| 599 | } |
| 600 | |
| 601 | func (m *VolumeAttachmentSpec) Marshal() (dAtA []byte, err error) { |
| 602 | size := m.Size() |
| 603 | dAtA = make([]byte, size) |
| 604 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 605 | if err != nil { |
| 606 | return nil, err |
| 607 | } |
| 608 | return dAtA[:n], nil |
| 609 | } |
| 610 | |
| 611 | func (m *VolumeAttachmentSpec) MarshalTo(dAtA []byte) (int, error) { |
| 612 | size := m.Size() |
| 613 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 614 | } |
| 615 | |
| 616 | func (m *VolumeAttachmentSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 617 | i := len(dAtA) |
| 618 | _ = i |
| 619 | var l int |
| 620 | _ = l |
| 621 | i -= len(m.NodeName) |
| 622 | copy(dAtA[i:], m.NodeName) |
| 623 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.NodeName))) |
| 624 | i-- |
| 625 | dAtA[i] = 0x1a |
| 626 | { |
| 627 | size, err := m.Source.MarshalToSizedBuffer(dAtA[:i]) |
| 628 | if err != nil { |
| 629 | return 0, err |
| 630 | } |
| 631 | i -= size |
| 632 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 633 | } |
| 634 | i-- |
| 635 | dAtA[i] = 0x12 |
| 636 | i -= len(m.Attacher) |
| 637 | copy(dAtA[i:], m.Attacher) |
| 638 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Attacher))) |
| 639 | i-- |
| 640 | dAtA[i] = 0xa |
| 641 | return len(dAtA) - i, nil |
| 642 | } |
| 643 | |
| 644 | func (m *VolumeAttachmentStatus) Marshal() (dAtA []byte, err error) { |
| 645 | size := m.Size() |
| 646 | dAtA = make([]byte, size) |
| 647 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 648 | if err != nil { |
| 649 | return nil, err |
| 650 | } |
| 651 | return dAtA[:n], nil |
| 652 | } |
| 653 | |
| 654 | func (m *VolumeAttachmentStatus) MarshalTo(dAtA []byte) (int, error) { |
| 655 | size := m.Size() |
| 656 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 657 | } |
| 658 | |
| 659 | func (m *VolumeAttachmentStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 660 | i := len(dAtA) |
| 661 | _ = i |
| 662 | var l int |
| 663 | _ = l |
| 664 | if m.DetachError != nil { |
| 665 | { |
| 666 | size, err := m.DetachError.MarshalToSizedBuffer(dAtA[:i]) |
| 667 | if err != nil { |
| 668 | return 0, err |
| 669 | } |
| 670 | i -= size |
| 671 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 672 | } |
| 673 | i-- |
| 674 | dAtA[i] = 0x22 |
| 675 | } |
| 676 | if m.AttachError != nil { |
| 677 | { |
| 678 | size, err := m.AttachError.MarshalToSizedBuffer(dAtA[:i]) |
| 679 | if err != nil { |
| 680 | return 0, err |
| 681 | } |
| 682 | i -= size |
| 683 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 684 | } |
| 685 | i-- |
| 686 | dAtA[i] = 0x1a |
| 687 | } |
| 688 | if len(m.AttachmentMetadata) > 0 { |
| 689 | keysForAttachmentMetadata := make([]string, 0, len(m.AttachmentMetadata)) |
| 690 | for k := range m.AttachmentMetadata { |
| 691 | keysForAttachmentMetadata = append(keysForAttachmentMetadata, string(k)) |
| 692 | } |
| 693 | github_com_gogo_protobuf_sortkeys.Strings(keysForAttachmentMetadata) |
| 694 | for iNdEx := len(keysForAttachmentMetadata) - 1; iNdEx >= 0; iNdEx-- { |
| 695 | v := m.AttachmentMetadata[string(keysForAttachmentMetadata[iNdEx])] |
| 696 | baseI := i |
| 697 | i -= len(v) |
| 698 | copy(dAtA[i:], v) |
| 699 | i = encodeVarintGenerated(dAtA, i, uint64(len(v))) |
| 700 | i-- |
| 701 | dAtA[i] = 0x12 |
| 702 | i -= len(keysForAttachmentMetadata[iNdEx]) |
| 703 | copy(dAtA[i:], keysForAttachmentMetadata[iNdEx]) |
| 704 | i = encodeVarintGenerated(dAtA, i, uint64(len(keysForAttachmentMetadata[iNdEx]))) |
| 705 | i-- |
| 706 | dAtA[i] = 0xa |
| 707 | i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) |
| 708 | i-- |
| 709 | dAtA[i] = 0x12 |
| 710 | } |
| 711 | } |
| 712 | i-- |
| 713 | if m.Attached { |
| 714 | dAtA[i] = 1 |
| 715 | } else { |
| 716 | dAtA[i] = 0 |
| 717 | } |
| 718 | i-- |
| 719 | dAtA[i] = 0x8 |
| 720 | return len(dAtA) - i, nil |
| 721 | } |
| 722 | |
| 723 | func (m *VolumeError) Marshal() (dAtA []byte, err error) { |
| 724 | size := m.Size() |
| 725 | dAtA = make([]byte, size) |
| 726 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 727 | if err != nil { |
| 728 | return nil, err |
| 729 | } |
| 730 | return dAtA[:n], nil |
| 731 | } |
| 732 | |
| 733 | func (m *VolumeError) MarshalTo(dAtA []byte) (int, error) { |
| 734 | size := m.Size() |
| 735 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 736 | } |
| 737 | |
| 738 | func (m *VolumeError) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 739 | i := len(dAtA) |
| 740 | _ = i |
| 741 | var l int |
| 742 | _ = l |
| 743 | i -= len(m.Message) |
| 744 | copy(dAtA[i:], m.Message) |
| 745 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) |
| 746 | i-- |
| 747 | dAtA[i] = 0x12 |
| 748 | { |
| 749 | size, err := m.Time.MarshalToSizedBuffer(dAtA[:i]) |
| 750 | if err != nil { |
| 751 | return 0, err |
| 752 | } |
| 753 | i -= size |
| 754 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 755 | } |
| 756 | i-- |
| 757 | dAtA[i] = 0xa |
| 758 | return len(dAtA) - i, nil |
| 759 | } |
| 760 | |
| 761 | func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { |
| 762 | offset -= sovGenerated(v) |
| 763 | base := offset |
| 764 | for v >= 1<<7 { |
| 765 | dAtA[offset] = uint8(v&0x7f | 0x80) |
| 766 | v >>= 7 |
| 767 | offset++ |
| 768 | } |
| 769 | dAtA[offset] = uint8(v) |
| 770 | return base |
| 771 | } |
| 772 | func (m *CSIStorageCapacity) Size() (n int) { |
| 773 | if m == nil { |
| 774 | return 0 |
| 775 | } |
| 776 | var l int |
| 777 | _ = l |
| 778 | l = m.ObjectMeta.Size() |
| 779 | n += 1 + l + sovGenerated(uint64(l)) |
| 780 | if m.NodeTopology != nil { |
| 781 | l = m.NodeTopology.Size() |
| 782 | n += 1 + l + sovGenerated(uint64(l)) |
| 783 | } |
| 784 | l = len(m.StorageClassName) |
| 785 | n += 1 + l + sovGenerated(uint64(l)) |
| 786 | if m.Capacity != nil { |
| 787 | l = m.Capacity.Size() |
| 788 | n += 1 + l + sovGenerated(uint64(l)) |
| 789 | } |
| 790 | return n |
| 791 | } |
| 792 | |
| 793 | func (m *CSIStorageCapacityList) Size() (n int) { |
| 794 | if m == nil { |
| 795 | return 0 |
| 796 | } |
| 797 | var l int |
| 798 | _ = l |
| 799 | l = m.ListMeta.Size() |
| 800 | n += 1 + l + sovGenerated(uint64(l)) |
| 801 | if len(m.Items) > 0 { |
| 802 | for _, e := range m.Items { |
| 803 | l = e.Size() |
| 804 | n += 1 + l + sovGenerated(uint64(l)) |
| 805 | } |
| 806 | } |
| 807 | return n |
| 808 | } |
| 809 | |
| 810 | func (m *VolumeAttachment) Size() (n int) { |
| 811 | if m == nil { |
| 812 | return 0 |
| 813 | } |
| 814 | var l int |
| 815 | _ = l |
| 816 | l = m.ObjectMeta.Size() |
| 817 | n += 1 + l + sovGenerated(uint64(l)) |
| 818 | l = m.Spec.Size() |
| 819 | n += 1 + l + sovGenerated(uint64(l)) |
| 820 | l = m.Status.Size() |
| 821 | n += 1 + l + sovGenerated(uint64(l)) |
| 822 | return n |
| 823 | } |
| 824 | |
| 825 | func (m *VolumeAttachmentList) Size() (n int) { |
| 826 | if m == nil { |
| 827 | return 0 |
| 828 | } |
| 829 | var l int |
| 830 | _ = l |
| 831 | l = m.ListMeta.Size() |
| 832 | n += 1 + l + sovGenerated(uint64(l)) |
| 833 | if len(m.Items) > 0 { |
| 834 | for _, e := range m.Items { |
| 835 | l = e.Size() |
| 836 | n += 1 + l + sovGenerated(uint64(l)) |
| 837 | } |
| 838 | } |
| 839 | return n |
| 840 | } |
| 841 | |
| 842 | func (m *VolumeAttachmentSource) Size() (n int) { |
| 843 | if m == nil { |
| 844 | return 0 |
| 845 | } |
| 846 | var l int |
| 847 | _ = l |
| 848 | if m.PersistentVolumeName != nil { |
| 849 | l = len(*m.PersistentVolumeName) |
| 850 | n += 1 + l + sovGenerated(uint64(l)) |
| 851 | } |
| 852 | if m.InlineVolumeSpec != nil { |
| 853 | l = m.InlineVolumeSpec.Size() |
| 854 | n += 1 + l + sovGenerated(uint64(l)) |
| 855 | } |
| 856 | return n |
| 857 | } |
| 858 | |
| 859 | func (m *VolumeAttachmentSpec) Size() (n int) { |
| 860 | if m == nil { |
| 861 | return 0 |
| 862 | } |
| 863 | var l int |
| 864 | _ = l |
| 865 | l = len(m.Attacher) |
| 866 | n += 1 + l + sovGenerated(uint64(l)) |
| 867 | l = m.Source.Size() |
| 868 | n += 1 + l + sovGenerated(uint64(l)) |
| 869 | l = len(m.NodeName) |
| 870 | n += 1 + l + sovGenerated(uint64(l)) |
| 871 | return n |
| 872 | } |
| 873 | |
| 874 | func (m *VolumeAttachmentStatus) Size() (n int) { |
| 875 | if m == nil { |
| 876 | return 0 |
| 877 | } |
| 878 | var l int |
| 879 | _ = l |
| 880 | n += 2 |
| 881 | if len(m.AttachmentMetadata) > 0 { |
| 882 | for k, v := range m.AttachmentMetadata { |
| 883 | _ = k |
| 884 | _ = v |
| 885 | mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) |
| 886 | n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) |
| 887 | } |
| 888 | } |
| 889 | if m.AttachError != nil { |
| 890 | l = m.AttachError.Size() |
| 891 | n += 1 + l + sovGenerated(uint64(l)) |
| 892 | } |
| 893 | if m.DetachError != nil { |
| 894 | l = m.DetachError.Size() |
| 895 | n += 1 + l + sovGenerated(uint64(l)) |
| 896 | } |
| 897 | return n |
| 898 | } |
| 899 | |
| 900 | func (m *VolumeError) Size() (n int) { |
| 901 | if m == nil { |
| 902 | return 0 |
| 903 | } |
| 904 | var l int |
| 905 | _ = l |
| 906 | l = m.Time.Size() |
| 907 | n += 1 + l + sovGenerated(uint64(l)) |
| 908 | l = len(m.Message) |
| 909 | n += 1 + l + sovGenerated(uint64(l)) |
| 910 | return n |
| 911 | } |
| 912 | |
| 913 | func sovGenerated(x uint64) (n int) { |
| 914 | return (math_bits.Len64(x|1) + 6) / 7 |
| 915 | } |
| 916 | func sozGenerated(x uint64) (n int) { |
| 917 | return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) |
| 918 | } |
| 919 | func (this *CSIStorageCapacity) String() string { |
| 920 | if this == nil { |
| 921 | return "nil" |
| 922 | } |
| 923 | s := strings.Join([]string{`&CSIStorageCapacity{`, |
| 924 | `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, |
| 925 | `NodeTopology:` + strings.Replace(fmt.Sprintf("%v", this.NodeTopology), "LabelSelector", "v1.LabelSelector", 1) + `,`, |
| 926 | `StorageClassName:` + fmt.Sprintf("%v", this.StorageClassName) + `,`, |
| 927 | `Capacity:` + strings.Replace(fmt.Sprintf("%v", this.Capacity), "Quantity", "resource.Quantity", 1) + `,`, |
| 928 | `}`, |
| 929 | }, "") |
| 930 | return s |
| 931 | } |
| 932 | func (this *CSIStorageCapacityList) String() string { |
| 933 | if this == nil { |
| 934 | return "nil" |
| 935 | } |
| 936 | repeatedStringForItems := "[]CSIStorageCapacity{" |
| 937 | for _, f := range this.Items { |
| 938 | repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "CSIStorageCapacity", "CSIStorageCapacity", 1), `&`, ``, 1) + "," |
| 939 | } |
| 940 | repeatedStringForItems += "}" |
| 941 | s := strings.Join([]string{`&CSIStorageCapacityList{`, |
| 942 | `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, |
| 943 | `Items:` + repeatedStringForItems + `,`, |
| 944 | `}`, |
| 945 | }, "") |
| 946 | return s |
| 947 | } |
| 948 | func (this *VolumeAttachment) String() string { |
| 949 | if this == nil { |
| 950 | return "nil" |
| 951 | } |
| 952 | s := strings.Join([]string{`&VolumeAttachment{`, |
| 953 | `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, |
| 954 | `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "VolumeAttachmentSpec", "VolumeAttachmentSpec", 1), `&`, ``, 1) + `,`, |
| 955 | `Status:` + strings.Replace(strings.Replace(this.Status.String(), "VolumeAttachmentStatus", "VolumeAttachmentStatus", 1), `&`, ``, 1) + `,`, |
| 956 | `}`, |
| 957 | }, "") |
| 958 | return s |
| 959 | } |
| 960 | func (this *VolumeAttachmentList) String() string { |
| 961 | if this == nil { |
| 962 | return "nil" |
| 963 | } |
| 964 | repeatedStringForItems := "[]VolumeAttachment{" |
| 965 | for _, f := range this.Items { |
| 966 | repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "VolumeAttachment", "VolumeAttachment", 1), `&`, ``, 1) + "," |
| 967 | } |
| 968 | repeatedStringForItems += "}" |
| 969 | s := strings.Join([]string{`&VolumeAttachmentList{`, |
| 970 | `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, |
| 971 | `Items:` + repeatedStringForItems + `,`, |
| 972 | `}`, |
| 973 | }, "") |
| 974 | return s |
| 975 | } |
| 976 | func (this *VolumeAttachmentSource) String() string { |
| 977 | if this == nil { |
| 978 | return "nil" |
| 979 | } |
| 980 | s := strings.Join([]string{`&VolumeAttachmentSource{`, |
| 981 | `PersistentVolumeName:` + valueToStringGenerated(this.PersistentVolumeName) + `,`, |
| 982 | `InlineVolumeSpec:` + strings.Replace(fmt.Sprintf("%v", this.InlineVolumeSpec), "PersistentVolumeSpec", "v11.PersistentVolumeSpec", 1) + `,`, |
| 983 | `}`, |
| 984 | }, "") |
| 985 | return s |
| 986 | } |
| 987 | func (this *VolumeAttachmentSpec) String() string { |
| 988 | if this == nil { |
| 989 | return "nil" |
| 990 | } |
| 991 | s := strings.Join([]string{`&VolumeAttachmentSpec{`, |
| 992 | `Attacher:` + fmt.Sprintf("%v", this.Attacher) + `,`, |
| 993 | `Source:` + strings.Replace(strings.Replace(this.Source.String(), "VolumeAttachmentSource", "VolumeAttachmentSource", 1), `&`, ``, 1) + `,`, |
| 994 | `NodeName:` + fmt.Sprintf("%v", this.NodeName) + `,`, |
| 995 | `}`, |
| 996 | }, "") |
| 997 | return s |
| 998 | } |
| 999 | func (this *VolumeAttachmentStatus) String() string { |
| 1000 | if this == nil { |
| 1001 | return "nil" |
| 1002 | } |
| 1003 | keysForAttachmentMetadata := make([]string, 0, len(this.AttachmentMetadata)) |
| 1004 | for k := range this.AttachmentMetadata { |
| 1005 | keysForAttachmentMetadata = append(keysForAttachmentMetadata, k) |
| 1006 | } |
| 1007 | github_com_gogo_protobuf_sortkeys.Strings(keysForAttachmentMetadata) |
| 1008 | mapStringForAttachmentMetadata := "map[string]string{" |
| 1009 | for _, k := range keysForAttachmentMetadata { |
| 1010 | mapStringForAttachmentMetadata += fmt.Sprintf("%v: %v,", k, this.AttachmentMetadata[k]) |
| 1011 | } |
| 1012 | mapStringForAttachmentMetadata += "}" |
| 1013 | s := strings.Join([]string{`&VolumeAttachmentStatus{`, |
| 1014 | `Attached:` + fmt.Sprintf("%v", this.Attached) + `,`, |
| 1015 | `AttachmentMetadata:` + mapStringForAttachmentMetadata + `,`, |
| 1016 | `AttachError:` + strings.Replace(this.AttachError.String(), "VolumeError", "VolumeError", 1) + `,`, |
| 1017 | `DetachError:` + strings.Replace(this.DetachError.String(), "VolumeError", "VolumeError", 1) + `,`, |
| 1018 | `}`, |
| 1019 | }, "") |
| 1020 | return s |
| 1021 | } |
| 1022 | func (this *VolumeError) String() string { |
| 1023 | if this == nil { |
| 1024 | return "nil" |
| 1025 | } |
| 1026 | s := strings.Join([]string{`&VolumeError{`, |
| 1027 | `Time:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Time), "Time", "v1.Time", 1), `&`, ``, 1) + `,`, |
| 1028 | `Message:` + fmt.Sprintf("%v", this.Message) + `,`, |
| 1029 | `}`, |
| 1030 | }, "") |
| 1031 | return s |
| 1032 | } |
| 1033 | func valueToStringGenerated(v interface{}) string { |
| 1034 | rv := reflect.ValueOf(v) |
| 1035 | if rv.IsNil() { |
| 1036 | return "nil" |
| 1037 | } |
| 1038 | pv := reflect.Indirect(rv).Interface() |
| 1039 | return fmt.Sprintf("*%v", pv) |
| 1040 | } |
| 1041 | func (m *CSIStorageCapacity) Unmarshal(dAtA []byte) error { |
| 1042 | l := len(dAtA) |
| 1043 | iNdEx := 0 |
| 1044 | for iNdEx < l { |
| 1045 | preIndex := iNdEx |
| 1046 | var wire uint64 |
| 1047 | for shift := uint(0); ; shift += 7 { |
| 1048 | if shift >= 64 { |
| 1049 | return ErrIntOverflowGenerated |
| 1050 | } |
| 1051 | if iNdEx >= l { |
| 1052 | return io.ErrUnexpectedEOF |
| 1053 | } |
| 1054 | b := dAtA[iNdEx] |
| 1055 | iNdEx++ |
| 1056 | wire |= uint64(b&0x7F) << shift |
| 1057 | if b < 0x80 { |
| 1058 | break |
| 1059 | } |
| 1060 | } |
| 1061 | fieldNum := int32(wire >> 3) |
| 1062 | wireType := int(wire & 0x7) |
| 1063 | if wireType == 4 { |
| 1064 | return fmt.Errorf("proto: CSIStorageCapacity: wiretype end group for non-group") |
| 1065 | } |
| 1066 | if fieldNum <= 0 { |
| 1067 | return fmt.Errorf("proto: CSIStorageCapacity: illegal tag %d (wire type %d)", fieldNum, wire) |
| 1068 | } |
| 1069 | switch fieldNum { |
| 1070 | case 1: |
| 1071 | if wireType != 2 { |
| 1072 | return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) |
| 1073 | } |
| 1074 | var msglen int |
| 1075 | for shift := uint(0); ; shift += 7 { |
| 1076 | if shift >= 64 { |
| 1077 | return ErrIntOverflowGenerated |
| 1078 | } |
| 1079 | if iNdEx >= l { |
| 1080 | return io.ErrUnexpectedEOF |
| 1081 | } |
| 1082 | b := dAtA[iNdEx] |
| 1083 | iNdEx++ |
| 1084 | msglen |= int(b&0x7F) << shift |
| 1085 | if b < 0x80 { |
| 1086 | break |
| 1087 | } |
| 1088 | } |
| 1089 | if msglen < 0 { |
| 1090 | return ErrInvalidLengthGenerated |
| 1091 | } |
| 1092 | postIndex := iNdEx + msglen |
| 1093 | if postIndex < 0 { |
| 1094 | return ErrInvalidLengthGenerated |
| 1095 | } |
| 1096 | if postIndex > l { |
| 1097 | return io.ErrUnexpectedEOF |
| 1098 | } |
| 1099 | if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 1100 | return err |
| 1101 | } |
| 1102 | iNdEx = postIndex |
| 1103 | case 2: |
| 1104 | if wireType != 2 { |
| 1105 | return fmt.Errorf("proto: wrong wireType = %d for field NodeTopology", wireType) |
| 1106 | } |
| 1107 | var msglen int |
| 1108 | for shift := uint(0); ; shift += 7 { |
| 1109 | if shift >= 64 { |
| 1110 | return ErrIntOverflowGenerated |
| 1111 | } |
| 1112 | if iNdEx >= l { |
| 1113 | return io.ErrUnexpectedEOF |
| 1114 | } |
| 1115 | b := dAtA[iNdEx] |
| 1116 | iNdEx++ |
| 1117 | msglen |= int(b&0x7F) << shift |
| 1118 | if b < 0x80 { |
| 1119 | break |
| 1120 | } |
| 1121 | } |
| 1122 | if msglen < 0 { |
| 1123 | return ErrInvalidLengthGenerated |
| 1124 | } |
| 1125 | postIndex := iNdEx + msglen |
| 1126 | if postIndex < 0 { |
| 1127 | return ErrInvalidLengthGenerated |
| 1128 | } |
| 1129 | if postIndex > l { |
| 1130 | return io.ErrUnexpectedEOF |
| 1131 | } |
| 1132 | if m.NodeTopology == nil { |
| 1133 | m.NodeTopology = &v1.LabelSelector{} |
| 1134 | } |
| 1135 | if err := m.NodeTopology.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 1136 | return err |
| 1137 | } |
| 1138 | iNdEx = postIndex |
| 1139 | case 3: |
| 1140 | if wireType != 2 { |
| 1141 | return fmt.Errorf("proto: wrong wireType = %d for field StorageClassName", wireType) |
| 1142 | } |
| 1143 | var stringLen uint64 |
| 1144 | for shift := uint(0); ; shift += 7 { |
| 1145 | if shift >= 64 { |
| 1146 | return ErrIntOverflowGenerated |
| 1147 | } |
| 1148 | if iNdEx >= l { |
| 1149 | return io.ErrUnexpectedEOF |
| 1150 | } |
| 1151 | b := dAtA[iNdEx] |
| 1152 | iNdEx++ |
| 1153 | stringLen |= uint64(b&0x7F) << shift |
| 1154 | if b < 0x80 { |
| 1155 | break |
| 1156 | } |
| 1157 | } |
| 1158 | intStringLen := int(stringLen) |
| 1159 | if intStringLen < 0 { |
| 1160 | return ErrInvalidLengthGenerated |
| 1161 | } |
| 1162 | postIndex := iNdEx + intStringLen |
| 1163 | if postIndex < 0 { |
| 1164 | return ErrInvalidLengthGenerated |
| 1165 | } |
| 1166 | if postIndex > l { |
| 1167 | return io.ErrUnexpectedEOF |
| 1168 | } |
| 1169 | m.StorageClassName = string(dAtA[iNdEx:postIndex]) |
| 1170 | iNdEx = postIndex |
| 1171 | case 4: |
| 1172 | if wireType != 2 { |
| 1173 | return fmt.Errorf("proto: wrong wireType = %d for field Capacity", wireType) |
| 1174 | } |
| 1175 | var msglen int |
| 1176 | for shift := uint(0); ; shift += 7 { |
| 1177 | if shift >= 64 { |
| 1178 | return ErrIntOverflowGenerated |
| 1179 | } |
| 1180 | if iNdEx >= l { |
| 1181 | return io.ErrUnexpectedEOF |
| 1182 | } |
| 1183 | b := dAtA[iNdEx] |
| 1184 | iNdEx++ |
| 1185 | msglen |= int(b&0x7F) << shift |
| 1186 | if b < 0x80 { |
| 1187 | break |
| 1188 | } |
| 1189 | } |
| 1190 | if msglen < 0 { |
| 1191 | return ErrInvalidLengthGenerated |
| 1192 | } |
| 1193 | postIndex := iNdEx + msglen |
| 1194 | if postIndex < 0 { |
| 1195 | return ErrInvalidLengthGenerated |
| 1196 | } |
| 1197 | if postIndex > l { |
| 1198 | return io.ErrUnexpectedEOF |
| 1199 | } |
| 1200 | if m.Capacity == nil { |
| 1201 | m.Capacity = &resource.Quantity{} |
| 1202 | } |
| 1203 | if err := m.Capacity.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 1204 | return err |
| 1205 | } |
| 1206 | iNdEx = postIndex |
| 1207 | default: |
| 1208 | iNdEx = preIndex |
| 1209 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 1210 | if err != nil { |
| 1211 | return err |
| 1212 | } |
| 1213 | if skippy < 0 { |
| 1214 | return ErrInvalidLengthGenerated |
| 1215 | } |
| 1216 | if (iNdEx + skippy) < 0 { |
| 1217 | return ErrInvalidLengthGenerated |
| 1218 | } |
| 1219 | if (iNdEx + skippy) > l { |
| 1220 | return io.ErrUnexpectedEOF |
| 1221 | } |
| 1222 | iNdEx += skippy |
| 1223 | } |
| 1224 | } |
| 1225 | |
| 1226 | if iNdEx > l { |
| 1227 | return io.ErrUnexpectedEOF |
| 1228 | } |
| 1229 | return nil |
| 1230 | } |
| 1231 | func (m *CSIStorageCapacityList) Unmarshal(dAtA []byte) error { |
| 1232 | l := len(dAtA) |
| 1233 | iNdEx := 0 |
| 1234 | for iNdEx < l { |
| 1235 | preIndex := iNdEx |
| 1236 | var wire uint64 |
| 1237 | for shift := uint(0); ; shift += 7 { |
| 1238 | if shift >= 64 { |
| 1239 | return ErrIntOverflowGenerated |
| 1240 | } |
| 1241 | if iNdEx >= l { |
| 1242 | return io.ErrUnexpectedEOF |
| 1243 | } |
| 1244 | b := dAtA[iNdEx] |
| 1245 | iNdEx++ |
| 1246 | wire |= uint64(b&0x7F) << shift |
| 1247 | if b < 0x80 { |
| 1248 | break |
| 1249 | } |
| 1250 | } |
| 1251 | fieldNum := int32(wire >> 3) |
| 1252 | wireType := int(wire & 0x7) |
| 1253 | if wireType == 4 { |
| 1254 | return fmt.Errorf("proto: CSIStorageCapacityList: wiretype end group for non-group") |
| 1255 | } |
| 1256 | if fieldNum <= 0 { |
| 1257 | return fmt.Errorf("proto: CSIStorageCapacityList: illegal tag %d (wire type %d)", fieldNum, wire) |
| 1258 | } |
| 1259 | switch fieldNum { |
| 1260 | case 1: |
| 1261 | if wireType != 2 { |
| 1262 | return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) |
| 1263 | } |
| 1264 | var msglen int |
| 1265 | for shift := uint(0); ; shift += 7 { |
| 1266 | if shift >= 64 { |
| 1267 | return ErrIntOverflowGenerated |
| 1268 | } |
| 1269 | if iNdEx >= l { |
| 1270 | return io.ErrUnexpectedEOF |
| 1271 | } |
| 1272 | b := dAtA[iNdEx] |
| 1273 | iNdEx++ |
| 1274 | msglen |= int(b&0x7F) << shift |
| 1275 | if b < 0x80 { |
| 1276 | break |
| 1277 | } |
| 1278 | } |
| 1279 | if msglen < 0 { |
| 1280 | return ErrInvalidLengthGenerated |
| 1281 | } |
| 1282 | postIndex := iNdEx + msglen |
| 1283 | if postIndex < 0 { |
| 1284 | return ErrInvalidLengthGenerated |
| 1285 | } |
| 1286 | if postIndex > l { |
| 1287 | return io.ErrUnexpectedEOF |
| 1288 | } |
| 1289 | if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 1290 | return err |
| 1291 | } |
| 1292 | iNdEx = postIndex |
| 1293 | case 2: |
| 1294 | if wireType != 2 { |
| 1295 | return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) |
| 1296 | } |
| 1297 | var msglen int |
| 1298 | for shift := uint(0); ; shift += 7 { |
| 1299 | if shift >= 64 { |
| 1300 | return ErrIntOverflowGenerated |
| 1301 | } |
| 1302 | if iNdEx >= l { |
| 1303 | return io.ErrUnexpectedEOF |
| 1304 | } |
| 1305 | b := dAtA[iNdEx] |
| 1306 | iNdEx++ |
| 1307 | msglen |= int(b&0x7F) << shift |
| 1308 | if b < 0x80 { |
| 1309 | break |
| 1310 | } |
| 1311 | } |
| 1312 | if msglen < 0 { |
| 1313 | return ErrInvalidLengthGenerated |
| 1314 | } |
| 1315 | postIndex := iNdEx + msglen |
| 1316 | if postIndex < 0 { |
| 1317 | return ErrInvalidLengthGenerated |
| 1318 | } |
| 1319 | if postIndex > l { |
| 1320 | return io.ErrUnexpectedEOF |
| 1321 | } |
| 1322 | m.Items = append(m.Items, CSIStorageCapacity{}) |
| 1323 | if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 1324 | return err |
| 1325 | } |
| 1326 | iNdEx = postIndex |
| 1327 | default: |
| 1328 | iNdEx = preIndex |
| 1329 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 1330 | if err != nil { |
| 1331 | return err |
| 1332 | } |
| 1333 | if skippy < 0 { |
| 1334 | return ErrInvalidLengthGenerated |
| 1335 | } |
| 1336 | if (iNdEx + skippy) < 0 { |
| 1337 | return ErrInvalidLengthGenerated |
| 1338 | } |
| 1339 | if (iNdEx + skippy) > l { |
| 1340 | return io.ErrUnexpectedEOF |
| 1341 | } |
| 1342 | iNdEx += skippy |
| 1343 | } |
| 1344 | } |
| 1345 | |
| 1346 | if iNdEx > l { |
| 1347 | return io.ErrUnexpectedEOF |
| 1348 | } |
| 1349 | return nil |
| 1350 | } |
| 1351 | func (m *VolumeAttachment) Unmarshal(dAtA []byte) error { |
| 1352 | l := len(dAtA) |
| 1353 | iNdEx := 0 |
| 1354 | for iNdEx < l { |
| 1355 | preIndex := iNdEx |
| 1356 | var wire uint64 |
| 1357 | for shift := uint(0); ; shift += 7 { |
| 1358 | if shift >= 64 { |
| 1359 | return ErrIntOverflowGenerated |
| 1360 | } |
| 1361 | if iNdEx >= l { |
| 1362 | return io.ErrUnexpectedEOF |
| 1363 | } |
| 1364 | b := dAtA[iNdEx] |
| 1365 | iNdEx++ |
| 1366 | wire |= uint64(b&0x7F) << shift |
| 1367 | if b < 0x80 { |
| 1368 | break |
| 1369 | } |
| 1370 | } |
| 1371 | fieldNum := int32(wire >> 3) |
| 1372 | wireType := int(wire & 0x7) |
| 1373 | if wireType == 4 { |
| 1374 | return fmt.Errorf("proto: VolumeAttachment: wiretype end group for non-group") |
| 1375 | } |
| 1376 | if fieldNum <= 0 { |
| 1377 | return fmt.Errorf("proto: VolumeAttachment: illegal tag %d (wire type %d)", fieldNum, wire) |
| 1378 | } |
| 1379 | switch fieldNum { |
| 1380 | case 1: |
| 1381 | if wireType != 2 { |
| 1382 | return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) |
| 1383 | } |
| 1384 | var msglen int |
| 1385 | for shift := uint(0); ; shift += 7 { |
| 1386 | if shift >= 64 { |
| 1387 | return ErrIntOverflowGenerated |
| 1388 | } |
| 1389 | if iNdEx >= l { |
| 1390 | return io.ErrUnexpectedEOF |
| 1391 | } |
| 1392 | b := dAtA[iNdEx] |
| 1393 | iNdEx++ |
| 1394 | msglen |= int(b&0x7F) << shift |
| 1395 | if b < 0x80 { |
| 1396 | break |
| 1397 | } |
| 1398 | } |
| 1399 | if msglen < 0 { |
| 1400 | return ErrInvalidLengthGenerated |
| 1401 | } |
| 1402 | postIndex := iNdEx + msglen |
| 1403 | if postIndex < 0 { |
| 1404 | return ErrInvalidLengthGenerated |
| 1405 | } |
| 1406 | if postIndex > l { |
| 1407 | return io.ErrUnexpectedEOF |
| 1408 | } |
| 1409 | if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 1410 | return err |
| 1411 | } |
| 1412 | iNdEx = postIndex |
| 1413 | case 2: |
| 1414 | if wireType != 2 { |
| 1415 | return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) |
| 1416 | } |
| 1417 | var msglen int |
| 1418 | for shift := uint(0); ; shift += 7 { |
| 1419 | if shift >= 64 { |
| 1420 | return ErrIntOverflowGenerated |
| 1421 | } |
| 1422 | if iNdEx >= l { |
| 1423 | return io.ErrUnexpectedEOF |
| 1424 | } |
| 1425 | b := dAtA[iNdEx] |
| 1426 | iNdEx++ |
| 1427 | msglen |= int(b&0x7F) << shift |
| 1428 | if b < 0x80 { |
| 1429 | break |
| 1430 | } |
| 1431 | } |
| 1432 | if msglen < 0 { |
| 1433 | return ErrInvalidLengthGenerated |
| 1434 | } |
| 1435 | postIndex := iNdEx + msglen |
| 1436 | if postIndex < 0 { |
| 1437 | return ErrInvalidLengthGenerated |
| 1438 | } |
| 1439 | if postIndex > l { |
| 1440 | return io.ErrUnexpectedEOF |
| 1441 | } |
| 1442 | if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 1443 | return err |
| 1444 | } |
| 1445 | iNdEx = postIndex |
| 1446 | case 3: |
| 1447 | if wireType != 2 { |
| 1448 | return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) |
| 1449 | } |
| 1450 | var msglen int |
| 1451 | for shift := uint(0); ; shift += 7 { |
| 1452 | if shift >= 64 { |
| 1453 | return ErrIntOverflowGenerated |
| 1454 | } |
| 1455 | if iNdEx >= l { |
| 1456 | return io.ErrUnexpectedEOF |
| 1457 | } |
| 1458 | b := dAtA[iNdEx] |
| 1459 | iNdEx++ |
| 1460 | msglen |= int(b&0x7F) << shift |
| 1461 | if b < 0x80 { |
| 1462 | break |
| 1463 | } |
| 1464 | } |
| 1465 | if msglen < 0 { |
| 1466 | return ErrInvalidLengthGenerated |
| 1467 | } |
| 1468 | postIndex := iNdEx + msglen |
| 1469 | if postIndex < 0 { |
| 1470 | return ErrInvalidLengthGenerated |
| 1471 | } |
| 1472 | if postIndex > l { |
| 1473 | return io.ErrUnexpectedEOF |
| 1474 | } |
| 1475 | if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 1476 | return err |
| 1477 | } |
| 1478 | iNdEx = postIndex |
| 1479 | default: |
| 1480 | iNdEx = preIndex |
| 1481 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 1482 | if err != nil { |
| 1483 | return err |
| 1484 | } |
| 1485 | if skippy < 0 { |
| 1486 | return ErrInvalidLengthGenerated |
| 1487 | } |
| 1488 | if (iNdEx + skippy) < 0 { |
| 1489 | return ErrInvalidLengthGenerated |
| 1490 | } |
| 1491 | if (iNdEx + skippy) > l { |
| 1492 | return io.ErrUnexpectedEOF |
| 1493 | } |
| 1494 | iNdEx += skippy |
| 1495 | } |
| 1496 | } |
| 1497 | |
| 1498 | if iNdEx > l { |
| 1499 | return io.ErrUnexpectedEOF |
| 1500 | } |
| 1501 | return nil |
| 1502 | } |
| 1503 | func (m *VolumeAttachmentList) Unmarshal(dAtA []byte) error { |
| 1504 | l := len(dAtA) |
| 1505 | iNdEx := 0 |
| 1506 | for iNdEx < l { |
| 1507 | preIndex := iNdEx |
| 1508 | var wire uint64 |
| 1509 | for shift := uint(0); ; shift += 7 { |
| 1510 | if shift >= 64 { |
| 1511 | return ErrIntOverflowGenerated |
| 1512 | } |
| 1513 | if iNdEx >= l { |
| 1514 | return io.ErrUnexpectedEOF |
| 1515 | } |
| 1516 | b := dAtA[iNdEx] |
| 1517 | iNdEx++ |
| 1518 | wire |= uint64(b&0x7F) << shift |
| 1519 | if b < 0x80 { |
| 1520 | break |
| 1521 | } |
| 1522 | } |
| 1523 | fieldNum := int32(wire >> 3) |
| 1524 | wireType := int(wire & 0x7) |
| 1525 | if wireType == 4 { |
| 1526 | return fmt.Errorf("proto: VolumeAttachmentList: wiretype end group for non-group") |
| 1527 | } |
| 1528 | if fieldNum <= 0 { |
| 1529 | return fmt.Errorf("proto: VolumeAttachmentList: illegal tag %d (wire type %d)", fieldNum, wire) |
| 1530 | } |
| 1531 | switch fieldNum { |
| 1532 | case 1: |
| 1533 | if wireType != 2 { |
| 1534 | return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) |
| 1535 | } |
| 1536 | var msglen int |
| 1537 | for shift := uint(0); ; shift += 7 { |
| 1538 | if shift >= 64 { |
| 1539 | return ErrIntOverflowGenerated |
| 1540 | } |
| 1541 | if iNdEx >= l { |
| 1542 | return io.ErrUnexpectedEOF |
| 1543 | } |
| 1544 | b := dAtA[iNdEx] |
| 1545 | iNdEx++ |
| 1546 | msglen |= int(b&0x7F) << shift |
| 1547 | if b < 0x80 { |
| 1548 | break |
| 1549 | } |
| 1550 | } |
| 1551 | if msglen < 0 { |
| 1552 | return ErrInvalidLengthGenerated |
| 1553 | } |
| 1554 | postIndex := iNdEx + msglen |
| 1555 | if postIndex < 0 { |
| 1556 | return ErrInvalidLengthGenerated |
| 1557 | } |
| 1558 | if postIndex > l { |
| 1559 | return io.ErrUnexpectedEOF |
| 1560 | } |
| 1561 | if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 1562 | return err |
| 1563 | } |
| 1564 | iNdEx = postIndex |
| 1565 | case 2: |
| 1566 | if wireType != 2 { |
| 1567 | return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) |
| 1568 | } |
| 1569 | var msglen int |
| 1570 | for shift := uint(0); ; shift += 7 { |
| 1571 | if shift >= 64 { |
| 1572 | return ErrIntOverflowGenerated |
| 1573 | } |
| 1574 | if iNdEx >= l { |
| 1575 | return io.ErrUnexpectedEOF |
| 1576 | } |
| 1577 | b := dAtA[iNdEx] |
| 1578 | iNdEx++ |
| 1579 | msglen |= int(b&0x7F) << shift |
| 1580 | if b < 0x80 { |
| 1581 | break |
| 1582 | } |
| 1583 | } |
| 1584 | if msglen < 0 { |
| 1585 | return ErrInvalidLengthGenerated |
| 1586 | } |
| 1587 | postIndex := iNdEx + msglen |
| 1588 | if postIndex < 0 { |
| 1589 | return ErrInvalidLengthGenerated |
| 1590 | } |
| 1591 | if postIndex > l { |
| 1592 | return io.ErrUnexpectedEOF |
| 1593 | } |
| 1594 | m.Items = append(m.Items, VolumeAttachment{}) |
| 1595 | if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 1596 | return err |
| 1597 | } |
| 1598 | iNdEx = postIndex |
| 1599 | default: |
| 1600 | iNdEx = preIndex |
| 1601 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 1602 | if err != nil { |
| 1603 | return err |
| 1604 | } |
| 1605 | if skippy < 0 { |
| 1606 | return ErrInvalidLengthGenerated |
| 1607 | } |
| 1608 | if (iNdEx + skippy) < 0 { |
| 1609 | return ErrInvalidLengthGenerated |
| 1610 | } |
| 1611 | if (iNdEx + skippy) > l { |
| 1612 | return io.ErrUnexpectedEOF |
| 1613 | } |
| 1614 | iNdEx += skippy |
| 1615 | } |
| 1616 | } |
| 1617 | |
| 1618 | if iNdEx > l { |
| 1619 | return io.ErrUnexpectedEOF |
| 1620 | } |
| 1621 | return nil |
| 1622 | } |
| 1623 | func (m *VolumeAttachmentSource) Unmarshal(dAtA []byte) error { |
| 1624 | l := len(dAtA) |
| 1625 | iNdEx := 0 |
| 1626 | for iNdEx < l { |
| 1627 | preIndex := iNdEx |
| 1628 | var wire uint64 |
| 1629 | for shift := uint(0); ; shift += 7 { |
| 1630 | if shift >= 64 { |
| 1631 | return ErrIntOverflowGenerated |
| 1632 | } |
| 1633 | if iNdEx >= l { |
| 1634 | return io.ErrUnexpectedEOF |
| 1635 | } |
| 1636 | b := dAtA[iNdEx] |
| 1637 | iNdEx++ |
| 1638 | wire |= uint64(b&0x7F) << shift |
| 1639 | if b < 0x80 { |
| 1640 | break |
| 1641 | } |
| 1642 | } |
| 1643 | fieldNum := int32(wire >> 3) |
| 1644 | wireType := int(wire & 0x7) |
| 1645 | if wireType == 4 { |
| 1646 | return fmt.Errorf("proto: VolumeAttachmentSource: wiretype end group for non-group") |
| 1647 | } |
| 1648 | if fieldNum <= 0 { |
| 1649 | return fmt.Errorf("proto: VolumeAttachmentSource: illegal tag %d (wire type %d)", fieldNum, wire) |
| 1650 | } |
| 1651 | switch fieldNum { |
| 1652 | case 1: |
| 1653 | if wireType != 2 { |
| 1654 | return fmt.Errorf("proto: wrong wireType = %d for field PersistentVolumeName", wireType) |
| 1655 | } |
| 1656 | var stringLen uint64 |
| 1657 | for shift := uint(0); ; shift += 7 { |
| 1658 | if shift >= 64 { |
| 1659 | return ErrIntOverflowGenerated |
| 1660 | } |
| 1661 | if iNdEx >= l { |
| 1662 | return io.ErrUnexpectedEOF |
| 1663 | } |
| 1664 | b := dAtA[iNdEx] |
| 1665 | iNdEx++ |
| 1666 | stringLen |= uint64(b&0x7F) << shift |
| 1667 | if b < 0x80 { |
| 1668 | break |
| 1669 | } |
| 1670 | } |
| 1671 | intStringLen := int(stringLen) |
| 1672 | if intStringLen < 0 { |
| 1673 | return ErrInvalidLengthGenerated |
| 1674 | } |
| 1675 | postIndex := iNdEx + intStringLen |
| 1676 | if postIndex < 0 { |
| 1677 | return ErrInvalidLengthGenerated |
| 1678 | } |
| 1679 | if postIndex > l { |
| 1680 | return io.ErrUnexpectedEOF |
| 1681 | } |
| 1682 | s := string(dAtA[iNdEx:postIndex]) |
| 1683 | m.PersistentVolumeName = &s |
| 1684 | iNdEx = postIndex |
| 1685 | case 2: |
| 1686 | if wireType != 2 { |
| 1687 | return fmt.Errorf("proto: wrong wireType = %d for field InlineVolumeSpec", wireType) |
| 1688 | } |
| 1689 | var msglen int |
| 1690 | for shift := uint(0); ; shift += 7 { |
| 1691 | if shift >= 64 { |
| 1692 | return ErrIntOverflowGenerated |
| 1693 | } |
| 1694 | if iNdEx >= l { |
| 1695 | return io.ErrUnexpectedEOF |
| 1696 | } |
| 1697 | b := dAtA[iNdEx] |
| 1698 | iNdEx++ |
| 1699 | msglen |= int(b&0x7F) << shift |
| 1700 | if b < 0x80 { |
| 1701 | break |
| 1702 | } |
| 1703 | } |
| 1704 | if msglen < 0 { |
| 1705 | return ErrInvalidLengthGenerated |
| 1706 | } |
| 1707 | postIndex := iNdEx + msglen |
| 1708 | if postIndex < 0 { |
| 1709 | return ErrInvalidLengthGenerated |
| 1710 | } |
| 1711 | if postIndex > l { |
| 1712 | return io.ErrUnexpectedEOF |
| 1713 | } |
| 1714 | if m.InlineVolumeSpec == nil { |
| 1715 | m.InlineVolumeSpec = &v11.PersistentVolumeSpec{} |
| 1716 | } |
| 1717 | if err := m.InlineVolumeSpec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 1718 | return err |
| 1719 | } |
| 1720 | iNdEx = postIndex |
| 1721 | default: |
| 1722 | iNdEx = preIndex |
| 1723 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 1724 | if err != nil { |
| 1725 | return err |
| 1726 | } |
| 1727 | if skippy < 0 { |
| 1728 | return ErrInvalidLengthGenerated |
| 1729 | } |
| 1730 | if (iNdEx + skippy) < 0 { |
| 1731 | return ErrInvalidLengthGenerated |
| 1732 | } |
| 1733 | if (iNdEx + skippy) > l { |
| 1734 | return io.ErrUnexpectedEOF |
| 1735 | } |
| 1736 | iNdEx += skippy |
| 1737 | } |
| 1738 | } |
| 1739 | |
| 1740 | if iNdEx > l { |
| 1741 | return io.ErrUnexpectedEOF |
| 1742 | } |
| 1743 | return nil |
| 1744 | } |
| 1745 | func (m *VolumeAttachmentSpec) Unmarshal(dAtA []byte) error { |
| 1746 | l := len(dAtA) |
| 1747 | iNdEx := 0 |
| 1748 | for iNdEx < l { |
| 1749 | preIndex := iNdEx |
| 1750 | var wire uint64 |
| 1751 | for shift := uint(0); ; shift += 7 { |
| 1752 | if shift >= 64 { |
| 1753 | return ErrIntOverflowGenerated |
| 1754 | } |
| 1755 | if iNdEx >= l { |
| 1756 | return io.ErrUnexpectedEOF |
| 1757 | } |
| 1758 | b := dAtA[iNdEx] |
| 1759 | iNdEx++ |
| 1760 | wire |= uint64(b&0x7F) << shift |
| 1761 | if b < 0x80 { |
| 1762 | break |
| 1763 | } |
| 1764 | } |
| 1765 | fieldNum := int32(wire >> 3) |
| 1766 | wireType := int(wire & 0x7) |
| 1767 | if wireType == 4 { |
| 1768 | return fmt.Errorf("proto: VolumeAttachmentSpec: wiretype end group for non-group") |
| 1769 | } |
| 1770 | if fieldNum <= 0 { |
| 1771 | return fmt.Errorf("proto: VolumeAttachmentSpec: illegal tag %d (wire type %d)", fieldNum, wire) |
| 1772 | } |
| 1773 | switch fieldNum { |
| 1774 | case 1: |
| 1775 | if wireType != 2 { |
| 1776 | return fmt.Errorf("proto: wrong wireType = %d for field Attacher", wireType) |
| 1777 | } |
| 1778 | var stringLen uint64 |
| 1779 | for shift := uint(0); ; shift += 7 { |
| 1780 | if shift >= 64 { |
| 1781 | return ErrIntOverflowGenerated |
| 1782 | } |
| 1783 | if iNdEx >= l { |
| 1784 | return io.ErrUnexpectedEOF |
| 1785 | } |
| 1786 | b := dAtA[iNdEx] |
| 1787 | iNdEx++ |
| 1788 | stringLen |= uint64(b&0x7F) << shift |
| 1789 | if b < 0x80 { |
| 1790 | break |
| 1791 | } |
| 1792 | } |
| 1793 | intStringLen := int(stringLen) |
| 1794 | if intStringLen < 0 { |
| 1795 | return ErrInvalidLengthGenerated |
| 1796 | } |
| 1797 | postIndex := iNdEx + intStringLen |
| 1798 | if postIndex < 0 { |
| 1799 | return ErrInvalidLengthGenerated |
| 1800 | } |
| 1801 | if postIndex > l { |
| 1802 | return io.ErrUnexpectedEOF |
| 1803 | } |
| 1804 | m.Attacher = string(dAtA[iNdEx:postIndex]) |
| 1805 | iNdEx = postIndex |
| 1806 | case 2: |
| 1807 | if wireType != 2 { |
| 1808 | return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) |
| 1809 | } |
| 1810 | var msglen int |
| 1811 | for shift := uint(0); ; shift += 7 { |
| 1812 | if shift >= 64 { |
| 1813 | return ErrIntOverflowGenerated |
| 1814 | } |
| 1815 | if iNdEx >= l { |
| 1816 | return io.ErrUnexpectedEOF |
| 1817 | } |
| 1818 | b := dAtA[iNdEx] |
| 1819 | iNdEx++ |
| 1820 | msglen |= int(b&0x7F) << shift |
| 1821 | if b < 0x80 { |
| 1822 | break |
| 1823 | } |
| 1824 | } |
| 1825 | if msglen < 0 { |
| 1826 | return ErrInvalidLengthGenerated |
| 1827 | } |
| 1828 | postIndex := iNdEx + msglen |
| 1829 | if postIndex < 0 { |
| 1830 | return ErrInvalidLengthGenerated |
| 1831 | } |
| 1832 | if postIndex > l { |
| 1833 | return io.ErrUnexpectedEOF |
| 1834 | } |
| 1835 | if err := m.Source.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 1836 | return err |
| 1837 | } |
| 1838 | iNdEx = postIndex |
| 1839 | case 3: |
| 1840 | if wireType != 2 { |
| 1841 | return fmt.Errorf("proto: wrong wireType = %d for field NodeName", wireType) |
| 1842 | } |
| 1843 | var stringLen uint64 |
| 1844 | for shift := uint(0); ; shift += 7 { |
| 1845 | if shift >= 64 { |
| 1846 | return ErrIntOverflowGenerated |
| 1847 | } |
| 1848 | if iNdEx >= l { |
| 1849 | return io.ErrUnexpectedEOF |
| 1850 | } |
| 1851 | b := dAtA[iNdEx] |
| 1852 | iNdEx++ |
| 1853 | stringLen |= uint64(b&0x7F) << shift |
| 1854 | if b < 0x80 { |
| 1855 | break |
| 1856 | } |
| 1857 | } |
| 1858 | intStringLen := int(stringLen) |
| 1859 | if intStringLen < 0 { |
| 1860 | return ErrInvalidLengthGenerated |
| 1861 | } |
| 1862 | postIndex := iNdEx + intStringLen |
| 1863 | if postIndex < 0 { |
| 1864 | return ErrInvalidLengthGenerated |
| 1865 | } |
| 1866 | if postIndex > l { |
| 1867 | return io.ErrUnexpectedEOF |
| 1868 | } |
| 1869 | m.NodeName = string(dAtA[iNdEx:postIndex]) |
| 1870 | iNdEx = postIndex |
| 1871 | default: |
| 1872 | iNdEx = preIndex |
| 1873 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 1874 | if err != nil { |
| 1875 | return err |
| 1876 | } |
| 1877 | if skippy < 0 { |
| 1878 | return ErrInvalidLengthGenerated |
| 1879 | } |
| 1880 | if (iNdEx + skippy) < 0 { |
| 1881 | return ErrInvalidLengthGenerated |
| 1882 | } |
| 1883 | if (iNdEx + skippy) > l { |
| 1884 | return io.ErrUnexpectedEOF |
| 1885 | } |
| 1886 | iNdEx += skippy |
| 1887 | } |
| 1888 | } |
| 1889 | |
| 1890 | if iNdEx > l { |
| 1891 | return io.ErrUnexpectedEOF |
| 1892 | } |
| 1893 | return nil |
| 1894 | } |
| 1895 | func (m *VolumeAttachmentStatus) Unmarshal(dAtA []byte) error { |
| 1896 | l := len(dAtA) |
| 1897 | iNdEx := 0 |
| 1898 | for iNdEx < l { |
| 1899 | preIndex := iNdEx |
| 1900 | var wire uint64 |
| 1901 | for shift := uint(0); ; shift += 7 { |
| 1902 | if shift >= 64 { |
| 1903 | return ErrIntOverflowGenerated |
| 1904 | } |
| 1905 | if iNdEx >= l { |
| 1906 | return io.ErrUnexpectedEOF |
| 1907 | } |
| 1908 | b := dAtA[iNdEx] |
| 1909 | iNdEx++ |
| 1910 | wire |= uint64(b&0x7F) << shift |
| 1911 | if b < 0x80 { |
| 1912 | break |
| 1913 | } |
| 1914 | } |
| 1915 | fieldNum := int32(wire >> 3) |
| 1916 | wireType := int(wire & 0x7) |
| 1917 | if wireType == 4 { |
| 1918 | return fmt.Errorf("proto: VolumeAttachmentStatus: wiretype end group for non-group") |
| 1919 | } |
| 1920 | if fieldNum <= 0 { |
| 1921 | return fmt.Errorf("proto: VolumeAttachmentStatus: illegal tag %d (wire type %d)", fieldNum, wire) |
| 1922 | } |
| 1923 | switch fieldNum { |
| 1924 | case 1: |
| 1925 | if wireType != 0 { |
| 1926 | return fmt.Errorf("proto: wrong wireType = %d for field Attached", wireType) |
| 1927 | } |
| 1928 | var v int |
| 1929 | for shift := uint(0); ; shift += 7 { |
| 1930 | if shift >= 64 { |
| 1931 | return ErrIntOverflowGenerated |
| 1932 | } |
| 1933 | if iNdEx >= l { |
| 1934 | return io.ErrUnexpectedEOF |
| 1935 | } |
| 1936 | b := dAtA[iNdEx] |
| 1937 | iNdEx++ |
| 1938 | v |= int(b&0x7F) << shift |
| 1939 | if b < 0x80 { |
| 1940 | break |
| 1941 | } |
| 1942 | } |
| 1943 | m.Attached = bool(v != 0) |
| 1944 | case 2: |
| 1945 | if wireType != 2 { |
| 1946 | return fmt.Errorf("proto: wrong wireType = %d for field AttachmentMetadata", wireType) |
| 1947 | } |
| 1948 | var msglen int |
| 1949 | for shift := uint(0); ; shift += 7 { |
| 1950 | if shift >= 64 { |
| 1951 | return ErrIntOverflowGenerated |
| 1952 | } |
| 1953 | if iNdEx >= l { |
| 1954 | return io.ErrUnexpectedEOF |
| 1955 | } |
| 1956 | b := dAtA[iNdEx] |
| 1957 | iNdEx++ |
| 1958 | msglen |= int(b&0x7F) << shift |
| 1959 | if b < 0x80 { |
| 1960 | break |
| 1961 | } |
| 1962 | } |
| 1963 | if msglen < 0 { |
| 1964 | return ErrInvalidLengthGenerated |
| 1965 | } |
| 1966 | postIndex := iNdEx + msglen |
| 1967 | if postIndex < 0 { |
| 1968 | return ErrInvalidLengthGenerated |
| 1969 | } |
| 1970 | if postIndex > l { |
| 1971 | return io.ErrUnexpectedEOF |
| 1972 | } |
| 1973 | if m.AttachmentMetadata == nil { |
| 1974 | m.AttachmentMetadata = make(map[string]string) |
| 1975 | } |
| 1976 | var mapkey string |
| 1977 | var mapvalue string |
| 1978 | for iNdEx < postIndex { |
| 1979 | entryPreIndex := iNdEx |
| 1980 | var wire uint64 |
| 1981 | for shift := uint(0); ; shift += 7 { |
| 1982 | if shift >= 64 { |
| 1983 | return ErrIntOverflowGenerated |
| 1984 | } |
| 1985 | if iNdEx >= l { |
| 1986 | return io.ErrUnexpectedEOF |
| 1987 | } |
| 1988 | b := dAtA[iNdEx] |
| 1989 | iNdEx++ |
| 1990 | wire |= uint64(b&0x7F) << shift |
| 1991 | if b < 0x80 { |
| 1992 | break |
| 1993 | } |
| 1994 | } |
| 1995 | fieldNum := int32(wire >> 3) |
| 1996 | if fieldNum == 1 { |
| 1997 | var stringLenmapkey uint64 |
| 1998 | for shift := uint(0); ; shift += 7 { |
| 1999 | if shift >= 64 { |
| 2000 | return ErrIntOverflowGenerated |
| 2001 | } |
| 2002 | if iNdEx >= l { |
| 2003 | return io.ErrUnexpectedEOF |
| 2004 | } |
| 2005 | b := dAtA[iNdEx] |
| 2006 | iNdEx++ |
| 2007 | stringLenmapkey |= uint64(b&0x7F) << shift |
| 2008 | if b < 0x80 { |
| 2009 | break |
| 2010 | } |
| 2011 | } |
| 2012 | intStringLenmapkey := int(stringLenmapkey) |
| 2013 | if intStringLenmapkey < 0 { |
| 2014 | return ErrInvalidLengthGenerated |
| 2015 | } |
| 2016 | postStringIndexmapkey := iNdEx + intStringLenmapkey |
| 2017 | if postStringIndexmapkey < 0 { |
| 2018 | return ErrInvalidLengthGenerated |
| 2019 | } |
| 2020 | if postStringIndexmapkey > l { |
| 2021 | return io.ErrUnexpectedEOF |
| 2022 | } |
| 2023 | mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) |
| 2024 | iNdEx = postStringIndexmapkey |
| 2025 | } else if fieldNum == 2 { |
| 2026 | var stringLenmapvalue uint64 |
| 2027 | for shift := uint(0); ; shift += 7 { |
| 2028 | if shift >= 64 { |
| 2029 | return ErrIntOverflowGenerated |
| 2030 | } |
| 2031 | if iNdEx >= l { |
| 2032 | return io.ErrUnexpectedEOF |
| 2033 | } |
| 2034 | b := dAtA[iNdEx] |
| 2035 | iNdEx++ |
| 2036 | stringLenmapvalue |= uint64(b&0x7F) << shift |
| 2037 | if b < 0x80 { |
| 2038 | break |
| 2039 | } |
| 2040 | } |
| 2041 | intStringLenmapvalue := int(stringLenmapvalue) |
| 2042 | if intStringLenmapvalue < 0 { |
| 2043 | return ErrInvalidLengthGenerated |
| 2044 | } |
| 2045 | postStringIndexmapvalue := iNdEx + intStringLenmapvalue |
| 2046 | if postStringIndexmapvalue < 0 { |
| 2047 | return ErrInvalidLengthGenerated |
| 2048 | } |
| 2049 | if postStringIndexmapvalue > l { |
| 2050 | return io.ErrUnexpectedEOF |
| 2051 | } |
| 2052 | mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) |
| 2053 | iNdEx = postStringIndexmapvalue |
| 2054 | } else { |
| 2055 | iNdEx = entryPreIndex |
| 2056 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 2057 | if err != nil { |
| 2058 | return err |
| 2059 | } |
| 2060 | if skippy < 0 { |
| 2061 | return ErrInvalidLengthGenerated |
| 2062 | } |
| 2063 | if (iNdEx + skippy) > postIndex { |
| 2064 | return io.ErrUnexpectedEOF |
| 2065 | } |
| 2066 | iNdEx += skippy |
| 2067 | } |
| 2068 | } |
| 2069 | m.AttachmentMetadata[mapkey] = mapvalue |
| 2070 | iNdEx = postIndex |
| 2071 | case 3: |
| 2072 | if wireType != 2 { |
| 2073 | return fmt.Errorf("proto: wrong wireType = %d for field AttachError", wireType) |
| 2074 | } |
| 2075 | var msglen int |
| 2076 | for shift := uint(0); ; shift += 7 { |
| 2077 | if shift >= 64 { |
| 2078 | return ErrIntOverflowGenerated |
| 2079 | } |
| 2080 | if iNdEx >= l { |
| 2081 | return io.ErrUnexpectedEOF |
| 2082 | } |
| 2083 | b := dAtA[iNdEx] |
| 2084 | iNdEx++ |
| 2085 | msglen |= int(b&0x7F) << shift |
| 2086 | if b < 0x80 { |
| 2087 | break |
| 2088 | } |
| 2089 | } |
| 2090 | if msglen < 0 { |
| 2091 | return ErrInvalidLengthGenerated |
| 2092 | } |
| 2093 | postIndex := iNdEx + msglen |
| 2094 | if postIndex < 0 { |
| 2095 | return ErrInvalidLengthGenerated |
| 2096 | } |
| 2097 | if postIndex > l { |
| 2098 | return io.ErrUnexpectedEOF |
| 2099 | } |
| 2100 | if m.AttachError == nil { |
| 2101 | m.AttachError = &VolumeError{} |
| 2102 | } |
| 2103 | if err := m.AttachError.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 2104 | return err |
| 2105 | } |
| 2106 | iNdEx = postIndex |
| 2107 | case 4: |
| 2108 | if wireType != 2 { |
| 2109 | return fmt.Errorf("proto: wrong wireType = %d for field DetachError", wireType) |
| 2110 | } |
| 2111 | var msglen int |
| 2112 | for shift := uint(0); ; shift += 7 { |
| 2113 | if shift >= 64 { |
| 2114 | return ErrIntOverflowGenerated |
| 2115 | } |
| 2116 | if iNdEx >= l { |
| 2117 | return io.ErrUnexpectedEOF |
| 2118 | } |
| 2119 | b := dAtA[iNdEx] |
| 2120 | iNdEx++ |
| 2121 | msglen |= int(b&0x7F) << shift |
| 2122 | if b < 0x80 { |
| 2123 | break |
| 2124 | } |
| 2125 | } |
| 2126 | if msglen < 0 { |
| 2127 | return ErrInvalidLengthGenerated |
| 2128 | } |
| 2129 | postIndex := iNdEx + msglen |
| 2130 | if postIndex < 0 { |
| 2131 | return ErrInvalidLengthGenerated |
| 2132 | } |
| 2133 | if postIndex > l { |
| 2134 | return io.ErrUnexpectedEOF |
| 2135 | } |
| 2136 | if m.DetachError == nil { |
| 2137 | m.DetachError = &VolumeError{} |
| 2138 | } |
| 2139 | if err := m.DetachError.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 2140 | return err |
| 2141 | } |
| 2142 | iNdEx = postIndex |
| 2143 | default: |
| 2144 | iNdEx = preIndex |
| 2145 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 2146 | if err != nil { |
| 2147 | return err |
| 2148 | } |
| 2149 | if skippy < 0 { |
| 2150 | return ErrInvalidLengthGenerated |
| 2151 | } |
| 2152 | if (iNdEx + skippy) < 0 { |
| 2153 | return ErrInvalidLengthGenerated |
| 2154 | } |
| 2155 | if (iNdEx + skippy) > l { |
| 2156 | return io.ErrUnexpectedEOF |
| 2157 | } |
| 2158 | iNdEx += skippy |
| 2159 | } |
| 2160 | } |
| 2161 | |
| 2162 | if iNdEx > l { |
| 2163 | return io.ErrUnexpectedEOF |
| 2164 | } |
| 2165 | return nil |
| 2166 | } |
| 2167 | func (m *VolumeError) Unmarshal(dAtA []byte) error { |
| 2168 | l := len(dAtA) |
| 2169 | iNdEx := 0 |
| 2170 | for iNdEx < l { |
| 2171 | preIndex := iNdEx |
| 2172 | var wire uint64 |
| 2173 | for shift := uint(0); ; shift += 7 { |
| 2174 | if shift >= 64 { |
| 2175 | return ErrIntOverflowGenerated |
| 2176 | } |
| 2177 | if iNdEx >= l { |
| 2178 | return io.ErrUnexpectedEOF |
| 2179 | } |
| 2180 | b := dAtA[iNdEx] |
| 2181 | iNdEx++ |
| 2182 | wire |= uint64(b&0x7F) << shift |
| 2183 | if b < 0x80 { |
| 2184 | break |
| 2185 | } |
| 2186 | } |
| 2187 | fieldNum := int32(wire >> 3) |
| 2188 | wireType := int(wire & 0x7) |
| 2189 | if wireType == 4 { |
| 2190 | return fmt.Errorf("proto: VolumeError: wiretype end group for non-group") |
| 2191 | } |
| 2192 | if fieldNum <= 0 { |
| 2193 | return fmt.Errorf("proto: VolumeError: illegal tag %d (wire type %d)", fieldNum, wire) |
| 2194 | } |
| 2195 | switch fieldNum { |
| 2196 | case 1: |
| 2197 | if wireType != 2 { |
| 2198 | return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType) |
| 2199 | } |
| 2200 | var msglen int |
| 2201 | for shift := uint(0); ; shift += 7 { |
| 2202 | if shift >= 64 { |
| 2203 | return ErrIntOverflowGenerated |
| 2204 | } |
| 2205 | if iNdEx >= l { |
| 2206 | return io.ErrUnexpectedEOF |
| 2207 | } |
| 2208 | b := dAtA[iNdEx] |
| 2209 | iNdEx++ |
| 2210 | msglen |= int(b&0x7F) << shift |
| 2211 | if b < 0x80 { |
| 2212 | break |
| 2213 | } |
| 2214 | } |
| 2215 | if msglen < 0 { |
| 2216 | return ErrInvalidLengthGenerated |
| 2217 | } |
| 2218 | postIndex := iNdEx + msglen |
| 2219 | if postIndex < 0 { |
| 2220 | return ErrInvalidLengthGenerated |
| 2221 | } |
| 2222 | if postIndex > l { |
| 2223 | return io.ErrUnexpectedEOF |
| 2224 | } |
| 2225 | if err := m.Time.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 2226 | return err |
| 2227 | } |
| 2228 | iNdEx = postIndex |
| 2229 | case 2: |
| 2230 | if wireType != 2 { |
| 2231 | return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) |
| 2232 | } |
| 2233 | var stringLen uint64 |
| 2234 | for shift := uint(0); ; shift += 7 { |
| 2235 | if shift >= 64 { |
| 2236 | return ErrIntOverflowGenerated |
| 2237 | } |
| 2238 | if iNdEx >= l { |
| 2239 | return io.ErrUnexpectedEOF |
| 2240 | } |
| 2241 | b := dAtA[iNdEx] |
| 2242 | iNdEx++ |
| 2243 | stringLen |= uint64(b&0x7F) << shift |
| 2244 | if b < 0x80 { |
| 2245 | break |
| 2246 | } |
| 2247 | } |
| 2248 | intStringLen := int(stringLen) |
| 2249 | if intStringLen < 0 { |
| 2250 | return ErrInvalidLengthGenerated |
| 2251 | } |
| 2252 | postIndex := iNdEx + intStringLen |
| 2253 | if postIndex < 0 { |
| 2254 | return ErrInvalidLengthGenerated |
| 2255 | } |
| 2256 | if postIndex > l { |
| 2257 | return io.ErrUnexpectedEOF |
| 2258 | } |
| 2259 | m.Message = string(dAtA[iNdEx:postIndex]) |
| 2260 | iNdEx = postIndex |
| 2261 | default: |
| 2262 | iNdEx = preIndex |
| 2263 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 2264 | if err != nil { |
| 2265 | return err |
| 2266 | } |
| 2267 | if skippy < 0 { |
| 2268 | return ErrInvalidLengthGenerated |
| 2269 | } |
| 2270 | if (iNdEx + skippy) < 0 { |
| 2271 | return ErrInvalidLengthGenerated |
| 2272 | } |
| 2273 | if (iNdEx + skippy) > l { |
| 2274 | return io.ErrUnexpectedEOF |
| 2275 | } |
| 2276 | iNdEx += skippy |
| 2277 | } |
| 2278 | } |
| 2279 | |
| 2280 | if iNdEx > l { |
| 2281 | return io.ErrUnexpectedEOF |
| 2282 | } |
| 2283 | return nil |
| 2284 | } |
| 2285 | func skipGenerated(dAtA []byte) (n int, err error) { |
| 2286 | l := len(dAtA) |
| 2287 | iNdEx := 0 |
| 2288 | depth := 0 |
| 2289 | for iNdEx < l { |
| 2290 | var wire uint64 |
| 2291 | for shift := uint(0); ; shift += 7 { |
| 2292 | if shift >= 64 { |
| 2293 | return 0, ErrIntOverflowGenerated |
| 2294 | } |
| 2295 | if iNdEx >= l { |
| 2296 | return 0, io.ErrUnexpectedEOF |
| 2297 | } |
| 2298 | b := dAtA[iNdEx] |
| 2299 | iNdEx++ |
| 2300 | wire |= (uint64(b) & 0x7F) << shift |
| 2301 | if b < 0x80 { |
| 2302 | break |
| 2303 | } |
| 2304 | } |
| 2305 | wireType := int(wire & 0x7) |
| 2306 | switch wireType { |
| 2307 | case 0: |
| 2308 | for shift := uint(0); ; shift += 7 { |
| 2309 | if shift >= 64 { |
| 2310 | return 0, ErrIntOverflowGenerated |
| 2311 | } |
| 2312 | if iNdEx >= l { |
| 2313 | return 0, io.ErrUnexpectedEOF |
| 2314 | } |
| 2315 | iNdEx++ |
| 2316 | if dAtA[iNdEx-1] < 0x80 { |
| 2317 | break |
| 2318 | } |
| 2319 | } |
| 2320 | case 1: |
| 2321 | iNdEx += 8 |
| 2322 | case 2: |
| 2323 | var length int |
| 2324 | for shift := uint(0); ; shift += 7 { |
| 2325 | if shift >= 64 { |
| 2326 | return 0, ErrIntOverflowGenerated |
| 2327 | } |
| 2328 | if iNdEx >= l { |
| 2329 | return 0, io.ErrUnexpectedEOF |
| 2330 | } |
| 2331 | b := dAtA[iNdEx] |
| 2332 | iNdEx++ |
| 2333 | length |= (int(b) & 0x7F) << shift |
| 2334 | if b < 0x80 { |
| 2335 | break |
| 2336 | } |
| 2337 | } |
| 2338 | if length < 0 { |
| 2339 | return 0, ErrInvalidLengthGenerated |
| 2340 | } |
| 2341 | iNdEx += length |
| 2342 | case 3: |
| 2343 | depth++ |
| 2344 | case 4: |
| 2345 | if depth == 0 { |
| 2346 | return 0, ErrUnexpectedEndOfGroupGenerated |
| 2347 | } |
| 2348 | depth-- |
| 2349 | case 5: |
| 2350 | iNdEx += 4 |
| 2351 | default: |
| 2352 | return 0, fmt.Errorf("proto: illegal wireType %d", wireType) |
| 2353 | } |
| 2354 | if iNdEx < 0 { |
| 2355 | return 0, ErrInvalidLengthGenerated |
| 2356 | } |
| 2357 | if depth == 0 { |
| 2358 | return iNdEx, nil |
| 2359 | } |
| 2360 | } |
| 2361 | return 0, io.ErrUnexpectedEOF |
| 2362 | } |
| 2363 | |
| 2364 | var ( |
| 2365 | ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") |
| 2366 | ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") |
| 2367 | ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") |
| 2368 | ) |