(self, options=None)
return {
        ('boolean', None): ('bool', ImportDefinition([builtin_type_h])),
        ('any', None): (self.client_namespace_ + '::JsonCppData',
                        ImportDefinition([json_type_h])),
        ('integer', None): ('int32', ImportDefinition([integral_type_h])),
        ('integer', 'int16'): ('int16', ImportDefinition([integral_type_h])),
        ('integer', 'uint16'): ('uint16', ImportDefinition([integral_type_h])),
        ('integer', 'int32'): ('int32', ImportDefinition([integral_type_h])),
        ('integer', 'uint32'): ('uint32', ImportDefinition([integral_type_h])),
        ('number', None): ('double', ImportDefinition([builtin_type_h])),
        ('number', 'double'): ('double', ImportDefinition([builtin_type_h])),
        ('number', 'float'): ('float', ImportDefinition([builtin_type_h])),
        ('object', None): (self.client_namespace_ + '::JsonCppData',
                           ImportDefinition([json_type_h])),
        ('string', None): ('string', ImportDefinition(['<string>'])),
        ('string', 'byte'): ('string', ImportDefinition(['<string>'])),
        ('string', 'date'): (self.date_namespace_ + '::Date',
                             ImportDefinition([date_h])),
        ('string', 'date-time'): (self.client_namespace_ + '::DateTime',
                                  ImportDefinition([date_time_h])),
        ('string', 'google-datetime'): ('string',
                                        ImportDefinition(['<string>'])),
        ('string', 'google-duration'): ('string',
                                        ImportDefinition(['<string>'])),
        ('string', 'google-fieldmask'): ('string',
                                         ImportDefinition(['<string>'])),
        ('string', 'int64'): ('int64', ImportDefinition([integral_type_h])),
        ('string', 'uint64'): ('uint64', ImportDefinition([integral_type_h])),
        }
Builds the map of discovery document types to C++ types.

    Args:
      options: (dict) Code generator options.

    Returns:
      map of (discovery type, format) keys to (C++ type, import value)
      values where the import value is header file name to include.
Builds the map of discovery document types to C++ types.
Builds the map of discovery document types to C ++ types .
def _BuildTypeMap(self, options=None):
    """Builds the map of discovery document types to C++ types.

    Args:
      options: (dict) Code generator options.

    Returns:
      map of (discovery type, format) keys to (C++ type, import value)
      values where the import value is header file name to include.
    """
    self.global_namespace_ = ''
    self.client_namespace_ = 'client'
    builtin_type_h = None
    integral_type_h = '"googleapis/base/integral_types.h"'
    json_type_h = '"googleapis/client/data/jsoncpp_data.h"'
    # TODO(user): Implement open-source date.h
    date_time_h = '"googleapis/client/util/date_time.h"'
    date_h = date_time_h
    self.date_namespace_ = self.client_namespace_

    # Dictionary of json type and format to its corresponding data type and
    # import definition. The first import in the imports list is the primary
    # import.
    return {
        ('boolean', None): ('bool', ImportDefinition([builtin_type_h])),
        ('any', None): (self.client_namespace_ + '::JsonCppData',
                        ImportDefinition([json_type_h])),
        ('integer', None): ('int32', ImportDefinition([integral_type_h])),
        ('integer', 'int16'): ('int16', ImportDefinition([integral_type_h])),
        ('integer', 'uint16'): ('uint16', ImportDefinition([integral_type_h])),
        ('integer', 'int32'): ('int32', ImportDefinition([integral_type_h])),
        ('integer', 'uint32'): ('uint32', ImportDefinition([integral_type_h])),
        ('number', None): ('double', ImportDefinition([builtin_type_h])),
        ('number', 'double'): ('double', ImportDefinition([builtin_type_h])),
        ('number', 'float'): ('float', ImportDefinition([builtin_type_h])),
        ('object', None): (self.client_namespace_ + '::JsonCppData',
                           ImportDefinition([json_type_h])),
        ('string', None): ('string', ImportDefinition(['<string>'])),
        ('string', 'byte'): ('string', ImportDefinition(['<string>'])),
        ('string', 'date'): (self.date_namespace_ + '::Date',
                             ImportDefinition([date_h])),
        ('string', 'date-time'): (self.client_namespace_ + '::DateTime',
                                  ImportDefinition([date_time_h])),
        ('string', 'google-datetime'): ('string',
                                        ImportDefinition(['<string>'])),
        ('string', 'google-duration'): ('string',
                                        ImportDefinition(['<string>'])),
        ('string', 'google-fieldmask'): ('string',
                                         ImportDefinition(['<string>'])),
        ('string', 'int64'): ('int64', ImportDefinition([integral_type_h])),
        ('string', 'uint64'): ('uint64', ImportDefinition([integral_type_h])),
        }
def _BuildTypeMap ( self , options = None ) : self . global_namespace_ = '' self . client_namespace_ = 'client' builtin_type_h = None integral_type_h = '"googleapis/base/integral_types.h"' json_type_h = '"googleapis/client/data/jsoncpp_data.h"' # TODO(user): Implement open-source date.h date_time_h = '"googleapis/client/util/date_time.h"' date_h = date_time_h self . date_namespace_ = self . client_namespace_ # Dictionary of json type and format to its corresponding data type and # import definition. The first import in the imports list is the primary # import. return { ( 'boolean' , None ) : ( 'bool' , ImportDefinition ( [ builtin_type_h ] ) ) , ( 'any' , None ) : ( self . client_namespace_ + '::JsonCppData' , ImportDefinition ( [ json_type_h ] ) ) , ( 'integer' , None ) : ( 'int32' , ImportDefinition ( [ integral_type_h ] ) ) , ( 'integer' , 'int16' ) : ( 'int16' , ImportDefinition ( [ integral_type_h ] ) ) , ( 'integer' , 'uint16' ) : ( 'uint16' , ImportDefinition ( [ integral_type_h ] ) ) , ( 'integer' , 'int32' ) : ( 'int32' , ImportDefinition ( [ integral_type_h ] ) ) , ( 'integer' , 'uint32' ) : ( 'uint32' , ImportDefinition ( [ integral_type_h ] ) ) , ( 'number' , None ) : ( 'double' , ImportDefinition ( [ builtin_type_h ] ) ) , ( 'number' , 'double' ) : ( 'double' , ImportDefinition ( [ builtin_type_h ] ) ) , ( 'number' , 'float' ) : ( 'float' , ImportDefinition ( [ builtin_type_h ] ) ) , ( 'object' , None ) : ( self . client_namespace_ + '::JsonCppData' , ImportDefinition ( [ json_type_h ] ) ) , ( 'string' , None ) : ( 'string' , ImportDefinition ( [ '<string>' ] ) ) , ( 'string' , 'byte' ) : ( 'string' , ImportDefinition ( [ '<string>' ] ) ) , ( 'string' , 'date' ) : ( self . date_namespace_ + '::Date' , ImportDefinition ( [ date_h ] ) ) , ( 'string' , 'date-time' ) : ( self . client_namespace_ + '::DateTime' , ImportDefinition ( [ date_time_h ] ) ) , ( 'string' , 'google-datetime' ) : ( 'string' , ImportDefinition ( [ '<string>' ] ) ) , ( 'string' , 'google-duration' ) : ( 'string' , ImportDefinition ( [ '<string>' ] ) ) , ( 'string' , 'google-fieldmask' ) : ( 'string' , ImportDefinition ( [ '<string>' ] ) ) , ( 'string' , 'int64' ) : ( 'int64' , ImportDefinition ( [ integral_type_h ] ) ) , ( 'string' , 'uint64' ) : ( 'uint64' , ImportDefinition ( [ integral_type_h ] ) ) , }