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.person_size(); i++) { in ListPeople()12 const tutorial::Person& person = address_book.person(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.person:31 address_book = addressbook_pb2.AddressBook() variable35 address_book.ParseFromString(f.read())38 ListPeople(address_book)
42 address_book = addressbook_pb2.AddressBook() variable47 address_book.ParseFromString(f.read())53 PromptForAddress(address_book.person.add())57 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_person()); in main()85 if (!address_book.SerializeToOstream(&output)) { in main()