github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/pkg/ccl/storageccl/engineccl/enginepbccl/stats.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: ccl/storageccl/engineccl/enginepbccl/stats.proto 3 4 package enginepbccl 5 6 import proto "github.com/gogo/protobuf/proto" 7 import fmt "fmt" 8 import math "math" 9 10 import io "io" 11 12 // Reference imports to suppress errors if they are not otherwise used. 13 var _ = proto.Marshal 14 var _ = fmt.Errorf 15 var _ = math.Inf 16 17 // This is a compile-time assertion to ensure that this generated file 18 // is compatible with the proto package it is being compiled against. 19 // A compilation error at this line likely means your copy of the 20 // proto package needs to be updated. 21 const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package 22 23 // EncryptionStatus contains encryption-related information. 24 type EncryptionStatus struct { 25 // Information about the active store key, if any. 26 ActiveStoreKey *KeyInfo `protobuf:"bytes,1,opt,name=active_store_key,json=activeStoreKey,proto3" json:"active_store_key,omitempty"` 27 // Information about the active data key, if any. 28 ActiveDataKey *KeyInfo `protobuf:"bytes,2,opt,name=active_data_key,json=activeDataKey,proto3" json:"active_data_key,omitempty"` 29 } 30 31 func (m *EncryptionStatus) Reset() { *m = EncryptionStatus{} } 32 func (m *EncryptionStatus) String() string { return proto.CompactTextString(m) } 33 func (*EncryptionStatus) ProtoMessage() {} 34 func (*EncryptionStatus) Descriptor() ([]byte, []int) { 35 return fileDescriptor_stats_7873e8ad9241be3d, []int{0} 36 } 37 func (m *EncryptionStatus) XXX_Unmarshal(b []byte) error { 38 return m.Unmarshal(b) 39 } 40 func (m *EncryptionStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 41 b = b[:cap(b)] 42 n, err := m.MarshalTo(b) 43 if err != nil { 44 return nil, err 45 } 46 return b[:n], nil 47 } 48 func (dst *EncryptionStatus) XXX_Merge(src proto.Message) { 49 xxx_messageInfo_EncryptionStatus.Merge(dst, src) 50 } 51 func (m *EncryptionStatus) XXX_Size() int { 52 return m.Size() 53 } 54 func (m *EncryptionStatus) XXX_DiscardUnknown() { 55 xxx_messageInfo_EncryptionStatus.DiscardUnknown(m) 56 } 57 58 var xxx_messageInfo_EncryptionStatus proto.InternalMessageInfo 59 60 func init() { 61 proto.RegisterType((*EncryptionStatus)(nil), "cockroach.ccl.storageccl.engineccl.enginepbccl.EncryptionStatus") 62 } 63 func (m *EncryptionStatus) Marshal() (dAtA []byte, err error) { 64 size := m.Size() 65 dAtA = make([]byte, size) 66 n, err := m.MarshalTo(dAtA) 67 if err != nil { 68 return nil, err 69 } 70 return dAtA[:n], nil 71 } 72 73 func (m *EncryptionStatus) MarshalTo(dAtA []byte) (int, error) { 74 var i int 75 _ = i 76 var l int 77 _ = l 78 if m.ActiveStoreKey != nil { 79 dAtA[i] = 0xa 80 i++ 81 i = encodeVarintStats(dAtA, i, uint64(m.ActiveStoreKey.Size())) 82 n1, err := m.ActiveStoreKey.MarshalTo(dAtA[i:]) 83 if err != nil { 84 return 0, err 85 } 86 i += n1 87 } 88 if m.ActiveDataKey != nil { 89 dAtA[i] = 0x12 90 i++ 91 i = encodeVarintStats(dAtA, i, uint64(m.ActiveDataKey.Size())) 92 n2, err := m.ActiveDataKey.MarshalTo(dAtA[i:]) 93 if err != nil { 94 return 0, err 95 } 96 i += n2 97 } 98 return i, nil 99 } 100 101 func encodeVarintStats(dAtA []byte, offset int, v uint64) int { 102 for v >= 1<<7 { 103 dAtA[offset] = uint8(v&0x7f | 0x80) 104 v >>= 7 105 offset++ 106 } 107 dAtA[offset] = uint8(v) 108 return offset + 1 109 } 110 func (m *EncryptionStatus) Size() (n int) { 111 if m == nil { 112 return 0 113 } 114 var l int 115 _ = l 116 if m.ActiveStoreKey != nil { 117 l = m.ActiveStoreKey.Size() 118 n += 1 + l + sovStats(uint64(l)) 119 } 120 if m.ActiveDataKey != nil { 121 l = m.ActiveDataKey.Size() 122 n += 1 + l + sovStats(uint64(l)) 123 } 124 return n 125 } 126 127 func sovStats(x uint64) (n int) { 128 for { 129 n++ 130 x >>= 7 131 if x == 0 { 132 break 133 } 134 } 135 return n 136 } 137 func sozStats(x uint64) (n int) { 138 return sovStats(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 139 } 140 func (m *EncryptionStatus) Unmarshal(dAtA []byte) error { 141 l := len(dAtA) 142 iNdEx := 0 143 for iNdEx < l { 144 preIndex := iNdEx 145 var wire uint64 146 for shift := uint(0); ; shift += 7 { 147 if shift >= 64 { 148 return ErrIntOverflowStats 149 } 150 if iNdEx >= l { 151 return io.ErrUnexpectedEOF 152 } 153 b := dAtA[iNdEx] 154 iNdEx++ 155 wire |= (uint64(b) & 0x7F) << shift 156 if b < 0x80 { 157 break 158 } 159 } 160 fieldNum := int32(wire >> 3) 161 wireType := int(wire & 0x7) 162 if wireType == 4 { 163 return fmt.Errorf("proto: EncryptionStatus: wiretype end group for non-group") 164 } 165 if fieldNum <= 0 { 166 return fmt.Errorf("proto: EncryptionStatus: illegal tag %d (wire type %d)", fieldNum, wire) 167 } 168 switch fieldNum { 169 case 1: 170 if wireType != 2 { 171 return fmt.Errorf("proto: wrong wireType = %d for field ActiveStoreKey", wireType) 172 } 173 var msglen int 174 for shift := uint(0); ; shift += 7 { 175 if shift >= 64 { 176 return ErrIntOverflowStats 177 } 178 if iNdEx >= l { 179 return io.ErrUnexpectedEOF 180 } 181 b := dAtA[iNdEx] 182 iNdEx++ 183 msglen |= (int(b) & 0x7F) << shift 184 if b < 0x80 { 185 break 186 } 187 } 188 if msglen < 0 { 189 return ErrInvalidLengthStats 190 } 191 postIndex := iNdEx + msglen 192 if postIndex > l { 193 return io.ErrUnexpectedEOF 194 } 195 if m.ActiveStoreKey == nil { 196 m.ActiveStoreKey = &KeyInfo{} 197 } 198 if err := m.ActiveStoreKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 199 return err 200 } 201 iNdEx = postIndex 202 case 2: 203 if wireType != 2 { 204 return fmt.Errorf("proto: wrong wireType = %d for field ActiveDataKey", wireType) 205 } 206 var msglen int 207 for shift := uint(0); ; shift += 7 { 208 if shift >= 64 { 209 return ErrIntOverflowStats 210 } 211 if iNdEx >= l { 212 return io.ErrUnexpectedEOF 213 } 214 b := dAtA[iNdEx] 215 iNdEx++ 216 msglen |= (int(b) & 0x7F) << shift 217 if b < 0x80 { 218 break 219 } 220 } 221 if msglen < 0 { 222 return ErrInvalidLengthStats 223 } 224 postIndex := iNdEx + msglen 225 if postIndex > l { 226 return io.ErrUnexpectedEOF 227 } 228 if m.ActiveDataKey == nil { 229 m.ActiveDataKey = &KeyInfo{} 230 } 231 if err := m.ActiveDataKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 232 return err 233 } 234 iNdEx = postIndex 235 default: 236 iNdEx = preIndex 237 skippy, err := skipStats(dAtA[iNdEx:]) 238 if err != nil { 239 return err 240 } 241 if skippy < 0 { 242 return ErrInvalidLengthStats 243 } 244 if (iNdEx + skippy) > l { 245 return io.ErrUnexpectedEOF 246 } 247 iNdEx += skippy 248 } 249 } 250 251 if iNdEx > l { 252 return io.ErrUnexpectedEOF 253 } 254 return nil 255 } 256 func skipStats(dAtA []byte) (n int, err error) { 257 l := len(dAtA) 258 iNdEx := 0 259 for iNdEx < l { 260 var wire uint64 261 for shift := uint(0); ; shift += 7 { 262 if shift >= 64 { 263 return 0, ErrIntOverflowStats 264 } 265 if iNdEx >= l { 266 return 0, io.ErrUnexpectedEOF 267 } 268 b := dAtA[iNdEx] 269 iNdEx++ 270 wire |= (uint64(b) & 0x7F) << shift 271 if b < 0x80 { 272 break 273 } 274 } 275 wireType := int(wire & 0x7) 276 switch wireType { 277 case 0: 278 for shift := uint(0); ; shift += 7 { 279 if shift >= 64 { 280 return 0, ErrIntOverflowStats 281 } 282 if iNdEx >= l { 283 return 0, io.ErrUnexpectedEOF 284 } 285 iNdEx++ 286 if dAtA[iNdEx-1] < 0x80 { 287 break 288 } 289 } 290 return iNdEx, nil 291 case 1: 292 iNdEx += 8 293 return iNdEx, nil 294 case 2: 295 var length int 296 for shift := uint(0); ; shift += 7 { 297 if shift >= 64 { 298 return 0, ErrIntOverflowStats 299 } 300 if iNdEx >= l { 301 return 0, io.ErrUnexpectedEOF 302 } 303 b := dAtA[iNdEx] 304 iNdEx++ 305 length |= (int(b) & 0x7F) << shift 306 if b < 0x80 { 307 break 308 } 309 } 310 iNdEx += length 311 if length < 0 { 312 return 0, ErrInvalidLengthStats 313 } 314 return iNdEx, nil 315 case 3: 316 for { 317 var innerWire uint64 318 var start int = iNdEx 319 for shift := uint(0); ; shift += 7 { 320 if shift >= 64 { 321 return 0, ErrIntOverflowStats 322 } 323 if iNdEx >= l { 324 return 0, io.ErrUnexpectedEOF 325 } 326 b := dAtA[iNdEx] 327 iNdEx++ 328 innerWire |= (uint64(b) & 0x7F) << shift 329 if b < 0x80 { 330 break 331 } 332 } 333 innerWireType := int(innerWire & 0x7) 334 if innerWireType == 4 { 335 break 336 } 337 next, err := skipStats(dAtA[start:]) 338 if err != nil { 339 return 0, err 340 } 341 iNdEx = start + next 342 } 343 return iNdEx, nil 344 case 4: 345 return iNdEx, nil 346 case 5: 347 iNdEx += 4 348 return iNdEx, nil 349 default: 350 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 351 } 352 } 353 panic("unreachable") 354 } 355 356 var ( 357 ErrInvalidLengthStats = fmt.Errorf("proto: negative length found during unmarshaling") 358 ErrIntOverflowStats = fmt.Errorf("proto: integer overflow") 359 ) 360 361 func init() { 362 proto.RegisterFile("ccl/storageccl/engineccl/enginepbccl/stats.proto", fileDescriptor_stats_7873e8ad9241be3d) 363 } 364 365 var fileDescriptor_stats_7873e8ad9241be3d = []byte{ 366 // 252 bytes of a gzipped FileDescriptorProto 367 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x90, 0xb1, 0x4e, 0xc3, 0x30, 368 0x10, 0x86, 0x63, 0x06, 0x86, 0x54, 0x40, 0x55, 0x31, 0xa0, 0x0e, 0x16, 0x62, 0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