# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: tink/proto/tink.proto
"""Generated protocol buffer code."""
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)

_sym_db = _symbol_database.Default()




DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(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')

_KEYSTATUSTYPE = DESCRIPTOR.enum_types_by_name['KeyStatusType']
KeyStatusType = enum_type_wrapper.EnumTypeWrapper(_KEYSTATUSTYPE)
_OUTPUTPREFIXTYPE = DESCRIPTOR.enum_types_by_name['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


_KEYTEMPLATE = DESCRIPTOR.message_types_by_name['KeyTemplate']
_KEYDATA = DESCRIPTOR.message_types_by_name['KeyData']
_KEYSET = DESCRIPTOR.message_types_by_name['Keyset']
_KEYSET_KEY = _KEYSET.nested_types_by_name['Key']
_KEYSETINFO = DESCRIPTOR.message_types_by_name['KeysetInfo']
_KEYSETINFO_KEYINFO = _KEYSETINFO.nested_types_by_name['KeyInfo']
_ENCRYPTEDKEYSET = DESCRIPTOR.message_types_by_name['EncryptedKeyset']
_KEYDATA_KEYMATERIALTYPE = _KEYDATA.enum_types_by_name['KeyMaterialType']
KeyTemplate = _reflection.GeneratedProtocolMessageType('KeyTemplate', (_message.Message,), {
  '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,), {
  '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,), {

  'Key' : _reflection.GeneratedProtocolMessageType('Key', (_message.Message,), {
    '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,), {

  'KeyInfo' : _reflection.GeneratedProtocolMessageType('KeyInfo', (_message.Message,), {
    '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,), {
  'DESCRIPTOR' : _ENCRYPTEDKEYSET,
  '__module__' : 'tink.proto.tink_pb2'
  # @@protoc_insertion_point(class_scope:google.crypto.tink.EncryptedKeyset)
  })
_sym_db.RegisterMessage(EncryptedKeyset)

if _descriptor._USE_C_DESCRIPTORS == False:

  DESCRIPTOR._options = None
  DESCRIPTOR._serialized_options = b'\n\034com.google.crypto.tink.protoP\001Z*github.com/google/tink/proto/tink_go_proto\242\002\006TINKPB'
  _KEYSTATUSTYPE._serialized_start=1020
  _KEYSTATUSTYPE._serialized_end=1097
  _OUTPUTPREFIXTYPE._serialized_start=1099
  _OUTPUTPREFIXTYPE._serialized_end=1181
  _KEYTEMPLATE._serialized_start=45
  _KEYTEMPLATE._serialized_end=157
  _KEYDATA._serialized_start=160
  _KEYDATA._serialized_end=392
  _KEYDATA_KEYMATERIALTYPE._serialized_start=276
  _KEYDATA_KEYMATERIALTYPE._serialized_end=392
  _KEYSET._serialized_start=395
  _KEYSET._serialized_end=660
  _KEYSET_KEY._serialized_start=475
  _KEYSET_KEY._serialized_end=660
  _KEYSETINFO._serialized_start=663
  _KEYSETINFO._serialized_end=920
  _KEYSETINFO_KEYINFO._serialized_start=760
  _KEYSETINFO_KEYINFO._serialized_end=920
  _ENCRYPTEDKEYSET._serialized_start=922
  _ENCRYPTEDKEYSET._serialized_end=1018
# @@protoc_insertion_point(module_scope)
