From 80ae7958a17a492098f18f31fa21804f37b6cbaa Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@smartai.com> Date: 星期三, 08 五月 2024 14:52:55 +0800 Subject: [PATCH] 更新dataprocess.pb --- fileanalysis.pb.go | 1015 +++++++++++++++++++++++++++++++++++++++++++++++++--------- 1 files changed, 847 insertions(+), 168 deletions(-) diff --git a/fileanalysis.pb.go b/fileanalysis.pb.go index a13004f..40923f8 100644 --- a/fileanalysis.pb.go +++ b/fileanalysis.pb.go @@ -20,7 +20,7 @@ // 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"` @@ -38,6 +38,8 @@ 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{} } @@ -54,7 +56,7 @@ 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 } @@ -178,6 +180,20 @@ 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"` @@ -200,7 +216,7 @@ 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 } @@ -254,47 +270,180 @@ 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"` + ResolutionWidth int32 `protobuf:"varint,21,opt,name=resolution_width,json=resolutionWidth,proto3" json:"resolution_width,omitempty"` + ResolutionHeight int32 `protobuf:"varint,22,opt,name=resolution_height,json=resolutionHeight,proto3" json:"resolution_height,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 (m *FileStack) GetResolutionWidth() int32 { + if m != nil { + return m.ResolutionWidth + } + return 0 +} + +func (m *FileStack) GetResolutionHeight() int32 { + if m != nil { + return m.ResolutionHeight + } + 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{ - // 404 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x92, 0xcf, 0x6e, 0x13, 0x31, - 0x10, 0x87, 0xe3, 0xb4, 0x09, 0x9b, 0x49, 0xda, 0x0a, 0x83, 0x90, 0x85, 0xc4, 0x2a,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, 0x00, 0xff, 0xff, 0xc1, 0xcf, 0x3a, 0x33, - 0xbb, 0x02, 0x00, 0x00, + // 541 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x94, 0xcf, 0x8e, 0xd3, 0x3e, + 0x10, 0xc7, 0x9b, 0xfe, 0x4d, 0xa7, 0xdd, 0x3f, 0xf5, 0xef, 0x47, 0x65, 0x90, 0x88, 0x4a, 0xc5, + 0xa1, 0x08, 0xc4, 0x85, 0x27, 0x58, 0x76, 0x41, 0x70, 0xcd, 0x2e, 0xe2, 0x58, 0x79, 0x1b, 0x6f, + 0x33, 0x22, 0x75, 0x22, 0xdb, 0x01, 0x95, 0xa7, 0xe0, 0x95, 0x38, 0x20, 0x71, 0xdc, 0x23, 0x47, + 0xd4, 0xbe, 0x08, 0xf2, 0xb8, 0xdd, 0xa6, 0x54, 0x02, 0x4e, 0x9d, 0xf9, 0x7c, 0xc7, 0xee, 0x64, + 0xe6, 0x9b, 0x00, 0xbb, 0xc1, 0x4c, 0x0a, 0x25, 0xb2, 0xa5, 0x41, 0xf3, 0xbc, 0xd0, 0xb9, 0xcd, + 0x59, 0x48, 0x3f, 0x0b, 0x33, 0x1f, 0x7f, 0x6d, 0x40, 0xff, 0x35, 0x66, 0xf2, 0x6c, 0x53, 0xc0, + 0x8e, 0xa1, 0x8e, 0x09, 0x0f, 0x46, 0xc1, 0xa4, 0x1b, 0xd7, 0x31, 0x61, 0x0c, 0x9a, 0x4a, 0x2c, + 0x24, 0xaf, 0x13, 0xa1, 0xd8, 0xb1, 0x42, 0xd8, 0x94, 0x37, 0x3c, 0x73, 0xb1, 0x63, 0x76, 0x59, + 0x48, 0xde, 0x1c, 0x05, 0x93, 0x56, 0x4c, 0xb1, 0x63, 0x26, 0xd7, 0x96, 0xb7, 0x3c, 0x73, 0x31, + 0xfb, 0x1f, 0x5a, 0x22, 0x43, 0x61, 0x78, 0x9b,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ff, 0xff, 0x5a, 0x25, 0x2d, 0x0a, 0x32, 0x04, 0x00, 0x00, } 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 } @@ -302,120 +451,121 @@ } 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.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 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 + if m.Size_ != 0 { + dAtA[i] = 0x88 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintFileanalysis(dAtA, i, uint64(m.Size_)) } - 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 } @@ -423,60 +573,143 @@ } 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 (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)) + } + if m.ResolutionWidth != 0 { + dAtA[i] = 0xa8 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintFileanalysis(dAtA, i, uint64(m.ResolutionWidth)) + } + if m.ResolutionHeight != 0 { + dAtA[i] = 0xb0 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintFileanalysis(dAtA, i, uint64(m.ResolutionHeight)) + } + 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 { @@ -538,6 +771,13 @@ 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 } @@ -562,6 +802,52 @@ } 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)) + } + if m.ResolutionWidth != 0 { + n += 2 + sovFileanalysis(uint64(m.ResolutionWidth)) + } + if m.ResolutionHeight != 0 { + n += 2 + sovFileanalysis(uint64(m.ResolutionHeight)) } return n } @@ -1004,6 +1290,57 @@ } 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:]) @@ -1190,10 +1527,325 @@ } 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 + } + } + case 21: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ResolutionWidth", wireType) + } + m.ResolutionWidth = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFileanalysis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ResolutionWidth |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 22: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ResolutionHeight", wireType) + } + m.ResolutionHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowFileanalysis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ResolutionHeight |= 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 - depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -1225,8 +1877,10 @@ break } } + return iNdEx, nil case 1: iNdEx += 8 + return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -1247,30 +1901,55 @@ 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") ) -- Gitblit v1.8.0