github.com/imannamdari/v2ray-core/v5@v5.0.5/transport/internet/tcp/config.pb.go (about)

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