github.com/ericwq/aprilsh@v0.0.0-20240517091432-958bc568daa0/protobufs/host/hostInput.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.31.0 4 // protoc v4.24.4 5 // source: protobufs/hostInput.proto 6 7 package host 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 HostMessage struct { 24 state protoimpl.MessageState 25 sizeCache protoimpl.SizeCache 26 unknownFields protoimpl.UnknownFields 27 28 Instruction []*Instruction `protobuf:"bytes,1,rep,name=instruction,proto3" json:"instruction,omitempty"` 29 } 30 31 func (x *HostMessage) Reset() { 32 *x = HostMessage{} 33 if protoimpl.UnsafeEnabled { 34 mi := &file_protobufs_hostInput_proto_msgTypes[0] 35 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 36 ms.StoreMessageInfo(mi) 37 } 38 } 39 40 func (x *HostMessage) String() string { 41 return protoimpl.X.MessageStringOf(x) 42 } 43 44 func (*HostMessage) ProtoMessage() {} 45 46 func (x *HostMessage) ProtoReflect() protoreflect.Message { 47 mi := &file_protobufs_hostInput_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 HostMessage.ProtoReflect.Descriptor instead. 59 func (*HostMessage) Descriptor() ([]byte, []int) { 60 return file_protobufs_hostInput_proto_rawDescGZIP(), []int{0} 61 } 62 63 func (x *HostMessage) GetInstruction() []*Instruction { 64 if x != nil { 65 return x.Instruction 66 } 67 return nil 68 } 69 70 type Instruction struct { 71 state protoimpl.MessageState 72 sizeCache protoimpl.SizeCache 73 unknownFields protoimpl.UnknownFields 74 75 Hostbytes *HostBytes `protobuf:"bytes,2,opt,name=hostbytes,proto3,oneof" json:"hostbytes,omitempty"` 76 Resize *ResizeMessage `protobuf:"bytes,3,opt,name=resize,proto3,oneof" json:"resize,omitempty"` 77 Echoack *EchoAck `protobuf:"bytes,7,opt,name=echoack,proto3,oneof" json:"echoack,omitempty"` // extensions 2 to max; 78 } 79 80 func (x *Instruction) Reset() { 81 *x = Instruction{} 82 if protoimpl.UnsafeEnabled { 83 mi := &file_protobufs_hostInput_proto_msgTypes[1] 84 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 85 ms.StoreMessageInfo(mi) 86 } 87 } 88 89 func (x *Instruction) String() string { 90 return protoimpl.X.MessageStringOf(x) 91 } 92 93 func (*Instruction) ProtoMessage() {} 94 95 func (x *Instruction) ProtoReflect() protoreflect.Message { 96 mi := &file_protobufs_hostInput_proto_msgTypes[1] 97 if protoimpl.UnsafeEnabled && x != nil { 98 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 99 if ms.LoadMessageInfo() == nil { 100 ms.StoreMessageInfo(mi) 101 } 102 return ms 103 } 104 return mi.MessageOf(x) 105 } 106 107 // Deprecated: Use Instruction.ProtoReflect.Descriptor instead. 108 func (*Instruction) Descriptor() ([]byte, []int) { 109 return file_protobufs_hostInput_proto_rawDescGZIP(), []int{1} 110 } 111 112 func (x *Instruction) GetHostbytes() *HostBytes { 113 if x != nil { 114 return x.Hostbytes 115 } 116 return nil 117 } 118 119 func (x *Instruction) GetResize() *ResizeMessage { 120 if x != nil { 121 return x.Resize 122 } 123 return nil 124 } 125 126 func (x *Instruction) GetEchoack() *EchoAck { 127 if x != nil { 128 return x.Echoack 129 } 130 return nil 131 } 132 133 type HostBytes struct { 134 state protoimpl.MessageState 135 sizeCache protoimpl.SizeCache 136 unknownFields protoimpl.UnknownFields 137 138 Hoststring []byte `protobuf:"bytes,4,opt,name=hoststring,proto3,oneof" json:"hoststring,omitempty"` 139 } 140 141 func (x *HostBytes) Reset() { 142 *x = HostBytes{} 143 if protoimpl.UnsafeEnabled { 144 mi := &file_protobufs_hostInput_proto_msgTypes[2] 145 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 146 ms.StoreMessageInfo(mi) 147 } 148 } 149 150 func (x *HostBytes) String() string { 151 return protoimpl.X.MessageStringOf(x) 152 } 153 154 func (*HostBytes) ProtoMessage() {} 155 156 func (x *HostBytes) ProtoReflect() protoreflect.Message { 157 mi := &file_protobufs_hostInput_proto_msgTypes[2] 158 if protoimpl.UnsafeEnabled && x != nil { 159 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 160 if ms.LoadMessageInfo() == nil { 161 ms.StoreMessageInfo(mi) 162 } 163 return ms 164 } 165 return mi.MessageOf(x) 166 } 167 168 // Deprecated: Use HostBytes.ProtoReflect.Descriptor instead. 169 func (*HostBytes) Descriptor() ([]byte, []int) { 170 return file_protobufs_hostInput_proto_rawDescGZIP(), []int{2} 171 } 172 173 func (x *HostBytes) GetHoststring() []byte { 174 if x != nil { 175 return x.Hoststring 176 } 177 return nil 178 } 179 180 type ResizeMessage struct { 181 state protoimpl.MessageState 182 sizeCache protoimpl.SizeCache 183 unknownFields protoimpl.UnknownFields 184 185 Width *int32 `protobuf:"varint,5,opt,name=width,proto3,oneof" json:"width,omitempty"` 186 Height *int32 `protobuf:"varint,6,opt,name=height,proto3,oneof" json:"height,omitempty"` 187 } 188 189 func (x *ResizeMessage) Reset() { 190 *x = ResizeMessage{} 191 if protoimpl.UnsafeEnabled { 192 mi := &file_protobufs_hostInput_proto_msgTypes[3] 193 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 194 ms.StoreMessageInfo(mi) 195 } 196 } 197 198 func (x *ResizeMessage) String() string { 199 return protoimpl.X.MessageStringOf(x) 200 } 201 202 func (*ResizeMessage) ProtoMessage() {} 203 204 func (x *ResizeMessage) ProtoReflect() protoreflect.Message { 205 mi := &file_protobufs_hostInput_proto_msgTypes[3] 206 if protoimpl.UnsafeEnabled && x != nil { 207 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 208 if ms.LoadMessageInfo() == nil { 209 ms.StoreMessageInfo(mi) 210 } 211 return ms 212 } 213 return mi.MessageOf(x) 214 } 215 216 // Deprecated: Use ResizeMessage.ProtoReflect.Descriptor instead. 217 func (*ResizeMessage) Descriptor() ([]byte, []int) { 218 return file_protobufs_hostInput_proto_rawDescGZIP(), []int{3} 219 } 220 221 func (x *ResizeMessage) GetWidth() int32 { 222 if x != nil && x.Width != nil { 223 return *x.Width 224 } 225 return 0 226 } 227 228 func (x *ResizeMessage) GetHeight() int32 { 229 if x != nil && x.Height != nil { 230 return *x.Height 231 } 232 return 0 233 } 234 235 type EchoAck struct { 236 state protoimpl.MessageState 237 sizeCache protoimpl.SizeCache 238 unknownFields protoimpl.UnknownFields 239 240 EchoAckNum *uint64 `protobuf:"varint,8,opt,name=echo_ack_num,json=echoAckNum,proto3,oneof" json:"echo_ack_num,omitempty"` 241 } 242 243 func (x *EchoAck) Reset() { 244 *x = EchoAck{} 245 if protoimpl.UnsafeEnabled { 246 mi := &file_protobufs_hostInput_proto_msgTypes[4] 247 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 248 ms.StoreMessageInfo(mi) 249 } 250 } 251 252 func (x *EchoAck) String() string { 253 return protoimpl.X.MessageStringOf(x) 254 } 255 256 func (*EchoAck) ProtoMessage() {} 257 258 func (x *EchoAck) ProtoReflect() protoreflect.Message { 259 mi := &file_protobufs_hostInput_proto_msgTypes[4] 260 if protoimpl.UnsafeEnabled && x != nil { 261 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 262 if ms.LoadMessageInfo() == nil { 263 ms.StoreMessageInfo(mi) 264 } 265 return ms 266 } 267 return mi.MessageOf(x) 268 } 269 270 // Deprecated: Use EchoAck.ProtoReflect.Descriptor instead. 271 func (*EchoAck) Descriptor() ([]byte, []int) { 272 return file_protobufs_hostInput_proto_rawDescGZIP(), []int{4} 273 } 274 275 func (x *EchoAck) GetEchoAckNum() uint64 { 276 if x != nil && x.EchoAckNum != nil { 277 return *x.EchoAckNum 278 } 279 return 0 280 } 281 282 var File_protobufs_hostInput_proto protoreflect.FileDescriptor 283 284 var file_protobufs_hostInput_proto_rawDesc = []byte{ 285 0x0a, 0x19, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x73, 0x2f, 0x68, 0x6f, 0x73, 0x74, 286 0x49, 0x6e, 0x70, 0x75, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x48, 0x6f, 0x73, 287 0x74, 0x42, 0x75, 0x66, 0x66, 0x65, 0x72, 0x73, 0x22, 0x49, 0x0a, 0x0b, 0x48, 0x6f, 0x73, 0x74, 288 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x3a, 0x0a, 0x0b, 0x69, 0x6e, 0x73, 0x74, 0x72, 289 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x48, 290 0x6f, 0x73, 0x74, 0x42, 0x75, 0x66, 0x66, 0x65, 0x72, 0x73, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x72, 291 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0b, 0x69, 0x6e, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 292 0x69, 0x6f, 0x6e, 0x22, 0xdb, 0x01, 0x0a, 0x0b, 0x49, 0x6e, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 293 0x69, 0x6f, 0x6e, 0x12, 0x39, 0x0a, 0x09, 0x68, 0x6f, 0x73, 0x74, 0x62, 0x79, 0x74, 0x65, 0x73, 294 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x48, 0x6f, 0x73, 0x74, 0x42, 0x75, 0x66, 295 0x66, 0x65, 0x72, 0x73, 0x2e, 0x48, 0x6f, 0x73, 0x74, 0x42, 0x79, 0x74, 0x65, 0x73, 0x48, 0x00, 296 0x52, 0x09, 0x68, 0x6f, 0x73, 0x74, 0x62, 0x79, 0x74, 0x65, 0x73, 0x88, 0x01, 0x01, 0x12, 0x37, 297 0x0a, 0x06, 0x72, 0x65, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 298 0x2e, 0x48, 0x6f, 0x73, 0x74, 0x42, 0x75, 0x66, 0x66, 0x65, 0x72, 0x73, 0x2e, 0x52, 0x65, 0x73, 299 0x69, 0x7a, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48, 0x01, 0x52, 0x06, 0x72, 0x65, 300 0x73, 0x69, 0x7a, 0x65, 0x88, 0x01, 0x01, 0x12, 0x33, 0x0a, 0x07, 0x65, 0x63, 0x68, 0x6f, 0x61, 301 0x63, 0x6b, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x48, 0x6f, 0x73, 0x74, 0x42, 302 0x75, 0x66, 0x66, 0x65, 0x72, 0x73, 0x2e, 0x45, 0x63, 0x68, 0x6f, 0x41, 0x63, 0x6b, 0x48, 0x02, 303 0x52, 0x07, 0x65, 0x63, 0x68, 0x6f, 0x61, 0x63, 0x6b, 0x88, 0x01, 0x01, 0x42, 0x0c, 0x0a, 0x0a, 304 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x62, 0x79, 0x74, 0x65, 0x73, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x72, 305 0x65, 0x73, 0x69, 0x7a, 0x65, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x65, 0x63, 0x68, 0x6f, 0x61, 0x63, 306 0x6b, 0x22, 0x3f, 0x0a, 0x09, 0x48, 0x6f, 0x73, 0x74, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x23, 307 0x0a, 0x0a, 0x68, 0x6f, 0x73, 0x74, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x04, 0x20, 0x01, 308 0x28, 0x0c, 0x48, 0x00, 0x52, 0x0a, 0x68, 0x6f, 0x73, 0x74, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 309 0x88, 0x01, 0x01, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x73, 0x74, 0x72, 0x69, 310 0x6e, 0x67, 0x22, 0x5c, 0x0a, 0x0d, 0x52, 0x65, 0x73, 0x69, 0x7a, 0x65, 0x4d, 0x65, 0x73, 0x73, 311 0x61, 0x67, 0x65, 0x12, 0x19, 0x0a, 0x05, 0x77, 0x69, 0x64, 0x74, 0x68, 0x18, 0x05, 0x20, 0x01, 312 0x28, 0x05, 0x48, 0x00, 0x52, 0x05, 0x77, 0x69, 0x64, 0x74, 0x68, 0x88, 0x01, 0x01, 0x12, 0x1b, 313 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x48, 0x01, 314 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x88, 0x01, 0x01, 0x42, 0x08, 0x0a, 0x06, 0x5f, 315 0x77, 0x69, 0x64, 0x74, 0x68, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 316 0x22, 0x41, 0x0a, 0x07, 0x45, 0x63, 0x68, 0x6f, 0x41, 0x63, 0x6b, 0x12, 0x25, 0x0a, 0x0c, 0x65, 317 0x63, 0x68, 0x6f, 0x5f, 0x61, 0x63, 0x6b, 0x5f, 0x6e, 0x75, 0x6d, 0x18, 0x08, 0x20, 0x01, 0x28, 318 0x04, 0x48, 0x00, 0x52, 0x0a, 0x65, 0x63, 0x68, 0x6f, 0x41, 0x63, 0x6b, 0x4e, 0x75, 0x6d, 0x88, 319 0x01, 0x01, 0x42, 0x0f, 0x0a, 0x0d, 0x5f, 0x65, 0x63, 0x68, 0x6f, 0x5f, 0x61, 0x63, 0x6b, 0x5f, 320 0x6e, 0x75, 0x6d, 0x42, 0x11, 0x5a, 0x0f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 321 0x73, 0x2f, 0x68, 0x6f, 0x73, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 322 } 323 324 var ( 325 file_protobufs_hostInput_proto_rawDescOnce sync.Once 326 file_protobufs_hostInput_proto_rawDescData = file_protobufs_hostInput_proto_rawDesc 327 ) 328 329 func file_protobufs_hostInput_proto_rawDescGZIP() []byte { 330 file_protobufs_hostInput_proto_rawDescOnce.Do(func() { 331 file_protobufs_hostInput_proto_rawDescData = protoimpl.X.CompressGZIP(file_protobufs_hostInput_proto_rawDescData) 332 }) 333 return file_protobufs_hostInput_proto_rawDescData 334 } 335 336 var file_protobufs_hostInput_proto_msgTypes = make([]protoimpl.MessageInfo, 5) 337 var file_protobufs_hostInput_proto_goTypes = []interface{}{ 338 (*HostMessage)(nil), // 0: HostBuffers.HostMessage 339 (*Instruction)(nil), // 1: HostBuffers.Instruction 340 (*HostBytes)(nil), // 2: HostBuffers.HostBytes 341 (*ResizeMessage)(nil), // 3: HostBuffers.ResizeMessage 342 (*EchoAck)(nil), // 4: HostBuffers.EchoAck 343 } 344 var file_protobufs_hostInput_proto_depIdxs = []int32{ 345 1, // 0: HostBuffers.HostMessage.instruction:type_name -> HostBuffers.Instruction 346 2, // 1: HostBuffers.Instruction.hostbytes:type_name -> HostBuffers.HostBytes 347 3, // 2: HostBuffers.Instruction.resize:type_name -> HostBuffers.ResizeMessage 348 4, // 3: HostBuffers.Instruction.echoack:type_name -> HostBuffers.EchoAck 349 4, // [4:4] is the sub-list for method output_type 350 4, // [4:4] is the sub-list for method input_type 351 4, // [4:4] is the sub-list for extension type_name 352 4, // [4:4] is the sub-list for extension extendee 353 0, // [0:4] is the sub-list for field type_name 354 } 355 356 func init() { file_protobufs_hostInput_proto_init() } 357 func file_protobufs_hostInput_proto_init() { 358 if File_protobufs_hostInput_proto != nil { 359 return 360 } 361 if !protoimpl.UnsafeEnabled { 362 file_protobufs_hostInput_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 363 switch v := v.(*HostMessage); i { 364 case 0: 365 return &v.state 366 case 1: 367 return &v.sizeCache 368 case 2: 369 return &v.unknownFields 370 default: 371 return nil 372 } 373 } 374 file_protobufs_hostInput_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 375 switch v := v.(*Instruction); i { 376 case 0: 377 return &v.state 378 case 1: 379 return &v.sizeCache 380 case 2: 381 return &v.unknownFields 382 default: 383 return nil 384 } 385 } 386 file_protobufs_hostInput_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 387 switch v := v.(*HostBytes); i { 388 case 0: 389 return &v.state 390 case 1: 391 return &v.sizeCache 392 case 2: 393 return &v.unknownFields 394 default: 395 return nil 396 } 397 } 398 file_protobufs_hostInput_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 399 switch v := v.(*ResizeMessage); i { 400 case 0: 401 return &v.state 402 case 1: 403 return &v.sizeCache 404 case 2: 405 return &v.unknownFields 406 default: 407 return nil 408 } 409 } 410 file_protobufs_hostInput_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 411 switch v := v.(*EchoAck); i { 412 case 0: 413 return &v.state 414 case 1: 415 return &v.sizeCache 416 case 2: 417 return &v.unknownFields 418 default: 419 return nil 420 } 421 } 422 } 423 file_protobufs_hostInput_proto_msgTypes[1].OneofWrappers = []interface{}{} 424 file_protobufs_hostInput_proto_msgTypes[2].OneofWrappers = []interface{}{} 425 file_protobufs_hostInput_proto_msgTypes[3].OneofWrappers = []interface{}{} 426 file_protobufs_hostInput_proto_msgTypes[4].OneofWrappers = []interface{}{} 427 type x struct{} 428 out := protoimpl.TypeBuilder{ 429 File: protoimpl.DescBuilder{ 430 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 431 RawDescriptor: file_protobufs_hostInput_proto_rawDesc, 432 NumEnums: 0, 433 NumMessages: 5, 434 NumExtensions: 0, 435 NumServices: 0, 436 }, 437 GoTypes: file_protobufs_hostInput_proto_goTypes, 438 DependencyIndexes: file_protobufs_hostInput_proto_depIdxs, 439 MessageInfos: file_protobufs_hostInput_proto_msgTypes, 440 }.Build() 441 File_protobufs_hostInput_proto = out.File 442 file_protobufs_hostInput_proto_rawDesc = nil 443 file_protobufs_hostInput_proto_goTypes = nil 444 file_protobufs_hostInput_proto_depIdxs = nil 445 }