Searched refs:address_book (Results 1 – 4 of 4) sorted by relevance
10 void ListPeople(const tutorial::AddressBook& address_book) { in ListPeople() argument11 for (int i = 0; i < address_book.people_size(); i++) { in ListPeople()12 const tutorial::Person& person = address_book.people(i); in ListPeople()51 tutorial::AddressBook address_book; in main() local56 if (!address_book.ParseFromIstream(&input)) { in main()62 ListPeople(address_book); in main()
9 def ListPeople(address_book): argument10 for person in address_book.people:31 address_book = addressbook_pb2.AddressBook() variable35 address_book.ParseFromString(f.read())37 ListPeople(address_book)
42 address_book = addressbook_pb2.AddressBook() variable47 address_book.ParseFromString(f.read())52 PromptForAddress(address_book.people.add())56 f.write(address_book.SerializeToString())
66 tutorial::AddressBook address_book; in main() local73 } else if (!address_book.ParseFromIstream(&input)) { in main()80 PromptForAddress(address_book.add_people()); in main()85 if (!address_book.SerializeToOstream(&output)) { in main()