Home
last modified time | relevance | path

Searched refs:phone_number (Results 1 – 4 of 4) sorted by relevance

/external/protobuf/examples/
Dlist_people.py16 for phone_number in person.phone:
17 if phone_number.type == addressbook_pb2.Person.MOBILE:
19 elif phone_number.type == addressbook_pb2.Person.HOME:
21 elif phone_number.type == addressbook_pb2.Person.WORK:
23 print phone_number.number
Dadd_person.py22 phone_number = person.phone.add()
23 phone_number.number = number
27 phone_number.type = addressbook_pb2.Person.MOBILE
29 phone_number.type = addressbook_pb2.Person.HOME
31 phone_number.type = addressbook_pb2.Person.WORK
Dadd_person.cc35 tutorial::Person::PhoneNumber* phone_number = person->add_phone(); in PromptForAddress() local
36 phone_number->set_number(number); in PromptForAddress()
42 phone_number->set_type(tutorial::Person::MOBILE); in PromptForAddress()
44 phone_number->set_type(tutorial::Person::HOME); in PromptForAddress()
46 phone_number->set_type(tutorial::Person::WORK); in PromptForAddress()
Dlist_people.cc21 const tutorial::Person::PhoneNumber& phone_number = person.phone(j); in ListPeople() local
23 switch (phone_number.type()) { in ListPeople()
34 cout << phone_number.number() << endl; in ListPeople()