From 6b18afff0c157bdfa98a78b00652721b0f577025 Mon Sep 17 00:00:00 2001
From: zhangmeng <775834166@qq.com>
Date: 星期三, 08 二月 2023 10:57:39 +0800
Subject: [PATCH] 修改提交的dataprocess.proto
---
app.pb.go | 1043 +++------------------------------------------------------
1 files changed, 57 insertions(+), 986 deletions(-)
diff --git a/app.pb.go b/app.pb.go
index bc1fb66..8a2c825 100644
--- a/app.pb.go
+++ b/app.pb.go
@@ -1,14 +1,12 @@
-// Code generated by protoc-gen-gogo. DO NOT EDIT.
+// Code generated by protoc-gen-go. DO NOT EDIT.
// source: app.proto
package protomsg
import (
fmt "fmt"
- proto "github.com/gogo/protobuf/proto"
- io "io"
+ proto "github.com/golang/protobuf/proto"
math "math"
- math_bits "math/bits"
)
// Reference imports to suppress errors if they are not otherwise used.
@@ -20,27 +18,31 @@
// 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
+const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type App 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"`
- Package string `protobuf:"bytes,3,opt,name=package,proto3" json:"package,omitempty"`
- Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
- Url string `protobuf:"bytes,5,opt,name=url,proto3" json:"url,omitempty"`
- Title string `protobuf:"bytes,6,opt,name=title,proto3" json:"title,omitempty"`
- Width int32 `protobuf:"varint,7,opt,name=width,proto3" json:"width,omitempty"`
- Height int32 `protobuf:"varint,8,opt,name=height,proto3" json:"height,omitempty"`
- IconBlob string `protobuf:"bytes,9,opt,name=iconBlob,proto3" json:"iconBlob,omitempty"`
- Icon string `protobuf:"bytes,10,opt,name=icon,proto3" json:"icon,omitempty"`
- Version string `protobuf:"bytes,11,opt,name=version,proto3" json:"version,omitempty"`
- CreateTime string `protobuf:"bytes,12,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
- CreateBy string `protobuf:"bytes,13,opt,name=create_by,json=createBy,proto3" json:"create_by,omitempty"`
- UpdateTime string `protobuf:"bytes,14,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
- UpdateBy string `protobuf:"bytes,15,opt,name=update_by,json=updateBy,proto3" json:"update_by,omitempty"`
- IsDefault bool `protobuf:"varint,16,opt,name=isDefault,proto3" json:"isDefault,omitempty"`
- IconBlob2 string `protobuf:"bytes,17,opt,name=iconBlob2,proto3" json:"iconBlob2,omitempty"`
- ProcName string `protobuf:"bytes,18,opt,name=procName,proto3" json:"procName,omitempty"`
+ Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
+ Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
+ Package string `protobuf:"bytes,3,opt,name=package,proto3" json:"package,omitempty"`
+ Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
+ Url string `protobuf:"bytes,5,opt,name=url,proto3" json:"url,omitempty"`
+ Title string `protobuf:"bytes,6,opt,name=title,proto3" json:"title,omitempty"`
+ Width int32 `protobuf:"varint,7,opt,name=width,proto3" json:"width,omitempty"`
+ Height int32 `protobuf:"varint,8,opt,name=height,proto3" json:"height,omitempty"`
+ IconBlob string `protobuf:"bytes,9,opt,name=iconBlob,proto3" json:"iconBlob,omitempty"`
+ Icon string `protobuf:"bytes,10,opt,name=icon,proto3" json:"icon,omitempty"`
+ Version string `protobuf:"bytes,11,opt,name=version,proto3" json:"version,omitempty"`
+ CreateTime string `protobuf:"bytes,12,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
+ CreateBy string `protobuf:"bytes,13,opt,name=create_by,json=createBy,proto3" json:"create_by,omitempty"`
+ UpdateTime string `protobuf:"bytes,14,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
+ UpdateBy string `protobuf:"bytes,15,opt,name=update_by,json=updateBy,proto3" json:"update_by,omitempty"`
+ IsDefault bool `protobuf:"varint,16,opt,name=isDefault,proto3" json:"isDefault,omitempty"`
+ IconBlob2 string `protobuf:"bytes,17,opt,name=iconBlob2,proto3" json:"iconBlob2,omitempty"`
+ ProcName string `protobuf:"bytes,18,opt,name=procName,proto3" json:"procName,omitempty"`
+ ActivateCode string `protobuf:"bytes,19,opt,name=activateCode,proto3" json:"activateCode,omitempty"`
+ XXX_NoUnkeyedLiteral struct{} `json:"-"`
+ XXX_unrecognized []byte `json:"-"`
+ XXX_sizecache int32 `json:"-"`
}
func (m *App) Reset() { *m = App{} }
@@ -49,26 +51,18 @@
func (*App) Descriptor() ([]byte, []int) {
return fileDescriptor_e0f9056a14b86d47, []int{0}
}
+
func (m *App) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
+ return xxx_messageInfo_App.Unmarshal(m, b)
}
func (m *App) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_App.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalTo(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
+ return xxx_messageInfo_App.Marshal(b, m, deterministic)
}
func (m *App) XXX_Merge(src proto.Message) {
xxx_messageInfo_App.Merge(m, src)
}
func (m *App) XXX_Size() int {
- return m.Size()
+ return xxx_messageInfo_App.Size(m)
}
func (m *App) XXX_DiscardUnknown() {
xxx_messageInfo_App.DiscardUnknown(m)
@@ -202,6 +196,13 @@
return ""
}
+func (m *App) GetActivateCode() string {
+ if m != nil {
+ return m.ActivateCode
+ }
+ return ""
+}
+
func init() {
proto.RegisterType((*App)(nil), "protomsg.App")
}
@@ -209,955 +210,25 @@
func init() { proto.RegisterFile("app.proto", fileDescriptor_e0f9056a14b86d47) }
var fileDescriptor_e0f9056a14b86d47 = []byte{
- // 333 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x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0xdc,
- 0xc2, 0x6a, 0xdb, 0xf9, 0x5d, 0x56, 0x6b, 0x55, 0xae, 0x68, 0xc4, 0x9d, 0x1b, 0x8b, 0xd7, 0x30,
- 0x4a, 0x2b, 0x19, 0x1b, 0xf9, 0x62, 0x54, 0x21, 0xe9, 0x9f, 0x3b, 0x05, 0x46, 0xcf, 0xaa, 0x90,
- 0x78, 0x09, 0x41, 0x33, 0x90, 0xd4, 0xf4, 0x9f, 0xdf, 0xc5, 0x20, 0xaa, 0x6d, 0x7a, 0xa3, 0xb3,
- 0x43, 0x7a, 0xcc, 0x69, 0x46, 0x6d, 0xba, 0x19, 0x48, 0x6a, 0x3a, 0xe1, 0x34, 0x83, 0xa8, 0xc6,
- 0x2b, 0x08, 0xd4, 0xfa, 0x51, 0xbe, 0xc6, 0x9b, 0xdc, 0xd0, 0x64, 0x2a, 0x66, 0xfe, 0xfc, 0x08,
- 0xdc, 0x69, 0xf3, 0x4d, 0x77, 0x74, 0xea, 0xa2, 0x47, 0x60, 0xff, 0x80, 0xae, 0xca, 0xf4, 0xc9,
- 0x6e, 0x07, 0xf9, 0xde, 0xd6, 0x47, 0xf4, 0xb5, 0x0b, 0xc5, 0x76, 0x17, 0x8a, 0xdf, 0x5d, 0x28,
- 0x3e, 0xf7, 0x61, 0x67, 0xbb, 0x0f, 0x3b, 0x3f, 0xfb, 0xb0, 0x93, 0x0c, 0xdc, 0xc6, 0xef, 0xff,
- 0x02, 0x00, 0x00, 0xff, 0xff, 0x61, 0xce, 0xec, 0x0f, 0x05, 0x02, 0x00, 0x00,
+ // 319 bytes of a gzipped FileDescriptorProto
+ 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x91, 0xcf, 0x4e, 0xf3, 0x30,
+ 0x10, 0xc4, 0x95, 0xa6, 0x7f, 0x92, 0x6d, 0xbf, 0x7e, 0x65, 0x41, 0x68, 0x05, 0x48, 0x54, 0x3d,
+ 0xf5, 0xc4, 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b, 0x4a, 0xe3, 0x2d, 0xa4, 0xed, 0x42, 0xd6, 0xd0, 0x3f, 0x79,
+ 0x97, 0x80, 0x55, 0x13, 0xd2, 0x07, 0x57, 0x9c, 0xd2, 0x53, 0x49, 0x0b, 0xea, 0xd2, 0xed, 0x42,
+ 0xd6, 0xd0, 0x7f, 0x49, 0x0b, 0x58, 0x35, 0x78, 0x07, 0xa9, 0xd9, 0xbf, 0xea, 0x4f, 0x75, 0x28,
+ 0x3d, 0xcd, 0xe6, 0xd1, 0x32, 0x59, 0x9f, 0x01, 0x4f, 0xdb, 0x6f, 0x7a, 0xa4, 0x0b, 0x8e, 0x9e,
+ 0x41, 0xf8, 0x03, 0xae, 0xb6, 0xf9, 0x5b, 0xb8, 0x1d, 0x94, 0x73, 0x3b, 0x8f, 0x0b, 0x98, 0xa8,
+ 0xdc, 0x9b, 0xa3, 0xf2, 0xfa, 0xc5, 0x16, 0x9a, 0x2e, 0x79, 0xfe, 0x87, 0x65, 0x43, 0xbe, 0xfb,
+ 0xa7, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x60, 0xd2, 0x3d, 0xe7, 0x0f, 0x02, 0x00, 0x00,
}
-
-func (m *App) 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 *App) MarshalTo(dAtA []byte) (int, error) {
- var i int
- _ = i
- var l int
- _ = l
- if len(m.Id) > 0 {
- dAtA[i] = 0xa
- i++
- i = encodeVarintApp(dAtA, i, uint64(len(m.Id)))
- i += copy(dAtA[i:], m.Id)
- }
- if len(m.Name) > 0 {
- dAtA[i] = 0x12
- i++
- i = encodeVarintApp(dAtA, i, uint64(len(m.Name)))
- i += copy(dAtA[i:], m.Name)
- }
- if len(m.Package) > 0 {
- dAtA[i] = 0x1a
- i++
- i = encodeVarintApp(dAtA, i, uint64(len(m.Package)))
- i += copy(dAtA[i:], m.Package)
- }
- if len(m.Type) > 0 {
- dAtA[i] = 0x22
- i++
- i = encodeVarintApp(dAtA, i, uint64(len(m.Type)))
- i += copy(dAtA[i:], m.Type)
- }
- if len(m.Url) > 0 {
- dAtA[i] = 0x2a
- i++
- i = encodeVarintApp(dAtA, i, uint64(len(m.Url)))
- i += copy(dAtA[i:], m.Url)
- }
- if len(m.Title) > 0 {
- dAtA[i] = 0x32
- i++
- i = encodeVarintApp(dAtA, i, uint64(len(m.Title)))
- i += copy(dAtA[i:], m.Title)
- }
- if m.Width != 0 {
- dAtA[i] = 0x38
- i++
- i = encodeVarintApp(dAtA, i, uint64(m.Width))
- }
- if m.Height != 0 {
- dAtA[i] = 0x40
- i++
- i = encodeVarintApp(dAtA, i, uint64(m.Height))
- }
- if len(m.IconBlob) > 0 {
- dAtA[i] = 0x4a
- i++
- i = encodeVarintApp(dAtA, i, uint64(len(m.IconBlob)))
- i += copy(dAtA[i:], m.IconBlob)
- }
- if len(m.Icon) > 0 {
- dAtA[i] = 0x52
- i++
- i = encodeVarintApp(dAtA, i, uint64(len(m.Icon)))
- i += copy(dAtA[i:], m.Icon)
- }
- if len(m.Version) > 0 {
- dAtA[i] = 0x5a
- i++
- i = encodeVarintApp(dAtA, i, uint64(len(m.Version)))
- i += copy(dAtA[i:], m.Version)
- }
- if len(m.CreateTime) > 0 {
- dAtA[i] = 0x62
- i++
- i = encodeVarintApp(dAtA, i, uint64(len(m.CreateTime)))
- i += copy(dAtA[i:], m.CreateTime)
- }
- if len(m.CreateBy) > 0 {
- dAtA[i] = 0x6a
- i++
- i = encodeVarintApp(dAtA, i, uint64(len(m.CreateBy)))
- i += copy(dAtA[i:], m.CreateBy)
- }
- if len(m.UpdateTime) > 0 {
- dAtA[i] = 0x72
- i++
- i = encodeVarintApp(dAtA, i, uint64(len(m.UpdateTime)))
- i += copy(dAtA[i:], m.UpdateTime)
- }
- if len(m.UpdateBy) > 0 {
- dAtA[i] = 0x7a
- i++
- i = encodeVarintApp(dAtA, i, uint64(len(m.UpdateBy)))
- i += copy(dAtA[i:], m.UpdateBy)
- }
- if m.IsDefault {
- dAtA[i] = 0x80
- i++
- dAtA[i] = 0x1
- i++
- if m.IsDefault {
- dAtA[i] = 1
- } else {
- dAtA[i] = 0
- }
- i++
- }
- if len(m.IconBlob2) > 0 {
- dAtA[i] = 0x8a
- i++
- dAtA[i] = 0x1
- i++
- i = encodeVarintApp(dAtA, i, uint64(len(m.IconBlob2)))
- i += copy(dAtA[i:], m.IconBlob2)
- }
- if len(m.ProcName) > 0 {
- dAtA[i] = 0x92
- i++
- dAtA[i] = 0x1
- i++
- i = encodeVarintApp(dAtA, i, uint64(len(m.ProcName)))
- i += copy(dAtA[i:], m.ProcName)
- }
- return i, nil
-}
-
-func encodeVarintApp(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 *App) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.Id)
- if l > 0 {
- n += 1 + l + sovApp(uint64(l))
- }
- l = len(m.Name)
- if l > 0 {
- n += 1 + l + sovApp(uint64(l))
- }
- l = len(m.Package)
- if l > 0 {
- n += 1 + l + sovApp(uint64(l))
- }
- l = len(m.Type)
- if l > 0 {
- n += 1 + l + sovApp(uint64(l))
- }
- l = len(m.Url)
- if l > 0 {
- n += 1 + l + sovApp(uint64(l))
- }
- l = len(m.Title)
- if l > 0 {
- n += 1 + l + sovApp(uint64(l))
- }
- if m.Width != 0 {
- n += 1 + sovApp(uint64(m.Width))
- }
- if m.Height != 0 {
- n += 1 + sovApp(uint64(m.Height))
- }
- l = len(m.IconBlob)
- if l > 0 {
- n += 1 + l + sovApp(uint64(l))
- }
- l = len(m.Icon)
- if l > 0 {
- n += 1 + l + sovApp(uint64(l))
- }
- l = len(m.Version)
- if l > 0 {
- n += 1 + l + sovApp(uint64(l))
- }
- l = len(m.CreateTime)
- if l > 0 {
- n += 1 + l + sovApp(uint64(l))
- }
- l = len(m.CreateBy)
- if l > 0 {
- n += 1 + l + sovApp(uint64(l))
- }
- l = len(m.UpdateTime)
- if l > 0 {
- n += 1 + l + sovApp(uint64(l))
- }
- l = len(m.UpdateBy)
- if l > 0 {
- n += 1 + l + sovApp(uint64(l))
- }
- if m.IsDefault {
- n += 3
- }
- l = len(m.IconBlob2)
- if l > 0 {
- n += 2 + l + sovApp(uint64(l))
- }
- l = len(m.ProcName)
- if l > 0 {
- n += 2 + l + sovApp(uint64(l))
- }
- return n
-}
-
-func sovApp(x uint64) (n int) {
- return (math_bits.Len64(x|1) + 6) / 7
-}
-func sozApp(x uint64) (n int) {
- return sovApp(uint64((x << 1) ^ uint64((int64(x) >> 63))))
-}
-func (m *App) 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 ErrIntOverflowApp
- }
- 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: App: wiretype end group for non-group")
- }
- if fieldNum <= 0 {
- return fmt.Errorf("proto: App: 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 ErrIntOverflowApp
- }
- 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 ErrInvalidLengthApp
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthApp
- }
- 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 ErrIntOverflowApp
- }
- 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 ErrInvalidLengthApp
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthApp
- }
- 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 Package", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowApp
- }
- 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 ErrInvalidLengthApp
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthApp
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Package = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 4:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowApp
- }
- 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 ErrInvalidLengthApp
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthApp
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Type = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 5:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Url", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowApp
- }
- 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 ErrInvalidLengthApp
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthApp
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Url = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 6:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowApp
- }
- 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 ErrInvalidLengthApp
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthApp
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Title = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 7:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Width", wireType)
- }
- m.Width = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowApp
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Width |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 8:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType)
- }
- m.Height = 0
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowApp
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- m.Height |= int32(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- case 9:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field IconBlob", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowApp
- }
- 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 ErrInvalidLengthApp
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthApp
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.IconBlob = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 10:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Icon", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowApp
- }
- 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 ErrInvalidLengthApp
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthApp
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Icon = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 11:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowApp
- }
- 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 ErrInvalidLengthApp
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthApp
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Version = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 12:
- 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 ErrIntOverflowApp
- }
- 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 ErrInvalidLengthApp
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthApp
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.CreateTime = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 13:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field CreateBy", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowApp
- }
- 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 ErrInvalidLengthApp
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthApp
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.CreateBy = 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 ErrIntOverflowApp
- }
- 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 ErrInvalidLengthApp
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthApp
- }
- 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 UpdateBy", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowApp
- }
- 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 ErrInvalidLengthApp
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthApp
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.UpdateBy = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 16:
- if wireType != 0 {
- return fmt.Errorf("proto: wrong wireType = %d for field IsDefault", wireType)
- }
- var v int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowApp
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- v |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- m.IsDefault = bool(v != 0)
- case 17:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field IconBlob2", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowApp
- }
- 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 ErrInvalidLengthApp
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthApp
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.IconBlob2 = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- case 18:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ProcName", wireType)
- }
- var stringLen uint64
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowApp
- }
- 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 ErrInvalidLengthApp
- }
- postIndex := iNdEx + intStringLen
- if postIndex < 0 {
- return ErrInvalidLengthApp
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.ProcName = string(dAtA[iNdEx:postIndex])
- iNdEx = postIndex
- default:
- iNdEx = preIndex
- skippy, err := skipApp(dAtA[iNdEx:])
- if err != nil {
- return err
- }
- if skippy < 0 {
- return ErrInvalidLengthApp
- }
- if (iNdEx + skippy) < 0 {
- return ErrInvalidLengthApp
- }
- if (iNdEx + skippy) > l {
- return io.ErrUnexpectedEOF
- }
- iNdEx += skippy
- }
- }
-
- if iNdEx > l {
- return io.ErrUnexpectedEOF
- }
- return nil
-}
-func skipApp(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, ErrIntOverflowApp
- }
- 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, ErrIntOverflowApp
- }
- 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, ErrIntOverflowApp
- }
- 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, ErrInvalidLengthApp
- }
- iNdEx += length
- if iNdEx < 0 {
- return 0, ErrInvalidLengthApp
- }
- return iNdEx, nil
- case 3:
- for {
- var innerWire uint64
- var start int = iNdEx
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return 0, ErrIntOverflowApp
- }
- 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 := skipApp(dAtA[start:])
- if err != nil {
- return 0, err
- }
- iNdEx = start + next
- if iNdEx < 0 {
- return 0, ErrInvalidLengthApp
- }
- }
- 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 (
- ErrInvalidLengthApp = fmt.Errorf("proto: negative length found during unmarshaling")
- ErrIntOverflowApp = fmt.Errorf("proto: integer overflow")
-)
--
Gitblit v1.8.0