| 1 | + | // Code generated by protoc-gen-go. DO NOT EDIT. |
| 2 | + | // versions: |
| 3 | + | // protoc-gen-go v1.28.0 |
| 4 | + | // protoc v3.3.0 |
| 5 | + | // source: tunnel.proto |
| 6 | + | |
| 7 | + | package proto |
| 8 | + | |
| 9 | + | import ( |
| 10 | + | protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 11 | + | protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 12 | + | reflect "reflect" |
| 13 | + | sync "sync" |
| 14 | + | ) |
| 15 | + | |
| 16 | + | const ( |
| 17 | + | // Verify that this generated code is sufficiently up-to-date. |
| 18 | + | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 19 | + | // Verify that runtime/protoimpl is sufficiently up-to-date. |
| 20 | + | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 21 | + | ) |
| 22 | + | |
| 23 | + | type Ping struct { |
| 24 | + | state protoimpl.MessageState |
| 25 | + | sizeCache protoimpl.SizeCache |
| 26 | + | unknownFields protoimpl.UnknownFields |
| 27 | + | |
| 28 | + | Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` |
| 29 | + | } |
| 30 | + | |
| 31 | + | func (x *Ping) Reset() { |
| 32 | + | *x = Ping{} |
| 33 | + | if protoimpl.UnsafeEnabled { |
| 34 | + | mi := &file_tunnel_proto_msgTypes[0] |
| 35 | + | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 36 | + | ms.StoreMessageInfo(mi) |
| 37 | + | } |
| 38 | + | } |
| 39 | + | |
| 40 | + | func (x *Ping) String() string { |
| 41 | + | return protoimpl.X.MessageStringOf(x) |
| 42 | + | } |
| 43 | + | |
| 44 | + | func (*Ping) ProtoMessage() {} |
| 45 | + | |
| 46 | + | func (x *Ping) ProtoReflect() protoreflect.Message { |
| 47 | + | mi := &file_tunnel_proto_msgTypes[0] |
| 48 | + | if protoimpl.UnsafeEnabled && x != nil { |
| 49 | + | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 50 | + | if ms.LoadMessageInfo() == nil { |
| 51 | + | ms.StoreMessageInfo(mi) |
| 52 | + | } |
| 53 | + | return ms |
| 54 | + | } |
| 55 | + | return mi.MessageOf(x) |
| 56 | + | } |
| 57 | + | |
| 58 | + | // Deprecated: Use Ping.ProtoReflect.Descriptor instead. |
| 59 | + | func (*Ping) Descriptor() ([]byte, []int) { |
| 60 | + | return file_tunnel_proto_rawDescGZIP(), []int{0} |
| 61 | + | } |
| 62 | + | |
| 63 | + | func (x *Ping) GetVersion() string { |
| 64 | + | if x != nil { |
| 65 | + | return x.Version |
| 66 | + | } |
| 67 | + | return "" |
| 68 | + | } |
| 69 | + | |
| 70 | + | type Pong struct { |
| 71 | + | state protoimpl.MessageState |
| 72 | + | sizeCache protoimpl.SizeCache |
| 73 | + | unknownFields protoimpl.UnknownFields |
| 74 | + | |
| 75 | + | Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` |
| 76 | + | Time string `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"` |
| 77 | + | Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` |
| 78 | + | Commit string `protobuf:"bytes,4,opt,name=commit,proto3" json:"commit,omitempty"` |
| 79 | + | } |
| 80 | + | |
| 81 | + | func (x *Pong) Reset() { |
| 82 | + | *x = Pong{} |
| 83 | + | if protoimpl.UnsafeEnabled { |
| 84 | + | mi := &file_tunnel_proto_msgTypes[1] |
| 85 | + | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 86 | + | ms.StoreMessageInfo(mi) |
| 87 | + | } |
| 88 | + | } |
| 89 | + | |
| 90 | + | func (x *Pong) String() string { |
| 91 | + | return protoimpl.X.MessageStringOf(x) |
| 92 | + | } |
| 93 | + | |
| 94 | + | func (*Pong) ProtoMessage() {} |
| 95 | + | |
| 96 | + | func (x *Pong) ProtoReflect() protoreflect.Message { |
| 97 | + | mi := &file_tunnel_proto_msgTypes[1] |
| 98 | + | if protoimpl.UnsafeEnabled && x != nil { |
| 99 | + | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 100 | + | if ms.LoadMessageInfo() == nil { |
| 101 | + | ms.StoreMessageInfo(mi) |
| 102 | + | } |
| 103 | + | return ms |
| 104 | + | } |
| 105 | + | return mi.MessageOf(x) |
| 106 | + | } |
| 107 | + | |
| 108 | + | // Deprecated: Use Pong.ProtoReflect.Descriptor instead. |
| 109 | + | func (*Pong) Descriptor() ([]byte, []int) { |
| 110 | + | return file_tunnel_proto_rawDescGZIP(), []int{1} |
| 111 | + | } |
| 112 | + | |
| 113 | + | func (x *Pong) GetStatus() string { |
| 114 | + | if x != nil { |
| 115 | + | return x.Status |
| 116 | + | } |
| 117 | + | return "" |
| 118 | + | } |
| 119 | + | |
| 120 | + | func (x *Pong) GetTime() string { |
| 121 | + | if x != nil { |
| 122 | + | return x.Time |
| 123 | + | } |
| 124 | + | return "" |
| 125 | + | } |
| 126 | + | |
| 127 | + | func (x *Pong) GetVersion() string { |
| 128 | + | if x != nil { |
| 129 | + | return x.Version |
| 130 | + | } |
| 131 | + | return "" |
| 132 | + | } |
| 133 | + | |
| 134 | + | func (x *Pong) GetCommit() string { |
| 135 | + | if x != nil { |
| 136 | + | return x.Commit |
| 137 | + | } |
| 138 | + | return "" |
| 139 | + | } |
| 140 | + | |
| 141 | + | type Chunk struct { |
| 142 | + | state protoimpl.MessageState |
| 143 | + | sizeCache protoimpl.SizeCache |
| 144 | + | unknownFields protoimpl.UnknownFields |
| 145 | + | |
| 146 | + | Body []byte `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` |
| 147 | + | Size int32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` |
| 148 | + | } |
| 149 | + | |
| 150 | + | func (x *Chunk) Reset() { |
| 151 | + | *x = Chunk{} |
| 152 | + | if protoimpl.UnsafeEnabled { |
| 153 | + | mi := &file_tunnel_proto_msgTypes[2] |
| 154 | + | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 155 | + | ms.StoreMessageInfo(mi) |
| 156 | + | } |
| 157 | + | } |
| 158 | + | |
| 159 | + | func (x *Chunk) String() string { |
| 160 | + | return protoimpl.X.MessageStringOf(x) |
| 161 | + | } |
| 162 | + | |
| 163 | + | func (*Chunk) ProtoMessage() {} |
| 164 | + | |
| 165 | + | func (x *Chunk) ProtoReflect() protoreflect.Message { |
| 166 | + | mi := &file_tunnel_proto_msgTypes[2] |
| 167 | + | if protoimpl.UnsafeEnabled && x != nil { |
| 168 | + | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 169 | + | if ms.LoadMessageInfo() == nil { |
| 170 | + | ms.StoreMessageInfo(mi) |
| 171 | + | } |
| 172 | + | return ms |
| 173 | + | } |
| 174 | + | return mi.MessageOf(x) |
| 175 | + | } |
| 176 | + | |
| 177 | + | // Deprecated: Use Chunk.ProtoReflect.Descriptor instead. |
| 178 | + | func (*Chunk) Descriptor() ([]byte, []int) { |
| 179 | + | return file_tunnel_proto_rawDescGZIP(), []int{2} |
| 180 | + | } |
| 181 | + | |
| 182 | + | func (x *Chunk) GetBody() []byte { |
| 183 | + | if x != nil { |
| 184 | + | return x.Body |
| 185 | + | } |
| 186 | + | return nil |
| 187 | + | } |
| 188 | + | |
| 189 | + | func (x *Chunk) GetSize() int32 { |
| 190 | + | if x != nil { |
| 191 | + | return x.Size |
| 192 | + | } |
| 193 | + | return 0 |
| 194 | + | } |
| 195 | + | |
| 196 | + | var File_tunnel_proto protoreflect.FileDescriptor |
| 197 | + | |
| 198 | + | var file_tunnel_proto_rawDesc = []byte{ |
| 199 | + | 0x0a, 0x0c, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, |
| 200 | + | 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x22, 0x20, 0x0a, 0x04, 0x50, 0x69, 0x6e, 0x67, 0x12, 0x18, |
| 201 | + | 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, |
| 202 | + | 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x64, 0x0a, 0x04, 0x50, 0x6f, 0x6e, 0x67, |
| 203 | + | 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, |
| 204 | + | 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, |
| 205 | + | 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, |
| 206 | + | 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, |
| 207 | + | 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, |
| 208 | + | 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x22, 0x2f, |
| 209 | + | 0x0a, 0x05, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, |
| 210 | + | 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x73, |
| 211 | + | 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x32, |
| 212 | + | 0xbc, 0x02, 0x0a, 0x06, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x12, 0x28, 0x0a, 0x04, 0x41, 0x75, |
| 213 | + | 0x74, 0x6f, 0x12, 0x0d, 0x2e, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, 0x43, 0x68, 0x75, 0x6e, |
| 214 | + | 0x6b, 0x1a, 0x0d, 0x2e, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, 0x43, 0x68, 0x75, 0x6e, 0x6b, |
| 215 | + | 0x28, 0x01, 0x30, 0x01, 0x12, 0x28, 0x0a, 0x04, 0x48, 0x74, 0x74, 0x70, 0x12, 0x0d, 0x2e, 0x74, |
| 216 | + | 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x1a, 0x0d, 0x2e, 0x74, 0x75, |
| 217 | + | 0x6e, 0x6e, 0x65, 0x6c, 0x2e, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x28, 0x01, 0x30, 0x01, 0x12, 0x2a, |
| 218 | + | 0x0a, 0x06, 0x53, 0x6f, 0x63, 0x6b, 0x73, 0x35, 0x12, 0x0d, 0x2e, 0x74, 0x75, 0x6e, 0x6e, 0x65, |
| 219 | + | 0x6c, 0x2e, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x1a, 0x0d, 0x2e, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, |
| 220 | + | 0x2e, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x28, 0x01, 0x30, 0x01, 0x12, 0x2c, 0x0a, 0x08, 0x56, 0x32, |
| 221 | + | 0x72, 0x61, 0x79, 0x53, 0x73, 0x72, 0x12, 0x0d, 0x2e, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, |
| 222 | + | 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x1a, 0x0d, 0x2e, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, 0x43, |
| 223 | + | 0x68, 0x75, 0x6e, 0x6b, 0x28, 0x01, 0x30, 0x01, 0x12, 0x2e, 0x0a, 0x0a, 0x56, 0x32, 0x72, 0x61, |
| 224 | + | 0x79, 0x56, 0x6d, 0x65, 0x73, 0x73, 0x12, 0x0d, 0x2e, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, |
| 225 | + | 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x1a, 0x0d, 0x2e, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, 0x43, |
| 226 | + | 0x68, 0x75, 0x6e, 0x6b, 0x28, 0x01, 0x30, 0x01, 0x12, 0x2e, 0x0a, 0x0a, 0x56, 0x32, 0x72, 0x61, |
| 227 | + | 0x79, 0x56, 0x6c, 0x65, 0x73, 0x73, 0x12, 0x0d, 0x2e, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, |
| 228 | + | 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x1a, 0x0d, 0x2e, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, 0x43, |
| 229 | + | 0x68, 0x75, 0x6e, 0x6b, 0x28, 0x01, 0x30, 0x01, 0x12, 0x24, 0x0a, 0x06, 0x48, 0x65, 0x61, 0x6c, |
| 230 | + | 0x74, 0x68, 0x12, 0x0c, 0x2e, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, 0x50, 0x69, 0x6e, 0x67, |
| 231 | + | 0x1a, 0x0c, 0x2e, 0x74, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, 0x50, 0x6f, 0x6e, 0x67, 0x42, 0x23, |
| 232 | + | 0x5a, 0x21, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x64, 0x76, 0x6b, |
| 233 | + | 0x75, 0x6e, 0x69, 0x6f, 0x6e, 0x2f, 0x73, 0x65, 0x61, 0x6d, 0x6f, 0x6f, 0x6e, 0x2f, 0x70, 0x72, |
| 234 | + | 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 235 | + | } |
| 236 | + | |
| 237 | + | var ( |
| 238 | + | file_tunnel_proto_rawDescOnce sync.Once |
| 239 | + | file_tunnel_proto_rawDescData = file_tunnel_proto_rawDesc |
| 240 | + | ) |
| 241 | + | |
| 242 | + | func file_tunnel_proto_rawDescGZIP() []byte { |
| 243 | + | file_tunnel_proto_rawDescOnce.Do(func() { |
| 244 | + | file_tunnel_proto_rawDescData = protoimpl.X.CompressGZIP(file_tunnel_proto_rawDescData) |
| 245 | + | }) |
| 246 | + | return file_tunnel_proto_rawDescData |
| 247 | + | } |
| 248 | + | |
| 249 | + | var file_tunnel_proto_msgTypes = make([]protoimpl.MessageInfo, 3) |
| 250 | + | var file_tunnel_proto_goTypes = []interface{}{ |
| 251 | + | (*Ping)(nil), // 0: tunnel.Ping |
| 252 | + | (*Pong)(nil), // 1: tunnel.Pong |
| 253 | + | (*Chunk)(nil), // 2: tunnel.Chunk |
| 254 | + | } |
| 255 | + | var file_tunnel_proto_depIdxs = []int32{ |
| 256 | + | 2, // 0: tunnel.Tunnel.Auto:input_type -> tunnel.Chunk |
| 257 | + | 2, // 1: tunnel.Tunnel.Http:input_type -> tunnel.Chunk |
| 258 | + | 2, // 2: tunnel.Tunnel.Socks5:input_type -> tunnel.Chunk |
| 259 | + | 2, // 3: tunnel.Tunnel.V2raySsr:input_type -> tunnel.Chunk |
| 260 | + | 2, // 4: tunnel.Tunnel.V2rayVmess:input_type -> tunnel.Chunk |
| 261 | + | 2, // 5: tunnel.Tunnel.V2rayVless:input_type -> tunnel.Chunk |
| 262 | + | 0, // 6: tunnel.Tunnel.Health:input_type -> tunnel.Ping |
| 263 | + | 2, // 7: tunnel.Tunnel.Auto:output_type -> tunnel.Chunk |
| 264 | + | 2, // 8: tunnel.Tunnel.Http:output_type -> tunnel.Chunk |
| 265 | + | 2, // 9: tunnel.Tunnel.Socks5:output_type -> tunnel.Chunk |
| 266 | + | 2, // 10: tunnel.Tunnel.V2raySsr:output_type -> tunnel.Chunk |
| 267 | + | 2, // 11: tunnel.Tunnel.V2rayVmess:output_type -> tunnel.Chunk |
| 268 | + | 2, // 12: tunnel.Tunnel.V2rayVless:output_type -> tunnel.Chunk |
| 269 | + | 1, // 13: tunnel.Tunnel.Health:output_type -> tunnel.Pong |
| 270 | + | 7, // [7:14] is the sub-list for method output_type |
| 271 | + | 0, // [0:7] is the sub-list for method input_type |
| 272 | + | 0, // [0:0] is the sub-list for extension type_name |
| 273 | + | 0, // [0:0] is the sub-list for extension extendee |
| 274 | + | 0, // [0:0] is the sub-list for field type_name |
| 275 | + | } |
| 276 | + | |
| 277 | + | func init() { file_tunnel_proto_init() } |
| 278 | + | func file_tunnel_proto_init() { |
| 279 | + | if File_tunnel_proto != nil { |
| 280 | + | return |
| 281 | + | } |
| 282 | + | if !protoimpl.UnsafeEnabled { |
| 283 | + | file_tunnel_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| 284 | + | switch v := v.(*Ping); i { |
| 285 | + | case 0: |
| 286 | + | return &v.state |
| 287 | + | case 1: |
| 288 | + | return &v.sizeCache |
| 289 | + | case 2: |
| 290 | + | return &v.unknownFields |
| 291 | + | default: |
| 292 | + | return nil |
| 293 | + | } |
| 294 | + | } |
| 295 | + | file_tunnel_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { |
| 296 | + | switch v := v.(*Pong); i { |
| 297 | + | case 0: |
| 298 | + | return &v.state |
| 299 | + | case 1: |
| 300 | + | return &v.sizeCache |
| 301 | + | case 2: |
| 302 | + | return &v.unknownFields |
| 303 | + | default: |
| 304 | + | return nil |
| 305 | + | } |
| 306 | + | } |
| 307 | + | file_tunnel_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { |
| 308 | + | switch v := v.(*Chunk); i { |
| 309 | + | case 0: |
| 310 | + | return &v.state |
| 311 | + | case 1: |
| 312 | + | return &v.sizeCache |
| 313 | + | case 2: |
| 314 | + | return &v.unknownFields |
| 315 | + | default: |
| 316 | + | return nil |
| 317 | + | } |
| 318 | + | } |
| 319 | + | } |
| 320 | + | type x struct{} |
| 321 | + | out := protoimpl.TypeBuilder{ |
| 322 | + | File: protoimpl.DescBuilder{ |
| 323 | + | GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 324 | + | RawDescriptor: file_tunnel_proto_rawDesc, |
| 325 | + | NumEnums: 0, |
| 326 | + | NumMessages: 3, |
| 327 | + | NumExtensions: 0, |
| 328 | + | NumServices: 1, |
| 329 | + | }, |
| 330 | + | GoTypes: file_tunnel_proto_goTypes, |
| 331 | + | DependencyIndexes: file_tunnel_proto_depIdxs, |
| 332 | + | MessageInfos: file_tunnel_proto_msgTypes, |
| 333 | + | }.Build() |
| 334 | + | File_tunnel_proto = out.File |
| 335 | + | file_tunnel_proto_rawDesc = nil |
| 336 | + | file_tunnel_proto_goTypes = nil |
| 337 | + | file_tunnel_proto_depIdxs = nil |
| 338 | + | } |
| 339 | + | |