config.pb.go 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. package shadowsocks2022
  2. import (
  3. net "github.com/v2fly/v2ray-core/v5/common/net"
  4. _ "github.com/v2fly/v2ray-core/v5/common/protoext"
  5. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  6. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  7. reflect "reflect"
  8. sync "sync"
  9. unsafe "unsafe"
  10. )
  11. const (
  12. // Verify that this generated code is sufficiently up-to-date.
  13. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  14. // Verify that runtime/protoimpl is sufficiently up-to-date.
  15. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  16. )
  17. type ClientConfig struct {
  18. state protoimpl.MessageState `protogen:"open.v1"`
  19. Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"`
  20. Psk []byte `protobuf:"bytes,2,opt,name=psk,proto3" json:"psk,omitempty"`
  21. Ipsk [][]byte `protobuf:"bytes,4,rep,name=ipsk,proto3" json:"ipsk,omitempty"`
  22. Address *net.IPOrDomain `protobuf:"bytes,5,opt,name=address,proto3" json:"address,omitempty"`
  23. Port uint32 `protobuf:"varint,6,opt,name=port,proto3" json:"port,omitempty"`
  24. unknownFields protoimpl.UnknownFields
  25. sizeCache protoimpl.SizeCache
  26. }
  27. func (x *ClientConfig) Reset() {
  28. *x = ClientConfig{}
  29. mi := &file_proxy_shadowsocks2022_config_proto_msgTypes[0]
  30. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  31. ms.StoreMessageInfo(mi)
  32. }
  33. func (x *ClientConfig) String() string {
  34. return protoimpl.X.MessageStringOf(x)
  35. }
  36. func (*ClientConfig) ProtoMessage() {}
  37. func (x *ClientConfig) ProtoReflect() protoreflect.Message {
  38. mi := &file_proxy_shadowsocks2022_config_proto_msgTypes[0]
  39. if x != nil {
  40. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  41. if ms.LoadMessageInfo() == nil {
  42. ms.StoreMessageInfo(mi)
  43. }
  44. return ms
  45. }
  46. return mi.MessageOf(x)
  47. }
  48. // Deprecated: Use ClientConfig.ProtoReflect.Descriptor instead.
  49. func (*ClientConfig) Descriptor() ([]byte, []int) {
  50. return file_proxy_shadowsocks2022_config_proto_rawDescGZIP(), []int{0}
  51. }
  52. func (x *ClientConfig) GetMethod() string {
  53. if x != nil {
  54. return x.Method
  55. }
  56. return ""
  57. }
  58. func (x *ClientConfig) GetPsk() []byte {
  59. if x != nil {
  60. return x.Psk
  61. }
  62. return nil
  63. }
  64. func (x *ClientConfig) GetIpsk() [][]byte {
  65. if x != nil {
  66. return x.Ipsk
  67. }
  68. return nil
  69. }
  70. func (x *ClientConfig) GetAddress() *net.IPOrDomain {
  71. if x != nil {
  72. return x.Address
  73. }
  74. return nil
  75. }
  76. func (x *ClientConfig) GetPort() uint32 {
  77. if x != nil {
  78. return x.Port
  79. }
  80. return 0
  81. }
  82. var File_proxy_shadowsocks2022_config_proto protoreflect.FileDescriptor
  83. var file_proxy_shadowsocks2022_config_proto_rawDesc = string([]byte{
  84. 0x0a, 0x22, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f,
  85. 0x63, 0x6b, 0x73, 0x32, 0x30, 0x32, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70,
  86. 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x20, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65,
  87. 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f, 0x63,
  88. 0x6b, 0x73, 0x32, 0x30, 0x32, 0x32, 0x1a, 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e,
  89. 0x65, 0x74, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  90. 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78,
  91. 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f,
  92. 0x74, 0x6f, 0x22, 0xc2, 0x01, 0x0a, 0x0c, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e,
  93. 0x66, 0x69, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x01, 0x20,
  94. 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x70,
  95. 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x70, 0x73, 0x6b, 0x12, 0x12, 0x0a,
  96. 0x04, 0x69, 0x70, 0x73, 0x6b, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x04, 0x69, 0x70, 0x73,
  97. 0x6b, 0x12, 0x3b, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x05, 0x20, 0x01,
  98. 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e,
  99. 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x49, 0x50, 0x4f, 0x72, 0x44,
  100. 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12,
  101. 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f,
  102. 0x72, 0x74, 0x3a, 0x23, 0x82, 0xb5, 0x18, 0x1f, 0x0a, 0x08, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75,
  103. 0x6e, 0x64, 0x12, 0x0f, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x32,
  104. 0x30, 0x32, 0x32, 0x90, 0xff, 0x29, 0x01, 0x42, 0x81, 0x01, 0x0a, 0x24, 0x63, 0x6f, 0x6d, 0x2e,
  105. 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79,
  106. 0x2e, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x32, 0x30, 0x32, 0x32,
  107. 0x50, 0x01, 0x5a, 0x34, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76,
  108. 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f,
  109. 0x76, 0x35, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73,
  110. 0x6f, 0x63, 0x6b, 0x73, 0x32, 0x30, 0x32, 0x32, 0xaa, 0x02, 0x20, 0x56, 0x32, 0x52, 0x61, 0x79,
  111. 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x53, 0x68, 0x61, 0x64,
  112. 0x6f, 0x77, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x32, 0x30, 0x32, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f,
  113. 0x74, 0x6f, 0x33,
  114. })
  115. var (
  116. file_proxy_shadowsocks2022_config_proto_rawDescOnce sync.Once
  117. file_proxy_shadowsocks2022_config_proto_rawDescData []byte
  118. )
  119. func file_proxy_shadowsocks2022_config_proto_rawDescGZIP() []byte {
  120. file_proxy_shadowsocks2022_config_proto_rawDescOnce.Do(func() {
  121. file_proxy_shadowsocks2022_config_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_proxy_shadowsocks2022_config_proto_rawDesc), len(file_proxy_shadowsocks2022_config_proto_rawDesc)))
  122. })
  123. return file_proxy_shadowsocks2022_config_proto_rawDescData
  124. }
  125. var file_proxy_shadowsocks2022_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  126. var file_proxy_shadowsocks2022_config_proto_goTypes = []any{
  127. (*ClientConfig)(nil), // 0: v2ray.core.proxy.shadowsocks2022.ClientConfig
  128. (*net.IPOrDomain)(nil), // 1: v2ray.core.common.net.IPOrDomain
  129. }
  130. var file_proxy_shadowsocks2022_config_proto_depIdxs = []int32{
  131. 1, // 0: v2ray.core.proxy.shadowsocks2022.ClientConfig.address:type_name -> v2ray.core.common.net.IPOrDomain
  132. 1, // [1:1] is the sub-list for method output_type
  133. 1, // [1:1] is the sub-list for method input_type
  134. 1, // [1:1] is the sub-list for extension type_name
  135. 1, // [1:1] is the sub-list for extension extendee
  136. 0, // [0:1] is the sub-list for field type_name
  137. }
  138. func init() { file_proxy_shadowsocks2022_config_proto_init() }
  139. func file_proxy_shadowsocks2022_config_proto_init() {
  140. if File_proxy_shadowsocks2022_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_shadowsocks2022_config_proto_rawDesc), len(file_proxy_shadowsocks2022_config_proto_rawDesc)),
  148. NumEnums: 0,
  149. NumMessages: 1,
  150. NumExtensions: 0,
  151. NumServices: 0,
  152. },
  153. GoTypes: file_proxy_shadowsocks2022_config_proto_goTypes,
  154. DependencyIndexes: file_proxy_shadowsocks2022_config_proto_depIdxs,
  155. MessageInfos: file_proxy_shadowsocks2022_config_proto_msgTypes,
  156. }.Build()
  157. File_proxy_shadowsocks2022_config_proto = out.File
  158. file_proxy_shadowsocks2022_config_proto_goTypes = nil
  159. file_proxy_shadowsocks2022_config_proto_depIdxs = nil
  160. }