github.com/shishir-a412ed/docker@v1.3.2-0.20180103180333-fda904911d87/api/types/plugins/logdriver/entry.pb.go (about) 1 // Code generated by protoc-gen-gogo. 2 // source: entry.proto 3 // DO NOT EDIT! 4 5 /* 6 Package logdriver is a generated protocol buffer package. 7 8 It is generated from these files: 9 entry.proto 10 11 It has these top-level messages: 12 LogEntry 13 */ 14 package logdriver 15 16 import proto "github.com/gogo/protobuf/proto" 17 import fmt "fmt" 18 import math "math" 19 20 import io "io" 21 22 // Reference imports to suppress errors if they are not otherwise used. 23 var _ = proto.Marshal 24 var _ = fmt.Errorf 25 var _ = math.Inf 26 27 // This is a compile-time assertion to ensure that this generated file 28 // is compatible with the proto package it is being compiled against. 29 // A compilation error at this line likely means your copy of the 30 // proto package needs to be updated. 31 const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package 32 33 type LogEntry struct { 34 Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` 35 TimeNano int64 `protobuf:"varint,2,opt,name=time_nano,json=timeNano,proto3" json:"time_nano,omitempty"` 36 Line []byte `protobuf:"bytes,3,opt,name=line,proto3" json:"line,omitempty"` 37 Partial bool `protobuf:"varint,4,opt,name=partial,proto3" json:"partial,omitempty"` 38 } 39 40 func (m *LogEntry) Reset() { *m = LogEntry{} } 41 func (m *LogEntry) String() string { return proto.CompactTextString(m) } 42 func (*LogEntry) ProtoMessage() {} 43 func (*LogEntry) Descriptor() ([]byte, []int) { return fileDescriptorEntry, []int{0} } 44 45 func (m *LogEntry) GetSource() string { 46 if m != nil { 47 return m.Source 48 } 49 return "" 50 } 51 52 func (m *LogEntry) GetTimeNano() int64 { 53 if m != nil { 54 return m.TimeNano 55 } 56 return 0 57 } 58 59 func (m *LogEntry) GetLine() []byte { 60 if m != nil { 61 return m.Line 62 } 63 return nil 64 } 65 66 func (m *LogEntry) GetPartial() bool { 67 if m != nil { 68 return m.Partial 69 } 70 return false 71 } 72 73 func init() { 74 proto.RegisterType((*LogEntry)(nil), "LogEntry") 75 } 76 func (m *LogEntry) Marshal() (dAtA []byte, err error) { 77 size := m.Size() 78 dAtA = make([]byte, size) 79 n, err := m.MarshalTo(dAtA) 80 if err != nil { 81 return nil, err 82 } 83 return dAtA[:n], nil 84 } 85 86 func (m *LogEntry) MarshalTo(dAtA []byte) (int, error) { 87 var i int 88 _ = i 89 var l int 90 _ = l 91 if len(m.Source) > 0 { 92 dAtA[i] = 0xa 93 i++ 94 i = encodeVarintEntry(dAtA, i, uint64(len(m.Source))) 95 i += copy(dAtA[i:], m.Source) 96 } 97 if m.TimeNano != 0 { 98 dAtA[i] = 0x10 99 i++ 100 i = encodeVarintEntry(dAtA, i, uint64(m.TimeNano)) 101 } 102 if len(m.Line) > 0 { 103 dAtA[i] = 0x1a 104 i++ 105 i = encodeVarintEntry(dAtA, i, uint64(len(m.Line))) 106 i += copy(dAtA[i:], m.Line) 107 } 108 if m.Partial { 109 dAtA[i] = 0x20 110 i++ 111 if m.Partial { 112 dAtA[i] = 1 113 } else { 114 dAtA[i] = 0 115 } 116 i++ 117 } 118 return i, nil 119 } 120 121 func encodeFixed64Entry(dAtA []byte, offset int, v uint64) int { 122 dAtA[offset] = uint8(v) 123 dAtA[offset+1] = uint8(v >> 8) 124 dAtA[offset+2] = uint8(v >> 16) 125 dAtA[offset+3] = uint8(v >> 24) 126 dAtA[offset+4] = uint8(v >> 32) 127 dAtA[offset+5] = uint8(v >> 40) 128 dAtA[offset+6] = uint8(v >> 48) 129 dAtA[offset+7] = uint8(v >> 56) 130 return offset + 8 131 } 132 func encodeFixed32Entry(dAtA []byte, offset int, v uint32) int { 133 dAtA[offset] = uint8(v) 134 dAtA[offset+1] = uint8(v >> 8) 135 dAtA[offset+2] = uint8(v >> 16) 136 dAtA[offset+3] = uint8(v >> 24) 137 return offset + 4 138 } 139 func encodeVarintEntry(dAtA []byte, offset int, v uint64) int { 140 for v >= 1<<7 { 141 dAtA[offset] = uint8(v&0x7f | 0x80) 142 v >>= 7 143 offset++ 144 } 145 dAtA[offset] = uint8(v) 146 return offset + 1 147 } 148 func (m *LogEntry) Size() (n int) { 149 var l int 150 _ = l 151 l = len(m.Source) 152 if l > 0 { 153 n += 1 + l + sovEntry(uint64(l)) 154 } 155 if m.TimeNano != 0 { 156 n += 1 + sovEntry(uint64(m.TimeNano)) 157 } 158 l = len(m.Line) 159 if l > 0 { 160 n += 1 + l + sovEntry(uint64(l)) 161 } 162 if m.Partial { 163 n += 2 164 } 165 return n 166 } 167 168 func sovEntry(x uint64) (n int) { 169 for { 170 n++ 171 x >>= 7 172 if x == 0 { 173 break 174 } 175 } 176 return n 177 } 178 func sozEntry(x uint64) (n int) { 179 return sovEntry(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 180 } 181 func (m *LogEntry) Unmarshal(dAtA []byte) error { 182 l := len(dAtA) 183 iNdEx := 0 184 for iNdEx < l { 185 preIndex := iNdEx 186 var wire uint64 187 for shift := uint(0); ; shift += 7 { 188 if shift >= 64 { 189 return ErrIntOverflowEntry 190 } 191 if iNdEx >= l { 192 return io.ErrUnexpectedEOF 193 } 194 b := dAtA[iNdEx] 195 iNdEx++ 196 wire |= (uint64(b) & 0x7F) << shift 197 if b < 0x80 { 198 break 199 } 200 } 201 fieldNum := int32(wire >> 3) 202 wireType := int(wire & 0x7) 203 if wireType == 4 { 204 return fmt.Errorf("proto: LogEntry: wiretype end group for non-group") 205 } 206 if fieldNum <= 0 { 207 return fmt.Errorf("proto: LogEntry: illegal tag %d (wire type %d)", fieldNum, wire) 208 } 209 switch fieldNum { 210 case 1: 211 if wireType != 2 { 212 return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) 213 } 214 var stringLen uint64 215 for shift := uint(0); ; shift += 7 { 216 if shift >= 64 { 217 return ErrIntOverflowEntry 218 } 219 if iNdEx >= l { 220 return io.ErrUnexpectedEOF 221 } 222 b := dAtA[iNdEx] 223 iNdEx++ 224 stringLen |= (uint64(b) & 0x7F) << shift 225 if b < 0x80 { 226 break 227 } 228 } 229 intStringLen := int(stringLen) 230 if intStringLen < 0 { 231 return ErrInvalidLengthEntry 232 } 233 postIndex := iNdEx + intStringLen 234 if postIndex > l { 235 return io.ErrUnexpectedEOF 236 } 237 m.Source = string(dAtA[iNdEx:postIndex]) 238 iNdEx = postIndex 239 case 2: 240 if wireType != 0 { 241 return fmt.Errorf("proto: wrong wireType = %d for field TimeNano", wireType) 242 } 243 m.TimeNano = 0 244 for shift := uint(0); ; shift += 7 { 245 if shift >= 64 { 246 return ErrIntOverflowEntry 247 } 248 if iNdEx >= l { 249 return io.ErrUnexpectedEOF 250 } 251 b := dAtA[iNdEx] 252 iNdEx++ 253 m.TimeNano |= (int64(b) & 0x7F) << shift 254 if b < 0x80 { 255 break 256 } 257 } 258 case 3: 259 if wireType != 2 { 260 return fmt.Errorf("proto: wrong wireType = %d for field Line", wireType) 261 } 262 var byteLen int 263 for shift := uint(0); ; shift += 7 { 264 if shift >= 64 { 265 return ErrIntOverflowEntry 266 } 267 if iNdEx >= l { 268 return io.ErrUnexpectedEOF 269 } 270 b := dAtA[iNdEx] 271 iNdEx++ 272 byteLen |= (int(b) & 0x7F) << shift 273 if b < 0x80 { 274 break 275 } 276 } 277 if byteLen < 0 { 278 return ErrInvalidLengthEntry 279 } 280 postIndex := iNdEx + byteLen 281 if postIndex > l { 282 return io.ErrUnexpectedEOF 283 } 284 m.Line = append(m.Line[:0], dAtA[iNdEx:postIndex]...) 285 if m.Line == nil { 286 m.Line = []byte{} 287 } 288 iNdEx = postIndex 289 case 4: 290 if wireType != 0 { 291 return fmt.Errorf("proto: wrong wireType = %d for field Partial", wireType) 292 } 293 var v int 294 for shift := uint(0); ; shift += 7 { 295 if shift >= 64 { 296 return ErrIntOverflowEntry 297 } 298 if iNdEx >= l { 299 return io.ErrUnexpectedEOF 300 } 301 b := dAtA[iNdEx] 302 iNdEx++ 303 v |= (int(b) & 0x7F) << shift 304 if b < 0x80 { 305 break 306 } 307 } 308 m.Partial = bool(v != 0) 309 default: 310 iNdEx = preIndex 311 skippy, err := skipEntry(dAtA[iNdEx:]) 312 if err != nil { 313 return err 314 } 315 if skippy < 0 { 316 return ErrInvalidLengthEntry 317 } 318 if (iNdEx + skippy) > l { 319 return io.ErrUnexpectedEOF 320 } 321 iNdEx += skippy 322 } 323 } 324 325 if iNdEx > l { 326 return io.ErrUnexpectedEOF 327 } 328 return nil 329 } 330 func skipEntry(dAtA []byte) (n int, err error) { 331 l := len(dAtA) 332 iNdEx := 0 333 for iNdEx < l { 334 var wire uint64 335 for shift := uint(0); ; shift += 7 { 336 if shift >= 64 { 337 return 0, ErrIntOverflowEntry 338 } 339 if iNdEx >= l { 340 return 0, io.ErrUnexpectedEOF 341 } 342 b := dAtA[iNdEx] 343 iNdEx++ 344 wire |= (uint64(b) & 0x7F) << shift 345 if b < 0x80 { 346 break 347 } 348 } 349 wireType := int(wire & 0x7) 350 switch wireType { 351 case 0: 352 for shift := uint(0); ; shift += 7 { 353 if shift >= 64 { 354 return 0, ErrIntOverflowEntry 355 } 356 if iNdEx >= l { 357 return 0, io.ErrUnexpectedEOF 358 } 359 iNdEx++ 360 if dAtA[iNdEx-1] < 0x80 { 361 break 362 } 363 } 364 return iNdEx, nil 365 case 1: 366 iNdEx += 8 367 return iNdEx, nil 368 case 2: 369 var length int 370 for shift := uint(0); ; shift += 7 { 371 if shift >= 64 { 372 return 0, ErrIntOverflowEntry 373 } 374 if iNdEx >= l { 375 return 0, io.ErrUnexpectedEOF 376 } 377 b := dAtA[iNdEx] 378 iNdEx++ 379 length |= (int(b) & 0x7F) << shift 380 if b < 0x80 { 381 break 382 } 383 } 384 iNdEx += length 385 if length < 0 { 386 return 0, ErrInvalidLengthEntry 387 } 388 return iNdEx, nil 389 case 3: 390 for { 391 var innerWire uint64 392 var start int = iNdEx 393 for shift := uint(0); ; shift += 7 { 394 if shift >= 64 { 395 return 0, ErrIntOverflowEntry 396 } 397 if iNdEx >= l { 398 return 0, io.ErrUnexpectedEOF 399 } 400 b := dAtA[iNdEx] 401 iNdEx++ 402 innerWire |= (uint64(b) & 0x7F) << shift 403 if b < 0x80 { 404 break 405 } 406 } 407 innerWireType := int(innerWire & 0x7) 408 if innerWireType == 4 { 409 break 410 } 411 next, err := skipEntry(dAtA[start:]) 412 if err != nil { 413 return 0, err 414 } 415 iNdEx = start + next 416 } 417 return iNdEx, nil 418 case 4: 419 return iNdEx, nil 420 case 5: 421 iNdEx += 4 422 return iNdEx, nil 423 default: 424 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 425 } 426 } 427 panic("unreachable") 428 } 429 430 var ( 431 ErrInvalidLengthEntry = fmt.Errorf("proto: negative length found during unmarshaling") 432 ErrIntOverflowEntry = fmt.Errorf("proto: integer overflow") 433 ) 434 435 func init() { proto.RegisterFile("entry.proto", fileDescriptorEntry) } 436 437 var fileDescriptorEntry = []byte{ 438 // 149 bytes of a gzipped FileDescriptorProto 439 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0xe2, 0x4e, 0xcd, 0x2b, 0x29, 440 0xaa, 0xd4, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x57, 0xca, 0xe5, 0xe2, 0xf0, 0xc9, 0x4f, 0x77, 0x05, 441 0x89, 0x08, 0x89, 0x71, 0xb1, 0x15, 0xe7, 0x97, 0x16, 0x25, 0xa7, 0x4a, 0x30, 0x2a, 0x30, 0x6a, 442 0x70, 0x06, 0x41, 0x79, 0x42, 0xd2, 0x5c, 0x9c, 0x25, 0x99, 0xb9, 0xa9, 0xf1, 0x79, 0x89, 0x79, 443 0xf9, 0x12, 0x4c, 0x0a, 0x8c, 0x1a, 0xcc, 0x41, 0x1c, 0x20, 0x01, 0xbf, 0xc4, 0xbc, 0x7c, 0x21, 444 0x21, 0x2e, 0x96, 0x9c, 0xcc, 0xbc, 0x54, 0x09, 0x66, 0x05, 0x46, 0x0d, 0x9e, 0x20, 0x30, 0x5b, 445 0x48, 0x82, 0x8b, 0xbd, 0x20, 0xb1, 0xa8, 0x24, 0x33, 0x31, 0x47, 0x82, 0x45, 0x81, 0x51, 0x83, 446 0x23, 0x08, 0xc6, 0x75, 0xe2, 0x39, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x07, 0x8f, 447 0xe4, 0x18, 0x93, 0xd8, 0xc0, 0x6e, 0x30, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x2d, 0x24, 0x5a, 448 0xd4, 0x92, 0x00, 0x00, 0x00, 449 }