config.pb.go 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.36.10
  4. // protoc v6.33.1
  5. // source: proxy/hysteria/config.proto
  6. package hysteria
  7. import (
  8. protocol "github.com/xtls/xray-core/common/protocol"
  9. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  10. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  11. reflect "reflect"
  12. sync "sync"
  13. unsafe "unsafe"
  14. )
  15. const (
  16. // Verify that this generated code is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  18. // Verify that runtime/protoimpl is sufficiently up-to-date.
  19. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  20. )
  21. type ClientConfig struct {
  22. state protoimpl.MessageState `protogen:"open.v1"`
  23. Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
  24. Server *protocol.ServerEndpoint `protobuf:"bytes,2,opt,name=server,proto3" json:"server,omitempty"`
  25. unknownFields protoimpl.UnknownFields
  26. sizeCache protoimpl.SizeCache
  27. }
  28. func (x *ClientConfig) Reset() {
  29. *x = ClientConfig{}
  30. mi := &file_proxy_hysteria_config_proto_msgTypes[0]
  31. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  32. ms.StoreMessageInfo(mi)
  33. }
  34. func (x *ClientConfig) String() string {
  35. return protoimpl.X.MessageStringOf(x)
  36. }
  37. func (*ClientConfig) ProtoMessage() {}
  38. func (x *ClientConfig) ProtoReflect() protoreflect.Message {
  39. mi := &file_proxy_hysteria_config_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 ClientConfig.ProtoReflect.Descriptor instead.
  50. func (*ClientConfig) Descriptor() ([]byte, []int) {
  51. return file_proxy_hysteria_config_proto_rawDescGZIP(), []int{0}
  52. }
  53. func (x *ClientConfig) GetVersion() int32 {
  54. if x != nil {
  55. return x.Version
  56. }
  57. return 0
  58. }
  59. func (x *ClientConfig) GetServer() *protocol.ServerEndpoint {
  60. if x != nil {
  61. return x.Server
  62. }
  63. return nil
  64. }
  65. var File_proxy_hysteria_config_proto protoreflect.FileDescriptor
  66. const file_proxy_hysteria_config_proto_rawDesc = "" +
  67. "\n" +
  68. "\x1bproxy/hysteria/config.proto\x12\x13xray.proxy.hysteria\x1a!common/protocol/server_spec.proto\"f\n" +
  69. "\fClientConfig\x12\x18\n" +
  70. "\aversion\x18\x01 \x01(\x05R\aversion\x12<\n" +
  71. "\x06server\x18\x02 \x01(\v2$.xray.common.protocol.ServerEndpointR\x06serverB[\n" +
  72. "\x17com.xray.proxy.hysteriaP\x01Z(github.com/xtls/xray-core/proxy/hysteria\xaa\x02\x13Xray.Proxy.Hysteriab\x06proto3"
  73. var (
  74. file_proxy_hysteria_config_proto_rawDescOnce sync.Once
  75. file_proxy_hysteria_config_proto_rawDescData []byte
  76. )
  77. func file_proxy_hysteria_config_proto_rawDescGZIP() []byte {
  78. file_proxy_hysteria_config_proto_rawDescOnce.Do(func() {
  79. file_proxy_hysteria_config_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_proxy_hysteria_config_proto_rawDesc), len(file_proxy_hysteria_config_proto_rawDesc)))
  80. })
  81. return file_proxy_hysteria_config_proto_rawDescData
  82. }
  83. var file_proxy_hysteria_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  84. var file_proxy_hysteria_config_proto_goTypes = []any{
  85. (*ClientConfig)(nil), // 0: xray.proxy.hysteria.ClientConfig
  86. (*protocol.ServerEndpoint)(nil), // 1: xray.common.protocol.ServerEndpoint
  87. }
  88. var file_proxy_hysteria_config_proto_depIdxs = []int32{
  89. 1, // 0: xray.proxy.hysteria.ClientConfig.server:type_name -> xray.common.protocol.ServerEndpoint
  90. 1, // [1:1] is the sub-list for method output_type
  91. 1, // [1:1] is the sub-list for method input_type
  92. 1, // [1:1] is the sub-list for extension type_name
  93. 1, // [1:1] is the sub-list for extension extendee
  94. 0, // [0:1] is the sub-list for field type_name
  95. }
  96. func init() { file_proxy_hysteria_config_proto_init() }
  97. func file_proxy_hysteria_config_proto_init() {
  98. if File_proxy_hysteria_config_proto != nil {
  99. return
  100. }
  101. type x struct{}
  102. out := protoimpl.TypeBuilder{
  103. File: protoimpl.DescBuilder{
  104. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  105. RawDescriptor: unsafe.Slice(unsafe.StringData(file_proxy_hysteria_config_proto_rawDesc), len(file_proxy_hysteria_config_proto_rawDesc)),
  106. NumEnums: 0,
  107. NumMessages: 1,
  108. NumExtensions: 0,
  109. NumServices: 0,
  110. },
  111. GoTypes: file_proxy_hysteria_config_proto_goTypes,
  112. DependencyIndexes: file_proxy_hysteria_config_proto_depIdxs,
  113. MessageInfos: file_proxy_hysteria_config_proto_msgTypes,
  114. }.Build()
  115. File_proxy_hysteria_config_proto = out.File
  116. file_proxy_hysteria_config_proto_goTypes = nil
  117. file_proxy_hysteria_config_proto_depIdxs = nil
  118. }