Sha256: 9a2529bf6ba4731d62bfc9c4f006270db2d839c3b4917727a95653e478c879d9

Contents?: true

Size: 1.17 KB

Versions: 36

Compression:

Stored size: 1.17 KB

Contents

<%- assert_locals service -%>
<%- method_service ||= service -%>
<%- if service.grpc_service_config && !service.grpc_service_config.empty? -%>

  <%- if service.grpc_service_config.timeout_seconds -%>
    default_config.timeout = <%= format_number service.grpc_service_config.timeout_seconds %>
  <%- end -%>
  <%- if service.grpc_service_config.retry_policy -%>
    default_config.retry_policy = <%= indent_tail render(partial: "service/client/self_configure_retry_policy", locals: { retry_policy: service.grpc_service_config.retry_policy }), 2 %>
  <%- end -%>
<%- end -%>
<%- method_service.methods.each do |method| -%>
  <%- if method.grpc_service_config && !method.grpc_service_config.empty? -%>

    <%- if method.grpc_service_config.timeout_seconds -%>
      default_config.rpcs.<%= method.name %>.timeout = <%= format_number method.grpc_service_config.timeout_seconds %>
    <%- end -%>
    <%- if method.grpc_service_config.retry_policy -%>
      default_config.rpcs.<%= method.name %>.retry_policy =<%= indent_tail render(partial: "service/client/self_configure_retry_policy", locals: { retry_policy: method.grpc_service_config.retry_policy }), 2 %>
    <%- end -%>
  <%- end -%>
<%- end -%>

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
gapic-generator-0.8.0 templates/default/service/client/_self_configure_defaults.erb
gapic-generator-0.7.5 templates/default/service/client/_self_configure_defaults.erb
gapic-generator-0.7.4 templates/default/service/client/_self_configure_defaults.erb
gapic-generator-0.7.2 templates/default/service/client/_self_configure_defaults.erb
gapic-generator-0.7.1 templates/default/service/client/_self_configure_defaults.erb
gapic-generator-0.7.0 templates/default/service/client/_self_configure_defaults.erb
gapic-generator-0.6.15 templates/default/service/client/_self_configure_defaults.erb
gapic-generator-0.6.14 templates/default/service/client/_self_configure_defaults.erb
gapic-generator-0.6.13 templates/default/service/client/_self_configure_defaults.erb
gapic-generator-0.6.12 templates/default/service/client/_self_configure_defaults.erb
gapic-generator-0.6.11 templates/default/service/client/_self_configure_defaults.erb
gapic-generator-0.6.10 templates/default/service/client/_self_configure_defaults.erb
gapic-generator-0.6.9 templates/default/service/client/_self_configure_defaults.erb
gapic-generator-0.6.8 templates/default/service/client/_self_configure_defaults.erb
gapic-generator-0.6.7 templates/default/service/client/_self_configure_defaults.erb
gapic-generator-0.6.6 templates/default/service/client/_self_configure_defaults.erb
gapic-generator-0.6.5 templates/default/service/client/_self_configure_defaults.erb
gapic-generator-0.6.4 templates/default/service/client/_self_configure_defaults.erb
gapic-generator-0.6.3 templates/default/service/client/_self_configure_defaults.erb
gapic-generator-0.6.2 templates/default/service/client/_self_configure_defaults.erb