translate_grpc_service_config.json 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. {
  2. "methodConfig": [
  3. {
  4. "name": [
  5. {
  6. "service": "google.cloud.translation.v3.TranslationService",
  7. "method": "GetSupportedLanguages"
  8. },
  9. {
  10. "service": "google.cloud.translation.v3.TranslationService",
  11. "method": "ListGlossaries"
  12. },
  13. {
  14. "service": "google.cloud.translation.v3.TranslationService",
  15. "method": "GetGlossary"
  16. },
  17. {
  18. "service": "google.cloud.translation.v3.TranslationService",
  19. "method": "DeleteGlossary"
  20. }
  21. ],
  22. "timeout": "600s",
  23. "retryPolicy": {
  24. "initialBackoff": "0.100s",
  25. "maxBackoff": "60s",
  26. "backoffMultiplier": 1.3,
  27. "retryableStatusCodes": [
  28. "DEADLINE_EXCEEDED",
  29. "UNAVAILABLE"
  30. ]
  31. }
  32. },
  33. {
  34. "name": [
  35. {
  36. "service": "google.cloud.translation.v3.TranslationService",
  37. "method": "TranslateText"
  38. },
  39. {
  40. "service": "google.cloud.translation.v3.TranslationService",
  41. "method": "DetectLanguage"
  42. },
  43. {
  44. "service": "google.cloud.translation.v3.TranslationService",
  45. "method": "BatchTranslateText"
  46. },
  47. {
  48. "service": "google.cloud.translation.v3.TranslationService",
  49. "method": "CreateGlossary"
  50. },
  51. {
  52. "service": "google.cloud.translation.v3.TranslationService",
  53. "method": "TranslateDocument"
  54. },
  55. {
  56. "service": "google.cloud.translation.v3.TranslationService",
  57. "method": "BatchTranslateDocument"
  58. }
  59. ],
  60. "timeout": "600s"
  61. }
  62. ]
  63. }