Lines Matching refs:Person
9 // This function fills in a Person message based on user input.
10 void PromptForAddress(tutorial::Person* person) {
11 cout << "Enter person ID number: ";
14 person->set_id(id);
18 getline(cin, *person->mutable_name());
24 person->set_email(email);
35 tutorial::Person::PhoneNumber* phone_number = person->add_phone();
42 phone_number->set_type(tutorial::Person::MOBILE);
44 phone_number->set_type(tutorial::Person::HOME);
46 phone_number->set_type(tutorial::Person::WORK);
54 // adds one person based on user input, then writes it back out to the same