// 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"`
|
Alias string `protobuf:"bytes,6,opt,name=alias,proto3" json:"alias,omitempty"`
|
SnapshotUrl string `protobuf:"bytes,7,opt,name=snapshot_url,json=snapshotUrl,proto3" json:"snapshot_url,omitempty"`
|
Duration string `protobuf:"bytes,8,opt,name=duration,proto3" json:"duration,omitempty"`
|
IsRunning bool `protobuf:"varint,9,opt,name=is_running,json=isRunning,proto3" json:"is_running,omitempty"`
|
Progress int32 `protobuf:"varint,10,opt,name=progress,proto3" json:"progress,omitempty"`
|
RuleType int32 `protobuf:"varint,11,opt,name=ruleType,proto3" json:"ruleType,omitempty"`
|
Status int32 `protobuf:"varint,12,opt,name=status,proto3" json:"status,omitempty"`
|
CreateTime string `protobuf:"bytes,13,opt,name=createTime,proto3" json:"createTime,omitempty"`
|
UpdateTime string `protobuf:"bytes,14,opt,name=updateTime,proto3" json:"updateTime,omitempty"`
|
Identifier string `protobuf:"bytes,15,opt,name=identifier,proto3" json:"identifier,omitempty"`
|
StackId string `protobuf:"bytes,16,opt,name=stack_id,json=stackId,proto3" json:"stack_id,omitempty"`
|
Size_ int64 `protobuf:"varint,17,opt,name=size,proto3" json:"size,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) GetAlias() string {
|
if m != nil {
|
return m.Alias
|
}
|
return ""
|
}
|
|
func (m *FileAnalysis) GetSnapshotUrl() string {
|
if m != nil {
|
return m.SnapshotUrl
|
}
|
return ""
|
}
|
|
func (m *FileAnalysis) GetDuration() string {
|
if m != nil {
|
return m.Duration
|
}
|
return ""
|
}
|
|
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 ""
|
}
|
|
func (m *FileAnalysis) GetIdentifier() string {
|
if m != nil {
|
return m.Identifier
|
}
|
return ""
|
}
|
|
func (m *FileAnalysis) GetStackId() string {
|
if m != nil {
|
return m.StackId
|
}
|
return ""
|
}
|
|
func (m *FileAnalysis) GetSize_() int64 {
|
if m != nil {
|
return m.Size_
|
}
|
return 0
|
}
|
|
type FileAnalysisSetting struct {
|
VideoEnable bool `protobuf:"varint,1,opt,name=videoEnable,proto3" json:"videoEnable,omitempty"`
|
FileDirectory string `protobuf:"bytes,2,opt,name=fileDirectory,proto3" json:"fileDirectory,omitempty"`
|
VideoChannelCount int32 `protobuf:"varint,3,opt,name=videoChannelCount,proto3" json:"videoChannelCount,omitempty"`
|
ImgChannelCount int32 `protobuf:"varint,4,opt,name=imgChannelCount,proto3" json:"imgChannelCount,omitempty"`
|
AudioChannelCount int32 `protobuf:"varint,5,opt,name=audioChannelCount,proto3" json:"audioChannelCount,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) GetVideoEnable() bool {
|
if m != nil {
|
return m.VideoEnable
|
}
|
return false
|
}
|
|
func (m *FileAnalysisSetting) GetFileDirectory() string {
|
if m != nil {
|
return m.FileDirectory
|
}
|
return ""
|
}
|
|
func (m *FileAnalysisSetting) GetVideoChannelCount() int32 {
|
if m != nil {
|
return m.VideoChannelCount
|
}
|
return 0
|
}
|
|
func (m *FileAnalysisSetting) GetImgChannelCount() int32 {
|
if m != nil {
|
return m.ImgChannelCount
|
}
|
return 0
|
}
|
|
func (m *FileAnalysisSetting) GetAudioChannelCount() int32 {
|
if m != nil {
|
return m.AudioChannelCount
|
}
|
return 0
|
}
|
|
type FileStack 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"`
|
Type int32 `protobuf:"varint,3,opt,name=type,proto3" json:"type,omitempty"`
|
Enable bool `protobuf:"varint,4,opt,name=enable,proto3" json:"enable,omitempty"`
|
IsAutoDelFile bool `protobuf:"varint,5,opt,name=isAutoDelFile,proto3" json:"isAutoDelFile,omitempty"`
|
Status int32 `protobuf:"varint,6,opt,name=status,proto3" json:"status,omitempty"`
|
CreateTime string `protobuf:"bytes,7,opt,name=createTime,proto3" json:"createTime,omitempty"`
|
UpdateTime string `protobuf:"bytes,8,opt,name=updateTime,proto3" json:"updateTime,omitempty"`
|
Sort int32 `protobuf:"varint,9,opt,name=sort,proto3" json:"sort,omitempty"`
|
}
|
|
func (m *FileStack) Reset() { *m = FileStack{} }
|
func (m *FileStack) String() string { return proto.CompactTextString(m) }
|
func (*FileStack) ProtoMessage() {}
|
func (*FileStack) Descriptor() ([]byte, []int) {
|
return fileDescriptor_4bee17140da7bca9, []int{2}
|
}
|
func (m *FileStack) XXX_Unmarshal(b []byte) error {
|
return m.Unmarshal(b)
|
}
|
func (m *FileStack) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
if deterministic {
|
return xxx_messageInfo_FileStack.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 *FileStack) XXX_Merge(src proto.Message) {
|
xxx_messageInfo_FileStack.Merge(m, src)
|
}
|
func (m *FileStack) XXX_Size() int {
|
return m.Size()
|
}
|
func (m *FileStack) XXX_DiscardUnknown() {
|
xxx_messageInfo_FileStack.DiscardUnknown(m)
|
}
|
|
var xxx_messageInfo_FileStack proto.InternalMessageInfo
|
|
func (m *FileStack) GetId() string {
|
if m != nil {
|
return m.Id
|
}
|
return ""
|
}
|
|
func (m *FileStack) GetName() string {
|
if m != nil {
|
return m.Name
|
}
|
return ""
|
}
|
|
func (m *FileStack) GetType() int32 {
|
if m != nil {
|
return m.Type
|
}
|
return 0
|
}
|
|
func (m *FileStack) GetEnable() bool {
|
if m != nil {
|
return m.Enable
|
}
|
return false
|
}
|
|
func (m *FileStack) GetIsAutoDelFile() bool {
|
if m != nil {
|
return m.IsAutoDelFile
|
}
|
return false
|
}
|
|
func (m *FileStack) GetStatus() int32 {
|
if m != nil {
|
return m.Status
|
}
|
return 0
|
}
|
|
func (m *FileStack) GetCreateTime() string {
|
if m != nil {
|
return m.CreateTime
|
}
|
return ""
|
}
|
|
func (m *FileStack) GetUpdateTime() string {
|
if m != nil {
|
return m.UpdateTime
|
}
|
return ""
|
}
|
|
func (m *FileStack) GetSort() int32 {
|
if m != nil {
|
return m.Sort
|
}
|
return 0
|
}
|
|
func init() {
|
proto.RegisterType((*FileAnalysis)(nil), "protomsg.FileAnalysis")
|
proto.RegisterType((*FileAnalysisSetting)(nil), "protomsg.FileAnalysisSetting")
|
proto.RegisterType((*FileStack)(nil), "protomsg.FileStack")
|
}
|
|
func init() { proto.RegisterFile("fileanalysis.proto", fileDescriptor_4bee17140da7bca9) }
|
|
var fileDescriptor_4bee17140da7bca9 = []byte{
|
// 499 bytes of a gzipped FileDescriptorProto
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0xcf, 0x6e, 0x13, 0x31,
|
0x10, 0xc6, 0xbb, 0xf9, 0xbb, 0x99, 0xa4, 0x2d, 0x35, 0xa8, 0x32, 0x48, 0xac, 0x42, 0xc4, 0x21,
|
0x07, 0xc4, 0x85, 0x27, 0x28, 0x2d, 0x48, 0x5c, 0xb7, 0xe5, 0x1c, 0xb9, 0x59, 0x37, 0x19, 0xe1,
|
0xd8, 0x2b, 0xdb, 0x8b, 0x14, 0x9e, 0x82, 0x57, 0xe2, 0xc6, 0xb1, 0x47, 0x8e, 0x28, 0x39, 0xf3,
|
0x0e, 0xc8, 0xe3, 0xa4, 0xd9, 0x10, 0x09, 0x38, 0xed, 0xcc, 0xef, 0xb3, 0xbd, 0xe3, 0x99, 0xcf,
|
0xc0, 0xee, 0x50, 0x49, 0xa1, 0x85, 0x5a, 0x3a, 0x74, 0xaf, 0x4b, 0x6b, 0xbc, 0x61, 0x29, 0x7d,
|
0x16, 0x6e, 0x36, 0xfa, 0xd6, 0x84, 0xc1, 0x7b, 0x54, 0xf2, 0x62, 0xb3, 0x80, 0x9d, 0x40, 0x03,
|
0x0b, 0x9e, 0x0c, 0x93, 0x71, 0x2f, 0x6f, 0x60, 0xc1, 0x18, 0xb4, 0xb4, 0x58, 0x48, 0xde, 0x20,
|
0x42, 0x71, 0x60, 0xa5, 0xf0, 0x73, 0xde, 0x8c, 0x2c, 0xc4, 0x81, 0xf9, 0x65, 0x29, 0x79, 0x6b,
|
0x98, 0x8c, 0xdb, 0x39, 0xc5, 0x81, 0x39, 0x63, 0x3d, 0x6f, 0x47, 0x16, 0x62, 0xf6, 0x04, 0xda,
|
0x42, 0xa1, 0x70, 0xbc, 0x43, 0x9b, 0x63, 0xc2, 0x5e, 0xc0, 0xc0, 0x69, 0x51, 0xba, 0xb9, 0xf1,
|
0x93, 0xca, 0x2a, 0xde, 0x25, 0xb1, 0xbf, 0x65, 0x1f, 0xad, 0x62, 0xcf, 0x20, 0x2d, 0x2a, 0x2b,
|
0x3c, 0x1a, 0xcd, 0x53, 0x92, 0x1f, 0x72, 0xf6, 0x1c, 0x00, 0xdd, 0xc4, 0x56, 0x5a, 0xa3, 0x9e,
|
0xf1, 0xde, 0x30, 0x19, 0xa7, 0x79, 0x0f, 0x5d, 0x1e, 0x41, 0xd8, 0x5a, 0x5a, 0x33, 0xb3, 0xd2,
|
0x39, 0x0e, 0x54, 0xcb, 0x43, 0x1e, 0x34, 0x5b, 0x29, 0x79, 0x13, 0x6a, 0xef, 0x47, 0x6d, 0x9b,
|
0xb3, 0x73, 0xe8, 0x38, 0x2f, 0x7c, 0xe5, 0xf8, 0x80, 0x94, 0x4d, 0xc6, 0x32, 0x80, 0xa9, 0x95,
|
0xc2, 0xcb, 0x1b, 0x5c, 0x48, 0x7e, 0x4c, 0xc5, 0xd4, 0x48, 0xd0, 0xab, 0xb2, 0xd8, 0xea, 0x27,
|
0x51, 0xdf, 0x91, 0xa0, 0x63, 0x21, 0xb5, 0xc7, 0x3b, 0x94, 0x96, 0x9f, 0x46, 0x7d, 0x47, 0xd8,
|
0x53, 0x48, 0x9d, 0x17, 0xd3, 0x4f, 0x13, 0x2c, 0xf8, 0x23, 0x52, 0xbb, 0x94, 0x7f, 0xa0, 0x71,
|
0x38, 0xfc, 0x22, 0xf9, 0xd9, 0x30, 0x19, 0x37, 0x73, 0x8a, 0x47, 0xeb, 0x04, 0x1e, 0xd7, 0x67,
|
0x78, 0x2d, 0xbd, 0x0f, 0xd7, 0x1e, 0x42, 0xff, 0x33, 0x16, 0xd2, 0xbc, 0xd3, 0xe2, 0x56, 0x49,
|
0x9a, 0x69, 0x9a, 0xd7, 0x11, 0x7b, 0x09, 0xc7, 0xc1, 0x1d, 0x57, 0x68, 0xe5, 0xd4, 0x1b, 0xbb,
|
0xdc, 0x4c, 0x79, 0x1f, 0xb2, 0x57, 0x70, 0x46, 0x9b, 0x2e, 0xe7, 0x42, 0x6b, 0xa9, 0x2e, 0x4d,
|
0xa5, 0x3d, 0xcd, 0xbe, 0x9d, 0x1f, 0x0a, 0x6c, 0x0c, 0xa7, 0xb8, 0x98, 0xed, 0xad, 0x8d, 0x9e,
|
0xf8, 0x13, 0x87, 0x73, 0x45, 0x55, 0xe0, 0xfe, 0xb9, 0xd1, 0x2b, 0x87, 0xc2, 0xe8, 0x57, 0x02,
|
0xbd, 0x70, 0xcb, 0xeb, 0xd0, 0x89, 0xff, 0xb5, 0x29, 0x59, 0xb2, 0x59, 0xb3, 0xe4, 0x39, 0x74,
|
0x64, 0x6c, 0x47, 0x8b, 0xda, 0xb1, 0xc9, 0x42, 0x27, 0xd0, 0x5d, 0x54, 0xde, 0x5c, 0x49, 0x15,
|
0xfe, 0x42, 0x75, 0xa4, 0xf9, 0x3e, 0xac, 0x19, 0xa2, 0xf3, 0x17, 0x43, 0x74, 0xff, 0x61, 0x88,
|
0xf4, 0xc0, 0x10, 0xdb, 0x87, 0xd2, 0xdb, 0x3d, 0x94, 0xb7, 0xfc, 0xfb, 0x2a, 0x4b, 0xee, 0x57,
|
0x59, 0xf2, 0x73, 0x95, 0x25, 0x5f, 0xd7, 0xd9, 0xd1, 0xfd, 0x3a, 0x3b, 0xfa, 0xb1, 0xce, 0x8e,
|
0x6e, 0x3b, 0xf4, 0x7a, 0xdf, 0xfc, 0x0e, 0x00, 0x00, 0xff, 0xff, 0x8d, 0x2a, 0x3d, 0xf1, 0xda,
|
0x03, 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 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 {
|
dAtA[i] = 0x48
|
i++
|
if m.IsRunning {
|
dAtA[i] = 1
|
} else {
|
dAtA[i] = 0
|
}
|
i++
|
}
|
if m.Progress != 0 {
|
dAtA[i] = 0x50
|
i++
|
i = encodeVarintFileanalysis(dAtA, i, uint64(m.Progress))
|
}
|
if m.RuleType != 0 {
|
dAtA[i] = 0x58
|
i++
|
i = encodeVarintFileanalysis(dAtA, i, uint64(m.RuleType))
|
}
|
if m.Status != 0 {
|
dAtA[i] = 0x60
|
i++
|
i = encodeVarintFileanalysis(dAtA, i, uint64(m.Status))
|
}
|
if len(m.CreateTime) > 0 {
|
dAtA[i] = 0x6a
|
i++
|
i = encodeVarintFileanalysis(dAtA, i, uint64(len(m.CreateTime)))
|
i += copy(dAtA[i:], m.CreateTime)
|
}
|
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.Identifier) > 0 {
|
dAtA[i] = 0x7a
|
i++
|
i = encodeVarintFileanalysis(dAtA, i, uint64(len(m.Identifier)))
|
i += copy(dAtA[i:], m.Identifier)
|
}
|
if len(m.StackId) > 0 {
|
dAtA[i] = 0x82
|
i++
|
dAtA[i] = 0x1
|
i++
|
i = encodeVarintFileanalysis(dAtA, i, uint64(len(m.StackId)))
|
i += copy(dAtA[i:], m.StackId)
|
}
|
if m.Size_ != 0 {
|
dAtA[i] = 0x88
|
i++
|
dAtA[i] = 0x1
|
i++
|
i = encodeVarintFileanalysis(dAtA, i, uint64(m.Size_))
|
}
|
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.VideoEnable {
|
dAtA[i] = 0x8
|
i++
|
if m.VideoEnable {
|
dAtA[i] = 1
|
} else {
|
dAtA[i] = 0
|
}
|
i++
|
}
|
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 (m *FileStack) 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 *FileStack) 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 m.Type != 0 {
|
dAtA[i] = 0x18
|
i++
|
i = encodeVarintFileanalysis(dAtA, i, uint64(m.Type))
|
}
|
if m.Enable {
|
dAtA[i] = 0x20
|
i++
|
if m.Enable {
|
dAtA[i] = 1
|
} else {
|
dAtA[i] = 0
|
}
|
i++
|
}
|
if m.IsAutoDelFile {
|
dAtA[i] = 0x28
|
i++
|
if m.IsAutoDelFile {
|
dAtA[i] = 1
|
} else {
|
dAtA[i] = 0
|
}
|
i++
|
}
|
if m.Status != 0 {
|
dAtA[i] = 0x30
|
i++
|
i = encodeVarintFileanalysis(dAtA, i, uint64(m.Status))
|
}
|
if len(m.CreateTime) > 0 {
|
dAtA[i] = 0x3a
|
i++
|
i = encodeVarintFileanalysis(dAtA, i, uint64(len(m.CreateTime)))
|
i += copy(dAtA[i:], m.CreateTime)
|
}
|
if len(m.UpdateTime) > 0 {
|
dAtA[i] = 0x42
|
i++
|
i = encodeVarintFileanalysis(dAtA, i, uint64(len(m.UpdateTime)))
|
i += copy(dAtA[i:], m.UpdateTime)
|
}
|
if m.Sort != 0 {
|
dAtA[i] = 0x48
|
i++
|
i = encodeVarintFileanalysis(dAtA, i, uint64(m.Sort))
|
}
|
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))
|
}
|
l = len(m.Alias)
|
if l > 0 {
|
n += 1 + l + sovFileanalysis(uint64(l))
|
}
|
l = len(m.SnapshotUrl)
|
if l > 0 {
|
n += 1 + l + sovFileanalysis(uint64(l))
|
}
|
l = len(m.Duration)
|
if l > 0 {
|
n += 1 + l + sovFileanalysis(uint64(l))
|
}
|
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))
|
}
|
l = len(m.Identifier)
|
if l > 0 {
|
n += 1 + l + sovFileanalysis(uint64(l))
|
}
|
l = len(m.StackId)
|
if l > 0 {
|
n += 2 + l + sovFileanalysis(uint64(l))
|
}
|
if m.Size_ != 0 {
|
n += 2 + sovFileanalysis(uint64(m.Size_))
|
}
|
return n
|
}
|
|
func (m *FileAnalysisSetting) Size() (n int) {
|
if m == nil {
|
return 0
|
}
|
var l int
|
_ = l
|
if m.VideoEnable {
|
n += 2
|
}
|
l = len(m.FileDirectory)
|
if l > 0 {
|
n += 1 + l + sovFileanalysis(uint64(l))
|
}
|
if m.VideoChannelCount != 0 {
|
n += 1 + sovFileanalysis(uint64(m.VideoChannelCount))
|
}
|
if m.ImgChannelCount != 0 {
|
n += 1 + sovFileanalysis(uint64(m.ImgChannelCount))
|
}
|
if m.AudioChannelCount != 0 {
|
n += 1 + sovFileanalysis(uint64(m.AudioChannelCount))
|
}
|
return n
|
}
|
|
func (m *FileStack) 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))
|
}
|
if m.Type != 0 {
|
n += 1 + sovFileanalysis(uint64(m.Type))
|
}
|
if m.Enable {
|
n += 2
|
}
|
if m.IsAutoDelFile {
|
n += 2
|
}
|
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))
|
}
|
if m.Sort != 0 {
|
n += 1 + sovFileanalysis(uint64(m.Sort))
|
}
|
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 != 2 {
|
return fmt.Errorf("proto: wrong wireType = %d for field Alias", 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.Alias = string(dAtA[iNdEx:postIndex])
|
iNdEx = postIndex
|
case 7:
|
if wireType != 2 {
|
return fmt.Errorf("proto: wrong wireType = %d for field SnapshotUrl", 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.SnapshotUrl = string(dAtA[iNdEx:postIndex])
|
iNdEx = postIndex
|
case 8:
|
if wireType != 2 {
|
return fmt.Errorf("proto: wrong wireType = %d for field Duration", 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.Duration = string(dAtA[iNdEx:postIndex])
|
iNdEx = postIndex
|
case 9:
|
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 10:
|
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 11:
|
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 12:
|
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 13:
|
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 14:
|
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
|
case 15:
|
if wireType != 2 {
|
return fmt.Errorf("proto: wrong wireType = %d for field Identifier", 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.Identifier = string(dAtA[iNdEx:postIndex])
|
iNdEx = postIndex
|
case 16:
|
if wireType != 2 {
|
return fmt.Errorf("proto: wrong wireType = %d for field StackId", 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.StackId = string(dAtA[iNdEx:postIndex])
|
iNdEx = postIndex
|
case 17:
|
if wireType != 0 {
|
return fmt.Errorf("proto: wrong wireType = %d for field Size_", wireType)
|
}
|
m.Size_ = 0
|
for shift := uint(0); ; shift += 7 {
|
if shift >= 64 {
|
return ErrIntOverflowFileanalysis
|
}
|
if iNdEx >= l {
|
return io.ErrUnexpectedEOF
|
}
|
b := dAtA[iNdEx]
|
iNdEx++
|
m.Size_ |= int64(b&0x7F) << shift
|
if b < 0x80 {
|
break
|
}
|
}
|
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 VideoEnable", 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.VideoEnable = bool(v != 0)
|
case 2:
|
if wireType != 2 {
|
return fmt.Errorf("proto: wrong wireType = %d for field FileDirectory", 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.FileDirectory = string(dAtA[iNdEx:postIndex])
|
iNdEx = postIndex
|
case 3:
|
if wireType != 0 {
|
return fmt.Errorf("proto: wrong wireType = %d for field VideoChannelCount", wireType)
|
}
|
m.VideoChannelCount = 0
|
for shift := uint(0); ; shift += 7 {
|
if shift >= 64 {
|
return ErrIntOverflowFileanalysis
|
}
|
if iNdEx >= l {
|
return io.ErrUnexpectedEOF
|
}
|
b := dAtA[iNdEx]
|
iNdEx++
|
m.VideoChannelCount |= int32(b&0x7F) << shift
|
if b < 0x80 {
|
break
|
}
|
}
|
case 4:
|
if wireType != 0 {
|
return fmt.Errorf("proto: wrong wireType = %d for field ImgChannelCount", wireType)
|
}
|
m.ImgChannelCount = 0
|
for shift := uint(0); ; shift += 7 {
|
if shift >= 64 {
|
return ErrIntOverflowFileanalysis
|
}
|
if iNdEx >= l {
|
return io.ErrUnexpectedEOF
|
}
|
b := dAtA[iNdEx]
|
iNdEx++
|
m.ImgChannelCount |= int32(b&0x7F) << shift
|
if b < 0x80 {
|
break
|
}
|
}
|
case 5:
|
if wireType != 0 {
|
return fmt.Errorf("proto: wrong wireType = %d for field AudioChannelCount", wireType)
|
}
|
m.AudioChannelCount = 0
|
for shift := uint(0); ; shift += 7 {
|
if shift >= 64 {
|
return ErrIntOverflowFileanalysis
|
}
|
if iNdEx >= l {
|
return io.ErrUnexpectedEOF
|
}
|
b := dAtA[iNdEx]
|
iNdEx++
|
m.AudioChannelCount |= int32(b&0x7F) << shift
|
if b < 0x80 {
|
break
|
}
|
}
|
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 *FileStack) 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: FileStack: wiretype end group for non-group")
|
}
|
if fieldNum <= 0 {
|
return fmt.Errorf("proto: FileStack: 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 != 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 4:
|
if wireType != 0 {
|
return fmt.Errorf("proto: wrong wireType = %d for field Enable", 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.Enable = bool(v != 0)
|
case 5:
|
if wireType != 0 {
|
return fmt.Errorf("proto: wrong wireType = %d for field IsAutoDelFile", 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.IsAutoDelFile = bool(v != 0)
|
case 6:
|
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 7:
|
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 8:
|
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
|
case 9:
|
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
|
}
|
}
|
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")
|
)
|