config.pb.go 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.36.11
  4. // protoc v6.33.5
  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. type ServerConfig struct {
  66. state protoimpl.MessageState `protogen:"open.v1"`
  67. Users []*protocol.User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
  68. unknownFields protoimpl.UnknownFields
  69. sizeCache protoimpl.SizeCache
  70. }
  71. func (x *ServerConfig) Reset() {
  72. *x = ServerConfig{}
  73. mi := &file_proxy_hysteria_config_proto_msgTypes[1]
  74. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  75. ms.StoreMessageInfo(mi)
  76. }
  77. func (x *ServerConfig) String() string {
  78. return protoimpl.X.MessageStringOf(x)
  79. }
  80. func (*ServerConfig) ProtoMessage() {}
  81. func (x *ServerConfig) ProtoReflect() protoreflect.Message {
  82. mi := &file_proxy_hysteria_config_proto_msgTypes[1]
  83. if x != nil {
  84. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  85. if ms.LoadMessageInfo() == nil {
  86. ms.StoreMessageInfo(mi)
  87. }
  88. return ms
  89. }
  90. return mi.MessageOf(x)
  91. }
  92. // Deprecated: Use ServerConfig.ProtoReflect.Descriptor instead.
  93. func (*ServerConfig) Descriptor() ([]byte, []int) {
  94. return file_proxy_hysteria_config_proto_rawDescGZIP(), []int{1}
  95. }
  96. func (x *ServerConfig) GetUsers() []*protocol.User {
  97. if x != nil {
  98. return x.Users
  99. }
  100. return nil
  101. }
  102. var File_proxy_hysteria_config_proto protoreflect.FileDescriptor
  103. const file_proxy_hysteria_config_proto_rawDesc = "" +
  104. "\n" +
  105. "\x1bproxy/hysteria/config.proto\x12\x13xray.proxy.hysteria\x1a!common/protocol/server_spec.proto\x1a\x1acommon/protocol/user.proto\"f\n" +
  106. "\fClientConfig\x12\x18\n" +
  107. "\aversion\x18\x01 \x01(\x05R\aversion\x12<\n" +
  108. "\x06server\x18\x02 \x01(\v2$.xray.common.protocol.ServerEndpointR\x06server\"@\n" +
  109. "\fServerConfig\x120\n" +
  110. "\x05users\x18\x01 \x03(\v2\x1a.xray.common.protocol.UserR\x05usersB[\n" +
  111. "\x17com.xray.proxy.hysteriaP\x01Z(github.com/xtls/xray-core/proxy/hysteria\xaa\x02\x13Xray.Proxy.Hysteriab\x06proto3"
  112. var (
  113. file_proxy_hysteria_config_proto_rawDescOnce sync.Once
  114. file_proxy_hysteria_config_proto_rawDescData []byte
  115. )
  116. func file_proxy_hysteria_config_proto_rawDescGZIP() []byte {
  117. file_proxy_hysteria_config_proto_rawDescOnce.Do(func() {
  118. 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)))
  119. })
  120. return file_proxy_hysteria_config_proto_rawDescData
  121. }
  122. var file_proxy_hysteria_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  123. var file_proxy_hysteria_config_proto_goTypes = []any{
  124. (*ClientConfig)(nil), // 0: xray.proxy.hysteria.ClientConfig
  125. (*ServerConfig)(nil), // 1: xray.proxy.hysteria.ServerConfig
  126. (*protocol.ServerEndpoint)(nil), // 2: xray.common.protocol.ServerEndpoint
  127. (*protocol.User)(nil), // 3: xray.common.protocol.User
  128. }
  129. var file_proxy_hysteria_config_proto_depIdxs = []int32{
  130. 2, // 0: xray.proxy.hysteria.ClientConfig.server:type_name -> xray.common.protocol.ServerEndpoint
  131. 3, // 1: xray.proxy.hysteria.ServerConfig.users:type_name -> xray.common.protocol.User
  132. 2, // [2:2] is the sub-list for method output_type
  133. 2, // [2:2] is the sub-list for method input_type
  134. 2, // [2:2] is the sub-list for extension type_name
  135. 2, // [2:2] is the sub-list for extension extendee
  136. 0, // [0:2] is the sub-list for field type_name
  137. }
  138. func init() { file_proxy_hysteria_config_proto_init() }
  139. func file_proxy_hysteria_config_proto_init() {
  140. if File_proxy_hysteria_config_proto != nil {
  141. return
  142. }
  143. type x struct{}
  144. out := protoimpl.TypeBuilder{
  145. File: protoimpl.DescBuilder{
  146. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  147. RawDescriptor: unsafe.Slice(unsafe.StringData(file_proxy_hysteria_config_proto_rawDesc), len(file_proxy_hysteria_config_proto_rawDesc)),
  148. NumEnums: 0,
  149. NumMessages: 2,
  150. NumExtensions: 0,
  151. NumServices: 0,
  152. },
  153. GoTypes: file_proxy_hysteria_config_proto_goTypes,
  154. DependencyIndexes: file_proxy_hysteria_config_proto_depIdxs,
  155. MessageInfos: file_proxy_hysteria_config_proto_msgTypes,
  156. }.Build()
  157. File_proxy_hysteria_config_proto = out.File
  158. file_proxy_hysteria_config_proto_goTypes = nil
  159. file_proxy_hysteria_config_proto_depIdxs = nil
  160. }