config.pb.go 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.31.0
  4. // protoc v4.23.1
  5. // source: transport/internet/domainsocket/config.proto
  6. package domainsocket
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. reflect "reflect"
  11. sync "sync"
  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. type Config struct {
  20. state protoimpl.MessageState
  21. sizeCache protoimpl.SizeCache
  22. unknownFields protoimpl.UnknownFields
  23. // Path of the domain socket. This overrides the IP/Port parameter from
  24. // upstream caller.
  25. Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
  26. // Abstract speicifies whether to use abstract namespace or not.
  27. // Traditionally Unix domain socket is file system based. Abstract domain
  28. // socket can be used without acquiring file lock.
  29. Abstract bool `protobuf:"varint,2,opt,name=abstract,proto3" json:"abstract,omitempty"`
  30. // Some apps, eg. haproxy, use the full length of sockaddr_un.sun_path to
  31. // connect(2) or bind(2) when using abstract UDS.
  32. Padding bool `protobuf:"varint,3,opt,name=padding,proto3" json:"padding,omitempty"`
  33. }
  34. func (x *Config) Reset() {
  35. *x = Config{}
  36. if protoimpl.UnsafeEnabled {
  37. mi := &file_transport_internet_domainsocket_config_proto_msgTypes[0]
  38. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  39. ms.StoreMessageInfo(mi)
  40. }
  41. }
  42. func (x *Config) String() string {
  43. return protoimpl.X.MessageStringOf(x)
  44. }
  45. func (*Config) ProtoMessage() {}
  46. func (x *Config) ProtoReflect() protoreflect.Message {
  47. mi := &file_transport_internet_domainsocket_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. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  58. func (*Config) Descriptor() ([]byte, []int) {
  59. return file_transport_internet_domainsocket_config_proto_rawDescGZIP(), []int{0}
  60. }
  61. func (x *Config) GetPath() string {
  62. if x != nil {
  63. return x.Path
  64. }
  65. return ""
  66. }
  67. func (x *Config) GetAbstract() bool {
  68. if x != nil {
  69. return x.Abstract
  70. }
  71. return false
  72. }
  73. func (x *Config) GetPadding() bool {
  74. if x != nil {
  75. return x.Padding
  76. }
  77. return false
  78. }
  79. var File_transport_internet_domainsocket_config_proto protoreflect.FileDescriptor
  80. var file_transport_internet_domainsocket_config_proto_rawDesc = []byte{
  81. 0x0a, 0x2c, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65,
  82. 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x6f, 0x63, 0x6b, 0x65,
  83. 0x74, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x24,
  84. 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69,
  85. 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x6f,
  86. 0x63, 0x6b, 0x65, 0x74, 0x22, 0x52, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12,
  87. 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61,
  88. 0x74, 0x68, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x62, 0x73, 0x74, 0x72, 0x61, 0x63, 0x74, 0x18, 0x02,
  89. 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x61, 0x62, 0x73, 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, 0x18,
  90. 0x0a, 0x07, 0x70, 0x61, 0x64, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52,
  91. 0x07, 0x70, 0x61, 0x64, 0x64, 0x69, 0x6e, 0x67, 0x42, 0x8e, 0x01, 0x0a, 0x28, 0x63, 0x6f, 0x6d,
  92. 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e,
  93. 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73,
  94. 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x50, 0x01, 0x5a, 0x39, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e,
  95. 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f,
  96. 0x72, 0x65, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74,
  97. 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x6f, 0x63, 0x6b,
  98. 0x65, 0x74, 0xaa, 0x02, 0x24, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70,
  99. 0x6f, 0x72, 0x74, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x44, 0x6f, 0x6d,
  100. 0x61, 0x69, 0x6e, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  101. 0x33,
  102. }
  103. var (
  104. file_transport_internet_domainsocket_config_proto_rawDescOnce sync.Once
  105. file_transport_internet_domainsocket_config_proto_rawDescData = file_transport_internet_domainsocket_config_proto_rawDesc
  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(file_transport_internet_domainsocket_config_proto_rawDescData)
  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 = []interface{}{
  115. (*Config)(nil), // 0: xray.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. if !protoimpl.UnsafeEnabled {
  130. file_transport_internet_domainsocket_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  131. switch v := v.(*Config); i {
  132. case 0:
  133. return &v.state
  134. case 1:
  135. return &v.sizeCache
  136. case 2:
  137. return &v.unknownFields
  138. default:
  139. return nil
  140. }
  141. }
  142. }
  143. type x struct{}
  144. out := protoimpl.TypeBuilder{
  145. File: protoimpl.DescBuilder{
  146. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  147. RawDescriptor: file_transport_internet_domainsocket_config_proto_rawDesc,
  148. NumEnums: 0,
  149. NumMessages: 1,
  150. NumExtensions: 0,
  151. NumServices: 0,
  152. },
  153. GoTypes: file_transport_internet_domainsocket_config_proto_goTypes,
  154. DependencyIndexes: file_transport_internet_domainsocket_config_proto_depIdxs,
  155. MessageInfos: file_transport_internet_domainsocket_config_proto_msgTypes,
  156. }.Build()
  157. File_transport_internet_domainsocket_config_proto = out.File
  158. file_transport_internet_domainsocket_config_proto_rawDesc = nil
  159. file_transport_internet_domainsocket_config_proto_goTypes = nil
  160. file_transport_internet_domainsocket_config_proto_depIdxs = nil
  161. }