Home
last modified time | relevance | path

Searched refs:Person (Results 1 - 25 of 26) sorted by relevance

12

/third_party/protobuf/csharp/src/AddressBook/
H A DAddressbook.cs41 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Examples.AddressBook.Person), global::Google.Protobuf.Examples.AddressBook.Person.Parser, new[]{ "Name", "Id", "Email", "Phones", "LastUpdated" }, null, new[]{ typeof(global::Google.Protobuf.Examples.AddressBook.Person.Types.PhoneType) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Examples.AddressBook.Person.Types.PhoneNumber), global::Google.Protobuf.Examples.AddressBook.Person.Types.PhoneNumber.Parser, new[]{ "Number", "Type" }, null, null, null, null)}), in AddressbookReflection()
52 public sealed partial class Person : pb::IMessage<Person> class
57 private static readonly pb::MessageParser<Person> _parser = new pb::MessageParser<Person>(() => new Person());
73 public Person() { Person() method in Google.Protobuf.Examples.AddressBook.Person
80 public Person(Person other) : this() { Person() method in Google.Protobuf.Examples.AddressBook.Person
[all...]
H A DAddPerson.cs43 private static Person PromptForAddress(TextReader input, TextWriter output) in PromptForAddress()
45 Person person = new Person(); in PromptForAddress()
69 Person.Types.PhoneNumber phoneNumber = new Person.Types.PhoneNumber { Number = number }; in PromptForAddress()
76 phoneNumber.Type = Person.Types.PhoneType.Mobile; in PromptForAddress()
79 phoneNumber.Type = Person.Types.PhoneType.Home; in PromptForAddress()
82 phoneNumber.Type = Person.Types.PhoneType.Work; in PromptForAddress()
H A DSampleUsage.cs44 Person person = new Person in Main()
49 Phones = { new Person.Types.PhoneNumber { Number = "555-1212" } } in Main()
57 Person copy = Person.Parser.ParseFrom(bytes); in Main()
H A DListPeople.cs45 foreach (Person person in addressBook.People) in Print()
47 Console.WriteLine("Person ID: {0}", person.Id); in Print()
54 foreach (Person.Types.PhoneNumber phoneNumber in person.Phones) in Print()
58 case Person.Types.PhoneType.Mobile: in Print()
61 case Person.Types.PhoneType.Home: in Print()
64 case Person.Types.PhoneType.Work: in Print()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/message2/
H A DCustomFormatterPersonTest.java28 public static class Person { class in CustomFormatterPersonTest
33 public Person(String title, String firstName, String lastName) { in Person() method in CustomFormatterPersonTest.Person
41 return "Person {title='" + title + "', firstName='" + firstName + "', lastName='" + lastName + "'}"; in toString()
65 // Very-very primitive implementation of the "CLDR Person Name Formatting" spec:
70 if (toFormat instanceof Person) { in format()
71 Person person = (Person) toFormat; in format()
97 .setDefaultFormatterNameForType(Person.class, "person")
102 Person who = new Person("M in testCustomFunctions()
[all...]
/third_party/typescript/tests/baselines/reference/
H A DmetadataOfClassFromModule.js8 export class Person {
34 var Person = /** @class */ (function () {
35 function Person() {
40 ], Person.prototype, "leftLeg", void 0);
41 return Person;
43 MyModule.Person = Person;
H A DconstructorAsType.js2 var Person:new () => {name: string;} = function () {return {name:"joe"};};
6 Person = Person2;
9 var Person = function () { return { name: "joe" }; }; function
11 Person = Person2;
H A DlambdaPropSelf.js4 class Person {
27 var Person = /** @class */ (function () {
28 function Person(name, children) {
34 return Person;
H A DmixinPrivateAndProtected.js64 class Person {
72 function PersonMixin<T extends Constructor<Person>>(Base: T) {
85 class Customer extends PersonMixin(Person) {
168 var Person = /** @class */ (function () {
169 function Person(name) {
172 Person.prototype.myProtectedFunction = function () {
175 return Person;
202 }(PersonMixin(Person)));
H A DinferFromBindingPattern.js25 interface Person {
30 declare function selectJohn<K = Person>(props?: SelectProps<Person, K>): SelectResult<Person, K>;
H A DcommentsOnObjectLiteral1.js2 var Person = makeClass( variable
4 @scope Person
11 var Person = makeClass( variable
13 @scope Person
H A DcommentsOnObjectLiteral2.js2 var Person = makeClass( variable
16 var Person = makeClass({ variable
H A DtypesOnlyExternalModuleStillHasInstance.js4 export interface Person {
11 x: Person;
H A DmappedTypeAsClauses.js38 interface Person {
44 type LazyPerson = Lazyify<Person>;
221 interface Person {
226 type LazyPerson = Lazyify<Person>;
H A DinferFromGenericFunctionReturnTypes3.js91 interface Person {
97 function createPerson(): Person {
H A DkeyofAndIndexedAccess.js340 class Person extends Base {
928 var Person = /** @class */ (function (_super) {
929 __extends(Person, _super);
930 function Person(parts) {
935 Person.prototype.getParts = function () {
938 return Person;
1245 declare class Person extends Base {
/third_party/protobuf/examples/
H A DAddPerson.java4 import com.example.tutorial.AddressBookProtos.Person;
14 // This function fills in a Person message based on user input.
15 static Person PromptForAddress(BufferedReader stdin, in PromptForAddress()
17 Person.Builder person = Person.newBuilder(); in PromptForAddress()
38 Person.PhoneNumber.Builder phoneNumber = in PromptForAddress()
39 Person.PhoneNumber.newBuilder().setNumber(number); in PromptForAddress()
44 phoneNumber.setType(Person.PhoneType.MOBILE); in PromptForAddress()
46 phoneNumber.setType(Person.PhoneType.HOME); in PromptForAddress()
48 phoneNumber.setType(Person in PromptForAddress()
[all...]
H A Dlist_people.cc17 const tutorial::Person& person = address_book.people(i); in ListPeople()
19 cout << "Person ID: " << person.id() << endl; in ListPeople()
26 const tutorial::Person::PhoneNumber& phone_number = person.phones(j); in ListPeople()
29 case tutorial::Person::MOBILE: in ListPeople()
32 case tutorial::Person::HOME: in ListPeople()
35 case tutorial::Person::WORK: in ListPeople()
H A Dadd_person.cc15 // This function fills in a Person message based on user input.
16 void PromptForAddress(tutorial::Person* person) { in PromptForAddress()
41 tutorial::Person::PhoneNumber* phone_number = person->add_phones(); in PromptForAddress()
48 phone_number->set_type(tutorial::Person::MOBILE); in PromptForAddress()
50 phone_number->set_type(tutorial::Person::HOME); in PromptForAddress()
52 phone_number->set_type(tutorial::Person::WORK); in PromptForAddress()
H A Dlist_people.py13 print("Person ID:", person.id)
19 if phone_number.type == addressbook_pb2.Person.MOBILE:
21 elif phone_number.type == addressbook_pb2.Person.HOME:
23 elif phone_number.type == addressbook_pb2.Person.WORK:
H A DListPeople.java4 import com.example.tutorial.AddressBookProtos.Person;
12 for (Person person: addressBook.getPeopleList()) { in Print()
13 System.out.println("Person ID: " + person.getId()); in Print()
19 for (Person.PhoneNumber phoneNumber : person.getPhonesList()) { in Print()
H A Dadd_person.py14 # This function fills in a Person message based on user input.
33 phone_number.type = addressbook_pb2.Person.MOBILE
35 phone_number.type = addressbook_pb2.Person.HOME
37 phone_number.type = addressbook_pb2.Person.WORK
H A Dadd_person.go16 func promptForAddress(r io.Reader) (*pb.Person, error) {
18 p := &pb.Person{}
55 // The PhoneNumber message type is nested within the Person
58 // the nested message. Just as with pb.Person, it can be
H A Dlist_people.go14 func writePerson(w io.Writer, p *pb.Person) {
15 fmt.Fprintln(w, "Person ID:", p.Id)
/third_party/python/Lib/ctypes/test/
H A Dtest_structures.py224 class Person(Structure): class
228 self.assertRaises(TypeError, Person, 42)
229 self.assertRaises(ValueError, Person, b"asldkjaslkdjaslkdj")
230 self.assertRaises(TypeError, Person, "Name", "HI")
233 self.assertEqual(Person(b"12345", 5).name, b"12345")
235 self.assertEqual(Person(b"123456", 5).name, b"123456")
237 self.assertRaises(ValueError, Person, b"1234567", 5)
294 class Person(Structure): class
299 p = Person(b"Someone", (b"1234", b"5678"), 5)
327 class Person(Structur class
[all...]

Completed in 7 milliseconds

12