github.com/EagleQL/Xray-core@v1.4.3/transport/internet/domainsocket/config.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.25.0
     4  // 	protoc        v3.14.0
     5  // source: transport/internet/domainsocket/config.proto
     6  
     7  package domainsocket
     8  
     9  import (
    10  	proto "github.com/golang/protobuf/proto"
    11  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    12  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    13  	reflect "reflect"
    14  	sync "sync"
    15  )
    16  
    17  const (
    18  	// Verify that this generated code is sufficiently up-to-date.
    19  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    20  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    21  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    22  )
    23  
    24  // This is a compile-time assertion that a sufficiently up-to-date version
    25  // of the legacy proto package is being used.
    26  const _ = proto.ProtoPackageIsVersion4
    27  
    28  type Config struct {
    29  	state         protoimpl.MessageState
    30  	sizeCache     protoimpl.SizeCache
    31  	unknownFields protoimpl.UnknownFields
    32  
    33  	// Path of the domain socket. This overrides the IP/Port parameter from
    34  	// upstream caller.
    35  	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
    36  	// Abstract speicifies whether to use abstract namespace or not.
    37  	// Traditionally Unix domain socket is file system based. Abstract domain
    38  	// socket can be used without acquiring file lock.
    39  	Abstract bool `protobuf:"varint,2,opt,name=abstract,proto3" json:"abstract,omitempty"`
    40  	// Some apps, eg. haproxy, use the full length of sockaddr_un.sun_path to
    41  	// connect(2) or bind(2) when using abstract UDS.
    42  	Padding bool `protobuf:"varint,3,opt,name=padding,proto3" json:"padding,omitempty"`
    43  }
    44  
    45  func (x *Config) Reset() {
    46  	*x = Config{}
    47  	if protoimpl.UnsafeEnabled {
    48  		mi := &file_transport_internet_domainsocket_config_proto_msgTypes[0]
    49  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    50  		ms.StoreMessageInfo(mi)
    51  	}
    52  }
    53  
    54  func (x *Config) String() string {
    55  	return protoimpl.X.MessageStringOf(x)
    56  }
    57  
    58  func (*Config) ProtoMessage() {}
    59  
    60  func (x *Config) ProtoReflect() protoreflect.Message {
    61  	mi := &file_transport_internet_domainsocket_config_proto_msgTypes[0]
    62  	if protoimpl.UnsafeEnabled && x != nil {
    63  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    64  		if ms.LoadMessageInfo() == nil {
    65  			ms.StoreMessageInfo(mi)
    66  		}
    67  		return ms
    68  	}
    69  	return mi.MessageOf(x)
    70  }
    71  
    72  // Deprecated: Use Config.ProtoReflect.Descriptor instead.
    73  func (*Config) Descriptor() ([]byte, []int) {
    74  	return file_transport_internet_domainsocket_config_proto_rawDescGZIP(), []int{0}
    75  }
    76  
    77  func (x *Config) GetPath() string {
    78  	if x != nil {
    79  		return x.Path
    80  	}
    81  	return ""
    82  }
    83  
    84  func (x *Config) GetAbstract() bool {
    85  	if x != nil {
    86  		return x.Abstract
    87  	}
    88  	return false
    89  }
    90  
    91  func (x *Config) GetPadding() bool {
    92  	if x != nil {
    93  		return x.Padding
    94  	}
    95  	return false
    96  }
    97  
    98  var File_transport_internet_domainsocket_config_proto protoreflect.FileDescriptor
    99  
   100  var file_transport_internet_domainsocket_config_proto_rawDesc = []byte{
   101  	0x0a, 0x2c, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65,
   102  	0x72, 0x6e, 0x65, 0x74, 0x2f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x6f, 0x63, 0x6b, 0x65,
   103  	0x74, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x24,
   104  	0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69,
   105  	0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x6f,
   106  	0x63, 0x6b, 0x65, 0x74, 0x22, 0x52, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12,
   107  	0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61,
   108  	0x74, 0x68, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x62, 0x73, 0x74, 0x72, 0x61, 0x63, 0x74, 0x18, 0x02,
   109  	0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x61, 0x62, 0x73, 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, 0x18,
   110  	0x0a, 0x07, 0x70, 0x61, 0x64, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52,
   111  	0x07, 0x70, 0x61, 0x64, 0x64, 0x69, 0x6e, 0x67, 0x42, 0x8e, 0x01, 0x0a, 0x28, 0x63, 0x6f, 0x6d,
   112  	0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e,
   113  	0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73,
   114  	0x6f, 0x63, 0x6b, 0x65, 0x74, 0x50, 0x01, 0x5a, 0x39, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e,
   115  	0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f,
   116  	0x72, 0x65, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74,
   117  	0x65, 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x6f, 0x63, 0x6b,
   118  	0x65, 0x74, 0xaa, 0x02, 0x24, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70,
   119  	0x6f, 0x72, 0x74, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x44, 0x6f, 0x6d,
   120  	0x61, 0x69, 0x6e, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   121  	0x33,
   122  }
   123  
   124  var (
   125  	file_transport_internet_domainsocket_config_proto_rawDescOnce sync.Once
   126  	file_transport_internet_domainsocket_config_proto_rawDescData = file_transport_internet_domainsocket_config_proto_rawDesc
   127  )
   128  
   129  func file_transport_internet_domainsocket_config_proto_rawDescGZIP() []byte {
   130  	file_transport_internet_domainsocket_config_proto_rawDescOnce.Do(func() {
   131  		file_transport_internet_domainsocket_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_transport_internet_domainsocket_config_proto_rawDescData)
   132  	})
   133  	return file_transport_internet_domainsocket_config_proto_rawDescData
   134  }
   135  
   136  var file_transport_internet_domainsocket_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   137  var file_transport_internet_domainsocket_config_proto_goTypes = []interface{}{
   138  	(*Config)(nil), // 0: xray.transport.internet.domainsocket.Config
   139  }
   140  var file_transport_internet_domainsocket_config_proto_depIdxs = []int32{
   141  	0, // [0:0] is the sub-list for method output_type
   142  	0, // [0:0] is the sub-list for method input_type
   143  	0, // [0:0] is the sub-list for extension type_name
   144  	0, // [0:0] is the sub-list for extension extendee
   145  	0, // [0:0] is the sub-list for field type_name
   146  }
   147  
   148  func init() { file_transport_internet_domainsocket_config_proto_init() }
   149  func file_transport_internet_domainsocket_config_proto_init() {
   150  	if File_transport_internet_domainsocket_config_proto != nil {
   151  		return
   152  	}
   153  	if !protoimpl.UnsafeEnabled {
   154  		file_transport_internet_domainsocket_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   155  			switch v := v.(*Config); i {
   156  			case 0:
   157  				return &v.state
   158  			case 1:
   159  				return &v.sizeCache
   160  			case 2:
   161  				return &v.unknownFields
   162  			default:
   163  				return nil
   164  			}
   165  		}
   166  	}
   167  	type x struct{}
   168  	out := protoimpl.TypeBuilder{
   169  		File: protoimpl.DescBuilder{
   170  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   171  			RawDescriptor: file_transport_internet_domainsocket_config_proto_rawDesc,
   172  			NumEnums:      0,
   173  			NumMessages:   1,
   174  			NumExtensions: 0,
   175  			NumServices:   0,
   176  		},
   177  		GoTypes:           file_transport_internet_domainsocket_config_proto_goTypes,
   178  		DependencyIndexes: file_transport_internet_domainsocket_config_proto_depIdxs,
   179  		MessageInfos:      file_transport_internet_domainsocket_config_proto_msgTypes,
   180  	}.Build()
   181  	File_transport_internet_domainsocket_config_proto = out.File
   182  	file_transport_internet_domainsocket_config_proto_rawDesc = nil
   183  	file_transport_internet_domainsocket_config_proto_goTypes = nil
   184  	file_transport_internet_domainsocket_config_proto_depIdxs = nil
   185  }