HEX
Server: LiteSpeed
System: Linux standart9.isimtescil.net 3.10.0-962.3.2.lve1.5.26.7.el7.x86_64 #1 SMP Wed Oct 2 07:53:12 EDT 2019 x86_64
User: karalev (5310)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: //lib/python2.7/site-packages/google/protobuf/internal/type_checkers.pyo
�
Q�,Qc@sBdZdZddlmZddlmZddlmZddlmZejZ	d�Z
defd	��YZd
efd��YZ
defd
��YZde
fd��YZde
fd��YZde
fd��YZde
fd��YZi	e�e	j6e�e	j6e�e	j6e�e	j6eeee�e	j6eeee�e	j6eee�e	j6e�e	j6ee�e	j 6Z!iej"e	j#6ej$e	j%6ej&e	j'6ej(e	j)6ej*e	j+6ej,e	j-6ej.e	j/6ej0e	j16ej2e	j36ej4e	j56ej6e	j76ej8e	j96ej:e	j;6ej<e	j=6ej>e	j?6ej@e	jA6ejBe	jC6ejDe	jE6ZFiejGe	j#6ejHe	j%6ejIe	j'6ejJe	j)6ejKe	j+6ejLe	j-6ejMe	j/6ejNe	j16ejOe	j36ejPe	j56ejQe	j76ejRe	j96ejSe	j;6ejTe	j=6ejUe	j?6ejVe	jA6ejWe	jC6ejXe	jE6ZYiejZe	j#6ej[e	j%6ej\e	j'6ej]e	j)6ej^e	j+6ej_e	j-6ej`e	j/6ejae	j16ejbe	j36ejce	j56ejde	j76ejee	j96ejfe	j;6ejge	j=6ejhe	j?6ejie	jA6ejje	jC6ejke	jE6Zliejme	j#6ejne	j%6ejoe	j'6ejpe	j)6ejqe	j+6ejre	j-6ejse	j/6ejte	j16ejue	j36ejve	j56ejwe	j76ejxe	j96ejye	j;6ejze	j=6ej{e	j?6ej|e	jA6ej}e	jC6ej~e	jE6Ziej�e	j#6ej�e	j%6ej�e	j'6ej�e	j)6ej�e	j+6ej�e	j-6ej�e	j/6ej�e	j16ej�e	j36ej�e	j56ej�e	j76ej�e	j96ej�e	j;6ej�e	j=6ej�e	j?6ej�e	jA6ej�e	jC6ej�e	jE6Z�dS(sProvides type checking routines.

This module defines type checking utilities in the forms of dictionaries:

VALUE_CHECKERS: A dictionary of field types and a value validation object.
TYPE_TO_BYTE_SIZE_FN: A dictionary with field types and a size computing
  function.
TYPE_TO_SERIALIZE_METHOD: A dictionary with field types and serialization
  function.
FIELD_TYPE_TO_WIRE_TYPE: A dictionary with field typed and their
  coresponding wire types.
TYPE_TO_DESERIALIZE_METHOD: A dictionary with field types and deserialization
  function.
s#robinson@google.com (Will Robinson)i����(tdecoder(tencoder(twire_format(t
descriptorcCs-|tjkr%|tjkr%t�St|S(sRReturns a type checker for a message field of the specified types.

  Args:
    cpp_type: C++ type of the field (see descriptor.py).
    field_type: Protocol message field type (see descriptor.py).

  Returns:
    An instance of TypeChecker which can be used to verify the types
    of values assigned to a field of the specified type.
  (t_FieldDescriptortCPPTYPE_STRINGtTYPE_STRINGtUnicodeValueCheckert_VALUE_CHECKERS(tcpp_typet
field_type((sJ/usr/lib/python2.7/site-packages/google/protobuf/internal/type_checkers.pytGetTypeChecker8stTypeCheckercBs eZdZd�Zd�ZRS(sType checker used to catch type errors as early as possible
  when the client is setting scalar fields in protocol messages.
  cGs
||_dS(N(t_acceptable_types(tselftacceptable_types((sJ/usr/lib/python2.7/site-packages/google/protobuf/internal/type_checkers.pyt__init__TscCsAt||j�s=d|t|�|jf}t|��ndS(Ns,%.1024r has type %s, but expected one of: %s(t
isinstanceR
ttypet	TypeError(Rtproposed_valuetmessage((sJ/usr/lib/python2.7/site-packages/google/protobuf/internal/type_checkers.pyt
CheckValueWs(t__name__t
__module__t__doc__RR(((sJ/usr/lib/python2.7/site-packages/google/protobuf/internal/type_checkers.pyRNs	tIntValueCheckercBseZdZd�ZRS(sFChecker used for integer fields.  Performs type-check and range check.cCs|t|ttf�sCd|t|�ttff}t|��n|j|ko`|jknsxtd|��ndS(Ns,%.1024r has type %s, but expected one of: %ssValue out of range: %d(RtinttlongRRt_MINt_MAXt
ValueError(RRR((sJ/usr/lib/python2.7/site-packages/google/protobuf/internal/type_checkers.pyRds"(RRRR(((sJ/usr/lib/python2.7/site-packages/google/protobuf/internal/type_checkers.pyR`sRcBseZdZd�ZRS(sChecker used for string fields.cCs�t|ttf�sCd|t|�ttff}t|��nt|t�r�yt|d�Wq�tk
r�td|��q�XndS(Ns,%.1024r has type %s, but expected one of: %stasciis�%.1024r has type str, but isn't in 7-bit ASCII encoding. Non-ASCII strings must be converted to unicode objects before being added.(RtstrtunicodeRRtUnicodeDecodeErrorR(RRR((sJ/usr/lib/python2.7/site-packages/google/protobuf/internal/type_checkers.pyRqs
(RRRR(((sJ/usr/lib/python2.7/site-packages/google/protobuf/internal/type_checkers.pyRmstInt32ValueCheckercBseZdZdZRS(i�i���(RRRR(((sJ/usr/lib/python2.7/site-packages/google/protobuf/internal/type_checkers.pyR$�stUint32ValueCheckercBseZdZdZRS(iii II����(RRRR(((sJ/usr/lib/python2.7/site-packages/google/protobuf/internal/type_checkers.pyR%�stInt64ValueCheckercBseZdZdZRS(ii?ll����ll����(RRRR(((sJ/usr/lib/python2.7/site-packages/google/protobuf/internal/type_checkers.pyR&�stUint64ValueCheckercBseZdZdZRS(iii@ll����(RRRR(((sJ/usr/lib/python2.7/site-packages/google/protobuf/internal/type_checkers.pyR'�sN(�Rt
__author__tgoogle.protobuf.internalRRRtgoogle.protobufRtFieldDescriptorRRtobjectRRRR$R%R&R't
CPPTYPE_INT32t
CPPTYPE_INT64tCPPTYPE_UINT32tCPPTYPE_UINT64tfloatRRtCPPTYPE_DOUBLEt
CPPTYPE_FLOATtbooltCPPTYPE_BOOLtCPPTYPE_ENUMR!RRtDoubleByteSizetTYPE_DOUBLEt
FloatByteSizet
TYPE_FLOATt
Int64ByteSizet
TYPE_INT64tUInt64ByteSizetTYPE_UINT64t
Int32ByteSizet
TYPE_INT32tFixed64ByteSizetTYPE_FIXED64tFixed32ByteSizetTYPE_FIXED32tBoolByteSizet	TYPE_BOOLtStringByteSizeRt
GroupByteSizet
TYPE_GROUPtMessageByteSizetTYPE_MESSAGEt
BytesByteSizet
TYPE_BYTEStUInt32ByteSizetTYPE_UINT32tEnumByteSizet	TYPE_ENUMtSFixed32ByteSizet
TYPE_SFIXED32tSFixed64ByteSizet
TYPE_SFIXED64tSInt32ByteSizetTYPE_SINT32tSInt64ByteSizetTYPE_SINT64tTYPE_TO_BYTE_SIZE_FNt
DoubleEncodertFloatEncodertInt64Encodert
UInt64EncodertInt32EncodertFixed64EncodertFixed32EncodertBoolEncodert
StringEncodertGroupEncodertMessageEncodertBytesEncodert
UInt32EncodertEnumEncodertSFixed32EncodertSFixed64Encodert
SInt32Encodert
SInt64EncodertTYPE_TO_ENCODERtDoubleSizert
FloatSizert
Int64SizertUInt64Sizert
Int32SizertFixed64SizertFixed32Sizert	BoolSizertStringSizert
GroupSizertMessageSizert
BytesSizertUInt32Sizert	EnumSizert
SFixed32Sizert
SFixed64SizertSInt32SizertSInt64Sizert
TYPE_TO_SIZERt
DoubleDecodertFloatDecodertInt64Decodert
UInt64DecodertInt32DecodertFixed64DecodertFixed32DecodertBoolDecodert
StringDecodertGroupDecodertMessageDecodertBytesDecodert
UInt32DecodertEnumDecodertSFixed32DecodertSFixed64Decodert
SInt32Decodert
SInt64DecodertTYPE_TO_DECODERtWIRETYPE_FIXED64tWIRETYPE_FIXED32tWIRETYPE_VARINTtWIRETYPE_LENGTH_DELIMITEDtWIRETYPE_START_GROUPtFIELD_TYPE_TO_WIRE_TYPE(((sJ/usr/lib/python2.7/site-packages/google/protobuf/internal/type_checkers.pyt<module>,s�