// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
// source: commsg.proto
|
|
package protomsg
|
|
import (
|
fmt "fmt"
|
proto "github.com/gogo/protobuf/proto"
|
io "io"
|
math "math"
|
)
|
|
// 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 SdkmsgWithTask struct {
|
Sdkid string `protobuf:"bytes,1,opt,name=sdkid,proto3" json:"sdkid,omitempty"`
|
Sdktype string `protobuf:"bytes,2,opt,name=sdktype,proto3" json:"sdktype,omitempty"`
|
SdkName string `protobuf:"bytes,3,opt,name=sdkName,proto3" json:"sdkName,omitempty"`
|
Sdkdata []byte `protobuf:"bytes,4,opt,name=sdkdata,proto3" json:"sdkdata,omitempty"`
|
}
|
|
func (m *SdkmsgWithTask) Reset() { *m = SdkmsgWithTask{} }
|
func (m *SdkmsgWithTask) String() string { return proto.CompactTextString(m) }
|
func (*SdkmsgWithTask) ProtoMessage() {}
|
func (*SdkmsgWithTask) Descriptor() ([]byte, []int) {
|
return fileDescriptor_968fba5e415d8aac, []int{0}
|
}
|
func (m *SdkmsgWithTask) XXX_Unmarshal(b []byte) error {
|
return m.Unmarshal(b)
|
}
|
func (m *SdkmsgWithTask) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
if deterministic {
|
return xxx_messageInfo_SdkmsgWithTask.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 *SdkmsgWithTask) XXX_Merge(src proto.Message) {
|
xxx_messageInfo_SdkmsgWithTask.Merge(m, src)
|
}
|
func (m *SdkmsgWithTask) XXX_Size() int {
|
return m.Size()
|
}
|
func (m *SdkmsgWithTask) XXX_DiscardUnknown() {
|
xxx_messageInfo_SdkmsgWithTask.DiscardUnknown(m)
|
}
|
|
var xxx_messageInfo_SdkmsgWithTask proto.InternalMessageInfo
|
|
func (m *SdkmsgWithTask) GetSdkid() string {
|
if m != nil {
|
return m.Sdkid
|
}
|
return ""
|
}
|
|
func (m *SdkmsgWithTask) GetSdktype() string {
|
if m != nil {
|
return m.Sdktype
|
}
|
return ""
|
}
|
|
func (m *SdkmsgWithTask) GetSdkName() string {
|
if m != nil {
|
return m.SdkName
|
}
|
return ""
|
}
|
|
func (m *SdkmsgWithTask) GetSdkdata() []byte {
|
if m != nil {
|
return m.Sdkdata
|
}
|
return nil
|
}
|
|
type TaskLabel struct {
|
Taskid string `protobuf:"bytes,1,opt,name=taskid,proto3" json:"taskid,omitempty"`
|
Taskname string `protobuf:"bytes,2,opt,name=taskname,proto3" json:"taskname,omitempty"`
|
Sdkinfos []*SdkmsgWithTask `protobuf:"bytes,3,rep,name=sdkinfos,proto3" json:"sdkinfos,omitempty"`
|
Index int32 `protobuf:"varint,4,opt,name=index,proto3" json:"index,omitempty"`
|
}
|
|
func (m *TaskLabel) Reset() { *m = TaskLabel{} }
|
func (m *TaskLabel) String() string { return proto.CompactTextString(m) }
|
func (*TaskLabel) ProtoMessage() {}
|
func (*TaskLabel) Descriptor() ([]byte, []int) {
|
return fileDescriptor_968fba5e415d8aac, []int{1}
|
}
|
func (m *TaskLabel) XXX_Unmarshal(b []byte) error {
|
return m.Unmarshal(b)
|
}
|
func (m *TaskLabel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
if deterministic {
|
return xxx_messageInfo_TaskLabel.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 *TaskLabel) XXX_Merge(src proto.Message) {
|
xxx_messageInfo_TaskLabel.Merge(m, src)
|
}
|
func (m *TaskLabel) XXX_Size() int {
|
return m.Size()
|
}
|
func (m *TaskLabel) XXX_DiscardUnknown() {
|
xxx_messageInfo_TaskLabel.DiscardUnknown(m)
|
}
|
|
var xxx_messageInfo_TaskLabel proto.InternalMessageInfo
|
|
func (m *TaskLabel) GetTaskid() string {
|
if m != nil {
|
return m.Taskid
|
}
|
return ""
|
}
|
|
func (m *TaskLabel) GetTaskname() string {
|
if m != nil {
|
return m.Taskname
|
}
|
return ""
|
}
|
|
func (m *TaskLabel) GetSdkinfos() []*SdkmsgWithTask {
|
if m != nil {
|
return m.Sdkinfos
|
}
|
return nil
|
}
|
|
func (m *TaskLabel) GetIndex() int32 {
|
if m != nil {
|
return m.Index
|
}
|
return 0
|
}
|
|
type SdkMessage struct {
|
Cid string `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"`
|
Caddr string `protobuf:"bytes,2,opt,name=caddr,proto3" json:"caddr,omitempty"`
|
Tasklab *TaskLabel `protobuf:"bytes,3,opt,name=tasklab,proto3" json:"tasklab,omitempty"`
|
Data []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
|
}
|
|
func (m *SdkMessage) Reset() { *m = SdkMessage{} }
|
func (m *SdkMessage) String() string { return proto.CompactTextString(m) }
|
func (*SdkMessage) ProtoMessage() {}
|
func (*SdkMessage) Descriptor() ([]byte, []int) {
|
return fileDescriptor_968fba5e415d8aac, []int{2}
|
}
|
func (m *SdkMessage) XXX_Unmarshal(b []byte) error {
|
return m.Unmarshal(b)
|
}
|
func (m *SdkMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
if deterministic {
|
return xxx_messageInfo_SdkMessage.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 *SdkMessage) XXX_Merge(src proto.Message) {
|
xxx_messageInfo_SdkMessage.Merge(m, src)
|
}
|
func (m *SdkMessage) XXX_Size() int {
|
return m.Size()
|
}
|
func (m *SdkMessage) XXX_DiscardUnknown() {
|
xxx_messageInfo_SdkMessage.DiscardUnknown(m)
|
}
|
|
var xxx_messageInfo_SdkMessage proto.InternalMessageInfo
|
|
func (m *SdkMessage) GetCid() string {
|
if m != nil {
|
return m.Cid
|
}
|
return ""
|
}
|
|
func (m *SdkMessage) GetCaddr() string {
|
if m != nil {
|
return m.Caddr
|
}
|
return ""
|
}
|
|
func (m *SdkMessage) GetTasklab() *TaskLabel {
|
if m != nil {
|
return m.Tasklab
|
}
|
return nil
|
}
|
|
func (m *SdkMessage) GetData() []byte {
|
if m != nil {
|
return m.Data
|
}
|
return nil
|
}
|
|
type Recvmsg struct {
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
|
Picdata []byte `protobuf:"bytes,3,opt,name=picdata,proto3" json:"picdata,omitempty"`
|
}
|
|
func (m *Recvmsg) Reset() { *m = Recvmsg{} }
|
func (m *Recvmsg) String() string { return proto.CompactTextString(m) }
|
func (*Recvmsg) ProtoMessage() {}
|
func (*Recvmsg) Descriptor() ([]byte, []int) {
|
return fileDescriptor_968fba5e415d8aac, []int{3}
|
}
|
func (m *Recvmsg) XXX_Unmarshal(b []byte) error {
|
return m.Unmarshal(b)
|
}
|
func (m *Recvmsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
if deterministic {
|
return xxx_messageInfo_Recvmsg.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 *Recvmsg) XXX_Merge(src proto.Message) {
|
xxx_messageInfo_Recvmsg.Merge(m, src)
|
}
|
func (m *Recvmsg) XXX_Size() int {
|
return m.Size()
|
}
|
func (m *Recvmsg) XXX_DiscardUnknown() {
|
xxx_messageInfo_Recvmsg.DiscardUnknown(m)
|
}
|
|
var xxx_messageInfo_Recvmsg proto.InternalMessageInfo
|
|
func (m *Recvmsg) GetId() string {
|
if m != nil {
|
return m.Id
|
}
|
return ""
|
}
|
|
func (m *Recvmsg) GetAddr() string {
|
if m != nil {
|
return m.Addr
|
}
|
return ""
|
}
|
|
func (m *Recvmsg) GetPicdata() []byte {
|
if m != nil {
|
return m.Picdata
|
}
|
return nil
|
}
|
|
func init() {
|
proto.RegisterType((*SdkmsgWithTask)(nil), "protomsg.SdkmsgWithTask")
|
proto.RegisterType((*TaskLabel)(nil), "protomsg.TaskLabel")
|
proto.RegisterType((*SdkMessage)(nil), "protomsg.SdkMessage")
|
proto.RegisterType((*Recvmsg)(nil), "protomsg.recvmsg")
|
}
|
|
func init() { proto.RegisterFile("commsg.proto", fileDescriptor_968fba5e415d8aac) }
|
|
var fileDescriptor_968fba5e415d8aac = []byte{
|
// 322 bytes of a gzipped FileDescriptorProto
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x90, 0xbf, 0x4e, 0xc3, 0x30,
|
0x10, 0xc6, 0xeb, 0xa6, 0x7f, 0xaf, 0x55, 0x85, 0x0c, 0x42, 0x16, 0x83, 0x55, 0x65, 0xea, 0x42,
|
0x87, 0xc2, 0x13, 0xb0, 0xb0, 0x00, 0x43, 0x8a, 0xc4, 0xec, 0xc4, 0x26, 0x44, 0xa9, 0x93, 0x28,
|
0xb6, 0xf8, 0xf3, 0x0c, 0x2c, 0x3c, 0x16, 0x63, 0x47, 0x46, 0x94, 0xbc, 0x08, 0xb2, 0x93, 0xb8,
|
0x65, 0xca, 0xfd, 0x72, 0xe7, 0xfb, 0xbe, 0xef, 0x60, 0x1e, 0xe5, 0x52, 0xaa, 0x78, 0x5d, 0x94,
|
0xb9, 0xce, 0xf1, 0xc4, 0x7e, 0xa4, 0x8a, 0x7d, 0x0d, 0x8b, 0x2d, 0x4f, 0xa5, 0x8a, 0x9f, 0x12,
|
0xfd, 0xf2, 0xc8, 0x54, 0x8a, 0xcf, 0x60, 0xa8, 0x78, 0x9a, 0x70, 0x82, 0x96, 0x68, 0x35, 0x0d,
|
0x1a, 0xc0, 0x04, 0xc6, 0x8a, 0xa7, 0xfa, 0xa3, 0x10, 0xa4, 0x6f, 0xff, 0x77, 0xd8, 0x76, 0x1e,
|
0x98, 0x14, 0xc4, 0x73, 0x1d, 0x83, 0x6d, 0x87, 0x33, 0xcd, 0xc8, 0x60, 0x89, 0x56, 0xf3, 0xa0,
|
0x43, 0xff, 0x13, 0xc1, 0xd4, 0x88, 0xdd, 0xb1, 0x50, 0xec, 0xf0, 0x39, 0x8c, 0x34, 0x53, 0x07,
|
0xc9, 0x96, 0xf0, 0x05, 0x4c, 0x4c, 0x95, 0x99, 0xd5, 0x8d, 0xa8, 0x63, 0x7c, 0x0d, 0x13, 0x63,
|
0x2c, 0x7b, 0xce, 0x15, 0xf1, 0x96, 0xde, 0x6a, 0xb6, 0x21, 0xeb, 0x2e, 0xd4, 0xfa, 0x7f, 0xa2,
|
0xc0, 0x4d, 0x9a, 0x6c, 0x49, 0xc6, 0xc5, 0xbb, 0xf5, 0x33, 0x0c, 0x1a, 0xf0, 0xdf, 0x00, 0xb6,
|
0x3c, 0xbd, 0x17, 0x4a, 0xb1, 0x58, 0xe0, 0x13, 0xf0, 0x22, 0x67, 0xc5, 0x94, 0xe6, 0x55, 0xc4,
|
0x38, 0x2f, 0x5b, 0x13, 0x0d, 0xe0, 0x4b, 0x18, 0x1b, 0x37, 0x3b, 0x16, 0xda, 0xdc, 0xb3, 0xcd,
|
0xe9, 0xc1, 0x80, 0xcb, 0x16, 0x74, 0x33, 0x18, 0xc3, 0xe0, 0xe8, 0x12, 0xb6, 0xf6, 0x6f, 0x61,
|
0x5c, 0x8a, 0xe8, 0x55, 0xaa, 0x18, 0x2f, 0xa0, 0xef, 0x44, 0xfb, 0x09, 0x37, 0xe3, 0x47, 0x92,
|
0xb6, 0x36, 0xf7, 0x2c, 0x92, 0xc8, 0x6e, 0xf1, 0x9a, 0x7b, 0xb6, 0x78, 0x43, 0xbe, 0x2b, 0x8a,
|
0xf6, 0x15, 0x45, 0xbf, 0x15, 0x45, 0x5f, 0x35, 0xed, 0xed, 0x6b, 0xda, 0xfb, 0xa9, 0x69, 0x2f,
|
0x1c, 0x59, 0x4f, 0x57, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x1c, 0x63, 0x72, 0x18, 0x00, 0x02,
|
0x00, 0x00,
|
}
|
|
func (m *SdkmsgWithTask) 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 *SdkmsgWithTask) MarshalTo(dAtA []byte) (int, error) {
|
var i int
|
_ = i
|
var l int
|
_ = l
|
if len(m.Sdkid) > 0 {
|
dAtA[i] = 0xa
|
i++
|
i = encodeVarintCommsg(dAtA, i, uint64(len(m.Sdkid)))
|
i += copy(dAtA[i:], m.Sdkid)
|
}
|
if len(m.Sdktype) > 0 {
|
dAtA[i] = 0x12
|
i++
|
i = encodeVarintCommsg(dAtA, i, uint64(len(m.Sdktype)))
|
i += copy(dAtA[i:], m.Sdktype)
|
}
|
if len(m.SdkName) > 0 {
|
dAtA[i] = 0x1a
|
i++
|
i = encodeVarintCommsg(dAtA, i, uint64(len(m.SdkName)))
|
i += copy(dAtA[i:], m.SdkName)
|
}
|
if len(m.Sdkdata) > 0 {
|
dAtA[i] = 0x22
|
i++
|
i = encodeVarintCommsg(dAtA, i, uint64(len(m.Sdkdata)))
|
i += copy(dAtA[i:], m.Sdkdata)
|
}
|
return i, nil
|
}
|
|
func (m *TaskLabel) 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 *TaskLabel) MarshalTo(dAtA []byte) (int, error) {
|
var i int
|
_ = i
|
var l int
|
_ = l
|
if len(m.Taskid) > 0 {
|
dAtA[i] = 0xa
|
i++
|
i = encodeVarintCommsg(dAtA, i, uint64(len(m.Taskid)))
|
i += copy(dAtA[i:], m.Taskid)
|
}
|
if len(m.Taskname) > 0 {
|
dAtA[i] = 0x12
|
i++
|
i = encodeVarintCommsg(dAtA, i, uint64(len(m.Taskname)))
|
i += copy(dAtA[i:], m.Taskname)
|
}
|
if len(m.Sdkinfos) > 0 {
|
for _, msg := range m.Sdkinfos {
|
dAtA[i] = 0x1a
|
i++
|
i = encodeVarintCommsg(dAtA, i, uint64(msg.Size()))
|
n, err := msg.MarshalTo(dAtA[i:])
|
if err != nil {
|
return 0, err
|
}
|
i += n
|
}
|
}
|
if m.Index != 0 {
|
dAtA[i] = 0x20
|
i++
|
i = encodeVarintCommsg(dAtA, i, uint64(m.Index))
|
}
|
return i, nil
|
}
|
|
func (m *SdkMessage) 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 *SdkMessage) MarshalTo(dAtA []byte) (int, error) {
|
var i int
|
_ = i
|
var l int
|
_ = l
|
if len(m.Cid) > 0 {
|
dAtA[i] = 0xa
|
i++
|
i = encodeVarintCommsg(dAtA, i, uint64(len(m.Cid)))
|
i += copy(dAtA[i:], m.Cid)
|
}
|
if len(m.Caddr) > 0 {
|
dAtA[i] = 0x12
|
i++
|
i = encodeVarintCommsg(dAtA, i, uint64(len(m.Caddr)))
|
i += copy(dAtA[i:], m.Caddr)
|
}
|
if m.Tasklab != nil {
|
dAtA[i] = 0x1a
|
i++
|
i = encodeVarintCommsg(dAtA, i, uint64(m.Tasklab.Size()))
|
n1, err1 := m.Tasklab.MarshalTo(dAtA[i:])
|
if err1 != nil {
|
return 0, err1
|
}
|
i += n1
|
}
|
if len(m.Data) > 0 {
|
dAtA[i] = 0x22
|
i++
|
i = encodeVarintCommsg(dAtA, i, uint64(len(m.Data)))
|
i += copy(dAtA[i:], m.Data)
|
}
|
return i, nil
|
}
|
|
func (m *Recvmsg) 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 *Recvmsg) MarshalTo(dAtA []byte) (int, error) {
|
var i int
|
_ = i
|
var l int
|
_ = l
|
if len(m.Id) > 0 {
|
dAtA[i] = 0xa
|
i++
|
i = encodeVarintCommsg(dAtA, i, uint64(len(m.Id)))
|
i += copy(dAtA[i:], m.Id)
|
}
|
if len(m.Addr) > 0 {
|
dAtA[i] = 0x12
|
i++
|
i = encodeVarintCommsg(dAtA, i, uint64(len(m.Addr)))
|
i += copy(dAtA[i:], m.Addr)
|
}
|
if len(m.Picdata) > 0 {
|
dAtA[i] = 0x1a
|
i++
|
i = encodeVarintCommsg(dAtA, i, uint64(len(m.Picdata)))
|
i += copy(dAtA[i:], m.Picdata)
|
}
|
return i, nil
|
}
|
|
func encodeVarintCommsg(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 *SdkmsgWithTask) Size() (n int) {
|
if m == nil {
|
return 0
|
}
|
var l int
|
_ = l
|
l = len(m.Sdkid)
|
if l > 0 {
|
n += 1 + l + sovCommsg(uint64(l))
|
}
|
l = len(m.Sdktype)
|
if l > 0 {
|
n += 1 + l + sovCommsg(uint64(l))
|
}
|
l = len(m.SdkName)
|
if l > 0 {
|
n += 1 + l + sovCommsg(uint64(l))
|
}
|
l = len(m.Sdkdata)
|
if l > 0 {
|
n += 1 + l + sovCommsg(uint64(l))
|
}
|
return n
|
}
|
|
func (m *TaskLabel) Size() (n int) {
|
if m == nil {
|
return 0
|
}
|
var l int
|
_ = l
|
l = len(m.Taskid)
|
if l > 0 {
|
n += 1 + l + sovCommsg(uint64(l))
|
}
|
l = len(m.Taskname)
|
if l > 0 {
|
n += 1 + l + sovCommsg(uint64(l))
|
}
|
if len(m.Sdkinfos) > 0 {
|
for _, e := range m.Sdkinfos {
|
l = e.Size()
|
n += 1 + l + sovCommsg(uint64(l))
|
}
|
}
|
if m.Index != 0 {
|
n += 1 + sovCommsg(uint64(m.Index))
|
}
|
return n
|
}
|
|
func (m *SdkMessage) Size() (n int) {
|
if m == nil {
|
return 0
|
}
|
var l int
|
_ = l
|
l = len(m.Cid)
|
if l > 0 {
|
n += 1 + l + sovCommsg(uint64(l))
|
}
|
l = len(m.Caddr)
|
if l > 0 {
|
n += 1 + l + sovCommsg(uint64(l))
|
}
|
if m.Tasklab != nil {
|
l = m.Tasklab.Size()
|
n += 1 + l + sovCommsg(uint64(l))
|
}
|
l = len(m.Data)
|
if l > 0 {
|
n += 1 + l + sovCommsg(uint64(l))
|
}
|
return n
|
}
|
|
func (m *Recvmsg) Size() (n int) {
|
if m == nil {
|
return 0
|
}
|
var l int
|
_ = l
|
l = len(m.Id)
|
if l > 0 {
|
n += 1 + l + sovCommsg(uint64(l))
|
}
|
l = len(m.Addr)
|
if l > 0 {
|
n += 1 + l + sovCommsg(uint64(l))
|
}
|
l = len(m.Picdata)
|
if l > 0 {
|
n += 1 + l + sovCommsg(uint64(l))
|
}
|
return n
|
}
|
|
func sovCommsg(x uint64) (n int) {
|
for {
|
n++
|
x >>= 7
|
if x == 0 {
|
break
|
}
|
}
|
return n
|
}
|
func sozCommsg(x uint64) (n int) {
|
return sovCommsg(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
}
|
func (m *SdkmsgWithTask) 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 ErrIntOverflowCommsg
|
}
|
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: SdkmsgWithTask: wiretype end group for non-group")
|
}
|
if fieldNum <= 0 {
|
return fmt.Errorf("proto: SdkmsgWithTask: illegal tag %d (wire type %d)", fieldNum, wire)
|
}
|
switch fieldNum {
|
case 1:
|
if wireType != 2 {
|
return fmt.Errorf("proto: wrong wireType = %d for field Sdkid", wireType)
|
}
|
var stringLen uint64
|
for shift := uint(0); ; shift += 7 {
|
if shift >= 64 {
|
return ErrIntOverflowCommsg
|
}
|
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 ErrInvalidLengthCommsg
|
}
|
postIndex := iNdEx + intStringLen
|
if postIndex < 0 {
|
return ErrInvalidLengthCommsg
|
}
|
if postIndex > l {
|
return io.ErrUnexpectedEOF
|
}
|
m.Sdkid = string(dAtA[iNdEx:postIndex])
|
iNdEx = postIndex
|
case 2:
|
if wireType != 2 {
|
return fmt.Errorf("proto: wrong wireType = %d for field Sdktype", wireType)
|
}
|
var stringLen uint64
|
for shift := uint(0); ; shift += 7 {
|
if shift >= 64 {
|
return ErrIntOverflowCommsg
|
}
|
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 ErrInvalidLengthCommsg
|
}
|
postIndex := iNdEx + intStringLen
|
if postIndex < 0 {
|
return ErrInvalidLengthCommsg
|
}
|
if postIndex > l {
|
return io.ErrUnexpectedEOF
|
}
|
m.Sdktype = string(dAtA[iNdEx:postIndex])
|
iNdEx = postIndex
|
case 3:
|
if wireType != 2 {
|
return fmt.Errorf("proto: wrong wireType = %d for field SdkName", wireType)
|
}
|
var stringLen uint64
|
for shift := uint(0); ; shift += 7 {
|
if shift >= 64 {
|
return ErrIntOverflowCommsg
|
}
|
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 ErrInvalidLengthCommsg
|
}
|
postIndex := iNdEx + intStringLen
|
if postIndex < 0 {
|
return ErrInvalidLengthCommsg
|
}
|
if postIndex > l {
|
return io.ErrUnexpectedEOF
|
}
|
m.SdkName = string(dAtA[iNdEx:postIndex])
|
iNdEx = postIndex
|
case 4:
|
if wireType != 2 {
|
return fmt.Errorf("proto: wrong wireType = %d for field Sdkdata", wireType)
|
}
|
var byteLen int
|
for shift := uint(0); ; shift += 7 {
|
if shift >= 64 {
|
return ErrIntOverflowCommsg
|
}
|
if iNdEx >= l {
|
return io.ErrUnexpectedEOF
|
}
|
b := dAtA[iNdEx]
|
iNdEx++
|
byteLen |= int(b&0x7F) << shift
|
if b < 0x80 {
|
break
|
}
|
}
|
if byteLen < 0 {
|
return ErrInvalidLengthCommsg
|
}
|
postIndex := iNdEx + byteLen
|
if postIndex < 0 {
|
return ErrInvalidLengthCommsg
|
}
|
if postIndex > l {
|
return io.ErrUnexpectedEOF
|
}
|
m.Sdkdata = append(m.Sdkdata[:0], dAtA[iNdEx:postIndex]...)
|
if m.Sdkdata == nil {
|
m.Sdkdata = []byte{}
|
}
|
iNdEx = postIndex
|
default:
|
iNdEx = preIndex
|
skippy, err := skipCommsg(dAtA[iNdEx:])
|
if err != nil {
|
return err
|
}
|
if skippy < 0 {
|
return ErrInvalidLengthCommsg
|
}
|
if (iNdEx + skippy) < 0 {
|
return ErrInvalidLengthCommsg
|
}
|
if (iNdEx + skippy) > l {
|
return io.ErrUnexpectedEOF
|
}
|
iNdEx += skippy
|
}
|
}
|
|
if iNdEx > l {
|
return io.ErrUnexpectedEOF
|
}
|
return nil
|
}
|
func (m *TaskLabel) 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 ErrIntOverflowCommsg
|
}
|
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: TaskLabel: wiretype end group for non-group")
|
}
|
if fieldNum <= 0 {
|
return fmt.Errorf("proto: TaskLabel: illegal tag %d (wire type %d)", fieldNum, wire)
|
}
|
switch fieldNum {
|
case 1:
|
if wireType != 2 {
|
return fmt.Errorf("proto: wrong wireType = %d for field Taskid", wireType)
|
}
|
var stringLen uint64
|
for shift := uint(0); ; shift += 7 {
|
if shift >= 64 {
|
return ErrIntOverflowCommsg
|
}
|
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 ErrInvalidLengthCommsg
|
}
|
postIndex := iNdEx + intStringLen
|
if postIndex < 0 {
|
return ErrInvalidLengthCommsg
|
}
|
if postIndex > l {
|
return io.ErrUnexpectedEOF
|
}
|
m.Taskid = string(dAtA[iNdEx:postIndex])
|
iNdEx = postIndex
|
case 2:
|
if wireType != 2 {
|
return fmt.Errorf("proto: wrong wireType = %d for field Taskname", wireType)
|
}
|
var stringLen uint64
|
for shift := uint(0); ; shift += 7 {
|
if shift >= 64 {
|
return ErrIntOverflowCommsg
|
}
|
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 ErrInvalidLengthCommsg
|
}
|
postIndex := iNdEx + intStringLen
|
if postIndex < 0 {
|
return ErrInvalidLengthCommsg
|
}
|
if postIndex > l {
|
return io.ErrUnexpectedEOF
|
}
|
m.Taskname = string(dAtA[iNdEx:postIndex])
|
iNdEx = postIndex
|
case 3:
|
if wireType != 2 {
|
return fmt.Errorf("proto: wrong wireType = %d for field Sdkinfos", wireType)
|
}
|
var msglen int
|
for shift := uint(0); ; shift += 7 {
|
if shift >= 64 {
|
return ErrIntOverflowCommsg
|
}
|
if iNdEx >= l {
|
return io.ErrUnexpectedEOF
|
}
|
b := dAtA[iNdEx]
|
iNdEx++
|
msglen |= int(b&0x7F) << shift
|
if b < 0x80 {
|
break
|
}
|
}
|
if msglen < 0 {
|
return ErrInvalidLengthCommsg
|
}
|
postIndex := iNdEx + msglen
|
if postIndex < 0 {
|
return ErrInvalidLengthCommsg
|
}
|
if postIndex > l {
|
return io.ErrUnexpectedEOF
|
}
|
m.Sdkinfos = append(m.Sdkinfos, &SdkmsgWithTask{})
|
if err := m.Sdkinfos[len(m.Sdkinfos)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
return err
|
}
|
iNdEx = postIndex
|
case 4:
|
if wireType != 0 {
|
return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType)
|
}
|
m.Index = 0
|
for shift := uint(0); ; shift += 7 {
|
if shift >= 64 {
|
return ErrIntOverflowCommsg
|
}
|
if iNdEx >= l {
|
return io.ErrUnexpectedEOF
|
}
|
b := dAtA[iNdEx]
|
iNdEx++
|
m.Index |= int32(b&0x7F) << shift
|
if b < 0x80 {
|
break
|
}
|
}
|
default:
|
iNdEx = preIndex
|
skippy, err := skipCommsg(dAtA[iNdEx:])
|
if err != nil {
|
return err
|
}
|
if skippy < 0 {
|
return ErrInvalidLengthCommsg
|
}
|
if (iNdEx + skippy) < 0 {
|
return ErrInvalidLengthCommsg
|
}
|
if (iNdEx + skippy) > l {
|
return io.ErrUnexpectedEOF
|
}
|
iNdEx += skippy
|
}
|
}
|
|
if iNdEx > l {
|
return io.ErrUnexpectedEOF
|
}
|
return nil
|
}
|
func (m *SdkMessage) 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 ErrIntOverflowCommsg
|
}
|
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: SdkMessage: wiretype end group for non-group")
|
}
|
if fieldNum <= 0 {
|
return fmt.Errorf("proto: SdkMessage: illegal tag %d (wire type %d)", fieldNum, wire)
|
}
|
switch fieldNum {
|
case 1:
|
if wireType != 2 {
|
return fmt.Errorf("proto: wrong wireType = %d for field Cid", wireType)
|
}
|
var stringLen uint64
|
for shift := uint(0); ; shift += 7 {
|
if shift >= 64 {
|
return ErrIntOverflowCommsg
|
}
|
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 ErrInvalidLengthCommsg
|
}
|
postIndex := iNdEx + intStringLen
|
if postIndex < 0 {
|
return ErrInvalidLengthCommsg
|
}
|
if postIndex > l {
|
return io.ErrUnexpectedEOF
|
}
|
m.Cid = string(dAtA[iNdEx:postIndex])
|
iNdEx = postIndex
|
case 2:
|
if wireType != 2 {
|
return fmt.Errorf("proto: wrong wireType = %d for field Caddr", wireType)
|
}
|
var stringLen uint64
|
for shift := uint(0); ; shift += 7 {
|
if shift >= 64 {
|
return ErrIntOverflowCommsg
|
}
|
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 ErrInvalidLengthCommsg
|
}
|
postIndex := iNdEx + intStringLen
|
if postIndex < 0 {
|
return ErrInvalidLengthCommsg
|
}
|
if postIndex > l {
|
return io.ErrUnexpectedEOF
|
}
|
m.Caddr = string(dAtA[iNdEx:postIndex])
|
iNdEx = postIndex
|
case 3:
|
if wireType != 2 {
|
return fmt.Errorf("proto: wrong wireType = %d for field Tasklab", wireType)
|
}
|
var msglen int
|
for shift := uint(0); ; shift += 7 {
|
if shift >= 64 {
|
return ErrIntOverflowCommsg
|
}
|
if iNdEx >= l {
|
return io.ErrUnexpectedEOF
|
}
|
b := dAtA[iNdEx]
|
iNdEx++
|
msglen |= int(b&0x7F) << shift
|
if b < 0x80 {
|
break
|
}
|
}
|
if msglen < 0 {
|
return ErrInvalidLengthCommsg
|
}
|
postIndex := iNdEx + msglen
|
if postIndex < 0 {
|
return ErrInvalidLengthCommsg
|
}
|
if postIndex > l {
|
return io.ErrUnexpectedEOF
|
}
|
if m.Tasklab == nil {
|
m.Tasklab = &TaskLabel{}
|
}
|
if err := m.Tasklab.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
return err
|
}
|
iNdEx = postIndex
|
case 4:
|
if wireType != 2 {
|
return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
|
}
|
var byteLen int
|
for shift := uint(0); ; shift += 7 {
|
if shift >= 64 {
|
return ErrIntOverflowCommsg
|
}
|
if iNdEx >= l {
|
return io.ErrUnexpectedEOF
|
}
|
b := dAtA[iNdEx]
|
iNdEx++
|
byteLen |= int(b&0x7F) << shift
|
if b < 0x80 {
|
break
|
}
|
}
|
if byteLen < 0 {
|
return ErrInvalidLengthCommsg
|
}
|
postIndex := iNdEx + byteLen
|
if postIndex < 0 {
|
return ErrInvalidLengthCommsg
|
}
|
if postIndex > l {
|
return io.ErrUnexpectedEOF
|
}
|
m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...)
|
if m.Data == nil {
|
m.Data = []byte{}
|
}
|
iNdEx = postIndex
|
default:
|
iNdEx = preIndex
|
skippy, err := skipCommsg(dAtA[iNdEx:])
|
if err != nil {
|
return err
|
}
|
if skippy < 0 {
|
return ErrInvalidLengthCommsg
|
}
|
if (iNdEx + skippy) < 0 {
|
return ErrInvalidLengthCommsg
|
}
|
if (iNdEx + skippy) > l {
|
return io.ErrUnexpectedEOF
|
}
|
iNdEx += skippy
|
}
|
}
|
|
if iNdEx > l {
|
return io.ErrUnexpectedEOF
|
}
|
return nil
|
}
|
func (m *Recvmsg) 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 ErrIntOverflowCommsg
|
}
|
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: recvmsg: wiretype end group for non-group")
|
}
|
if fieldNum <= 0 {
|
return fmt.Errorf("proto: recvmsg: 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 ErrIntOverflowCommsg
|
}
|
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 ErrInvalidLengthCommsg
|
}
|
postIndex := iNdEx + intStringLen
|
if postIndex < 0 {
|
return ErrInvalidLengthCommsg
|
}
|
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 Addr", wireType)
|
}
|
var stringLen uint64
|
for shift := uint(0); ; shift += 7 {
|
if shift >= 64 {
|
return ErrIntOverflowCommsg
|
}
|
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 ErrInvalidLengthCommsg
|
}
|
postIndex := iNdEx + intStringLen
|
if postIndex < 0 {
|
return ErrInvalidLengthCommsg
|
}
|
if postIndex > l {
|
return io.ErrUnexpectedEOF
|
}
|
m.Addr = string(dAtA[iNdEx:postIndex])
|
iNdEx = postIndex
|
case 3:
|
if wireType != 2 {
|
return fmt.Errorf("proto: wrong wireType = %d for field Picdata", wireType)
|
}
|
var byteLen int
|
for shift := uint(0); ; shift += 7 {
|
if shift >= 64 {
|
return ErrIntOverflowCommsg
|
}
|
if iNdEx >= l {
|
return io.ErrUnexpectedEOF
|
}
|
b := dAtA[iNdEx]
|
iNdEx++
|
byteLen |= int(b&0x7F) << shift
|
if b < 0x80 {
|
break
|
}
|
}
|
if byteLen < 0 {
|
return ErrInvalidLengthCommsg
|
}
|
postIndex := iNdEx + byteLen
|
if postIndex < 0 {
|
return ErrInvalidLengthCommsg
|
}
|
if postIndex > l {
|
return io.ErrUnexpectedEOF
|
}
|
m.Picdata = append(m.Picdata[:0], dAtA[iNdEx:postIndex]...)
|
if m.Picdata == nil {
|
m.Picdata = []byte{}
|
}
|
iNdEx = postIndex
|
default:
|
iNdEx = preIndex
|
skippy, err := skipCommsg(dAtA[iNdEx:])
|
if err != nil {
|
return err
|
}
|
if skippy < 0 {
|
return ErrInvalidLengthCommsg
|
}
|
if (iNdEx + skippy) < 0 {
|
return ErrInvalidLengthCommsg
|
}
|
if (iNdEx + skippy) > l {
|
return io.ErrUnexpectedEOF
|
}
|
iNdEx += skippy
|
}
|
}
|
|
if iNdEx > l {
|
return io.ErrUnexpectedEOF
|
}
|
return nil
|
}
|
func skipCommsg(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, ErrIntOverflowCommsg
|
}
|
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, ErrIntOverflowCommsg
|
}
|
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, ErrIntOverflowCommsg
|
}
|
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, ErrInvalidLengthCommsg
|
}
|
iNdEx += length
|
if iNdEx < 0 {
|
return 0, ErrInvalidLengthCommsg
|
}
|
return iNdEx, nil
|
case 3:
|
for {
|
var innerWire uint64
|
var start int = iNdEx
|
for shift := uint(0); ; shift += 7 {
|
if shift >= 64 {
|
return 0, ErrIntOverflowCommsg
|
}
|
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 := skipCommsg(dAtA[start:])
|
if err != nil {
|
return 0, err
|
}
|
iNdEx = start + next
|
if iNdEx < 0 {
|
return 0, ErrInvalidLengthCommsg
|
}
|
}
|
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 (
|
ErrInvalidLengthCommsg = fmt.Errorf("proto: negative length found during unmarshaling")
|
ErrIntOverflowCommsg = fmt.Errorf("proto: integer overflow")
|
)
|