github.com/v2fly/v2ray-core/v5@v5.16.2-0.20240507031116-8191faa6e095/transport/internet/tcp/config.pb.go (about)

     1  package tcp
     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  	anypb "google.golang.org/protobuf/types/known/anypb"
     8  	reflect "reflect"
     9  	sync "sync"
    10  )
    11  
    12  const (
    13  	// Verify that this generated code is sufficiently up-to-date.
    14  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    15  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    16  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    17  )
    18  
    19  type Config struct {
    20  	state         protoimpl.MessageState
    21  	sizeCache     protoimpl.SizeCache
    22  	unknownFields protoimpl.UnknownFields
    23  
    24  	HeaderSettings      *anypb.Any `protobuf:"bytes,2,opt,name=header_settings,json=headerSettings,proto3" json:"header_settings,omitempty"`
    25  	AcceptProxyProtocol bool       `protobuf:"varint,3,opt,name=accept_proxy_protocol,json=acceptProxyProtocol,proto3" json:"accept_proxy_protocol,omitempty"`
    26  }
    27  
    28  func (x *Config) Reset() {
    29  	*x = Config{}
    30  	if protoimpl.UnsafeEnabled {
    31  		mi := &file_transport_internet_tcp_config_proto_msgTypes[0]
    32  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    33  		ms.StoreMessageInfo(mi)
    34  	}
    35  }
    36  
    37  func (x *Config) String() string {
    38  	return protoimpl.X.MessageStringOf(x)
    39  }
    40  
    41  func (*Config) ProtoMessage() {}
    42  
    43  func (x *Config) ProtoReflect() protoreflect.Message {
    44  	mi := &file_transport_internet_tcp_config_proto_msgTypes[0]
    45  	if protoimpl.UnsafeEnabled && x != nil {
    46  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    47  		if ms.LoadMessageInfo() == nil {
    48  			ms.StoreMessageInfo(mi)
    49  		}
    50  		return ms
    51  	}
    52  	return mi.MessageOf(x)
    53  }
    54  
    55  // Deprecated: Use Config.ProtoReflect.Descriptor instead.
    56  func (*Config) Descriptor() ([]byte, []int) {
    57  	return file_transport_internet_tcp_config_proto_rawDescGZIP(), []int{0}
    58  }
    59  
    60  func (x *Config) GetHeaderSettings() *anypb.Any {
    61  	if x != nil {
    62  		return x.HeaderSettings
    63  	}
    64  	return nil
    65  }
    66  
    67  func (x *Config) GetAcceptProxyProtocol() bool {
    68  	if x != nil {
    69  		return x.AcceptProxyProtocol
    70  	}
    71  	return false
    72  }
    73  
    74  var File_transport_internet_tcp_config_proto protoreflect.FileDescriptor
    75  
    76  var file_transport_internet_tcp_config_proto_rawDesc = []byte{
    77  	0x0a, 0x23, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65,
    78  	0x72, 0x6e, 0x65, 0x74, 0x2f, 0x74, 0x63, 0x70, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e,
    79  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x21, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
    80  	0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65,
    81  	0x72, 0x6e, 0x65, 0x74, 0x2e, 0x74, 0x63, 0x70, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
    82  	0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72,
    83  	0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74,
    84  	0x6f, 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e,
    85  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9b, 0x01, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
    86  	0x12, 0x3d, 0x0a, 0x0f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69,
    87  	0x6e, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
    88  	0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52,
    89  	0x0e, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12,
    90  	0x32, 0x0a, 0x15, 0x61, 0x63, 0x63, 0x65, 0x70, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x5f,
    91  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13,
    92  	0x61, 0x63, 0x63, 0x65, 0x70, 0x74, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f,
    93  	0x63, 0x6f, 0x6c, 0x3a, 0x18, 0x82, 0xb5, 0x18, 0x14, 0x0a, 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73,
    94  	0x70, 0x6f, 0x72, 0x74, 0x12, 0x03, 0x74, 0x63, 0x70, 0x90, 0xff, 0x29, 0x01, 0x4a, 0x04, 0x08,
    95  	0x01, 0x10, 0x02, 0x42, 0x84, 0x01, 0x0a, 0x25, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61,
    96  	0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74,
    97  	0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x74, 0x63, 0x70, 0x50, 0x01, 0x5a,
    98  	0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c,
    99  	0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35, 0x2f,
   100  	0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e,
   101  	0x65, 0x74, 0x2f, 0x74, 0x63, 0x70, 0xaa, 0x02, 0x21, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43,
   102  	0x6f, 0x72, 0x65, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x49, 0x6e,
   103  	0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x54, 0x63, 0x70, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
   104  	0x6f, 0x33,
   105  }
   106  
   107  var (
   108  	file_transport_internet_tcp_config_proto_rawDescOnce sync.Once
   109  	file_transport_internet_tcp_config_proto_rawDescData = file_transport_internet_tcp_config_proto_rawDesc
   110  )
   111  
   112  func file_transport_internet_tcp_config_proto_rawDescGZIP() []byte {
   113  	file_transport_internet_tcp_config_proto_rawDescOnce.Do(func() {
   114  		file_transport_internet_tcp_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_transport_internet_tcp_config_proto_rawDescData)
   115  	})
   116  	return file_transport_internet_tcp_config_proto_rawDescData
   117  }
   118  
   119  var file_transport_internet_tcp_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   120  var file_transport_internet_tcp_config_proto_goTypes = []interface{}{
   121  	(*Config)(nil),    // 0: v2ray.core.transport.internet.tcp.Config
   122  	(*anypb.Any)(nil), // 1: google.protobuf.Any
   123  }
   124  var file_transport_internet_tcp_config_proto_depIdxs = []int32{
   125  	1, // 0: v2ray.core.transport.internet.tcp.Config.header_settings:type_name -> google.protobuf.Any
   126  	1, // [1:1] is the sub-list for method output_type
   127  	1, // [1:1] is the sub-list for method input_type
   128  	1, // [1:1] is the sub-list for extension type_name
   129  	1, // [1:1] is the sub-list for extension extendee
   130  	0, // [0:1] is the sub-list for field type_name
   131  }
   132  
   133  func init() { file_transport_internet_tcp_config_proto_init() }
   134  func file_transport_internet_tcp_config_proto_init() {
   135  	if File_transport_internet_tcp_config_proto != nil {
   136  		return
   137  	}
   138  	if !protoimpl.UnsafeEnabled {
   139  		file_transport_internet_tcp_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   140  			switch v := v.(*Config); i {
   141  			case 0:
   142  				return &v.state
   143  			case 1:
   144  				return &v.sizeCache
   145  			case 2:
   146  				return &v.unknownFields
   147  			default:
   148  				return nil
   149  			}
   150  		}
   151  	}
   152  	type x struct{}
   153  	out := protoimpl.TypeBuilder{
   154  		File: protoimpl.DescBuilder{
   155  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   156  			RawDescriptor: file_transport_internet_tcp_config_proto_rawDesc,
   157  			NumEnums:      0,
   158  			NumMessages:   1,
   159  			NumExtensions: 0,
   160  			NumServices:   0,
   161  		},
   162  		GoTypes:           file_transport_internet_tcp_config_proto_goTypes,
   163  		DependencyIndexes: file_transport_internet_tcp_config_proto_depIdxs,
   164  		MessageInfos:      file_transport_internet_tcp_config_proto_msgTypes,
   165  	}.Build()
   166  	File_transport_internet_tcp_config_proto = out.File
   167  	file_transport_internet_tcp_config_proto_rawDesc = nil
   168  	file_transport_internet_tcp_config_proto_goTypes = nil
   169  	file_transport_internet_tcp_config_proto_depIdxs = nil
   170  }