github.com/xmplusdev/xmcore@v1.8.11-0.20240412132628-5518b55526af/transport/internet/domainsocket/config.pb.go (about)

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