# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: cert_logger.proto

from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import descriptor_pb2
# @@protoc_insertion_point(imports)




DESCRIPTOR = _descriptor.FileDescriptor(
  name='cert_logger.proto',
  package='certificate_reporting',
  serialized_pb='\n\x11\x63\x65rt_logger.proto\x12\x15\x63\x65rtificate_reporting\"\xb3\x02\n\x1a\x43\x65rtLoggerInterstitialInfo\x12\x61\n\x13interstitial_reason\x18\x01 \x01(\x0e\x32\x44.certificate_reporting.CertLoggerInterstitialInfo.InterstitialReason\x12\x16\n\x0euser_proceeded\x18\x02 \x01(\x08\x12\x13\n\x0boverridable\x18\x03 \x01(\x08\"\x84\x01\n\x12InterstitialReason\x12\x1f\n\x1bUNKNOWN_INTERSTITIAL_REASON\x10\x00\x12\x14\n\x10INTERSTITIAL_SSL\x10\x01\x12\x1f\n\x1bINTERSTITIAL_CAPTIVE_PORTAL\x10\x02\x12\x16\n\x12INTERSTITIAL_CLOCK\x10\x03\"\xf3\x05\n\x11\x43\x65rtLoggerRequest\x12\x10\n\x08hostname\x18\x01 \x02(\t\x12\x12\n\ncert_chain\x18\x02 \x02(\t\x12\x11\n\ttime_usec\x18\x03 \x02(\x03\x12\x17\n\x0fpublic_key_hash\x18\x04 \x03(\t\x12\x0b\n\x03pin\x18\x05 \x03(\t\x12\x46\n\ncert_error\x18\x06 \x03(\x0e\x32\x32.certificate_reporting.CertLoggerRequest.CertError\x12L\n\x11interstitial_info\x18\x07 \x01(\x0b\x32\x31.certificate_reporting.CertLoggerInterstitialInfo\x12\x1d\n\x15unverified_cert_chain\x18\x08 \x01(\t\"\xc9\x03\n\tCertError\x12\x16\n\x12UNKNOWN_CERT_ERROR\x10\x00\x12\x14\n\x10\x45RR_CERT_REVOKED\x10\x01\x12\x14\n\x10\x45RR_CERT_INVALID\x10\x02\x12(\n$ERR_SSL_PINNED_KEY_NOT_IN_CERT_CHAIN\x10\x03\x12\x1e\n\x1a\x45RR_CERT_AUTHORITY_INVALID\x10\x04\x12 \n\x1c\x45RR_CERT_COMMON_NAME_INVALID\x10\x05\x12&\n\"ERR_CERT_NAME_CONSTRAINT_VIOLATION\x10\x06\x12%\n!ERR_CERT_WEAK_SIGNATURE_ALGORITHM\x10\x07\x12\x15\n\x11\x45RR_CERT_WEAK_KEY\x10\x08\x12\x19\n\x15\x45RR_CERT_DATE_INVALID\x10\t\x12\x1e\n\x1a\x45RR_CERT_VALIDITY_TOO_LONG\x10\n\x12\'\n#ERR_CERT_UNABLE_TO_CHECK_REVOCATION\x10\x0b\x12$\n ERR_CERT_NO_REVOCATION_MECHANISM\x10\x0c\x12\x1c\n\x18\x45RR_CERT_NON_UNIQUE_NAME\x10\rB\x02H\x03')



_CERTLOGGERINTERSTITIALINFO_INTERSTITIALREASON = _descriptor.EnumDescriptor(
  name='InterstitialReason',
  full_name='certificate_reporting.CertLoggerInterstitialInfo.InterstitialReason',
  filename=None,
  file=DESCRIPTOR,
  values=[
    _descriptor.EnumValueDescriptor(
      name='UNKNOWN_INTERSTITIAL_REASON', index=0, number=0,
      options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='INTERSTITIAL_SSL', index=1, number=1,
      options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='INTERSTITIAL_CAPTIVE_PORTAL', index=2, number=2,
      options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='INTERSTITIAL_CLOCK', index=3, number=3,
      options=None,
      type=None),
  ],
  containing_type=None,
  options=None,
  serialized_start=220,
  serialized_end=352,
)

_CERTLOGGERREQUEST_CERTERROR = _descriptor.EnumDescriptor(
  name='CertError',
  full_name='certificate_reporting.CertLoggerRequest.CertError',
  filename=None,
  file=DESCRIPTOR,
  values=[
    _descriptor.EnumValueDescriptor(
      name='UNKNOWN_CERT_ERROR', index=0, number=0,
      options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='ERR_CERT_REVOKED', index=1, number=1,
      options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='ERR_CERT_INVALID', index=2, number=2,
      options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='ERR_SSL_PINNED_KEY_NOT_IN_CERT_CHAIN', index=3, number=3,
      options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='ERR_CERT_AUTHORITY_INVALID', index=4, number=4,
      options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='ERR_CERT_COMMON_NAME_INVALID', index=5, number=5,
      options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='ERR_CERT_NAME_CONSTRAINT_VIOLATION', index=6, number=6,
      options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='ERR_CERT_WEAK_SIGNATURE_ALGORITHM', index=7, number=7,
      options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='ERR_CERT_WEAK_KEY', index=8, number=8,
      options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='ERR_CERT_DATE_INVALID', index=9, number=9,
      options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='ERR_CERT_VALIDITY_TOO_LONG', index=10, number=10,
      options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='ERR_CERT_UNABLE_TO_CHECK_REVOCATION', index=11, number=11,
      options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='ERR_CERT_NO_REVOCATION_MECHANISM', index=12, number=12,
      options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='ERR_CERT_NON_UNIQUE_NAME', index=13, number=13,
      options=None,
      type=None),
  ],
  containing_type=None,
  options=None,
  serialized_start=653,
  serialized_end=1110,
)


_CERTLOGGERINTERSTITIALINFO = _descriptor.Descriptor(
  name='CertLoggerInterstitialInfo',
  full_name='certificate_reporting.CertLoggerInterstitialInfo',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='interstitial_reason', full_name='certificate_reporting.CertLoggerInterstitialInfo.interstitial_reason', index=0,
      number=1, type=14, cpp_type=8, label=1,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    _descriptor.FieldDescriptor(
      name='user_proceeded', full_name='certificate_reporting.CertLoggerInterstitialInfo.user_proceeded', index=1,
      number=2, type=8, cpp_type=7, label=1,
      has_default_value=False, default_value=False,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    _descriptor.FieldDescriptor(
      name='overridable', full_name='certificate_reporting.CertLoggerInterstitialInfo.overridable', index=2,
      number=3, type=8, cpp_type=7, label=1,
      has_default_value=False, default_value=False,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
    _CERTLOGGERINTERSTITIALINFO_INTERSTITIALREASON,
  ],
  options=None,
  is_extendable=False,
  extension_ranges=[],
  serialized_start=45,
  serialized_end=352,
)


_CERTLOGGERREQUEST = _descriptor.Descriptor(
  name='CertLoggerRequest',
  full_name='certificate_reporting.CertLoggerRequest',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='hostname', full_name='certificate_reporting.CertLoggerRequest.hostname', index=0,
      number=1, type=9, cpp_type=9, label=2,
      has_default_value=False, default_value=unicode("", "utf-8"),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    _descriptor.FieldDescriptor(
      name='cert_chain', full_name='certificate_reporting.CertLoggerRequest.cert_chain', index=1,
      number=2, type=9, cpp_type=9, label=2,
      has_default_value=False, default_value=unicode("", "utf-8"),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    _descriptor.FieldDescriptor(
      name='time_usec', full_name='certificate_reporting.CertLoggerRequest.time_usec', index=2,
      number=3, type=3, cpp_type=2, label=2,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    _descriptor.FieldDescriptor(
      name='public_key_hash', full_name='certificate_reporting.CertLoggerRequest.public_key_hash', index=3,
      number=4, type=9, cpp_type=9, label=3,
      has_default_value=False, default_value=[],
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    _descriptor.FieldDescriptor(
      name='pin', full_name='certificate_reporting.CertLoggerRequest.pin', index=4,
      number=5, type=9, cpp_type=9, label=3,
      has_default_value=False, default_value=[],
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    _descriptor.FieldDescriptor(
      name='cert_error', full_name='certificate_reporting.CertLoggerRequest.cert_error', index=5,
      number=6, type=14, cpp_type=8, label=3,
      has_default_value=False, default_value=[],
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    _descriptor.FieldDescriptor(
      name='interstitial_info', full_name='certificate_reporting.CertLoggerRequest.interstitial_info', index=6,
      number=7, type=11, cpp_type=10, label=1,
      has_default_value=False, default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    _descriptor.FieldDescriptor(
      name='unverified_cert_chain', full_name='certificate_reporting.CertLoggerRequest.unverified_cert_chain', index=7,
      number=8, type=9, cpp_type=9, label=1,
      has_default_value=False, default_value=unicode("", "utf-8"),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
    _CERTLOGGERREQUEST_CERTERROR,
  ],
  options=None,
  is_extendable=False,
  extension_ranges=[],
  serialized_start=355,
  serialized_end=1110,
)

_CERTLOGGERINTERSTITIALINFO.fields_by_name['interstitial_reason'].enum_type = _CERTLOGGERINTERSTITIALINFO_INTERSTITIALREASON
_CERTLOGGERINTERSTITIALINFO_INTERSTITIALREASON.containing_type = _CERTLOGGERINTERSTITIALINFO;
_CERTLOGGERREQUEST.fields_by_name['cert_error'].enum_type = _CERTLOGGERREQUEST_CERTERROR
_CERTLOGGERREQUEST.fields_by_name['interstitial_info'].message_type = _CERTLOGGERINTERSTITIALINFO
_CERTLOGGERREQUEST_CERTERROR.containing_type = _CERTLOGGERREQUEST;
DESCRIPTOR.message_types_by_name['CertLoggerInterstitialInfo'] = _CERTLOGGERINTERSTITIALINFO
DESCRIPTOR.message_types_by_name['CertLoggerRequest'] = _CERTLOGGERREQUEST

class CertLoggerInterstitialInfo(_message.Message):
  __metaclass__ = _reflection.GeneratedProtocolMessageType
  DESCRIPTOR = _CERTLOGGERINTERSTITIALINFO

  # @@protoc_insertion_point(class_scope:certificate_reporting.CertLoggerInterstitialInfo)

class CertLoggerRequest(_message.Message):
  __metaclass__ = _reflection.GeneratedProtocolMessageType
  DESCRIPTOR = _CERTLOGGERREQUEST

  # @@protoc_insertion_point(class_scope:certificate_reporting.CertLoggerRequest)


DESCRIPTOR.has_options = True
DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), 'H\003')
# @@protoc_insertion_point(module_scope)
