{"id":33938956,"url":"https://github.com/mechiru/google-api-proto","last_synced_at":"2026-04-06T03:36:53.195Z","repository":{"id":37552239,"uuid":"432718682","full_name":"mechiru/google-api-proto","owner":"mechiru","description":"This library generated from googleapis/googleapis using tonic-build.","archived":false,"fork":false,"pushed_at":"2025-12-30T09:50:18.000Z","size":12559981,"stargazers_count":23,"open_issues_count":7,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-18T09:42:42.448Z","etag":null,"topics":["google","google-api","grpc","tonic"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mechiru.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","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":"2021-11-28T13:22:38.000Z","updated_at":"2024-09-04T06:36:01.000Z","dependencies_parsed_at":"2024-03-11T19:49:45.530Z","dependency_job_id":"0cac7294-b802-449a-b555-e2849d7af801","html_url":"https://github.com/mechiru/google-api-proto","commit_stats":{"total_commits":1666,"total_committers":3,"mean_commits":555.3333333333334,"dds":0.02280912364945975,"last_synced_commit":"a48e7bf796d7a2b2610a35f6f25d1b1de0e23513"},"previous_names":[],"tags_count":712,"template":false,"template_full_name":null,"purl":"pkg:github/mechiru/google-api-proto","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mechiru%2Fgoogle-api-proto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mechiru%2Fgoogle-api-proto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mechiru%2Fgoogle-api-proto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mechiru%2Fgoogle-api-proto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mechiru","download_url":"https://codeload.github.com/mechiru/google-api-proto/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mechiru%2Fgoogle-api-proto/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31458838,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T21:22:52.476Z","status":"online","status_checked_at":"2026-04-06T02:00:07.287Z","response_time":112,"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":["google","google-api","grpc","tonic"],"created_at":"2025-12-12T15:06:02.787Z","updated_at":"2026-04-06T03:36:53.189Z","avatar_url":"https://github.com/mechiru.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# google-api-proto\n\n[![ci](https://github.com/mechiru/google-api-proto/workflows/ci/badge.svg)](https://github.com/mechiru/google-api-proto/actions?query=workflow:ci)\n[![pub](https://github.com/mechiru/google-api-proto/workflows/pub/badge.svg)](https://github.com/mechiru/google-api-proto/actions?query=workflow:pub)\n[![doc](https://github.com/mechiru/google-api-proto/workflows/doc/badge.svg)](https://mechiru.github.io/google-api-proto/google_api_proto/index.html)\n[![version](https://img.shields.io/crates/v/google-api-proto.svg)](https://crates.io/crates/google-api-proto)\n\nThis library generated from [googleapis/googleapis] using [tonic-build].\n\n## Overview\nThis library contains all the code generated from the [googleapis/googleapis].\n\nWhen using each product API, you must explicitly include it in your build using a feature flag.\u003cbr\u003e\nFor example, if you want to use [Cloud Pub/Sub](https://cloud.google.com/pubsub), write `features = [\"google-pubsub-v1\"]` to Cargo.toml.\n\nThe feature name is the period of the package name of each proto file, replaced by a hyphen.\nIf you specify a package, it will automatically load the dependent packages and include them in the build.\nIt means that `features = [\"google-spanner-admin-database-v1\"]` is the same as the code below:\n```rust\npub mod google {\n    pub mod api {\n        // generated code\n    }\n    pub mod iam {\n        pub mod v1 {\n            // generated code\n        }\n    }\n    pub mod longrunning {\n        // generated code\n    }\n    pub mod r#type {\n        // generated code\n    }\n    pub mod rpc {\n        // generated code\n    }\n    pub mod spanner {\n        pub mod admin {\n            pub mod database {\n                pub mod v1 {\n                    // generated code\n                }\n            }\n        }\n    }\n}\n```\n\nIn addition, multiple features can be specified.\u003cbr\u003e\nThe list of available features can be found [here](./google-api-proto/Cargo.toml).\n\n## Version matrices\n| google-api-proto | tonic  | tonic-build |\n|------------------|--------|-------------|\n| 1.0.0 \u003c=         | 0.6.x  | 0.6.x       |\n| 1.59.0 \u003c=        | 0.7.x  | 0.7.x       |\n| 1.243.0 \u003c=       | 0.8.x  | 0.8.x       |\n| 1.280.0 \u003c=       | 0.9.x  | 0.9.x       |\n| 1.415.0 \u003c=       | 0.10.x | 0.10.x      |\n| 1.516.0 \u003c=       | 0.11.x | 0.11.x      |\n| 1.697.0 \u003c=       | 0.12.x | 0.12.x      |\n\n## Example\nThe complete code can be found [here](./examples/src/spanner.rs).\n\nCargo.toml:\n```toml\n[dependencies]\n# For runtime\ntokio = { version = \"1.33.0\", features = [\"macros\", \"rt-multi-thread\"] }\n# For google authentication\ngoogle-authz = { version = \"1.0.0-alpha.5\", features = [\"tonic\"] }\n# For gRPC\ntonic = { version = \"0.12.0\", features = [\"tls\", \"tls-webpki-roots\"] }\nprost = \"0.13.1\"\nprost-types = \"0.13.1\"\ngoogle-api-proto = { version = \"1\", features = [\"google-spanner-admin-database-v1\"] }\n```\n\nmain.rs:\n```rust\nuse std::env;\n\nuse google_api_proto::google::spanner::admin::database::v1::{\n    database_admin_client::DatabaseAdminClient, ListDatabasesRequest,\n};\nuse google_authz::GoogleAuthz;\nuse tonic::{transport::Channel, Request};\n\n#[tokio::main]\nasync fn main() -\u003e Result\u003c(), Box\u003cdyn std::error::Error\u003e\u003e {\n    let project = \"google project id\";\n    let instance = \"spanner instance name\";\n\n    let channel = Channel::from_static(\"https://spanner.googleapis.com\").connect().await?;\n    let channel = GoogleAuthz::new(channel).await;\n\n    let mut client = DatabaseAdminClient::new(channel);\n    let response = client\n        .list_databases(Request::new(ListDatabasesRequest {\n            parent: format!(\"projects/{}/instances/{}\", project, instance),\n            page_size: 100,\n            ..Default::default()\n        }))\n        .await?;\n    println!(\"response = {:#?}\", response);\n\n    Ok(())\n}\n```\n\n## License\nLicensed under either of [Apache License, Version 2.0](./LICENSE-APACHE) or [MIT license](./LICENSE-MIT) at your option.\n\n\u003c!-- links --\u003e\n[googleapis/googleapis]: https://github.com/googleapis/googleapis\n[tonic-build]: https://github.com/hyperium/tonic/tree/master/tonic-build\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmechiru%2Fgoogle-api-proto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmechiru%2Fgoogle-api-proto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmechiru%2Fgoogle-api-proto/lists"}