config.pb.go 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.25.0
  4. // protoc v3.14.0
  5. // source: transport/internet/tls/config.proto
  6. package tls
  7. import (
  8. proto "github.com/golang/protobuf/proto"
  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. // This is a compile-time assertion that a sufficiently up-to-date version
  21. // of the legacy proto package is being used.
  22. const _ = proto.ProtoPackageIsVersion4
  23. type Certificate_Usage int32
  24. const (
  25. Certificate_ENCIPHERMENT Certificate_Usage = 0
  26. Certificate_AUTHORITY_VERIFY Certificate_Usage = 1
  27. Certificate_AUTHORITY_ISSUE Certificate_Usage = 2
  28. )
  29. // Enum value maps for Certificate_Usage.
  30. var (
  31. Certificate_Usage_name = map[int32]string{
  32. 0: "ENCIPHERMENT",
  33. 1: "AUTHORITY_VERIFY",
  34. 2: "AUTHORITY_ISSUE",
  35. }
  36. Certificate_Usage_value = map[string]int32{
  37. "ENCIPHERMENT": 0,
  38. "AUTHORITY_VERIFY": 1,
  39. "AUTHORITY_ISSUE": 2,
  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=xray.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 disable session (ticket) resumption.
  131. DisableSessionResumption bool `protobuf:"varint,5,opt,name=disable_session_resumption,json=disableSessionResumption,proto3" json:"disable_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. // The minimum TLS version.
  136. MinVersion string `protobuf:"bytes,7,opt,name=min_version,json=minVersion,proto3" json:"min_version,omitempty"`
  137. // The maximum TLS version.
  138. MaxVersion string `protobuf:"bytes,8,opt,name=max_version,json=maxVersion,proto3" json:"max_version,omitempty"`
  139. // Specify cipher suites, except for TLS 1.3.
  140. CipherSuites string `protobuf:"bytes,9,opt,name=cipher_suites,json=cipherSuites,proto3" json:"cipher_suites,omitempty"`
  141. // Whether the server selects its most preferred ciphersuite.
  142. PreferServerCipherSuites bool `protobuf:"varint,10,opt,name=prefer_server_cipher_suites,json=preferServerCipherSuites,proto3" json:"prefer_server_cipher_suites,omitempty"`
  143. }
  144. func (x *Config) Reset() {
  145. *x = Config{}
  146. if protoimpl.UnsafeEnabled {
  147. mi := &file_transport_internet_tls_config_proto_msgTypes[1]
  148. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  149. ms.StoreMessageInfo(mi)
  150. }
  151. }
  152. func (x *Config) String() string {
  153. return protoimpl.X.MessageStringOf(x)
  154. }
  155. func (*Config) ProtoMessage() {}
  156. func (x *Config) ProtoReflect() protoreflect.Message {
  157. mi := &file_transport_internet_tls_config_proto_msgTypes[1]
  158. if protoimpl.UnsafeEnabled && x != nil {
  159. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  160. if ms.LoadMessageInfo() == nil {
  161. ms.StoreMessageInfo(mi)
  162. }
  163. return ms
  164. }
  165. return mi.MessageOf(x)
  166. }
  167. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  168. func (*Config) Descriptor() ([]byte, []int) {
  169. return file_transport_internet_tls_config_proto_rawDescGZIP(), []int{1}
  170. }
  171. func (x *Config) GetAllowInsecure() bool {
  172. if x != nil {
  173. return x.AllowInsecure
  174. }
  175. return false
  176. }
  177. func (x *Config) GetCertificate() []*Certificate {
  178. if x != nil {
  179. return x.Certificate
  180. }
  181. return nil
  182. }
  183. func (x *Config) GetServerName() string {
  184. if x != nil {
  185. return x.ServerName
  186. }
  187. return ""
  188. }
  189. func (x *Config) GetNextProtocol() []string {
  190. if x != nil {
  191. return x.NextProtocol
  192. }
  193. return nil
  194. }
  195. func (x *Config) GetDisableSessionResumption() bool {
  196. if x != nil {
  197. return x.DisableSessionResumption
  198. }
  199. return false
  200. }
  201. func (x *Config) GetDisableSystemRoot() bool {
  202. if x != nil {
  203. return x.DisableSystemRoot
  204. }
  205. return false
  206. }
  207. func (x *Config) GetMinVersion() string {
  208. if x != nil {
  209. return x.MinVersion
  210. }
  211. return ""
  212. }
  213. func (x *Config) GetMaxVersion() string {
  214. if x != nil {
  215. return x.MaxVersion
  216. }
  217. return ""
  218. }
  219. func (x *Config) GetCipherSuites() string {
  220. if x != nil {
  221. return x.CipherSuites
  222. }
  223. return ""
  224. }
  225. func (x *Config) GetPreferServerCipherSuites() bool {
  226. if x != nil {
  227. return x.PreferServerCipherSuites
  228. }
  229. return false
  230. }
  231. var File_transport_internet_tls_config_proto protoreflect.FileDescriptor
  232. var file_transport_internet_tls_config_proto_rawDesc = []byte{
  233. 0x0a, 0x23, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65,
  234. 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x74, 0x6c, 0x73, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e,
  235. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e,
  236. 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x74,
  237. 0x6c, 0x73, 0x22, 0xcd, 0x01, 0x0a, 0x0b, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61,
  238. 0x74, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74,
  239. 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69,
  240. 0x63, 0x61, 0x74, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x4b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28,
  241. 0x0c, 0x52, 0x03, 0x4b, 0x65, 0x79, 0x12, 0x44, 0x0a, 0x05, 0x75, 0x73, 0x61, 0x67, 0x65, 0x18,
  242. 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2e, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61,
  243. 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e,
  244. 0x74, 0x6c, 0x73, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x2e,
  245. 0x55, 0x73, 0x61, 0x67, 0x65, 0x52, 0x05, 0x75, 0x73, 0x61, 0x67, 0x65, 0x22, 0x44, 0x0a, 0x05,
  246. 0x55, 0x73, 0x61, 0x67, 0x65, 0x12, 0x10, 0x0a, 0x0c, 0x45, 0x4e, 0x43, 0x49, 0x50, 0x48, 0x45,
  247. 0x52, 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x41, 0x55, 0x54, 0x48, 0x4f,
  248. 0x52, 0x49, 0x54, 0x59, 0x5f, 0x56, 0x45, 0x52, 0x49, 0x46, 0x59, 0x10, 0x01, 0x12, 0x13, 0x0a,
  249. 0x0f, 0x41, 0x55, 0x54, 0x48, 0x4f, 0x52, 0x49, 0x54, 0x59, 0x5f, 0x49, 0x53, 0x53, 0x55, 0x45,
  250. 0x10, 0x02, 0x22, 0xd5, 0x03, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x25, 0x0a,
  251. 0x0e, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x69, 0x6e, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x18,
  252. 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x49, 0x6e, 0x73, 0x65,
  253. 0x63, 0x75, 0x72, 0x65, 0x12, 0x4a, 0x0a, 0x0b, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63,
  254. 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x78, 0x72, 0x61, 0x79,
  255. 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72,
  256. 0x6e, 0x65, 0x74, 0x2e, 0x74, 0x6c, 0x73, 0x2e, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63,
  257. 0x61, 0x74, 0x65, 0x52, 0x0b, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65,
  258. 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18,
  259. 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4e, 0x61, 0x6d,
  260. 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63,
  261. 0x6f, 0x6c, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x72,
  262. 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x3c, 0x0a, 0x1a, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c,
  263. 0x65, 0x5f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6d, 0x70,
  264. 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x18, 0x64, 0x69, 0x73, 0x61,
  265. 0x62, 0x6c, 0x65, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6d, 0x70,
  266. 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2e, 0x0a, 0x13, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f,
  267. 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x5f, 0x72, 0x6f, 0x6f, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28,
  268. 0x08, 0x52, 0x11, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d,
  269. 0x52, 0x6f, 0x6f, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x6d, 0x69, 0x6e, 0x5f, 0x76, 0x65, 0x72, 0x73,
  270. 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6d, 0x69, 0x6e, 0x56, 0x65,
  271. 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x6d, 0x61, 0x78, 0x5f, 0x76, 0x65, 0x72,
  272. 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6d, 0x61, 0x78, 0x56,
  273. 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x69, 0x70, 0x68, 0x65, 0x72,
  274. 0x5f, 0x73, 0x75, 0x69, 0x74, 0x65, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63,
  275. 0x69, 0x70, 0x68, 0x65, 0x72, 0x53, 0x75, 0x69, 0x74, 0x65, 0x73, 0x12, 0x3d, 0x0a, 0x1b, 0x70,
  276. 0x72, 0x65, 0x66, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x63, 0x69, 0x70,
  277. 0x68, 0x65, 0x72, 0x5f, 0x73, 0x75, 0x69, 0x74, 0x65, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08,
  278. 0x52, 0x18, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x69,
  279. 0x70, 0x68, 0x65, 0x72, 0x53, 0x75, 0x69, 0x74, 0x65, 0x73, 0x42, 0x73, 0x0a, 0x1f, 0x63, 0x6f,
  280. 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74,
  281. 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x74, 0x6c, 0x73, 0x50, 0x01, 0x5a,
  282. 0x30, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73,
  283. 0x2f, 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73,
  284. 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x74, 0x6c,
  285. 0x73, 0xaa, 0x02, 0x1b, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f,
  286. 0x72, 0x74, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x54, 0x6c, 0x73, 0x62,
  287. 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  288. }
  289. var (
  290. file_transport_internet_tls_config_proto_rawDescOnce sync.Once
  291. file_transport_internet_tls_config_proto_rawDescData = file_transport_internet_tls_config_proto_rawDesc
  292. )
  293. func file_transport_internet_tls_config_proto_rawDescGZIP() []byte {
  294. file_transport_internet_tls_config_proto_rawDescOnce.Do(func() {
  295. file_transport_internet_tls_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_transport_internet_tls_config_proto_rawDescData)
  296. })
  297. return file_transport_internet_tls_config_proto_rawDescData
  298. }
  299. var file_transport_internet_tls_config_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  300. var file_transport_internet_tls_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  301. var file_transport_internet_tls_config_proto_goTypes = []interface{}{
  302. (Certificate_Usage)(0), // 0: xray.transport.internet.tls.Certificate.Usage
  303. (*Certificate)(nil), // 1: xray.transport.internet.tls.Certificate
  304. (*Config)(nil), // 2: xray.transport.internet.tls.Config
  305. }
  306. var file_transport_internet_tls_config_proto_depIdxs = []int32{
  307. 0, // 0: xray.transport.internet.tls.Certificate.usage:type_name -> xray.transport.internet.tls.Certificate.Usage
  308. 1, // 1: xray.transport.internet.tls.Config.certificate:type_name -> xray.transport.internet.tls.Certificate
  309. 2, // [2:2] is the sub-list for method output_type
  310. 2, // [2:2] is the sub-list for method input_type
  311. 2, // [2:2] is the sub-list for extension type_name
  312. 2, // [2:2] is the sub-list for extension extendee
  313. 0, // [0:2] is the sub-list for field type_name
  314. }
  315. func init() { file_transport_internet_tls_config_proto_init() }
  316. func file_transport_internet_tls_config_proto_init() {
  317. if File_transport_internet_tls_config_proto != nil {
  318. return
  319. }
  320. if !protoimpl.UnsafeEnabled {
  321. file_transport_internet_tls_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  322. switch v := v.(*Certificate); 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. file_transport_internet_tls_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  334. switch v := v.(*Config); i {
  335. case 0:
  336. return &v.state
  337. case 1:
  338. return &v.sizeCache
  339. case 2:
  340. return &v.unknownFields
  341. default:
  342. return nil
  343. }
  344. }
  345. }
  346. type x struct{}
  347. out := protoimpl.TypeBuilder{
  348. File: protoimpl.DescBuilder{
  349. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  350. RawDescriptor: file_transport_internet_tls_config_proto_rawDesc,
  351. NumEnums: 1,
  352. NumMessages: 2,
  353. NumExtensions: 0,
  354. NumServices: 0,
  355. },
  356. GoTypes: file_transport_internet_tls_config_proto_goTypes,
  357. DependencyIndexes: file_transport_internet_tls_config_proto_depIdxs,
  358. EnumInfos: file_transport_internet_tls_config_proto_enumTypes,
  359. MessageInfos: file_transport_internet_tls_config_proto_msgTypes,
  360. }.Build()
  361. File_transport_internet_tls_config_proto = out.File
  362. file_transport_internet_tls_config_proto_rawDesc = nil
  363. file_transport_internet_tls_config_proto_goTypes = nil
  364. file_transport_internet_tls_config_proto_depIdxs = nil
  365. }