destination.pb.go 6.7 KB

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