github.com/v2fly/v2ray-core/v5@v5.16.2-0.20240507031116-8191faa6e095/transport/internet/domainsocket/config.pb.go (about) 1 package domainsocket 2 3 import ( 4 _ "github.com/v2fly/v2ray-core/v5/common/protoext" 5 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 6 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 7 reflect "reflect" 8 sync "sync" 9 ) 10 11 const ( 12 // Verify that this generated code is sufficiently up-to-date. 13 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 14 // Verify that runtime/protoimpl is sufficiently up-to-date. 15 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 16 ) 17 18 type Config struct { 19 state protoimpl.MessageState 20 sizeCache protoimpl.SizeCache 21 unknownFields protoimpl.UnknownFields 22 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 specifies 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 35 func (x *Config) Reset() { 36 *x = Config{} 37 if protoimpl.UnsafeEnabled { 38 mi := &file_transport_internet_domainsocket_config_proto_msgTypes[0] 39 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 40 ms.StoreMessageInfo(mi) 41 } 42 } 43 44 func (x *Config) String() string { 45 return protoimpl.X.MessageStringOf(x) 46 } 47 48 func (*Config) ProtoMessage() {} 49 50 func (x *Config) ProtoReflect() protoreflect.Message { 51 mi := &file_transport_internet_domainsocket_config_proto_msgTypes[0] 52 if protoimpl.UnsafeEnabled && x != nil { 53 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 54 if ms.LoadMessageInfo() == nil { 55 ms.StoreMessageInfo(mi) 56 } 57 return ms 58 } 59 return mi.MessageOf(x) 60 } 61 62 // Deprecated: Use Config.ProtoReflect.Descriptor instead. 63 func (*Config) Descriptor() ([]byte, []int) { 64 return file_transport_internet_domainsocket_config_proto_rawDescGZIP(), []int{0} 65 } 66 67 func (x *Config) GetPath() string { 68 if x != nil { 69 return x.Path 70 } 71 return "" 72 } 73 74 func (x *Config) GetAbstract() bool { 75 if x != nil { 76 return x.Abstract 77 } 78 return false 79 } 80 81 func (x *Config) GetPadding() bool { 82 if x != nil { 83 return x.Padding 84 } 85 return false 86 } 87 88 var File_transport_internet_domainsocket_config_proto protoreflect.FileDescriptor 89 90 var file_transport_internet_domainsocket_config_proto_rawDesc = []byte{ 91 0x0a, 0x2c, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 92 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x6f, 0x63, 0x6b, 0x65, 93 0x74, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x2a, 94 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 95 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x64, 0x6f, 96 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 97 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65, 98 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x71, 0x0a, 0x06, 99 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 100 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x62, 101 0x73, 0x74, 0x72, 0x61, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x61, 0x62, 102 0x73, 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x64, 0x64, 0x69, 0x6e, 103 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x70, 0x61, 0x64, 0x64, 0x69, 0x6e, 0x67, 104 0x3a, 0x1d, 0x82, 0xb5, 0x18, 0x19, 0x0a, 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 105 0x74, 0x12, 0x0c, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x42, 106 0x9f, 0x01, 0x0a, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 107 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 108 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x6f, 0x63, 0x6b, 109 0x65, 0x74, 0x50, 0x01, 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 110 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 111 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 112 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x6f, 113 0x63, 0x6b, 0x65, 0x74, 0xaa, 0x02, 0x2a, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 114 0x65, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x49, 0x6e, 0x74, 0x65, 115 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x6f, 0x63, 0x6b, 0x65, 116 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 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: v2ray.core.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 }