destination.pb.go 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.28.1
  4. // protoc v3.21.12
  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. 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, 0x0f,
  77. 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x1a,
  78. 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x6e, 0x65, 0x74, 0x77,
  79. 0x6f, 0x72, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f,
  80. 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72,
  81. 0x6f, 0x74, 0x6f, 0x22, 0x89, 0x01, 0x0a, 0x08, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74,
  82. 0x12, 0x32, 0x0a, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28,
  83. 0x0e, 0x32, 0x18, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e,
  84. 0x6e, 0x65, 0x74, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x07, 0x6e, 0x65, 0x74,
  85. 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x35, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18,
  86. 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d,
  87. 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x49, 0x50, 0x4f, 0x72, 0x44, 0x6f, 0x6d, 0x61,
  88. 0x69, 0x6e, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70,
  89. 0x6f, 0x72, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x42,
  90. 0x4f, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d,
  91. 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x50, 0x01, 0x5a, 0x24, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62,
  92. 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63,
  93. 0x6f, 0x72, 0x65, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0xaa, 0x02,
  94. 0x0f, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x4e, 0x65, 0x74,
  95. 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  96. }
  97. var (
  98. file_common_net_destination_proto_rawDescOnce sync.Once
  99. file_common_net_destination_proto_rawDescData = file_common_net_destination_proto_rawDesc
  100. )
  101. func file_common_net_destination_proto_rawDescGZIP() []byte {
  102. file_common_net_destination_proto_rawDescOnce.Do(func() {
  103. file_common_net_destination_proto_rawDescData = protoimpl.X.CompressGZIP(file_common_net_destination_proto_rawDescData)
  104. })
  105. return file_common_net_destination_proto_rawDescData
  106. }
  107. var file_common_net_destination_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  108. var file_common_net_destination_proto_goTypes = []interface{}{
  109. (*Endpoint)(nil), // 0: xray.common.net.Endpoint
  110. (Network)(0), // 1: xray.common.net.Network
  111. (*IPOrDomain)(nil), // 2: xray.common.net.IPOrDomain
  112. }
  113. var file_common_net_destination_proto_depIdxs = []int32{
  114. 1, // 0: xray.common.net.Endpoint.network:type_name -> xray.common.net.Network
  115. 2, // 1: xray.common.net.Endpoint.address:type_name -> xray.common.net.IPOrDomain
  116. 2, // [2:2] is the sub-list for method output_type
  117. 2, // [2:2] is the sub-list for method input_type
  118. 2, // [2:2] is the sub-list for extension type_name
  119. 2, // [2:2] is the sub-list for extension extendee
  120. 0, // [0:2] is the sub-list for field type_name
  121. }
  122. func init() { file_common_net_destination_proto_init() }
  123. func file_common_net_destination_proto_init() {
  124. if File_common_net_destination_proto != nil {
  125. return
  126. }
  127. file_common_net_network_proto_init()
  128. file_common_net_address_proto_init()
  129. if !protoimpl.UnsafeEnabled {
  130. file_common_net_destination_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  131. switch v := v.(*Endpoint); i {
  132. case 0:
  133. return &v.state
  134. case 1:
  135. return &v.sizeCache
  136. case 2:
  137. return &v.unknownFields
  138. default:
  139. return nil
  140. }
  141. }
  142. }
  143. type x struct{}
  144. out := protoimpl.TypeBuilder{
  145. File: protoimpl.DescBuilder{
  146. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  147. RawDescriptor: file_common_net_destination_proto_rawDesc,
  148. NumEnums: 0,
  149. NumMessages: 1,
  150. NumExtensions: 0,
  151. NumServices: 0,
  152. },
  153. GoTypes: file_common_net_destination_proto_goTypes,
  154. DependencyIndexes: file_common_net_destination_proto_depIdxs,
  155. MessageInfos: file_common_net_destination_proto_msgTypes,
  156. }.Build()
  157. File_common_net_destination_proto = out.File
  158. file_common_net_destination_proto_rawDesc = nil
  159. file_common_net_destination_proto_goTypes = nil
  160. file_common_net_destination_proto_depIdxs = nil
  161. }