Searched refs:phone_number (Results 1 – 4 of 4) sorted by relevance
16 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
22 phone_number = person.phones.add()23 phone_number.number = number27 phone_number.type = addressbook_pb2.Person.MOBILE29 phone_number.type = addressbook_pb2.Person.HOME31 phone_number.type = addressbook_pb2.Person.WORK
35 tutorial::Person::PhoneNumber* phone_number = person->add_phones(); in PromptForAddress() local36 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()
21 const tutorial::Person::PhoneNumber& phone_number = person.phones(j); in ListPeople() local23 switch (phone_number.type()) { in ListPeople()34 cout << phone_number.number() << endl; in ListPeople()