| | |
| | | // is compatible with the proto package it is being compiled against. |
| | | // A compilation error at this line likely means your copy of the |
| | | // proto package needs to be updated. |
| | | const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package |
| | | const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package |
| | | |
| | | type FileAnalysis struct { |
| | | Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` |
| | |
| | | return xxx_messageInfo_FileAnalysis.Marshal(b, m, deterministic) |
| | | } else { |
| | | b = b[:cap(b)] |
| | | n, err := m.MarshalToSizedBuffer(b) |
| | | n, err := m.MarshalTo(b) |
| | | if err != nil { |
| | | return nil, err |
| | | } |
| | |
| | | return xxx_messageInfo_FileAnalysisSetting.Marshal(b, m, deterministic) |
| | | } else { |
| | | b = b[:cap(b)] |
| | | n, err := m.MarshalToSizedBuffer(b) |
| | | n, err := m.MarshalTo(b) |
| | | if err != nil { |
| | | return nil, err |
| | | } |
| | |
| | | func (m *FileAnalysis) Marshal() (dAtA []byte, err error) { |
| | | size := m.Size() |
| | | dAtA = make([]byte, size) |
| | | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| | | n, err := m.MarshalTo(dAtA) |
| | | if err != nil { |
| | | return nil, err |
| | | } |
| | |
| | | } |
| | | |
| | | func (m *FileAnalysis) MarshalTo(dAtA []byte) (int, error) { |
| | | size := m.Size() |
| | | return m.MarshalToSizedBuffer(dAtA[:size]) |
| | | } |
| | | |
| | | func (m *FileAnalysis) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| | | i := len(dAtA) |
| | | var i int |
| | | _ = i |
| | | var l int |
| | | _ = l |
| | | if len(m.Identifier) > 0 { |
| | | i -= len(m.Identifier) |
| | | copy(dAtA[i:], m.Identifier) |
| | | i = encodeVarintFileanalysis(dAtA, i, uint64(len(m.Identifier))) |
| | | i-- |
| | | dAtA[i] = 0x7a |
| | | if len(m.Id) > 0 { |
| | | dAtA[i] = 0xa |
| | | i++ |
| | | i = encodeVarintFileanalysis(dAtA, i, uint64(len(m.Id))) |
| | | i += copy(dAtA[i:], m.Id) |
| | | } |
| | | if len(m.UpdateTime) > 0 { |
| | | i -= len(m.UpdateTime) |
| | | copy(dAtA[i:], m.UpdateTime) |
| | | i = encodeVarintFileanalysis(dAtA, i, uint64(len(m.UpdateTime))) |
| | | i-- |
| | | dAtA[i] = 0x72 |
| | | if len(m.Name) > 0 { |
| | | dAtA[i] = 0x12 |
| | | i++ |
| | | i = encodeVarintFileanalysis(dAtA, i, uint64(len(m.Name))) |
| | | i += copy(dAtA[i:], m.Name) |
| | | } |
| | | if len(m.CreateTime) > 0 { |
| | | i -= len(m.CreateTime) |
| | | copy(dAtA[i:], m.CreateTime) |
| | | i = encodeVarintFileanalysis(dAtA, i, uint64(len(m.CreateTime))) |
| | | i-- |
| | | dAtA[i] = 0x6a |
| | | if len(m.Path) > 0 { |
| | | dAtA[i] = 0x1a |
| | | i++ |
| | | i = encodeVarintFileanalysis(dAtA, i, uint64(len(m.Path))) |
| | | i += copy(dAtA[i:], m.Path) |
| | | } |
| | | if m.Status != 0 { |
| | | i = encodeVarintFileanalysis(dAtA, i, uint64(m.Status)) |
| | | i-- |
| | | dAtA[i] = 0x60 |
| | | if m.Type != 0 { |
| | | dAtA[i] = 0x20 |
| | | i++ |
| | | i = encodeVarintFileanalysis(dAtA, i, uint64(m.Type)) |
| | | } |
| | | if m.RuleType != 0 { |
| | | i = encodeVarintFileanalysis(dAtA, i, uint64(m.RuleType)) |
| | | i-- |
| | | dAtA[i] = 0x58 |
| | | if m.Sort != 0 { |
| | | dAtA[i] = 0x28 |
| | | i++ |
| | | i = encodeVarintFileanalysis(dAtA, i, uint64(m.Sort)) |
| | | } |
| | | if m.Progress != 0 { |
| | | i = encodeVarintFileanalysis(dAtA, i, uint64(m.Progress)) |
| | | i-- |
| | | dAtA[i] = 0x50 |
| | | if len(m.Alias) > 0 { |
| | | dAtA[i] = 0x32 |
| | | i++ |
| | | i = encodeVarintFileanalysis(dAtA, i, uint64(len(m.Alias))) |
| | | i += copy(dAtA[i:], m.Alias) |
| | | } |
| | | if len(m.SnapshotUrl) > 0 { |
| | | dAtA[i] = 0x3a |
| | | i++ |
| | | i = encodeVarintFileanalysis(dAtA, i, uint64(len(m.SnapshotUrl))) |
| | | i += copy(dAtA[i:], m.SnapshotUrl) |
| | | } |
| | | if len(m.Duration) > 0 { |
| | | dAtA[i] = 0x42 |
| | | i++ |
| | | i = encodeVarintFileanalysis(dAtA, i, uint64(len(m.Duration))) |
| | | i += copy(dAtA[i:], m.Duration) |
| | | } |
| | | if m.IsRunning { |
| | | i-- |
| | | dAtA[i] = 0x48 |
| | | i++ |
| | | if m.IsRunning { |
| | | dAtA[i] = 1 |
| | | } else { |
| | | dAtA[i] = 0 |
| | | } |
| | | i-- |
| | | dAtA[i] = 0x48 |
| | | i++ |
| | | } |
| | | if len(m.Duration) > 0 { |
| | | i -= len(m.Duration) |
| | | copy(dAtA[i:], m.Duration) |
| | | i = encodeVarintFileanalysis(dAtA, i, uint64(len(m.Duration))) |
| | | i-- |
| | | dAtA[i] = 0x42 |
| | | if m.Progress != 0 { |
| | | dAtA[i] = 0x50 |
| | | i++ |
| | | i = encodeVarintFileanalysis(dAtA, i, uint64(m.Progress)) |
| | | } |
| | | if len(m.SnapshotUrl) > 0 { |
| | | i -= len(m.SnapshotUrl) |
| | | copy(dAtA[i:], m.SnapshotUrl) |
| | | i = encodeVarintFileanalysis(dAtA, i, uint64(len(m.SnapshotUrl))) |
| | | i-- |
| | | dAtA[i] = 0x3a |
| | | if m.RuleType != 0 { |
| | | dAtA[i] = 0x58 |
| | | i++ |
| | | i = encodeVarintFileanalysis(dAtA, i, uint64(m.RuleType)) |
| | | } |
| | | if len(m.Alias) > 0 { |
| | | i -= len(m.Alias) |
| | | copy(dAtA[i:], m.Alias) |
| | | i = encodeVarintFileanalysis(dAtA, i, uint64(len(m.Alias))) |
| | | i-- |
| | | dAtA[i] = 0x32 |
| | | if m.Status != 0 { |
| | | dAtA[i] = 0x60 |
| | | i++ |
| | | i = encodeVarintFileanalysis(dAtA, i, uint64(m.Status)) |
| | | } |
| | | if m.Sort != 0 { |
| | | i = encodeVarintFileanalysis(dAtA, i, uint64(m.Sort)) |
| | | i-- |
| | | dAtA[i] = 0x28 |
| | | if len(m.CreateTime) > 0 { |
| | | dAtA[i] = 0x6a |
| | | i++ |
| | | i = encodeVarintFileanalysis(dAtA, i, uint64(len(m.CreateTime))) |
| | | i += copy(dAtA[i:], m.CreateTime) |
| | | } |
| | | if m.Type != 0 { |
| | | i = encodeVarintFileanalysis(dAtA, i, uint64(m.Type)) |
| | | i-- |
| | | dAtA[i] = 0x20 |
| | | if len(m.UpdateTime) > 0 { |
| | | dAtA[i] = 0x72 |
| | | i++ |
| | | i = encodeVarintFileanalysis(dAtA, i, uint64(len(m.UpdateTime))) |
| | | i += copy(dAtA[i:], m.UpdateTime) |
| | | } |
| | | if len(m.Path) > 0 { |
| | | i -= len(m.Path) |
| | | copy(dAtA[i:], m.Path) |
| | | i = encodeVarintFileanalysis(dAtA, i, uint64(len(m.Path))) |
| | | i-- |
| | | dAtA[i] = 0x1a |
| | | if len(m.Identifier) > 0 { |
| | | dAtA[i] = 0x7a |
| | | i++ |
| | | i = encodeVarintFileanalysis(dAtA, i, uint64(len(m.Identifier))) |
| | | i += copy(dAtA[i:], m.Identifier) |
| | | } |
| | | if len(m.Name) > 0 { |
| | | i -= len(m.Name) |
| | | copy(dAtA[i:], m.Name) |
| | | i = encodeVarintFileanalysis(dAtA, i, uint64(len(m.Name))) |
| | | i-- |
| | | dAtA[i] = 0x12 |
| | | } |
| | | if len(m.Id) > 0 { |
| | | i -= len(m.Id) |
| | | copy(dAtA[i:], m.Id) |
| | | i = encodeVarintFileanalysis(dAtA, i, uint64(len(m.Id))) |
| | | i-- |
| | | dAtA[i] = 0xa |
| | | } |
| | | return len(dAtA) - i, nil |
| | | return i, nil |
| | | } |
| | | |
| | | func (m *FileAnalysisSetting) Marshal() (dAtA []byte, err error) { |
| | | size := m.Size() |
| | | dAtA = make([]byte, size) |
| | | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| | | n, err := m.MarshalTo(dAtA) |
| | | if err != nil { |
| | | return nil, err |
| | | } |
| | |
| | | } |
| | | |
| | | func (m *FileAnalysisSetting) MarshalTo(dAtA []byte) (int, error) { |
| | | size := m.Size() |
| | | return m.MarshalToSizedBuffer(dAtA[:size]) |
| | | } |
| | | |
| | | func (m *FileAnalysisSetting) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| | | i := len(dAtA) |
| | | var i int |
| | | _ = i |
| | | var l int |
| | | _ = l |
| | | if m.AudioChannelCount != 0 { |
| | | i = encodeVarintFileanalysis(dAtA, i, uint64(m.AudioChannelCount)) |
| | | i-- |
| | | dAtA[i] = 0x28 |
| | | } |
| | | if m.ImgChannelCount != 0 { |
| | | i = encodeVarintFileanalysis(dAtA, i, uint64(m.ImgChannelCount)) |
| | | i-- |
| | | dAtA[i] = 0x20 |
| | | } |
| | | if m.VideoChannelCount != 0 { |
| | | i = encodeVarintFileanalysis(dAtA, i, uint64(m.VideoChannelCount)) |
| | | i-- |
| | | dAtA[i] = 0x18 |
| | | } |
| | | if len(m.FileDirectory) > 0 { |
| | | i -= len(m.FileDirectory) |
| | | copy(dAtA[i:], m.FileDirectory) |
| | | i = encodeVarintFileanalysis(dAtA, i, uint64(len(m.FileDirectory))) |
| | | i-- |
| | | dAtA[i] = 0x12 |
| | | } |
| | | if m.VideoEnable { |
| | | i-- |
| | | dAtA[i] = 0x8 |
| | | i++ |
| | | if m.VideoEnable { |
| | | dAtA[i] = 1 |
| | | } else { |
| | | dAtA[i] = 0 |
| | | } |
| | | i-- |
| | | dAtA[i] = 0x8 |
| | | i++ |
| | | } |
| | | return len(dAtA) - i, nil |
| | | if len(m.FileDirectory) > 0 { |
| | | dAtA[i] = 0x12 |
| | | i++ |
| | | i = encodeVarintFileanalysis(dAtA, i, uint64(len(m.FileDirectory))) |
| | | i += copy(dAtA[i:], m.FileDirectory) |
| | | } |
| | | if m.VideoChannelCount != 0 { |
| | | dAtA[i] = 0x18 |
| | | i++ |
| | | i = encodeVarintFileanalysis(dAtA, i, uint64(m.VideoChannelCount)) |
| | | } |
| | | if m.ImgChannelCount != 0 { |
| | | dAtA[i] = 0x20 |
| | | i++ |
| | | i = encodeVarintFileanalysis(dAtA, i, uint64(m.ImgChannelCount)) |
| | | } |
| | | if m.AudioChannelCount != 0 { |
| | | dAtA[i] = 0x28 |
| | | i++ |
| | | i = encodeVarintFileanalysis(dAtA, i, uint64(m.AudioChannelCount)) |
| | | } |
| | | return i, nil |
| | | } |
| | | |
| | | func encodeVarintFileanalysis(dAtA []byte, offset int, v uint64) int { |
| | | offset -= sovFileanalysis(v) |
| | | base := offset |
| | | for v >= 1<<7 { |
| | | dAtA[offset] = uint8(v&0x7f | 0x80) |
| | | v >>= 7 |
| | | offset++ |
| | | } |
| | | dAtA[offset] = uint8(v) |
| | | return base |
| | | return offset + 1 |
| | | } |
| | | func (m *FileAnalysis) Size() (n int) { |
| | | if m == nil { |
| | |
| | | func skipFileanalysis(dAtA []byte) (n int, err error) { |
| | | l := len(dAtA) |
| | | iNdEx := 0 |
| | | depth := 0 |
| | | for iNdEx < l { |
| | | var wire uint64 |
| | | for shift := uint(0); ; shift += 7 { |
| | |
| | | break |
| | | } |
| | | } |
| | | return iNdEx, nil |
| | | case 1: |
| | | iNdEx += 8 |
| | | return iNdEx, nil |
| | | case 2: |
| | | var length int |
| | | for shift := uint(0); ; shift += 7 { |
| | |
| | | return 0, ErrInvalidLengthFileanalysis |
| | | } |
| | | iNdEx += length |
| | | case 3: |
| | | depth++ |
| | | case 4: |
| | | if depth == 0 { |
| | | return 0, ErrUnexpectedEndOfGroupFileanalysis |
| | | if iNdEx < 0 { |
| | | return 0, ErrInvalidLengthFileanalysis |
| | | } |
| | | depth-- |
| | | return iNdEx, nil |
| | | case 3: |
| | | for { |
| | | var innerWire uint64 |
| | | var start int = iNdEx |
| | | for shift := uint(0); ; shift += 7 { |
| | | if shift >= 64 { |
| | | return 0, ErrIntOverflowFileanalysis |
| | | } |
| | | if iNdEx >= l { |
| | | return 0, io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | innerWire |= (uint64(b) & 0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | innerWireType := int(innerWire & 0x7) |
| | | if innerWireType == 4 { |
| | | break |
| | | } |
| | | next, err := skipFileanalysis(dAtA[start:]) |
| | | if err != nil { |
| | | return 0, err |
| | | } |
| | | iNdEx = start + next |
| | | if iNdEx < 0 { |
| | | return 0, ErrInvalidLengthFileanalysis |
| | | } |
| | | } |
| | | return iNdEx, nil |
| | | case 4: |
| | | return iNdEx, nil |
| | | case 5: |
| | | iNdEx += 4 |
| | | return iNdEx, nil |
| | | default: |
| | | return 0, fmt.Errorf("proto: illegal wireType %d", wireType) |
| | | } |
| | | if iNdEx < 0 { |
| | | return 0, ErrInvalidLengthFileanalysis |
| | | } |
| | | if depth == 0 { |
| | | return iNdEx, nil |
| | | } |
| | | } |
| | | return 0, io.ErrUnexpectedEOF |
| | | panic("unreachable") |
| | | } |
| | | |
| | | var ( |
| | | ErrInvalidLengthFileanalysis = fmt.Errorf("proto: negative length found during unmarshaling") |
| | | ErrIntOverflowFileanalysis = fmt.Errorf("proto: integer overflow") |
| | | ErrUnexpectedEndOfGroupFileanalysis = fmt.Errorf("proto: unexpected end of group") |
| | | ErrInvalidLengthFileanalysis = fmt.Errorf("proto: negative length found during unmarshaling") |
| | | ErrIntOverflowFileanalysis = fmt.Errorf("proto: integer overflow") |
| | | ) |