{"id":23463589,"url":"https://github.com/harmnot/protobuf-cheatsheet","last_synced_at":"2026-02-27T00:32:26.556Z","repository":{"id":126665657,"uuid":"256783441","full_name":"harmnot/protobuf-cheatsheet","owner":"harmnot","description":"protocol buffer for dummy gang ","archived":false,"fork":false,"pushed_at":"2020-04-18T15:12:05.000Z","size":0,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T13:15:34.359Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/harmnot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-18T15:10:31.000Z","updated_at":"2020-05-28T09:58:05.000Z","dependencies_parsed_at":"2023-06-17T14:30:38.092Z","dependency_job_id":null,"html_url":"https://github.com/harmnot/protobuf-cheatsheet","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/harmnot/protobuf-cheatsheet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harmnot%2Fprotobuf-cheatsheet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harmnot%2Fprotobuf-cheatsheet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harmnot%2Fprotobuf-cheatsheet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harmnot%2Fprotobuf-cheatsheet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/harmnot","download_url":"https://codeload.github.com/harmnot/protobuf-cheatsheet/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harmnot%2Fprotobuf-cheatsheet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29879019,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T23:51:21.483Z","status":"ssl_error","status_checked_at":"2026-02-26T23:50:46.793Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-24T09:13:00.350Z","updated_at":"2026-02-27T00:32:26.526Z","avatar_url":"https://github.com/harmnot.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"## Protobuf\n\n\n\n#### create request and respond\n\n```protobuf\nsyntax = \"proto3\"\n\n// array : [\"string\", \"string\"]\nmessage ArrayStr {\n\trepeated string key = 1\n}\n\n// { name: \"MY_NAME\", gender: \"MY_GENDER\" }\nmessage MyData {\n\tstring name = 1\n\tstring gender = 2\n}\n\nmessage Company {\n\tstring name = 1\n\tstring address = 2\n}\n\n// object in array : [ { name: \"MY_NAME\", gender: \"MY_GENDER\" } ]\nmessage ArrayObject {\n\trepeated MyData format_data = 1\n}\n\n// array in object then array in object\n// {\n// \tusername: \"MY_NAME\",\n// \tpassword: \"PASSWORD\",\n// \thobbies: [\"Swim\", \"Gym\"],\n// \tfamiles: [ { name: \"DADDY_NAME\", gender: \"MAN\" } ]\n// \tother: { key: \"VALUE\" }\n// }\nmessage ListData {\n\tstring username = 1\n\tstring password = 2\n\t\n\toneof payload {\n\t\trepeated ArrayStr hobbies = 3\n\t\tArrayObject families = 4\n\t\tArrayStr other = 5\n\t}\n}\n\n\n// Any \nimport \"google/protobuf/any.proto\";\n\nmessage ErrorStatus {\n  string message = 1;\n  repeated google.protobuf.Any details = 2;\n}\n\n// Object with spesific value\nmessage Myself {\n\tstring name = 1\n\tmap\u003cstring, MyData\u003e data = 2;\n}\n\n// ENUM\nmessage Role {\n\tstring name = 1\n\tenum SpesificRole {\n\t\troot = 0\n\t\tadmin = 1\n\t\tmember = 2\n\t}\n\t\n\tSpesificRole as = 2\n}\n\n// ListValue\nmessage ListObjects {\n\tListValue information \n}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharmnot%2Fprotobuf-cheatsheet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharmnot%2Fprotobuf-cheatsheet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharmnot%2Fprotobuf-cheatsheet/lists"}