Lines Matching refs:Person
4 import com.example.tutorial.AddressBookProtos.Person;
14 // This function fills in a Person message based on user input.
15 static Person PromptForAddress(BufferedReader stdin,
17 Person.Builder person = Person.newBuilder();
19 stdout.print("Enter person ID: ");
20 person.setId(Integer.valueOf(stdin.readLine()));
23 person.setName(stdin.readLine());
28 person.setEmail(email);
38 Person.PhoneNumber.Builder phoneNumber =
39 Person.PhoneNumber.newBuilder().setNumber(number);
44 phoneNumber.setType(Person.PhoneType.MOBILE);
46 phoneNumber.setType(Person.PhoneType.HOME);
48 phoneNumber.setType(Person.PhoneType.WORK);
53 person.addPhone(phoneNumber);
56 return person.build();
60 // adds one person based on user input, then writes it back out to the same