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

import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf.internal import enum_type_wrapper
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 symbol_database as _symbol_database
from google.protobuf import descriptor_pb2
# @@protoc_insertion_point(imports)

_sym_db = _symbol_database.Default()




DESCRIPTOR = _descriptor.FileDescriptor(
  name='tink/proto/tink.proto',
  package='google.crypto.tink',
  syntax='proto3',
  serialized_pb=_b('\n\x15tink/proto/tink.proto\x12\x12google.crypto.tink\"p\n\x0bKeyTemplate\x12\x10\n\x08type_url\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c\x12@\n\x12output_prefix_type\x18\x03 \x01(\x0e\x32$.google.crypto.tink.OutputPrefixType\"\xe8\x01\n\x07KeyData\x12\x10\n\x08type_url\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c\x12\x46\n\x11key_material_type\x18\x03 \x01(\x0e\x32+.google.crypto.tink.KeyData.KeyMaterialType\"t\n\x0fKeyMaterialType\x12\x17\n\x13UNKNOWN_KEYMATERIAL\x10\x00\x12\r\n\tSYMMETRIC\x10\x01\x12\x16\n\x12\x41SYMMETRIC_PRIVATE\x10\x02\x12\x15\n\x11\x41SYMMETRIC_PUBLIC\x10\x03\x12\n\n\x06REMOTE\x10\x04\"\x89\x02\n\x06Keyset\x12\x16\n\x0eprimary_key_id\x18\x01 \x01(\r\x12+\n\x03key\x18\x02 \x03(\x0b\x32\x1e.google.crypto.tink.Keyset.Key\x1a\xb9\x01\n\x03Key\x12-\n\x08key_data\x18\x01 \x01(\x0b\x32\x1b.google.crypto.tink.KeyData\x12\x31\n\x06status\x18\x02 \x01(\x0e\x32!.google.crypto.tink.KeyStatusType\x12\x0e\n\x06key_id\x18\x03 \x01(\r\x12@\n\x12output_prefix_type\x18\x04 \x01(\x0e\x32$.google.crypto.tink.OutputPrefixType\"\x81\x02\n\nKeysetInfo\x12\x16\n\x0eprimary_key_id\x18\x01 \x01(\r\x12\x38\n\x08key_info\x18\x02 \x03(\x0b\x32&.google.crypto.tink.KeysetInfo.KeyInfo\x1a\xa0\x01\n\x07KeyInfo\x12\x10\n\x08type_url\x18\x01 \x01(\t\x12\x31\n\x06status\x18\x02 \x01(\x0e\x32!.google.crypto.tink.KeyStatusType\x12\x0e\n\x06key_id\x18\x03 \x01(\r\x12@\n\x12output_prefix_type\x18\x04 \x01(\x0e\x32$.google.crypto.tink.OutputPrefixType\"`\n\x0f\x45ncryptedKeyset\x12\x18\n\x10\x65ncrypted_keyset\x18\x02 \x01(\x0c\x12\x33\n\x0bkeyset_info\x18\x03 \x01(\x0b\x32\x1e.google.crypto.tink.KeysetInfo*M\n\rKeyStatusType\x12\x12\n\x0eUNKNOWN_STATUS\x10\x00\x12\x0b\n\x07\x45NABLED\x10\x01\x12\x0c\n\x08\x44ISABLED\x10\x02\x12\r\n\tDESTROYED\x10\x03*R\n\x10OutputPrefixType\x12\x12\n\x0eUNKNOWN_PREFIX\x10\x00\x12\x08\n\x04TINK\x10\x01\x12\n\n\x06LEGACY\x10\x02\x12\x07\n\x03RAW\x10\x03\x12\x0b\n\x07\x43RUNCHY\x10\x04\x42U\n\x1c\x63om.google.crypto.tink.protoP\x01Z*github.com/google/tink/proto/tink_go_proto\xa2\x02\x06TINKPBb\x06proto3')
)
_sym_db.RegisterFileDescriptor(DESCRIPTOR)

_KEYSTATUSTYPE = _descriptor.EnumDescriptor(
  name='KeyStatusType',
  full_name='google.crypto.tink.KeyStatusType',
  filename=None,
  file=DESCRIPTOR,
  values=[
    _descriptor.EnumValueDescriptor(
      name='UNKNOWN_STATUS', index=0, number=0,
      options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='ENABLED', index=1, number=1,
      options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='DISABLED', index=2, number=2,
      options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='DESTROYED', index=3, number=3,
      options=None,
      type=None),
  ],
  containing_type=None,
  options=None,
  serialized_start=1020,
  serialized_end=1097,
)
_sym_db.RegisterEnumDescriptor(_KEYSTATUSTYPE)

KeyStatusType = enum_type_wrapper.EnumTypeWrapper(_KEYSTATUSTYPE)
_OUTPUTPREFIXTYPE = _descriptor.EnumDescriptor(
  name='OutputPrefixType',
  full_name='google.crypto.tink.OutputPrefixType',
  filename=None,
  file=DESCRIPTOR,
  values=[
    _descriptor.EnumValueDescriptor(
      name='UNKNOWN_PREFIX', index=0, number=0,
      options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='TINK', index=1, number=1,
      options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='LEGACY', index=2, number=2,
      options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='RAW', index=3, number=3,
      options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='CRUNCHY', index=4, number=4,
      options=None,
      type=None),
  ],
  containing_type=None,
  options=None,
  serialized_start=1099,
  serialized_end=1181,
)
_sym_db.RegisterEnumDescriptor(_OUTPUTPREFIXTYPE)

OutputPrefixType = enum_type_wrapper.EnumTypeWrapper(_OUTPUTPREFIXTYPE)
UNKNOWN_STATUS = 0
ENABLED = 1
DISABLED = 2
DESTROYED = 3
UNKNOWN_PREFIX = 0
TINK = 1
LEGACY = 2
RAW = 3
CRUNCHY = 4


_KEYDATA_KEYMATERIALTYPE = _descriptor.EnumDescriptor(
  name='KeyMaterialType',
  full_name='google.crypto.tink.KeyData.KeyMaterialType',
  filename=None,
  file=DESCRIPTOR,
  values=[
    _descriptor.EnumValueDescriptor(
      name='UNKNOWN_KEYMATERIAL', index=0, number=0,
      options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='SYMMETRIC', index=1, number=1,
      options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='ASYMMETRIC_PRIVATE', index=2, number=2,
      options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='ASYMMETRIC_PUBLIC', index=3, number=3,
      options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='REMOTE', index=4, number=4,
      options=None,
      type=None),
  ],
  containing_type=None,
  options=None,
  serialized_start=276,
  serialized_end=392,
)
_sym_db.RegisterEnumDescriptor(_KEYDATA_KEYMATERIALTYPE)


_KEYTEMPLATE = _descriptor.Descriptor(
  name='KeyTemplate',
  full_name='google.crypto.tink.KeyTemplate',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='type_url', full_name='google.crypto.tink.KeyTemplate.type_url', index=0,
      number=1, type=9, cpp_type=9, label=1,
      has_default_value=False, default_value=_b("").decode('utf-8'),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    _descriptor.FieldDescriptor(
      name='value', full_name='google.crypto.tink.KeyTemplate.value', index=1,
      number=2, type=12, cpp_type=9, label=1,
      has_default_value=False, default_value=_b(""),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    _descriptor.FieldDescriptor(
      name='output_prefix_type', full_name='google.crypto.tink.KeyTemplate.output_prefix_type', index=2,
      number=3, 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),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=45,
  serialized_end=157,
)


_KEYDATA = _descriptor.Descriptor(
  name='KeyData',
  full_name='google.crypto.tink.KeyData',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='type_url', full_name='google.crypto.tink.KeyData.type_url', index=0,
      number=1, type=9, cpp_type=9, label=1,
      has_default_value=False, default_value=_b("").decode('utf-8'),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    _descriptor.FieldDescriptor(
      name='value', full_name='google.crypto.tink.KeyData.value', index=1,
      number=2, type=12, cpp_type=9, label=1,
      has_default_value=False, default_value=_b(""),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    _descriptor.FieldDescriptor(
      name='key_material_type', full_name='google.crypto.tink.KeyData.key_material_type', index=2,
      number=3, 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),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
    _KEYDATA_KEYMATERIALTYPE,
  ],
  options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=160,
  serialized_end=392,
)


_KEYSET_KEY = _descriptor.Descriptor(
  name='Key',
  full_name='google.crypto.tink.Keyset.Key',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='key_data', full_name='google.crypto.tink.Keyset.Key.key_data', index=0,
      number=1, 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='status', full_name='google.crypto.tink.Keyset.Key.status', index=1,
      number=2, 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='key_id', full_name='google.crypto.tink.Keyset.Key.key_id', index=2,
      number=3, type=13, cpp_type=3, 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='output_prefix_type', full_name='google.crypto.tink.Keyset.Key.output_prefix_type', index=3,
      number=4, 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),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=475,
  serialized_end=660,
)

_KEYSET = _descriptor.Descriptor(
  name='Keyset',
  full_name='google.crypto.tink.Keyset',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='primary_key_id', full_name='google.crypto.tink.Keyset.primary_key_id', index=0,
      number=1, type=13, cpp_type=3, 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='key', full_name='google.crypto.tink.Keyset.key', index=1,
      number=2, type=11, cpp_type=10, 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),
  ],
  extensions=[
  ],
  nested_types=[_KEYSET_KEY, ],
  enum_types=[
  ],
  options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=395,
  serialized_end=660,
)


_KEYSETINFO_KEYINFO = _descriptor.Descriptor(
  name='KeyInfo',
  full_name='google.crypto.tink.KeysetInfo.KeyInfo',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='type_url', full_name='google.crypto.tink.KeysetInfo.KeyInfo.type_url', index=0,
      number=1, type=9, cpp_type=9, label=1,
      has_default_value=False, default_value=_b("").decode('utf-8'),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    _descriptor.FieldDescriptor(
      name='status', full_name='google.crypto.tink.KeysetInfo.KeyInfo.status', index=1,
      number=2, 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='key_id', full_name='google.crypto.tink.KeysetInfo.KeyInfo.key_id', index=2,
      number=3, type=13, cpp_type=3, 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='output_prefix_type', full_name='google.crypto.tink.KeysetInfo.KeyInfo.output_prefix_type', index=3,
      number=4, 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),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=760,
  serialized_end=920,
)

_KEYSETINFO = _descriptor.Descriptor(
  name='KeysetInfo',
  full_name='google.crypto.tink.KeysetInfo',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='primary_key_id', full_name='google.crypto.tink.KeysetInfo.primary_key_id', index=0,
      number=1, type=13, cpp_type=3, 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='key_info', full_name='google.crypto.tink.KeysetInfo.key_info', index=1,
      number=2, type=11, cpp_type=10, 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),
  ],
  extensions=[
  ],
  nested_types=[_KEYSETINFO_KEYINFO, ],
  enum_types=[
  ],
  options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=663,
  serialized_end=920,
)


_ENCRYPTEDKEYSET = _descriptor.Descriptor(
  name='EncryptedKeyset',
  full_name='google.crypto.tink.EncryptedKeyset',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='encrypted_keyset', full_name='google.crypto.tink.EncryptedKeyset.encrypted_keyset', index=0,
      number=2, type=12, cpp_type=9, label=1,
      has_default_value=False, default_value=_b(""),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      options=None),
    _descriptor.FieldDescriptor(
      name='keyset_info', full_name='google.crypto.tink.EncryptedKeyset.keyset_info', index=1,
      number=3, 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),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=922,
  serialized_end=1018,
)

_KEYTEMPLATE.fields_by_name['output_prefix_type'].enum_type = _OUTPUTPREFIXTYPE
_KEYDATA.fields_by_name['key_material_type'].enum_type = _KEYDATA_KEYMATERIALTYPE
_KEYDATA_KEYMATERIALTYPE.containing_type = _KEYDATA
_KEYSET_KEY.fields_by_name['key_data'].message_type = _KEYDATA
_KEYSET_KEY.fields_by_name['status'].enum_type = _KEYSTATUSTYPE
_KEYSET_KEY.fields_by_name['output_prefix_type'].enum_type = _OUTPUTPREFIXTYPE
_KEYSET_KEY.containing_type = _KEYSET
_KEYSET.fields_by_name['key'].message_type = _KEYSET_KEY
_KEYSETINFO_KEYINFO.fields_by_name['status'].enum_type = _KEYSTATUSTYPE
_KEYSETINFO_KEYINFO.fields_by_name['output_prefix_type'].enum_type = _OUTPUTPREFIXTYPE
_KEYSETINFO_KEYINFO.containing_type = _KEYSETINFO
_KEYSETINFO.fields_by_name['key_info'].message_type = _KEYSETINFO_KEYINFO
_ENCRYPTEDKEYSET.fields_by_name['keyset_info'].message_type = _KEYSETINFO
DESCRIPTOR.message_types_by_name['KeyTemplate'] = _KEYTEMPLATE
DESCRIPTOR.message_types_by_name['KeyData'] = _KEYDATA
DESCRIPTOR.message_types_by_name['Keyset'] = _KEYSET
DESCRIPTOR.message_types_by_name['KeysetInfo'] = _KEYSETINFO
DESCRIPTOR.message_types_by_name['EncryptedKeyset'] = _ENCRYPTEDKEYSET
DESCRIPTOR.enum_types_by_name['KeyStatusType'] = _KEYSTATUSTYPE
DESCRIPTOR.enum_types_by_name['OutputPrefixType'] = _OUTPUTPREFIXTYPE

KeyTemplate = _reflection.GeneratedProtocolMessageType('KeyTemplate', (_message.Message,), dict(
  DESCRIPTOR = _KEYTEMPLATE,
  __module__ = 'tink.proto.tink_pb2'
  # @@protoc_insertion_point(class_scope:google.crypto.tink.KeyTemplate)
  ))
_sym_db.RegisterMessage(KeyTemplate)

KeyData = _reflection.GeneratedProtocolMessageType('KeyData', (_message.Message,), dict(
  DESCRIPTOR = _KEYDATA,
  __module__ = 'tink.proto.tink_pb2'
  # @@protoc_insertion_point(class_scope:google.crypto.tink.KeyData)
  ))
_sym_db.RegisterMessage(KeyData)

Keyset = _reflection.GeneratedProtocolMessageType('Keyset', (_message.Message,), dict(

  Key = _reflection.GeneratedProtocolMessageType('Key', (_message.Message,), dict(
    DESCRIPTOR = _KEYSET_KEY,
    __module__ = 'tink.proto.tink_pb2'
    # @@protoc_insertion_point(class_scope:google.crypto.tink.Keyset.Key)
    ))
  ,
  DESCRIPTOR = _KEYSET,
  __module__ = 'tink.proto.tink_pb2'
  # @@protoc_insertion_point(class_scope:google.crypto.tink.Keyset)
  ))
_sym_db.RegisterMessage(Keyset)
_sym_db.RegisterMessage(Keyset.Key)

KeysetInfo = _reflection.GeneratedProtocolMessageType('KeysetInfo', (_message.Message,), dict(

  KeyInfo = _reflection.GeneratedProtocolMessageType('KeyInfo', (_message.Message,), dict(
    DESCRIPTOR = _KEYSETINFO_KEYINFO,
    __module__ = 'tink.proto.tink_pb2'
    # @@protoc_insertion_point(class_scope:google.crypto.tink.KeysetInfo.KeyInfo)
    ))
  ,
  DESCRIPTOR = _KEYSETINFO,
  __module__ = 'tink.proto.tink_pb2'
  # @@protoc_insertion_point(class_scope:google.crypto.tink.KeysetInfo)
  ))
_sym_db.RegisterMessage(KeysetInfo)
_sym_db.RegisterMessage(KeysetInfo.KeyInfo)

EncryptedKeyset = _reflection.GeneratedProtocolMessageType('EncryptedKeyset', (_message.Message,), dict(
  DESCRIPTOR = _ENCRYPTEDKEYSET,
  __module__ = 'tink.proto.tink_pb2'
  # @@protoc_insertion_point(class_scope:google.crypto.tink.EncryptedKeyset)
  ))
_sym_db.RegisterMessage(EncryptedKeyset)


DESCRIPTOR.has_options = True
DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\034com.google.crypto.tink.protoP\001Z*github.com/google/tink/proto/tink_go_proto\242\002\006TINKPB'))
# @@protoc_insertion_point(module_scope)
