@staticmethod
def convert_doc_to_pb(doc, pb):
    '\n        Convert from database document to protobuf.\n\n        :param dict doc: Database document.\n        :param pb: An empty protobuf.\n        :type pb: starbelly.starbelly_pb2.PolicyUrlNormalization\n        '
    if ('enabled' in doc):
        pb.enabled = doc['enabled']
    if ('strip_parameters' in doc):
        pb.strip_parameters.extend(doc['strip_parameters'])
Convert from database document to protobuf.

:param dict doc: Database document.
:param pb: An empty protobuf.
:type pb: starbelly.starbelly_pb2.PolicyUrlNormalization
@staticmethod
def convert_doc_to_pb(doc, pb):
    '\n        Convert from database document to protobuf.\n\n        :param dict doc: Database document.\n        :param pb: An empty protobuf.\n        :type pb: starbelly.starbelly_pb2.PolicyUrlNormalization\n        '
    if ('enabled' in doc):
        pb.enabled = doc['enabled']
    if ('strip_parameters' in doc):
        pb.strip_parameters.extend(doc['strip_parameters'])