parameters: (proto_type)
docstring: Converts from a Python proto type to a C++ Proto Type.
  
      The Python ProtocolBuffer classes specify both the 'Python' datatype and the
      'C++' datatype - and they're not the same. This helper method should
      translate from one to another.
  
      Args:
        proto_type: the Python proto type (descriptor.FieldDescriptor.TYPE_*)
      Returns:
        descriptor.FieldDescriptor.CPPTYPE_*, the C++ type.
      Raises:
        TypeTransformationError: when the Python proto type isn't known.
docstring_summary: Converts from a Python proto type to a C++ Proto Type.
docstring_tokens: Converts from a Python proto type to a C ++ Proto Type .
function: def ProtoTypeToCppProtoType(proto_type):
      """Converts from a Python proto type to a C++ Proto Type.
  
      The Python ProtocolBuffer classes specify both the 'Python' datatype and the
      'C++' datatype - and they're not the same. This helper method should
      translate from one to another.
  
      Args:
        proto_type: the Python proto type (descriptor.FieldDescriptor.TYPE_*)
      Returns:
        descriptor.FieldDescriptor.CPPTYPE_*, the C++ type.
      Raises:
        TypeTransformationError: when the Python proto type isn't known.
      """
      try:
        return FieldDescriptor._PYTHON_TO_CPP_PROTO_TYPE_MAP[proto_type]
      except KeyError:
        raise TypeTransformationError('Unknown proto_type: %s' % proto_type)
function_tokens: def ProtoTypeToCppProtoType ( proto_type ) : try : return FieldDescriptor . _PYTHON_TO_CPP_PROTO_TYPE_MAP [ proto_type ] except KeyError : raise TypeTransformationError ( 'Unknown proto_type: %s' % proto_type )