config.pb.go 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.36.11
  4. // protoc v6.33.5
  5. // source: transport/internet/tcp/config.proto
  6. package tcp
  7. import (
  8. serial "github.com/xtls/xray-core/common/serial"
  9. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  10. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  11. reflect "reflect"
  12. sync "sync"
  13. unsafe "unsafe"
  14. )
  15. const (
  16. // Verify that this generated code is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  18. // Verify that runtime/protoimpl is sufficiently up-to-date.
  19. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  20. )
  21. type Config struct {
  22. state protoimpl.MessageState `protogen:"open.v1"`
  23. HeaderSettings *serial.TypedMessage `protobuf:"bytes,2,opt,name=header_settings,json=headerSettings,proto3" json:"header_settings,omitempty"`
  24. AcceptProxyProtocol bool `protobuf:"varint,3,opt,name=accept_proxy_protocol,json=acceptProxyProtocol,proto3" json:"accept_proxy_protocol,omitempty"`
  25. unknownFields protoimpl.UnknownFields
  26. sizeCache protoimpl.SizeCache
  27. }
  28. func (x *Config) Reset() {
  29. *x = Config{}
  30. mi := &file_transport_internet_tcp_config_proto_msgTypes[0]
  31. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  32. ms.StoreMessageInfo(mi)
  33. }
  34. func (x *Config) String() string {
  35. return protoimpl.X.MessageStringOf(x)
  36. }
  37. func (*Config) ProtoMessage() {}
  38. func (x *Config) ProtoReflect() protoreflect.Message {
  39. mi := &file_transport_internet_tcp_config_proto_msgTypes[0]
  40. if x != nil {
  41. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  42. if ms.LoadMessageInfo() == nil {
  43. ms.StoreMessageInfo(mi)
  44. }
  45. return ms
  46. }
  47. return mi.MessageOf(x)
  48. }
  49. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  50. func (*Config) Descriptor() ([]byte, []int) {
  51. return file_transport_internet_tcp_config_proto_rawDescGZIP(), []int{0}
  52. }
  53. func (x *Config) GetHeaderSettings() *serial.TypedMessage {
  54. if x != nil {
  55. return x.HeaderSettings
  56. }
  57. return nil
  58. }
  59. func (x *Config) GetAcceptProxyProtocol() bool {
  60. if x != nil {
  61. return x.AcceptProxyProtocol
  62. }
  63. return false
  64. }
  65. var File_transport_internet_tcp_config_proto protoreflect.FileDescriptor
  66. const file_transport_internet_tcp_config_proto_rawDesc = "" +
  67. "\n" +
  68. "#transport/internet/tcp/config.proto\x12\x1bxray.transport.internet.tcp\x1a!common/serial/typed_message.proto\"\x8d\x01\n" +
  69. "\x06Config\x12I\n" +
  70. "\x0fheader_settings\x18\x02 \x01(\v2 .xray.common.serial.TypedMessageR\x0eheaderSettings\x122\n" +
  71. "\x15accept_proxy_protocol\x18\x03 \x01(\bR\x13acceptProxyProtocolJ\x04\b\x01\x10\x02Bs\n" +
  72. "\x1fcom.xray.transport.internet.tcpP\x01Z0github.com/xtls/xray-core/transport/internet/tcp\xaa\x02\x1bXray.Transport.Internet.Tcpb\x06proto3"
  73. var (
  74. file_transport_internet_tcp_config_proto_rawDescOnce sync.Once
  75. file_transport_internet_tcp_config_proto_rawDescData []byte
  76. )
  77. func file_transport_internet_tcp_config_proto_rawDescGZIP() []byte {
  78. file_transport_internet_tcp_config_proto_rawDescOnce.Do(func() {
  79. file_transport_internet_tcp_config_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_transport_internet_tcp_config_proto_rawDesc), len(file_transport_internet_tcp_config_proto_rawDesc)))
  80. })
  81. return file_transport_internet_tcp_config_proto_rawDescData
  82. }
  83. var file_transport_internet_tcp_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  84. var file_transport_internet_tcp_config_proto_goTypes = []any{
  85. (*Config)(nil), // 0: xray.transport.internet.tcp.Config
  86. (*serial.TypedMessage)(nil), // 1: xray.common.serial.TypedMessage
  87. }
  88. var file_transport_internet_tcp_config_proto_depIdxs = []int32{
  89. 1, // 0: xray.transport.internet.tcp.Config.header_settings:type_name -> xray.common.serial.TypedMessage
  90. 1, // [1:1] is the sub-list for method output_type
  91. 1, // [1:1] is the sub-list for method input_type
  92. 1, // [1:1] is the sub-list for extension type_name
  93. 1, // [1:1] is the sub-list for extension extendee
  94. 0, // [0:1] is the sub-list for field type_name
  95. }
  96. func init() { file_transport_internet_tcp_config_proto_init() }
  97. func file_transport_internet_tcp_config_proto_init() {
  98. if File_transport_internet_tcp_config_proto != nil {
  99. return
  100. }
  101. type x struct{}
  102. out := protoimpl.TypeBuilder{
  103. File: protoimpl.DescBuilder{
  104. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  105. RawDescriptor: unsafe.Slice(unsafe.StringData(file_transport_internet_tcp_config_proto_rawDesc), len(file_transport_internet_tcp_config_proto_rawDesc)),
  106. NumEnums: 0,
  107. NumMessages: 1,
  108. NumExtensions: 0,
  109. NumServices: 0,
  110. },
  111. GoTypes: file_transport_internet_tcp_config_proto_goTypes,
  112. DependencyIndexes: file_transport_internet_tcp_config_proto_depIdxs,
  113. MessageInfos: file_transport_internet_tcp_config_proto_msgTypes,
  114. }.Build()
  115. File_transport_internet_tcp_config_proto = out.File
  116. file_transport_internet_tcp_config_proto_goTypes = nil
  117. file_transport_internet_tcp_config_proto_depIdxs = nil
  118. }