def _make_entry_resource(self, text=None, info=None, message=None,
                             labels=None, insert_id=None, severity=None,
                             http_request=None):
        resource = {
            'logName': self.full_name,
            'resource': {'type': 'global'},
        }

        if text is not None:
            resource['textPayload'] = text

        if info is not None:
            resource['jsonPayload'] = info

        if message is not None:
            as_json_str = MessageToJson(message)
            as_json = json.loads(as_json_str)
            resource['protoPayload'] = as_json

        if labels is None:
            labels = self.labels

        if labels is not None:
            resource['labels'] = labels

        if insert_id is not None:
            resource['insertId'] = insert_id

        if severity is not None:
            resource['severity'] = severity

        if http_request is not None:
            resource['httpRequest'] = http_request

        return resource
Outputs a Python dictionary representing the most useful bits of
dataset/ETHPy150Open GoogleCloudPlatform/gcloud-python/gcloud/logging/logger.py/Logger._make_entry_resource--crossover with--dataset/ETHPy150Open caseywstark/colab/colab/apps/threadedcomments/models.py/FreeThreadedComment.get_base_data