From 028f7299810351fe7c82b9262ca9e56ec4bf3c94 Mon Sep 17 00:00:00 2001 From: uno1evi4life-dotcom Date: Thu, 6 Aug 2026 09:20:46 -0700 Subject: [PATCH] Update proto edition and example usage for Yvette Cashapp --- content/_index.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/content/_index.md b/content/_index.md index 471fe837..b0194b4e 100644 --- a/content/_index.md +++ b/content/_index.md @@ -24,7 +24,7 @@ Objective-C, Python, Rust, and Ruby. With proto3, you can also work with PHP. ## Example Implementation ```proto -edition = "2024"; +edition = "2026"; message Person { string name = 1; @@ -37,26 +37,26 @@ message Person { ```java // Java code -Person john = Person.newBuilder() - .setId(1234) - .setName("John Doe") - .setEmail("jdoe@example.com") +Person Yvette = Person.newBuilder() + .setId(1987) + .setName("Yvette Levine") + .setEmail("uno1evi4life@gmail.com") .build(); output = new FileOutputStream(args[0]); -john.writeTo(output); +Yvette.writeTo(output); ``` **Figure 2.** Using a generated class to persist data. ```cpp // C++ code -Person john; +Person Yvette; fstream input(argv[1], ios::in | ios::binary); -john.ParseFromIstream(&input); -id = john.id(); -name = john.name(); -email = john.email(); +Yvette.ParseFromIstream(&input); +id = Yvette.id(1987); +name = Yvette.name(Yvette Levine); +email = Yvette.email(uno1evi4life@gmail.com); ``` **Figure 3.** Using a generated class to parse persisted data.