config.pb.go 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.27.1
  4. // protoc v3.17.3
  5. // source: transport/internet/tls/config.proto
  6. package tls
  7. import (
  8. _ "github.com/v2fly/v2ray-core/v4/common/protoext"
  9. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  10. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  11. reflect "reflect"
  12. sync "sync"
  13. )
  14. const (
  15. // Verify that this generated code is sufficiently up-to-date.
  16. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  17. // Verify that runtime/protoimpl is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  19. )
  20. type Certificate_Usage int32
  21. const (
  22. Certificate_ENCIPHERMENT Certificate_Usage = 0
  23. Certificate_AUTHORITY_VERIFY Certificate_Usage = 1
  24. Certificate_AUTHORITY_ISSUE Certificate_Usage = 2
  25. Certificate_AUTHORITY_VERIFY_CLIENT Certificate_Usage = 3
  26. )
  27. // Enum value maps for Certificate_Usage.
  28. var (
  29. Certificate_Usage_name = map[int32]string{
  30. 0: "ENCIPHERMENT",
  31. 1: "AUTHORITY_VERIFY",
  32. 2: "AUTHORITY_ISSUE",
  33. 3: "AUTHORITY_VERIFY_CLIENT",
  34. }
  35. Certificate_Usage_value = map[string]int32{
  36. "ENCIPHERMENT": 0,
  37. "AUTHORITY_VERIFY": 1,
  38. "AUTHORITY_ISSUE": 2,
  39. "AUTHORITY_VERIFY_CLIENT": 3,
  40. }
  41. )
  42. func (x Certificate_Usage) Enum() *Certificate_Usage {
  43. p := new(Certificate_Usage)
  44. *p = x
  45. return p
  46. }
  47. func (x Certificate_Usage) String() string {
  48. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  49. }
  50. func (Certificate_Usage) Descriptor() protoreflect.EnumDescriptor {
  51. return file_transport_internet_tls_config_proto_enumTypes[0].Descriptor()
  52. }
  53. func (Certificate_Usage) Type() protoreflect.EnumType {
  54. return &file_transport_internet_tls_config_proto_enumTypes[0]
  55. }
  56. func (x Certificate_Usage) Number() protoreflect.EnumNumber {
  57. return protoreflect.EnumNumber(x)
  58. }
  59. // Deprecated: Use Certificate_Usage.Descriptor instead.
  60. func (Certificate_Usage) EnumDescriptor() ([]byte, []int) {
  61. return file_transport_internet_tls_config_proto_rawDescGZIP(), []int{0, 0}
  62. }
  63. type Certificate struct {
  64. state protoimpl.MessageState
  65. sizeCache protoimpl.SizeCache
  66. unknownFields protoimpl.UnknownFields
  67. // TLS certificate in x509 format.
  68. Certificate []byte `protobuf:"bytes,1,opt,name=Certificate,proto3" json:"Certificate,omitempty"`
  69. // TLS key in x509 format.
  70. Key []byte `protobuf:"bytes,2,opt,name=Key,proto3" json:"Key,omitempty"`
  71. Usage Certificate_Usage `protobuf:"varint,3,opt,name=usage,proto3,enum=v2ray.core.transport.internet.tls.Certificate_Usage" json:"usage,omitempty"`
  72. }
  73. func (x *Certificate) Reset() {
  74. *x = Certificate{}
  75. if protoimpl.UnsafeEnabled {
  76. mi := &file_transport_internet_tls_config_proto_msgTypes[0]
  77. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  78. ms.StoreMessageInfo(mi)
  79. }
  80. }
  81. func (x *Certificate) String() string {
  82. return protoimpl.X.MessageStringOf(x)
  83. }
  84. func (*Certificate) ProtoMessage() {}
  85. func (x *Certificate) ProtoReflect() protoreflect.Message {
  86. mi := &file_transport_internet_tls_config_proto_msgTypes[0]
  87. if protoimpl.UnsafeEnabled && x != nil {
  88. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  89. if ms.LoadMessageInfo() == nil {
  90. ms.StoreMessageInfo(mi)
  91. }
  92. return ms
  93. }
  94. return mi.MessageOf(x)
  95. }
  96. // Deprecated: Use Certificate.ProtoReflect.Descriptor instead.
  97. func (*Certificate) Descriptor() ([]byte, []int) {
  98. return file_transport_internet_tls_config_proto_rawDescGZIP(), []int{0}
  99. }
  100. func (x *Certificate) GetCertificate() []byte {
  101. if x != nil {
  102. return x.Certificate
  103. }
  104. return nil
  105. }
  106. func (x *Certificate) GetKey() []byte {
  107. if x != nil {
  108. return x.Key
  109. }
  110. return nil
  111. }
  112. func (x *Certificate) GetUsage() Certificate_Usage {
  113. if x != nil {
  114. return x.Usage
  115. }
  116. return Certificate_ENCIPHERMENT
  117. }
  118. type Config struct {
  119. state protoimpl.MessageState
  120. sizeCache protoimpl.SizeCache
  121. unknownFields protoimpl.UnknownFields
  122. // Whether or not to allow self-signed certificates.
  123. AllowInsecure bool `protobuf:"varint,1,opt,name=allow_insecure,json=allowInsecure,proto3" json:"allow_insecure,omitempty"`
  124. // List of certificates to be served on server.
  125. Certificate []*Certificate `protobuf:"bytes,2,rep,name=certificate,proto3" json:"certificate,omitempty"`
  126. // Override server name.
  127. ServerName string `protobuf:"bytes,3,opt,name=server_name,json=serverName,proto3" json:"server_name,omitempty"`
  128. // Lists of string as ALPN values.
  129. NextProtocol []string `protobuf:"bytes,4,rep,name=next_protocol,json=nextProtocol,proto3" json:"next_protocol,omitempty"`
  130. // Whether or not to enable session (ticket) resumption.
  131. EnableSessionResumption bool `protobuf:"varint,5,opt,name=enable_session_resumption,json=enableSessionResumption,proto3" json:"enable_session_resumption,omitempty"`
  132. // If true, root certificates on the system will not be loaded for
  133. // verification.
  134. DisableSystemRoot bool `protobuf:"varint,6,opt,name=disable_system_root,json=disableSystemRoot,proto3" json:"disable_system_root,omitempty"`
  135. // @Document A pinned certificate chain sha256 hash.
  136. //@Document If the server's hash does not match this value, the connection will be aborted.
  137. //@Document This value replace allow_insecure.
  138. //@Critical
  139. PinnedPeerCertificateChainSha256 [][]byte `protobuf:"bytes,7,rep,name=pinned_peer_certificate_chain_sha256,json=pinnedPeerCertificateChainSha256,proto3" json:"pinned_peer_certificate_chain_sha256,omitempty"`
  140. // If true, the client is required to present a certificate.
  141. VerifyClientCertificate bool `protobuf:"varint,8,opt,name=verify_client_certificate,json=verifyClientCertificate,proto3" json:"verify_client_certificate,omitempty"`
  142. }
  143. func (x *Config) Reset() {
  144. *x = Config{}
  145. if protoimpl.UnsafeEnabled {
  146. mi := &file_transport_internet_tls_config_proto_msgTypes[1]
  147. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  148. ms.StoreMessageInfo(mi)
  149. }
  150. }
  151. func (x *Config) String() string {
  152. return protoimpl.X.MessageStringOf(x)
  153. }
  154. func (*Config) ProtoMessage() {}
  155. func (x *Config) ProtoReflect() protoreflect.Message {
  156. mi := &file_transport_internet_tls_config_proto_msgTypes[1]
  157. if protoimpl.UnsafeEnabled && x != nil {
  158. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  159. if ms.LoadMessageInfo() == nil {
  160. ms.StoreMessageInfo(mi)
  161. }
  162. return ms
  163. }
  164. return mi.MessageOf(x)
  165. }
  166. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  167. func (*Config) Descriptor() ([]byte, []int) {
  168. return file_transport_internet_tls_config_proto_rawDescGZIP(), []int{1}
  169. }
  170. func (x *Config) GetAllowInsecure() bool {
  171. if x != nil {
  172. return x.AllowInsecure
  173. }
  174. return false
  175. }
  176. func (x *Config) GetCertificate() []*Certificate {
  177. if x != nil {
  178. return x.Certificate
  179. }
  180. return nil
  181. }
  182. func (x *Config) GetServerName() string {
  183. if x != nil {
  184. return x.ServerName
  185. }
  186. return ""
  187. }
  188. func (x *Config) GetNextProtocol() []string {
  189. if x != nil {
  190. return x.NextProtocol
  191. }
  192. return nil
  193. }
  194. func (x *Config) GetEnableSessionResumption() bool {
  195. if x != nil {
  196. return x.EnableSessionResumption
  197. }
  198. return false
  199. }
  200. func (x *Config) GetDisableSystemRoot() bool {
  201. if x != nil {
  202. return x.DisableSystemRoot
  203. }
  204. return false
  205. }
  206. func (x *Config) GetPinnedPeerCertificateChainSha256() [][]byte {
  207. if x != nil {
  208. return x.PinnedPeerCertificateChainSha256
  209. }
  210. return nil
  211. }
  212. func (x *Config) GetVerifyClientCertificate() bool {
  213. if x != nil {
  214. return x.VerifyClientCertificate
  215. }
  216. return false
  217. }
  218. var File_transport_internet_tls_config_proto protoreflect.FileDescriptor
  219. var file_transport_internet_tls_config_proto_rawDesc = []byte{
  220. 0x0a, 0x23, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65,
  221. 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x74, 0x6c, 0x73, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e,
  222. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x21, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
  223. 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65,
  224. 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x74, 0x6c, 0x73, 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
  225. 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73,
  226. 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf0, 0x01, 0x0a, 0x0b, 0x43,
  227. 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x43, 0x65,
  228. 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52,
  229. 0x0b, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x10, 0x0a, 0x03,
  230. 0x4b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x4b, 0x65, 0x79, 0x12, 0x4a,
  231. 0x0a, 0x05, 0x75, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e,
  232. 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73,
  233. 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x74, 0x6c,
  234. 0x73, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e, 0x55, 0x73,
  235. 0x61, 0x67, 0x65, 0x52, 0x05, 0x75, 0x73, 0x61, 0x67, 0x65, 0x22, 0x61, 0x0a, 0x05, 0x55, 0x73,
  236. 0x61, 0x67, 0x65, 0x12, 0x10, 0x0a, 0x0c, 0x45, 0x4e, 0x43, 0x49, 0x50, 0x48, 0x45, 0x52, 0x4d,
  237. 0x45, 0x4e, 0x54, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x41, 0x55, 0x54, 0x48, 0x4f, 0x52, 0x49,
  238. 0x54, 0x59, 0x5f, 0x56, 0x45, 0x52, 0x49, 0x46, 0x59, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x41,
  239. 0x55, 0x54, 0x48, 0x4f, 0x52, 0x49, 0x54, 0x59, 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45, 0x10, 0x02,
  240. 0x12, 0x1b, 0x0a, 0x17, 0x41, 0x55, 0x54, 0x48, 0x4f, 0x52, 0x49, 0x54, 0x59, 0x5f, 0x56, 0x45,
  241. 0x52, 0x49, 0x46, 0x59, 0x5f, 0x43, 0x4c, 0x49, 0x45, 0x4e, 0x54, 0x10, 0x03, 0x22, 0xd8, 0x03,
  242. 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x6c, 0x6c, 0x6f,
  243. 0x77, 0x5f, 0x69, 0x6e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08,
  244. 0x52, 0x0d, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x49, 0x6e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x12,
  245. 0x50, 0x0a, 0x0b, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x18, 0x02,
  246. 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
  247. 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65,
  248. 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x74, 0x6c, 0x73, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69,
  249. 0x63, 0x61, 0x74, 0x65, 0x52, 0x0b, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74,
  250. 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65,
  251. 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4e, 0x61,
  252. 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  253. 0x63, 0x6f, 0x6c, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x6e, 0x65, 0x78, 0x74, 0x50,
  254. 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x3a, 0x0a, 0x19, 0x65, 0x6e, 0x61, 0x62, 0x6c,
  255. 0x65, 0x5f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6d, 0x70,
  256. 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x17, 0x65, 0x6e, 0x61, 0x62,
  257. 0x6c, 0x65, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6d, 0x70, 0x74,
  258. 0x69, 0x6f, 0x6e, 0x12, 0x2e, 0x0a, 0x13, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x73,
  259. 0x79, 0x73, 0x74, 0x65, 0x6d, 0x5f, 0x72, 0x6f, 0x6f, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08,
  260. 0x52, 0x11, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x52,
  261. 0x6f, 0x6f, 0x74, 0x12, 0x4e, 0x0a, 0x24, 0x70, 0x69, 0x6e, 0x6e, 0x65, 0x64, 0x5f, 0x70, 0x65,
  262. 0x65, 0x72, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x5f, 0x63,
  263. 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x73, 0x68, 0x61, 0x32, 0x35, 0x36, 0x18, 0x07, 0x20, 0x03, 0x28,
  264. 0x0c, 0x52, 0x20, 0x70, 0x69, 0x6e, 0x6e, 0x65, 0x64, 0x50, 0x65, 0x65, 0x72, 0x43, 0x65, 0x72,
  265. 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x53, 0x68, 0x61,
  266. 0x32, 0x35, 0x36, 0x12, 0x3a, 0x0a, 0x19, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x5f, 0x63, 0x6c,
  267. 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65,
  268. 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x17, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x43, 0x6c,
  269. 0x69, 0x65, 0x6e, 0x74, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x3a,
  270. 0x17, 0x82, 0xb5, 0x18, 0x0a, 0x0a, 0x08, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x82,
  271. 0xb5, 0x18, 0x05, 0x12, 0x03, 0x74, 0x6c, 0x73, 0x42, 0x84, 0x01, 0x0a, 0x25, 0x63, 0x6f, 0x6d,
  272. 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e,
  273. 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x74,
  274. 0x6c, 0x73, 0x50, 0x01, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
  275. 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72,
  276. 0x65, 0x2f, 0x76, 0x34, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69,
  277. 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x74, 0x6c, 0x73, 0xaa, 0x02, 0x21, 0x56, 0x32,
  278. 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f,
  279. 0x72, 0x74, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x54, 0x6c, 0x73, 0x62,
  280. 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  281. }
  282. var (
  283. file_transport_internet_tls_config_proto_rawDescOnce sync.Once
  284. file_transport_internet_tls_config_proto_rawDescData = file_transport_internet_tls_config_proto_rawDesc
  285. )
  286. func file_transport_internet_tls_config_proto_rawDescGZIP() []byte {
  287. file_transport_internet_tls_config_proto_rawDescOnce.Do(func() {
  288. file_transport_internet_tls_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_transport_internet_tls_config_proto_rawDescData)
  289. })
  290. return file_transport_internet_tls_config_proto_rawDescData
  291. }
  292. var file_transport_internet_tls_config_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  293. var file_transport_internet_tls_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  294. var file_transport_internet_tls_config_proto_goTypes = []interface{}{
  295. (Certificate_Usage)(0), // 0: v2ray.core.transport.internet.tls.Certificate.Usage
  296. (*Certificate)(nil), // 1: v2ray.core.transport.internet.tls.Certificate
  297. (*Config)(nil), // 2: v2ray.core.transport.internet.tls.Config
  298. }
  299. var file_transport_internet_tls_config_proto_depIdxs = []int32{
  300. 0, // 0: v2ray.core.transport.internet.tls.Certificate.usage:type_name -> v2ray.core.transport.internet.tls.Certificate.Usage
  301. 1, // 1: v2ray.core.transport.internet.tls.Config.certificate:type_name -> v2ray.core.transport.internet.tls.Certificate
  302. 2, // [2:2] is the sub-list for method output_type
  303. 2, // [2:2] is the sub-list for method input_type
  304. 2, // [2:2] is the sub-list for extension type_name
  305. 2, // [2:2] is the sub-list for extension extendee
  306. 0, // [0:2] is the sub-list for field type_name
  307. }
  308. func init() { file_transport_internet_tls_config_proto_init() }
  309. func file_transport_internet_tls_config_proto_init() {
  310. if File_transport_internet_tls_config_proto != nil {
  311. return
  312. }
  313. if !protoimpl.UnsafeEnabled {
  314. file_transport_internet_tls_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  315. switch v := v.(*Certificate); i {
  316. case 0:
  317. return &v.state
  318. case 1:
  319. return &v.sizeCache
  320. case 2:
  321. return &v.unknownFields
  322. default:
  323. return nil
  324. }
  325. }
  326. file_transport_internet_tls_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  327. switch v := v.(*Config); i {
  328. case 0:
  329. return &v.state
  330. case 1:
  331. return &v.sizeCache
  332. case 2:
  333. return &v.unknownFields
  334. default:
  335. return nil
  336. }
  337. }
  338. }
  339. type x struct{}
  340. out := protoimpl.TypeBuilder{
  341. File: protoimpl.DescBuilder{
  342. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  343. RawDescriptor: file_transport_internet_tls_config_proto_rawDesc,
  344. NumEnums: 1,
  345. NumMessages: 2,
  346. NumExtensions: 0,
  347. NumServices: 0,
  348. },
  349. GoTypes: file_transport_internet_tls_config_proto_goTypes,
  350. DependencyIndexes: file_transport_internet_tls_config_proto_depIdxs,
  351. EnumInfos: file_transport_internet_tls_config_proto_enumTypes,
  352. MessageInfos: file_transport_internet_tls_config_proto_msgTypes,
  353. }.Build()
  354. File_transport_internet_tls_config_proto = out.File
  355. file_transport_internet_tls_config_proto_rawDesc = nil
  356. file_transport_internet_tls_config_proto_goTypes = nil
  357. file_transport_internet_tls_config_proto_depIdxs = nil
  358. }