| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
package tty |
| 10 |
|
| 11 |
import ( |
| 12 |
fown "github.com/checkpoint-restore/go-criu/v7/crit/images/fown" |
| 13 |
_ "github.com/checkpoint-restore/go-criu/v7/crit/images/opts" |
| 14 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 15 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 16 |
reflect "reflect" |
| 17 |
sync "sync" |
| 18 |
) |
| 19 |
|
| 20 |
const ( |
| 21 |
|
| 22 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 23 |
|
| 24 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 25 |
) |
| 26 |
|
| 27 |
type TtyType int32 |
| 28 |
|
| 29 |
const ( |
| 30 |
TtyType_UNKNOWN TtyType = 0 |
| 31 |
TtyType_PTY TtyType = 1 |
| 32 |
TtyType_CONSOLE TtyType = 2 |
| 33 |
TtyType_VT TtyType = 3 |
| 34 |
TtyType_CTTY TtyType = 4 |
| 35 |
TtyType_EXT_TTY TtyType = 5 |
| 36 |
TtyType_SERIAL TtyType = 6 |
| 37 |
) |
| 38 |
|
| 39 |
|
| 40 |
var ( |
| 41 |
TtyType_name = map[int32]string{ |
| 42 |
0: "UNKNOWN", |
| 43 |
1: "PTY", |
| 44 |
2: "CONSOLE", |
| 45 |
3: "VT", |
| 46 |
4: "CTTY", |
| 47 |
5: "EXT_TTY", |
| 48 |
6: "SERIAL", |
| 49 |
} |
| 50 |
TtyType_value = map[string]int32{ |
| 51 |
"UNKNOWN": 0, |
| 52 |
"PTY": 1, |
| 53 |
"CONSOLE": 2, |
| 54 |
"VT": 3, |
| 55 |
"CTTY": 4, |
| 56 |
"EXT_TTY": 5, |
| 57 |
"SERIAL": 6, |
| 58 |
} |
| 59 |
) |
| 60 |
|
| 61 |
func (x TtyType) Enum() *TtyType { |
| 62 |
p := new(TtyType) |
| 63 |
*p = x |
| 64 |
return p |
| 65 |
} |
| 66 |
|
| 67 |
func (x TtyType) String() string { |
| 68 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 69 |
} |
| 70 |
|
| 71 |
func (TtyType) Descriptor() protoreflect.EnumDescriptor { |
| 72 |
return file_tty_proto_enumTypes[0].Descriptor() |
| 73 |
} |
| 74 |
|
| 75 |
func (TtyType) Type() protoreflect.EnumType { |
| 76 |
return &file_tty_proto_enumTypes[0] |
| 77 |
} |
| 78 |
|
| 79 |
func (x TtyType) Number() protoreflect.EnumNumber { |
| 80 |
return protoreflect.EnumNumber(x) |
| 81 |
} |
| 82 |
|
| 83 |
|
| 84 |
func (x *TtyType) UnmarshalJSON(b []byte) error { |
| 85 |
num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) |
| 86 |
if err != nil { |
| 87 |
return err |
| 88 |
} |
| 89 |
*x = TtyType(num) |
| 90 |
return nil |
| 91 |
} |
| 92 |
|
| 93 |
|
| 94 |
func (TtyType) EnumDescriptor() ([]byte, []int) { |
| 95 |
return file_tty_proto_rawDescGZIP(), []int{0} |
| 96 |
} |
| 97 |
|
| 98 |
type WinsizeEntry struct { |
| 99 |
state protoimpl.MessageState |
| 100 |
sizeCache protoimpl.SizeCache |
| 101 |
unknownFields protoimpl.UnknownFields |
| 102 |
|
| 103 |
WsRow *uint32 `protobuf:"varint,1,req,name=ws_row,json=wsRow" json:"ws_row,omitempty"` |
| 104 |
WsCol *uint32 `protobuf:"varint,2,req,name=ws_col,json=wsCol" json:"ws_col,omitempty"` |
| 105 |
WsXpixel *uint32 `protobuf:"varint,3,req,name=ws_xpixel,json=wsXpixel" json:"ws_xpixel,omitempty"` |
| 106 |
WsYpixel *uint32 `protobuf:"varint,4,req,name=ws_ypixel,json=wsYpixel" json:"ws_ypixel,omitempty"` |
| 107 |
} |
| 108 |
|
| 109 |
func (x *WinsizeEntry) Reset() { |
| 110 |
*x = WinsizeEntry{} |
| 111 |
if protoimpl.UnsafeEnabled { |
| 112 |
mi := &file_tty_proto_msgTypes[0] |
| 113 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 114 |
ms.StoreMessageInfo(mi) |
| 115 |
} |
| 116 |
} |
| 117 |
|
| 118 |
func (x *WinsizeEntry) String() string { |
| 119 |
return protoimpl.X.MessageStringOf(x) |
| 120 |
} |
| 121 |
|
| 122 |
func (*WinsizeEntry) ProtoMessage() {} |
| 123 |
|
| 124 |
func (x *WinsizeEntry) ProtoReflect() protoreflect.Message { |
| 125 |
mi := &file_tty_proto_msgTypes[0] |
| 126 |
if protoimpl.UnsafeEnabled && x != nil { |
| 127 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 128 |
if ms.LoadMessageInfo() == nil { |
| 129 |
ms.StoreMessageInfo(mi) |
| 130 |
} |
| 131 |
return ms |
| 132 |
} |
| 133 |
return mi.MessageOf(x) |
| 134 |
} |
| 135 |
|
| 136 |
|
| 137 |
func (*WinsizeEntry) Descriptor() ([]byte, []int) { |
| 138 |
return file_tty_proto_rawDescGZIP(), []int{0} |
| 139 |
} |
| 140 |
|
| 141 |
func (x *WinsizeEntry) GetWsRow() uint32 { |
| 142 |
if x != nil && x.WsRow != nil { |
| 143 |
return *x.WsRow |
| 144 |
} |
| 145 |
return 0 |
| 146 |
} |
| 147 |
|
| 148 |
func (x *WinsizeEntry) GetWsCol() uint32 { |
| 149 |
if x != nil && x.WsCol != nil { |
| 150 |
return *x.WsCol |
| 151 |
} |
| 152 |
return 0 |
| 153 |
} |
| 154 |
|
| 155 |
func (x *WinsizeEntry) GetWsXpixel() uint32 { |
| 156 |
if x != nil && x.WsXpixel != nil { |
| 157 |
return *x.WsXpixel |
| 158 |
} |
| 159 |
return 0 |
| 160 |
} |
| 161 |
|
| 162 |
func (x *WinsizeEntry) GetWsYpixel() uint32 { |
| 163 |
if x != nil && x.WsYpixel != nil { |
| 164 |
return *x.WsYpixel |
| 165 |
} |
| 166 |
return 0 |
| 167 |
} |
| 168 |
|
| 169 |
type TermiosEntry struct { |
| 170 |
state protoimpl.MessageState |
| 171 |
sizeCache protoimpl.SizeCache |
| 172 |
unknownFields protoimpl.UnknownFields |
| 173 |
|
| 174 |
CIflag *uint32 `protobuf:"varint,1,req,name=c_iflag,json=cIflag" json:"c_iflag,omitempty"` |
| 175 |
COflag *uint32 `protobuf:"varint,2,req,name=c_oflag,json=cOflag" json:"c_oflag,omitempty"` |
| 176 |
CCflag *uint32 `protobuf:"varint,3,req,name=c_cflag,json=cCflag" json:"c_cflag,omitempty"` |
| 177 |
CLflag *uint32 `protobuf:"varint,4,req,name=c_lflag,json=cLflag" json:"c_lflag,omitempty"` |
| 178 |
CLine *uint32 `protobuf:"varint,5,req,name=c_line,json=cLine" json:"c_line,omitempty"` |
| 179 |
CIspeed *uint32 `protobuf:"varint,6,req,name=c_ispeed,json=cIspeed" json:"c_ispeed,omitempty"` |
| 180 |
COspeed *uint32 `protobuf:"varint,7,req,name=c_ospeed,json=cOspeed" json:"c_ospeed,omitempty"` |
| 181 |
CCc []uint32 `protobuf:"varint,8,rep,name=c_cc,json=cCc" json:"c_cc,omitempty"` |
| 182 |
} |
| 183 |
|
| 184 |
func (x *TermiosEntry) Reset() { |
| 185 |
*x = TermiosEntry{} |
| 186 |
if protoimpl.UnsafeEnabled { |
| 187 |
mi := &file_tty_proto_msgTypes[1] |
| 188 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 189 |
ms.StoreMessageInfo(mi) |
| 190 |
} |
| 191 |
} |
| 192 |
|
| 193 |
func (x *TermiosEntry) String() string { |
| 194 |
return protoimpl.X.MessageStringOf(x) |
| 195 |
} |
| 196 |
|
| 197 |
func (*TermiosEntry) ProtoMessage() {} |
| 198 |
|
| 199 |
func (x *TermiosEntry) ProtoReflect() protoreflect.Message { |
| 200 |
mi := &file_tty_proto_msgTypes[1] |
| 201 |
if protoimpl.UnsafeEnabled && x != nil { |
| 202 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 203 |
if ms.LoadMessageInfo() == nil { |
| 204 |
ms.StoreMessageInfo(mi) |
| 205 |
} |
| 206 |
return ms |
| 207 |
} |
| 208 |
return mi.MessageOf(x) |
| 209 |
} |
| 210 |
|
| 211 |
|
| 212 |
func (*TermiosEntry) Descriptor() ([]byte, []int) { |
| 213 |
return file_tty_proto_rawDescGZIP(), []int{1} |
| 214 |
} |
| 215 |
|
| 216 |
func (x *TermiosEntry) GetCIflag() uint32 { |
| 217 |
if x != nil && x.CIflag != nil { |
| 218 |
return *x.CIflag |
| 219 |
} |
| 220 |
return 0 |
| 221 |
} |
| 222 |
|
| 223 |
func (x *TermiosEntry) GetCOflag() uint32 { |
| 224 |
if x != nil && x.COflag != nil { |
| 225 |
return *x.COflag |
| 226 |
} |
| 227 |
return 0 |
| 228 |
} |
| 229 |
|
| 230 |
func (x *TermiosEntry) GetCCflag() uint32 { |
| 231 |
if x != nil && x.CCflag != nil { |
| 232 |
return *x.CCflag |
| 233 |
} |
| 234 |
return 0 |
| 235 |
} |
| 236 |
|
| 237 |
func (x *TermiosEntry) GetCLflag() uint32 { |
| 238 |
if x != nil && x.CLflag != nil { |
| 239 |
return *x.CLflag |
| 240 |
} |
| 241 |
return 0 |
| 242 |
} |
| 243 |
|
| 244 |
func (x *TermiosEntry) GetCLine() uint32 { |
| 245 |
if x != nil && x.CLine != nil { |
| 246 |
return *x.CLine |
| 247 |
} |
| 248 |
return 0 |
| 249 |
} |
| 250 |
|
| 251 |
func (x *TermiosEntry) GetCIspeed() uint32 { |
| 252 |
if x != nil && x.CIspeed != nil { |
| 253 |
return *x.CIspeed |
| 254 |
} |
| 255 |
return 0 |
| 256 |
} |
| 257 |
|
| 258 |
func (x *TermiosEntry) GetCOspeed() uint32 { |
| 259 |
if x != nil && x.COspeed != nil { |
| 260 |
return *x.COspeed |
| 261 |
} |
| 262 |
return 0 |
| 263 |
} |
| 264 |
|
| 265 |
func (x *TermiosEntry) GetCCc() []uint32 { |
| 266 |
if x != nil { |
| 267 |
return x.CCc |
| 268 |
} |
| 269 |
return nil |
| 270 |
} |
| 271 |
|
| 272 |
type TtyPtyEntry struct { |
| 273 |
state protoimpl.MessageState |
| 274 |
sizeCache protoimpl.SizeCache |
| 275 |
unknownFields protoimpl.UnknownFields |
| 276 |
|
| 277 |
Index *uint32 `protobuf:"varint,1,req,name=index" json:"index,omitempty"` |
| 278 |
} |
| 279 |
|
| 280 |
func (x *TtyPtyEntry) Reset() { |
| 281 |
*x = TtyPtyEntry{} |
| 282 |
if protoimpl.UnsafeEnabled { |
| 283 |
mi := &file_tty_proto_msgTypes[2] |
| 284 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 285 |
ms.StoreMessageInfo(mi) |
| 286 |
} |
| 287 |
} |
| 288 |
|
| 289 |
func (x *TtyPtyEntry) String() string { |
| 290 |
return protoimpl.X.MessageStringOf(x) |
| 291 |
} |
| 292 |
|
| 293 |
func (*TtyPtyEntry) ProtoMessage() {} |
| 294 |
|
| 295 |
func (x *TtyPtyEntry) ProtoReflect() protoreflect.Message { |
| 296 |
mi := &file_tty_proto_msgTypes[2] |
| 297 |
if protoimpl.UnsafeEnabled && x != nil { |
| 298 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 299 |
if ms.LoadMessageInfo() == nil { |
| 300 |
ms.StoreMessageInfo(mi) |
| 301 |
} |
| 302 |
return ms |
| 303 |
} |
| 304 |
return mi.MessageOf(x) |
| 305 |
} |
| 306 |
|
| 307 |
|
| 308 |
func (*TtyPtyEntry) Descriptor() ([]byte, []int) { |
| 309 |
return file_tty_proto_rawDescGZIP(), []int{2} |
| 310 |
} |
| 311 |
|
| 312 |
func (x *TtyPtyEntry) GetIndex() uint32 { |
| 313 |
if x != nil && x.Index != nil { |
| 314 |
return *x.Index |
| 315 |
} |
| 316 |
return 0 |
| 317 |
} |
| 318 |
|
| 319 |
type TtyDataEntry struct { |
| 320 |
state protoimpl.MessageState |
| 321 |
sizeCache protoimpl.SizeCache |
| 322 |
unknownFields protoimpl.UnknownFields |
| 323 |
|
| 324 |
TtyId *uint32 `protobuf:"varint,1,req,name=tty_id,json=ttyId" json:"tty_id,omitempty"` |
| 325 |
Data []byte `protobuf:"bytes,2,req,name=data" json:"data,omitempty"` |
| 326 |
} |
| 327 |
|
| 328 |
func (x *TtyDataEntry) Reset() { |
| 329 |
*x = TtyDataEntry{} |
| 330 |
if protoimpl.UnsafeEnabled { |
| 331 |
mi := &file_tty_proto_msgTypes[3] |
| 332 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 333 |
ms.StoreMessageInfo(mi) |
| 334 |
} |
| 335 |
} |
| 336 |
|
| 337 |
func (x *TtyDataEntry) String() string { |
| 338 |
return protoimpl.X.MessageStringOf(x) |
| 339 |
} |
| 340 |
|
| 341 |
func (*TtyDataEntry) ProtoMessage() {} |
| 342 |
|
| 343 |
func (x *TtyDataEntry) ProtoReflect() protoreflect.Message { |
| 344 |
mi := &file_tty_proto_msgTypes[3] |
| 345 |
if protoimpl.UnsafeEnabled && x != nil { |
| 346 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 347 |
if ms.LoadMessageInfo() == nil { |
| 348 |
ms.StoreMessageInfo(mi) |
| 349 |
} |
| 350 |
return ms |
| 351 |
} |
| 352 |
return mi.MessageOf(x) |
| 353 |
} |
| 354 |
|
| 355 |
|
| 356 |
func (*TtyDataEntry) Descriptor() ([]byte, []int) { |
| 357 |
return file_tty_proto_rawDescGZIP(), []int{3} |
| 358 |
} |
| 359 |
|
| 360 |
func (x *TtyDataEntry) GetTtyId() uint32 { |
| 361 |
if x != nil && x.TtyId != nil { |
| 362 |
return *x.TtyId |
| 363 |
} |
| 364 |
return 0 |
| 365 |
} |
| 366 |
|
| 367 |
func (x *TtyDataEntry) GetData() []byte { |
| 368 |
if x != nil { |
| 369 |
return x.Data |
| 370 |
} |
| 371 |
return nil |
| 372 |
} |
| 373 |
|
| 374 |
type TtyInfoEntry struct { |
| 375 |
state protoimpl.MessageState |
| 376 |
sizeCache protoimpl.SizeCache |
| 377 |
unknownFields protoimpl.UnknownFields |
| 378 |
|
| 379 |
Id *uint32 `protobuf:"varint,1,req,name=id" json:"id,omitempty"` |
| 380 |
Type *TtyType `protobuf:"varint,2,req,name=type,enum=TtyType" json:"type,omitempty"` |
| 381 |
Locked *bool `protobuf:"varint,3,req,name=locked" json:"locked,omitempty"` |
| 382 |
Exclusive *bool `protobuf:"varint,4,req,name=exclusive" json:"exclusive,omitempty"` |
| 383 |
PacketMode *bool `protobuf:"varint,5,req,name=packet_mode,json=packetMode" json:"packet_mode,omitempty"` |
| 384 |
Sid *uint32 `protobuf:"varint,6,req,name=sid" json:"sid,omitempty"` |
| 385 |
Pgrp *uint32 `protobuf:"varint,7,req,name=pgrp" json:"pgrp,omitempty"` |
| 386 |
|
| 387 |
|
| 388 |
|
| 389 |
Rdev *uint32 `protobuf:"varint,8,req,name=rdev" json:"rdev,omitempty"` |
| 390 |
Termios *TermiosEntry `protobuf:"bytes,9,opt,name=termios" json:"termios,omitempty"` |
| 391 |
TermiosLocked *TermiosEntry `protobuf:"bytes,10,opt,name=termios_locked,json=termiosLocked" json:"termios_locked,omitempty"` |
| 392 |
Winsize *WinsizeEntry `protobuf:"bytes,11,opt,name=winsize" json:"winsize,omitempty"` |
| 393 |
|
| 394 |
|
| 395 |
Pty *TtyPtyEntry `protobuf:"bytes,12,opt,name=pty" json:"pty,omitempty"` |
| 396 |
Dev *uint32 `protobuf:"varint,13,opt,name=dev" json:"dev,omitempty"` |
| 397 |
Uid *uint32 `protobuf:"varint,14,opt,name=uid" json:"uid,omitempty"` |
| 398 |
Gid *uint32 `protobuf:"varint,15,opt,name=gid" json:"gid,omitempty"` |
| 399 |
} |
| 400 |
|
| 401 |
func (x *TtyInfoEntry) Reset() { |
| 402 |
*x = TtyInfoEntry{} |
| 403 |
if protoimpl.UnsafeEnabled { |
| 404 |
mi := &file_tty_proto_msgTypes[4] |
| 405 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 406 |
ms.StoreMessageInfo(mi) |
| 407 |
} |
| 408 |
} |
| 409 |
|
| 410 |
func (x *TtyInfoEntry) String() string { |
| 411 |
return protoimpl.X.MessageStringOf(x) |
| 412 |
} |
| 413 |
|
| 414 |
func (*TtyInfoEntry) ProtoMessage() {} |
| 415 |
|
| 416 |
func (x *TtyInfoEntry) ProtoReflect() protoreflect.Message { |
| 417 |
mi := &file_tty_proto_msgTypes[4] |
| 418 |
if protoimpl.UnsafeEnabled && x != nil { |
| 419 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 420 |
if ms.LoadMessageInfo() == nil { |
| 421 |
ms.StoreMessageInfo(mi) |
| 422 |
} |
| 423 |
return ms |
| 424 |
} |
| 425 |
return mi.MessageOf(x) |
| 426 |
} |
| 427 |
|
| 428 |
|
| 429 |
func (*TtyInfoEntry) Descriptor() ([]byte, []int) { |
| 430 |
return file_tty_proto_rawDescGZIP(), []int{4} |
| 431 |
} |
| 432 |
|
| 433 |
func (x *TtyInfoEntry) GetId() uint32 { |
| 434 |
if x != nil && x.Id != nil { |
| 435 |
return *x.Id |
| 436 |
} |
| 437 |
return 0 |
| 438 |
} |
| 439 |
|
| 440 |
func (x *TtyInfoEntry) GetType() TtyType { |
| 441 |
if x != nil && x.Type != nil { |
| 442 |
return *x.Type |
| 443 |
} |
| 444 |
return TtyType_UNKNOWN |
| 445 |
} |
| 446 |
|
| 447 |
func (x *TtyInfoEntry) GetLocked() bool { |
| 448 |
if x != nil && x.Locked != nil { |
| 449 |
return *x.Locked |
| 450 |
} |
| 451 |
return false |
| 452 |
} |
| 453 |
|
| 454 |
func (x *TtyInfoEntry) GetExclusive() bool { |
| 455 |
if x != nil && x.Exclusive != nil { |
| 456 |
return *x.Exclusive |
| 457 |
} |
| 458 |
return false |
| 459 |
} |
| 460 |
|
| 461 |
func (x *TtyInfoEntry) GetPacketMode() bool { |
| 462 |
if x != nil && x.PacketMode != nil { |
| 463 |
return *x.PacketMode |
| 464 |
} |
| 465 |
return false |
| 466 |
} |
| 467 |
|
| 468 |
func (x *TtyInfoEntry) GetSid() uint32 { |
| 469 |
if x != nil && x.Sid != nil { |
| 470 |
return *x.Sid |
| 471 |
} |
| 472 |
return 0 |
| 473 |
} |
| 474 |
|
| 475 |
func (x *TtyInfoEntry) GetPgrp() uint32 { |
| 476 |
if x != nil && x.Pgrp != nil { |
| 477 |
return *x.Pgrp |
| 478 |
} |
| 479 |
return 0 |
| 480 |
} |
| 481 |
|
| 482 |
func (x *TtyInfoEntry) GetRdev() uint32 { |
| 483 |
if x != nil && x.Rdev != nil { |
| 484 |
return *x.Rdev |
| 485 |
} |
| 486 |
return 0 |
| 487 |
} |
| 488 |
|
| 489 |
func (x *TtyInfoEntry) GetTermios() *TermiosEntry { |
| 490 |
if x != nil { |
| 491 |
return x.Termios |
| 492 |
} |
| 493 |
return nil |
| 494 |
} |
| 495 |
|
| 496 |
func (x *TtyInfoEntry) GetTermiosLocked() *TermiosEntry { |
| 497 |
if x != nil { |
| 498 |
return x.TermiosLocked |
| 499 |
} |
| 500 |
return nil |
| 501 |
} |
| 502 |
|
| 503 |
func (x *TtyInfoEntry) GetWinsize() *WinsizeEntry { |
| 504 |
if x != nil { |
| 505 |
return x.Winsize |
| 506 |
} |
| 507 |
return nil |
| 508 |
} |
| 509 |
|
| 510 |
func (x *TtyInfoEntry) GetPty() *TtyPtyEntry { |
| 511 |
if x != nil { |
| 512 |
return x.Pty |
| 513 |
} |
| 514 |
return nil |
| 515 |
} |
| 516 |
|
| 517 |
func (x *TtyInfoEntry) GetDev() uint32 { |
| 518 |
if x != nil && x.Dev != nil { |
| 519 |
return *x.Dev |
| 520 |
} |
| 521 |
return 0 |
| 522 |
} |
| 523 |
|
| 524 |
func (x *TtyInfoEntry) GetUid() uint32 { |
| 525 |
if x != nil && x.Uid != nil { |
| 526 |
return *x.Uid |
| 527 |
} |
| 528 |
return 0 |
| 529 |
} |
| 530 |
|
| 531 |
func (x *TtyInfoEntry) GetGid() uint32 { |
| 532 |
if x != nil && x.Gid != nil { |
| 533 |
return *x.Gid |
| 534 |
} |
| 535 |
return 0 |
| 536 |
} |
| 537 |
|
| 538 |
type TtyFileEntry struct { |
| 539 |
state protoimpl.MessageState |
| 540 |
sizeCache protoimpl.SizeCache |
| 541 |
unknownFields protoimpl.UnknownFields |
| 542 |
|
| 543 |
Id *uint32 `protobuf:"varint,1,req,name=id" json:"id,omitempty"` |
| 544 |
TtyInfoId *uint32 `protobuf:"varint,2,req,name=tty_info_id,json=ttyInfoId" json:"tty_info_id,omitempty"` |
| 545 |
Flags *uint32 `protobuf:"varint,3,req,name=flags" json:"flags,omitempty"` |
| 546 |
Fown *fown.FownEntry `protobuf:"bytes,4,req,name=fown" json:"fown,omitempty"` |
| 547 |
|
| 548 |
RegfId *uint32 `protobuf:"varint,6,opt,name=regf_id,json=regfId" json:"regf_id,omitempty"` |
| 549 |
} |
| 550 |
|
| 551 |
func (x *TtyFileEntry) Reset() { |
| 552 |
*x = TtyFileEntry{} |
| 553 |
if protoimpl.UnsafeEnabled { |
| 554 |
mi := &file_tty_proto_msgTypes[5] |
| 555 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 556 |
ms.StoreMessageInfo(mi) |
| 557 |
} |
| 558 |
} |
| 559 |
|
| 560 |
func (x *TtyFileEntry) String() string { |
| 561 |
return protoimpl.X.MessageStringOf(x) |
| 562 |
} |
| 563 |
|
| 564 |
func (*TtyFileEntry) ProtoMessage() {} |
| 565 |
|
| 566 |
func (x *TtyFileEntry) ProtoReflect() protoreflect.Message { |
| 567 |
mi := &file_tty_proto_msgTypes[5] |
| 568 |
if protoimpl.UnsafeEnabled && x != nil { |
| 569 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 570 |
if ms.LoadMessageInfo() == nil { |
| 571 |
ms.StoreMessageInfo(mi) |
| 572 |
} |
| 573 |
return ms |
| 574 |
} |
| 575 |
return mi.MessageOf(x) |
| 576 |
} |
| 577 |
|
| 578 |
|
| 579 |
func (*TtyFileEntry) Descriptor() ([]byte, []int) { |
| 580 |
return file_tty_proto_rawDescGZIP(), []int{5} |
| 581 |
} |
| 582 |
|
| 583 |
func (x *TtyFileEntry) GetId() uint32 { |
| 584 |
if x != nil && x.Id != nil { |
| 585 |
return *x.Id |
| 586 |
} |
| 587 |
return 0 |
| 588 |
} |
| 589 |
|
| 590 |
func (x *TtyFileEntry) GetTtyInfoId() uint32 { |
| 591 |
if x != nil && x.TtyInfoId != nil { |
| 592 |
return *x.TtyInfoId |
| 593 |
} |
| 594 |
return 0 |
| 595 |
} |
| 596 |
|
| 597 |
func (x *TtyFileEntry) GetFlags() uint32 { |
| 598 |
if x != nil && x.Flags != nil { |
| 599 |
return *x.Flags |
| 600 |
} |
| 601 |
return 0 |
| 602 |
} |
| 603 |
|
| 604 |
func (x *TtyFileEntry) GetFown() *fown.FownEntry { |
| 605 |
if x != nil { |
| 606 |
return x.Fown |
| 607 |
} |
| 608 |
return nil |
| 609 |
} |
| 610 |
|
| 611 |
func (x *TtyFileEntry) GetRegfId() uint32 { |
| 612 |
if x != nil && x.RegfId != nil { |
| 613 |
return *x.RegfId |
| 614 |
} |
| 615 |
return 0 |
| 616 |
} |
| 617 |
|
| 618 |
var File_tty_proto protoreflect.FileDescriptor |
| 619 |
|
| 620 |
var file_tty_proto_rawDesc = []byte{ |
| 621 |
0x0a, 0x09, 0x74, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0a, 0x6f, 0x70, 0x74, |
| 622 |
0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0a, 0x66, 0x6f, 0x77, 0x6e, 0x2e, 0x70, 0x72, |
| 623 |
0x6f, 0x74, 0x6f, 0x22, 0x77, 0x0a, 0x0d, 0x77, 0x69, 0x6e, 0x73, 0x69, 0x7a, 0x65, 0x5f, 0x65, |
| 624 |
0x6e, 0x74, 0x72, 0x79, 0x12, 0x15, 0x0a, 0x06, 0x77, 0x73, 0x5f, 0x72, 0x6f, 0x77, 0x18, 0x01, |
| 625 |
0x20, 0x02, 0x28, 0x0d, 0x52, 0x05, 0x77, 0x73, 0x52, 0x6f, 0x77, 0x12, 0x15, 0x0a, 0x06, 0x77, |
| 626 |
0x73, 0x5f, 0x63, 0x6f, 0x6c, 0x18, 0x02, 0x20, 0x02, 0x28, 0x0d, 0x52, 0x05, 0x77, 0x73, 0x43, |
| 627 |
0x6f, 0x6c, 0x12, 0x1b, 0x0a, 0x09, 0x77, 0x73, 0x5f, 0x78, 0x70, 0x69, 0x78, 0x65, 0x6c, 0x18, |
| 628 |
0x03, 0x20, 0x02, 0x28, 0x0d, 0x52, 0x08, 0x77, 0x73, 0x58, 0x70, 0x69, 0x78, 0x65, 0x6c, 0x12, |
| 629 |
0x1b, 0x0a, 0x09, 0x77, 0x73, 0x5f, 0x79, 0x70, 0x69, 0x78, 0x65, 0x6c, 0x18, 0x04, 0x20, 0x02, |
| 630 |
0x28, 0x0d, 0x52, 0x08, 0x77, 0x73, 0x59, 0x70, 0x69, 0x78, 0x65, 0x6c, 0x22, 0xd3, 0x01, 0x0a, |
| 631 |
0x0d, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6f, 0x73, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x17, |
| 632 |
0x0a, 0x07, 0x63, 0x5f, 0x69, 0x66, 0x6c, 0x61, 0x67, 0x18, 0x01, 0x20, 0x02, 0x28, 0x0d, 0x52, |
| 633 |
0x06, 0x63, 0x49, 0x66, 0x6c, 0x61, 0x67, 0x12, 0x17, 0x0a, 0x07, 0x63, 0x5f, 0x6f, 0x66, 0x6c, |
| 634 |
0x61, 0x67, 0x18, 0x02, 0x20, 0x02, 0x28, 0x0d, 0x52, 0x06, 0x63, 0x4f, 0x66, 0x6c, 0x61, 0x67, |
| 635 |
0x12, 0x17, 0x0a, 0x07, 0x63, 0x5f, 0x63, 0x66, 0x6c, 0x61, 0x67, 0x18, 0x03, 0x20, 0x02, 0x28, |
| 636 |
0x0d, 0x52, 0x06, 0x63, 0x43, 0x66, 0x6c, 0x61, 0x67, 0x12, 0x17, 0x0a, 0x07, 0x63, 0x5f, 0x6c, |
| 637 |
0x66, 0x6c, 0x61, 0x67, 0x18, 0x04, 0x20, 0x02, 0x28, 0x0d, 0x52, 0x06, 0x63, 0x4c, 0x66, 0x6c, |
| 638 |
0x61, 0x67, 0x12, 0x15, 0x0a, 0x06, 0x63, 0x5f, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x05, 0x20, 0x02, |
| 639 |
0x28, 0x0d, 0x52, 0x05, 0x63, 0x4c, 0x69, 0x6e, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x5f, 0x69, |
| 640 |
0x73, 0x70, 0x65, 0x65, 0x64, 0x18, 0x06, 0x20, 0x02, 0x28, 0x0d, 0x52, 0x07, 0x63, 0x49, 0x73, |
| 641 |
0x70, 0x65, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x5f, 0x6f, 0x73, 0x70, 0x65, 0x65, 0x64, |
| 642 |
0x18, 0x07, 0x20, 0x02, 0x28, 0x0d, 0x52, 0x07, 0x63, 0x4f, 0x73, 0x70, 0x65, 0x65, 0x64, 0x12, |
| 643 |
0x11, 0x0a, 0x04, 0x63, 0x5f, 0x63, 0x63, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x03, 0x63, |
| 644 |
0x43, 0x63, 0x22, 0x25, 0x0a, 0x0d, 0x74, 0x74, 0x79, 0x5f, 0x70, 0x74, 0x79, 0x5f, 0x65, 0x6e, |
| 645 |
0x74, 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 0x02, |
| 646 |
0x28, 0x0d, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x22, 0x3b, 0x0a, 0x0e, 0x74, 0x74, 0x79, |
| 647 |
0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x15, 0x0a, 0x06, 0x74, |
| 648 |
0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x02, 0x28, 0x0d, 0x52, 0x05, 0x74, 0x74, 0x79, |
| 649 |
0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x02, 0x28, 0x0c, |
| 650 |
0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0xb2, 0x03, 0x0a, 0x0e, 0x74, 0x74, 0x79, 0x5f, 0x69, |
| 651 |
0x6e, 0x66, 0x6f, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, |
| 652 |
0x01, 0x20, 0x02, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1c, 0x0a, 0x04, 0x74, 0x79, 0x70, |
| 653 |
0x65, 0x18, 0x02, 0x20, 0x02, 0x28, 0x0e, 0x32, 0x08, 0x2e, 0x54, 0x74, 0x79, 0x54, 0x79, 0x70, |
| 654 |
0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6c, 0x6f, 0x63, 0x6b, 0x65, |
| 655 |
0x64, 0x18, 0x03, 0x20, 0x02, 0x28, 0x08, 0x52, 0x06, 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x12, |
| 656 |
0x1c, 0x0a, 0x09, 0x65, 0x78, 0x63, 0x6c, 0x75, 0x73, 0x69, 0x76, 0x65, 0x18, 0x04, 0x20, 0x02, |
| 657 |
0x28, 0x08, 0x52, 0x09, 0x65, 0x78, 0x63, 0x6c, 0x75, 0x73, 0x69, 0x76, 0x65, 0x12, 0x1f, 0x0a, |
| 658 |
0x0b, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x05, 0x20, 0x02, |
| 659 |
0x28, 0x08, 0x52, 0x0a, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x10, |
| 660 |
0x0a, 0x03, 0x73, 0x69, 0x64, 0x18, 0x06, 0x20, 0x02, 0x28, 0x0d, 0x52, 0x03, 0x73, 0x69, 0x64, |
| 661 |
0x12, 0x12, 0x0a, 0x04, 0x70, 0x67, 0x72, 0x70, 0x18, 0x07, 0x20, 0x02, 0x28, 0x0d, 0x52, 0x04, |
| 662 |
0x70, 0x67, 0x72, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x64, 0x65, 0x76, 0x18, 0x08, 0x20, 0x02, |
| 663 |
0x28, 0x0d, 0x52, 0x04, 0x72, 0x64, 0x65, 0x76, 0x12, 0x28, 0x0a, 0x07, 0x74, 0x65, 0x72, 0x6d, |
| 664 |
0x69, 0x6f, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x74, 0x65, 0x72, 0x6d, |
| 665 |
0x69, 0x6f, 0x73, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x74, 0x65, 0x72, 0x6d, 0x69, |
| 666 |
0x6f, 0x73, 0x12, 0x35, 0x0a, 0x0e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6f, 0x73, 0x5f, 0x6c, 0x6f, |
| 667 |
0x63, 0x6b, 0x65, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x74, 0x65, 0x72, |
| 668 |
0x6d, 0x69, 0x6f, 0x73, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0d, 0x74, 0x65, 0x72, 0x6d, |
| 669 |
0x69, 0x6f, 0x73, 0x4c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x12, 0x28, 0x0a, 0x07, 0x77, 0x69, 0x6e, |
| 670 |
0x73, 0x69, 0x7a, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x77, 0x69, 0x6e, |
| 671 |
0x73, 0x69, 0x7a, 0x65, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x77, 0x69, 0x6e, 0x73, |
| 672 |
0x69, 0x7a, 0x65, 0x12, 0x20, 0x0a, 0x03, 0x70, 0x74, 0x79, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, |
| 673 |
0x32, 0x0e, 0x2e, 0x74, 0x74, 0x79, 0x5f, 0x70, 0x74, 0x79, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, |
| 674 |
0x52, 0x03, 0x70, 0x74, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x65, 0x76, 0x18, 0x0d, 0x20, 0x01, |
| 675 |
0x28, 0x0d, 0x52, 0x03, 0x64, 0x65, 0x76, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x0e, |
| 676 |
0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x67, 0x69, 0x64, |
| 677 |
0x18, 0x0f, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x67, 0x69, 0x64, 0x22, 0x97, 0x01, 0x0a, 0x0e, |
| 678 |
0x74, 0x74, 0x79, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x0e, |
| 679 |
0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x02, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1e, |
| 680 |
0x0a, 0x0b, 0x74, 0x74, 0x79, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, |
| 681 |
0x02, 0x28, 0x0d, 0x52, 0x09, 0x74, 0x74, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x49, 0x64, 0x12, 0x1b, |
| 682 |
0x0a, 0x05, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x18, 0x03, 0x20, 0x02, 0x28, 0x0d, 0x42, 0x05, 0xd2, |
| 683 |
0x3f, 0x02, 0x08, 0x01, 0x52, 0x05, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x12, 0x1f, 0x0a, 0x04, 0x66, |
| 684 |
0x6f, 0x77, 0x6e, 0x18, 0x04, 0x20, 0x02, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x66, 0x6f, 0x77, 0x6e, |
| 685 |
0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x66, 0x6f, 0x77, 0x6e, 0x12, 0x17, 0x0a, 0x07, |
| 686 |
0x72, 0x65, 0x67, 0x66, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x72, |
| 687 |
0x65, 0x67, 0x66, 0x49, 0x64, 0x2a, 0x57, 0x0a, 0x07, 0x54, 0x74, 0x79, 0x54, 0x79, 0x70, 0x65, |
| 688 |
0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x07, 0x0a, |
| 689 |
0x03, 0x50, 0x54, 0x59, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x4f, 0x4e, 0x53, 0x4f, 0x4c, |
| 690 |
0x45, 0x10, 0x02, 0x12, 0x06, 0x0a, 0x02, 0x56, 0x54, 0x10, 0x03, 0x12, 0x08, 0x0a, 0x04, 0x43, |
| 691 |
0x54, 0x54, 0x59, 0x10, 0x04, 0x12, 0x0b, 0x0a, 0x07, 0x45, 0x58, 0x54, 0x5f, 0x54, 0x54, 0x59, |
| 692 |
0x10, 0x05, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x45, 0x52, 0x49, 0x41, 0x4c, 0x10, 0x06, |
| 693 |
} |
| 694 |
|
| 695 |
var ( |
| 696 |
file_tty_proto_rawDescOnce sync.Once |
| 697 |
file_tty_proto_rawDescData = file_tty_proto_rawDesc |
| 698 |
) |
| 699 |
|
| 700 |
func file_tty_proto_rawDescGZIP() []byte { |
| 701 |
file_tty_proto_rawDescOnce.Do(func() { |
| 702 |
file_tty_proto_rawDescData = protoimpl.X.CompressGZIP(file_tty_proto_rawDescData) |
| 703 |
}) |
| 704 |
return file_tty_proto_rawDescData |
| 705 |
} |
| 706 |
|
| 707 |
var file_tty_proto_enumTypes = make([]protoimpl.EnumInfo, 1) |
| 708 |
var file_tty_proto_msgTypes = make([]protoimpl.MessageInfo, 6) |
| 709 |
var file_tty_proto_goTypes = []interface{}{ |
| 710 |
(TtyType)(0), |
| 711 |
(*WinsizeEntry)(nil), |
| 712 |
(*TermiosEntry)(nil), |
| 713 |
(*TtyPtyEntry)(nil), |
| 714 |
(*TtyDataEntry)(nil), |
| 715 |
(*TtyInfoEntry)(nil), |
| 716 |
(*TtyFileEntry)(nil), |
| 717 |
(*fown.FownEntry)(nil), |
| 718 |
} |
| 719 |
var file_tty_proto_depIdxs = []int32{ |
| 720 |
0, |
| 721 |
2, |
| 722 |
2, |
| 723 |
1, |
| 724 |
3, |
| 725 |
7, |
| 726 |
6, |
| 727 |
6, |
| 728 |
6, |
| 729 |
6, |
| 730 |
0, |
| 731 |
} |
| 732 |
|
| 733 |
func init() { file_tty_proto_init() } |
| 734 |
func file_tty_proto_init() { |
| 735 |
if File_tty_proto != nil { |
| 736 |
return |
| 737 |
} |
| 738 |
if !protoimpl.UnsafeEnabled { |
| 739 |
file_tty_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| 740 |
switch v := v.(*WinsizeEntry); i { |
| 741 |
case 0: |
| 742 |
return &v.state |
| 743 |
case 1: |
| 744 |
return &v.sizeCache |
| 745 |
case 2: |
| 746 |
return &v.unknownFields |
| 747 |
default: |
| 748 |
return nil |
| 749 |
} |
| 750 |
} |
| 751 |
file_tty_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { |
| 752 |
switch v := v.(*TermiosEntry); i { |
| 753 |
case 0: |
| 754 |
return &v.state |
| 755 |
case 1: |
| 756 |
return &v.sizeCache |
| 757 |
case 2: |
| 758 |
return &v.unknownFields |
| 759 |
default: |
| 760 |
return nil |
| 761 |
} |
| 762 |
} |
| 763 |
file_tty_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { |
| 764 |
switch v := v.(*TtyPtyEntry); i { |
| 765 |
case 0: |
| 766 |
return &v.state |
| 767 |
case 1: |
| 768 |
return &v.sizeCache |
| 769 |
case 2: |
| 770 |
return &v.unknownFields |
| 771 |
default: |
| 772 |
return nil |
| 773 |
} |
| 774 |
} |
| 775 |
file_tty_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { |
| 776 |
switch v := v.(*TtyDataEntry); i { |
| 777 |
case 0: |
| 778 |
return &v.state |
| 779 |
case 1: |
| 780 |
return &v.sizeCache |
| 781 |
case 2: |
| 782 |
return &v.unknownFields |
| 783 |
default: |
| 784 |
return nil |
| 785 |
} |
| 786 |
} |
| 787 |
file_tty_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { |
| 788 |
switch v := v.(*TtyInfoEntry); i { |
| 789 |
case 0: |
| 790 |
return &v.state |
| 791 |
case 1: |
| 792 |
return &v.sizeCache |
| 793 |
case 2: |
| 794 |
return &v.unknownFields |
| 795 |
default: |
| 796 |
return nil |
| 797 |
} |
| 798 |
} |
| 799 |
file_tty_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { |
| 800 |
switch v := v.(*TtyFileEntry); i { |
| 801 |
case 0: |
| 802 |
return &v.state |
| 803 |
case 1: |
| 804 |
return &v.sizeCache |
| 805 |
case 2: |
| 806 |
return &v.unknownFields |
| 807 |
default: |
| 808 |
return nil |
| 809 |
} |
| 810 |
} |
| 811 |
} |
| 812 |
type x struct{} |
| 813 |
out := protoimpl.TypeBuilder{ |
| 814 |
File: protoimpl.DescBuilder{ |
| 815 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 816 |
RawDescriptor: file_tty_proto_rawDesc, |
| 817 |
NumEnums: 1, |
| 818 |
NumMessages: 6, |
| 819 |
NumExtensions: 0, |
| 820 |
NumServices: 0, |
| 821 |
}, |
| 822 |
GoTypes: file_tty_proto_goTypes, |
| 823 |
DependencyIndexes: file_tty_proto_depIdxs, |
| 824 |
EnumInfos: file_tty_proto_enumTypes, |
| 825 |
MessageInfos: file_tty_proto_msgTypes, |
| 826 |
}.Build() |
| 827 |
File_tty_proto = out.File |
| 828 |
file_tty_proto_rawDesc = nil |
| 829 |
file_tty_proto_goTypes = nil |
| 830 |
file_tty_proto_depIdxs = nil |
| 831 |
} |