@staticmethod
def convert_pb_to_doc(pb, doc):
    '\n        Convert protobuf to database document.\n\n        :param pb: A protobuf\n        :type pb: starbelly.starbelly_pb2.PolicyUrlNormalization\n        :returns: Database document.\n        :rtype: dict\n        '
    if pb.HasField('enabled'):
        doc['enabled'] = pb.enabled
    doc['strip_parameters'] = list(pb.strip_parameters)
Convert protobuf to database document.

:param pb: A protobuf
:type pb: starbelly.starbelly_pb2.PolicyUrlNormalization
:returns: Database document.
:rtype: dict
@staticmethod
def convert_pb_to_doc(pb, doc):
    '\n        Convert protobuf to database document.\n\n        :param pb: A protobuf\n        :type pb: starbelly.starbelly_pb2.PolicyUrlNormalization\n        :returns: Database document.\n        :rtype: dict\n        '
    if pb.HasField('enabled'):
        doc['enabled'] = pb.enabled
    doc['strip_parameters'] = list(pb.strip_parameters)