{"id":24776792,"url":"https://github.com/elixir-protobuf/google-protos","last_synced_at":"2025-10-12T00:32:01.257Z","repository":{"id":37945571,"uuid":"123215735","full_name":"elixir-protobuf/google-protos","owner":"elixir-protobuf","description":"Elixir files generated from Google's protobuf files using protobuf-elixir","archived":false,"fork":false,"pushed_at":"2024-02-20T06:26:59.000Z","size":19,"stargazers_count":16,"open_issues_count":4,"forks_count":21,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-12-24T05:34:46.037Z","etag":null,"topics":["elixir","elixir-lang","protobuf","protobuf-elixir"],"latest_commit_sha":null,"homepage":"","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/elixir-protobuf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2018-02-28T02:13:10.000Z","updated_at":"2024-02-05T21:44:30.000Z","dependencies_parsed_at":"2024-06-19T00:02:03.577Z","dependency_job_id":"2332eb14-06b1-4a3e-b56c-8bab8356eded","html_url":"https://github.com/elixir-protobuf/google-protos","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elixir-protobuf%2Fgoogle-protos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elixir-protobuf%2Fgoogle-protos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elixir-protobuf%2Fgoogle-protos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elixir-protobuf%2Fgoogle-protos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elixir-protobuf","download_url":"https://codeload.github.com/elixir-protobuf/google-protos/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231527972,"owners_count":18390550,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["elixir","elixir-lang","protobuf","protobuf-elixir"],"created_at":"2025-01-29T07:22:13.573Z","updated_at":"2025-10-12T00:32:01.252Z","avatar_url":"https://github.com/elixir-protobuf.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Google Protos\n\nFor Elixir files generated from [Google's protobuf files](https://github.com/google/protobuf/tree/master/src/google/protobuf) using [protobuf-elixir](https://github.com/tony612/protobuf-elixir).\n\n\u003e [!CAUTION]\n\u003e This repo has been **deprecated** in favor of the [main Protobuf library](https://github.com/elixir-protobuf/protobuf).\n\u003e To upgrade, remove `:google_protos` and upgrade `:protobuf` to v0.14+.\n\n## How-To\n\n### Convert `Google.Protobuf.Timestamp` to `DateTime`\n\n1. Convert timestamp seconds to nanoseconds.\n2. Add the timestamp nanos.\n3. Convert to `DateTime` using `DateTime.from_unix!/2`.\n\n```elixir\ntimestamp = Google.Protobuf.Timestamp.new(seconds: 5, nanos: 100)\nDateTime.from_unix!(timestamp.seconds * 1_000_000_000 + timestamp.nanos, :nanosecond)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felixir-protobuf%2Fgoogle-protos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felixir-protobuf%2Fgoogle-protos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felixir-protobuf%2Fgoogle-protos/lists"}