destination.pb.go 6.5 KB

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