Home
last modified time | relevance | path

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

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/examples/
Dlist_people.py16 for phone_number in person.phones:
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.phones.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_phones(); 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.phones(j); in ListPeople() local
23 switch (phone_number.type()) { in ListPeople()
34 cout << phone_number.number() << endl; in ListPeople()