googleapis / googleapis/google-cloud-cpp

Determine best mechanism for setting service level metadata in generated libraries.

Ouverte
#14,000 1 commentaire 0 réactions 1 personne assignée Réclamée par @scotthart Voir sur GitHub
cpp: generator type: cleanup
Langage dominant
C++
Étoiles
659
Forks
462
Merge moyen
1 j 2 h
PR mergées (30 j)
89

Description

With the added support for google.api.api_version, an optional annotation, the generator needs to emit code that sets this (when specified) in the generated metadata decorator. It currently sets it as part of *Metadata::SetMetadata, but this might not be the best place. One option would be to pass this value to the metadata helper functions as another parameter, similar to `api_client_header`. another option would be to create a collection of known at compile time metadata pairs and pass that to the metadata helper function.

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.