server_spec.pb.go 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.36.11
  4. // protoc v6.33.5
  5. // source: common/protocol/server_spec.proto
  6. package protocol
  7. import (
  8. net "github.com/xtls/xray-core/common/net"
  9. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  10. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  11. reflect "reflect"
  12. sync "sync"
  13. unsafe "unsafe"
  14. )
  15. const (
  16. // Verify that this generated code is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  18. // Verify that runtime/protoimpl is sufficiently up-to-date.
  19. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  20. )
  21. type ServerEndpoint struct {
  22. state protoimpl.MessageState `protogen:"open.v1"`
  23. Address *net.IPOrDomain `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
  24. Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
  25. User *User `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"`
  26. unknownFields protoimpl.UnknownFields
  27. sizeCache protoimpl.SizeCache
  28. }
  29. func (x *ServerEndpoint) Reset() {
  30. *x = ServerEndpoint{}
  31. mi := &file_common_protocol_server_spec_proto_msgTypes[0]
  32. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  33. ms.StoreMessageInfo(mi)
  34. }
  35. func (x *ServerEndpoint) String() string {
  36. return protoimpl.X.MessageStringOf(x)
  37. }
  38. func (*ServerEndpoint) ProtoMessage() {}
  39. func (x *ServerEndpoint) ProtoReflect() protoreflect.Message {
  40. mi := &file_common_protocol_server_spec_proto_msgTypes[0]
  41. if x != nil {
  42. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  43. if ms.LoadMessageInfo() == nil {
  44. ms.StoreMessageInfo(mi)
  45. }
  46. return ms
  47. }
  48. return mi.MessageOf(x)
  49. }
  50. // Deprecated: Use ServerEndpoint.ProtoReflect.Descriptor instead.
  51. func (*ServerEndpoint) Descriptor() ([]byte, []int) {
  52. return file_common_protocol_server_spec_proto_rawDescGZIP(), []int{0}
  53. }
  54. func (x *ServerEndpoint) GetAddress() *net.IPOrDomain {
  55. if x != nil {
  56. return x.Address
  57. }
  58. return nil
  59. }
  60. func (x *ServerEndpoint) GetPort() uint32 {
  61. if x != nil {
  62. return x.Port
  63. }
  64. return 0
  65. }
  66. func (x *ServerEndpoint) GetUser() *User {
  67. if x != nil {
  68. return x.User
  69. }
  70. return nil
  71. }
  72. var File_common_protocol_server_spec_proto protoreflect.FileDescriptor
  73. const file_common_protocol_server_spec_proto_rawDesc = "" +
  74. "\n" +
  75. "!common/protocol/server_spec.proto\x12\x14xray.common.protocol\x1a\x18common/net/address.proto\x1a\x1acommon/protocol/user.proto\"\x8b\x01\n" +
  76. "\x0eServerEndpoint\x125\n" +
  77. "\aaddress\x18\x01 \x01(\v2\x1b.xray.common.net.IPOrDomainR\aaddress\x12\x12\n" +
  78. "\x04port\x18\x02 \x01(\rR\x04port\x12.\n" +
  79. "\x04user\x18\x03 \x01(\v2\x1a.xray.common.protocol.UserR\x04userB^\n" +
  80. "\x18com.xray.common.protocolP\x01Z)github.com/xtls/xray-core/common/protocol\xaa\x02\x14Xray.Common.Protocolb\x06proto3"
  81. var (
  82. file_common_protocol_server_spec_proto_rawDescOnce sync.Once
  83. file_common_protocol_server_spec_proto_rawDescData []byte
  84. )
  85. func file_common_protocol_server_spec_proto_rawDescGZIP() []byte {
  86. file_common_protocol_server_spec_proto_rawDescOnce.Do(func() {
  87. file_common_protocol_server_spec_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_common_protocol_server_spec_proto_rawDesc), len(file_common_protocol_server_spec_proto_rawDesc)))
  88. })
  89. return file_common_protocol_server_spec_proto_rawDescData
  90. }
  91. var file_common_protocol_server_spec_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  92. var file_common_protocol_server_spec_proto_goTypes = []any{
  93. (*ServerEndpoint)(nil), // 0: xray.common.protocol.ServerEndpoint
  94. (*net.IPOrDomain)(nil), // 1: xray.common.net.IPOrDomain
  95. (*User)(nil), // 2: xray.common.protocol.User
  96. }
  97. var file_common_protocol_server_spec_proto_depIdxs = []int32{
  98. 1, // 0: xray.common.protocol.ServerEndpoint.address:type_name -> xray.common.net.IPOrDomain
  99. 2, // 1: xray.common.protocol.ServerEndpoint.user:type_name -> xray.common.protocol.User
  100. 2, // [2:2] is the sub-list for method output_type
  101. 2, // [2:2] is the sub-list for method input_type
  102. 2, // [2:2] is the sub-list for extension type_name
  103. 2, // [2:2] is the sub-list for extension extendee
  104. 0, // [0:2] is the sub-list for field type_name
  105. }
  106. func init() { file_common_protocol_server_spec_proto_init() }
  107. func file_common_protocol_server_spec_proto_init() {
  108. if File_common_protocol_server_spec_proto != nil {
  109. return
  110. }
  111. file_common_protocol_user_proto_init()
  112. type x struct{}
  113. out := protoimpl.TypeBuilder{
  114. File: protoimpl.DescBuilder{
  115. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  116. RawDescriptor: unsafe.Slice(unsafe.StringData(file_common_protocol_server_spec_proto_rawDesc), len(file_common_protocol_server_spec_proto_rawDesc)),
  117. NumEnums: 0,
  118. NumMessages: 1,
  119. NumExtensions: 0,
  120. NumServices: 0,
  121. },
  122. GoTypes: file_common_protocol_server_spec_proto_goTypes,
  123. DependencyIndexes: file_common_protocol_server_spec_proto_depIdxs,
  124. MessageInfos: file_common_protocol_server_spec_proto_msgTypes,
  125. }.Build()
  126. File_common_protocol_server_spec_proto = out.File
  127. file_common_protocol_server_spec_proto_goTypes = nil
  128. file_common_protocol_server_spec_proto_depIdxs = nil
  129. }