config.pb.go 16 KB

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