config.pb.go 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. package domainsocket
  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 Config struct {
  17. state protoimpl.MessageState `protogen:"open.v1"`
  18. // Path of the domain socket. This overrides the IP/Port parameter from
  19. // upstream caller.
  20. Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
  21. // Abstract specifies whether to use abstract namespace or not.
  22. // Traditionally Unix domain socket is file system based. Abstract domain
  23. // socket can be used without acquiring file lock.
  24. Abstract bool `protobuf:"varint,2,opt,name=abstract,proto3" json:"abstract,omitempty"`
  25. // Some apps, eg. haproxy, use the full length of sockaddr_un.sun_path to
  26. // connect(2) or bind(2) when using abstract UDS.
  27. Padding bool `protobuf:"varint,3,opt,name=padding,proto3" json:"padding,omitempty"`
  28. unknownFields protoimpl.UnknownFields
  29. sizeCache protoimpl.SizeCache
  30. }
  31. func (x *Config) Reset() {
  32. *x = Config{}
  33. mi := &file_transport_internet_domainsocket_config_proto_msgTypes[0]
  34. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  35. ms.StoreMessageInfo(mi)
  36. }
  37. func (x *Config) String() string {
  38. return protoimpl.X.MessageStringOf(x)
  39. }
  40. func (*Config) ProtoMessage() {}
  41. func (x *Config) ProtoReflect() protoreflect.Message {
  42. mi := &file_transport_internet_domainsocket_config_proto_msgTypes[0]
  43. if x != nil {
  44. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  45. if ms.LoadMessageInfo() == nil {
  46. ms.StoreMessageInfo(mi)
  47. }
  48. return ms
  49. }
  50. return mi.MessageOf(x)
  51. }
  52. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  53. func (*Config) Descriptor() ([]byte, []int) {
  54. return file_transport_internet_domainsocket_config_proto_rawDescGZIP(), []int{0}
  55. }
  56. func (x *Config) GetPath() string {
  57. if x != nil {
  58. return x.Path
  59. }
  60. return ""
  61. }
  62. func (x *Config) GetAbstract() bool {
  63. if x != nil {
  64. return x.Abstract
  65. }
  66. return false
  67. }
  68. func (x *Config) GetPadding() bool {
  69. if x != nil {
  70. return x.Padding
  71. }
  72. return false
  73. }
  74. var File_transport_internet_domainsocket_config_proto protoreflect.FileDescriptor
  75. var file_transport_internet_domainsocket_config_proto_rawDesc = string([]byte{
  76. 0x0a, 0x2c, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65,
  77. 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x6f, 0x63, 0x6b, 0x65,
  78. 0x74, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x2a,
  79. 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73,
  80. 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x64, 0x6f,
  81. 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d,
  82. 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65,
  83. 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x71, 0x0a, 0x06,
  84. 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01,
  85. 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x62,
  86. 0x73, 0x74, 0x72, 0x61, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x61, 0x62,
  87. 0x73, 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x64, 0x64, 0x69, 0x6e,
  88. 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x70, 0x61, 0x64, 0x64, 0x69, 0x6e, 0x67,
  89. 0x3a, 0x1d, 0x82, 0xb5, 0x18, 0x19, 0x0a, 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72,
  90. 0x74, 0x12, 0x0c, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x42,
  91. 0x9f, 0x01, 0x0a, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  92. 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74,
  93. 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x6f, 0x63, 0x6b,
  94. 0x65, 0x74, 0x50, 0x01, 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
  95. 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72,
  96. 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69,
  97. 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x6f,
  98. 0x63, 0x6b, 0x65, 0x74, 0xaa, 0x02, 0x2a, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72,
  99. 0x65, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x49, 0x6e, 0x74, 0x65,
  100. 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x6f, 0x63, 0x6b, 0x65,
  101. 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  102. })
  103. var (
  104. file_transport_internet_domainsocket_config_proto_rawDescOnce sync.Once
  105. file_transport_internet_domainsocket_config_proto_rawDescData []byte
  106. )
  107. func file_transport_internet_domainsocket_config_proto_rawDescGZIP() []byte {
  108. file_transport_internet_domainsocket_config_proto_rawDescOnce.Do(func() {
  109. file_transport_internet_domainsocket_config_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_transport_internet_domainsocket_config_proto_rawDesc), len(file_transport_internet_domainsocket_config_proto_rawDesc)))
  110. })
  111. return file_transport_internet_domainsocket_config_proto_rawDescData
  112. }
  113. var file_transport_internet_domainsocket_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  114. var file_transport_internet_domainsocket_config_proto_goTypes = []any{
  115. (*Config)(nil), // 0: v2ray.core.transport.internet.domainsocket.Config
  116. }
  117. var file_transport_internet_domainsocket_config_proto_depIdxs = []int32{
  118. 0, // [0:0] is the sub-list for method output_type
  119. 0, // [0:0] is the sub-list for method input_type
  120. 0, // [0:0] is the sub-list for extension type_name
  121. 0, // [0:0] is the sub-list for extension extendee
  122. 0, // [0:0] is the sub-list for field type_name
  123. }
  124. func init() { file_transport_internet_domainsocket_config_proto_init() }
  125. func file_transport_internet_domainsocket_config_proto_init() {
  126. if File_transport_internet_domainsocket_config_proto != nil {
  127. return
  128. }
  129. type x struct{}
  130. out := protoimpl.TypeBuilder{
  131. File: protoimpl.DescBuilder{
  132. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  133. RawDescriptor: unsafe.Slice(unsafe.StringData(file_transport_internet_domainsocket_config_proto_rawDesc), len(file_transport_internet_domainsocket_config_proto_rawDesc)),
  134. NumEnums: 0,
  135. NumMessages: 1,
  136. NumExtensions: 0,
  137. NumServices: 0,
  138. },
  139. GoTypes: file_transport_internet_domainsocket_config_proto_goTypes,
  140. DependencyIndexes: file_transport_internet_domainsocket_config_proto_depIdxs,
  141. MessageInfos: file_transport_internet_domainsocket_config_proto_msgTypes,
  142. }.Build()
  143. File_transport_internet_domainsocket_config_proto = out.File
  144. file_transport_internet_domainsocket_config_proto_goTypes = nil
  145. file_transport_internet_domainsocket_config_proto_depIdxs = nil
  146. }