github.com/EagleQL/Xray-core@v1.4.3/common/protocol/server_spec.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: common/protocol/server_spec.proto 6 7 package protocol 8 9 import ( 10 proto "github.com/golang/protobuf/proto" 11 net "github.com/xtls/xray-core/common/net" 12 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 13 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 14 reflect "reflect" 15 sync "sync" 16 ) 17 18 const ( 19 // Verify that this generated code is sufficiently up-to-date. 20 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 21 // Verify that runtime/protoimpl is sufficiently up-to-date. 22 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 23 ) 24 25 // This is a compile-time assertion that a sufficiently up-to-date version 26 // of the legacy proto package is being used. 27 const _ = proto.ProtoPackageIsVersion4 28 29 type ServerEndpoint struct { 30 state protoimpl.MessageState 31 sizeCache protoimpl.SizeCache 32 unknownFields protoimpl.UnknownFields 33 34 Address *net.IPOrDomain `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` 35 Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` 36 User []*User `protobuf:"bytes,3,rep,name=user,proto3" json:"user,omitempty"` 37 } 38 39 func (x *ServerEndpoint) Reset() { 40 *x = ServerEndpoint{} 41 if protoimpl.UnsafeEnabled { 42 mi := &file_common_protocol_server_spec_proto_msgTypes[0] 43 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 44 ms.StoreMessageInfo(mi) 45 } 46 } 47 48 func (x *ServerEndpoint) String() string { 49 return protoimpl.X.MessageStringOf(x) 50 } 51 52 func (*ServerEndpoint) ProtoMessage() {} 53 54 func (x *ServerEndpoint) ProtoReflect() protoreflect.Message { 55 mi := &file_common_protocol_server_spec_proto_msgTypes[0] 56 if protoimpl.UnsafeEnabled && x != nil { 57 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 58 if ms.LoadMessageInfo() == nil { 59 ms.StoreMessageInfo(mi) 60 } 61 return ms 62 } 63 return mi.MessageOf(x) 64 } 65 66 // Deprecated: Use ServerEndpoint.ProtoReflect.Descriptor instead. 67 func (*ServerEndpoint) Descriptor() ([]byte, []int) { 68 return file_common_protocol_server_spec_proto_rawDescGZIP(), []int{0} 69 } 70 71 func (x *ServerEndpoint) GetAddress() *net.IPOrDomain { 72 if x != nil { 73 return x.Address 74 } 75 return nil 76 } 77 78 func (x *ServerEndpoint) GetPort() uint32 { 79 if x != nil { 80 return x.Port 81 } 82 return 0 83 } 84 85 func (x *ServerEndpoint) GetUser() []*User { 86 if x != nil { 87 return x.User 88 } 89 return nil 90 } 91 92 var File_common_protocol_server_spec_proto protoreflect.FileDescriptor 93 94 var file_common_protocol_server_spec_proto_rawDesc = []byte{ 95 0x0a, 0x21, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 96 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x70, 0x72, 97 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 98 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x1a, 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 99 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 100 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 101 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 102 0x8b, 0x01, 0x0a, 0x0e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 103 0x6e, 0x74, 0x12, 0x35, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 104 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 105 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x49, 0x50, 0x4f, 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 106 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 107 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x2e, 0x0a, 108 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x78, 0x72, 109 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 110 0x6f, 0x6c, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x42, 0x5e, 0x0a, 111 0x18, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 112 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x50, 0x01, 0x5a, 0x29, 0x67, 0x69, 0x74, 113 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61, 114 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 115 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0xaa, 0x02, 0x14, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x43, 0x6f, 116 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x62, 0x06, 0x70, 117 0x72, 0x6f, 0x74, 0x6f, 0x33, 118 } 119 120 var ( 121 file_common_protocol_server_spec_proto_rawDescOnce sync.Once 122 file_common_protocol_server_spec_proto_rawDescData = file_common_protocol_server_spec_proto_rawDesc 123 ) 124 125 func file_common_protocol_server_spec_proto_rawDescGZIP() []byte { 126 file_common_protocol_server_spec_proto_rawDescOnce.Do(func() { 127 file_common_protocol_server_spec_proto_rawDescData = protoimpl.X.CompressGZIP(file_common_protocol_server_spec_proto_rawDescData) 128 }) 129 return file_common_protocol_server_spec_proto_rawDescData 130 } 131 132 var file_common_protocol_server_spec_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 133 var file_common_protocol_server_spec_proto_goTypes = []interface{}{ 134 (*ServerEndpoint)(nil), // 0: xray.common.protocol.ServerEndpoint 135 (*net.IPOrDomain)(nil), // 1: xray.common.net.IPOrDomain 136 (*User)(nil), // 2: xray.common.protocol.User 137 } 138 var file_common_protocol_server_spec_proto_depIdxs = []int32{ 139 1, // 0: xray.common.protocol.ServerEndpoint.address:type_name -> xray.common.net.IPOrDomain 140 2, // 1: xray.common.protocol.ServerEndpoint.user:type_name -> xray.common.protocol.User 141 2, // [2:2] is the sub-list for method output_type 142 2, // [2:2] is the sub-list for method input_type 143 2, // [2:2] is the sub-list for extension type_name 144 2, // [2:2] is the sub-list for extension extendee 145 0, // [0:2] is the sub-list for field type_name 146 } 147 148 func init() { file_common_protocol_server_spec_proto_init() } 149 func file_common_protocol_server_spec_proto_init() { 150 if File_common_protocol_server_spec_proto != nil { 151 return 152 } 153 file_common_protocol_user_proto_init() 154 if !protoimpl.UnsafeEnabled { 155 file_common_protocol_server_spec_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 156 switch v := v.(*ServerEndpoint); i { 157 case 0: 158 return &v.state 159 case 1: 160 return &v.sizeCache 161 case 2: 162 return &v.unknownFields 163 default: 164 return nil 165 } 166 } 167 } 168 type x struct{} 169 out := protoimpl.TypeBuilder{ 170 File: protoimpl.DescBuilder{ 171 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 172 RawDescriptor: file_common_protocol_server_spec_proto_rawDesc, 173 NumEnums: 0, 174 NumMessages: 1, 175 NumExtensions: 0, 176 NumServices: 0, 177 }, 178 GoTypes: file_common_protocol_server_spec_proto_goTypes, 179 DependencyIndexes: file_common_protocol_server_spec_proto_depIdxs, 180 MessageInfos: file_common_protocol_server_spec_proto_msgTypes, 181 }.Build() 182 File_common_protocol_server_spec_proto = out.File 183 file_common_protocol_server_spec_proto_rawDesc = nil 184 file_common_protocol_server_spec_proto_goTypes = nil 185 file_common_protocol_server_spec_proto_depIdxs = nil 186 }