github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/pkg/util/log/log.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: util/log/log.proto
     3  
     4  package log
     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  type Severity int32
    24  
    25  const (
    26  	Severity_UNKNOWN Severity = 0
    27  	Severity_INFO    Severity = 1
    28  	Severity_WARNING Severity = 2
    29  	Severity_ERROR   Severity = 3
    30  	Severity_FATAL   Severity = 4
    31  	// NONE is used to specify when no messages
    32  	// should be printed to the log file or stderr.
    33  	Severity_NONE Severity = 5
    34  	// DEFAULT is the end sentinel. It is used during command-line
    35  	// handling to indicate that another value should be replaced instead
    36  	// (depending on which command is being run); see cli/flags.go for
    37  	// details.
    38  	Severity_DEFAULT Severity = 6
    39  )
    40  
    41  var Severity_name = map[int32]string{
    42  	0: "UNKNOWN",
    43  	1: "INFO",
    44  	2: "WARNING",
    45  	3: "ERROR",
    46  	4: "FATAL",
    47  	5: "NONE",
    48  	6: "DEFAULT",
    49  }
    50  var Severity_value = map[string]int32{
    51  	"UNKNOWN": 0,
    52  	"INFO":    1,
    53  	"WARNING": 2,
    54  	"ERROR":   3,
    55  	"FATAL":   4,
    56  	"NONE":    5,
    57  	"DEFAULT": 6,
    58  }
    59  
    60  func (x Severity) String() string {
    61  	return proto.EnumName(Severity_name, int32(x))
    62  }
    63  func (Severity) EnumDescriptor() ([]byte, []int) {
    64  	return fileDescriptor_log_127175c418f19ec4, []int{0}
    65  }
    66  
    67  // Entry represents a cockroach structured log entry.
    68  type Entry struct {
    69  	Severity Severity `protobuf:"varint,1,opt,name=severity,proto3,enum=cockroach.util.log.Severity" json:"severity,omitempty"`
    70  	// Nanoseconds since the epoch.
    71  	Time      int64  `protobuf:"varint,2,opt,name=time,proto3" json:"time,omitempty"`
    72  	Goroutine int64  `protobuf:"varint,6,opt,name=goroutine,proto3" json:"goroutine,omitempty"`
    73  	File      string `protobuf:"bytes,3,opt,name=file,proto3" json:"file,omitempty"`
    74  	Line      int64  `protobuf:"varint,4,opt,name=line,proto3" json:"line,omitempty"`
    75  	Message   string `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"`
    76  }
    77  
    78  func (m *Entry) Reset()         { *m = Entry{} }
    79  func (m *Entry) String() string { return proto.CompactTextString(m) }
    80  func (*Entry) ProtoMessage()    {}
    81  func (*Entry) Descriptor() ([]byte, []int) {
    82  	return fileDescriptor_log_127175c418f19ec4, []int{0}
    83  }
    84  func (m *Entry) XXX_Unmarshal(b []byte) error {
    85  	return m.Unmarshal(b)
    86  }
    87  func (m *Entry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    88  	b = b[:cap(b)]
    89  	n, err := m.MarshalTo(b)
    90  	if err != nil {
    91  		return nil, err
    92  	}
    93  	return b[:n], nil
    94  }
    95  func (dst *Entry) XXX_Merge(src proto.Message) {
    96  	xxx_messageInfo_Entry.Merge(dst, src)
    97  }
    98  func (m *Entry) XXX_Size() int {
    99  	return m.Size()
   100  }
   101  func (m *Entry) XXX_DiscardUnknown() {
   102  	xxx_messageInfo_Entry.DiscardUnknown(m)
   103  }
   104  
   105  var xxx_messageInfo_Entry proto.InternalMessageInfo
   106  
   107  // A FileDetails holds all of the particulars that can be parsed by the name of
   108  // a log file.
   109  type FileDetails struct {
   110  	Program  string `protobuf:"bytes,1,opt,name=program,proto3" json:"program,omitempty"`
   111  	Host     string `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"`
   112  	UserName string `protobuf:"bytes,3,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"`
   113  	Time     int64  `protobuf:"varint,5,opt,name=time,proto3" json:"time,omitempty"`
   114  	PID      int64  `protobuf:"varint,6,opt,name=pid,proto3" json:"pid,omitempty"`
   115  }
   116  
   117  func (m *FileDetails) Reset()         { *m = FileDetails{} }
   118  func (m *FileDetails) String() string { return proto.CompactTextString(m) }
   119  func (*FileDetails) ProtoMessage()    {}
   120  func (*FileDetails) Descriptor() ([]byte, []int) {
   121  	return fileDescriptor_log_127175c418f19ec4, []int{1}
   122  }
   123  func (m *FileDetails) XXX_Unmarshal(b []byte) error {
   124  	return m.Unmarshal(b)
   125  }
   126  func (m *FileDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   127  	b = b[:cap(b)]
   128  	n, err := m.MarshalTo(b)
   129  	if err != nil {
   130  		return nil, err
   131  	}
   132  	return b[:n], nil
   133  }
   134  func (dst *FileDetails) XXX_Merge(src proto.Message) {
   135  	xxx_messageInfo_FileDetails.Merge(dst, src)
   136  }
   137  func (m *FileDetails) XXX_Size() int {
   138  	return m.Size()
   139  }
   140  func (m *FileDetails) XXX_DiscardUnknown() {
   141  	xxx_messageInfo_FileDetails.DiscardUnknown(m)
   142  }
   143  
   144  var xxx_messageInfo_FileDetails proto.InternalMessageInfo
   145  
   146  type FileInfo struct {
   147  	Name         string      `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
   148  	SizeBytes    int64       `protobuf:"varint,2,opt,name=size_bytes,json=sizeBytes,proto3" json:"size_bytes,omitempty"`
   149  	ModTimeNanos int64       `protobuf:"varint,3,opt,name=mod_time_nanos,json=modTimeNanos,proto3" json:"mod_time_nanos,omitempty"`
   150  	Details      FileDetails `protobuf:"bytes,4,opt,name=details,proto3" json:"details"`
   151  }
   152  
   153  func (m *FileInfo) Reset()         { *m = FileInfo{} }
   154  func (m *FileInfo) String() string { return proto.CompactTextString(m) }
   155  func (*FileInfo) ProtoMessage()    {}
   156  func (*FileInfo) Descriptor() ([]byte, []int) {
   157  	return fileDescriptor_log_127175c418f19ec4, []int{2}
   158  }
   159  func (m *FileInfo) XXX_Unmarshal(b []byte) error {
   160  	return m.Unmarshal(b)
   161  }
   162  func (m *FileInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   163  	b = b[:cap(b)]
   164  	n, err := m.MarshalTo(b)
   165  	if err != nil {
   166  		return nil, err
   167  	}
   168  	return b[:n], nil
   169  }
   170  func (dst *FileInfo) XXX_Merge(src proto.Message) {
   171  	xxx_messageInfo_FileInfo.Merge(dst, src)
   172  }
   173  func (m *FileInfo) XXX_Size() int {
   174  	return m.Size()
   175  }
   176  func (m *FileInfo) XXX_DiscardUnknown() {
   177  	xxx_messageInfo_FileInfo.DiscardUnknown(m)
   178  }
   179  
   180  var xxx_messageInfo_FileInfo proto.InternalMessageInfo
   181  
   182  func init() {
   183  	proto.RegisterType((*Entry)(nil), "cockroach.util.log.Entry")
   184  	proto.RegisterType((*FileDetails)(nil), "cockroach.util.log.FileDetails")
   185  	proto.RegisterType((*FileInfo)(nil), "cockroach.util.log.FileInfo")
   186  	proto.RegisterEnum("cockroach.util.log.Severity", Severity_name, Severity_value)
   187  }
   188  func (m *Entry) Marshal() (dAtA []byte, err error) {
   189  	size := m.Size()
   190  	dAtA = make([]byte, size)
   191  	n, err := m.MarshalTo(dAtA)
   192  	if err != nil {
   193  		return nil, err
   194  	}
   195  	return dAtA[:n], nil
   196  }
   197  
   198  func (m *Entry) MarshalTo(dAtA []byte) (int, error) {
   199  	var i int
   200  	_ = i
   201  	var l int
   202  	_ = l
   203  	if m.Severity != 0 {
   204  		dAtA[i] = 0x8
   205  		i++
   206  		i = encodeVarintLog(dAtA, i, uint64(m.Severity))
   207  	}
   208  	if m.Time != 0 {
   209  		dAtA[i] = 0x10
   210  		i++
   211  		i = encodeVarintLog(dAtA, i, uint64(m.Time))
   212  	}
   213  	if len(m.File) > 0 {
   214  		dAtA[i] = 0x1a
   215  		i++
   216  		i = encodeVarintLog(dAtA, i, uint64(len(m.File)))
   217  		i += copy(dAtA[i:], m.File)
   218  	}
   219  	if m.Line != 0 {
   220  		dAtA[i] = 0x20
   221  		i++
   222  		i = encodeVarintLog(dAtA, i, uint64(m.Line))
   223  	}
   224  	if len(m.Message) > 0 {
   225  		dAtA[i] = 0x2a
   226  		i++
   227  		i = encodeVarintLog(dAtA, i, uint64(len(m.Message)))
   228  		i += copy(dAtA[i:], m.Message)
   229  	}
   230  	if m.Goroutine != 0 {
   231  		dAtA[i] = 0x30
   232  		i++
   233  		i = encodeVarintLog(dAtA, i, uint64(m.Goroutine))
   234  	}
   235  	return i, nil
   236  }
   237  
   238  func (m *FileDetails) Marshal() (dAtA []byte, err error) {
   239  	size := m.Size()
   240  	dAtA = make([]byte, size)
   241  	n, err := m.MarshalTo(dAtA)
   242  	if err != nil {
   243  		return nil, err
   244  	}
   245  	return dAtA[:n], nil
   246  }
   247  
   248  func (m *FileDetails) MarshalTo(dAtA []byte) (int, error) {
   249  	var i int
   250  	_ = i
   251  	var l int
   252  	_ = l
   253  	if len(m.Program) > 0 {
   254  		dAtA[i] = 0xa
   255  		i++
   256  		i = encodeVarintLog(dAtA, i, uint64(len(m.Program)))
   257  		i += copy(dAtA[i:], m.Program)
   258  	}
   259  	if len(m.Host) > 0 {
   260  		dAtA[i] = 0x12
   261  		i++
   262  		i = encodeVarintLog(dAtA, i, uint64(len(m.Host)))
   263  		i += copy(dAtA[i:], m.Host)
   264  	}
   265  	if len(m.UserName) > 0 {
   266  		dAtA[i] = 0x1a
   267  		i++
   268  		i = encodeVarintLog(dAtA, i, uint64(len(m.UserName)))
   269  		i += copy(dAtA[i:], m.UserName)
   270  	}
   271  	if m.Time != 0 {
   272  		dAtA[i] = 0x28
   273  		i++
   274  		i = encodeVarintLog(dAtA, i, uint64(m.Time))
   275  	}
   276  	if m.PID != 0 {
   277  		dAtA[i] = 0x30
   278  		i++
   279  		i = encodeVarintLog(dAtA, i, uint64(m.PID))
   280  	}
   281  	return i, nil
   282  }
   283  
   284  func (m *FileInfo) Marshal() (dAtA []byte, err error) {
   285  	size := m.Size()
   286  	dAtA = make([]byte, size)
   287  	n, err := m.MarshalTo(dAtA)
   288  	if err != nil {
   289  		return nil, err
   290  	}
   291  	return dAtA[:n], nil
   292  }
   293  
   294  func (m *FileInfo) MarshalTo(dAtA []byte) (int, error) {
   295  	var i int
   296  	_ = i
   297  	var l int
   298  	_ = l
   299  	if len(m.Name) > 0 {
   300  		dAtA[i] = 0xa
   301  		i++
   302  		i = encodeVarintLog(dAtA, i, uint64(len(m.Name)))
   303  		i += copy(dAtA[i:], m.Name)
   304  	}
   305  	if m.SizeBytes != 0 {
   306  		dAtA[i] = 0x10
   307  		i++
   308  		i = encodeVarintLog(dAtA, i, uint64(m.SizeBytes))
   309  	}
   310  	if m.ModTimeNanos != 0 {
   311  		dAtA[i] = 0x18
   312  		i++
   313  		i = encodeVarintLog(dAtA, i, uint64(m.ModTimeNanos))
   314  	}
   315  	dAtA[i] = 0x22
   316  	i++
   317  	i = encodeVarintLog(dAtA, i, uint64(m.Details.Size()))
   318  	n1, err := m.Details.MarshalTo(dAtA[i:])
   319  	if err != nil {
   320  		return 0, err
   321  	}
   322  	i += n1
   323  	return i, nil
   324  }
   325  
   326  func encodeVarintLog(dAtA []byte, offset int, v uint64) int {
   327  	for v >= 1<<7 {
   328  		dAtA[offset] = uint8(v&0x7f | 0x80)
   329  		v >>= 7
   330  		offset++
   331  	}
   332  	dAtA[offset] = uint8(v)
   333  	return offset + 1
   334  }
   335  func (m *Entry) Size() (n int) {
   336  	if m == nil {
   337  		return 0
   338  	}
   339  	var l int
   340  	_ = l
   341  	if m.Severity != 0 {
   342  		n += 1 + sovLog(uint64(m.Severity))
   343  	}
   344  	if m.Time != 0 {
   345  		n += 1 + sovLog(uint64(m.Time))
   346  	}
   347  	l = len(m.File)
   348  	if l > 0 {
   349  		n += 1 + l + sovLog(uint64(l))
   350  	}
   351  	if m.Line != 0 {
   352  		n += 1 + sovLog(uint64(m.Line))
   353  	}
   354  	l = len(m.Message)
   355  	if l > 0 {
   356  		n += 1 + l + sovLog(uint64(l))
   357  	}
   358  	if m.Goroutine != 0 {
   359  		n += 1 + sovLog(uint64(m.Goroutine))
   360  	}
   361  	return n
   362  }
   363  
   364  func (m *FileDetails) Size() (n int) {
   365  	if m == nil {
   366  		return 0
   367  	}
   368  	var l int
   369  	_ = l
   370  	l = len(m.Program)
   371  	if l > 0 {
   372  		n += 1 + l + sovLog(uint64(l))
   373  	}
   374  	l = len(m.Host)
   375  	if l > 0 {
   376  		n += 1 + l + sovLog(uint64(l))
   377  	}
   378  	l = len(m.UserName)
   379  	if l > 0 {
   380  		n += 1 + l + sovLog(uint64(l))
   381  	}
   382  	if m.Time != 0 {
   383  		n += 1 + sovLog(uint64(m.Time))
   384  	}
   385  	if m.PID != 0 {
   386  		n += 1 + sovLog(uint64(m.PID))
   387  	}
   388  	return n
   389  }
   390  
   391  func (m *FileInfo) Size() (n int) {
   392  	if m == nil {
   393  		return 0
   394  	}
   395  	var l int
   396  	_ = l
   397  	l = len(m.Name)
   398  	if l > 0 {
   399  		n += 1 + l + sovLog(uint64(l))
   400  	}
   401  	if m.SizeBytes != 0 {
   402  		n += 1 + sovLog(uint64(m.SizeBytes))
   403  	}
   404  	if m.ModTimeNanos != 0 {
   405  		n += 1 + sovLog(uint64(m.ModTimeNanos))
   406  	}
   407  	l = m.Details.Size()
   408  	n += 1 + l + sovLog(uint64(l))
   409  	return n
   410  }
   411  
   412  func sovLog(x uint64) (n int) {
   413  	for {
   414  		n++
   415  		x >>= 7
   416  		if x == 0 {
   417  			break
   418  		}
   419  	}
   420  	return n
   421  }
   422  func sozLog(x uint64) (n int) {
   423  	return sovLog(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   424  }
   425  func (m *Entry) Unmarshal(dAtA []byte) error {
   426  	l := len(dAtA)
   427  	iNdEx := 0
   428  	for iNdEx < l {
   429  		preIndex := iNdEx
   430  		var wire uint64
   431  		for shift := uint(0); ; shift += 7 {
   432  			if shift >= 64 {
   433  				return ErrIntOverflowLog
   434  			}
   435  			if iNdEx >= l {
   436  				return io.ErrUnexpectedEOF
   437  			}
   438  			b := dAtA[iNdEx]
   439  			iNdEx++
   440  			wire |= (uint64(b) & 0x7F) << shift
   441  			if b < 0x80 {
   442  				break
   443  			}
   444  		}
   445  		fieldNum := int32(wire >> 3)
   446  		wireType := int(wire & 0x7)
   447  		if wireType == 4 {
   448  			return fmt.Errorf("proto: Entry: wiretype end group for non-group")
   449  		}
   450  		if fieldNum <= 0 {
   451  			return fmt.Errorf("proto: Entry: illegal tag %d (wire type %d)", fieldNum, wire)
   452  		}
   453  		switch fieldNum {
   454  		case 1:
   455  			if wireType != 0 {
   456  				return fmt.Errorf("proto: wrong wireType = %d for field Severity", wireType)
   457  			}
   458  			m.Severity = 0
   459  			for shift := uint(0); ; shift += 7 {
   460  				if shift >= 64 {
   461  					return ErrIntOverflowLog
   462  				}
   463  				if iNdEx >= l {
   464  					return io.ErrUnexpectedEOF
   465  				}
   466  				b := dAtA[iNdEx]
   467  				iNdEx++
   468  				m.Severity |= (Severity(b) & 0x7F) << shift
   469  				if b < 0x80 {
   470  					break
   471  				}
   472  			}
   473  		case 2:
   474  			if wireType != 0 {
   475  				return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType)
   476  			}
   477  			m.Time = 0
   478  			for shift := uint(0); ; shift += 7 {
   479  				if shift >= 64 {
   480  					return ErrIntOverflowLog
   481  				}
   482  				if iNdEx >= l {
   483  					return io.ErrUnexpectedEOF
   484  				}
   485  				b := dAtA[iNdEx]
   486  				iNdEx++
   487  				m.Time |= (int64(b) & 0x7F) << shift
   488  				if b < 0x80 {
   489  					break
   490  				}
   491  			}
   492  		case 3:
   493  			if wireType != 2 {
   494  				return fmt.Errorf("proto: wrong wireType = %d for field File", wireType)
   495  			}
   496  			var stringLen uint64
   497  			for shift := uint(0); ; shift += 7 {
   498  				if shift >= 64 {
   499  					return ErrIntOverflowLog
   500  				}
   501  				if iNdEx >= l {
   502  					return io.ErrUnexpectedEOF
   503  				}
   504  				b := dAtA[iNdEx]
   505  				iNdEx++
   506  				stringLen |= (uint64(b) & 0x7F) << shift
   507  				if b < 0x80 {
   508  					break
   509  				}
   510  			}
   511  			intStringLen := int(stringLen)
   512  			if intStringLen < 0 {
   513  				return ErrInvalidLengthLog
   514  			}
   515  			postIndex := iNdEx + intStringLen
   516  			if postIndex > l {
   517  				return io.ErrUnexpectedEOF
   518  			}
   519  			m.File = string(dAtA[iNdEx:postIndex])
   520  			iNdEx = postIndex
   521  		case 4:
   522  			if wireType != 0 {
   523  				return fmt.Errorf("proto: wrong wireType = %d for field Line", wireType)
   524  			}
   525  			m.Line = 0
   526  			for shift := uint(0); ; shift += 7 {
   527  				if shift >= 64 {
   528  					return ErrIntOverflowLog
   529  				}
   530  				if iNdEx >= l {
   531  					return io.ErrUnexpectedEOF
   532  				}
   533  				b := dAtA[iNdEx]
   534  				iNdEx++
   535  				m.Line |= (int64(b) & 0x7F) << shift
   536  				if b < 0x80 {
   537  					break
   538  				}
   539  			}
   540  		case 5:
   541  			if wireType != 2 {
   542  				return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType)
   543  			}
   544  			var stringLen uint64
   545  			for shift := uint(0); ; shift += 7 {
   546  				if shift >= 64 {
   547  					return ErrIntOverflowLog
   548  				}
   549  				if iNdEx >= l {
   550  					return io.ErrUnexpectedEOF
   551  				}
   552  				b := dAtA[iNdEx]
   553  				iNdEx++
   554  				stringLen |= (uint64(b) & 0x7F) << shift
   555  				if b < 0x80 {
   556  					break
   557  				}
   558  			}
   559  			intStringLen := int(stringLen)
   560  			if intStringLen < 0 {
   561  				return ErrInvalidLengthLog
   562  			}
   563  			postIndex := iNdEx + intStringLen
   564  			if postIndex > l {
   565  				return io.ErrUnexpectedEOF
   566  			}
   567  			m.Message = string(dAtA[iNdEx:postIndex])
   568  			iNdEx = postIndex
   569  		case 6:
   570  			if wireType != 0 {
   571  				return fmt.Errorf("proto: wrong wireType = %d for field Goroutine", wireType)
   572  			}
   573  			m.Goroutine = 0
   574  			for shift := uint(0); ; shift += 7 {
   575  				if shift >= 64 {
   576  					return ErrIntOverflowLog
   577  				}
   578  				if iNdEx >= l {
   579  					return io.ErrUnexpectedEOF
   580  				}
   581  				b := dAtA[iNdEx]
   582  				iNdEx++
   583  				m.Goroutine |= (int64(b) & 0x7F) << shift
   584  				if b < 0x80 {
   585  					break
   586  				}
   587  			}
   588  		default:
   589  			iNdEx = preIndex
   590  			skippy, err := skipLog(dAtA[iNdEx:])
   591  			if err != nil {
   592  				return err
   593  			}
   594  			if skippy < 0 {
   595  				return ErrInvalidLengthLog
   596  			}
   597  			if (iNdEx + skippy) > l {
   598  				return io.ErrUnexpectedEOF
   599  			}
   600  			iNdEx += skippy
   601  		}
   602  	}
   603  
   604  	if iNdEx > l {
   605  		return io.ErrUnexpectedEOF
   606  	}
   607  	return nil
   608  }
   609  func (m *FileDetails) Unmarshal(dAtA []byte) error {
   610  	l := len(dAtA)
   611  	iNdEx := 0
   612  	for iNdEx < l {
   613  		preIndex := iNdEx
   614  		var wire uint64
   615  		for shift := uint(0); ; shift += 7 {
   616  			if shift >= 64 {
   617  				return ErrIntOverflowLog
   618  			}
   619  			if iNdEx >= l {
   620  				return io.ErrUnexpectedEOF
   621  			}
   622  			b := dAtA[iNdEx]
   623  			iNdEx++
   624  			wire |= (uint64(b) & 0x7F) << shift
   625  			if b < 0x80 {
   626  				break
   627  			}
   628  		}
   629  		fieldNum := int32(wire >> 3)
   630  		wireType := int(wire & 0x7)
   631  		if wireType == 4 {
   632  			return fmt.Errorf("proto: FileDetails: wiretype end group for non-group")
   633  		}
   634  		if fieldNum <= 0 {
   635  			return fmt.Errorf("proto: FileDetails: illegal tag %d (wire type %d)", fieldNum, wire)
   636  		}
   637  		switch fieldNum {
   638  		case 1:
   639  			if wireType != 2 {
   640  				return fmt.Errorf("proto: wrong wireType = %d for field Program", wireType)
   641  			}
   642  			var stringLen uint64
   643  			for shift := uint(0); ; shift += 7 {
   644  				if shift >= 64 {
   645  					return ErrIntOverflowLog
   646  				}
   647  				if iNdEx >= l {
   648  					return io.ErrUnexpectedEOF
   649  				}
   650  				b := dAtA[iNdEx]
   651  				iNdEx++
   652  				stringLen |= (uint64(b) & 0x7F) << shift
   653  				if b < 0x80 {
   654  					break
   655  				}
   656  			}
   657  			intStringLen := int(stringLen)
   658  			if intStringLen < 0 {
   659  				return ErrInvalidLengthLog
   660  			}
   661  			postIndex := iNdEx + intStringLen
   662  			if postIndex > l {
   663  				return io.ErrUnexpectedEOF
   664  			}
   665  			m.Program = string(dAtA[iNdEx:postIndex])
   666  			iNdEx = postIndex
   667  		case 2:
   668  			if wireType != 2 {
   669  				return fmt.Errorf("proto: wrong wireType = %d for field Host", wireType)
   670  			}
   671  			var stringLen uint64
   672  			for shift := uint(0); ; shift += 7 {
   673  				if shift >= 64 {
   674  					return ErrIntOverflowLog
   675  				}
   676  				if iNdEx >= l {
   677  					return io.ErrUnexpectedEOF
   678  				}
   679  				b := dAtA[iNdEx]
   680  				iNdEx++
   681  				stringLen |= (uint64(b) & 0x7F) << shift
   682  				if b < 0x80 {
   683  					break
   684  				}
   685  			}
   686  			intStringLen := int(stringLen)
   687  			if intStringLen < 0 {
   688  				return ErrInvalidLengthLog
   689  			}
   690  			postIndex := iNdEx + intStringLen
   691  			if postIndex > l {
   692  				return io.ErrUnexpectedEOF
   693  			}
   694  			m.Host = string(dAtA[iNdEx:postIndex])
   695  			iNdEx = postIndex
   696  		case 3:
   697  			if wireType != 2 {
   698  				return fmt.Errorf("proto: wrong wireType = %d for field UserName", wireType)
   699  			}
   700  			var stringLen uint64
   701  			for shift := uint(0); ; shift += 7 {
   702  				if shift >= 64 {
   703  					return ErrIntOverflowLog
   704  				}
   705  				if iNdEx >= l {
   706  					return io.ErrUnexpectedEOF
   707  				}
   708  				b := dAtA[iNdEx]
   709  				iNdEx++
   710  				stringLen |= (uint64(b) & 0x7F) << shift
   711  				if b < 0x80 {
   712  					break
   713  				}
   714  			}
   715  			intStringLen := int(stringLen)
   716  			if intStringLen < 0 {
   717  				return ErrInvalidLengthLog
   718  			}
   719  			postIndex := iNdEx + intStringLen
   720  			if postIndex > l {
   721  				return io.ErrUnexpectedEOF
   722  			}
   723  			m.UserName = string(dAtA[iNdEx:postIndex])
   724  			iNdEx = postIndex
   725  		case 5:
   726  			if wireType != 0 {
   727  				return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType)
   728  			}
   729  			m.Time = 0
   730  			for shift := uint(0); ; shift += 7 {
   731  				if shift >= 64 {
   732  					return ErrIntOverflowLog
   733  				}
   734  				if iNdEx >= l {
   735  					return io.ErrUnexpectedEOF
   736  				}
   737  				b := dAtA[iNdEx]
   738  				iNdEx++
   739  				m.Time |= (int64(b) & 0x7F) << shift
   740  				if b < 0x80 {
   741  					break
   742  				}
   743  			}
   744  		case 6:
   745  			if wireType != 0 {
   746  				return fmt.Errorf("proto: wrong wireType = %d for field PID", wireType)
   747  			}
   748  			m.PID = 0
   749  			for shift := uint(0); ; shift += 7 {
   750  				if shift >= 64 {
   751  					return ErrIntOverflowLog
   752  				}
   753  				if iNdEx >= l {
   754  					return io.ErrUnexpectedEOF
   755  				}
   756  				b := dAtA[iNdEx]
   757  				iNdEx++
   758  				m.PID |= (int64(b) & 0x7F) << shift
   759  				if b < 0x80 {
   760  					break
   761  				}
   762  			}
   763  		default:
   764  			iNdEx = preIndex
   765  			skippy, err := skipLog(dAtA[iNdEx:])
   766  			if err != nil {
   767  				return err
   768  			}
   769  			if skippy < 0 {
   770  				return ErrInvalidLengthLog
   771  			}
   772  			if (iNdEx + skippy) > l {
   773  				return io.ErrUnexpectedEOF
   774  			}
   775  			iNdEx += skippy
   776  		}
   777  	}
   778  
   779  	if iNdEx > l {
   780  		return io.ErrUnexpectedEOF
   781  	}
   782  	return nil
   783  }
   784  func (m *FileInfo) Unmarshal(dAtA []byte) error {
   785  	l := len(dAtA)
   786  	iNdEx := 0
   787  	for iNdEx < l {
   788  		preIndex := iNdEx
   789  		var wire uint64
   790  		for shift := uint(0); ; shift += 7 {
   791  			if shift >= 64 {
   792  				return ErrIntOverflowLog
   793  			}
   794  			if iNdEx >= l {
   795  				return io.ErrUnexpectedEOF
   796  			}
   797  			b := dAtA[iNdEx]
   798  			iNdEx++
   799  			wire |= (uint64(b) & 0x7F) << shift
   800  			if b < 0x80 {
   801  				break
   802  			}
   803  		}
   804  		fieldNum := int32(wire >> 3)
   805  		wireType := int(wire & 0x7)
   806  		if wireType == 4 {
   807  			return fmt.Errorf("proto: FileInfo: wiretype end group for non-group")
   808  		}
   809  		if fieldNum <= 0 {
   810  			return fmt.Errorf("proto: FileInfo: illegal tag %d (wire type %d)", fieldNum, wire)
   811  		}
   812  		switch fieldNum {
   813  		case 1:
   814  			if wireType != 2 {
   815  				return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
   816  			}
   817  			var stringLen uint64
   818  			for shift := uint(0); ; shift += 7 {
   819  				if shift >= 64 {
   820  					return ErrIntOverflowLog
   821  				}
   822  				if iNdEx >= l {
   823  					return io.ErrUnexpectedEOF
   824  				}
   825  				b := dAtA[iNdEx]
   826  				iNdEx++
   827  				stringLen |= (uint64(b) & 0x7F) << shift
   828  				if b < 0x80 {
   829  					break
   830  				}
   831  			}
   832  			intStringLen := int(stringLen)
   833  			if intStringLen < 0 {
   834  				return ErrInvalidLengthLog
   835  			}
   836  			postIndex := iNdEx + intStringLen
   837  			if postIndex > l {
   838  				return io.ErrUnexpectedEOF
   839  			}
   840  			m.Name = string(dAtA[iNdEx:postIndex])
   841  			iNdEx = postIndex
   842  		case 2:
   843  			if wireType != 0 {
   844  				return fmt.Errorf("proto: wrong wireType = %d for field SizeBytes", wireType)
   845  			}
   846  			m.SizeBytes = 0
   847  			for shift := uint(0); ; shift += 7 {
   848  				if shift >= 64 {
   849  					return ErrIntOverflowLog
   850  				}
   851  				if iNdEx >= l {
   852  					return io.ErrUnexpectedEOF
   853  				}
   854  				b := dAtA[iNdEx]
   855  				iNdEx++
   856  				m.SizeBytes |= (int64(b) & 0x7F) << shift
   857  				if b < 0x80 {
   858  					break
   859  				}
   860  			}
   861  		case 3:
   862  			if wireType != 0 {
   863  				return fmt.Errorf("proto: wrong wireType = %d for field ModTimeNanos", wireType)
   864  			}
   865  			m.ModTimeNanos = 0
   866  			for shift := uint(0); ; shift += 7 {
   867  				if shift >= 64 {
   868  					return ErrIntOverflowLog
   869  				}
   870  				if iNdEx >= l {
   871  					return io.ErrUnexpectedEOF
   872  				}
   873  				b := dAtA[iNdEx]
   874  				iNdEx++
   875  				m.ModTimeNanos |= (int64(b) & 0x7F) << shift
   876  				if b < 0x80 {
   877  					break
   878  				}
   879  			}
   880  		case 4:
   881  			if wireType != 2 {
   882  				return fmt.Errorf("proto: wrong wireType = %d for field Details", wireType)
   883  			}
   884  			var msglen int
   885  			for shift := uint(0); ; shift += 7 {
   886  				if shift >= 64 {
   887  					return ErrIntOverflowLog
   888  				}
   889  				if iNdEx >= l {
   890  					return io.ErrUnexpectedEOF
   891  				}
   892  				b := dAtA[iNdEx]
   893  				iNdEx++
   894  				msglen |= (int(b) & 0x7F) << shift
   895  				if b < 0x80 {
   896  					break
   897  				}
   898  			}
   899  			if msglen < 0 {
   900  				return ErrInvalidLengthLog
   901  			}
   902  			postIndex := iNdEx + msglen
   903  			if postIndex > l {
   904  				return io.ErrUnexpectedEOF
   905  			}
   906  			if err := m.Details.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   907  				return err
   908  			}
   909  			iNdEx = postIndex
   910  		default:
   911  			iNdEx = preIndex
   912  			skippy, err := skipLog(dAtA[iNdEx:])
   913  			if err != nil {
   914  				return err
   915  			}
   916  			if skippy < 0 {
   917  				return ErrInvalidLengthLog
   918  			}
   919  			if (iNdEx + skippy) > l {
   920  				return io.ErrUnexpectedEOF
   921  			}
   922  			iNdEx += skippy
   923  		}
   924  	}
   925  
   926  	if iNdEx > l {
   927  		return io.ErrUnexpectedEOF
   928  	}
   929  	return nil
   930  }
   931  func skipLog(dAtA []byte) (n int, err error) {
   932  	l := len(dAtA)
   933  	iNdEx := 0
   934  	for iNdEx < l {
   935  		var wire uint64
   936  		for shift := uint(0); ; shift += 7 {
   937  			if shift >= 64 {
   938  				return 0, ErrIntOverflowLog
   939  			}
   940  			if iNdEx >= l {
   941  				return 0, io.ErrUnexpectedEOF
   942  			}
   943  			b := dAtA[iNdEx]
   944  			iNdEx++
   945  			wire |= (uint64(b) & 0x7F) << shift
   946  			if b < 0x80 {
   947  				break
   948  			}
   949  		}
   950  		wireType := int(wire & 0x7)
   951  		switch wireType {
   952  		case 0:
   953  			for shift := uint(0); ; shift += 7 {
   954  				if shift >= 64 {
   955  					return 0, ErrIntOverflowLog
   956  				}
   957  				if iNdEx >= l {
   958  					return 0, io.ErrUnexpectedEOF
   959  				}
   960  				iNdEx++
   961  				if dAtA[iNdEx-1] < 0x80 {
   962  					break
   963  				}
   964  			}
   965  			return iNdEx, nil
   966  		case 1:
   967  			iNdEx += 8
   968  			return iNdEx, nil
   969  		case 2:
   970  			var length int
   971  			for shift := uint(0); ; shift += 7 {
   972  				if shift >= 64 {
   973  					return 0, ErrIntOverflowLog
   974  				}
   975  				if iNdEx >= l {
   976  					return 0, io.ErrUnexpectedEOF
   977  				}
   978  				b := dAtA[iNdEx]
   979  				iNdEx++
   980  				length |= (int(b) & 0x7F) << shift
   981  				if b < 0x80 {
   982  					break
   983  				}
   984  			}
   985  			iNdEx += length
   986  			if length < 0 {
   987  				return 0, ErrInvalidLengthLog
   988  			}
   989  			return iNdEx, nil
   990  		case 3:
   991  			for {
   992  				var innerWire uint64
   993  				var start int = iNdEx
   994  				for shift := uint(0); ; shift += 7 {
   995  					if shift >= 64 {
   996  						return 0, ErrIntOverflowLog
   997  					}
   998  					if iNdEx >= l {
   999  						return 0, io.ErrUnexpectedEOF
  1000  					}
  1001  					b := dAtA[iNdEx]
  1002  					iNdEx++
  1003  					innerWire |= (uint64(b) & 0x7F) << shift
  1004  					if b < 0x80 {
  1005  						break
  1006  					}
  1007  				}
  1008  				innerWireType := int(innerWire & 0x7)
  1009  				if innerWireType == 4 {
  1010  					break
  1011  				}
  1012  				next, err := skipLog(dAtA[start:])
  1013  				if err != nil {
  1014  					return 0, err
  1015  				}
  1016  				iNdEx = start + next
  1017  			}
  1018  			return iNdEx, nil
  1019  		case 4:
  1020  			return iNdEx, nil
  1021  		case 5:
  1022  			iNdEx += 4
  1023  			return iNdEx, nil
  1024  		default:
  1025  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  1026  		}
  1027  	}
  1028  	panic("unreachable")
  1029  }
  1030  
  1031  var (
  1032  	ErrInvalidLengthLog = fmt.Errorf("proto: negative length found during unmarshaling")
  1033  	ErrIntOverflowLog   = fmt.Errorf("proto: integer overflow")
  1034  )
  1035  
  1036  func init() { proto.RegisterFile("util/log/log.proto", fileDescriptor_log_127175c418f19ec4) }
  1037  
  1038  var fileDescriptor_log_127175c418f19ec4 = []byte{
  1039  	// 485 bytes of a gzipped FileDescriptorProto
  1040  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x92, 0xc1, 0x8a, 0xd3, 0x40,
  1041  	0x18, 0xc7, 0x33, 0x9b, 0xa4, 0x4d, 0xa6, 0xb2, 0x84, 0xc1, 0x43, 0xd4, 0x35, 0x2d, 0x45, 0xa1,
  1042  	0x78, 0xc8, 0xc2, 0x7a, 0xf1, 0x26, 0x2d, 0x6d, 0xa5, 0xba, 0x4c, 0x65, 0xec, 0xb2, 0xa0, 0x87,
  1043  	0x92, 0x6d, 0x67, 0xb3, 0x83, 0x49, 0xa6, 0x24, 0x53, 0xa1, 0xbe, 0x83, 0xe0, 0x43, 0xf8, 0x0a,
  1044  	0xbe, 0x43, 0x8f, 0x7b, 0xdc, 0xd3, 0xa2, 0xe9, 0x8b, 0xc8, 0x37, 0xd9, 0x68, 0xc1, 0x3d, 0x04,
  1045  	0xfe, 0xf3, 0x9b, 0xff, 0x7c, 0xf3, 0xff, 0xbe, 0x09, 0x26, 0x6b, 0x25, 0x92, 0xe3, 0x44, 0xc6,
  1046  	0xf0, 0x85, 0xab, 0x5c, 0x2a, 0x49, 0xc8, 0x42, 0x2e, 0x3e, 0xe7, 0x32, 0x5a, 0x5c, 0x85, 0xb0,
  1047  	0x1b, 0x26, 0x32, 0x7e, 0xfc, 0x30, 0x96, 0xb1, 0xd4, 0xdb, 0xc7, 0xa0, 0x2a, 0x67, 0xf7, 0x27,
  1048  	0xc2, 0xf6, 0x28, 0x53, 0xf9, 0x86, 0xbc, 0xc2, 0x4e, 0xc1, 0xbf, 0xf0, 0x5c, 0xa8, 0x8d, 0x8f,
  1049  	0x3a, 0xa8, 0x77, 0x78, 0x72, 0x14, 0xfe, 0x5f, 0x26, 0xfc, 0x70, 0xe7, 0x61, 0x7f, 0xdd, 0x84,
  1050  	0x60, 0x4b, 0x89, 0x94, 0xfb, 0x07, 0x1d, 0xd4, 0x33, 0x99, 0xd6, 0xc0, 0x2e, 0x45, 0xc2, 0x7d,
  1051  	0xb3, 0x83, 0x7a, 0x2e, 0xd3, 0x1a, 0x58, 0x22, 0x32, 0xee, 0x5b, 0x95, 0x0f, 0x34, 0xf1, 0x71,
  1052  	0x33, 0xe5, 0x45, 0x11, 0xc5, 0xdc, 0xb7, 0xb5, 0xb5, 0x5e, 0x92, 0x23, 0xec, 0xc6, 0x32, 0x97,
  1053  	0x6b, 0x05, 0x47, 0x1a, 0xfa, 0xc8, 0x3f, 0xd0, 0xfd, 0x86, 0x70, 0x6b, 0x2c, 0x12, 0x3e, 0xe4,
  1054  	0x2a, 0x12, 0x49, 0x01, 0x75, 0x56, 0xb9, 0x8c, 0xf3, 0x28, 0xd5, 0xe1, 0x5d, 0x56, 0x2f, 0xe1,
  1055  	0xd6, 0x2b, 0x59, 0x28, 0x9d, 0xce, 0x65, 0x5a, 0x93, 0x27, 0xd8, 0x5d, 0x17, 0x3c, 0x9f, 0x67,
  1056  	0x51, 0x5a, 0x47, 0x74, 0x00, 0xd0, 0xa8, 0x8a, 0xae, 0xdb, 0xb1, 0xf7, 0xda, 0x79, 0x84, 0xcd,
  1057  	0x95, 0x58, 0x56, 0x31, 0x06, 0xcd, 0xf2, 0xb6, 0x6d, 0xbe, 0x9f, 0x0c, 0x19, 0xb0, 0xb7, 0x96,
  1058  	0x63, 0x79, 0x76, 0xf7, 0x07, 0xc2, 0x0e, 0xe4, 0x99, 0x64, 0x97, 0x12, 0x2a, 0xe8, 0xca, 0x55,
  1059  	0x12, 0xad, 0xc9, 0x53, 0x8c, 0x0b, 0xf1, 0x95, 0xcf, 0x2f, 0x36, 0x8a, 0x17, 0x77, 0xa3, 0x72,
  1060  	0x81, 0x0c, 0x00, 0x90, 0x67, 0xf8, 0x30, 0x95, 0xcb, 0x39, 0x5c, 0x36, 0xcf, 0xa2, 0x4c, 0x16,
  1061  	0x3a, 0x96, 0xc9, 0x1e, 0xa4, 0x72, 0x39, 0x13, 0x29, 0xa7, 0xc0, 0xc8, 0x6b, 0xdc, 0x5c, 0x56,
  1062  	0x0d, 0xeb, 0x21, 0xb6, 0x4e, 0xda, 0xf7, 0x3d, 0xd1, 0xde, 0x5c, 0x06, 0xd6, 0xf6, 0xb6, 0x6d,
  1063  	0xb0, 0xfa, 0xd4, 0x8b, 0x4f, 0xd8, 0xa9, 0x1f, 0x90, 0xb4, 0x70, 0xf3, 0x8c, 0xbe, 0xa3, 0xd3,
  1064  	0x73, 0xea, 0x19, 0xc4, 0xc1, 0xd6, 0x84, 0x8e, 0xa7, 0x1e, 0x02, 0x7c, 0xde, 0x67, 0x74, 0x42,
  1065  	0xdf, 0x78, 0x07, 0xc4, 0xc5, 0xf6, 0x88, 0xb1, 0x29, 0xf3, 0x4c, 0x90, 0xe3, 0xfe, 0xac, 0x7f,
  1066  	0xea, 0x59, 0x60, 0xa6, 0x53, 0x3a, 0xf2, 0x6c, 0x30, 0x0f, 0x47, 0xe3, 0xfe, 0xd9, 0xe9, 0xcc,
  1067  	0x6b, 0x0c, 0x9e, 0x6f, 0x7f, 0x07, 0xc6, 0xb6, 0x0c, 0xd0, 0x75, 0x19, 0xa0, 0x9b, 0x32, 0x40,
  1068  	0xbf, 0xca, 0x00, 0x7d, 0xdf, 0x05, 0xc6, 0xf5, 0x2e, 0x30, 0x6e, 0x76, 0x81, 0xf1, 0xd1, 0x4c,
  1069  	0x64, 0x7c, 0xd1, 0xd0, 0x7f, 0xde, 0xcb, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x15, 0x0b, 0x0c,
  1070  	0xe9, 0xb9, 0x02, 0x00, 0x00,
  1071  }