{"id":37026245,"url":"https://github.com/thingsboard/protobuf-dynamic","last_synced_at":"2026-01-14T03:03:08.397Z","repository":{"id":48682584,"uuid":"303680529","full_name":"thingsboard/protobuf-dynamic","owner":"thingsboard","description":"Protocol Buffers Dynamic Schema - create protobuf schemas programmatically","archived":false,"fork":true,"pushed_at":"2022-11-01T08:46:39.000Z","size":133,"stargazers_count":4,"open_issues_count":1,"forks_count":10,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-03T03:39:21.079Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"os72/protobuf-dynamic","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thingsboard.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"os72","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":"https://www.paypal.me/os72"}},"created_at":"2020-10-13T11:27:57.000Z","updated_at":"2025-06-17T07:49:06.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/thingsboard/protobuf-dynamic","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/thingsboard/protobuf-dynamic","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thingsboard%2Fprotobuf-dynamic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thingsboard%2Fprotobuf-dynamic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thingsboard%2Fprotobuf-dynamic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thingsboard%2Fprotobuf-dynamic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thingsboard","download_url":"https://codeload.github.com/thingsboard/protobuf-dynamic/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thingsboard%2Fprotobuf-dynamic/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408800,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2026-01-14T03:03:07.907Z","updated_at":"2026-01-14T03:03:08.388Z","avatar_url":"https://github.com/thingsboard.png","language":"Java","funding_links":["https://github.com/sponsors/os72","https://www.paypal.me/os72"],"categories":[],"sub_categories":[],"readme":"protobuf-dynamic\n================\n\nProtocol Buffers Dynamic Schema - create protobuf schemas programmatically.\nAvailable on Maven Central:\n* https://repo.maven.apache.org/maven2/com/github/os72/protobuf-dynamic/1.0.1/\n* https://repo.maven.apache.org/maven2/com/github/os72/protobuf-dynamic/0.9.5/\n\n[![Maven Central](https://img.shields.io/badge/maven%20central-1.0.1-brightgreen.svg)](http://search.maven.org/#artifactdetails|com.github.os72|protobuf-dynamic|1.0.1|)\n[![Maven Central](https://img.shields.io/badge/maven%20central-0.9.5-brightgreen.svg)](http://search.maven.org/#artifactdetails|com.github.os72|protobuf-dynamic|0.9.5|)\n\n---\n\nLibrary to simplify working with the Protocol Buffers reflection mechanism, no protoc compiler required.\nSupports the major protobuf features: primitive types, complex and nested types, labels, default values, etc\n* Dynamic schema creation - at runtime\n* Dynamic message creation from schema\n* Schema merging\n* Schema serialization, deserialization\n* Schema parsing from protoc compiler output\n* Compatible with `protobuf-java` 2.6.1 or higher\n* (Version 0.9.x compatible with `protobuf-java` 2.4.1 or higher)\n\nSee the Protocol Buffers site for details: https://github.com/google/protobuf\n\n#### Usage\n```java\n// Create dynamic schema\nDynamicSchema.Builder schemaBuilder = DynamicSchema.newBuilder();\nschemaBuilder.setName(\"PersonSchemaDynamic.proto\");\n\nMessageDefinition msgDef = MessageDefinition.newBuilder(\"Person\") // message Person\n\t\t.addField(\"required\", \"int32\", \"id\", 1)\t\t// required int32 id = 1\n\t\t.addField(\"required\", \"string\", \"name\", 2)\t// required string name = 2\n\t\t.addField(\"optional\", \"string\", \"email\", 3)\t// optional string email = 3\n\t\t.build();\n\nschemaBuilder.addMessageDefinition(msgDef);\nDynamicSchema schema = schemaBuilder.build();\n\n// Create dynamic message from schema\nDynamicMessage.Builder msgBuilder = schema.newMessageBuilder(\"Person\");\nDescriptor msgDesc = msgBuilder.getDescriptorForType();\nDynamicMessage msg = msgBuilder\n\t\t.setField(msgDesc.findFieldByName(\"id\"), 1)\n\t\t.setField(msgDesc.findFieldByName(\"name\"), \"Alan Turing\")\n\t\t.setField(msgDesc.findFieldByName(\"email\"), \"at@sis.gov.uk\")\n\t\t.build();\n```\n\n#### Maven dependency\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.github.os72\u003c/groupId\u003e\n  \u003cartifactId\u003eprotobuf-dynamic\u003c/artifactId\u003e\n  \u003cversion\u003e1.0.1\u003c/version\u003e\n\u003c/dependency\u003e\n```\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.github.os72\u003c/groupId\u003e\n  \u003cartifactId\u003eprotobuf-dynamic\u003c/artifactId\u003e\n  \u003cversion\u003e0.9.5\u003c/version\u003e\n\u003c/dependency\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthingsboard%2Fprotobuf-dynamic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthingsboard%2Fprotobuf-dynamic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthingsboard%2Fprotobuf-dynamic/lists"}