@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.PolicyUserAgents\n        '
    for doc_user_agent in doc:
        pb_user_agent = pb.add()
        pb_user_agent.name = doc_user_agent['name']
Convert from database document to protobuf.

:param dict doc: Database document.
:param pb: An empty protobuf.
:type pb: starbelly.starbelly_pb2.PolicyUserAgents
@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.PolicyUserAgents\n        '
    for doc_user_agent in doc:
        pb_user_agent = pb.add()
        pb_user_agent.name = doc_user_agent['name']