Searched refs:address_book (Results 1 – 4 of 4) sorted by relevance
15 void ListPeople(const tutorial::AddressBook& address_book) { in ListPeople() argument16 for (int i = 0; i < address_book.people_size(); i++) { in ListPeople()17 const tutorial::Person& person = address_book.people(i); in ListPeople()62 tutorial::AddressBook address_book; in main() local67 if (!address_book.ParseFromIstream(&input)) { in main()73 ListPeople(address_book); in main()
11 def ListPeople(address_book): argument12 for person in address_book.people:34 address_book = addressbook_pb2.AddressBook() variable38 address_book.ParseFromString(f.read())40 ListPeople(address_book)
49 address_book = addressbook_pb2.AddressBook() variable54 address_book.ParseFromString(f.read())59 PromptForAddress(address_book.people.add())63 f.write(address_book.SerializeToString())
73 tutorial::AddressBook address_book; in main() local80 } else if (!address_book.ParseFromIstream(&input)) { in main()87 PromptForAddress(address_book.add_people()); in main()92 if (!address_book.SerializeToOstream(&output)) { in main()