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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
| // Code generated by protoc-gen-go. DO NOT EDIT.
| // source: aiot_business.proto
|
| package aiot
|
| 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
|
| // 请求的body体
| type BusinessReq struct {
| Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
| Authorization string `protobuf:"bytes,2,opt,name=authorization,proto3" json:"authorization,omitempty"`
| Ip string `protobuf:"bytes,3,opt,name=ip,proto3" json:"ip,omitempty"`
| Port string `protobuf:"bytes,4,opt,name=port,proto3" json:"port,omitempty"`
| Req []byte `protobuf:"bytes,5,opt,name=req,proto3" json:"req,omitempty"`
| XXX_NoUnkeyedLiteral struct{} `json:"-"`
| XXX_unrecognized []byte `json:"-"`
| XXX_sizecache int32 `json:"-"`
| }
|
| func (m *BusinessReq) Reset() { *m = BusinessReq{} }
| func (m *BusinessReq) String() string { return proto.CompactTextString(m) }
| func (*BusinessReq) ProtoMessage() {}
| func (*BusinessReq) Descriptor() ([]byte, []int) {
| return fileDescriptor_29eca6d4b33e7fd8, []int{0}
| }
|
| func (m *BusinessReq) XXX_Unmarshal(b []byte) error {
| return xxx_messageInfo_BusinessReq.Unmarshal(m, b)
| }
| func (m *BusinessReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
| return xxx_messageInfo_BusinessReq.Marshal(b, m, deterministic)
| }
| func (m *BusinessReq) XXX_Merge(src proto.Message) {
| xxx_messageInfo_BusinessReq.Merge(m, src)
| }
| func (m *BusinessReq) XXX_Size() int {
| return xxx_messageInfo_BusinessReq.Size(m)
| }
| func (m *BusinessReq) XXX_DiscardUnknown() {
| xxx_messageInfo_BusinessReq.DiscardUnknown(m)
| }
|
| var xxx_messageInfo_BusinessReq proto.InternalMessageInfo
|
| func (m *BusinessReq) GetTopic() string {
| if m != nil {
| return m.Topic
| }
| return ""
| }
|
| func (m *BusinessReq) GetAuthorization() string {
| if m != nil {
| return m.Authorization
| }
| return ""
| }
|
| func (m *BusinessReq) GetIp() string {
| if m != nil {
| return m.Ip
| }
| return ""
| }
|
| func (m *BusinessReq) GetPort() string {
| if m != nil {
| return m.Port
| }
| return ""
| }
|
| func (m *BusinessReq) GetReq() []byte {
| if m != nil {
| return m.Req
| }
| return nil
| }
|
| // 响应的body体
| type BusinessReply struct {
| Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
| Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
| Success bool `protobuf:"varint,3,opt,name=success,proto3" json:"success,omitempty"`
| Data []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
| XXX_NoUnkeyedLiteral struct{} `json:"-"`
| XXX_unrecognized []byte `json:"-"`
| XXX_sizecache int32 `json:"-"`
| }
|
| func (m *BusinessReply) Reset() { *m = BusinessReply{} }
| func (m *BusinessReply) String() string { return proto.CompactTextString(m) }
| func (*BusinessReply) ProtoMessage() {}
| func (*BusinessReply) Descriptor() ([]byte, []int) {
| return fileDescriptor_29eca6d4b33e7fd8, []int{1}
| }
|
| func (m *BusinessReply) XXX_Unmarshal(b []byte) error {
| return xxx_messageInfo_BusinessReply.Unmarshal(m, b)
| }
| func (m *BusinessReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
| return xxx_messageInfo_BusinessReply.Marshal(b, m, deterministic)
| }
| func (m *BusinessReply) XXX_Merge(src proto.Message) {
| xxx_messageInfo_BusinessReply.Merge(m, src)
| }
| func (m *BusinessReply) XXX_Size() int {
| return xxx_messageInfo_BusinessReply.Size(m)
| }
| func (m *BusinessReply) XXX_DiscardUnknown() {
| xxx_messageInfo_BusinessReply.DiscardUnknown(m)
| }
|
| var xxx_messageInfo_BusinessReply proto.InternalMessageInfo
|
| func (m *BusinessReply) GetCode() int32 {
| if m != nil {
| return m.Code
| }
| return 0
| }
|
| func (m *BusinessReply) GetMsg() string {
| if m != nil {
| return m.Msg
| }
| return ""
| }
|
| func (m *BusinessReply) GetSuccess() bool {
| if m != nil {
| return m.Success
| }
| return false
| }
|
| func (m *BusinessReply) GetData() []byte {
| if m != nil {
| return m.Data
| }
| return nil
| }
|
| func init() {
| proto.RegisterType((*BusinessReq)(nil), "aiot.BusinessReq")
| proto.RegisterType((*BusinessReply)(nil), "aiot.BusinessReply")
| }
|
| func init() {
| proto.RegisterFile("aiot_business.proto", fileDescriptor_29eca6d4b33e7fd8)
| }
|
| var fileDescriptor_29eca6d4b33e7fd8 = []byte{
| // 269 bytes of a gzipped FileDescriptorProto
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x50, 0x3d, 0x4f, 0xc3, 0x30,
| 0x10, 0x6d, 0xd3, 0x84, 0x8f, 0x4b, 0x5b, 0xd1, 0x2b, 0x83, 0x95, 0xa9, 0x8a, 0x18, 0x3a, 0x05,
| 0x09, 0x06, 0x66, 0x58, 0x58, 0x91, 0xfb, 0x03, 0x50, 0x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