github.com/v2fly/v2ray-core/v5@v5.16.2-0.20240507031116-8191faa6e095/proxy/vlite/inbound/config.pb.go (about)

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