destination.pb.go 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.27.1
  4. // protoc v3.15.6
  5. // source: common/net/destination.proto
  6. package net
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. reflect "reflect"
  11. sync "sync"
  12. )
  13. const (
  14. // Verify that this generated code is sufficiently up-to-date.
  15. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  16. // Verify that runtime/protoimpl is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  18. )
  19. // Endpoint of a network connection.
  20. type Endpoint struct {
  21. state protoimpl.MessageState
  22. sizeCache protoimpl.SizeCache
  23. unknownFields protoimpl.UnknownFields
  24. Network Network `protobuf:"varint,1,opt,name=network,proto3,enum=v2ray.core.common.net.Network" json:"network,omitempty"`
  25. Address *IPOrDomain `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
  26. Port uint32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"`
  27. }
  28. func (x *Endpoint) Reset() {
  29. *x = Endpoint{}
  30. if protoimpl.UnsafeEnabled {
  31. mi := &file_common_net_destination_proto_msgTypes[0]
  32. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  33. ms.StoreMessageInfo(mi)
  34. }
  35. }
  36. func (x *Endpoint) String() string {
  37. return protoimpl.X.MessageStringOf(x)
  38. }
  39. func (*Endpoint) ProtoMessage() {}
  40. func (x *Endpoint) ProtoReflect() protoreflect.Message {
  41. mi := &file_common_net_destination_proto_msgTypes[0]
  42. if protoimpl.UnsafeEnabled && x != nil {
  43. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  44. if ms.LoadMessageInfo() == nil {
  45. ms.StoreMessageInfo(mi)
  46. }
  47. return ms
  48. }
  49. return mi.MessageOf(x)
  50. }
  51. // Deprecated: Use Endpoint.ProtoReflect.Descriptor instead.
  52. func (*Endpoint) Descriptor() ([]byte, []int) {
  53. return file_common_net_destination_proto_rawDescGZIP(), []int{0}
  54. }
  55. func (x *Endpoint) GetNetwork() Network {
  56. if x != nil {
  57. return x.Network
  58. }
  59. return Network_Unknown
  60. }
  61. func (x *Endpoint) GetAddress() *IPOrDomain {
  62. if x != nil {
  63. return x.Address
  64. }
  65. return nil
  66. }
  67. func (x *Endpoint) GetPort() uint32 {
  68. if x != nil {
  69. return x.Port
  70. }
  71. return 0
  72. }
  73. var File_common_net_destination_proto protoreflect.FileDescriptor
  74. var file_common_net_destination_proto_rawDesc = []byte{
  75. 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x64, 0x65, 0x73,
  76. 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15,
  77. 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f,
  78. 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x1a, 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65,
  79. 0x74, 0x2f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
  80. 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x61, 0x64, 0x64, 0x72,
  81. 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x95, 0x01, 0x0a, 0x08, 0x45, 0x6e,
  82. 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x38, 0x0a, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72,
  83. 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e,
  84. 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e,
  85. 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b,
  86. 0x12, 0x3b, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28,
  87. 0x0b, 0x32, 0x21, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63,
  88. 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x49, 0x50, 0x4f, 0x72, 0x44, 0x6f,
  89. 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a,
  90. 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72,
  91. 0x74, 0x42, 0x60, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63,
  92. 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x50, 0x01,
  93. 0x5a, 0x29, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66,
  94. 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x34,
  95. 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0xaa, 0x02, 0x15, 0x56, 0x32,
  96. 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e,
  97. 0x4e, 0x65, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  98. }
  99. var (
  100. file_common_net_destination_proto_rawDescOnce sync.Once
  101. file_common_net_destination_proto_rawDescData = file_common_net_destination_proto_rawDesc
  102. )
  103. func file_common_net_destination_proto_rawDescGZIP() []byte {
  104. file_common_net_destination_proto_rawDescOnce.Do(func() {
  105. file_common_net_destination_proto_rawDescData = protoimpl.X.CompressGZIP(file_common_net_destination_proto_rawDescData)
  106. })
  107. return file_common_net_destination_proto_rawDescData
  108. }
  109. var file_common_net_destination_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  110. var file_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_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_common_net_destination_proto_init() }
  125. func file_common_net_destination_proto_init() {
  126. if File_common_net_destination_proto != nil {
  127. return
  128. }
  129. file_common_net_network_proto_init()
  130. file_common_net_address_proto_init()
  131. if !protoimpl.UnsafeEnabled {
  132. file_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_common_net_destination_proto_rawDesc,
  150. NumEnums: 0,
  151. NumMessages: 1,
  152. NumExtensions: 0,
  153. NumServices: 0,
  154. },
  155. GoTypes: file_common_net_destination_proto_goTypes,
  156. DependencyIndexes: file_common_net_destination_proto_depIdxs,
  157. MessageInfos: file_common_net_destination_proto_msgTypes,
  158. }.Build()
  159. File_common_net_destination_proto = out.File
  160. file_common_net_destination_proto_rawDesc = nil
  161. file_common_net_destination_proto_goTypes = nil
  162. file_common_net_destination_proto_depIdxs = nil
  163. }