1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
| // Code generated by protoc-gen-go. DO NOT EDIT.
| // source: base.proto
|
| package protomsg
|
| import (
| fmt "fmt"
| proto "github.com/golang/protobuf/proto"
| 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.ProtoPackageIsVersion3 // please upgrade the proto package
|
| // struct for sdk
| type Point struct {
| X int32 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"`
| Y int32 `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"`
| XXX_NoUnkeyedLiteral struct{} `json:"-"`
| XXX_unrecognized []byte `json:"-"`
| XXX_sizecache int32 `json:"-"`
| }
|
| func (m *Point) Reset() { *m = Point{} }
| func (m *Point) String() string { return proto.CompactTextString(m) }
| func (*Point) ProtoMessage() {}
| func (*Point) Descriptor() ([]byte, []int) {
| return fileDescriptor_db1b6b0986796150, []int{0}
| }
|
| func (m *Point) XXX_Unmarshal(b []byte) error {
| return xxx_messageInfo_Point.Unmarshal(m, b)
| }
| func (m *Point) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
| return xxx_messageInfo_Point.Marshal(b, m, deterministic)
| }
| func (m *Point) XXX_Merge(src proto.Message) {
| xxx_messageInfo_Point.Merge(m, src)
| }
| func (m *Point) XXX_Size() int {
| return xxx_messageInfo_Point.Size(m)
| }
| func (m *Point) XXX_DiscardUnknown() {
| xxx_messageInfo_Point.DiscardUnknown(m)
| }
|
| var xxx_messageInfo_Point proto.InternalMessageInfo
|
| func (m *Point) GetX() int32 {
| if m != nil {
| return m.X
| }
| return 0
| }
|
| func (m *Point) GetY() int32 {
| if m != nil {
| return m.Y
| }
| return 0
| }
|
| type Rect struct {
| Left int32 `protobuf:"varint,1,opt,name=left,proto3" json:"left,omitempty"`
| Top int32 `protobuf:"varint,2,opt,name=top,proto3" json:"top,omitempty"`
| Right int32 `protobuf:"varint,3,opt,name=right,proto3" json:"right,omitempty"`
| Bottom int32 `protobuf:"varint,4,opt,name=bottom,proto3" json:"bottom,omitempty"`
| XXX_NoUnkeyedLiteral struct{} `json:"-"`
| XXX_unrecognized []byte `json:"-"`
| XXX_sizecache int32 `json:"-"`
| }
|
| func (m *Rect) Reset() { *m = Rect{} }
| func (m *Rect) String() string { return proto.CompactTextString(m) }
| func (*Rect) ProtoMessage() {}
| func (*Rect) Descriptor() ([]byte, []int) {
| return fileDescriptor_db1b6b0986796150, []int{1}
| }
|
| func (m *Rect) XXX_Unmarshal(b []byte) error {
| return xxx_messageInfo_Rect.Unmarshal(m, b)
| }
| func (m *Rect) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
| return xxx_messageInfo_Rect.Marshal(b, m, deterministic)
| }
| func (m *Rect) XXX_Merge(src proto.Message) {
| xxx_messageInfo_Rect.Merge(m, src)
| }
| func (m *Rect) XXX_Size() int {
| return xxx_messageInfo_Rect.Size(m)
| }
| func (m *Rect) XXX_DiscardUnknown() {
| xxx_messageInfo_Rect.DiscardUnknown(m)
| }
|
| var xxx_messageInfo_Rect proto.InternalMessageInfo
|
| func (m *Rect) GetLeft() int32 {
| if m != nil {
| return m.Left
| }
| return 0
| }
|
| func (m *Rect) GetTop() int32 {
| if m != nil {
| return m.Top
| }
| return 0
| }
|
| func (m *Rect) GetRight() int32 {
| if m != nil {
| return m.Right
| }
| return 0
| }
|
| func (m *Rect) GetBottom() int32 {
| if m != nil {
| return m.Bottom
| }
| return 0
| }
|
| func init() {
| proto.RegisterType((*Point)(nil), "protomsg.Point")
| proto.RegisterType((*Rect)(nil), "protomsg.Rect")
| }
|
| func init() { proto.RegisterFile("base.proto", fileDescriptor_db1b6b0986796150) }
|
| var fileDescriptor_db1b6b0986796150 = []byte{
| // 139 bytes of a gzipped FileDescriptorProto
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x4a, 0x4a, 0x2c, 0x4e,
| 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x00, 0x53, 0xb9, 0xc5, 0xe9, 0x4a, 0xca, 0x5c,
| 0xac, 0x01, 0xf9, 0x99, 0x79, 0x25, 0x42, 0x3c, 0x5c, 0x8c, 0x15, 0x12, 0x8c, 0x0a, 0x8c, 0x1a,
| 0xac, 0x41, 0x8c, 0x15, 0x20, 0x5e, 0xa5, 0x04, 0x13, 0x84, 0x57, 0xa9, 0x14, 0xc5, 0xc5, 0x12,
| 0x94, 0x9a, 0x5c, 0x22, 0x24, 0xc4, 0xc5, 0x92, 0x93, 0x9a, 0x56, 0x02, 0x55, 0x06, 0x66, 0x0b,
| 0x09, 0x70, 0x31, 0x97, 0xe4, 0x17, 0x40, 0xd5, 0x82, 0x98, 0x42, 0x22, 0x5c, 0xac, 0x45, 0x99,
| 0xe9, 0x19, 0x25, 0x12, 0xcc, 0x60, 0x31, 0x08, 0x47, 0x48, 0x8c, 0x8b, 0x2d, 0x29, 0xbf, 0xa4,
| 0x24, 0x3f, 0x57, 0x82, 0x05, 0x2c, 0x0c, 0xe5, 0x25, 0xb1, 0x81, 0x9d, 0x62, 0x0c, 0x08, 0x00,
| 0x00, 0xff, 0xff, 0xec, 0x3b, 0x08, 0x21, 0x9f, 0x00, 0x00, 0x00,
| }
|
|