library_grpc_service_config.json 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. {
  2. "methodConfig": [
  3. {
  4. "name": [
  5. {
  6. "service": "google.example.library.v1.LibraryService",
  7. "method": "GetShelf"
  8. },
  9. {
  10. "service": "google.example.library.v1.LibraryService",
  11. "method": "ListShelves"
  12. },
  13. {
  14. "service": "google.example.library.v1.LibraryService",
  15. "method": "DeleteShelf"
  16. },
  17. {
  18. "service": "google.example.library.v1.LibraryService",
  19. "method": "GetBook"
  20. },
  21. {
  22. "service": "google.example.library.v1.LibraryService",
  23. "method": "ListBooks"
  24. },
  25. {
  26. "service": "google.example.library.v1.LibraryService",
  27. "method": "DeleteBook"
  28. },
  29. {
  30. "service": "google.example.library.v1.LibraryService",
  31. "method": "UpdateBook"
  32. }
  33. ],
  34. "timeout": "60s",
  35. "retryPolicy": {
  36. "maxAttempts": 5,
  37. "initialBackoff": "0.100s",
  38. "maxBackoff": "60s",
  39. "backoffMultiplier": 1.3,
  40. "retryableStatusCodes": [
  41. "DEADLINE_EXCEEDED",
  42. "UNAVAILABLE"
  43. ]
  44. }
  45. },
  46. {
  47. "name": [
  48. {
  49. "service": "google.example.library.v1.LibraryService",
  50. "method": "CreateShelf"
  51. },
  52. {
  53. "service": "google.example.library.v1.LibraryService",
  54. "method": "MergeShelves"
  55. },
  56. {
  57. "service": "google.example.library.v1.LibraryService",
  58. "method": "CreateBook"
  59. },
  60. {
  61. "service": "google.example.library.v1.LibraryService",
  62. "method": "MoveBook"
  63. }
  64. ],
  65. "timeout": "60s",
  66. "retryPolicy": {
  67. "maxAttempts": 5,
  68. "initialBackoff": "0.100s",
  69. "maxBackoff": "60s",
  70. "backoffMultiplier": 1.3,
  71. "retryableStatusCodes": []
  72. }
  73. }
  74. ]
  75. }