server_spec.pb.go 7.2 KB

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