github.com/ericwq/aprilsh@v0.0.0-20240517091432-958bc568daa0/protobufs/user/userInput.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/userInput.proto
     6  
     7  package user
     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 UserMessage 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 *UserMessage) Reset() {
    32  	*x = UserMessage{}
    33  	if protoimpl.UnsafeEnabled {
    34  		mi := &file_protobufs_userInput_proto_msgTypes[0]
    35  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    36  		ms.StoreMessageInfo(mi)
    37  	}
    38  }
    39  
    40  func (x *UserMessage) String() string {
    41  	return protoimpl.X.MessageStringOf(x)
    42  }
    43  
    44  func (*UserMessage) ProtoMessage() {}
    45  
    46  func (x *UserMessage) ProtoReflect() protoreflect.Message {
    47  	mi := &file_protobufs_userInput_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 UserMessage.ProtoReflect.Descriptor instead.
    59  func (*UserMessage) Descriptor() ([]byte, []int) {
    60  	return file_protobufs_userInput_proto_rawDescGZIP(), []int{0}
    61  }
    62  
    63  func (x *UserMessage) GetInstruction() []*Instruction {
    64  	if x != nil {
    65  		return x.Instruction
    66  	}
    67  	return nil
    68  }
    69  
    70  // proto3 doesn't support extensions also consider the optional field
    71  type Instruction struct {
    72  	state         protoimpl.MessageState
    73  	sizeCache     protoimpl.SizeCache
    74  	unknownFields protoimpl.UnknownFields
    75  
    76  	Keystroke *Keystroke     `protobuf:"bytes,2,opt,name=keystroke,proto3,oneof" json:"keystroke,omitempty"`
    77  	Resize    *ResizeMessage `protobuf:"bytes,3,opt,name=resize,proto3,oneof" json:"resize,omitempty"` // extensions 2 to max;
    78  }
    79  
    80  func (x *Instruction) Reset() {
    81  	*x = Instruction{}
    82  	if protoimpl.UnsafeEnabled {
    83  		mi := &file_protobufs_userInput_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_userInput_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_userInput_proto_rawDescGZIP(), []int{1}
   110  }
   111  
   112  func (x *Instruction) GetKeystroke() *Keystroke {
   113  	if x != nil {
   114  		return x.Keystroke
   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  type Keystroke struct {
   127  	state         protoimpl.MessageState
   128  	sizeCache     protoimpl.SizeCache
   129  	unknownFields protoimpl.UnknownFields
   130  
   131  	Keys []byte `protobuf:"bytes,4,opt,name=keys,proto3" json:"keys,omitempty"`
   132  }
   133  
   134  func (x *Keystroke) Reset() {
   135  	*x = Keystroke{}
   136  	if protoimpl.UnsafeEnabled {
   137  		mi := &file_protobufs_userInput_proto_msgTypes[2]
   138  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   139  		ms.StoreMessageInfo(mi)
   140  	}
   141  }
   142  
   143  func (x *Keystroke) String() string {
   144  	return protoimpl.X.MessageStringOf(x)
   145  }
   146  
   147  func (*Keystroke) ProtoMessage() {}
   148  
   149  func (x *Keystroke) ProtoReflect() protoreflect.Message {
   150  	mi := &file_protobufs_userInput_proto_msgTypes[2]
   151  	if protoimpl.UnsafeEnabled && x != nil {
   152  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   153  		if ms.LoadMessageInfo() == nil {
   154  			ms.StoreMessageInfo(mi)
   155  		}
   156  		return ms
   157  	}
   158  	return mi.MessageOf(x)
   159  }
   160  
   161  // Deprecated: Use Keystroke.ProtoReflect.Descriptor instead.
   162  func (*Keystroke) Descriptor() ([]byte, []int) {
   163  	return file_protobufs_userInput_proto_rawDescGZIP(), []int{2}
   164  }
   165  
   166  func (x *Keystroke) GetKeys() []byte {
   167  	if x != nil {
   168  		return x.Keys
   169  	}
   170  	return nil
   171  }
   172  
   173  type ResizeMessage struct {
   174  	state         protoimpl.MessageState
   175  	sizeCache     protoimpl.SizeCache
   176  	unknownFields protoimpl.UnknownFields
   177  
   178  	Width  int32 `protobuf:"varint,5,opt,name=width,proto3" json:"width,omitempty"`
   179  	Height int32 `protobuf:"varint,6,opt,name=height,proto3" json:"height,omitempty"`
   180  }
   181  
   182  func (x *ResizeMessage) Reset() {
   183  	*x = ResizeMessage{}
   184  	if protoimpl.UnsafeEnabled {
   185  		mi := &file_protobufs_userInput_proto_msgTypes[3]
   186  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   187  		ms.StoreMessageInfo(mi)
   188  	}
   189  }
   190  
   191  func (x *ResizeMessage) String() string {
   192  	return protoimpl.X.MessageStringOf(x)
   193  }
   194  
   195  func (*ResizeMessage) ProtoMessage() {}
   196  
   197  func (x *ResizeMessage) ProtoReflect() protoreflect.Message {
   198  	mi := &file_protobufs_userInput_proto_msgTypes[3]
   199  	if protoimpl.UnsafeEnabled && x != nil {
   200  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   201  		if ms.LoadMessageInfo() == nil {
   202  			ms.StoreMessageInfo(mi)
   203  		}
   204  		return ms
   205  	}
   206  	return mi.MessageOf(x)
   207  }
   208  
   209  // Deprecated: Use ResizeMessage.ProtoReflect.Descriptor instead.
   210  func (*ResizeMessage) Descriptor() ([]byte, []int) {
   211  	return file_protobufs_userInput_proto_rawDescGZIP(), []int{3}
   212  }
   213  
   214  func (x *ResizeMessage) GetWidth() int32 {
   215  	if x != nil {
   216  		return x.Width
   217  	}
   218  	return 0
   219  }
   220  
   221  func (x *ResizeMessage) GetHeight() int32 {
   222  	if x != nil {
   223  		return x.Height
   224  	}
   225  	return 0
   226  }
   227  
   228  var File_protobufs_userInput_proto protoreflect.FileDescriptor
   229  
   230  var file_protobufs_userInput_proto_rawDesc = []byte{
   231  	0x0a, 0x19, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x73, 0x2f, 0x75, 0x73, 0x65, 0x72,
   232  	0x49, 0x6e, 0x70, 0x75, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x43, 0x6c, 0x69,
   233  	0x65, 0x6e, 0x74, 0x62, 0x75, 0x66, 0x66, 0x65, 0x72, 0x73, 0x22, 0x4b, 0x0a, 0x0b, 0x55, 0x73,
   234  	0x65, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x3c, 0x0a, 0x0b, 0x69, 0x6e, 0x73,
   235  	0x74, 0x72, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a,
   236  	0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x62, 0x75, 0x66, 0x66, 0x65, 0x72, 0x73, 0x2e, 0x49,
   237  	0x6e, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0b, 0x69, 0x6e, 0x73, 0x74,
   238  	0x72, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x9e, 0x01, 0x0a, 0x0b, 0x49, 0x6e, 0x73, 0x74,
   239  	0x72, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3b, 0x0a, 0x09, 0x6b, 0x65, 0x79, 0x73, 0x74,
   240  	0x72, 0x6f, 0x6b, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x43, 0x6c, 0x69,
   241  	0x65, 0x6e, 0x74, 0x62, 0x75, 0x66, 0x66, 0x65, 0x72, 0x73, 0x2e, 0x4b, 0x65, 0x79, 0x73, 0x74,
   242  	0x72, 0x6f, 0x6b, 0x65, 0x48, 0x00, 0x52, 0x09, 0x6b, 0x65, 0x79, 0x73, 0x74, 0x72, 0x6f, 0x6b,
   243  	0x65, 0x88, 0x01, 0x01, 0x12, 0x39, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03,
   244  	0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x62, 0x75, 0x66,
   245  	0x66, 0x65, 0x72, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x69, 0x7a, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61,
   246  	0x67, 0x65, 0x48, 0x01, 0x52, 0x06, 0x72, 0x65, 0x73, 0x69, 0x7a, 0x65, 0x88, 0x01, 0x01, 0x42,
   247  	0x0c, 0x0a, 0x0a, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x74, 0x72, 0x6f, 0x6b, 0x65, 0x42, 0x09, 0x0a,
   248  	0x07, 0x5f, 0x72, 0x65, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x1f, 0x0a, 0x09, 0x4b, 0x65, 0x79, 0x73,
   249  	0x74, 0x72, 0x6f, 0x6b, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x04, 0x20,
   250  	0x01, 0x28, 0x0c, 0x52, 0x04, 0x6b, 0x65, 0x79, 0x73, 0x22, 0x3d, 0x0a, 0x0d, 0x52, 0x65, 0x73,
   251  	0x69, 0x7a, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x77, 0x69,
   252  	0x64, 0x74, 0x68, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x77, 0x69, 0x64, 0x74, 0x68,
   253  	0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05,
   254  	0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x42, 0x11, 0x5a, 0x0f, 0x2f, 0x70, 0x72, 0x6f,
   255  	0x74, 0x6f, 0x62, 0x75, 0x66, 0x73, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f,
   256  	0x74, 0x6f, 0x33,
   257  }
   258  
   259  var (
   260  	file_protobufs_userInput_proto_rawDescOnce sync.Once
   261  	file_protobufs_userInput_proto_rawDescData = file_protobufs_userInput_proto_rawDesc
   262  )
   263  
   264  func file_protobufs_userInput_proto_rawDescGZIP() []byte {
   265  	file_protobufs_userInput_proto_rawDescOnce.Do(func() {
   266  		file_protobufs_userInput_proto_rawDescData = protoimpl.X.CompressGZIP(file_protobufs_userInput_proto_rawDescData)
   267  	})
   268  	return file_protobufs_userInput_proto_rawDescData
   269  }
   270  
   271  var file_protobufs_userInput_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
   272  var file_protobufs_userInput_proto_goTypes = []interface{}{
   273  	(*UserMessage)(nil),   // 0: Clientbuffers.UserMessage
   274  	(*Instruction)(nil),   // 1: Clientbuffers.Instruction
   275  	(*Keystroke)(nil),     // 2: Clientbuffers.Keystroke
   276  	(*ResizeMessage)(nil), // 3: Clientbuffers.ResizeMessage
   277  }
   278  var file_protobufs_userInput_proto_depIdxs = []int32{
   279  	1, // 0: Clientbuffers.UserMessage.instruction:type_name -> Clientbuffers.Instruction
   280  	2, // 1: Clientbuffers.Instruction.keystroke:type_name -> Clientbuffers.Keystroke
   281  	3, // 2: Clientbuffers.Instruction.resize:type_name -> Clientbuffers.ResizeMessage
   282  	3, // [3:3] is the sub-list for method output_type
   283  	3, // [3:3] is the sub-list for method input_type
   284  	3, // [3:3] is the sub-list for extension type_name
   285  	3, // [3:3] is the sub-list for extension extendee
   286  	0, // [0:3] is the sub-list for field type_name
   287  }
   288  
   289  func init() { file_protobufs_userInput_proto_init() }
   290  func file_protobufs_userInput_proto_init() {
   291  	if File_protobufs_userInput_proto != nil {
   292  		return
   293  	}
   294  	if !protoimpl.UnsafeEnabled {
   295  		file_protobufs_userInput_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   296  			switch v := v.(*UserMessage); 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_protobufs_userInput_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   308  			switch v := v.(*Instruction); 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  		file_protobufs_userInput_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   320  			switch v := v.(*Keystroke); i {
   321  			case 0:
   322  				return &v.state
   323  			case 1:
   324  				return &v.sizeCache
   325  			case 2:
   326  				return &v.unknownFields
   327  			default:
   328  				return nil
   329  			}
   330  		}
   331  		file_protobufs_userInput_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
   332  			switch v := v.(*ResizeMessage); i {
   333  			case 0:
   334  				return &v.state
   335  			case 1:
   336  				return &v.sizeCache
   337  			case 2:
   338  				return &v.unknownFields
   339  			default:
   340  				return nil
   341  			}
   342  		}
   343  	}
   344  	file_protobufs_userInput_proto_msgTypes[1].OneofWrappers = []interface{}{}
   345  	type x struct{}
   346  	out := protoimpl.TypeBuilder{
   347  		File: protoimpl.DescBuilder{
   348  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   349  			RawDescriptor: file_protobufs_userInput_proto_rawDesc,
   350  			NumEnums:      0,
   351  			NumMessages:   4,
   352  			NumExtensions: 0,
   353  			NumServices:   0,
   354  		},
   355  		GoTypes:           file_protobufs_userInput_proto_goTypes,
   356  		DependencyIndexes: file_protobufs_userInput_proto_depIdxs,
   357  		MessageInfos:      file_protobufs_userInput_proto_msgTypes,
   358  	}.Build()
   359  	File_protobufs_userInput_proto = out.File
   360  	file_protobufs_userInput_proto_rawDesc = nil
   361  	file_protobufs_userInput_proto_goTypes = nil
   362  	file_protobufs_userInput_proto_depIdxs = nil
   363  }