googleapis / googleapis/google-cloud-cpp

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

Abierto
#14,000 1 comentario 0 reacciones 1 asignado Reclamado por @scotthart Ver en GitHub
cpp: generator type: cleanup
Lenguaje dominante
C++
Estrellas
659
Forks
462
Merge medio
1 d 2 h
PR fusionados (30 d)
89

Descripción

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.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.