zhangmeng
2019-12-06 c404f7d36eb29728e8d9f3da25090bb4aff7c81f
fileanalysis.pb.go
@@ -30,12 +30,13 @@
   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"`
   IsRunning   bool   `protobuf:"varint,8,opt,name=is_running,json=isRunning,proto3" json:"is_running,omitempty"`
   Progress    int32  `protobuf:"varint,9,opt,name=progress,proto3" json:"progress,omitempty"`
   RuleType    int32  `protobuf:"varint,10,opt,name=ruleType,proto3" json:"ruleType,omitempty"`
   Status      int32  `protobuf:"varint,11,opt,name=status,proto3" json:"status,omitempty"`
   CreateTime  string `protobuf:"bytes,12,opt,name=createTime,proto3" json:"createTime,omitempty"`
   UpdateTime  string `protobuf:"bytes,13,opt,name=updateTime,proto3" json:"updateTime,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"`
}
func (m *FileAnalysis) Reset()         { *m = FileAnalysis{} }
@@ -120,6 +121,13 @@
   return ""
}
func (m *FileAnalysis) GetDuration() string {
   if m != nil {
      return m.Duration
   }
   return ""
}
func (m *FileAnalysis) GetIsRunning() bool {
   if m != nil {
      return m.IsRunning
@@ -163,9 +171,11 @@
}
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"`
   ChannelCount  int32  `protobuf:"varint,3,opt,name=channelCount,proto3" json:"channelCount,omitempty"`
   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{} }
@@ -215,9 +225,23 @@
   return ""
}
func (m *FileAnalysisSetting) GetChannelCount() int32 {
func (m *FileAnalysisSetting) GetVideoChannelCount() int32 {
   if m != nil {
      return m.ChannelCount
      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
}
@@ -230,29 +254,32 @@
func init() { proto.RegisterFile("fileanalysis.proto", fileDescriptor_4bee17140da7bca9) }
var fileDescriptor_4bee17140da7bca9 = []byte{
   // 352 bytes of a gzipped FileDescriptorProto
   0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x92, 0xcf, 0x4e, 0x32, 0x31,
   0x14, 0xc5, 0xe9, 0x7c, 0x0c, 0xdf, 0x70, 0x19, 0x5c, 0x54, 0x63, 0x1a, 0x13, 0x27, 0x23, 0x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 0xe2, 0xc8, 0xd7, 0x07, 0x4d, 0xb6, 0xf3, 0xf4, 0x14, 0x3a, 0xd6,
   0x71, 0x57, 0x5b, 0xd6, 0x0b, 0xc9, 0xd6, 0xd1, 0x0c, 0x60, 0x6a, 0x90, 0x3b, 0x1c, 0x89, 0x05,
   0xb2, 0x34, 0xd4, 0xb3, 0x47, 0x7c, 0x5e, 0x57, 0xe5, 0x2e, 0xef, 0x37, 0xf9, 0x1f, 0x19, 0xbc,
   0x11, 0x38, 0xde, 0x6f, 0xec, 0x13, 0x3a, 0xe7, 0xeb, 0xcc, 0xa1, 0xf7, 0x2a, 0x4a, 0xd4, 0x0f,
   0x8a, 0x4f, 0x24, 0x86, 0x46, 0x27, 0xc5, 0x3e, 0xa2, 0x97, 0xd0, 0xf7, 0x23, 0xbb, 0x17, 0x06,
   0xa7, 0x4e, 0x9b, 0xe5, 0xb6, 0xf5, 0x87, 0x90, 0x0e, 0x20, 0x9d, 0xce, 0xb9, 0x52, 0x28, 0xef,
   0x74, 0xad, 0x5c, 0x98, 0x45, 0x5c, 0x1c, 0xb0, 0x5b, 0xf6, 0xb1, 0xce, 0xc8, 0x6a, 0x9d, 0x91,
   0xef, 0x75, 0x46, 0xde, 0x37, 0x59, 0x6b, 0xb5, 0xc9, 0x5a, 0x5f, 0x9b, 0xac, 0x35, 0xe9, 0x84,
   0x0f, 0x70, 0xfd, 0x13, 0x00, 0x00, 0xff, 0xff, 0xa1, 0x5d, 0x1e, 0xec, 0x1d, 0x02, 0x00, 0x00,
   // 390 bytes of a gzipped FileDescriptorProto
   0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x92, 0x4b, 0xee, 0xd3, 0x30,
   0x10, 0x87, 0xeb, 0xd0, 0x94, 0x74, 0xfa, 0x40, 0x18, 0x84, 0x2c, 0x24, 0xa2, 0x50, 0xb1, 0xc8,
   0x02, 0xb1, 0xe1, 0x04, 0x50, 0xe0, 0x00, 0xa1, 0xac, 0x2b, 0xb7, 0x31, 0xa9, 0x25, 0xc7, 0x8e,
   0xfc, 0x40, 0xea, 0x2d, 0x38, 0x16, 0xcb, 0x2e, 0x59, 0xa2, 0xe6, 0x06, 0x9c, 0x00, 0xd9, 0x6e,
   0x4b, 0xfb, 0xef, 0x2a, 0x33, 0xdf, 0xe7, 0xb1, 0x46, 0xf9, 0x19, 0xf0, 0x77, 0x2e, 0x18, 0x95,
   0x54, 0xec, 0x0d, 0x37, 0xef, 0x3a, 0xad, 0xac, 0xc2, 0x59, 0xf8, 0xb4, 0xa6, 0x59, 0xfc, 0x4d,
   0x60, 0xfa, 0x85, 0x0b, 0xf6, 0xe1, 0x74, 0x00, 0xcf, 0x21, 0xe1, 0x35, 0x41, 0x05, 0x2a, 0xc7,
   0x55, 0xc2, 0x6b, 0x8c, 0x61, 0x28, 0x69, 0xcb, 0x48, 0x12, 0x48, 0xa8, 0x3d, 0xeb, 0xa8, 0xdd,
   0x91, 0x47, 0x91, 0xf9, 0xda, 0x33, 0xbb, 0xef, 0x18, 0x19, 0x16, 0xa8, 0x4c, 0xab, 0x50, 0x7b,
   0x66, 0x94, 0xb6, 0x24, 0x8d, 0xcc, 0xd7, 0xf8, 0x39, 0xa4, 0x54, 0x70, 0x6a, 0xc8, 0x28, 0x0c,
   0xc7, 0x06, 0xbf, 0x86, 0xa9, 0x91, 0xb4, 0x33, 0x3b, 0x65, 0xd7, 0x4e, 0x0b, 0xf2, 0x38, 0xc8,
   0xc9, 0x99, 0x7d, 0xd3, 0x02, 0xbf, 0x84, 0xac, 0x76, 0x9a, 0x5a, 0xae, 0x24, 0xc9, 0x82, 0xbe,
   0xf4, 0xf8, 0x15, 0x00, 0x37, 0x6b, 0xed, 0xa4, 0xe4, 0xb2, 0x21, 0xe3, 0x02, 0x95, 0x59, 0x35,
   0xe6, 0xa6, 0x8a, 0xc0, 0x8f, 0x76, 0x5a, 0x35, 0x9a, 0x19, 0x43, 0x20, 0xec, 0x72, 0xe9, 0xbd,
   0xd3, 0x4e, 0xb0, 0x95, 0xdf, 0x7d, 0x12, 0xdd, 0xb9, 0xc7, 0x2f, 0x60, 0x64, 0x2c, 0xb5, 0xce,
   0x90, 0x69, 0x30, 0xa7, 0x0e, 0xe7, 0x00, 0x5b, 0xcd, 0xa8, 0x65, 0x2b, 0xde, 0x32, 0x32, 0x0b,
   0xcb, 0x5c, 0x11, 0xef, 0x5d, 0x57, 0x9f, 0xfd, 0x3c, 0xfa, 0xff, 0x64, 0xd1, 0x23, 0x78, 0x76,
   0xfd, 0xd3, 0xbf, 0x32, 0x6b, 0xfd, 0x9e, 0x05, 0x4c, 0x7e, 0xf0, 0x9a, 0xa9, 0xcf, 0x92, 0x6e,
   0x04, 0x0b, 0x21, 0x64, 0xd5, 0x35, 0xc2, 0x6f, 0x60, 0xe6, 0xe3, 0xfc, 0xc4, 0x35, 0xdb, 0x5a,
   0xa5, 0xf7, 0xa7, 0x58, 0x6e, 0x21, 0x7e, 0x0b, 0x4f, 0xc3, 0xd0, 0x72, 0x47, 0xa5, 0x64, 0x62,
   0xa9, 0x9c, 0xb4, 0x21, 0xac, 0xb4, 0xba, 0x17, 0xb8, 0x84, 0x27, 0xbc, 0x6d, 0x6e, 0xce, 0xc6,
   0x10, 0x1f, 0x62, 0x7f, 0x2f, 0x75, 0x35, 0xbf, 0xbd, 0x37, 0x86, 0x7b, 0x2f, 0x3e, 0x92, 0x5f,
   0xc7, 0x1c, 0x1d, 0x8e, 0x39, 0xfa, 0x73, 0xcc, 0xd1, 0xcf, 0x3e, 0x1f, 0x1c, 0xfa, 0x7c, 0xf0,
   0xbb, 0xcf, 0x07, 0x9b, 0x51, 0x78, 0x7e, 0xef, 0xff, 0x05, 0x00, 0x00, 0xff, 0xff, 0x5d, 0x5e,
   0x93, 0x7d, 0x9b, 0x02, 0x00, 0x00,
}
func (m *FileAnalysis) Marshal() (dAtA []byte, err error) {
@@ -310,8 +337,14 @@
      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] = 0x40
      dAtA[i] = 0x48
      i++
      if m.IsRunning {
         dAtA[i] = 1
@@ -321,28 +354,28 @@
      i++
   }
   if m.Progress != 0 {
      dAtA[i] = 0x48
      dAtA[i] = 0x50
      i++
      i = encodeVarintFileanalysis(dAtA, i, uint64(m.Progress))
   }
   if m.RuleType != 0 {
      dAtA[i] = 0x50
      dAtA[i] = 0x58
      i++
      i = encodeVarintFileanalysis(dAtA, i, uint64(m.RuleType))
   }
   if m.Status != 0 {
      dAtA[i] = 0x58
      dAtA[i] = 0x60
      i++
      i = encodeVarintFileanalysis(dAtA, i, uint64(m.Status))
   }
   if len(m.CreateTime) > 0 {
      dAtA[i] = 0x62
      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] = 0x6a
      dAtA[i] = 0x72
      i++
      i = encodeVarintFileanalysis(dAtA, i, uint64(len(m.UpdateTime)))
      i += copy(dAtA[i:], m.UpdateTime)
@@ -381,10 +414,20 @@
      i = encodeVarintFileanalysis(dAtA, i, uint64(len(m.FileDirectory)))
      i += copy(dAtA[i:], m.FileDirectory)
   }
   if m.ChannelCount != 0 {
   if m.VideoChannelCount != 0 {
      dAtA[i] = 0x18
      i++
      i = encodeVarintFileanalysis(dAtA, i, uint64(m.ChannelCount))
      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
}
@@ -430,6 +473,10 @@
   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
   }
@@ -466,8 +513,14 @@
   if l > 0 {
      n += 1 + l + sovFileanalysis(uint64(l))
   }
   if m.ChannelCount != 0 {
      n += 1 + sovFileanalysis(uint64(m.ChannelCount))
   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
}
@@ -706,6 +759,38 @@
         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)
         }
@@ -725,7 +810,7 @@
            }
         }
         m.IsRunning = bool(v != 0)
      case 9:
      case 10:
         if wireType != 0 {
            return fmt.Errorf("proto: wrong wireType = %d for field Progress", wireType)
         }
@@ -744,7 +829,7 @@
               break
            }
         }
      case 10:
      case 11:
         if wireType != 0 {
            return fmt.Errorf("proto: wrong wireType = %d for field RuleType", wireType)
         }
@@ -763,7 +848,7 @@
               break
            }
         }
      case 11:
      case 12:
         if wireType != 0 {
            return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
         }
@@ -782,7 +867,7 @@
               break
            }
         }
      case 12:
      case 13:
         if wireType != 2 {
            return fmt.Errorf("proto: wrong wireType = %d for field CreateTime", wireType)
         }
@@ -814,7 +899,7 @@
         }
         m.CreateTime = string(dAtA[iNdEx:postIndex])
         iNdEx = postIndex
      case 13:
      case 14:
         if wireType != 2 {
            return fmt.Errorf("proto: wrong wireType = %d for field UpdateTime", wireType)
         }
@@ -953,9 +1038,9 @@
         iNdEx = postIndex
      case 3:
         if wireType != 0 {
            return fmt.Errorf("proto: wrong wireType = %d for field ChannelCount", wireType)
            return fmt.Errorf("proto: wrong wireType = %d for field VideoChannelCount", wireType)
         }
         m.ChannelCount = 0
         m.VideoChannelCount = 0
         for shift := uint(0); ; shift += 7 {
            if shift >= 64 {
               return ErrIntOverflowFileanalysis
@@ -965,7 +1050,45 @@
            }
            b := dAtA[iNdEx]
            iNdEx++
            m.ChannelCount |= int32(b&0x7F) << shift
            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
            }