@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.PolicyLimits\n        '
    if (doc.get('max_cost') is not None):
        pb.max_cost = doc['max_cost']
    if (doc.get('max_duration') is not None):
        pb.max_duration = doc['max_duration']
    if (doc.get('max_items') is not None):
        pb.max_items = doc['max_items']
Convert from database document to protobuf.

:param dict doc: Database document.
:param pb: An empty protobuf.
:type pb: starbelly.starbelly_pb2.PolicyLimits
@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.PolicyLimits\n        '
    if (doc.get('max_cost') is not None):
        pb.max_cost = doc['max_cost']
    if (doc.get('max_duration') is not None):
        pb.max_duration = doc['max_duration']
    if (doc.get('max_items') is not None):
        pb.max_items = doc['max_items']