destination.pb.go 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.35.1
  4. // protoc v5.28.2
  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=xray.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. mi := &file_common_net_destination_proto_msgTypes[0]
  31. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  32. ms.StoreMessageInfo(mi)
  33. }
  34. func (x *Endpoint) String() string {
  35. return protoimpl.X.MessageStringOf(x)
  36. }
  37. func (*Endpoint) ProtoMessage() {}
  38. func (x *Endpoint) ProtoReflect() protoreflect.Message {
  39. mi := &file_common_net_destination_proto_msgTypes[0]
  40. if x != nil {
  41. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  42. if ms.LoadMessageInfo() == nil {
  43. ms.StoreMessageInfo(mi)
  44. }
  45. return ms
  46. }
  47. return mi.MessageOf(x)
  48. }
  49. // Deprecated: Use Endpoint.ProtoReflect.Descriptor instead.
  50. func (*Endpoint) Descriptor() ([]byte, []int) {
  51. return file_common_net_destination_proto_rawDescGZIP(), []int{0}
  52. }
  53. func (x *Endpoint) GetNetwork() Network {
  54. if x != nil {
  55. return x.Network
  56. }
  57. return Network_Unknown
  58. }
  59. func (x *Endpoint) GetAddress() *IPOrDomain {
  60. if x != nil {
  61. return x.Address
  62. }
  63. return nil
  64. }
  65. func (x *Endpoint) GetPort() uint32 {
  66. if x != nil {
  67. return x.Port
  68. }
  69. return 0
  70. }
  71. var File_common_net_destination_proto protoreflect.FileDescriptor
  72. var file_common_net_destination_proto_rawDesc = []byte{
  73. 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x64, 0x65, 0x73,
  74. 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f,
  75. 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x1a,
  76. 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x6e, 0x65, 0x74, 0x77,
  77. 0x6f, 0x72, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f,
  78. 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72,
  79. 0x6f, 0x74, 0x6f, 0x22, 0x89, 0x01, 0x0a, 0x08, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74,
  80. 0x12, 0x32, 0x0a, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28,
  81. 0x0e, 0x32, 0x18, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e,
  82. 0x6e, 0x65, 0x74, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x07, 0x6e, 0x65, 0x74,
  83. 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x35, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18,
  84. 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d,
  85. 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x49, 0x50, 0x4f, 0x72, 0x44, 0x6f, 0x6d, 0x61,
  86. 0x69, 0x6e, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70,
  87. 0x6f, 0x72, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x42,
  88. 0x4f, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d,
  89. 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x50, 0x01, 0x5a, 0x24, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62,
  90. 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63,
  91. 0x6f, 0x72, 0x65, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0xaa, 0x02,
  92. 0x0f, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x4e, 0x65, 0x74,
  93. 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  94. }
  95. var (
  96. file_common_net_destination_proto_rawDescOnce sync.Once
  97. file_common_net_destination_proto_rawDescData = file_common_net_destination_proto_rawDesc
  98. )
  99. func file_common_net_destination_proto_rawDescGZIP() []byte {
  100. file_common_net_destination_proto_rawDescOnce.Do(func() {
  101. file_common_net_destination_proto_rawDescData = protoimpl.X.CompressGZIP(file_common_net_destination_proto_rawDescData)
  102. })
  103. return file_common_net_destination_proto_rawDescData
  104. }
  105. var file_common_net_destination_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  106. var file_common_net_destination_proto_goTypes = []any{
  107. (*Endpoint)(nil), // 0: xray.common.net.Endpoint
  108. (Network)(0), // 1: xray.common.net.Network
  109. (*IPOrDomain)(nil), // 2: xray.common.net.IPOrDomain
  110. }
  111. var file_common_net_destination_proto_depIdxs = []int32{
  112. 1, // 0: xray.common.net.Endpoint.network:type_name -> xray.common.net.Network
  113. 2, // 1: xray.common.net.Endpoint.address:type_name -> xray.common.net.IPOrDomain
  114. 2, // [2:2] is the sub-list for method output_type
  115. 2, // [2:2] is the sub-list for method input_type
  116. 2, // [2:2] is the sub-list for extension type_name
  117. 2, // [2:2] is the sub-list for extension extendee
  118. 0, // [0:2] is the sub-list for field type_name
  119. }
  120. func init() { file_common_net_destination_proto_init() }
  121. func file_common_net_destination_proto_init() {
  122. if File_common_net_destination_proto != nil {
  123. return
  124. }
  125. file_common_net_network_proto_init()
  126. file_common_net_address_proto_init()
  127. type x struct{}
  128. out := protoimpl.TypeBuilder{
  129. File: protoimpl.DescBuilder{
  130. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  131. RawDescriptor: file_common_net_destination_proto_rawDesc,
  132. NumEnums: 0,
  133. NumMessages: 1,
  134. NumExtensions: 0,
  135. NumServices: 0,
  136. },
  137. GoTypes: file_common_net_destination_proto_goTypes,
  138. DependencyIndexes: file_common_net_destination_proto_depIdxs,
  139. MessageInfos: file_common_net_destination_proto_msgTypes,
  140. }.Build()
  141. File_common_net_destination_proto = out.File
  142. file_common_net_destination_proto_rawDesc = nil
  143. file_common_net_destination_proto_goTypes = nil
  144. file_common_net_destination_proto_depIdxs = nil
  145. }