KH🅰️IRIL ISH🅰️RI
@zokhshop
https://www.tiktok.com/@zokhshop
Lihat pameran KH🅰️IRIL ISH🅰️RI di TikTok.
https://vt.tiktok.com/ZSA9cghvw`syntax = "proto3";
message User {
string first_name = 1;
string last_name = 2;
bool active = 3;
User manager = 4;
repeated string locations = 5;
map<string, string> projects = 6;
}`import { UserSchema } from "./gen/user_pb.js";
import { create, toBinary, toJson } from "@bufbuild/protobuf";
let user = create(UserSchema, {
firstName: "Homer",
lastName: "Simpson",
active: true,
locations: ["Springfield"],
projects: { SPP: "Springfield Power Plant" },
manager: {
firstName: "Montgomery",
lastName: "Burns",
},
});
const bytes = toBinary(UserSchema, user);
const json = toJson(UserSchema, user);