From 2fca0926ac264d1c165a59c371c8fa5d029d9293 Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期四, 28 十一月 2019 11:56:54 +0800
Subject: [PATCH] add fileanalysis

---
 fileanalysis.proto |    0 
 fileanalysis.pb.go |  968 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 968 insertions(+), 0 deletions(-)

diff --git a/fileanalysis.pb.go b/fileanalysis.pb.go
new file mode 100644
index 0000000..d4b487d
--- /dev/null
+++ b/fileanalysis.pb.go
@@ -0,0 +1,968 @@
+// Code generated by protoc-gen-gogo. DO NOT EDIT.
+// source: fileanalysis.proto
+
+package protomsg
+
+import (
+	fmt "fmt"
+	proto "github.com/gogo/protobuf/proto"
+	io "io"
+	math "math"
+	math_bits "math/bits"
+)
+
+// Reference imports to suppress errors if they are not otherwise used.
+var _ = proto.Marshal
+var _ = fmt.Errorf
+var _ = math.Inf
+
+// This is a compile-time assertion to ensure that this generated file
+// 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.GoGoProtoPackageIsVersion2 // please upgrade the proto package
+
+type FileAnalysis struct {
+	Id         string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
+	Name       string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
+	Path       string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
+	Type       int32  `protobuf:"varint,4,opt,name=type,proto3" json:"type,omitempty"`
+	Sort       int32  `protobuf:"varint,5,opt,name=sort,proto3" json:"sort,omitempty"`
+	IsRunning  bool   `protobuf:"varint,6,opt,name=is_running,json=isRunning,proto3" json:"is_running,omitempty"`
+	Progress   int32  `protobuf:"varint,7,opt,name=progress,proto3" json:"progress,omitempty"`
+	RuleType   int32  `protobuf:"varint,8,opt,name=ruleType,proto3" json:"ruleType,omitempty"`
+	Status     int32  `protobuf:"varint,9,opt,name=status,proto3" json:"status,omitempty"`
+	CreateTime string `protobuf:"bytes,10,opt,name=createTime,proto3" json:"createTime,omitempty"`
+	UpdateTime string `protobuf:"bytes,11,opt,name=updateTime,proto3" json:"updateTime,omitempty"`
+}
+
+func (m *FileAnalysis) Reset()         { *m = FileAnalysis{} }
+func (m *FileAnalysis) String() string { return proto.CompactTextString(m) }
+func (*FileAnalysis) ProtoMessage()    {}
+func (*FileAnalysis) Descriptor() ([]byte, []int) {
+	return fileDescriptor_4bee17140da7bca9, []int{0}
+}
+func (m *FileAnalysis) XXX_Unmarshal(b []byte) error {
+	return m.Unmarshal(b)
+}
+func (m *FileAnalysis) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+	if deterministic {
+		return xxx_messageInfo_FileAnalysis.Marshal(b, m, deterministic)
+	} else {
+		b = b[:cap(b)]
+		n, err := m.MarshalTo(b)
+		if err != nil {
+			return nil, err
+		}
+		return b[:n], nil
+	}
+}
+func (m *FileAnalysis) XXX_Merge(src proto.Message) {
+	xxx_messageInfo_FileAnalysis.Merge(m, src)
+}
+func (m *FileAnalysis) XXX_Size() int {
+	return m.Size()
+}
+func (m *FileAnalysis) XXX_DiscardUnknown() {
+	xxx_messageInfo_FileAnalysis.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_FileAnalysis proto.InternalMessageInfo
+
+func (m *FileAnalysis) GetId() string {
+	if m != nil {
+		return m.Id
+	}
+	return ""
+}
+
+func (m *FileAnalysis) GetName() string {
+	if m != nil {
+		return m.Name
+	}
+	return ""
+}
+
+func (m *FileAnalysis) GetPath() string {
+	if m != nil {
+		return m.Path
+	}
+	return ""
+}
+
+func (m *FileAnalysis) GetType() int32 {
+	if m != nil {
+		return m.Type
+	}
+	return 0
+}
+
+func (m *FileAnalysis) GetSort() int32 {
+	if m != nil {
+		return m.Sort
+	}
+	return 0
+}
+
+func (m *FileAnalysis) GetIsRunning() bool {
+	if m != nil {
+		return m.IsRunning
+	}
+	return false
+}
+
+func (m *FileAnalysis) GetProgress() int32 {
+	if m != nil {
+		return m.Progress
+	}
+	return 0
+}
+
+func (m *FileAnalysis) GetRuleType() int32 {
+	if m != nil {
+		return m.RuleType
+	}
+	return 0
+}
+
+func (m *FileAnalysis) GetStatus() int32 {
+	if m != nil {
+		return m.Status
+	}
+	return 0
+}
+
+func (m *FileAnalysis) GetCreateTime() string {
+	if m != nil {
+		return m.CreateTime
+	}
+	return ""
+}
+
+func (m *FileAnalysis) GetUpdateTime() string {
+	if m != nil {
+		return m.UpdateTime
+	}
+	return ""
+}
+
+type FileAnalysisSetting struct {
+	VideoFileEnable bool   `protobuf:"varint,1,opt,name=videoFileEnable,proto3" json:"videoFileEnable,omitempty"`
+	VideoDirectory  string `protobuf:"bytes,2,opt,name=videoDirectory,proto3" json:"videoDirectory,omitempty"`
+}
+
+func (m *FileAnalysisSetting) Reset()         { *m = FileAnalysisSetting{} }
+func (m *FileAnalysisSetting) String() string { return proto.CompactTextString(m) }
+func (*FileAnalysisSetting) ProtoMessage()    {}
+func (*FileAnalysisSetting) Descriptor() ([]byte, []int) {
+	return fileDescriptor_4bee17140da7bca9, []int{1}
+}
+func (m *FileAnalysisSetting) XXX_Unmarshal(b []byte) error {
+	return m.Unmarshal(b)
+}
+func (m *FileAnalysisSetting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+	if deterministic {
+		return xxx_messageInfo_FileAnalysisSetting.Marshal(b, m, deterministic)
+	} else {
+		b = b[:cap(b)]
+		n, err := m.MarshalTo(b)
+		if err != nil {
+			return nil, err
+		}
+		return b[:n], nil
+	}
+}
+func (m *FileAnalysisSetting) XXX_Merge(src proto.Message) {
+	xxx_messageInfo_FileAnalysisSetting.Merge(m, src)
+}
+func (m *FileAnalysisSetting) XXX_Size() int {
+	return m.Size()
+}
+func (m *FileAnalysisSetting) XXX_DiscardUnknown() {
+	xxx_messageInfo_FileAnalysisSetting.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_FileAnalysisSetting proto.InternalMessageInfo
+
+func (m *FileAnalysisSetting) GetVideoFileEnable() bool {
+	if m != nil {
+		return m.VideoFileEnable
+	}
+	return false
+}
+
+func (m *FileAnalysisSetting) GetVideoDirectory() string {
+	if m != nil {
+		return m.VideoDirectory
+	}
+	return ""
+}
+
+func init() {
+	proto.RegisterType((*FileAnalysis)(nil), "protomsg.FileAnalysis")
+	proto.RegisterType((*FileAnalysisSetting)(nil), "protomsg.FileAnalysisSetting")
+}
+
+func init() { proto.RegisterFile("fileanalysis.proto", fileDescriptor_4bee17140da7bca9) }
+
+var fileDescriptor_4bee17140da7bca9 = []byte{
+	// 302 bytes of a gzipped FileDescriptorProto
+	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x91, 0x41, 0x4a, 0xc4, 0x30,
+	0x14, 0x86, 0x27, 0x75, 0x66, 0x6c, 0x9f, 0x32, 0x42, 0x04, 0x09, 0x82, 0xa1, 0xcc, 0x42, 0xba,
+	0x72, 0xe3, 0x09, 0x14, 0xf5, 0x00, 0x75, 0xf6, 0x92, 0x99, 0x3e, 0x6b, 0xa0, 0x4d, 0x4b, 0x92,
+	0x0a, 0xbd, 0x85, 0x17, 0xf0, 0x3e, 0x2e, 0x67, 0xe9, 0x52, 0xda, 0x8b, 0x48, 0xd2, 0x8e, 0x0e,
+	0xb3, 0xea, 0xff, 0xbe, 0xaf, 0x21, 0x8f, 0x3f, 0x40, 0x5f, 0x65, 0x81, 0x42, 0x89, 0xa2, 0x35,
+	0xd2, 0xdc, 0xd4, 0xba, 0xb2, 0x15, 0x0d, 0xfd, 0xa7, 0x34, 0xf9, 0xf2, 0x33, 0x80, 0xd3, 0x27,
+	0x59, 0xe0, 0xdd, 0xf8, 0x03, 0x5d, 0x40, 0x20, 0x33, 0x46, 0x62, 0x92, 0x44, 0x69, 0x20, 0x33,
+	0x4a, 0x61, 0xaa, 0x44, 0x89, 0x2c, 0xf0, 0xc4, 0x67, 0xc7, 0x6a, 0x61, 0xdf, 0xd8, 0xd1, 0xc0,
+	0x5c, 0x76, 0xcc, 0xb6, 0x35, 0xb2, 0x69, 0x4c, 0x92, 0x59, 0xea, 0xb3, 0x63, 0xa6, 0xd2, 0x96,
+	0xcd, 0x06, 0xe6, 0x32, 0xbd, 0x02, 0x90, 0xe6, 0x45, 0x37, 0x4a, 0x49, 0x95, 0xb3, 0x79, 0x4c,
+	0x92, 0x30, 0x8d, 0xa4, 0x49, 0x07, 0x40, 0x2f, 0xc1, 0xed, 0x96, 0x6b, 0x34, 0x86, 0x1d, 0xfb,
+	0x63, 0x7f, 0xb3, 0x73, 0xba, 0x29, 0x70, 0xe5, 0xae, 0x09, 0x07, 0xb7, 0x9b, 0xe9, 0x05, 0xcc,
+	0x8d, 0x15, 0xb6, 0x31, 0x2c, 0xf2, 0x66, 0x9c, 0x28, 0x07, 0xd8, 0x68, 0x14, 0x16, 0x57, 0xb2,
+	0x44, 0x06, 0x7e, 0xe1, 0x3d, 0xe2, 0x7c, 0x53, 0x67, 0x3b, 0x7f, 0x32, 0xf8, 0x7f, 0xb2, 0xcc,
+	0xe1, 0x7c, 0xbf, 0x9e, 0x67, 0xb4, 0xd6, 0xad, 0x99, 0xc0, 0xd9, 0xbb, 0xcc, 0xb0, 0x72, 0xee,
+	0x51, 0x89, 0x75, 0x81, 0xbe, 0xb2, 0x30, 0x3d, 0xc4, 0xf4, 0x1a, 0x16, 0x1e, 0x3d, 0x48, 0x8d,
+	0x1b, 0x5b, 0xe9, 0x76, 0x6c, 0xf2, 0x80, 0xde, 0xb3, 0xaf, 0x8e, 0x93, 0x6d, 0xc7, 0xc9, 0x4f,
+	0xc7, 0xc9, 0x47, 0xcf, 0x27, 0xdb, 0x9e, 0x4f, 0xbe, 0x7b, 0x3e, 0x59, 0xcf, 0xfd, 0x63, 0xdd,
+	0xfe, 0x06, 0x00, 0x00, 0xff, 0xff, 0xc9, 0x25, 0x54, 0x13, 0xc9, 0x01, 0x00, 0x00,
+}
+
+func (m *FileAnalysis) Marshal() (dAtA []byte, err error) {
+	size := m.Size()
+	dAtA = make([]byte, size)
+	n, err := m.MarshalTo(dAtA)
+	if err != nil {
+		return nil, err
+	}
+	return dAtA[:n], nil
+}
+
+func (m *FileAnalysis) MarshalTo(dAtA []byte) (int, error) {
+	var i int
+	_ = i
+	var l int
+	_ = l
+	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.Name) > 0 {
+		dAtA[i] = 0x12
+		i++
+		i = encodeVarintFileanalysis(dAtA, i, uint64(len(m.Name)))
+		i += copy(dAtA[i:], m.Name)
+	}
+	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.Type != 0 {
+		dAtA[i] = 0x20
+		i++
+		i = encodeVarintFileanalysis(dAtA, i, uint64(m.Type))
+	}
+	if m.Sort != 0 {
+		dAtA[i] = 0x28
+		i++
+		i = encodeVarintFileanalysis(dAtA, i, uint64(m.Sort))
+	}
+	if m.IsRunning {
+		dAtA[i] = 0x30
+		i++
+		if m.IsRunning {
+			dAtA[i] = 1
+		} else {
+			dAtA[i] = 0
+		}
+		i++
+	}
+	if m.Progress != 0 {
+		dAtA[i] = 0x38
+		i++
+		i = encodeVarintFileanalysis(dAtA, i, uint64(m.Progress))
+	}
+	if m.RuleType != 0 {
+		dAtA[i] = 0x40
+		i++
+		i = encodeVarintFileanalysis(dAtA, i, uint64(m.RuleType))
+	}
+	if m.Status != 0 {
+		dAtA[i] = 0x48
+		i++
+		i = encodeVarintFileanalysis(dAtA, i, uint64(m.Status))
+	}
+	if len(m.CreateTime) > 0 {
+		dAtA[i] = 0x52
+		i++
+		i = encodeVarintFileanalysis(dAtA, i, uint64(len(m.CreateTime)))
+		i += copy(dAtA[i:], m.CreateTime)
+	}
+	if len(m.UpdateTime) > 0 {
+		dAtA[i] = 0x5a
+		i++
+		i = encodeVarintFileanalysis(dAtA, i, uint64(len(m.UpdateTime)))
+		i += copy(dAtA[i:], m.UpdateTime)
+	}
+	return i, nil
+}
+
+func (m *FileAnalysisSetting) Marshal() (dAtA []byte, err error) {
+	size := m.Size()
+	dAtA = make([]byte, size)
+	n, err := m.MarshalTo(dAtA)
+	if err != nil {
+		return nil, err
+	}
+	return dAtA[:n], nil
+}
+
+func (m *FileAnalysisSetting) MarshalTo(dAtA []byte) (int, error) {
+	var i int
+	_ = i
+	var l int
+	_ = l
+	if m.VideoFileEnable {
+		dAtA[i] = 0x8
+		i++
+		if m.VideoFileEnable {
+			dAtA[i] = 1
+		} else {
+			dAtA[i] = 0
+		}
+		i++
+	}
+	if len(m.VideoDirectory) > 0 {
+		dAtA[i] = 0x12
+		i++
+		i = encodeVarintFileanalysis(dAtA, i, uint64(len(m.VideoDirectory)))
+		i += copy(dAtA[i:], m.VideoDirectory)
+	}
+	return i, nil
+}
+
+func encodeVarintFileanalysis(dAtA []byte, offset int, v uint64) int {
+	for v >= 1<<7 {
+		dAtA[offset] = uint8(v&0x7f | 0x80)
+		v >>= 7
+		offset++
+	}
+	dAtA[offset] = uint8(v)
+	return offset + 1
+}
+func (m *FileAnalysis) Size() (n int) {
+	if m == nil {
+		return 0
+	}
+	var l int
+	_ = l
+	l = len(m.Id)
+	if l > 0 {
+		n += 1 + l + sovFileanalysis(uint64(l))
+	}
+	l = len(m.Name)
+	if l > 0 {
+		n += 1 + l + sovFileanalysis(uint64(l))
+	}
+	l = len(m.Path)
+	if l > 0 {
+		n += 1 + l + sovFileanalysis(uint64(l))
+	}
+	if m.Type != 0 {
+		n += 1 + sovFileanalysis(uint64(m.Type))
+	}
+	if m.Sort != 0 {
+		n += 1 + sovFileanalysis(uint64(m.Sort))
+	}
+	if m.IsRunning {
+		n += 2
+	}
+	if m.Progress != 0 {
+		n += 1 + sovFileanalysis(uint64(m.Progress))
+	}
+	if m.RuleType != 0 {
+		n += 1 + sovFileanalysis(uint64(m.RuleType))
+	}
+	if m.Status != 0 {
+		n += 1 + sovFileanalysis(uint64(m.Status))
+	}
+	l = len(m.CreateTime)
+	if l > 0 {
+		n += 1 + l + sovFileanalysis(uint64(l))
+	}
+	l = len(m.UpdateTime)
+	if l > 0 {
+		n += 1 + l + sovFileanalysis(uint64(l))
+	}
+	return n
+}
+
+func (m *FileAnalysisSetting) Size() (n int) {
+	if m == nil {
+		return 0
+	}
+	var l int
+	_ = l
+	if m.VideoFileEnable {
+		n += 2
+	}
+	l = len(m.VideoDirectory)
+	if l > 0 {
+		n += 1 + l + sovFileanalysis(uint64(l))
+	}
+	return n
+}
+
+func sovFileanalysis(x uint64) (n int) {
+	return (math_bits.Len64(x|1) + 6) / 7
+}
+func sozFileanalysis(x uint64) (n int) {
+	return sovFileanalysis(uint64((x << 1) ^ uint64((int64(x) >> 63))))
+}
+func (m *FileAnalysis) Unmarshal(dAtA []byte) error {
+	l := len(dAtA)
+	iNdEx := 0
+	for iNdEx < l {
+		preIndex := iNdEx
+		var wire uint64
+		for shift := uint(0); ; shift += 7 {
+			if shift >= 64 {
+				return ErrIntOverflowFileanalysis
+			}
+			if iNdEx >= l {
+				return io.ErrUnexpectedEOF
+			}
+			b := dAtA[iNdEx]
+			iNdEx++
+			wire |= uint64(b&0x7F) << shift
+			if b < 0x80 {
+				break
+			}
+		}
+		fieldNum := int32(wire >> 3)
+		wireType := int(wire & 0x7)
+		if wireType == 4 {
+			return fmt.Errorf("proto: FileAnalysis: wiretype end group for non-group")
+		}
+		if fieldNum <= 0 {
+			return fmt.Errorf("proto: FileAnalysis: illegal tag %d (wire type %d)", fieldNum, wire)
+		}
+		switch fieldNum {
+		case 1:
+			if wireType != 2 {
+				return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
+			}
+			var stringLen uint64
+			for shift := uint(0); ; shift += 7 {
+				if shift >= 64 {
+					return ErrIntOverflowFileanalysis
+				}
+				if iNdEx >= l {
+					return io.ErrUnexpectedEOF
+				}
+				b := dAtA[iNdEx]
+				iNdEx++
+				stringLen |= uint64(b&0x7F) << shift
+				if b < 0x80 {
+					break
+				}
+			}
+			intStringLen := int(stringLen)
+			if intStringLen < 0 {
+				return ErrInvalidLengthFileanalysis
+			}
+			postIndex := iNdEx + intStringLen
+			if postIndex < 0 {
+				return ErrInvalidLengthFileanalysis
+			}
+			if postIndex > l {
+				return io.ErrUnexpectedEOF
+			}
+			m.Id = string(dAtA[iNdEx:postIndex])
+			iNdEx = postIndex
+		case 2:
+			if wireType != 2 {
+				return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
+			}
+			var stringLen uint64
+			for shift := uint(0); ; shift += 7 {
+				if shift >= 64 {
+					return ErrIntOverflowFileanalysis
+				}
+				if iNdEx >= l {
+					return io.ErrUnexpectedEOF
+				}
+				b := dAtA[iNdEx]
+				iNdEx++
+				stringLen |= uint64(b&0x7F) << shift
+				if b < 0x80 {
+					break
+				}
+			}
+			intStringLen := int(stringLen)
+			if intStringLen < 0 {
+				return ErrInvalidLengthFileanalysis
+			}
+			postIndex := iNdEx + intStringLen
+			if postIndex < 0 {
+				return ErrInvalidLengthFileanalysis
+			}
+			if postIndex > l {
+				return io.ErrUnexpectedEOF
+			}
+			m.Name = string(dAtA[iNdEx:postIndex])
+			iNdEx = postIndex
+		case 3:
+			if wireType != 2 {
+				return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType)
+			}
+			var stringLen uint64
+			for shift := uint(0); ; shift += 7 {
+				if shift >= 64 {
+					return ErrIntOverflowFileanalysis
+				}
+				if iNdEx >= l {
+					return io.ErrUnexpectedEOF
+				}
+				b := dAtA[iNdEx]
+				iNdEx++
+				stringLen |= uint64(b&0x7F) << shift
+				if b < 0x80 {
+					break
+				}
+			}
+			intStringLen := int(stringLen)
+			if intStringLen < 0 {
+				return ErrInvalidLengthFileanalysis
+			}
+			postIndex := iNdEx + intStringLen
+			if postIndex < 0 {
+				return ErrInvalidLengthFileanalysis
+			}
+			if postIndex > l {
+				return io.ErrUnexpectedEOF
+			}
+			m.Path = string(dAtA[iNdEx:postIndex])
+			iNdEx = postIndex
+		case 4:
+			if wireType != 0 {
+				return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
+			}
+			m.Type = 0
+			for shift := uint(0); ; shift += 7 {
+				if shift >= 64 {
+					return ErrIntOverflowFileanalysis
+				}
+				if iNdEx >= l {
+					return io.ErrUnexpectedEOF
+				}
+				b := dAtA[iNdEx]
+				iNdEx++
+				m.Type |= int32(b&0x7F) << shift
+				if b < 0x80 {
+					break
+				}
+			}
+		case 5:
+			if wireType != 0 {
+				return fmt.Errorf("proto: wrong wireType = %d for field Sort", wireType)
+			}
+			m.Sort = 0
+			for shift := uint(0); ; shift += 7 {
+				if shift >= 64 {
+					return ErrIntOverflowFileanalysis
+				}
+				if iNdEx >= l {
+					return io.ErrUnexpectedEOF
+				}
+				b := dAtA[iNdEx]
+				iNdEx++
+				m.Sort |= int32(b&0x7F) << shift
+				if b < 0x80 {
+					break
+				}
+			}
+		case 6:
+			if wireType != 0 {
+				return fmt.Errorf("proto: wrong wireType = %d for field IsRunning", wireType)
+			}
+			var v int
+			for shift := uint(0); ; shift += 7 {
+				if shift >= 64 {
+					return ErrIntOverflowFileanalysis
+				}
+				if iNdEx >= l {
+					return io.ErrUnexpectedEOF
+				}
+				b := dAtA[iNdEx]
+				iNdEx++
+				v |= int(b&0x7F) << shift
+				if b < 0x80 {
+					break
+				}
+			}
+			m.IsRunning = bool(v != 0)
+		case 7:
+			if wireType != 0 {
+				return fmt.Errorf("proto: wrong wireType = %d for field Progress", wireType)
+			}
+			m.Progress = 0
+			for shift := uint(0); ; shift += 7 {
+				if shift >= 64 {
+					return ErrIntOverflowFileanalysis
+				}
+				if iNdEx >= l {
+					return io.ErrUnexpectedEOF
+				}
+				b := dAtA[iNdEx]
+				iNdEx++
+				m.Progress |= int32(b&0x7F) << shift
+				if b < 0x80 {
+					break
+				}
+			}
+		case 8:
+			if wireType != 0 {
+				return fmt.Errorf("proto: wrong wireType = %d for field RuleType", wireType)
+			}
+			m.RuleType = 0
+			for shift := uint(0); ; shift += 7 {
+				if shift >= 64 {
+					return ErrIntOverflowFileanalysis
+				}
+				if iNdEx >= l {
+					return io.ErrUnexpectedEOF
+				}
+				b := dAtA[iNdEx]
+				iNdEx++
+				m.RuleType |= int32(b&0x7F) << shift
+				if b < 0x80 {
+					break
+				}
+			}
+		case 9:
+			if wireType != 0 {
+				return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
+			}
+			m.Status = 0
+			for shift := uint(0); ; shift += 7 {
+				if shift >= 64 {
+					return ErrIntOverflowFileanalysis
+				}
+				if iNdEx >= l {
+					return io.ErrUnexpectedEOF
+				}
+				b := dAtA[iNdEx]
+				iNdEx++
+				m.Status |= int32(b&0x7F) << shift
+				if b < 0x80 {
+					break
+				}
+			}
+		case 10:
+			if wireType != 2 {
+				return fmt.Errorf("proto: wrong wireType = %d for field CreateTime", wireType)
+			}
+			var stringLen uint64
+			for shift := uint(0); ; shift += 7 {
+				if shift >= 64 {
+					return ErrIntOverflowFileanalysis
+				}
+				if iNdEx >= l {
+					return io.ErrUnexpectedEOF
+				}
+				b := dAtA[iNdEx]
+				iNdEx++
+				stringLen |= uint64(b&0x7F) << shift
+				if b < 0x80 {
+					break
+				}
+			}
+			intStringLen := int(stringLen)
+			if intStringLen < 0 {
+				return ErrInvalidLengthFileanalysis
+			}
+			postIndex := iNdEx + intStringLen
+			if postIndex < 0 {
+				return ErrInvalidLengthFileanalysis
+			}
+			if postIndex > l {
+				return io.ErrUnexpectedEOF
+			}
+			m.CreateTime = string(dAtA[iNdEx:postIndex])
+			iNdEx = postIndex
+		case 11:
+			if wireType != 2 {
+				return fmt.Errorf("proto: wrong wireType = %d for field UpdateTime", wireType)
+			}
+			var stringLen uint64
+			for shift := uint(0); ; shift += 7 {
+				if shift >= 64 {
+					return ErrIntOverflowFileanalysis
+				}
+				if iNdEx >= l {
+					return io.ErrUnexpectedEOF
+				}
+				b := dAtA[iNdEx]
+				iNdEx++
+				stringLen |= uint64(b&0x7F) << shift
+				if b < 0x80 {
+					break
+				}
+			}
+			intStringLen := int(stringLen)
+			if intStringLen < 0 {
+				return ErrInvalidLengthFileanalysis
+			}
+			postIndex := iNdEx + intStringLen
+			if postIndex < 0 {
+				return ErrInvalidLengthFileanalysis
+			}
+			if postIndex > l {
+				return io.ErrUnexpectedEOF
+			}
+			m.UpdateTime = string(dAtA[iNdEx:postIndex])
+			iNdEx = postIndex
+		default:
+			iNdEx = preIndex
+			skippy, err := skipFileanalysis(dAtA[iNdEx:])
+			if err != nil {
+				return err
+			}
+			if skippy < 0 {
+				return ErrInvalidLengthFileanalysis
+			}
+			if (iNdEx + skippy) < 0 {
+				return ErrInvalidLengthFileanalysis
+			}
+			if (iNdEx + skippy) > l {
+				return io.ErrUnexpectedEOF
+			}
+			iNdEx += skippy
+		}
+	}
+
+	if iNdEx > l {
+		return io.ErrUnexpectedEOF
+	}
+	return nil
+}
+func (m *FileAnalysisSetting) Unmarshal(dAtA []byte) error {
+	l := len(dAtA)
+	iNdEx := 0
+	for iNdEx < l {
+		preIndex := iNdEx
+		var wire uint64
+		for shift := uint(0); ; shift += 7 {
+			if shift >= 64 {
+				return ErrIntOverflowFileanalysis
+			}
+			if iNdEx >= l {
+				return io.ErrUnexpectedEOF
+			}
+			b := dAtA[iNdEx]
+			iNdEx++
+			wire |= uint64(b&0x7F) << shift
+			if b < 0x80 {
+				break
+			}
+		}
+		fieldNum := int32(wire >> 3)
+		wireType := int(wire & 0x7)
+		if wireType == 4 {
+			return fmt.Errorf("proto: FileAnalysisSetting: wiretype end group for non-group")
+		}
+		if fieldNum <= 0 {
+			return fmt.Errorf("proto: FileAnalysisSetting: illegal tag %d (wire type %d)", fieldNum, wire)
+		}
+		switch fieldNum {
+		case 1:
+			if wireType != 0 {
+				return fmt.Errorf("proto: wrong wireType = %d for field VideoFileEnable", wireType)
+			}
+			var v int
+			for shift := uint(0); ; shift += 7 {
+				if shift >= 64 {
+					return ErrIntOverflowFileanalysis
+				}
+				if iNdEx >= l {
+					return io.ErrUnexpectedEOF
+				}
+				b := dAtA[iNdEx]
+				iNdEx++
+				v |= int(b&0x7F) << shift
+				if b < 0x80 {
+					break
+				}
+			}
+			m.VideoFileEnable = bool(v != 0)
+		case 2:
+			if wireType != 2 {
+				return fmt.Errorf("proto: wrong wireType = %d for field VideoDirectory", wireType)
+			}
+			var stringLen uint64
+			for shift := uint(0); ; shift += 7 {
+				if shift >= 64 {
+					return ErrIntOverflowFileanalysis
+				}
+				if iNdEx >= l {
+					return io.ErrUnexpectedEOF
+				}
+				b := dAtA[iNdEx]
+				iNdEx++
+				stringLen |= uint64(b&0x7F) << shift
+				if b < 0x80 {
+					break
+				}
+			}
+			intStringLen := int(stringLen)
+			if intStringLen < 0 {
+				return ErrInvalidLengthFileanalysis
+			}
+			postIndex := iNdEx + intStringLen
+			if postIndex < 0 {
+				return ErrInvalidLengthFileanalysis
+			}
+			if postIndex > l {
+				return io.ErrUnexpectedEOF
+			}
+			m.VideoDirectory = string(dAtA[iNdEx:postIndex])
+			iNdEx = postIndex
+		default:
+			iNdEx = preIndex
+			skippy, err := skipFileanalysis(dAtA[iNdEx:])
+			if err != nil {
+				return err
+			}
+			if skippy < 0 {
+				return ErrInvalidLengthFileanalysis
+			}
+			if (iNdEx + skippy) < 0 {
+				return ErrInvalidLengthFileanalysis
+			}
+			if (iNdEx + skippy) > l {
+				return io.ErrUnexpectedEOF
+			}
+			iNdEx += skippy
+		}
+	}
+
+	if iNdEx > l {
+		return io.ErrUnexpectedEOF
+	}
+	return nil
+}
+func skipFileanalysis(dAtA []byte) (n int, err error) {
+	l := len(dAtA)
+	iNdEx := 0
+	for iNdEx < l {
+		var wire uint64
+		for shift := uint(0); ; shift += 7 {
+			if shift >= 64 {
+				return 0, ErrIntOverflowFileanalysis
+			}
+			if iNdEx >= l {
+				return 0, io.ErrUnexpectedEOF
+			}
+			b := dAtA[iNdEx]
+			iNdEx++
+			wire |= (uint64(b) & 0x7F) << shift
+			if b < 0x80 {
+				break
+			}
+		}
+		wireType := int(wire & 0x7)
+		switch wireType {
+		case 0:
+			for shift := uint(0); ; shift += 7 {
+				if shift >= 64 {
+					return 0, ErrIntOverflowFileanalysis
+				}
+				if iNdEx >= l {
+					return 0, io.ErrUnexpectedEOF
+				}
+				iNdEx++
+				if dAtA[iNdEx-1] < 0x80 {
+					break
+				}
+			}
+			return iNdEx, nil
+		case 1:
+			iNdEx += 8
+			return iNdEx, nil
+		case 2:
+			var length int
+			for shift := uint(0); ; shift += 7 {
+				if shift >= 64 {
+					return 0, ErrIntOverflowFileanalysis
+				}
+				if iNdEx >= l {
+					return 0, io.ErrUnexpectedEOF
+				}
+				b := dAtA[iNdEx]
+				iNdEx++
+				length |= (int(b) & 0x7F) << shift
+				if b < 0x80 {
+					break
+				}
+			}
+			if length < 0 {
+				return 0, ErrInvalidLengthFileanalysis
+			}
+			iNdEx += length
+			if iNdEx < 0 {
+				return 0, ErrInvalidLengthFileanalysis
+			}
+			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)
+		}
+	}
+	panic("unreachable")
+}
+
+var (
+	ErrInvalidLengthFileanalysis = fmt.Errorf("proto: negative length found during unmarshaling")
+	ErrIntOverflowFileanalysis   = fmt.Errorf("proto: integer overflow")
+)
diff --git a/fileanalysis.proto b/fileanalysis.proto
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/fileanalysis.proto

--
Gitblit v1.8.0