server_spec.pb.go 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. package protocol
  2. import (
  3. net "github.com/v2fly/v2ray-core/v5/common/net"
  4. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  5. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  6. reflect "reflect"
  7. sync "sync"
  8. unsafe "unsafe"
  9. )
  10. const (
  11. // Verify that this generated code is sufficiently up-to-date.
  12. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  13. // Verify that runtime/protoimpl is sufficiently up-to-date.
  14. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  15. )
  16. type ServerEndpoint struct {
  17. state protoimpl.MessageState `protogen:"open.v1"`
  18. Address *net.IPOrDomain `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
  19. Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
  20. User []*User `protobuf:"bytes,3,rep,name=user,proto3" json:"user,omitempty"`
  21. unknownFields protoimpl.UnknownFields
  22. sizeCache protoimpl.SizeCache
  23. }
  24. func (x *ServerEndpoint) Reset() {
  25. *x = ServerEndpoint{}
  26. mi := &file_common_protocol_server_spec_proto_msgTypes[0]
  27. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  28. ms.StoreMessageInfo(mi)
  29. }
  30. func (x *ServerEndpoint) String() string {
  31. return protoimpl.X.MessageStringOf(x)
  32. }
  33. func (*ServerEndpoint) ProtoMessage() {}
  34. func (x *ServerEndpoint) ProtoReflect() protoreflect.Message {
  35. mi := &file_common_protocol_server_spec_proto_msgTypes[0]
  36. if x != nil {
  37. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  38. if ms.LoadMessageInfo() == nil {
  39. ms.StoreMessageInfo(mi)
  40. }
  41. return ms
  42. }
  43. return mi.MessageOf(x)
  44. }
  45. // Deprecated: Use ServerEndpoint.ProtoReflect.Descriptor instead.
  46. func (*ServerEndpoint) Descriptor() ([]byte, []int) {
  47. return file_common_protocol_server_spec_proto_rawDescGZIP(), []int{0}
  48. }
  49. func (x *ServerEndpoint) GetAddress() *net.IPOrDomain {
  50. if x != nil {
  51. return x.Address
  52. }
  53. return nil
  54. }
  55. func (x *ServerEndpoint) GetPort() uint32 {
  56. if x != nil {
  57. return x.Port
  58. }
  59. return 0
  60. }
  61. func (x *ServerEndpoint) GetUser() []*User {
  62. if x != nil {
  63. return x.User
  64. }
  65. return nil
  66. }
  67. var File_common_protocol_server_spec_proto protoreflect.FileDescriptor
  68. var file_common_protocol_server_spec_proto_rawDesc = string([]byte{
  69. 0x0a, 0x21, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f,
  70. 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x70, 0x72,
  71. 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e,
  72. 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x1a,
  73. 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x61, 0x64, 0x64, 0x72,
  74. 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x63, 0x6f, 0x6d, 0x6d, 0x6f,
  75. 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2e,
  76. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x97, 0x01, 0x0a, 0x0e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72,
  77. 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x3b, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72,
  78. 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x76, 0x32, 0x72, 0x61,
  79. 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65,
  80. 0x74, 0x2e, 0x49, 0x50, 0x4f, 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x07, 0x61, 0x64,
  81. 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20,
  82. 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x34, 0x0a, 0x04, 0x75, 0x73, 0x65,
  83. 0x72, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e,
  84. 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  85. 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x42,
  86. 0x6f, 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
  87. 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f,
  88. 0x6c, 0x50, 0x01, 0x5a, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
  89. 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65,
  90. 0x2f, 0x76, 0x35, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  91. 0x63, 0x6f, 0x6c, 0xaa, 0x02, 0x1a, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65,
  92. 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c,
  93. 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  94. })
  95. var (
  96. file_common_protocol_server_spec_proto_rawDescOnce sync.Once
  97. file_common_protocol_server_spec_proto_rawDescData []byte
  98. )
  99. func file_common_protocol_server_spec_proto_rawDescGZIP() []byte {
  100. file_common_protocol_server_spec_proto_rawDescOnce.Do(func() {
  101. 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)))
  102. })
  103. return file_common_protocol_server_spec_proto_rawDescData
  104. }
  105. var file_common_protocol_server_spec_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  106. var file_common_protocol_server_spec_proto_goTypes = []any{
  107. (*ServerEndpoint)(nil), // 0: v2ray.core.common.protocol.ServerEndpoint
  108. (*net.IPOrDomain)(nil), // 1: v2ray.core.common.net.IPOrDomain
  109. (*User)(nil), // 2: v2ray.core.common.protocol.User
  110. }
  111. var file_common_protocol_server_spec_proto_depIdxs = []int32{
  112. 1, // 0: v2ray.core.common.protocol.ServerEndpoint.address:type_name -> v2ray.core.common.net.IPOrDomain
  113. 2, // 1: v2ray.core.common.protocol.ServerEndpoint.user:type_name -> v2ray.core.common.protocol.User
  114. 2, // [2:2] is the sub-list for method output_type
  115. 2, // [2:2] is the sub-list for method input_type
  116. 2, // [2:2] is the sub-list for extension type_name
  117. 2, // [2:2] is the sub-list for extension extendee
  118. 0, // [0:2] is the sub-list for field type_name
  119. }
  120. func init() { file_common_protocol_server_spec_proto_init() }
  121. func file_common_protocol_server_spec_proto_init() {
  122. if File_common_protocol_server_spec_proto != nil {
  123. return
  124. }
  125. file_common_protocol_user_proto_init()
  126. type x struct{}
  127. out := protoimpl.TypeBuilder{
  128. File: protoimpl.DescBuilder{
  129. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  130. RawDescriptor: unsafe.Slice(unsafe.StringData(file_common_protocol_server_spec_proto_rawDesc), len(file_common_protocol_server_spec_proto_rawDesc)),
  131. NumEnums: 0,
  132. NumMessages: 1,
  133. NumExtensions: 0,
  134. NumServices: 0,
  135. },
  136. GoTypes: file_common_protocol_server_spec_proto_goTypes,
  137. DependencyIndexes: file_common_protocol_server_spec_proto_depIdxs,
  138. MessageInfos: file_common_protocol_server_spec_proto_msgTypes,
  139. }.Build()
  140. File_common_protocol_server_spec_proto = out.File
  141. file_common_protocol_server_spec_proto_goTypes = nil
  142. file_common_protocol_server_spec_proto_depIdxs = nil
  143. }