(self, data_type)
return (data_type.json_type == 'integer'
            or data_type.json_type == 'number'
            or data_type.json_type == 'boolean'
            or (hasattr(data_type, 'json_format') and (
                data_type.json_format == 'int64'
                or data_type.json_format == 'uint64'
                or data_type.json_format == 'date'
                or data_type.json_format == 'date-time')))
Determine if data type is representated as a C++ primitive type.

    Args:
      data_type: (DataType) The type to check.
    Returns:
      true if the data type is a primitive type (bool, float, double, int*)
      false otherwise (string, object, array, map).
Determine if data type is representated as a C++ primitive type.
Determine if data type is representated as a C ++ primitive type .
def _IsPrimitiveType(self, data_type):
    """Determine if data type is representated as a C++ primitive type.

    Args:
      data_type: (DataType) The type to check.
    Returns:
      true if the data type is a primitive type (bool, float, double, int*)
      false otherwise (string, object, array, map).
    """
    return (data_type.json_type == 'integer'
            or data_type.json_type == 'number'
            or data_type.json_type == 'boolean'
            or (hasattr(data_type, 'json_format') and (
                data_type.json_format == 'int64'
                or data_type.json_format == 'uint64'
                or data_type.json_format == 'date'
                or data_type.json_format == 'date-time')))
def _IsPrimitiveType ( self , data_type ) : return ( data_type . json_type == 'integer' or data_type . json_type == 'number' or data_type . json_type == 'boolean' or ( hasattr ( data_type , 'json_format' ) and ( data_type . json_format == 'int64' or data_type . json_format == 'uint64' or data_type . json_format == 'date' or data_type . json_format == 'date-time' ) ) )