destination.pb.go 7.1 KB

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