config.pb.go 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. package domainsocket
  2. import (
  3. proto "github.com/golang/protobuf/proto"
  4. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  5. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  6. reflect "reflect"
  7. sync "sync"
  8. )
  9. const (
  10. // Verify that this generated code is sufficiently up-to-date.
  11. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  12. // Verify that runtime/protoimpl is sufficiently up-to-date.
  13. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  14. )
  15. // This is a compile-time assertion that a sufficiently up-to-date version
  16. // of the legacy proto package is being used.
  17. const _ = proto.ProtoPackageIsVersion4
  18. type Config struct {
  19. state protoimpl.MessageState
  20. sizeCache protoimpl.SizeCache
  21. unknownFields protoimpl.UnknownFields
  22. // Path of the domain socket. This overrides the IP/Port parameter from upstream caller.
  23. Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
  24. // Abstract speicifies whether to use abstract namespace or not.
  25. // Traditionally Unix domain socket is file system based. Abstract domain socket can be used without acquiring file lock.
  26. Abstract bool `protobuf:"varint,2,opt,name=abstract,proto3" json:"abstract,omitempty"`
  27. }
  28. func (x *Config) Reset() {
  29. *x = Config{}
  30. if protoimpl.UnsafeEnabled {
  31. mi := &file_v2ray_com_core_transport_internet_domainsocket_config_proto_msgTypes[0]
  32. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  33. ms.StoreMessageInfo(mi)
  34. }
  35. }
  36. func (x *Config) String() string {
  37. return protoimpl.X.MessageStringOf(x)
  38. }
  39. func (*Config) ProtoMessage() {}
  40. func (x *Config) ProtoReflect() protoreflect.Message {
  41. mi := &file_v2ray_com_core_transport_internet_domainsocket_config_proto_msgTypes[0]
  42. if protoimpl.UnsafeEnabled && x != nil {
  43. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  44. if ms.LoadMessageInfo() == nil {
  45. ms.StoreMessageInfo(mi)
  46. }
  47. return ms
  48. }
  49. return mi.MessageOf(x)
  50. }
  51. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  52. func (*Config) Descriptor() ([]byte, []int) {
  53. return file_v2ray_com_core_transport_internet_domainsocket_config_proto_rawDescGZIP(), []int{0}
  54. }
  55. func (x *Config) GetPath() string {
  56. if x != nil {
  57. return x.Path
  58. }
  59. return ""
  60. }
  61. func (x *Config) GetAbstract() bool {
  62. if x != nil {
  63. return x.Abstract
  64. }
  65. return false
  66. }
  67. var File_v2ray_com_core_transport_internet_domainsocket_config_proto protoreflect.FileDescriptor
  68. var file_v2ray_com_core_transport_internet_domainsocket_config_proto_rawDesc = []byte{
  69. 0x0a, 0x3b, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x65,
  70. 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72,
  71. 0x6e, 0x65, 0x74, 0x2f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74,
  72. 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x2a, 0x76,
  73. 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70,
  74. 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x64, 0x6f, 0x6d,
  75. 0x61, 0x69, 0x6e, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x22, 0x38, 0x0a, 0x06, 0x43, 0x6f, 0x6e,
  76. 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28,
  77. 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x62, 0x73, 0x74, 0x72,
  78. 0x61, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x61, 0x62, 0x73, 0x74, 0x72,
  79. 0x61, 0x63, 0x74, 0x42, 0x6d, 0x0a, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79,
  80. 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e,
  81. 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73,
  82. 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x50, 0x01, 0x5a, 0x0c, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73,
  83. 0x6f, 0x63, 0x6b, 0x65, 0x74, 0xaa, 0x02, 0x2a, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f,
  84. 0x72, 0x65, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x49, 0x6e, 0x74,
  85. 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x6f, 0x63, 0x6b,
  86. 0x65, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  87. }
  88. var (
  89. file_v2ray_com_core_transport_internet_domainsocket_config_proto_rawDescOnce sync.Once
  90. file_v2ray_com_core_transport_internet_domainsocket_config_proto_rawDescData = file_v2ray_com_core_transport_internet_domainsocket_config_proto_rawDesc
  91. )
  92. func file_v2ray_com_core_transport_internet_domainsocket_config_proto_rawDescGZIP() []byte {
  93. file_v2ray_com_core_transport_internet_domainsocket_config_proto_rawDescOnce.Do(func() {
  94. file_v2ray_com_core_transport_internet_domainsocket_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_v2ray_com_core_transport_internet_domainsocket_config_proto_rawDescData)
  95. })
  96. return file_v2ray_com_core_transport_internet_domainsocket_config_proto_rawDescData
  97. }
  98. var file_v2ray_com_core_transport_internet_domainsocket_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  99. var file_v2ray_com_core_transport_internet_domainsocket_config_proto_goTypes = []interface{}{
  100. (*Config)(nil), // 0: v2ray.core.transport.internet.domainsocket.Config
  101. }
  102. var file_v2ray_com_core_transport_internet_domainsocket_config_proto_depIdxs = []int32{
  103. 0, // [0:0] is the sub-list for method output_type
  104. 0, // [0:0] is the sub-list for method input_type
  105. 0, // [0:0] is the sub-list for extension type_name
  106. 0, // [0:0] is the sub-list for extension extendee
  107. 0, // [0:0] is the sub-list for field type_name
  108. }
  109. func init() { file_v2ray_com_core_transport_internet_domainsocket_config_proto_init() }
  110. func file_v2ray_com_core_transport_internet_domainsocket_config_proto_init() {
  111. if File_v2ray_com_core_transport_internet_domainsocket_config_proto != nil {
  112. return
  113. }
  114. if !protoimpl.UnsafeEnabled {
  115. file_v2ray_com_core_transport_internet_domainsocket_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  116. switch v := v.(*Config); i {
  117. case 0:
  118. return &v.state
  119. case 1:
  120. return &v.sizeCache
  121. case 2:
  122. return &v.unknownFields
  123. default:
  124. return nil
  125. }
  126. }
  127. }
  128. type x struct{}
  129. out := protoimpl.TypeBuilder{
  130. File: protoimpl.DescBuilder{
  131. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  132. RawDescriptor: file_v2ray_com_core_transport_internet_domainsocket_config_proto_rawDesc,
  133. NumEnums: 0,
  134. NumMessages: 1,
  135. NumExtensions: 0,
  136. NumServices: 0,
  137. },
  138. GoTypes: file_v2ray_com_core_transport_internet_domainsocket_config_proto_goTypes,
  139. DependencyIndexes: file_v2ray_com_core_transport_internet_domainsocket_config_proto_depIdxs,
  140. MessageInfos: file_v2ray_com_core_transport_internet_domainsocket_config_proto_msgTypes,
  141. }.Build()
  142. File_v2ray_com_core_transport_internet_domainsocket_config_proto = out.File
  143. file_v2ray_com_core_transport_internet_domainsocket_config_proto_rawDesc = nil
  144. file_v2ray_com_core_transport_internet_domainsocket_config_proto_goTypes = nil
  145. file_v2ray_com_core_transport_internet_domainsocket_config_proto_depIdxs = nil
  146. }