config.pb.go 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  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. )
  10. const (
  11. // Verify that this generated code is sufficiently up-to-date.
  12. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  13. // Verify that runtime/protoimpl is sufficiently up-to-date.
  14. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  15. )
  16. type ClientConfig struct {
  17. state protoimpl.MessageState
  18. sizeCache protoimpl.SizeCache
  19. unknownFields protoimpl.UnknownFields
  20. Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"`
  21. Psk []byte `protobuf:"bytes,2,opt,name=psk,proto3" json:"psk,omitempty"`
  22. Ipsk [][]byte `protobuf:"bytes,4,rep,name=ipsk,proto3" json:"ipsk,omitempty"`
  23. Address *net.IPOrDomain `protobuf:"bytes,5,opt,name=address,proto3" json:"address,omitempty"`
  24. Port uint32 `protobuf:"varint,6,opt,name=port,proto3" json:"port,omitempty"`
  25. }
  26. func (x *ClientConfig) Reset() {
  27. *x = ClientConfig{}
  28. if protoimpl.UnsafeEnabled {
  29. mi := &file_proxy_shadowsocks2022_config_proto_msgTypes[0]
  30. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  31. ms.StoreMessageInfo(mi)
  32. }
  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_shadowsocks2022_config_proto_msgTypes[0]
  40. if protoimpl.UnsafeEnabled && 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_shadowsocks2022_config_proto_rawDescGZIP(), []int{0}
  52. }
  53. func (x *ClientConfig) GetMethod() string {
  54. if x != nil {
  55. return x.Method
  56. }
  57. return ""
  58. }
  59. func (x *ClientConfig) GetPsk() []byte {
  60. if x != nil {
  61. return x.Psk
  62. }
  63. return nil
  64. }
  65. func (x *ClientConfig) GetIpsk() [][]byte {
  66. if x != nil {
  67. return x.Ipsk
  68. }
  69. return nil
  70. }
  71. func (x *ClientConfig) GetAddress() *net.IPOrDomain {
  72. if x != nil {
  73. return x.Address
  74. }
  75. return nil
  76. }
  77. func (x *ClientConfig) GetPort() uint32 {
  78. if x != nil {
  79. return x.Port
  80. }
  81. return 0
  82. }
  83. var File_proxy_shadowsocks2022_config_proto protoreflect.FileDescriptor
  84. var file_proxy_shadowsocks2022_config_proto_rawDesc = []byte{
  85. 0x0a, 0x22, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f,
  86. 0x63, 0x6b, 0x73, 0x32, 0x30, 0x32, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70,
  87. 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x20, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65,
  88. 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f, 0x63,
  89. 0x6b, 0x73, 0x32, 0x30, 0x32, 0x32, 0x1a, 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e,
  90. 0x65, 0x74, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  91. 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78,
  92. 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f,
  93. 0x74, 0x6f, 0x22, 0xc2, 0x01, 0x0a, 0x0c, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e,
  94. 0x66, 0x69, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x01, 0x20,
  95. 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x70,
  96. 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x70, 0x73, 0x6b, 0x12, 0x12, 0x0a,
  97. 0x04, 0x69, 0x70, 0x73, 0x6b, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x04, 0x69, 0x70, 0x73,
  98. 0x6b, 0x12, 0x3b, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x05, 0x20, 0x01,
  99. 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e,
  100. 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x49, 0x50, 0x4f, 0x72, 0x44,
  101. 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12,
  102. 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f,
  103. 0x72, 0x74, 0x3a, 0x23, 0x82, 0xb5, 0x18, 0x1f, 0x0a, 0x08, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75,
  104. 0x6e, 0x64, 0x12, 0x0f, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x32,
  105. 0x30, 0x32, 0x32, 0x90, 0xff, 0x29, 0x01, 0x42, 0x81, 0x01, 0x0a, 0x24, 0x63, 0x6f, 0x6d, 0x2e,
  106. 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79,
  107. 0x2e, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x32, 0x30, 0x32, 0x32,
  108. 0x50, 0x01, 0x5a, 0x34, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76,
  109. 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f,
  110. 0x76, 0x35, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73,
  111. 0x6f, 0x63, 0x6b, 0x73, 0x32, 0x30, 0x32, 0x32, 0xaa, 0x02, 0x20, 0x56, 0x32, 0x52, 0x61, 0x79,
  112. 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x53, 0x68, 0x61, 0x64,
  113. 0x6f, 0x77, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x32, 0x30, 0x32, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f,
  114. 0x74, 0x6f, 0x33,
  115. }
  116. var (
  117. file_proxy_shadowsocks2022_config_proto_rawDescOnce sync.Once
  118. file_proxy_shadowsocks2022_config_proto_rawDescData = file_proxy_shadowsocks2022_config_proto_rawDesc
  119. )
  120. func file_proxy_shadowsocks2022_config_proto_rawDescGZIP() []byte {
  121. file_proxy_shadowsocks2022_config_proto_rawDescOnce.Do(func() {
  122. file_proxy_shadowsocks2022_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_shadowsocks2022_config_proto_rawDescData)
  123. })
  124. return file_proxy_shadowsocks2022_config_proto_rawDescData
  125. }
  126. var file_proxy_shadowsocks2022_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  127. var file_proxy_shadowsocks2022_config_proto_goTypes = []interface{}{
  128. (*ClientConfig)(nil), // 0: v2ray.core.proxy.shadowsocks2022.ClientConfig
  129. (*net.IPOrDomain)(nil), // 1: v2ray.core.common.net.IPOrDomain
  130. }
  131. var file_proxy_shadowsocks2022_config_proto_depIdxs = []int32{
  132. 1, // 0: v2ray.core.proxy.shadowsocks2022.ClientConfig.address:type_name -> v2ray.core.common.net.IPOrDomain
  133. 1, // [1:1] is the sub-list for method output_type
  134. 1, // [1:1] is the sub-list for method input_type
  135. 1, // [1:1] is the sub-list for extension type_name
  136. 1, // [1:1] is the sub-list for extension extendee
  137. 0, // [0:1] is the sub-list for field type_name
  138. }
  139. func init() { file_proxy_shadowsocks2022_config_proto_init() }
  140. func file_proxy_shadowsocks2022_config_proto_init() {
  141. if File_proxy_shadowsocks2022_config_proto != nil {
  142. return
  143. }
  144. if !protoimpl.UnsafeEnabled {
  145. file_proxy_shadowsocks2022_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  146. switch v := v.(*ClientConfig); i {
  147. case 0:
  148. return &v.state
  149. case 1:
  150. return &v.sizeCache
  151. case 2:
  152. return &v.unknownFields
  153. default:
  154. return nil
  155. }
  156. }
  157. }
  158. type x struct{}
  159. out := protoimpl.TypeBuilder{
  160. File: protoimpl.DescBuilder{
  161. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  162. RawDescriptor: file_proxy_shadowsocks2022_config_proto_rawDesc,
  163. NumEnums: 0,
  164. NumMessages: 1,
  165. NumExtensions: 0,
  166. NumServices: 0,
  167. },
  168. GoTypes: file_proxy_shadowsocks2022_config_proto_goTypes,
  169. DependencyIndexes: file_proxy_shadowsocks2022_config_proto_depIdxs,
  170. MessageInfos: file_proxy_shadowsocks2022_config_proto_msgTypes,
  171. }.Build()
  172. File_proxy_shadowsocks2022_config_proto = out.File
  173. file_proxy_shadowsocks2022_config_proto_rawDesc = nil
  174. file_proxy_shadowsocks2022_config_proto_goTypes = nil
  175. file_proxy_shadowsocks2022_config_proto_depIdxs = nil
  176. }