config.pb.go 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. package inbound
  2. import (
  3. _ "github.com/v2fly/v2ray-core/v5/common/protoext"
  4. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  5. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  6. reflect "reflect"
  7. sync "sync"
  8. unsafe "unsafe"
  9. )
  10. const (
  11. // Verify that this generated code is sufficiently up-to-date.
  12. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  13. // Verify that runtime/protoimpl is sufficiently up-to-date.
  14. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  15. )
  16. type UDPProtocolConfig struct {
  17. state protoimpl.MessageState `protogen:"open.v1"`
  18. Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
  19. ScramblePacket bool `protobuf:"varint,4,opt,name=scramble_packet,json=scramblePacket,proto3" json:"scramble_packet,omitempty"`
  20. EnableFec bool `protobuf:"varint,5,opt,name=enable_fec,json=enableFec,proto3" json:"enable_fec,omitempty"`
  21. EnableStabilization bool `protobuf:"varint,6,opt,name=enable_stabilization,json=enableStabilization,proto3" json:"enable_stabilization,omitempty"`
  22. EnableRenegotiation bool `protobuf:"varint,7,opt,name=enable_renegotiation,json=enableRenegotiation,proto3" json:"enable_renegotiation,omitempty"`
  23. HandshakeMaskingPaddingSize uint32 `protobuf:"varint,8,opt,name=handshake_masking_padding_size,json=handshakeMaskingPaddingSize,proto3" json:"handshake_masking_padding_size,omitempty"`
  24. unknownFields protoimpl.UnknownFields
  25. sizeCache protoimpl.SizeCache
  26. }
  27. func (x *UDPProtocolConfig) Reset() {
  28. *x = UDPProtocolConfig{}
  29. mi := &file_proxy_vlite_inbound_config_proto_msgTypes[0]
  30. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  31. ms.StoreMessageInfo(mi)
  32. }
  33. func (x *UDPProtocolConfig) String() string {
  34. return protoimpl.X.MessageStringOf(x)
  35. }
  36. func (*UDPProtocolConfig) ProtoMessage() {}
  37. func (x *UDPProtocolConfig) ProtoReflect() protoreflect.Message {
  38. mi := &file_proxy_vlite_inbound_config_proto_msgTypes[0]
  39. if x != nil {
  40. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  41. if ms.LoadMessageInfo() == nil {
  42. ms.StoreMessageInfo(mi)
  43. }
  44. return ms
  45. }
  46. return mi.MessageOf(x)
  47. }
  48. // Deprecated: Use UDPProtocolConfig.ProtoReflect.Descriptor instead.
  49. func (*UDPProtocolConfig) Descriptor() ([]byte, []int) {
  50. return file_proxy_vlite_inbound_config_proto_rawDescGZIP(), []int{0}
  51. }
  52. func (x *UDPProtocolConfig) GetPassword() string {
  53. if x != nil {
  54. return x.Password
  55. }
  56. return ""
  57. }
  58. func (x *UDPProtocolConfig) GetScramblePacket() bool {
  59. if x != nil {
  60. return x.ScramblePacket
  61. }
  62. return false
  63. }
  64. func (x *UDPProtocolConfig) GetEnableFec() bool {
  65. if x != nil {
  66. return x.EnableFec
  67. }
  68. return false
  69. }
  70. func (x *UDPProtocolConfig) GetEnableStabilization() bool {
  71. if x != nil {
  72. return x.EnableStabilization
  73. }
  74. return false
  75. }
  76. func (x *UDPProtocolConfig) GetEnableRenegotiation() bool {
  77. if x != nil {
  78. return x.EnableRenegotiation
  79. }
  80. return false
  81. }
  82. func (x *UDPProtocolConfig) GetHandshakeMaskingPaddingSize() uint32 {
  83. if x != nil {
  84. return x.HandshakeMaskingPaddingSize
  85. }
  86. return 0
  87. }
  88. var File_proxy_vlite_inbound_config_proto protoreflect.FileDescriptor
  89. var file_proxy_vlite_inbound_config_proto_rawDesc = string([]byte{
  90. 0x0a, 0x20, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x76, 0x6c, 0x69, 0x74, 0x65, 0x2f, 0x69, 0x6e,
  91. 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f,
  92. 0x74, 0x6f, 0x12, 0x1e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70,
  93. 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x69, 0x6e, 0x62, 0x6f, 0x75,
  94. 0x6e, 0x64, 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  95. 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70,
  96. 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb9, 0x02, 0x0a, 0x11, 0x55, 0x44, 0x50, 0x50, 0x72, 0x6f, 0x74,
  97. 0x6f, 0x63, 0x6f, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61,
  98. 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61,
  99. 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x63, 0x72, 0x61, 0x6d, 0x62,
  100. 0x6c, 0x65, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52,
  101. 0x0e, 0x73, 0x63, 0x72, 0x61, 0x6d, 0x62, 0x6c, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x12,
  102. 0x1d, 0x0a, 0x0a, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x66, 0x65, 0x63, 0x18, 0x05, 0x20,
  103. 0x01, 0x28, 0x08, 0x52, 0x09, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x46, 0x65, 0x63, 0x12, 0x31,
  104. 0x0a, 0x14, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69,
  105. 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x65, 0x6e,
  106. 0x61, 0x62, 0x6c, 0x65, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f,
  107. 0x6e, 0x12, 0x31, 0x0a, 0x14, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x72, 0x65, 0x6e, 0x65,
  108. 0x67, 0x6f, 0x74, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52,
  109. 0x13, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x6e, 0x65, 0x67, 0x6f, 0x74, 0x69, 0x61,
  110. 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x43, 0x0a, 0x1e, 0x68, 0x61, 0x6e, 0x64, 0x73, 0x68, 0x61, 0x6b,
  111. 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x61, 0x64, 0x64, 0x69, 0x6e,
  112. 0x67, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x1b, 0x68, 0x61,
  113. 0x6e, 0x64, 0x73, 0x68, 0x61, 0x6b, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x50, 0x61,
  114. 0x64, 0x64, 0x69, 0x6e, 0x67, 0x53, 0x69, 0x7a, 0x65, 0x3a, 0x15, 0x82, 0xb5, 0x18, 0x11, 0x0a,
  115. 0x07, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x12, 0x06, 0x76, 0x6c, 0x69, 0x74, 0x65, 0x75,
  116. 0x42, 0x7b, 0x0a, 0x22, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  117. 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x69,
  118. 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x50, 0x01, 0x5a, 0x32, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62,
  119. 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79,
  120. 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x76,
  121. 0x6c, 0x69, 0x74, 0x65, 0x2f, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0xaa, 0x02, 0x1e, 0x56,
  122. 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e,
  123. 0x56, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x49, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x62, 0x06, 0x70,
  124. 0x72, 0x6f, 0x74, 0x6f, 0x33,
  125. })
  126. var (
  127. file_proxy_vlite_inbound_config_proto_rawDescOnce sync.Once
  128. file_proxy_vlite_inbound_config_proto_rawDescData []byte
  129. )
  130. func file_proxy_vlite_inbound_config_proto_rawDescGZIP() []byte {
  131. file_proxy_vlite_inbound_config_proto_rawDescOnce.Do(func() {
  132. file_proxy_vlite_inbound_config_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_proxy_vlite_inbound_config_proto_rawDesc), len(file_proxy_vlite_inbound_config_proto_rawDesc)))
  133. })
  134. return file_proxy_vlite_inbound_config_proto_rawDescData
  135. }
  136. var file_proxy_vlite_inbound_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  137. var file_proxy_vlite_inbound_config_proto_goTypes = []any{
  138. (*UDPProtocolConfig)(nil), // 0: v2ray.core.proxy.vlite.inbound.UDPProtocolConfig
  139. }
  140. var file_proxy_vlite_inbound_config_proto_depIdxs = []int32{
  141. 0, // [0:0] is the sub-list for method output_type
  142. 0, // [0:0] is the sub-list for method input_type
  143. 0, // [0:0] is the sub-list for extension type_name
  144. 0, // [0:0] is the sub-list for extension extendee
  145. 0, // [0:0] is the sub-list for field type_name
  146. }
  147. func init() { file_proxy_vlite_inbound_config_proto_init() }
  148. func file_proxy_vlite_inbound_config_proto_init() {
  149. if File_proxy_vlite_inbound_config_proto != nil {
  150. return
  151. }
  152. type x struct{}
  153. out := protoimpl.TypeBuilder{
  154. File: protoimpl.DescBuilder{
  155. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  156. RawDescriptor: unsafe.Slice(unsafe.StringData(file_proxy_vlite_inbound_config_proto_rawDesc), len(file_proxy_vlite_inbound_config_proto_rawDesc)),
  157. NumEnums: 0,
  158. NumMessages: 1,
  159. NumExtensions: 0,
  160. NumServices: 0,
  161. },
  162. GoTypes: file_proxy_vlite_inbound_config_proto_goTypes,
  163. DependencyIndexes: file_proxy_vlite_inbound_config_proto_depIdxs,
  164. MessageInfos: file_proxy_vlite_inbound_config_proto_msgTypes,
  165. }.Build()
  166. File_proxy_vlite_inbound_config_proto = out.File
  167. file_proxy_vlite_inbound_config_proto_goTypes = nil
  168. file_proxy_vlite_inbound_config_proto_depIdxs = nil
  169. }