#NEWLINE# def _make_entry_resource( self , text = None , info = None , message = None , labels = None , insert_id = None , severity = None , http_request = None ) : #NEWLINE# #INDENT# 'Return a log entry resource of the appropriate type.\n\n        Helper for :meth:`log_text`, :meth:`log_struct`, and :meth:`log_proto`.\n\n        Only one of ``text``, ``info``, or ``message`` should be passed.\n\n        :type text: string or :class:`NoneType`\n        :param text: text payload\n\n        :type info: dict or :class:`NoneType`\n        :param info: struct payload\n\n        :type message: Protobuf message or :class:`NoneType`\n        :param message: protobuf payload\n\n        :type labels: dict or :class:`NoneType`\n        :param labels: labels passed in to calling method.\n\n        :type insert_id: string or :class:`NoneType`\n        :param insert_id: (optional) unique ID for log entry.\n\n        :type severity: string or :class:`NoneType`\n        :param severity: (optional) severity of event being logged.\n\n        :type http_request: dict or :class:`NoneType`\n        :param http_request: (optional) info about HTTP request associated with\n                             the entry\n        ' #NEWLINE# resource = { #NEWLINE# #INDENT# 'logName' : self . full_name , #NEWLINE# 'resource' : { #NEWLINE# #INDENT# 'type' : 'global' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# if ( text is not None ) : #NEWLINE# #INDENT# resource [ 'textPayload' ] = text #NEWLINE# #UNINDENT# if ( info is not None ) : #NEWLINE# #INDENT# resource [ 'jsonPayload' ] = info #NEWLINE# #UNINDENT# if ( text is not None ) : #NEWLINE# #INDENT# as_json_str = MessageToJson ( message ) #NEWLINE# as_json = json . loads ( as_json_str ) #NEWLINE# resource [ 'protoPayload' ] = as_json #NEWLINE# #UNINDENT# if ( labels is None ) : #NEWLINE# #INDENT# labels = self . labels #NEWLINE# #UNINDENT# if ( labels is not None ) : #NEWLINE# #INDENT# resource [ 'labels' ] = labels #NEWLINE# #UNINDENT# if ( insert_id is not None ) : #NEWLINE# #INDENT# resource [ 'insertId' ] = insert_id #NEWLINE# #UNINDENT# if ( severity is not None ) : #NEWLINE# #INDENT# resource [ 'severity' ] = severity #NEWLINE# #UNINDENT# if ( http_request is not None ) : #NEWLINE# #INDENT# resource [ 'httpRequest' ] = http_request #NEWLINE# #UNINDENT# return resource