destination.pb.go 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. package net
  2. import (
  3. proto "github.com/golang/protobuf/proto"
  4. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  5. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  6. reflect "reflect"
  7. sync "sync"
  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. // This is a compile-time assertion that a sufficiently up-to-date version
  16. // of the legacy proto package is being used.
  17. const _ = proto.ProtoPackageIsVersion4
  18. // Endpoint of a network connection.
  19. type Endpoint struct {
  20. state protoimpl.MessageState
  21. sizeCache protoimpl.SizeCache
  22. unknownFields protoimpl.UnknownFields
  23. Network Network `protobuf:"varint,1,opt,name=network,proto3,enum=v2ray.core.common.net.Network" json:"network,omitempty"`
  24. Address *IPOrDomain `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
  25. Port uint32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"`
  26. }
  27. func (x *Endpoint) Reset() {
  28. *x = Endpoint{}
  29. if protoimpl.UnsafeEnabled {
  30. mi := &file_v2ray_com_core_common_net_destination_proto_msgTypes[0]
  31. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  32. ms.StoreMessageInfo(mi)
  33. }
  34. }
  35. func (x *Endpoint) String() string {
  36. return protoimpl.X.MessageStringOf(x)
  37. }
  38. func (*Endpoint) ProtoMessage() {}
  39. func (x *Endpoint) ProtoReflect() protoreflect.Message {
  40. mi := &file_v2ray_com_core_common_net_destination_proto_msgTypes[0]
  41. if protoimpl.UnsafeEnabled && 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 Endpoint.ProtoReflect.Descriptor instead.
  51. func (*Endpoint) Descriptor() ([]byte, []int) {
  52. return file_v2ray_com_core_common_net_destination_proto_rawDescGZIP(), []int{0}
  53. }
  54. func (x *Endpoint) GetNetwork() Network {
  55. if x != nil {
  56. return x.Network
  57. }
  58. return Network_Unknown
  59. }
  60. func (x *Endpoint) GetAddress() *IPOrDomain {
  61. if x != nil {
  62. return x.Address
  63. }
  64. return nil
  65. }
  66. func (x *Endpoint) GetPort() uint32 {
  67. if x != nil {
  68. return x.Port
  69. }
  70. return 0
  71. }
  72. var File_v2ray_com_core_common_net_destination_proto protoreflect.FileDescriptor
  73. var file_v2ray_com_core_common_net_destination_proto_rawDesc = []byte{
  74. 0x0a, 0x2b, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x65,
  75. 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x64, 0x65, 0x73, 0x74,
  76. 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x76,
  77. 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
  78. 0x2e, 0x6e, 0x65, 0x74, 0x1a, 0x27, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
  79. 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f,
  80. 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x27, 0x76,
  81. 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x63, 0x6f,
  82. 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73,
  83. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x95, 0x01, 0x0a, 0x08, 0x45, 0x6e, 0x64, 0x70, 0x6f,
  84. 0x69, 0x6e, 0x74, 0x12, 0x38, 0x0a, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x18, 0x01,
  85. 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
  86. 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x4e, 0x65, 0x74,
  87. 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x3b, 0x0a,
  88. 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21,
  89. 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d,
  90. 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x49, 0x50, 0x4f, 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69,
  91. 0x6e, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f,
  92. 0x72, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x42, 0x3a,
  93. 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65,
  94. 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x50, 0x01, 0x5a, 0x03, 0x6e,
  95. 0x65, 0x74, 0xaa, 0x02, 0x15, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e,
  96. 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x4e, 0x65, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
  97. 0x6f, 0x33,
  98. }
  99. var (
  100. file_v2ray_com_core_common_net_destination_proto_rawDescOnce sync.Once
  101. file_v2ray_com_core_common_net_destination_proto_rawDescData = file_v2ray_com_core_common_net_destination_proto_rawDesc
  102. )
  103. func file_v2ray_com_core_common_net_destination_proto_rawDescGZIP() []byte {
  104. file_v2ray_com_core_common_net_destination_proto_rawDescOnce.Do(func() {
  105. file_v2ray_com_core_common_net_destination_proto_rawDescData = protoimpl.X.CompressGZIP(file_v2ray_com_core_common_net_destination_proto_rawDescData)
  106. })
  107. return file_v2ray_com_core_common_net_destination_proto_rawDescData
  108. }
  109. var file_v2ray_com_core_common_net_destination_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  110. var file_v2ray_com_core_common_net_destination_proto_goTypes = []interface{}{
  111. (*Endpoint)(nil), // 0: v2ray.core.common.net.Endpoint
  112. (Network)(0), // 1: v2ray.core.common.net.Network
  113. (*IPOrDomain)(nil), // 2: v2ray.core.common.net.IPOrDomain
  114. }
  115. var file_v2ray_com_core_common_net_destination_proto_depIdxs = []int32{
  116. 1, // 0: v2ray.core.common.net.Endpoint.network:type_name -> v2ray.core.common.net.Network
  117. 2, // 1: v2ray.core.common.net.Endpoint.address:type_name -> v2ray.core.common.net.IPOrDomain
  118. 2, // [2:2] is the sub-list for method output_type
  119. 2, // [2:2] is the sub-list for method input_type
  120. 2, // [2:2] is the sub-list for extension type_name
  121. 2, // [2:2] is the sub-list for extension extendee
  122. 0, // [0:2] is the sub-list for field type_name
  123. }
  124. func init() { file_v2ray_com_core_common_net_destination_proto_init() }
  125. func file_v2ray_com_core_common_net_destination_proto_init() {
  126. if File_v2ray_com_core_common_net_destination_proto != nil {
  127. return
  128. }
  129. file_v2ray_com_core_common_net_network_proto_init()
  130. file_v2ray_com_core_common_net_address_proto_init()
  131. if !protoimpl.UnsafeEnabled {
  132. file_v2ray_com_core_common_net_destination_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  133. switch v := v.(*Endpoint); i {
  134. case 0:
  135. return &v.state
  136. case 1:
  137. return &v.sizeCache
  138. case 2:
  139. return &v.unknownFields
  140. default:
  141. return nil
  142. }
  143. }
  144. }
  145. type x struct{}
  146. out := protoimpl.TypeBuilder{
  147. File: protoimpl.DescBuilder{
  148. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  149. RawDescriptor: file_v2ray_com_core_common_net_destination_proto_rawDesc,
  150. NumEnums: 0,
  151. NumMessages: 1,
  152. NumExtensions: 0,
  153. NumServices: 0,
  154. },
  155. GoTypes: file_v2ray_com_core_common_net_destination_proto_goTypes,
  156. DependencyIndexes: file_v2ray_com_core_common_net_destination_proto_depIdxs,
  157. MessageInfos: file_v2ray_com_core_common_net_destination_proto_msgTypes,
  158. }.Build()
  159. File_v2ray_com_core_common_net_destination_proto = out.File
  160. file_v2ray_com_core_common_net_destination_proto_rawDesc = nil
  161. file_v2ray_com_core_common_net_destination_proto_goTypes = nil
  162. file_v2ray_com_core_common_net_destination_proto_depIdxs = nil
  163. }