import addressbook_pb2
import sys

# person = addressbook_pb2.Person()
# person.id = 1234
# person.name = "<NAME>"
# person.email = "<EMAIL>"
# phone = person.phones.add()
# phone.number = "555-4321"
# phone.type = addressbook_pb2.Person.HOME
#
# print(person)
#
# person.no_such_field = 1  # raises AttributeError
# person.id = "1234"        # raises TypeError



