mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 13:59:39 +08:00
✨ 差异化 pb
This commit is contained in:
parent
022ee6cd95
commit
6f4c40f450
@ -23,14 +23,14 @@ const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
|||||||
type Timer struct {
|
type Timer struct {
|
||||||
Enable bool `protobuf:"varint,1,opt,name=enable,proto3" json:"enable,omitempty"`
|
Enable bool `protobuf:"varint,1,opt,name=enable,proto3" json:"enable,omitempty"`
|
||||||
Alert string `protobuf:"bytes,2,opt,name=alert,proto3" json:"alert,omitempty"`
|
Alert string `protobuf:"bytes,2,opt,name=alert,proto3" json:"alert,omitempty"`
|
||||||
Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"`
|
Url string `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"`
|
||||||
Month int32 `protobuf:"varint,4,opt,name=month,proto3" json:"month,omitempty"`
|
Month int32 `protobuf:"varint,8,opt,name=month,proto3" json:"month,omitempty"`
|
||||||
Day int32 `protobuf:"varint,5,opt,name=day,proto3" json:"day,omitempty"`
|
Day int32 `protobuf:"varint,16,opt,name=day,proto3" json:"day,omitempty"`
|
||||||
Week int32 `protobuf:"varint,6,opt,name=week,proto3" json:"week,omitempty"`
|
Week int32 `protobuf:"varint,32,opt,name=week,proto3" json:"week,omitempty"`
|
||||||
Hour int32 `protobuf:"varint,7,opt,name=hour,proto3" json:"hour,omitempty"`
|
Hour int32 `protobuf:"varint,64,opt,name=hour,proto3" json:"hour,omitempty"`
|
||||||
Minute int32 `protobuf:"varint,8,opt,name=minute,proto3" json:"minute,omitempty"`
|
Minute int32 `protobuf:"varint,128,opt,name=minute,proto3" json:"minute,omitempty"`
|
||||||
Selfid int64 `protobuf:"varint,9,opt,name=selfid,proto3" json:"selfid,omitempty"`
|
Selfid int64 `protobuf:"varint,129,opt,name=selfid,proto3" json:"selfid,omitempty"`
|
||||||
Cron string `protobuf:"bytes,10,opt,name=cron,proto3" json:"cron,omitempty"`
|
Cron string `protobuf:"bytes,130,opt,name=cron,proto3" json:"cron,omitempty"`
|
||||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||||
XXX_unrecognized []byte `json:"-"`
|
XXX_unrecognized []byte `json:"-"`
|
||||||
XXX_sizecache int32 `json:"-"`
|
XXX_sizecache int32 `json:"-"`
|
||||||
@ -195,26 +195,26 @@ func init() {
|
|||||||
func init() { proto.RegisterFile("timer.proto", fileDescriptor_ad0307ee16b652d2) }
|
func init() { proto.RegisterFile("timer.proto", fileDescriptor_ad0307ee16b652d2) }
|
||||||
|
|
||||||
var fileDescriptor_ad0307ee16b652d2 = []byte{
|
var fileDescriptor_ad0307ee16b652d2 = []byte{
|
||||||
// 289 bytes of a gzipped FileDescriptorProto
|
// 293 bytes of a gzipped FileDescriptorProto
|
||||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c, 0x91, 0xcf, 0x4a, 0xfb, 0x40,
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c, 0x91, 0xcf, 0x4a, 0xc3, 0x40,
|
||||||
0x10, 0xc7, 0x7f, 0xd3, 0x74, 0xf3, 0x6b, 0x26, 0x1e, 0xca, 0x22, 0x32, 0x88, 0x84, 0xd0, 0x53,
|
0x10, 0xc6, 0x9d, 0xb6, 0x09, 0xed, 0xc4, 0x43, 0x58, 0x45, 0x07, 0x91, 0x10, 0x72, 0xca, 0xa9,
|
||||||
0x4e, 0x3d, 0x54, 0x0f, 0xe2, 0x51, 0x10, 0x4f, 0x5e, 0x16, 0x5f, 0x20, 0xb5, 0x2b, 0x2d, 0xcd,
|
0x87, 0xea, 0x41, 0x3c, 0x89, 0x20, 0x9e, 0xbc, 0x2c, 0xbe, 0x40, 0x6a, 0x57, 0x1a, 0x9a, 0x3f,
|
||||||
0x9f, 0xb2, 0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, 0x7c, 0xa4, 0x79, 0xa1, 0xbd, 0xed, 0xe4, 0x46, 0x91, 0x61, 0xd4, 0x0b, 0x54, 0x2f,
|
0x19, 0xdd, 0xc9, 0xa1, 0x7b, 0x72, 0x8b, 0xc1, 0x8e, 0xb6, 0x3b, 0x6d, 0x54, 0x47, 0xee, 0x2d,
|
||||||
0x79, 0xd1, 0x5a, 0x39, 0x50, 0xbc, 0x3a, 0x39, 0x7e, 0xd5, 0x0c, 0x9f, 0x6e, 0x26, 0xd7, 0x70,
|
0x36, 0x8a, 0x04, 0xbd, 0xa7, 0xac, 0x68, 0x15, 0xdf, 0x28, 0x58, 0xec, 0xef, 0x3e, 0x55, 0xba,
|
||||||
0x3b, 0xff, 0xe8, 0x13, 0xf8, 0xec, 0x13, 0xf8, 0xee, 0x13, 0x78, 0xff, 0x49, 0xfe, 0xad, 0x43,
|
0xd1, 0xe5, 0xe8, 0x02, 0xae, 0xc3, 0xcf, 0x3e, 0x82, 0xaf, 0x3e, 0x82, 0x9f, 0x3e, 0x82, 0x8f,
|
||||||
0xf9, 0x15, 0x97, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x7b, 0xe3, 0x45, 0x55, 0x99, 0x01, 0x00,
|
0xdf, 0x68, 0x6f, 0xe9, 0xf3, 0xdf, 0x38, 0xfb, 0x0b, 0x00, 0x00, 0xff, 0xff, 0x04, 0x03, 0x99,
|
||||||
0x00,
|
0x28, 0x9c, 0x01, 0x00, 0x00,
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *Timer) Marshal() (dAtA []byte, err error) {
|
func (m *Timer) Marshal() (dAtA []byte, err error) {
|
||||||
@ -246,44 +246,56 @@ func (m *Timer) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||||||
copy(dAtA[i:], m.Cron)
|
copy(dAtA[i:], m.Cron)
|
||||||
i = encodeVarintTimer(dAtA, i, uint64(len(m.Cron)))
|
i = encodeVarintTimer(dAtA, i, uint64(len(m.Cron)))
|
||||||
i--
|
i--
|
||||||
dAtA[i] = 0x52
|
dAtA[i] = 0x8
|
||||||
|
i--
|
||||||
|
dAtA[i] = 0x92
|
||||||
}
|
}
|
||||||
if m.Selfid != 0 {
|
if m.Selfid != 0 {
|
||||||
i = encodeVarintTimer(dAtA, i, uint64(m.Selfid))
|
i = encodeVarintTimer(dAtA, i, uint64(m.Selfid))
|
||||||
i--
|
i--
|
||||||
dAtA[i] = 0x48
|
dAtA[i] = 0x8
|
||||||
|
i--
|
||||||
|
dAtA[i] = 0x88
|
||||||
}
|
}
|
||||||
if m.Minute != 0 {
|
if m.Minute != 0 {
|
||||||
i = encodeVarintTimer(dAtA, i, uint64(m.Minute))
|
i = encodeVarintTimer(dAtA, i, uint64(m.Minute))
|
||||||
i--
|
i--
|
||||||
dAtA[i] = 0x40
|
dAtA[i] = 0x8
|
||||||
|
i--
|
||||||
|
dAtA[i] = 0x80
|
||||||
}
|
}
|
||||||
if m.Hour != 0 {
|
if m.Hour != 0 {
|
||||||
i = encodeVarintTimer(dAtA, i, uint64(m.Hour))
|
i = encodeVarintTimer(dAtA, i, uint64(m.Hour))
|
||||||
i--
|
i--
|
||||||
dAtA[i] = 0x38
|
dAtA[i] = 0x4
|
||||||
|
i--
|
||||||
|
dAtA[i] = 0x80
|
||||||
}
|
}
|
||||||
if m.Week != 0 {
|
if m.Week != 0 {
|
||||||
i = encodeVarintTimer(dAtA, i, uint64(m.Week))
|
i = encodeVarintTimer(dAtA, i, uint64(m.Week))
|
||||||
i--
|
i--
|
||||||
dAtA[i] = 0x30
|
dAtA[i] = 0x2
|
||||||
|
i--
|
||||||
|
dAtA[i] = 0x80
|
||||||
}
|
}
|
||||||
if m.Day != 0 {
|
if m.Day != 0 {
|
||||||
i = encodeVarintTimer(dAtA, i, uint64(m.Day))
|
i = encodeVarintTimer(dAtA, i, uint64(m.Day))
|
||||||
i--
|
i--
|
||||||
dAtA[i] = 0x28
|
dAtA[i] = 0x1
|
||||||
|
i--
|
||||||
|
dAtA[i] = 0x80
|
||||||
}
|
}
|
||||||
if m.Month != 0 {
|
if m.Month != 0 {
|
||||||
i = encodeVarintTimer(dAtA, i, uint64(m.Month))
|
i = encodeVarintTimer(dAtA, i, uint64(m.Month))
|
||||||
i--
|
i--
|
||||||
dAtA[i] = 0x20
|
dAtA[i] = 0x40
|
||||||
}
|
}
|
||||||
if len(m.Url) > 0 {
|
if len(m.Url) > 0 {
|
||||||
i -= len(m.Url)
|
i -= len(m.Url)
|
||||||
copy(dAtA[i:], m.Url)
|
copy(dAtA[i:], m.Url)
|
||||||
i = encodeVarintTimer(dAtA, i, uint64(len(m.Url)))
|
i = encodeVarintTimer(dAtA, i, uint64(len(m.Url)))
|
||||||
i--
|
i--
|
||||||
dAtA[i] = 0x1a
|
dAtA[i] = 0x22
|
||||||
}
|
}
|
||||||
if len(m.Alert) > 0 {
|
if len(m.Alert) > 0 {
|
||||||
i -= len(m.Alert)
|
i -= len(m.Alert)
|
||||||
@ -390,23 +402,23 @@ func (m *Timer) Size() (n int) {
|
|||||||
n += 1 + sovTimer(uint64(m.Month))
|
n += 1 + sovTimer(uint64(m.Month))
|
||||||
}
|
}
|
||||||
if m.Day != 0 {
|
if m.Day != 0 {
|
||||||
n += 1 + sovTimer(uint64(m.Day))
|
n += 2 + sovTimer(uint64(m.Day))
|
||||||
}
|
}
|
||||||
if m.Week != 0 {
|
if m.Week != 0 {
|
||||||
n += 1 + sovTimer(uint64(m.Week))
|
n += 2 + sovTimer(uint64(m.Week))
|
||||||
}
|
}
|
||||||
if m.Hour != 0 {
|
if m.Hour != 0 {
|
||||||
n += 1 + sovTimer(uint64(m.Hour))
|
n += 2 + sovTimer(uint64(m.Hour))
|
||||||
}
|
}
|
||||||
if m.Minute != 0 {
|
if m.Minute != 0 {
|
||||||
n += 1 + sovTimer(uint64(m.Minute))
|
n += 2 + sovTimer(uint64(m.Minute))
|
||||||
}
|
}
|
||||||
if m.Selfid != 0 {
|
if m.Selfid != 0 {
|
||||||
n += 1 + sovTimer(uint64(m.Selfid))
|
n += 2 + sovTimer(uint64(m.Selfid))
|
||||||
}
|
}
|
||||||
l = len(m.Cron)
|
l = len(m.Cron)
|
||||||
if l > 0 {
|
if l > 0 {
|
||||||
n += 1 + l + sovTimer(uint64(l))
|
n += 2 + l + sovTimer(uint64(l))
|
||||||
}
|
}
|
||||||
if m.XXX_unrecognized != nil {
|
if m.XXX_unrecognized != nil {
|
||||||
n += len(m.XXX_unrecognized)
|
n += len(m.XXX_unrecognized)
|
||||||
@ -526,7 +538,7 @@ func (m *Timer) Unmarshal(dAtA []byte) error {
|
|||||||
}
|
}
|
||||||
m.Alert = string(dAtA[iNdEx:postIndex])
|
m.Alert = string(dAtA[iNdEx:postIndex])
|
||||||
iNdEx = postIndex
|
iNdEx = postIndex
|
||||||
case 3:
|
case 4:
|
||||||
if wireType != 2 {
|
if wireType != 2 {
|
||||||
return fmt.Errorf("proto: wrong wireType = %d for field Url", wireType)
|
return fmt.Errorf("proto: wrong wireType = %d for field Url", wireType)
|
||||||
}
|
}
|
||||||
@ -558,7 +570,7 @@ func (m *Timer) Unmarshal(dAtA []byte) error {
|
|||||||
}
|
}
|
||||||
m.Url = string(dAtA[iNdEx:postIndex])
|
m.Url = string(dAtA[iNdEx:postIndex])
|
||||||
iNdEx = postIndex
|
iNdEx = postIndex
|
||||||
case 4:
|
case 8:
|
||||||
if wireType != 0 {
|
if wireType != 0 {
|
||||||
return fmt.Errorf("proto: wrong wireType = %d for field Month", wireType)
|
return fmt.Errorf("proto: wrong wireType = %d for field Month", wireType)
|
||||||
}
|
}
|
||||||
@ -577,7 +589,7 @@ func (m *Timer) Unmarshal(dAtA []byte) error {
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
case 5:
|
case 16:
|
||||||
if wireType != 0 {
|
if wireType != 0 {
|
||||||
return fmt.Errorf("proto: wrong wireType = %d for field Day", wireType)
|
return fmt.Errorf("proto: wrong wireType = %d for field Day", wireType)
|
||||||
}
|
}
|
||||||
@ -596,7 +608,7 @@ func (m *Timer) Unmarshal(dAtA []byte) error {
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
case 6:
|
case 32:
|
||||||
if wireType != 0 {
|
if wireType != 0 {
|
||||||
return fmt.Errorf("proto: wrong wireType = %d for field Week", wireType)
|
return fmt.Errorf("proto: wrong wireType = %d for field Week", wireType)
|
||||||
}
|
}
|
||||||
@ -615,7 +627,7 @@ func (m *Timer) Unmarshal(dAtA []byte) error {
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
case 7:
|
case 64:
|
||||||
if wireType != 0 {
|
if wireType != 0 {
|
||||||
return fmt.Errorf("proto: wrong wireType = %d for field Hour", wireType)
|
return fmt.Errorf("proto: wrong wireType = %d for field Hour", wireType)
|
||||||
}
|
}
|
||||||
@ -634,7 +646,7 @@ func (m *Timer) Unmarshal(dAtA []byte) error {
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
case 8:
|
case 128:
|
||||||
if wireType != 0 {
|
if wireType != 0 {
|
||||||
return fmt.Errorf("proto: wrong wireType = %d for field Minute", wireType)
|
return fmt.Errorf("proto: wrong wireType = %d for field Minute", wireType)
|
||||||
}
|
}
|
||||||
@ -653,7 +665,7 @@ func (m *Timer) Unmarshal(dAtA []byte) error {
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
case 9:
|
case 129:
|
||||||
if wireType != 0 {
|
if wireType != 0 {
|
||||||
return fmt.Errorf("proto: wrong wireType = %d for field Selfid", wireType)
|
return fmt.Errorf("proto: wrong wireType = %d for field Selfid", wireType)
|
||||||
}
|
}
|
||||||
@ -672,7 +684,7 @@ func (m *Timer) Unmarshal(dAtA []byte) error {
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
case 10:
|
case 130:
|
||||||
if wireType != 2 {
|
if wireType != 2 {
|
||||||
return fmt.Errorf("proto: wrong wireType = %d for field Cron", wireType)
|
return fmt.Errorf("proto: wrong wireType = %d for field Cron", wireType)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -25,14 +25,14 @@ const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
|||||||
type Timer struct {
|
type Timer struct {
|
||||||
Enable bool `protobuf:"varint,1,opt,name=enable,proto3" json:"enable,omitempty"`
|
Enable bool `protobuf:"varint,1,opt,name=enable,proto3" json:"enable,omitempty"`
|
||||||
Alert string `protobuf:"bytes,2,opt,name=alert,proto3" json:"alert,omitempty"`
|
Alert string `protobuf:"bytes,2,opt,name=alert,proto3" json:"alert,omitempty"`
|
||||||
Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"`
|
Url string `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"`
|
||||||
Month int32 `protobuf:"varint,4,opt,name=month,proto3" json:"month,omitempty"`
|
Month int32 `protobuf:"varint,8,opt,name=month,proto3" json:"month,omitempty"`
|
||||||
Day int32 `protobuf:"varint,5,opt,name=day,proto3" json:"day,omitempty"`
|
Day int32 `protobuf:"varint,16,opt,name=day,proto3" json:"day,omitempty"`
|
||||||
Week int32 `protobuf:"varint,6,opt,name=week,proto3" json:"week,omitempty"`
|
Week int32 `protobuf:"varint,32,opt,name=week,proto3" json:"week,omitempty"`
|
||||||
Hour int32 `protobuf:"varint,7,opt,name=hour,proto3" json:"hour,omitempty"`
|
Hour int32 `protobuf:"varint,64,opt,name=hour,proto3" json:"hour,omitempty"`
|
||||||
Minute int32 `protobuf:"varint,8,opt,name=minute,proto3" json:"minute,omitempty"`
|
Minute int32 `protobuf:"varint,128,opt,name=minute,proto3" json:"minute,omitempty"`
|
||||||
Selfid int64 `protobuf:"varint,9,opt,name=selfid,proto3" json:"selfid,omitempty"`
|
Selfid int64 `protobuf:"varint,129,opt,name=selfid,proto3" json:"selfid,omitempty"`
|
||||||
Cron string `protobuf:"bytes,10,opt,name=cron,proto3" json:"cron,omitempty"`
|
Cron string `protobuf:"bytes,130,opt,name=cron,proto3" json:"cron,omitempty"`
|
||||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||||
XXX_unrecognized []byte `json:"-"`
|
XXX_unrecognized []byte `json:"-"`
|
||||||
XXX_sizecache int32 `json:"-"`
|
XXX_sizecache int32 `json:"-"`
|
||||||
@ -197,26 +197,26 @@ func init() {
|
|||||||
func init() { proto.RegisterFile("timer.proto", fileDescriptor_ad0307ee16b652d2) }
|
func init() { proto.RegisterFile("timer.proto", fileDescriptor_ad0307ee16b652d2) }
|
||||||
|
|
||||||
var fileDescriptor_ad0307ee16b652d2 = []byte{
|
var fileDescriptor_ad0307ee16b652d2 = []byte{
|
||||||
// 289 bytes of a gzipped FileDescriptorProto
|
// 293 bytes of a gzipped FileDescriptorProto
|
||||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c, 0x91, 0xcf, 0x4a, 0xfb, 0x40,
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c, 0x91, 0xcf, 0x4a, 0xc3, 0x40,
|
||||||
0x10, 0xc7, 0x7f, 0xd3, 0x74, 0xf3, 0x6b, 0x26, 0x1e, 0xca, 0x22, 0x32, 0x88, 0x84, 0xd0, 0x53,
|
0x10, 0xc6, 0x9d, 0xb6, 0x09, 0xed, 0xc4, 0x43, 0x58, 0x45, 0x07, 0x91, 0x10, 0x72, 0xca, 0xa9,
|
||||||
0x4e, 0x3d, 0x54, 0x0f, 0xe2, 0x51, 0x10, 0x4f, 0x5e, 0x16, 0x5f, 0x20, 0xb5, 0x2b, 0x2d, 0xcd,
|
0x87, 0xea, 0x41, 0x3c, 0x89, 0x20, 0x9e, 0xbc, 0x2c, 0xbe, 0x40, 0x6a, 0x57, 0x1a, 0x9a, 0x3f,
|
||||||
0x9f, 0xb2, 0xd9, 0x28, 0x79, 0x05, 0x9f, 0xc0, 0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ed, 0xe4, 0x46, 0x91, 0x61, 0xd4, 0x0b, 0x54, 0x2f,
|
0x19, 0xdd, 0xc9, 0xa1, 0x7b, 0x72, 0x8b, 0xc1, 0x8e, 0xb6, 0x3b, 0x6d, 0x54, 0x47, 0xee, 0x2d,
|
||||||
0x79, 0xd1, 0x5a, 0x39, 0x50, 0xbc, 0x3a, 0x39, 0x7e, 0xd5, 0x0c, 0x9f, 0x6e, 0x26, 0xd7, 0x70,
|
0x36, 0x8a, 0x04, 0xbd, 0xa7, 0xac, 0x68, 0x15, 0xdf, 0x28, 0x58, 0xec, 0xef, 0x3e, 0x55, 0xba,
|
||||||
0x3b, 0xff, 0xe8, 0x13, 0xf8, 0xec, 0x13, 0xf8, 0xee, 0x13, 0x78, 0xff, 0x49, 0xfe, 0xad, 0x43,
|
0xd1, 0xe5, 0xe8, 0x02, 0xae, 0xc3, 0xcf, 0x3e, 0x82, 0xaf, 0x3e, 0x82, 0x9f, 0x3e, 0x82, 0x8f,
|
||||||
0xf9, 0x15, 0x97, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x7b, 0xe3, 0x45, 0x55, 0x99, 0x01, 0x00,
|
0xdf, 0x68, 0x6f, 0xe9, 0xf3, 0xdf, 0x38, 0xfb, 0x0b, 0x00, 0x00, 0xff, 0xff, 0x04, 0x03, 0x99,
|
||||||
0x00,
|
0x28, 0x9c, 0x01, 0x00, 0x00,
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *Timer) Marshal() (dAtA []byte, err error) {
|
func (m *Timer) Marshal() (dAtA []byte, err error) {
|
||||||
@ -248,44 +248,56 @@ func (m *Timer) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||||||
copy(dAtA[i:], m.Cron)
|
copy(dAtA[i:], m.Cron)
|
||||||
i = encodeVarintTimer(dAtA, i, uint64(len(m.Cron)))
|
i = encodeVarintTimer(dAtA, i, uint64(len(m.Cron)))
|
||||||
i--
|
i--
|
||||||
dAtA[i] = 0x52
|
dAtA[i] = 0x8
|
||||||
|
i--
|
||||||
|
dAtA[i] = 0x92
|
||||||
}
|
}
|
||||||
if m.Selfid != 0 {
|
if m.Selfid != 0 {
|
||||||
i = encodeVarintTimer(dAtA, i, uint64(m.Selfid))
|
i = encodeVarintTimer(dAtA, i, uint64(m.Selfid))
|
||||||
i--
|
i--
|
||||||
dAtA[i] = 0x48
|
dAtA[i] = 0x8
|
||||||
|
i--
|
||||||
|
dAtA[i] = 0x88
|
||||||
}
|
}
|
||||||
if m.Minute != 0 {
|
if m.Minute != 0 {
|
||||||
i = encodeVarintTimer(dAtA, i, uint64(m.Minute))
|
i = encodeVarintTimer(dAtA, i, uint64(m.Minute))
|
||||||
i--
|
i--
|
||||||
dAtA[i] = 0x40
|
dAtA[i] = 0x8
|
||||||
|
i--
|
||||||
|
dAtA[i] = 0x80
|
||||||
}
|
}
|
||||||
if m.Hour != 0 {
|
if m.Hour != 0 {
|
||||||
i = encodeVarintTimer(dAtA, i, uint64(m.Hour))
|
i = encodeVarintTimer(dAtA, i, uint64(m.Hour))
|
||||||
i--
|
i--
|
||||||
dAtA[i] = 0x38
|
dAtA[i] = 0x4
|
||||||
|
i--
|
||||||
|
dAtA[i] = 0x80
|
||||||
}
|
}
|
||||||
if m.Week != 0 {
|
if m.Week != 0 {
|
||||||
i = encodeVarintTimer(dAtA, i, uint64(m.Week))
|
i = encodeVarintTimer(dAtA, i, uint64(m.Week))
|
||||||
i--
|
i--
|
||||||
dAtA[i] = 0x30
|
dAtA[i] = 0x2
|
||||||
|
i--
|
||||||
|
dAtA[i] = 0x80
|
||||||
}
|
}
|
||||||
if m.Day != 0 {
|
if m.Day != 0 {
|
||||||
i = encodeVarintTimer(dAtA, i, uint64(m.Day))
|
i = encodeVarintTimer(dAtA, i, uint64(m.Day))
|
||||||
i--
|
i--
|
||||||
dAtA[i] = 0x28
|
dAtA[i] = 0x1
|
||||||
|
i--
|
||||||
|
dAtA[i] = 0x80
|
||||||
}
|
}
|
||||||
if m.Month != 0 {
|
if m.Month != 0 {
|
||||||
i = encodeVarintTimer(dAtA, i, uint64(m.Month))
|
i = encodeVarintTimer(dAtA, i, uint64(m.Month))
|
||||||
i--
|
i--
|
||||||
dAtA[i] = 0x20
|
dAtA[i] = 0x40
|
||||||
}
|
}
|
||||||
if len(m.Url) > 0 {
|
if len(m.Url) > 0 {
|
||||||
i -= len(m.Url)
|
i -= len(m.Url)
|
||||||
copy(dAtA[i:], m.Url)
|
copy(dAtA[i:], m.Url)
|
||||||
i = encodeVarintTimer(dAtA, i, uint64(len(m.Url)))
|
i = encodeVarintTimer(dAtA, i, uint64(len(m.Url)))
|
||||||
i--
|
i--
|
||||||
dAtA[i] = 0x1a
|
dAtA[i] = 0x22
|
||||||
}
|
}
|
||||||
if len(m.Alert) > 0 {
|
if len(m.Alert) > 0 {
|
||||||
i -= len(m.Alert)
|
i -= len(m.Alert)
|
||||||
@ -392,23 +404,23 @@ func (m *Timer) Size() (n int) {
|
|||||||
n += 1 + sovTimer(uint64(m.Month))
|
n += 1 + sovTimer(uint64(m.Month))
|
||||||
}
|
}
|
||||||
if m.Day != 0 {
|
if m.Day != 0 {
|
||||||
n += 1 + sovTimer(uint64(m.Day))
|
n += 2 + sovTimer(uint64(m.Day))
|
||||||
}
|
}
|
||||||
if m.Week != 0 {
|
if m.Week != 0 {
|
||||||
n += 1 + sovTimer(uint64(m.Week))
|
n += 2 + sovTimer(uint64(m.Week))
|
||||||
}
|
}
|
||||||
if m.Hour != 0 {
|
if m.Hour != 0 {
|
||||||
n += 1 + sovTimer(uint64(m.Hour))
|
n += 2 + sovTimer(uint64(m.Hour))
|
||||||
}
|
}
|
||||||
if m.Minute != 0 {
|
if m.Minute != 0 {
|
||||||
n += 1 + sovTimer(uint64(m.Minute))
|
n += 2 + sovTimer(uint64(m.Minute))
|
||||||
}
|
}
|
||||||
if m.Selfid != 0 {
|
if m.Selfid != 0 {
|
||||||
n += 1 + sovTimer(uint64(m.Selfid))
|
n += 2 + sovTimer(uint64(m.Selfid))
|
||||||
}
|
}
|
||||||
l = len(m.Cron)
|
l = len(m.Cron)
|
||||||
if l > 0 {
|
if l > 0 {
|
||||||
n += 1 + l + sovTimer(uint64(l))
|
n += 2 + l + sovTimer(uint64(l))
|
||||||
}
|
}
|
||||||
if m.XXX_unrecognized != nil {
|
if m.XXX_unrecognized != nil {
|
||||||
n += len(m.XXX_unrecognized)
|
n += len(m.XXX_unrecognized)
|
||||||
@ -528,7 +540,7 @@ func (m *Timer) Unmarshal(dAtA []byte) error {
|
|||||||
}
|
}
|
||||||
m.Alert = string(dAtA[iNdEx:postIndex])
|
m.Alert = string(dAtA[iNdEx:postIndex])
|
||||||
iNdEx = postIndex
|
iNdEx = postIndex
|
||||||
case 3:
|
case 4:
|
||||||
if wireType != 2 {
|
if wireType != 2 {
|
||||||
return fmt.Errorf("proto: wrong wireType = %d for field Url", wireType)
|
return fmt.Errorf("proto: wrong wireType = %d for field Url", wireType)
|
||||||
}
|
}
|
||||||
@ -560,7 +572,7 @@ func (m *Timer) Unmarshal(dAtA []byte) error {
|
|||||||
}
|
}
|
||||||
m.Url = string(dAtA[iNdEx:postIndex])
|
m.Url = string(dAtA[iNdEx:postIndex])
|
||||||
iNdEx = postIndex
|
iNdEx = postIndex
|
||||||
case 4:
|
case 8:
|
||||||
if wireType != 0 {
|
if wireType != 0 {
|
||||||
return fmt.Errorf("proto: wrong wireType = %d for field Month", wireType)
|
return fmt.Errorf("proto: wrong wireType = %d for field Month", wireType)
|
||||||
}
|
}
|
||||||
@ -579,7 +591,7 @@ func (m *Timer) Unmarshal(dAtA []byte) error {
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
case 5:
|
case 16:
|
||||||
if wireType != 0 {
|
if wireType != 0 {
|
||||||
return fmt.Errorf("proto: wrong wireType = %d for field Day", wireType)
|
return fmt.Errorf("proto: wrong wireType = %d for field Day", wireType)
|
||||||
}
|
}
|
||||||
@ -598,7 +610,7 @@ func (m *Timer) Unmarshal(dAtA []byte) error {
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
case 6:
|
case 32:
|
||||||
if wireType != 0 {
|
if wireType != 0 {
|
||||||
return fmt.Errorf("proto: wrong wireType = %d for field Week", wireType)
|
return fmt.Errorf("proto: wrong wireType = %d for field Week", wireType)
|
||||||
}
|
}
|
||||||
@ -617,7 +629,7 @@ func (m *Timer) Unmarshal(dAtA []byte) error {
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
case 7:
|
case 64:
|
||||||
if wireType != 0 {
|
if wireType != 0 {
|
||||||
return fmt.Errorf("proto: wrong wireType = %d for field Hour", wireType)
|
return fmt.Errorf("proto: wrong wireType = %d for field Hour", wireType)
|
||||||
}
|
}
|
||||||
@ -636,7 +648,7 @@ func (m *Timer) Unmarshal(dAtA []byte) error {
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
case 8:
|
case 128:
|
||||||
if wireType != 0 {
|
if wireType != 0 {
|
||||||
return fmt.Errorf("proto: wrong wireType = %d for field Minute", wireType)
|
return fmt.Errorf("proto: wrong wireType = %d for field Minute", wireType)
|
||||||
}
|
}
|
||||||
@ -655,7 +667,7 @@ func (m *Timer) Unmarshal(dAtA []byte) error {
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
case 9:
|
case 129:
|
||||||
if wireType != 0 {
|
if wireType != 0 {
|
||||||
return fmt.Errorf("proto: wrong wireType = %d for field Selfid", wireType)
|
return fmt.Errorf("proto: wrong wireType = %d for field Selfid", wireType)
|
||||||
}
|
}
|
||||||
@ -674,7 +686,7 @@ func (m *Timer) Unmarshal(dAtA []byte) error {
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
case 10:
|
case 130:
|
||||||
if wireType != 2 {
|
if wireType != 2 {
|
||||||
return fmt.Errorf("proto: wrong wireType = %d for field Cron", wireType)
|
return fmt.Errorf("proto: wrong wireType = %d for field Cron", wireType)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4,14 +4,14 @@ package timer;
|
|||||||
message Timer {
|
message Timer {
|
||||||
bool enable = 1;
|
bool enable = 1;
|
||||||
string alert = 2;
|
string alert = 2;
|
||||||
string url = 3;
|
string url = 4;
|
||||||
int32 month = 4;
|
int32 month = 8;
|
||||||
int32 day = 5;
|
int32 day = 16;
|
||||||
int32 week = 6;
|
int32 week = 32;
|
||||||
int32 hour = 7;
|
int32 hour = 64;
|
||||||
int32 minute = 8;
|
int32 minute = 128;
|
||||||
int64 selfid = 9;
|
int64 selfid = 129;
|
||||||
string cron = 10;
|
string cron = 130;
|
||||||
}
|
}
|
||||||
|
|
||||||
message TimersMap {
|
message TimersMap {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user